diff --git a/.gitignore b/.gitignore index 4e7e155..fe47390 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ bin/ *.out config.yaml -.env +*.env *.log *.html *.tmp diff --git a/Dockerfile b/Dockerfile index aafed8e..c068d37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM golang:1.22-alpine +RUN apk add git # Default to localnet ARG CHAIN_NAME=allora-localnet-1 @@ -17,7 +18,7 @@ RUN go mod download COPY . . -RUN go build -o allora-producer ./cmd/producer +RUN go build -buildvcs -o allora-producer ./cmd/producer COPY ./config/config.${CHAIN_NAME}.yaml ./config.yaml diff --git a/cmd/producer/main.go b/cmd/producer/main.go index fa1ecd9..961e5ef 100644 --- a/cmd/producer/main.go +++ b/cmd/producer/main.go @@ -11,6 +11,7 @@ import ( "github.com/allora-network/allora-producer/app/usecase" "github.com/allora-network/allora-producer/codec" "github.com/allora-network/allora-producer/infra" + "github.com/allora-network/allora-producer/util" "github.com/jackc/pgx/v4/pgxpool" "github.com/allora-network/allora-producer/config" @@ -19,7 +20,7 @@ import ( ) func main() { - log.Info().Msg("Starting Allora Chain Producers") + log.Info().Str("revision", util.Revision()).Msg("Starting Allora Chain Producers") // Load config cfg, err := initializeConfig() if err != nil { diff --git a/codec/allora-chain/x/emissions/v4types/codec.go b/codec/allora-chain/x/emissions/v4types/codec.go new file mode 100644 index 0000000..f40db63 --- /dev/null +++ b/codec/allora-chain/x/emissions/v4types/codec.go @@ -0,0 +1,11 @@ +package types + +import ( + types "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" +) + +// RegisterInterfaces registers the interfaces types with the interface registry. +func RegisterInterfaces(registry types.InterfaceRegistry) { + msgservice.RegisterMsgServiceDesc(registry, &_MsgService_serviceDesc) +} diff --git a/codec/allora-chain/x/emissions/v4types/nonce.pb.go b/codec/allora-chain/x/emissions/v4types/nonce.pb.go new file mode 100644 index 0000000..b3a2348 --- /dev/null +++ b/codec/allora-chain/x/emissions/v4types/nonce.pb.go @@ -0,0 +1,898 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: emissions/v3/nonce.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Nonce struct { + BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (m *Nonce) Reset() { *m = Nonce{} } +func (m *Nonce) String() string { return proto.CompactTextString(m) } +func (*Nonce) ProtoMessage() {} +func (*Nonce) Descriptor() ([]byte, []int) { + return fileDescriptor_1df78f996b30972f, []int{0} +} +func (m *Nonce) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nonce.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Nonce) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nonce.Merge(m, src) +} +func (m *Nonce) XXX_Size() int { + return m.Size() +} +func (m *Nonce) XXX_DiscardUnknown() { + xxx_messageInfo_Nonce.DiscardUnknown(m) +} + +var xxx_messageInfo_Nonce proto.InternalMessageInfo + +func (m *Nonce) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +type Nonces struct { + Nonces []*Nonce `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"` +} + +func (m *Nonces) Reset() { *m = Nonces{} } +func (m *Nonces) String() string { return proto.CompactTextString(m) } +func (*Nonces) ProtoMessage() {} +func (*Nonces) Descriptor() ([]byte, []int) { + return fileDescriptor_1df78f996b30972f, []int{1} +} +func (m *Nonces) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nonces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nonces.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Nonces) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nonces.Merge(m, src) +} +func (m *Nonces) XXX_Size() int { + return m.Size() +} +func (m *Nonces) XXX_DiscardUnknown() { + xxx_messageInfo_Nonces.DiscardUnknown(m) +} + +var xxx_messageInfo_Nonces proto.InternalMessageInfo + +func (m *Nonces) GetNonces() []*Nonce { + if m != nil { + return m.Nonces + } + return nil +} + +type ReputerRequestNonce struct { + // the reputers should respond to the reputer request with losses for work + // found at this worker nonce + ReputerNonce *Nonce `protobuf:"bytes,1,opt,name=reputer_nonce,json=reputerNonce,proto3" json:"reputer_nonce,omitempty"` +} + +func (m *ReputerRequestNonce) Reset() { *m = ReputerRequestNonce{} } +func (m *ReputerRequestNonce) String() string { return proto.CompactTextString(m) } +func (*ReputerRequestNonce) ProtoMessage() {} +func (*ReputerRequestNonce) Descriptor() ([]byte, []int) { + return fileDescriptor_1df78f996b30972f, []int{2} +} +func (m *ReputerRequestNonce) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputerRequestNonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputerRequestNonce.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReputerRequestNonce) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputerRequestNonce.Merge(m, src) +} +func (m *ReputerRequestNonce) XXX_Size() int { + return m.Size() +} +func (m *ReputerRequestNonce) XXX_DiscardUnknown() { + xxx_messageInfo_ReputerRequestNonce.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputerRequestNonce proto.InternalMessageInfo + +func (m *ReputerRequestNonce) GetReputerNonce() *Nonce { + if m != nil { + return m.ReputerNonce + } + return nil +} + +type ReputerRequestNonces struct { + Nonces []*ReputerRequestNonce `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"` +} + +func (m *ReputerRequestNonces) Reset() { *m = ReputerRequestNonces{} } +func (m *ReputerRequestNonces) String() string { return proto.CompactTextString(m) } +func (*ReputerRequestNonces) ProtoMessage() {} +func (*ReputerRequestNonces) Descriptor() ([]byte, []int) { + return fileDescriptor_1df78f996b30972f, []int{3} +} +func (m *ReputerRequestNonces) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputerRequestNonces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputerRequestNonces.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReputerRequestNonces) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputerRequestNonces.Merge(m, src) +} +func (m *ReputerRequestNonces) XXX_Size() int { + return m.Size() +} +func (m *ReputerRequestNonces) XXX_DiscardUnknown() { + xxx_messageInfo_ReputerRequestNonces.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputerRequestNonces proto.InternalMessageInfo + +func (m *ReputerRequestNonces) GetNonces() []*ReputerRequestNonce { + if m != nil { + return m.Nonces + } + return nil +} + +func init() { + proto.RegisterType((*Nonce)(nil), "emissions.v3.Nonce") + proto.RegisterType((*Nonces)(nil), "emissions.v3.Nonces") + proto.RegisterType((*ReputerRequestNonce)(nil), "emissions.v3.ReputerRequestNonce") + proto.RegisterType((*ReputerRequestNonces)(nil), "emissions.v3.ReputerRequestNonces") +} + +func init() { proto.RegisterFile("emissions/v3/nonce.proto", fileDescriptor_1df78f996b30972f) } + +var fileDescriptor_1df78f996b30972f = []byte{ + // 279 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0xcd, 0xcd, 0x2c, + 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd6, 0xcf, 0xcb, 0xcf, 0x4b, 0x4e, 0xd5, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0xcb, 0xe8, 0x95, 0x19, 0x4b, 0x89, 0xa4, 0xe7, 0xa7, + 0xe7, 0x83, 0x25, 0xf4, 0x41, 0x2c, 0x88, 0x1a, 0x25, 0x03, 0x2e, 0x56, 0x3f, 0x90, 0x16, 0x21, + 0x45, 0x2e, 0x9e, 0xa4, 0x9c, 0xfc, 0xe4, 0xec, 0xf8, 0x8c, 0xd4, 0xcc, 0xf4, 0x8c, 0x12, 0x09, + 0x46, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x6e, 0xb0, 0x98, 0x07, 0x58, 0xc8, 0x8a, 0xe5, 0xc5, 0x02, + 0x79, 0x46, 0x25, 0x53, 0x2e, 0x36, 0xb0, 0x8e, 0x62, 0x21, 0x6d, 0x2e, 0x36, 0xb0, 0x75, 0xc5, + 0x12, 0x8c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0xc2, 0x7a, 0xc8, 0x16, 0xea, 0x81, 0x55, 0x05, 0x41, + 0x95, 0x28, 0x85, 0x72, 0x09, 0x07, 0xa5, 0x16, 0x94, 0x96, 0xa4, 0x16, 0x05, 0xa5, 0x16, 0x96, + 0xa6, 0x16, 0x97, 0x40, 0xac, 0xb5, 0xe0, 0xe2, 0x2d, 0x82, 0x08, 0xc7, 0x83, 0x15, 0x82, 0xed, + 0xc5, 0x61, 0x14, 0x0f, 0x54, 0x25, 0x98, 0x07, 0x75, 0x4d, 0x20, 0x97, 0x08, 0x16, 0x63, 0x8b, + 0x85, 0x2c, 0xd1, 0xdc, 0xa6, 0x88, 0x6a, 0x20, 0x16, 0x3d, 0x30, 0x97, 0x3a, 0x05, 0x9d, 0x78, + 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, + 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x45, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, + 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x62, 0x4e, 0x4e, 0x7e, 0x51, 0xa2, 0x6e, 0x5e, 0x6a, 0x49, 0x79, + 0x7e, 0x51, 0x36, 0x8c, 0x9b, 0x9c, 0x91, 0x98, 0x99, 0xa7, 0x5f, 0xa1, 0x8f, 0x88, 0x93, 0x92, + 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x68, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x3b, + 0xd8, 0x79, 0xd7, 0xad, 0x01, 0x00, 0x00, +} + +func (this *Nonce) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Nonce) + if !ok { + that2, ok := that.(Nonce) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.BlockHeight != that1.BlockHeight { + return false + } + return true +} +func (this *ReputerRequestNonce) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ReputerRequestNonce) + if !ok { + that2, ok := that.(ReputerRequestNonce) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.ReputerNonce.Equal(that1.ReputerNonce) { + return false + } + return true +} +func (m *Nonce) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nonce) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nonce) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeight != 0 { + i = encodeVarintNonce(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Nonces) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nonces) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nonces) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Nonces) > 0 { + for iNdEx := len(m.Nonces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nonces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNonce(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ReputerRequestNonce) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReputerRequestNonce) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputerRequestNonce) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReputerNonce != nil { + { + size, err := m.ReputerNonce.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNonce(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ReputerRequestNonces) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReputerRequestNonces) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputerRequestNonces) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Nonces) > 0 { + for iNdEx := len(m.Nonces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nonces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNonce(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNonce(dAtA []byte, offset int, v uint64) int { + offset -= sovNonce(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Nonce) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockHeight != 0 { + n += 1 + sovNonce(uint64(m.BlockHeight)) + } + return n +} + +func (m *Nonces) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Nonces) > 0 { + for _, e := range m.Nonces { + l = e.Size() + n += 1 + l + sovNonce(uint64(l)) + } + } + return n +} + +func (m *ReputerRequestNonce) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ReputerNonce != nil { + l = m.ReputerNonce.Size() + n += 1 + l + sovNonce(uint64(l)) + } + return n +} + +func (m *ReputerRequestNonces) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Nonces) > 0 { + for _, e := range m.Nonces { + l = e.Size() + n += 1 + l + sovNonce(uint64(l)) + } + } + return n +} + +func sovNonce(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNonce(x uint64) (n int) { + return sovNonce(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Nonce) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Nonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Nonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNonce(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNonce + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Nonces) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Nonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Nonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNonce + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNonce + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nonces = append(m.Nonces, &Nonce{}) + if err := m.Nonces[len(m.Nonces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNonce(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNonce + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReputerRequestNonce) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReputerRequestNonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputerRequestNonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerNonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNonce + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNonce + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReputerNonce == nil { + m.ReputerNonce = &Nonce{} + } + if err := m.ReputerNonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNonce(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNonce + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReputerRequestNonces) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReputerRequestNonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputerRequestNonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNonce + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNonce + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nonces = append(m.Nonces, &ReputerRequestNonce{}) + if err := m.Nonces[len(m.Nonces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNonce(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNonce + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNonce(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNonce + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNonce + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNonce + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthNonce + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNonce + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNonce + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNonce = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNonce = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNonce = fmt.Errorf("proto: unexpected end of group") +) diff --git a/codec/allora-chain/x/emissions/v4types/params.pb.go b/codec/allora-chain/x/emissions/v4types/params.pb.go new file mode 100644 index 0000000..4d2b51a --- /dev/null +++ b/codec/allora-chain/x/emissions/v4types/params.pb.go @@ -0,0 +1,2131 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: emissions/v4/params.proto + +package types + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + github_com_allora_network_allora_chain_math "github.com/allora-network/allora-chain/math" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Params defines the parameters of the module. +type Params struct { + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // github release tag version + MaxSerializedMsgLength int64 `protobuf:"varint,2,opt,name=max_serialized_msg_length,json=maxSerializedMsgLength,proto3" json:"max_serialized_msg_length,omitempty"` + MinTopicWeight github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,3,opt,name=min_topic_weight,json=minTopicWeight,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_topic_weight"` + // solicatation or weight-adjustment + RequiredMinimumStake cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=required_minimum_stake,json=requiredMinimumStake,proto3,customtype=cosmossdk.io/math.Int" json:"required_minimum_stake"` + RemoveStakeDelayWindow int64 `protobuf:"varint,6,opt,name=remove_stake_delay_window,json=removeStakeDelayWindow,proto3" json:"remove_stake_delay_window,omitempty"` + MinEpochLength int64 `protobuf:"varint,7,opt,name=min_epoch_length,json=minEpochLength,proto3" json:"min_epoch_length,omitempty"` + // repeating inference request + BetaEntropy github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,8,opt,name=beta_entropy,json=betaEntropy,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"beta_entropy"` + LearningRate github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,9,opt,name=learning_rate,json=learningRate,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"learning_rate"` + MaxGradientThreshold github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,10,opt,name=max_gradient_threshold,json=maxGradientThreshold,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"max_gradient_threshold"` + MinStakeFraction github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,11,opt,name=min_stake_fraction,json=minStakeFraction,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_stake_fraction"` + // coefficients + MaxUnfulfilledWorkerRequests uint64 `protobuf:"varint,13,opt,name=max_unfulfilled_worker_requests,json=maxUnfulfilledWorkerRequests,proto3" json:"max_unfulfilled_worker_requests,omitempty"` + MaxUnfulfilledReputerRequests uint64 `protobuf:"varint,14,opt,name=max_unfulfilled_reputer_requests,json=maxUnfulfilledReputerRequests,proto3" json:"max_unfulfilled_reputer_requests,omitempty"` + TopicRewardStakeImportance github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,15,opt,name=topic_reward_stake_importance,json=topicRewardStakeImportance,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_stake_importance"` + // topic and has a fiducial value of 0.5 + TopicRewardFeeRevenueImportance github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,16,opt,name=topic_reward_fee_revenue_importance,json=topicRewardFeeRevenueImportance,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_fee_revenue_importance"` + // a topic and has a fiducial value of 0.5 + TopicRewardAlpha github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,17,opt,name=topic_reward_alpha,json=topicRewardAlpha,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_alpha"` + // a monthly timescale, 0.5 for weekly updates + TaskRewardAlpha github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,18,opt,name=task_reward_alpha,json=taskRewardAlpha,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"task_reward_alpha"` + // to calculate ~U_ij, ~V_ik, ~W_im + ValidatorsVsAlloraPercentReward github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,19,opt,name=validators_vs_allora_percent_reward,json=validatorsVsAlloraPercentReward,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"validators_vs_allora_percent_reward"` + // to allora reputers workers etc + MaxSamplesToScaleScores uint64 `protobuf:"varint,20,opt,name=max_samples_to_scale_scores,json=maxSamplesToScaleScores,proto3" json:"max_samples_to_scale_scores,omitempty"` + MaxTopInferersToReward uint64 `protobuf:"varint,21,opt,name=max_top_inferers_to_reward,json=maxTopInferersToReward,proto3" json:"max_top_inferers_to_reward,omitempty"` + MaxTopForecastersToReward uint64 `protobuf:"varint,22,opt,name=max_top_forecasters_to_reward,json=maxTopForecastersToReward,proto3" json:"max_top_forecasters_to_reward,omitempty"` + MaxTopReputersToReward uint64 `protobuf:"varint,23,opt,name=max_top_reputers_to_reward,json=maxTopReputersToReward,proto3" json:"max_top_reputers_to_reward,omitempty"` + CreateTopicFee cosmossdk_io_math.Int `protobuf:"bytes,24,opt,name=create_topic_fee,json=createTopicFee,proto3,customtype=cosmossdk.io/math.Int" json:"create_topic_fee"` + GradientDescentMaxIters uint64 `protobuf:"varint,25,opt,name=gradient_descent_max_iters,json=gradientDescentMaxIters,proto3" json:"gradient_descent_max_iters,omitempty"` + RegistrationFee cosmossdk_io_math.Int `protobuf:"bytes,28,opt,name=registration_fee,json=registrationFee,proto3,customtype=cosmossdk.io/math.Int" json:"registration_fee"` + DefaultPageLimit uint64 `protobuf:"varint,29,opt,name=default_page_limit,json=defaultPageLimit,proto3" json:"default_page_limit,omitempty"` + MaxPageLimit uint64 `protobuf:"varint,30,opt,name=max_page_limit,json=maxPageLimit,proto3" json:"max_page_limit,omitempty"` + // min number of epochs to keep network losses, reputer losses, inferences, + // forecasts + MinEpochLengthRecordLimit int64 `protobuf:"varint,31,opt,name=min_epoch_length_record_limit,json=minEpochLengthRecordLimit,proto3" json:"min_epoch_length_record_limit,omitempty"` + // block emission rate in number of blocks expected per month + BlocksPerMonth uint64 `protobuf:"varint,32,opt,name=blocks_per_month,json=blocksPerMonth,proto3" json:"blocks_per_month,omitempty"` + PRewardInference github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,33,opt,name=p_reward_inference,json=pRewardInference,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_inference"` + PRewardForecast github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,34,opt,name=p_reward_forecast,json=pRewardForecast,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_forecast"` + PRewardReputer github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,35,opt,name=p_reward_reputer,json=pRewardReputer,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_reputer"` + CRewardInference github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,36,opt,name=c_reward_inference,json=cRewardInference,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_reward_inference"` + CRewardForecast github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,37,opt,name=c_reward_forecast,json=cRewardForecast,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_reward_forecast"` + CNorm github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,38,opt,name=c_norm,json=cNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_norm"` + EpsilonReputer github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,40,opt,name=epsilon_reputer,json=epsilonReputer,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon_reputer"` + // close proximities + HalfMaxProcessStakeRemovalsEndBlock uint64 `protobuf:"varint,42,opt,name=half_max_process_stake_removals_end_block,json=halfMaxProcessStakeRemovalsEndBlock,proto3" json:"half_max_process_stake_removals_end_block,omitempty"` + // Applied twice once for stakeRemovals and once for + // DelegateStakeRemovals, so actual max is this number times two + EpsilonSafeDiv github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,43,opt,name=epsilon_safe_div,json=epsilonSafeDiv,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon_safe_div"` + /// a small tolerance quantity used to cap division by zero + DataSendingFee cosmossdk_io_math.Int `protobuf:"bytes,44,opt,name=data_sending_fee,json=dataSendingFee,proto3,customtype=cosmossdk.io/math.Int" json:"data_sending_fee"` + // payload sending fee for reputer or worker + MaxElementsPerForecast uint64 `protobuf:"varint,45,opt,name=max_elements_per_forecast,json=maxElementsPerForecast,proto3" json:"max_elements_per_forecast,omitempty"` + MaxActiveTopicsPerBlock uint64 `protobuf:"varint,46,opt,name=max_active_topics_per_block,json=maxActiveTopicsPerBlock,proto3" json:"max_active_topics_per_block,omitempty"` + MaxStringLength uint64 `protobuf:"varint,47,opt,name=max_string_length,json=maxStringLength,proto3" json:"max_string_length,omitempty"` +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_1e03fccebd9da83e, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *Params) GetMaxSerializedMsgLength() int64 { + if m != nil { + return m.MaxSerializedMsgLength + } + return 0 +} + +func (m *Params) GetRemoveStakeDelayWindow() int64 { + if m != nil { + return m.RemoveStakeDelayWindow + } + return 0 +} + +func (m *Params) GetMinEpochLength() int64 { + if m != nil { + return m.MinEpochLength + } + return 0 +} + +func (m *Params) GetMaxUnfulfilledWorkerRequests() uint64 { + if m != nil { + return m.MaxUnfulfilledWorkerRequests + } + return 0 +} + +func (m *Params) GetMaxUnfulfilledReputerRequests() uint64 { + if m != nil { + return m.MaxUnfulfilledReputerRequests + } + return 0 +} + +func (m *Params) GetMaxSamplesToScaleScores() uint64 { + if m != nil { + return m.MaxSamplesToScaleScores + } + return 0 +} + +func (m *Params) GetMaxTopInferersToReward() uint64 { + if m != nil { + return m.MaxTopInferersToReward + } + return 0 +} + +func (m *Params) GetMaxTopForecastersToReward() uint64 { + if m != nil { + return m.MaxTopForecastersToReward + } + return 0 +} + +func (m *Params) GetMaxTopReputersToReward() uint64 { + if m != nil { + return m.MaxTopReputersToReward + } + return 0 +} + +func (m *Params) GetGradientDescentMaxIters() uint64 { + if m != nil { + return m.GradientDescentMaxIters + } + return 0 +} + +func (m *Params) GetDefaultPageLimit() uint64 { + if m != nil { + return m.DefaultPageLimit + } + return 0 +} + +func (m *Params) GetMaxPageLimit() uint64 { + if m != nil { + return m.MaxPageLimit + } + return 0 +} + +func (m *Params) GetMinEpochLengthRecordLimit() int64 { + if m != nil { + return m.MinEpochLengthRecordLimit + } + return 0 +} + +func (m *Params) GetBlocksPerMonth() uint64 { + if m != nil { + return m.BlocksPerMonth + } + return 0 +} + +func (m *Params) GetHalfMaxProcessStakeRemovalsEndBlock() uint64 { + if m != nil { + return m.HalfMaxProcessStakeRemovalsEndBlock + } + return 0 +} + +func (m *Params) GetMaxElementsPerForecast() uint64 { + if m != nil { + return m.MaxElementsPerForecast + } + return 0 +} + +func (m *Params) GetMaxActiveTopicsPerBlock() uint64 { + if m != nil { + return m.MaxActiveTopicsPerBlock + } + return 0 +} + +func (m *Params) GetMaxStringLength() uint64 { + if m != nil { + return m.MaxStringLength + } + return 0 +} + +func init() { + proto.RegisterType((*Params)(nil), "emissions.v4.Params") +} + +func init() { proto.RegisterFile("emissions/v4/params.proto", fileDescriptor_1e03fccebd9da83e) } + +var fileDescriptor_1e03fccebd9da83e = []byte{ + // 1330 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4d, 0x6f, 0x14, 0x47, + 0x13, 0xf6, 0xbe, 0x18, 0x63, 0x1a, 0x63, 0xaf, 0xe7, 0x35, 0x30, 0xfe, 0x76, 0x30, 0x49, 0x8c, + 0x03, 0xde, 0x48, 0x41, 0xca, 0xe7, 0x21, 0x20, 0xdb, 0xc8, 0x16, 0x46, 0xd6, 0xd8, 0x01, 0x89, + 0x44, 0xea, 0xb4, 0x67, 0x6a, 0x76, 0x5b, 0x9e, 0xe9, 0x9e, 0x74, 0xf7, 0xae, 0xd7, 0xdc, 0x73, + 0xcf, 0xcf, 0xc8, 0x31, 0x87, 0xfc, 0x08, 0x8e, 0x28, 0x87, 0x28, 0xca, 0x01, 0x45, 0x70, 0xc8, + 0xdf, 0x88, 0xaa, 0xbb, 0x67, 0xbc, 0x0b, 0x51, 0x14, 0x31, 0xb9, 0x58, 0x9e, 0xae, 0xaa, 0xe7, + 0xa9, 0x79, 0xa6, 0xba, 0xaa, 0x96, 0xcc, 0x42, 0xce, 0xb5, 0xe6, 0x52, 0xe8, 0x56, 0xef, 0x4e, + 0xab, 0x60, 0x8a, 0xe5, 0x7a, 0xa3, 0x50, 0xd2, 0xc8, 0x60, 0xa2, 0x32, 0x6d, 0xf4, 0xee, 0xcc, + 0x4d, 0xb3, 0x9c, 0x0b, 0xd9, 0xb2, 0x7f, 0x9d, 0xc3, 0xdc, 0x6c, 0x2c, 0x75, 0x2e, 0x35, 0xb5, + 0x4f, 0x2d, 0xf7, 0xe0, 0x4d, 0x33, 0x6d, 0xd9, 0x96, 0xee, 0x1c, 0xff, 0x73, 0xa7, 0xd7, 0x7f, + 0x9d, 0x27, 0x63, 0xfb, 0x96, 0x22, 0x08, 0xc9, 0x85, 0x1e, 0x28, 0x44, 0x0f, 0x1b, 0x2b, 0x8d, + 0xb5, 0x8b, 0x51, 0xf9, 0x18, 0x7c, 0x4a, 0x66, 0x73, 0xd6, 0xa7, 0x1a, 0x14, 0x67, 0x19, 0x7f, + 0x0a, 0x09, 0xcd, 0x75, 0x9b, 0x66, 0x20, 0xda, 0xa6, 0x13, 0xfe, 0x6f, 0xa5, 0xb1, 0x76, 0x2e, + 0xba, 0x9a, 0xb3, 0xfe, 0x41, 0x65, 0xdf, 0xd3, 0xed, 0x07, 0xd6, 0x1a, 0x30, 0xd2, 0xcc, 0xb9, + 0xa0, 0x46, 0x16, 0x3c, 0xa6, 0x27, 0xc0, 0xdb, 0x1d, 0x13, 0x9e, 0x43, 0xf4, 0x7b, 0x1f, 0x3f, + 0x7b, 0xb1, 0x3c, 0xf2, 0xfb, 0x8b, 0xe5, 0x56, 0x9b, 0x9b, 0x4e, 0xf7, 0x68, 0x23, 0x96, 0x79, + 0x8b, 0x65, 0x99, 0x54, 0xec, 0xb6, 0x00, 0x73, 0x22, 0xd5, 0x71, 0xf9, 0x18, 0x77, 0x18, 0x17, + 0xad, 0x9c, 0x99, 0xce, 0xc6, 0x26, 0xc4, 0xd1, 0x64, 0xce, 0xc5, 0x21, 0xe2, 0x3d, 0xb6, 0x70, + 0x41, 0x4a, 0xae, 0x2a, 0xf8, 0xae, 0xcb, 0x15, 0xe6, 0xc5, 0x05, 0xcf, 0xbb, 0x39, 0xd5, 0x86, + 0x1d, 0x43, 0x78, 0xde, 0x12, 0x7d, 0xe8, 0x89, 0xae, 0x38, 0x39, 0x74, 0x72, 0xbc, 0xc1, 0xa5, + 0x83, 0xdb, 0x11, 0xe6, 0x97, 0x9f, 0x6f, 0x13, 0xaf, 0xd3, 0x8e, 0x30, 0x3f, 0xfe, 0xf9, 0xd3, + 0x7a, 0x23, 0x9a, 0x29, 0xf1, 0xf6, 0x1c, 0xdc, 0x01, 0xa2, 0xa1, 0x0a, 0x0a, 0x72, 0xd9, 0x03, + 0x87, 0x4e, 0x13, 0xc8, 0xd8, 0x29, 0x3d, 0xe1, 0x22, 0x91, 0x27, 0xe1, 0x98, 0x53, 0xc1, 0x39, + 0x58, 0xff, 0x4d, 0x34, 0x3f, 0xb6, 0xd6, 0x60, 0xcd, 0xa9, 0x00, 0x85, 0x8c, 0x3b, 0xa5, 0x6e, + 0x17, 0x6c, 0x04, 0xbe, 0xcc, 0x16, 0x1e, 0x7b, 0xbd, 0x9e, 0x90, 0x89, 0x23, 0x30, 0x8c, 0x82, + 0x30, 0x4a, 0x16, 0xa7, 0xe1, 0x78, 0x3d, 0xad, 0x2e, 0x21, 0xd8, 0x96, 0xc3, 0x0a, 0xbe, 0x21, + 0x97, 0x33, 0x60, 0x4a, 0x70, 0xd1, 0xa6, 0x8a, 0x19, 0x08, 0x2f, 0xd6, 0x03, 0x9f, 0x28, 0xd1, + 0x22, 0x66, 0x20, 0xc8, 0x09, 0xd6, 0x00, 0x6d, 0x2b, 0x96, 0x70, 0x10, 0x86, 0x9a, 0x8e, 0x02, + 0xdd, 0x91, 0x59, 0x12, 0x92, 0x7a, 0x34, 0x33, 0x39, 0xeb, 0xdf, 0xf7, 0xa8, 0x87, 0x25, 0x68, + 0x00, 0x24, 0x40, 0x49, 0xdd, 0xa7, 0x48, 0x15, 0x8b, 0x0d, 0x16, 0xee, 0xa5, 0x7a, 0x54, 0xf8, + 0x95, 0xec, 0xc7, 0xdb, 0xf6, 0x80, 0xc1, 0x16, 0x59, 0xc6, 0xb7, 0xea, 0x8a, 0xb4, 0x9b, 0xa5, + 0x3c, 0xcb, 0x20, 0xa1, 0x18, 0x0f, 0x8a, 0x62, 0x8d, 0x80, 0x36, 0x3a, 0xbc, 0xbc, 0xd2, 0x58, + 0x1b, 0x8d, 0x16, 0x72, 0xd6, 0xff, 0xea, 0xcc, 0xeb, 0xb1, 0x75, 0x8a, 0xbc, 0x4f, 0x70, 0x9f, + 0xac, 0xbc, 0x0e, 0xa3, 0xa0, 0xe8, 0x9a, 0x41, 0x9c, 0x49, 0x8b, 0xb3, 0x38, 0x8c, 0x13, 0x39, + 0xaf, 0x0a, 0xe8, 0x29, 0x59, 0x74, 0x77, 0x49, 0xc1, 0x09, 0x53, 0x89, 0x7f, 0x7f, 0x9e, 0x17, + 0x52, 0x19, 0x26, 0x62, 0x08, 0xa7, 0xea, 0x29, 0x30, 0x67, 0xd1, 0x23, 0x0b, 0x6e, 0x95, 0xd8, + 0xa9, 0xa0, 0x83, 0xef, 0x1b, 0x64, 0x75, 0x88, 0x3c, 0x05, 0xa0, 0x0a, 0x7a, 0x20, 0xba, 0x43, + 0x29, 0x34, 0xeb, 0xa5, 0xb0, 0x3c, 0x90, 0xc2, 0x36, 0x40, 0xe4, 0x08, 0x06, 0xf2, 0x00, 0x12, + 0x0c, 0xa5, 0xc1, 0xb2, 0xa2, 0xc3, 0xc2, 0xe9, 0x9a, 0x9f, 0x7e, 0x80, 0xf5, 0x2e, 0x02, 0x06, + 0x31, 0x99, 0x36, 0x4c, 0x1f, 0x0f, 0xb3, 0x04, 0xf5, 0x58, 0xa6, 0x10, 0x71, 0x90, 0x04, 0x35, + 0xed, 0xb1, 0x8c, 0x27, 0xcc, 0x48, 0xa5, 0x69, 0x4f, 0x53, 0x17, 0x48, 0x0b, 0x50, 0x31, 0x5e, + 0x23, 0xc7, 0x1e, 0xfe, 0xbf, 0xa6, 0xa6, 0x67, 0x1c, 0x8f, 0xf4, 0x5d, 0xeb, 0xb2, 0xef, 0x08, + 0x5c, 0x32, 0xc1, 0x17, 0x64, 0xde, 0xb6, 0x78, 0x96, 0x17, 0x19, 0x68, 0x6a, 0x24, 0xd5, 0x31, + 0xcb, 0x80, 0xea, 0x58, 0x2a, 0xd0, 0xe1, 0x8c, 0xad, 0xcd, 0x6b, 0xd8, 0xe4, 0x9d, 0xc7, 0xa1, + 0x3c, 0x40, 0xfb, 0x81, 0x35, 0x07, 0x9f, 0x91, 0x39, 0x8c, 0x36, 0xb2, 0xa0, 0x5c, 0xa4, 0xa0, + 0x40, 0x59, 0x08, 0x9f, 0xfb, 0x15, 0x1b, 0x8c, 0xdd, 0xe1, 0x50, 0x16, 0x3b, 0xde, 0x7e, 0x28, + 0x3d, 0xf3, 0x97, 0x64, 0xb1, 0x8c, 0x4d, 0xa5, 0x82, 0x98, 0x69, 0x33, 0x1c, 0x7e, 0xd5, 0x86, + 0xcf, 0xba, 0xf0, 0xed, 0x33, 0x97, 0x0a, 0x61, 0x80, 0xdd, 0x5f, 0xaa, 0xc1, 0xf0, 0x6b, 0x83, + 0xec, 0xfe, 0x3a, 0x9d, 0xc5, 0x3e, 0x21, 0xcd, 0x58, 0x01, 0x33, 0xe0, 0x47, 0x54, 0x0a, 0x10, + 0x86, 0x6f, 0x39, 0x36, 0x26, 0x1d, 0x92, 0x9d, 0x4d, 0xdb, 0x00, 0xc1, 0xe7, 0x64, 0xae, 0xea, + 0x86, 0x09, 0x68, 0xfb, 0x39, 0x31, 0x51, 0x8e, 0x19, 0x84, 0xb3, 0x4e, 0xd2, 0xd2, 0x63, 0xd3, + 0x39, 0xec, 0xb1, 0xfe, 0x0e, 0x9a, 0x83, 0xaf, 0x49, 0x53, 0x41, 0x9b, 0x6b, 0xa3, 0x18, 0x36, + 0x22, 0x9b, 0xd8, 0xc2, 0x5b, 0x26, 0x36, 0x35, 0x88, 0x84, 0x99, 0xdd, 0x22, 0x41, 0x02, 0x29, + 0xeb, 0x66, 0x86, 0x16, 0xac, 0x0d, 0x34, 0xe3, 0x39, 0x37, 0xe1, 0xa2, 0xcd, 0xa8, 0xe9, 0x2d, + 0xfb, 0xac, 0x0d, 0x0f, 0xf0, 0x3c, 0xb8, 0x41, 0x26, 0x31, 0xed, 0x01, 0xcf, 0x25, 0xeb, 0x39, + 0x91, 0xb3, 0xfe, 0x99, 0x17, 0x7e, 0xc7, 0xd7, 0x66, 0x1c, 0x55, 0x10, 0x4b, 0x95, 0xf8, 0xa0, + 0x65, 0x3b, 0xf0, 0x66, 0x87, 0x07, 0x5e, 0x64, 0x3d, 0x1c, 0xc2, 0x1a, 0x69, 0x1e, 0x65, 0x32, + 0x3e, 0xd6, 0x58, 0xfc, 0x34, 0x97, 0xc2, 0x74, 0xc2, 0x15, 0xcb, 0x34, 0xe9, 0xce, 0xf7, 0x41, + 0xed, 0xe1, 0x29, 0x76, 0x80, 0xa2, 0xbc, 0x97, 0xae, 0xe0, 0xb0, 0xef, 0xbc, 0x53, 0xb3, 0x03, + 0x14, 0xae, 0x26, 0x76, 0x4a, 0x40, 0xec, 0x00, 0x15, 0x4d, 0x59, 0x9b, 0xe1, 0xf5, 0x9a, 0x1d, + 0xc0, 0xb3, 0x94, 0x85, 0x8c, 0x1b, 0x52, 0x45, 0xe2, 0xcb, 0x37, 0x5c, 0xad, 0xb9, 0x21, 0x79, + 0x0e, 0x5f, 0xed, 0x28, 0x57, 0xfc, 0xa6, 0x5c, 0x37, 0x6a, 0xca, 0x15, 0xff, 0x8d, 0x5c, 0xf1, + 0x1b, 0x72, 0xbd, 0x5b, 0x53, 0xae, 0xf8, 0x35, 0xb9, 0x1e, 0x92, 0xb1, 0x98, 0x0a, 0xa9, 0xf2, + 0xf0, 0xbd, 0x7a, 0xc8, 0xe7, 0xe3, 0x87, 0x52, 0xe5, 0xc1, 0xb7, 0x64, 0x0a, 0x0a, 0xcd, 0x33, + 0x29, 0x2a, 0xf5, 0xd7, 0x6a, 0xaa, 0xef, 0xf1, 0x4a, 0xf5, 0x1f, 0x91, 0x9b, 0x1d, 0x96, 0xa5, + 0xf6, 0xea, 0x17, 0x4a, 0xc6, 0xa0, 0xb5, 0x1f, 0xdb, 0x76, 0x5b, 0x64, 0x99, 0xa6, 0x20, 0x12, + 0x6a, 0x4b, 0x3c, 0x5c, 0xb7, 0xf5, 0xbe, 0x8a, 0x01, 0x7b, 0xac, 0xbf, 0xef, 0xdc, 0xed, 0x20, + 0x8e, 0xbc, 0xf3, 0x96, 0x48, 0xee, 0xa1, 0x2b, 0x16, 0x4e, 0x99, 0xb9, 0x66, 0x29, 0xd0, 0x84, + 0xf7, 0xc2, 0x0f, 0xfe, 0x9b, 0xd4, 0x0f, 0x58, 0x0a, 0x9b, 0xbc, 0x87, 0xdd, 0x31, 0x61, 0x86, + 0x51, 0x0d, 0x22, 0xc1, 0xad, 0x11, 0x9b, 0xd0, 0xad, 0xb7, 0xed, 0x8e, 0x88, 0x74, 0xe0, 0x80, + 0xb0, 0x07, 0xf9, 0x1f, 0x15, 0x90, 0x41, 0x0e, 0xc2, 0xb8, 0x3b, 0x5f, 0x55, 0xcd, 0xed, 0xaa, + 0x69, 0x6f, 0x79, 0xfb, 0x3e, 0xa8, 0xaa, 0x06, 0xfc, 0xb0, 0xc2, 0x15, 0xad, 0xe7, 0x1b, 0xb7, + 0x8b, 0x77, 0x1a, 0x6e, 0x54, 0xc3, 0xea, 0xae, 0xf5, 0xb0, 0x0d, 0x19, 0x01, 0x9c, 0x6e, 0xeb, + 0x64, 0xda, 0x8e, 0x3a, 0xa3, 0xf0, 0x95, 0xfc, 0x36, 0xde, 0xb2, 0x31, 0x53, 0x38, 0xe0, 0xec, + 0xb9, 0xeb, 0x4e, 0xbb, 0xa3, 0xe3, 0xa3, 0xcd, 0xf3, 0xbb, 0xa3, 0xe3, 0x73, 0xcd, 0xf9, 0xdd, + 0xd1, 0xf1, 0xf9, 0xe6, 0xc2, 0xee, 0xe8, 0xf8, 0xfb, 0xcd, 0xb5, 0xdd, 0xd1, 0xf1, 0x9b, 0xcd, + 0x75, 0xbb, 0x99, 0xbe, 0x41, 0x1f, 0xcd, 0xdb, 0x36, 0x98, 0xa6, 0x30, 0x90, 0x5e, 0xb9, 0x26, + 0x45, 0xab, 0x18, 0xa2, 0xc0, 0x28, 0xee, 0xa6, 0xac, 0x5b, 0xf4, 0xa8, 0x90, 0x22, 0x06, 0xed, + 0x57, 0xcb, 0x68, 0xa1, 0x9a, 0x45, 0xd5, 0x7a, 0x95, 0x40, 0xcc, 0x4e, 0xed, 0xd6, 0x1e, 0xdd, + 0xf8, 0x47, 0x08, 0x5f, 0xc4, 0xf7, 0xa2, 0x67, 0x2f, 0x97, 0x1a, 0xcf, 0x5f, 0x2e, 0x35, 0xfe, + 0x78, 0xb9, 0xd4, 0xf8, 0xe1, 0xd5, 0xd2, 0xc8, 0xf3, 0x57, 0x4b, 0x23, 0xbf, 0xbd, 0x5a, 0x1a, + 0x79, 0xf2, 0xc9, 0xbf, 0xac, 0x8a, 0x7e, 0xeb, 0xec, 0x87, 0xa8, 0x39, 0x2d, 0x40, 0x1f, 0x8d, + 0xd9, 0xdf, 0x8c, 0x1f, 0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0xbf, 0xb6, 0xe3, 0x83, 0xa2, 0x0e, + 0x00, 0x00, +} + +func (m *Params) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxStringLength != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxStringLength)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xf8 + } + if m.MaxActiveTopicsPerBlock != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxActiveTopicsPerBlock)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xf0 + } + if m.MaxElementsPerForecast != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxElementsPerForecast)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe8 + } + { + size := m.DataSendingFee.Size() + i -= size + if _, err := m.DataSendingFee.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + { + size := m.EpsilonSafeDiv.Size() + i -= size + if _, err := m.EpsilonSafeDiv.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xda + if m.HalfMaxProcessStakeRemovalsEndBlock != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.HalfMaxProcessStakeRemovalsEndBlock)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd0 + } + { + size := m.EpsilonReputer.Size() + i -= size + if _, err := m.EpsilonReputer.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xc2 + { + size := m.CNorm.Size() + i -= size + if _, err := m.CNorm.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xb2 + { + size := m.CRewardForecast.Size() + i -= size + if _, err := m.CRewardForecast.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xaa + { + size := m.CRewardInference.Size() + i -= size + if _, err := m.CRewardInference.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xa2 + { + size := m.PRewardReputer.Size() + i -= size + if _, err := m.PRewardReputer.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x9a + { + size := m.PRewardForecast.Size() + i -= size + if _, err := m.PRewardForecast.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x92 + { + size := m.PRewardInference.Size() + i -= size + if _, err := m.PRewardInference.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a + if m.BlocksPerMonth != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.BlocksPerMonth)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x80 + } + if m.MinEpochLengthRecordLimit != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MinEpochLengthRecordLimit)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf8 + } + if m.MaxPageLimit != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxPageLimit)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf0 + } + if m.DefaultPageLimit != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.DefaultPageLimit)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe8 + } + { + size := m.RegistrationFee.Size() + i -= size + if _, err := m.RegistrationFee.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe2 + if m.GradientDescentMaxIters != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.GradientDescentMaxIters)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc8 + } + { + size := m.CreateTopicFee.Size() + i -= size + if _, err := m.CreateTopicFee.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + if m.MaxTopReputersToReward != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxTopReputersToReward)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb8 + } + if m.MaxTopForecastersToReward != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxTopForecastersToReward)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb0 + } + if m.MaxTopInferersToReward != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxTopInferersToReward)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + } + if m.MaxSamplesToScaleScores != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxSamplesToScaleScores)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + { + size := m.ValidatorsVsAlloraPercentReward.Size() + i -= size + if _, err := m.ValidatorsVsAlloraPercentReward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + { + size := m.TaskRewardAlpha.Size() + i -= size + if _, err := m.TaskRewardAlpha.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + { + size := m.TopicRewardAlpha.Size() + i -= size + if _, err := m.TopicRewardAlpha.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + { + size := m.TopicRewardFeeRevenueImportance.Size() + i -= size + if _, err := m.TopicRewardFeeRevenueImportance.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + { + size := m.TopicRewardStakeImportance.Size() + i -= size + if _, err := m.TopicRewardStakeImportance.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + if m.MaxUnfulfilledReputerRequests != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxUnfulfilledReputerRequests)) + i-- + dAtA[i] = 0x70 + } + if m.MaxUnfulfilledWorkerRequests != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxUnfulfilledWorkerRequests)) + i-- + dAtA[i] = 0x68 + } + { + size := m.MinStakeFraction.Size() + i -= size + if _, err := m.MinStakeFraction.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + { + size := m.MaxGradientThreshold.Size() + i -= size + if _, err := m.MaxGradientThreshold.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + { + size := m.LearningRate.Size() + i -= size + if _, err := m.LearningRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + { + size := m.BetaEntropy.Size() + i -= size + if _, err := m.BetaEntropy.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + if m.MinEpochLength != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MinEpochLength)) + i-- + dAtA[i] = 0x38 + } + if m.RemoveStakeDelayWindow != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.RemoveStakeDelayWindow)) + i-- + dAtA[i] = 0x30 + } + { + size := m.RequiredMinimumStake.Size() + i -= size + if _, err := m.RequiredMinimumStake.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.MinTopicWeight.Size() + i -= size + if _, err := m.MinTopicWeight.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.MaxSerializedMsgLength != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxSerializedMsgLength)) + i-- + dAtA[i] = 0x10 + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintParams(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Version) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } + if m.MaxSerializedMsgLength != 0 { + n += 1 + sovParams(uint64(m.MaxSerializedMsgLength)) + } + l = m.MinTopicWeight.Size() + n += 1 + l + sovParams(uint64(l)) + l = m.RequiredMinimumStake.Size() + n += 1 + l + sovParams(uint64(l)) + if m.RemoveStakeDelayWindow != 0 { + n += 1 + sovParams(uint64(m.RemoveStakeDelayWindow)) + } + if m.MinEpochLength != 0 { + n += 1 + sovParams(uint64(m.MinEpochLength)) + } + l = m.BetaEntropy.Size() + n += 1 + l + sovParams(uint64(l)) + l = m.LearningRate.Size() + n += 1 + l + sovParams(uint64(l)) + l = m.MaxGradientThreshold.Size() + n += 1 + l + sovParams(uint64(l)) + l = m.MinStakeFraction.Size() + n += 1 + l + sovParams(uint64(l)) + if m.MaxUnfulfilledWorkerRequests != 0 { + n += 1 + sovParams(uint64(m.MaxUnfulfilledWorkerRequests)) + } + if m.MaxUnfulfilledReputerRequests != 0 { + n += 1 + sovParams(uint64(m.MaxUnfulfilledReputerRequests)) + } + l = m.TopicRewardStakeImportance.Size() + n += 1 + l + sovParams(uint64(l)) + l = m.TopicRewardFeeRevenueImportance.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.TopicRewardAlpha.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.TaskRewardAlpha.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.ValidatorsVsAlloraPercentReward.Size() + n += 2 + l + sovParams(uint64(l)) + if m.MaxSamplesToScaleScores != 0 { + n += 2 + sovParams(uint64(m.MaxSamplesToScaleScores)) + } + if m.MaxTopInferersToReward != 0 { + n += 2 + sovParams(uint64(m.MaxTopInferersToReward)) + } + if m.MaxTopForecastersToReward != 0 { + n += 2 + sovParams(uint64(m.MaxTopForecastersToReward)) + } + if m.MaxTopReputersToReward != 0 { + n += 2 + sovParams(uint64(m.MaxTopReputersToReward)) + } + l = m.CreateTopicFee.Size() + n += 2 + l + sovParams(uint64(l)) + if m.GradientDescentMaxIters != 0 { + n += 2 + sovParams(uint64(m.GradientDescentMaxIters)) + } + l = m.RegistrationFee.Size() + n += 2 + l + sovParams(uint64(l)) + if m.DefaultPageLimit != 0 { + n += 2 + sovParams(uint64(m.DefaultPageLimit)) + } + if m.MaxPageLimit != 0 { + n += 2 + sovParams(uint64(m.MaxPageLimit)) + } + if m.MinEpochLengthRecordLimit != 0 { + n += 2 + sovParams(uint64(m.MinEpochLengthRecordLimit)) + } + if m.BlocksPerMonth != 0 { + n += 2 + sovParams(uint64(m.BlocksPerMonth)) + } + l = m.PRewardInference.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.PRewardForecast.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.PRewardReputer.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.CRewardInference.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.CRewardForecast.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.CNorm.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.EpsilonReputer.Size() + n += 2 + l + sovParams(uint64(l)) + if m.HalfMaxProcessStakeRemovalsEndBlock != 0 { + n += 2 + sovParams(uint64(m.HalfMaxProcessStakeRemovalsEndBlock)) + } + l = m.EpsilonSafeDiv.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.DataSendingFee.Size() + n += 2 + l + sovParams(uint64(l)) + if m.MaxElementsPerForecast != 0 { + n += 2 + sovParams(uint64(m.MaxElementsPerForecast)) + } + if m.MaxActiveTopicsPerBlock != 0 { + n += 2 + sovParams(uint64(m.MaxActiveTopicsPerBlock)) + } + if m.MaxStringLength != 0 { + n += 2 + sovParams(uint64(m.MaxStringLength)) + } + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSerializedMsgLength", wireType) + } + m.MaxSerializedMsgLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxSerializedMsgLength |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinTopicWeight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MinTopicWeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequiredMinimumStake", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RequiredMinimumStake.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoveStakeDelayWindow", wireType) + } + m.RemoveStakeDelayWindow = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RemoveStakeDelayWindow |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinEpochLength", wireType) + } + m.MinEpochLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinEpochLength |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BetaEntropy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.BetaEntropy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LearningRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LearningRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxGradientThreshold", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxGradientThreshold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinStakeFraction", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MinStakeFraction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUnfulfilledWorkerRequests", wireType) + } + m.MaxUnfulfilledWorkerRequests = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxUnfulfilledWorkerRequests |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUnfulfilledReputerRequests", wireType) + } + m.MaxUnfulfilledReputerRequests = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxUnfulfilledReputerRequests |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicRewardStakeImportance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TopicRewardStakeImportance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicRewardFeeRevenueImportance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TopicRewardFeeRevenueImportance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicRewardAlpha", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TopicRewardAlpha.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskRewardAlpha", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TaskRewardAlpha.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorsVsAlloraPercentReward", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ValidatorsVsAlloraPercentReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSamplesToScaleScores", wireType) + } + m.MaxSamplesToScaleScores = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxSamplesToScaleScores |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTopInferersToReward", wireType) + } + m.MaxTopInferersToReward = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxTopInferersToReward |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 22: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTopForecastersToReward", wireType) + } + m.MaxTopForecastersToReward = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxTopForecastersToReward |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 23: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTopReputersToReward", wireType) + } + m.MaxTopReputersToReward = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxTopReputersToReward |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateTopicFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CreateTopicFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 25: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GradientDescentMaxIters", wireType) + } + m.GradientDescentMaxIters = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GradientDescentMaxIters |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 28: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegistrationFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RegistrationFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 29: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultPageLimit", wireType) + } + m.DefaultPageLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DefaultPageLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 30: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPageLimit", wireType) + } + m.MaxPageLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxPageLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 31: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinEpochLengthRecordLimit", wireType) + } + m.MinEpochLengthRecordLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinEpochLengthRecordLimit |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 32: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlocksPerMonth", wireType) + } + m.BlocksPerMonth = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlocksPerMonth |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 33: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PRewardInference", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PRewardInference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 34: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PRewardForecast", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PRewardForecast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 35: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PRewardReputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PRewardReputer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 36: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CRewardInference", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CRewardInference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 37: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CRewardForecast", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CRewardForecast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 38: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CNorm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CNorm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 40: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpsilonReputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EpsilonReputer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 42: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HalfMaxProcessStakeRemovalsEndBlock", wireType) + } + m.HalfMaxProcessStakeRemovalsEndBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HalfMaxProcessStakeRemovalsEndBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 43: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpsilonSafeDiv", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EpsilonSafeDiv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 44: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataSendingFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DataSendingFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 45: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxElementsPerForecast", wireType) + } + m.MaxElementsPerForecast = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxElementsPerForecast |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 46: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxActiveTopicsPerBlock", wireType) + } + m.MaxActiveTopicsPerBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxActiveTopicsPerBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 47: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxStringLength", wireType) + } + m.MaxStringLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxStringLength |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowParams + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/codec/allora-chain/x/emissions/v4types/reputer.pb.go b/codec/allora-chain/x/emissions/v4types/reputer.pb.go new file mode 100644 index 0000000..cf22212 --- /dev/null +++ b/codec/allora-chain/x/emissions/v4types/reputer.pb.go @@ -0,0 +1,2313 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: emissions/v3/reputer.proto + +package types + +import ( + bytes "bytes" + fmt "fmt" + github_com_allora_network_allora_chain_math "github.com/allora-network/allora-chain/math" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type WorkerAttributedValue struct { + Worker string `protobuf:"bytes,1,opt,name=worker,proto3" json:"worker,omitempty"` + Value github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,2,opt,name=value,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"value"` +} + +func (m *WorkerAttributedValue) Reset() { *m = WorkerAttributedValue{} } +func (m *WorkerAttributedValue) String() string { return proto.CompactTextString(m) } +func (*WorkerAttributedValue) ProtoMessage() {} +func (*WorkerAttributedValue) Descriptor() ([]byte, []int) { + return fileDescriptor_314531a75ebe144f, []int{0} +} +func (m *WorkerAttributedValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkerAttributedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WorkerAttributedValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WorkerAttributedValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkerAttributedValue.Merge(m, src) +} +func (m *WorkerAttributedValue) XXX_Size() int { + return m.Size() +} +func (m *WorkerAttributedValue) XXX_DiscardUnknown() { + xxx_messageInfo_WorkerAttributedValue.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkerAttributedValue proto.InternalMessageInfo + +func (m *WorkerAttributedValue) GetWorker() string { + if m != nil { + return m.Worker + } + return "" +} + +type WithheldWorkerAttributedValue struct { + Worker string `protobuf:"bytes,1,opt,name=worker,proto3" json:"worker,omitempty"` + Value github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,2,opt,name=value,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"value"` +} + +func (m *WithheldWorkerAttributedValue) Reset() { *m = WithheldWorkerAttributedValue{} } +func (m *WithheldWorkerAttributedValue) String() string { return proto.CompactTextString(m) } +func (*WithheldWorkerAttributedValue) ProtoMessage() {} +func (*WithheldWorkerAttributedValue) Descriptor() ([]byte, []int) { + return fileDescriptor_314531a75ebe144f, []int{1} +} +func (m *WithheldWorkerAttributedValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WithheldWorkerAttributedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WithheldWorkerAttributedValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WithheldWorkerAttributedValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_WithheldWorkerAttributedValue.Merge(m, src) +} +func (m *WithheldWorkerAttributedValue) XXX_Size() int { + return m.Size() +} +func (m *WithheldWorkerAttributedValue) XXX_DiscardUnknown() { + xxx_messageInfo_WithheldWorkerAttributedValue.DiscardUnknown(m) +} + +var xxx_messageInfo_WithheldWorkerAttributedValue proto.InternalMessageInfo + +func (m *WithheldWorkerAttributedValue) GetWorker() string { + if m != nil { + return m.Worker + } + return "" +} + +type OneOutInfererForecasterValues struct { + Forecaster string `protobuf:"bytes,3,opt,name=forecaster,proto3" json:"forecaster,omitempty"` + OneOutInfererValues []*WithheldWorkerAttributedValue `protobuf:"bytes,4,rep,name=one_out_inferer_values,json=oneOutInfererValues,proto3" json:"one_out_inferer_values,omitempty"` +} + +func (m *OneOutInfererForecasterValues) Reset() { *m = OneOutInfererForecasterValues{} } +func (m *OneOutInfererForecasterValues) String() string { return proto.CompactTextString(m) } +func (*OneOutInfererForecasterValues) ProtoMessage() {} +func (*OneOutInfererForecasterValues) Descriptor() ([]byte, []int) { + return fileDescriptor_314531a75ebe144f, []int{2} +} +func (m *OneOutInfererForecasterValues) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OneOutInfererForecasterValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OneOutInfererForecasterValues.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OneOutInfererForecasterValues) XXX_Merge(src proto.Message) { + xxx_messageInfo_OneOutInfererForecasterValues.Merge(m, src) +} +func (m *OneOutInfererForecasterValues) XXX_Size() int { + return m.Size() +} +func (m *OneOutInfererForecasterValues) XXX_DiscardUnknown() { + xxx_messageInfo_OneOutInfererForecasterValues.DiscardUnknown(m) +} + +var xxx_messageInfo_OneOutInfererForecasterValues proto.InternalMessageInfo + +func (m *OneOutInfererForecasterValues) GetForecaster() string { + if m != nil { + return m.Forecaster + } + return "" +} + +func (m *OneOutInfererForecasterValues) GetOneOutInfererValues() []*WithheldWorkerAttributedValue { + if m != nil { + return m.OneOutInfererValues + } + return nil +} + +// These losses and inferences are calculated per reputer or by the network +// The `m`s in the comments below exist for when they're made by reputers, +// but they may be absent implying that they were made by the network +type ValueBundle struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + ReputerRequestNonce *ReputerRequestNonce `protobuf:"bytes,2,opt,name=reputer_request_nonce,json=reputerRequestNonce,proto3" json:"reputer_request_nonce,omitempty"` + Reputer string `protobuf:"bytes,3,opt,name=reputer,proto3" json:"reputer,omitempty"` + ExtraData []byte `protobuf:"bytes,4,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` + // R_im || log10 L_im || I_i + CombinedValue github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,5,opt,name=combined_value,json=combinedValue,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"combined_value"` + // R_ijm || log10 L_ijm || I_ij + InfererValues []*WorkerAttributedValue `protobuf:"bytes,6,rep,name=inferer_values,json=infererValues,proto3" json:"inferer_values,omitempty"` + // R_ikm || log10 L_ikm || I_ik + ForecasterValues []*WorkerAttributedValue `protobuf:"bytes,7,rep,name=forecaster_values,json=forecasterValues,proto3" json:"forecaster_values,omitempty"` + // R^-_im || log10 L^-_im || I^-_i + NaiveValue github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,8,opt,name=naive_value,json=naiveValue,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"naive_value"` + // Note: forecast-implied inferences are recomputed for each left-out + // inference + OneOutInfererValues []*WithheldWorkerAttributedValue `protobuf:"bytes,9,rep,name=one_out_inferer_values,json=oneOutInfererValues,proto3" json:"one_out_inferer_values,omitempty"` + // R^-_ilm || log10 L^-_ilm || I^-_il where l = any k + OneOutForecasterValues []*WithheldWorkerAttributedValue `protobuf:"bytes,10,rep,name=one_out_forecaster_values,json=oneOutForecasterValues,proto3" json:"one_out_forecaster_values,omitempty"` + // R^+_ikm || log10 L^+_ikm || I^+_ik + // aka one_in_forecaster_values because equivalent to using only one + // forecast-implied inference + OneInForecasterValues []*WorkerAttributedValue `protobuf:"bytes,11,rep,name=one_in_forecaster_values,json=oneInForecasterValues,proto3" json:"one_in_forecaster_values,omitempty"` + // R^-_ilm || log10 L^-_ilm || I^-_il where l = any j + // log10 L^-_j'ikm || I^-_j'ik + OneOutInfererForecasterValues []*OneOutInfererForecasterValues `protobuf:"bytes,12,rep,name=one_out_inferer_forecaster_values,json=oneOutInfererForecasterValues,proto3" json:"one_out_inferer_forecaster_values,omitempty"` +} + +func (m *ValueBundle) Reset() { *m = ValueBundle{} } +func (m *ValueBundle) String() string { return proto.CompactTextString(m) } +func (*ValueBundle) ProtoMessage() {} +func (*ValueBundle) Descriptor() ([]byte, []int) { + return fileDescriptor_314531a75ebe144f, []int{3} +} +func (m *ValueBundle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValueBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValueBundle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ValueBundle) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValueBundle.Merge(m, src) +} +func (m *ValueBundle) XXX_Size() int { + return m.Size() +} +func (m *ValueBundle) XXX_DiscardUnknown() { + xxx_messageInfo_ValueBundle.DiscardUnknown(m) +} + +var xxx_messageInfo_ValueBundle proto.InternalMessageInfo + +func (m *ValueBundle) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *ValueBundle) GetReputerRequestNonce() *ReputerRequestNonce { + if m != nil { + return m.ReputerRequestNonce + } + return nil +} + +func (m *ValueBundle) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +func (m *ValueBundle) GetExtraData() []byte { + if m != nil { + return m.ExtraData + } + return nil +} + +func (m *ValueBundle) GetInfererValues() []*WorkerAttributedValue { + if m != nil { + return m.InfererValues + } + return nil +} + +func (m *ValueBundle) GetForecasterValues() []*WorkerAttributedValue { + if m != nil { + return m.ForecasterValues + } + return nil +} + +func (m *ValueBundle) GetOneOutInfererValues() []*WithheldWorkerAttributedValue { + if m != nil { + return m.OneOutInfererValues + } + return nil +} + +func (m *ValueBundle) GetOneOutForecasterValues() []*WithheldWorkerAttributedValue { + if m != nil { + return m.OneOutForecasterValues + } + return nil +} + +func (m *ValueBundle) GetOneInForecasterValues() []*WorkerAttributedValue { + if m != nil { + return m.OneInForecasterValues + } + return nil +} + +func (m *ValueBundle) GetOneOutInfererForecasterValues() []*OneOutInfererForecasterValues { + if m != nil { + return m.OneOutInfererForecasterValues + } + return nil +} + +// For when the bundle is computed on a per-reputer basis (ie.. if there is an +// index `m` in the above) +type ReputerValueBundle struct { + ValueBundle *ValueBundle `protobuf:"bytes,1,opt,name=value_bundle,json=valueBundle,proto3" json:"value_bundle,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` +} + +func (m *ReputerValueBundle) Reset() { *m = ReputerValueBundle{} } +func (m *ReputerValueBundle) String() string { return proto.CompactTextString(m) } +func (*ReputerValueBundle) ProtoMessage() {} +func (*ReputerValueBundle) Descriptor() ([]byte, []int) { + return fileDescriptor_314531a75ebe144f, []int{4} +} +func (m *ReputerValueBundle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputerValueBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputerValueBundle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReputerValueBundle) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputerValueBundle.Merge(m, src) +} +func (m *ReputerValueBundle) XXX_Size() int { + return m.Size() +} +func (m *ReputerValueBundle) XXX_DiscardUnknown() { + xxx_messageInfo_ReputerValueBundle.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputerValueBundle proto.InternalMessageInfo + +func (m *ReputerValueBundle) GetValueBundle() *ValueBundle { + if m != nil { + return m.ValueBundle + } + return nil +} + +func (m *ReputerValueBundle) GetSignature() []byte { + if m != nil { + return m.Signature + } + return nil +} + +func (m *ReputerValueBundle) GetPubkey() string { + if m != nil { + return m.Pubkey + } + return "" +} + +type ReputerValueBundles struct { + ReputerValueBundles []*ReputerValueBundle `protobuf:"bytes,1,rep,name=reputer_value_bundles,json=reputerValueBundles,proto3" json:"reputer_value_bundles,omitempty"` +} + +func (m *ReputerValueBundles) Reset() { *m = ReputerValueBundles{} } +func (m *ReputerValueBundles) String() string { return proto.CompactTextString(m) } +func (*ReputerValueBundles) ProtoMessage() {} +func (*ReputerValueBundles) Descriptor() ([]byte, []int) { + return fileDescriptor_314531a75ebe144f, []int{5} +} +func (m *ReputerValueBundles) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputerValueBundles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputerValueBundles.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReputerValueBundles) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputerValueBundles.Merge(m, src) +} +func (m *ReputerValueBundles) XXX_Size() int { + return m.Size() +} +func (m *ReputerValueBundles) XXX_DiscardUnknown() { + xxx_messageInfo_ReputerValueBundles.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputerValueBundles proto.InternalMessageInfo + +func (m *ReputerValueBundles) GetReputerValueBundles() []*ReputerValueBundle { + if m != nil { + return m.ReputerValueBundles + } + return nil +} + +func init() { + proto.RegisterType((*WorkerAttributedValue)(nil), "emissions.v3.WorkerAttributedValue") + proto.RegisterType((*WithheldWorkerAttributedValue)(nil), "emissions.v3.WithheldWorkerAttributedValue") + proto.RegisterType((*OneOutInfererForecasterValues)(nil), "emissions.v3.OneOutInfererForecasterValues") + proto.RegisterType((*ValueBundle)(nil), "emissions.v3.ValueBundle") + proto.RegisterType((*ReputerValueBundle)(nil), "emissions.v3.ReputerValueBundle") + proto.RegisterType((*ReputerValueBundles)(nil), "emissions.v3.ReputerValueBundles") +} + +func init() { proto.RegisterFile("emissions/v3/reputer.proto", fileDescriptor_314531a75ebe144f) } + +var fileDescriptor_314531a75ebe144f = []byte{ + // 665 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x41, 0x4f, 0x13, 0x41, + 0x14, 0xee, 0x4a, 0xa1, 0xf4, 0x6d, 0x21, 0x3a, 0x08, 0x59, 0x88, 0x5d, 0x0a, 0x5e, 0x48, 0x8c, + 0xdd, 0x04, 0x0e, 0x1a, 0xe3, 0x45, 0x42, 0x4c, 0x30, 0x51, 0xcc, 0x46, 0xc5, 0x18, 0xe3, 0x3a, + 0xdd, 0x7d, 0x6d, 0x27, 0xb4, 0x33, 0x75, 0x76, 0xb6, 0xc2, 0xdd, 0xa3, 0x31, 0xfe, 0x04, 0x6f, + 0xfe, 0x02, 0xff, 0x03, 0x47, 0x8e, 0xc6, 0x03, 0x31, 0x70, 0xf1, 0x67, 0x98, 0x9d, 0xdd, 0xd2, + 0xa5, 0xad, 0xa4, 0x06, 0x0f, 0xde, 0xf6, 0xbd, 0x79, 0xf3, 0xbe, 0xef, 0x7d, 0xf3, 0xde, 0x5b, + 0x58, 0xc2, 0x36, 0x0b, 0x43, 0x26, 0x78, 0xe8, 0x74, 0x37, 0x1c, 0x89, 0x9d, 0x48, 0xa1, 0xac, + 0x76, 0xa4, 0x50, 0x82, 0x94, 0xce, 0xce, 0xaa, 0xdd, 0x8d, 0x25, 0xeb, 0x5c, 0x24, 0x17, 0xdc, + 0xc7, 0x24, 0x6e, 0xe9, 0x7a, 0x43, 0x34, 0x84, 0xfe, 0x74, 0xe2, 0xaf, 0xc4, 0xbb, 0xfa, 0xc1, + 0x80, 0xf9, 0x5d, 0x21, 0xf7, 0x50, 0x3e, 0x50, 0x4a, 0xb2, 0x5a, 0xa4, 0x30, 0x78, 0x41, 0x5b, + 0x11, 0x92, 0x05, 0x98, 0x7a, 0xaf, 0x0f, 0x2c, 0xa3, 0x62, 0xac, 0x15, 0xdd, 0xd4, 0x22, 0x8f, + 0x61, 0xb2, 0x1b, 0x07, 0x58, 0x57, 0x62, 0xf7, 0xe6, 0x9d, 0xc3, 0xe3, 0xe5, 0xdc, 0x8f, 0xe3, + 0x65, 0xa7, 0xc1, 0x54, 0x33, 0xaa, 0x55, 0x7d, 0xd1, 0x76, 0x68, 0xab, 0x25, 0x24, 0xbd, 0xcd, + 0x51, 0xc5, 0x77, 0x7a, 0xa6, 0xdf, 0xa4, 0x8c, 0x3b, 0x6d, 0xaa, 0x9a, 0xd5, 0x2d, 0xf4, 0xdd, + 0x24, 0xcb, 0xbd, 0xfc, 0xaf, 0x2f, 0xcb, 0xc6, 0xea, 0x47, 0x03, 0xca, 0xbb, 0x4c, 0x35, 0x9b, + 0xd8, 0x0a, 0xfe, 0x03, 0x3a, 0x5f, 0x0d, 0x28, 0xef, 0x70, 0xdc, 0x89, 0xd4, 0x36, 0xaf, 0xa3, + 0x44, 0xf9, 0x50, 0x48, 0xf4, 0x69, 0xa8, 0x50, 0x6a, 0x36, 0x21, 0xb1, 0x01, 0xea, 0x67, 0x3e, + 0x6b, 0x42, 0x53, 0xca, 0x78, 0xc8, 0x5b, 0x58, 0x10, 0x1c, 0x3d, 0x11, 0x29, 0x8f, 0x25, 0x29, + 0x3c, 0x0d, 0x10, 0x5a, 0xf9, 0xca, 0xc4, 0x9a, 0xb9, 0x7e, 0xab, 0x9a, 0x7d, 0xb6, 0xea, 0x85, + 0xb5, 0xbb, 0x73, 0x22, 0xcb, 0x25, 0x61, 0x90, 0x32, 0xfd, 0x56, 0x00, 0x53, 0x3b, 0x36, 0x23, + 0x1e, 0xb4, 0x90, 0x2c, 0xc2, 0xb4, 0x12, 0x1d, 0xe6, 0x7b, 0x2c, 0xd0, 0x42, 0xe5, 0xdd, 0x82, + 0xb6, 0xb7, 0x03, 0xf2, 0x1c, 0xe6, 0xd3, 0xce, 0xf1, 0x24, 0xbe, 0x8b, 0x30, 0x54, 0x9e, 0xee, + 0x0f, 0xad, 0x9c, 0xb9, 0xbe, 0x72, 0x9e, 0x91, 0x9b, 0x84, 0xba, 0x49, 0xe4, 0x93, 0x38, 0xd0, + 0x9d, 0x93, 0xc3, 0x4e, 0x62, 0x41, 0x21, 0x75, 0xa7, 0x32, 0xf4, 0x4c, 0x52, 0x06, 0xc0, 0x7d, + 0x25, 0xa9, 0x17, 0x50, 0x45, 0xad, 0x7c, 0xc5, 0x58, 0x2b, 0xb9, 0x45, 0xed, 0xd9, 0xa2, 0x8a, + 0x92, 0x37, 0x30, 0xeb, 0x8b, 0x76, 0x8d, 0x71, 0x0c, 0x12, 0x6d, 0xac, 0xc9, 0xcb, 0x3d, 0xe1, + 0x4c, 0x2f, 0x5d, 0xd2, 0x31, 0x8f, 0x60, 0x76, 0x40, 0xfa, 0x29, 0x2d, 0xfd, 0xcd, 0x01, 0xe9, + 0x47, 0x4a, 0x3e, 0xc3, 0xb2, 0x62, 0x93, 0xa7, 0x70, 0xad, 0xff, 0xb8, 0xbd, 0x74, 0x85, 0xf1, + 0xd3, 0x5d, 0xad, 0x0f, 0x36, 0xd0, 0x4b, 0x30, 0x39, 0x65, 0x5d, 0x4c, 0x4b, 0x9f, 0xbe, 0x5c, + 0xe9, 0xa0, 0x73, 0x25, 0x75, 0xff, 0xb9, 0xf5, 0x8a, 0xff, 0xa6, 0xf5, 0x48, 0x1d, 0x16, 0x7b, + 0x08, 0xc3, 0xaa, 0xc0, 0xdf, 0x83, 0x2c, 0x24, 0x20, 0x43, 0x43, 0xf6, 0x1a, 0xac, 0x18, 0x87, + 0xf1, 0x11, 0x30, 0xe6, 0xf8, 0xe2, 0xcf, 0x0b, 0x8e, 0xdb, 0x7c, 0x28, 0x7b, 0x04, 0x2b, 0x83, + 0x3a, 0x0d, 0xc3, 0x94, 0x46, 0x55, 0x73, 0xe1, 0x6a, 0x70, 0xcb, 0xe2, 0xa2, 0xe3, 0x74, 0x6e, + 0x3f, 0x19, 0x40, 0xd2, 0x11, 0xcb, 0x8e, 0xef, 0x7d, 0x28, 0x69, 0x60, 0xaf, 0xa6, 0x6d, 0x3d, + 0xc2, 0xe6, 0xfa, 0xe2, 0x79, 0xf8, 0xcc, 0x05, 0xd7, 0xec, 0x66, 0x6e, 0xdf, 0x80, 0x62, 0xc8, + 0x1a, 0x9c, 0xaa, 0x48, 0x26, 0x53, 0x5d, 0x72, 0xfb, 0x8e, 0x78, 0x83, 0x76, 0xa2, 0xda, 0x1e, + 0x1e, 0xa4, 0x73, 0x9a, 0x5a, 0x29, 0xa1, 0x3d, 0x98, 0x1b, 0xe6, 0x13, 0x92, 0x67, 0xfd, 0xa5, + 0x91, 0x25, 0x16, 0x5a, 0x86, 0x16, 0xa6, 0x32, 0x72, 0x69, 0x64, 0x09, 0xf6, 0x76, 0x46, 0x36, + 0xeb, 0xa6, 0x7b, 0x78, 0x62, 0x1b, 0x47, 0x27, 0xb6, 0xf1, 0xf3, 0xc4, 0x36, 0x3e, 0x9f, 0xda, + 0xb9, 0xa3, 0x53, 0x3b, 0xf7, 0xfd, 0xd4, 0xce, 0xbd, 0xba, 0x3b, 0x66, 0xe7, 0xef, 0x3b, 0xfd, + 0x1f, 0x9d, 0x3a, 0xe8, 0x60, 0x58, 0x9b, 0xd2, 0x3f, 0xb4, 0x8d, 0xdf, 0x01, 0x00, 0x00, 0xff, + 0xff, 0xe0, 0x07, 0x4c, 0xeb, 0x2c, 0x07, 0x00, 0x00, +} + +func (this *WorkerAttributedValue) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*WorkerAttributedValue) + if !ok { + that2, ok := that.(WorkerAttributedValue) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Worker != that1.Worker { + return false + } + if !this.Value.Equal(that1.Value) { + return false + } + return true +} +func (this *WithheldWorkerAttributedValue) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*WithheldWorkerAttributedValue) + if !ok { + that2, ok := that.(WithheldWorkerAttributedValue) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Worker != that1.Worker { + return false + } + if !this.Value.Equal(that1.Value) { + return false + } + return true +} +func (this *OneOutInfererForecasterValues) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*OneOutInfererForecasterValues) + if !ok { + that2, ok := that.(OneOutInfererForecasterValues) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Forecaster != that1.Forecaster { + return false + } + if len(this.OneOutInfererValues) != len(that1.OneOutInfererValues) { + return false + } + for i := range this.OneOutInfererValues { + if !this.OneOutInfererValues[i].Equal(that1.OneOutInfererValues[i]) { + return false + } + } + return true +} +func (this *ValueBundle) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ValueBundle) + if !ok { + that2, ok := that.(ValueBundle) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TopicId != that1.TopicId { + return false + } + if !this.ReputerRequestNonce.Equal(that1.ReputerRequestNonce) { + return false + } + if this.Reputer != that1.Reputer { + return false + } + if !bytes.Equal(this.ExtraData, that1.ExtraData) { + return false + } + if !this.CombinedValue.Equal(that1.CombinedValue) { + return false + } + if len(this.InfererValues) != len(that1.InfererValues) { + return false + } + for i := range this.InfererValues { + if !this.InfererValues[i].Equal(that1.InfererValues[i]) { + return false + } + } + if len(this.ForecasterValues) != len(that1.ForecasterValues) { + return false + } + for i := range this.ForecasterValues { + if !this.ForecasterValues[i].Equal(that1.ForecasterValues[i]) { + return false + } + } + if !this.NaiveValue.Equal(that1.NaiveValue) { + return false + } + if len(this.OneOutInfererValues) != len(that1.OneOutInfererValues) { + return false + } + for i := range this.OneOutInfererValues { + if !this.OneOutInfererValues[i].Equal(that1.OneOutInfererValues[i]) { + return false + } + } + if len(this.OneOutForecasterValues) != len(that1.OneOutForecasterValues) { + return false + } + for i := range this.OneOutForecasterValues { + if !this.OneOutForecasterValues[i].Equal(that1.OneOutForecasterValues[i]) { + return false + } + } + if len(this.OneInForecasterValues) != len(that1.OneInForecasterValues) { + return false + } + for i := range this.OneInForecasterValues { + if !this.OneInForecasterValues[i].Equal(that1.OneInForecasterValues[i]) { + return false + } + } + if len(this.OneOutInfererForecasterValues) != len(that1.OneOutInfererForecasterValues) { + return false + } + for i := range this.OneOutInfererForecasterValues { + if !this.OneOutInfererForecasterValues[i].Equal(that1.OneOutInfererForecasterValues[i]) { + return false + } + } + return true +} +func (this *ReputerValueBundle) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ReputerValueBundle) + if !ok { + that2, ok := that.(ReputerValueBundle) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.ValueBundle.Equal(that1.ValueBundle) { + return false + } + if !bytes.Equal(this.Signature, that1.Signature) { + return false + } + if this.Pubkey != that1.Pubkey { + return false + } + return true +} +func (m *WorkerAttributedValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkerAttributedValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkerAttributedValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *WithheldWorkerAttributedValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WithheldWorkerAttributedValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WithheldWorkerAttributedValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OneOutInfererForecasterValues) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OneOutInfererForecasterValues) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OneOutInfererForecasterValues) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OneOutInfererValues) > 0 { + for iNdEx := len(m.OneOutInfererValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneOutInfererValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Forecaster) > 0 { + i -= len(m.Forecaster) + copy(dAtA[i:], m.Forecaster) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Forecaster))) + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} + +func (m *ValueBundle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ValueBundle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValueBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OneOutInfererForecasterValues) > 0 { + for iNdEx := len(m.OneOutInfererForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneOutInfererForecasterValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if len(m.OneInForecasterValues) > 0 { + for iNdEx := len(m.OneInForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneInForecasterValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.OneOutForecasterValues) > 0 { + for iNdEx := len(m.OneOutForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneOutForecasterValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.OneOutInfererValues) > 0 { + for iNdEx := len(m.OneOutInfererValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneOutInfererValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + { + size := m.NaiveValue.Size() + i -= size + if _, err := m.NaiveValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + if len(m.ForecasterValues) > 0 { + for iNdEx := len(m.ForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ForecasterValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.InfererValues) > 0 { + for iNdEx := len(m.InfererValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InfererValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + { + size := m.CombinedValue.Size() + i -= size + if _, err := m.CombinedValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.ExtraData) > 0 { + i -= len(m.ExtraData) + copy(dAtA[i:], m.ExtraData) + i = encodeVarintReputer(dAtA, i, uint64(len(m.ExtraData))) + i-- + dAtA[i] = 0x22 + } + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x1a + } + if m.ReputerRequestNonce != nil { + { + size, err := m.ReputerRequestNonce.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintReputer(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ReputerValueBundle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReputerValueBundle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputerValueBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Pubkey) > 0 { + i -= len(m.Pubkey) + copy(dAtA[i:], m.Pubkey) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Pubkey))) + i-- + dAtA[i] = 0x1a + } + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if m.ValueBundle != nil { + { + size, err := m.ValueBundle.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ReputerValueBundles) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReputerValueBundles) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputerValueBundles) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReputerValueBundles) > 0 { + for iNdEx := len(m.ReputerValueBundles) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ReputerValueBundles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintReputer(dAtA []byte, offset int, v uint64) int { + offset -= sovReputer(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *WorkerAttributedValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Worker) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = m.Value.Size() + n += 1 + l + sovReputer(uint64(l)) + return n +} + +func (m *WithheldWorkerAttributedValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Worker) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = m.Value.Size() + n += 1 + l + sovReputer(uint64(l)) + return n +} + +func (m *OneOutInfererForecasterValues) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Forecaster) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + if len(m.OneOutInfererValues) > 0 { + for _, e := range m.OneOutInfererValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + return n +} + +func (m *ValueBundle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovReputer(uint64(m.TopicId)) + } + if m.ReputerRequestNonce != nil { + l = m.ReputerRequestNonce.Size() + n += 1 + l + sovReputer(uint64(l)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = len(m.ExtraData) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = m.CombinedValue.Size() + n += 1 + l + sovReputer(uint64(l)) + if len(m.InfererValues) > 0 { + for _, e := range m.InfererValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + if len(m.ForecasterValues) > 0 { + for _, e := range m.ForecasterValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + l = m.NaiveValue.Size() + n += 1 + l + sovReputer(uint64(l)) + if len(m.OneOutInfererValues) > 0 { + for _, e := range m.OneOutInfererValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + if len(m.OneOutForecasterValues) > 0 { + for _, e := range m.OneOutForecasterValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + if len(m.OneInForecasterValues) > 0 { + for _, e := range m.OneInForecasterValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + if len(m.OneOutInfererForecasterValues) > 0 { + for _, e := range m.OneOutInfererForecasterValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + return n +} + +func (m *ReputerValueBundle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValueBundle != nil { + l = m.ValueBundle.Size() + n += 1 + l + sovReputer(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = len(m.Pubkey) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + return n +} + +func (m *ReputerValueBundles) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ReputerValueBundles) > 0 { + for _, e := range m.ReputerValueBundles { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + return n +} + +func sovReputer(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozReputer(x uint64) (n int) { + return sovReputer(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *WorkerAttributedValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkerAttributedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkerAttributedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WithheldWorkerAttributedValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WithheldWorkerAttributedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WithheldWorkerAttributedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OneOutInfererForecasterValues) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OneOutInfererForecasterValues: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OneOutInfererForecasterValues: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutInfererValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutInfererValues = append(m.OneOutInfererValues, &WithheldWorkerAttributedValue{}) + if err := m.OneOutInfererValues[len(m.OneOutInfererValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValueBundle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ValueBundle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValueBundle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerRequestNonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReputerRequestNonce == nil { + m.ReputerRequestNonce = &ReputerRequestNonce{} + } + if err := m.ReputerRequestNonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtraData", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtraData = append(m.ExtraData[:0], dAtA[iNdEx:postIndex]...) + if m.ExtraData == nil { + m.ExtraData = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CombinedValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CombinedValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InfererValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InfererValues = append(m.InfererValues, &WorkerAttributedValue{}) + if err := m.InfererValues[len(m.InfererValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ForecasterValues = append(m.ForecasterValues, &WorkerAttributedValue{}) + if err := m.ForecasterValues[len(m.ForecasterValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NaiveValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NaiveValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutInfererValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutInfererValues = append(m.OneOutInfererValues, &WithheldWorkerAttributedValue{}) + if err := m.OneOutInfererValues[len(m.OneOutInfererValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutForecasterValues = append(m.OneOutForecasterValues, &WithheldWorkerAttributedValue{}) + if err := m.OneOutForecasterValues[len(m.OneOutForecasterValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneInForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneInForecasterValues = append(m.OneInForecasterValues, &WorkerAttributedValue{}) + if err := m.OneInForecasterValues[len(m.OneInForecasterValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutInfererForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutInfererForecasterValues = append(m.OneOutInfererForecasterValues, &OneOutInfererForecasterValues{}) + if err := m.OneOutInfererForecasterValues[len(m.OneOutInfererForecasterValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReputerValueBundle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReputerValueBundle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputerValueBundle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueBundle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValueBundle == nil { + m.ValueBundle = &ValueBundle{} + } + if err := m.ValueBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pubkey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReputerValueBundles) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReputerValueBundles: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputerValueBundles: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReputerValueBundles = append(m.ReputerValueBundles, &ReputerValueBundle{}) + if err := m.ReputerValueBundles[len(m.ReputerValueBundles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipReputer(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReputer + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReputer + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReputer + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthReputer + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupReputer + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthReputer + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthReputer = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowReputer = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupReputer = fmt.Errorf("proto: unexpected end of group") +) diff --git a/codec/allora-chain/x/emissions/v4types/tx.pb.go b/codec/allora-chain/x/emissions/v4types/tx.pb.go new file mode 100644 index 0000000..046aee8 --- /dev/null +++ b/codec/allora-chain/x/emissions/v4types/tx.pb.go @@ -0,0 +1,11068 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: emissions/v4/tx.proto + +package types + +import ( + context "context" + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + github_com_allora_network_allora_chain_math "github.com/allora-network/allora-chain/math" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Because gocosmos, grpc-gateway, and go-pulsar do not support optional fields +// and including google themselves +// https://cloud.google.com/apis/design/design_patterns.md#optional_primitive_fields +// we instead use a repeated field with a single element to represent an +// optional field and if the repeated field is empty, it is considered to be the +// same as if the field was not set +type OptionalParams struct { + Version []string `protobuf:"bytes,1,rep,name=version,proto3" json:"version,omitempty"` + MaxSerializedMsgLength []int64 `protobuf:"varint,2,rep,packed,name=max_serialized_msg_length,json=maxSerializedMsgLength,proto3" json:"max_serialized_msg_length,omitempty"` + MinTopicWeight []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,3,rep,name=min_topic_weight,json=minTopicWeight,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_topic_weight"` + RequiredMinimumStake []cosmossdk_io_math.Int `protobuf:"bytes,5,rep,name=required_minimum_stake,json=requiredMinimumStake,proto3,customtype=cosmossdk.io/math.Int" json:"required_minimum_stake"` + RemoveStakeDelayWindow []int64 `protobuf:"varint,6,rep,packed,name=remove_stake_delay_window,json=removeStakeDelayWindow,proto3" json:"remove_stake_delay_window,omitempty"` + MinEpochLength []int64 `protobuf:"varint,7,rep,packed,name=min_epoch_length,json=minEpochLength,proto3" json:"min_epoch_length,omitempty"` + BetaEntropy []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,8,rep,name=beta_entropy,json=betaEntropy,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"beta_entropy"` + LearningRate []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,9,rep,name=learning_rate,json=learningRate,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"learning_rate"` + MaxGradientThreshold []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,10,rep,name=max_gradient_threshold,json=maxGradientThreshold,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"max_gradient_threshold"` + MinStakeFraction []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,11,rep,name=min_stake_fraction,json=minStakeFraction,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_stake_fraction"` + MaxUnfulfilledWorkerRequests []uint64 `protobuf:"varint,13,rep,packed,name=max_unfulfilled_worker_requests,json=maxUnfulfilledWorkerRequests,proto3" json:"max_unfulfilled_worker_requests,omitempty"` + MaxUnfulfilledReputerRequests []uint64 `protobuf:"varint,14,rep,packed,name=max_unfulfilled_reputer_requests,json=maxUnfulfilledReputerRequests,proto3" json:"max_unfulfilled_reputer_requests,omitempty"` + TopicRewardStakeImportance []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,15,rep,name=topic_reward_stake_importance,json=topicRewardStakeImportance,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_stake_importance"` + TopicRewardFeeRevenueImportance []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,16,rep,name=topic_reward_fee_revenue_importance,json=topicRewardFeeRevenueImportance,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_fee_revenue_importance"` + TopicRewardAlpha []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,17,rep,name=topic_reward_alpha,json=topicRewardAlpha,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_alpha"` + TaskRewardAlpha []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,18,rep,name=task_reward_alpha,json=taskRewardAlpha,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"task_reward_alpha"` + ValidatorsVsAlloraPercentReward []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,19,rep,name=validators_vs_allora_percent_reward,json=validatorsVsAlloraPercentReward,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"validators_vs_allora_percent_reward"` + MaxSamplesToScaleScores []uint64 `protobuf:"varint,20,rep,packed,name=max_samples_to_scale_scores,json=maxSamplesToScaleScores,proto3" json:"max_samples_to_scale_scores,omitempty"` + MaxTopInferersToReward []uint64 `protobuf:"varint,21,rep,packed,name=max_top_inferers_to_reward,json=maxTopInferersToReward,proto3" json:"max_top_inferers_to_reward,omitempty"` + MaxTopForecastersToReward []uint64 `protobuf:"varint,22,rep,packed,name=max_top_forecasters_to_reward,json=maxTopForecastersToReward,proto3" json:"max_top_forecasters_to_reward,omitempty"` + MaxTopReputersToReward []uint64 `protobuf:"varint,23,rep,packed,name=max_top_reputers_to_reward,json=maxTopReputersToReward,proto3" json:"max_top_reputers_to_reward,omitempty"` + CreateTopicFee []cosmossdk_io_math.Int `protobuf:"bytes,24,rep,name=create_topic_fee,json=createTopicFee,proto3,customtype=cosmossdk.io/math.Int" json:"create_topic_fee"` + GradientDescentMaxIters []uint64 `protobuf:"varint,25,rep,packed,name=gradient_descent_max_iters,json=gradientDescentMaxIters,proto3" json:"gradient_descent_max_iters,omitempty"` + RegistrationFee []cosmossdk_io_math.Int `protobuf:"bytes,28,rep,name=registration_fee,json=registrationFee,proto3,customtype=cosmossdk.io/math.Int" json:"registration_fee"` + DefaultPageLimit []uint64 `protobuf:"varint,29,rep,packed,name=default_page_limit,json=defaultPageLimit,proto3" json:"default_page_limit,omitempty"` + MaxPageLimit []uint64 `protobuf:"varint,30,rep,packed,name=max_page_limit,json=maxPageLimit,proto3" json:"max_page_limit,omitempty"` + MinEpochLengthRecordLimit []int64 `protobuf:"varint,31,rep,packed,name=min_epoch_length_record_limit,json=minEpochLengthRecordLimit,proto3" json:"min_epoch_length_record_limit,omitempty"` + BlocksPerMonth []uint64 `protobuf:"varint,32,rep,packed,name=blocks_per_month,json=blocksPerMonth,proto3" json:"blocks_per_month,omitempty"` + PRewardInference []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,33,rep,name=p_reward_inference,json=pRewardInference,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_inference"` + PRewardForecast []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,34,rep,name=p_reward_forecast,json=pRewardForecast,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_forecast"` + PRewardReputer []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,35,rep,name=p_reward_reputer,json=pRewardReputer,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_reputer"` + CRewardInference []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,36,rep,name=c_reward_inference,json=cRewardInference,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_reward_inference"` + CRewardForecast []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,37,rep,name=c_reward_forecast,json=cRewardForecast,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_reward_forecast"` + CNorm []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,38,rep,name=c_norm,json=cNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_norm"` + EpsilonReputer []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,40,rep,name=epsilon_reputer,json=epsilonReputer,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon_reputer"` + HalfMaxProcessStakeRemovalsEndBlock []uint64 `protobuf:"varint,42,rep,packed,name=half_max_process_stake_removals_end_block,json=halfMaxProcessStakeRemovalsEndBlock,proto3" json:"half_max_process_stake_removals_end_block,omitempty"` + DataSendingFee []cosmossdk_io_math.Int `protobuf:"bytes,43,rep,name=data_sending_fee,json=dataSendingFee,proto3,customtype=cosmossdk.io/math.Int" json:"data_sending_fee"` + EpsilonSafeDiv []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,44,rep,name=epsilon_safe_div,json=epsilonSafeDiv,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon_safe_div"` + MaxElementsPerForecast []uint64 `protobuf:"varint,45,rep,packed,name=max_elements_per_forecast,json=maxElementsPerForecast,proto3" json:"max_elements_per_forecast,omitempty"` + MaxActiveTopicsPerBlock []uint64 `protobuf:"varint,46,rep,packed,name=max_active_topics_per_block,json=maxActiveTopicsPerBlock,proto3" json:"max_active_topics_per_block,omitempty"` + MaxStringLength []uint64 `protobuf:"varint,47,rep,packed,name=max_string_length,json=maxStringLength,proto3" json:"max_string_length,omitempty"` +} + +func (m *OptionalParams) Reset() { *m = OptionalParams{} } +func (m *OptionalParams) String() string { return proto.CompactTextString(m) } +func (*OptionalParams) ProtoMessage() {} +func (*OptionalParams) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{0} +} +func (m *OptionalParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OptionalParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OptionalParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OptionalParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_OptionalParams.Merge(m, src) +} +func (m *OptionalParams) XXX_Size() int { + return m.Size() +} +func (m *OptionalParams) XXX_DiscardUnknown() { + xxx_messageInfo_OptionalParams.DiscardUnknown(m) +} + +var xxx_messageInfo_OptionalParams proto.InternalMessageInfo + +func (m *OptionalParams) GetVersion() []string { + if m != nil { + return m.Version + } + return nil +} + +func (m *OptionalParams) GetMaxSerializedMsgLength() []int64 { + if m != nil { + return m.MaxSerializedMsgLength + } + return nil +} + +func (m *OptionalParams) GetRemoveStakeDelayWindow() []int64 { + if m != nil { + return m.RemoveStakeDelayWindow + } + return nil +} + +func (m *OptionalParams) GetMinEpochLength() []int64 { + if m != nil { + return m.MinEpochLength + } + return nil +} + +func (m *OptionalParams) GetMaxUnfulfilledWorkerRequests() []uint64 { + if m != nil { + return m.MaxUnfulfilledWorkerRequests + } + return nil +} + +func (m *OptionalParams) GetMaxUnfulfilledReputerRequests() []uint64 { + if m != nil { + return m.MaxUnfulfilledReputerRequests + } + return nil +} + +func (m *OptionalParams) GetMaxSamplesToScaleScores() []uint64 { + if m != nil { + return m.MaxSamplesToScaleScores + } + return nil +} + +func (m *OptionalParams) GetMaxTopInferersToReward() []uint64 { + if m != nil { + return m.MaxTopInferersToReward + } + return nil +} + +func (m *OptionalParams) GetMaxTopForecastersToReward() []uint64 { + if m != nil { + return m.MaxTopForecastersToReward + } + return nil +} + +func (m *OptionalParams) GetMaxTopReputersToReward() []uint64 { + if m != nil { + return m.MaxTopReputersToReward + } + return nil +} + +func (m *OptionalParams) GetGradientDescentMaxIters() []uint64 { + if m != nil { + return m.GradientDescentMaxIters + } + return nil +} + +func (m *OptionalParams) GetDefaultPageLimit() []uint64 { + if m != nil { + return m.DefaultPageLimit + } + return nil +} + +func (m *OptionalParams) GetMaxPageLimit() []uint64 { + if m != nil { + return m.MaxPageLimit + } + return nil +} + +func (m *OptionalParams) GetMinEpochLengthRecordLimit() []int64 { + if m != nil { + return m.MinEpochLengthRecordLimit + } + return nil +} + +func (m *OptionalParams) GetBlocksPerMonth() []uint64 { + if m != nil { + return m.BlocksPerMonth + } + return nil +} + +func (m *OptionalParams) GetHalfMaxProcessStakeRemovalsEndBlock() []uint64 { + if m != nil { + return m.HalfMaxProcessStakeRemovalsEndBlock + } + return nil +} + +func (m *OptionalParams) GetMaxElementsPerForecast() []uint64 { + if m != nil { + return m.MaxElementsPerForecast + } + return nil +} + +func (m *OptionalParams) GetMaxActiveTopicsPerBlock() []uint64 { + if m != nil { + return m.MaxActiveTopicsPerBlock + } + return nil +} + +func (m *OptionalParams) GetMaxStringLength() []uint64 { + if m != nil { + return m.MaxStringLength + } + return nil +} + +type UpdateParamsRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + Params *OptionalParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` +} + +func (m *UpdateParamsRequest) Reset() { *m = UpdateParamsRequest{} } +func (m *UpdateParamsRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateParamsRequest) ProtoMessage() {} +func (*UpdateParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{1} +} +func (m *UpdateParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateParamsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UpdateParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateParamsRequest.Merge(m, src) +} +func (m *UpdateParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateParamsRequest proto.InternalMessageInfo + +func (m *UpdateParamsRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *UpdateParamsRequest) GetParams() *OptionalParams { + if m != nil { + return m.Params + } + return nil +} + +type UpdateParamsResponse struct { +} + +func (m *UpdateParamsResponse) Reset() { *m = UpdateParamsResponse{} } +func (m *UpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateParamsResponse) ProtoMessage() {} +func (*UpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{2} +} +func (m *UpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateParamsResponse.Merge(m, src) +} +func (m *UpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateParamsResponse proto.InternalMessageInfo + +type CreateNewTopicRequest struct { + // creator is the message sender. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + LossMethod string `protobuf:"bytes,4,opt,name=loss_method,json=lossMethod,proto3" json:"loss_method,omitempty"` + EpochLength int64 `protobuf:"varint,7,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` + GroundTruthLag int64 `protobuf:"varint,8,opt,name=ground_truth_lag,json=groundTruthLag,proto3" json:"ground_truth_lag,omitempty"` + PNorm github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,10,opt,name=p_norm,json=pNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_norm"` + AlphaRegret github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,11,opt,name=alpha_regret,json=alphaRegret,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"alpha_regret"` + AllowNegative bool `protobuf:"varint,12,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` + Epsilon github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,13,opt,name=epsilon,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon"` + WorkerSubmissionWindow int64 `protobuf:"varint,14,opt,name=worker_submission_window,json=workerSubmissionWindow,proto3" json:"worker_submission_window,omitempty"` + MeritSortitionAlpha github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,15,opt,name=merit_sortition_alpha,json=meritSortitionAlpha,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"merit_sortition_alpha"` + ActiveInfererQuantile github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,16,opt,name=active_inferer_quantile,json=activeInfererQuantile,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"active_inferer_quantile"` + ActiveForecasterQuantile github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,17,opt,name=active_forecaster_quantile,json=activeForecasterQuantile,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"active_forecaster_quantile"` + ActiveReputerQuantile github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,18,opt,name=active_reputer_quantile,json=activeReputerQuantile,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"active_reputer_quantile"` +} + +func (m *CreateNewTopicRequest) Reset() { *m = CreateNewTopicRequest{} } +func (m *CreateNewTopicRequest) String() string { return proto.CompactTextString(m) } +func (*CreateNewTopicRequest) ProtoMessage() {} +func (*CreateNewTopicRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{3} +} +func (m *CreateNewTopicRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateNewTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateNewTopicRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CreateNewTopicRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNewTopicRequest.Merge(m, src) +} +func (m *CreateNewTopicRequest) XXX_Size() int { + return m.Size() +} +func (m *CreateNewTopicRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNewTopicRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNewTopicRequest proto.InternalMessageInfo + +func (m *CreateNewTopicRequest) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *CreateNewTopicRequest) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + +func (m *CreateNewTopicRequest) GetLossMethod() string { + if m != nil { + return m.LossMethod + } + return "" +} + +func (m *CreateNewTopicRequest) GetEpochLength() int64 { + if m != nil { + return m.EpochLength + } + return 0 +} + +func (m *CreateNewTopicRequest) GetGroundTruthLag() int64 { + if m != nil { + return m.GroundTruthLag + } + return 0 +} + +func (m *CreateNewTopicRequest) GetAllowNegative() bool { + if m != nil { + return m.AllowNegative + } + return false +} + +func (m *CreateNewTopicRequest) GetWorkerSubmissionWindow() int64 { + if m != nil { + return m.WorkerSubmissionWindow + } + return 0 +} + +type CreateNewTopicResponse struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +} + +func (m *CreateNewTopicResponse) Reset() { *m = CreateNewTopicResponse{} } +func (m *CreateNewTopicResponse) String() string { return proto.CompactTextString(m) } +func (*CreateNewTopicResponse) ProtoMessage() {} +func (*CreateNewTopicResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{4} +} +func (m *CreateNewTopicResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateNewTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateNewTopicResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CreateNewTopicResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNewTopicResponse.Merge(m, src) +} +func (m *CreateNewTopicResponse) XXX_Size() int { + return m.Size() +} +func (m *CreateNewTopicResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNewTopicResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNewTopicResponse proto.InternalMessageInfo + +func (m *CreateNewTopicResponse) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +type InsertReputerPayloadRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + ReputerValueBundle *ReputerValueBundle `protobuf:"bytes,2,opt,name=reputer_value_bundle,json=reputerValueBundle,proto3" json:"reputer_value_bundle,omitempty"` +} + +func (m *InsertReputerPayloadRequest) Reset() { *m = InsertReputerPayloadRequest{} } +func (m *InsertReputerPayloadRequest) String() string { return proto.CompactTextString(m) } +func (*InsertReputerPayloadRequest) ProtoMessage() {} +func (*InsertReputerPayloadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{5} +} +func (m *InsertReputerPayloadRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InsertReputerPayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InsertReputerPayloadRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InsertReputerPayloadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InsertReputerPayloadRequest.Merge(m, src) +} +func (m *InsertReputerPayloadRequest) XXX_Size() int { + return m.Size() +} +func (m *InsertReputerPayloadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InsertReputerPayloadRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_InsertReputerPayloadRequest proto.InternalMessageInfo + +func (m *InsertReputerPayloadRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *InsertReputerPayloadRequest) GetReputerValueBundle() *ReputerValueBundle { + if m != nil { + return m.ReputerValueBundle + } + return nil +} + +type InsertReputerPayloadResponse struct { +} + +func (m *InsertReputerPayloadResponse) Reset() { *m = InsertReputerPayloadResponse{} } +func (m *InsertReputerPayloadResponse) String() string { return proto.CompactTextString(m) } +func (*InsertReputerPayloadResponse) ProtoMessage() {} +func (*InsertReputerPayloadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{6} +} +func (m *InsertReputerPayloadResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InsertReputerPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InsertReputerPayloadResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InsertReputerPayloadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InsertReputerPayloadResponse.Merge(m, src) +} +func (m *InsertReputerPayloadResponse) XXX_Size() int { + return m.Size() +} +func (m *InsertReputerPayloadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_InsertReputerPayloadResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_InsertReputerPayloadResponse proto.InternalMessageInfo + +type InsertWorkerPayloadRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + WorkerDataBundle *WorkerDataBundle `protobuf:"bytes,2,opt,name=worker_data_bundle,json=workerDataBundle,proto3" json:"worker_data_bundle,omitempty"` +} + +func (m *InsertWorkerPayloadRequest) Reset() { *m = InsertWorkerPayloadRequest{} } +func (m *InsertWorkerPayloadRequest) String() string { return proto.CompactTextString(m) } +func (*InsertWorkerPayloadRequest) ProtoMessage() {} +func (*InsertWorkerPayloadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{7} +} +func (m *InsertWorkerPayloadRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InsertWorkerPayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InsertWorkerPayloadRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InsertWorkerPayloadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InsertWorkerPayloadRequest.Merge(m, src) +} +func (m *InsertWorkerPayloadRequest) XXX_Size() int { + return m.Size() +} +func (m *InsertWorkerPayloadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InsertWorkerPayloadRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_InsertWorkerPayloadRequest proto.InternalMessageInfo + +func (m *InsertWorkerPayloadRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *InsertWorkerPayloadRequest) GetWorkerDataBundle() *WorkerDataBundle { + if m != nil { + return m.WorkerDataBundle + } + return nil +} + +type InsertWorkerPayloadResponse struct { +} + +func (m *InsertWorkerPayloadResponse) Reset() { *m = InsertWorkerPayloadResponse{} } +func (m *InsertWorkerPayloadResponse) String() string { return proto.CompactTextString(m) } +func (*InsertWorkerPayloadResponse) ProtoMessage() {} +func (*InsertWorkerPayloadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{8} +} +func (m *InsertWorkerPayloadResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InsertWorkerPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InsertWorkerPayloadResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InsertWorkerPayloadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InsertWorkerPayloadResponse.Merge(m, src) +} +func (m *InsertWorkerPayloadResponse) XXX_Size() int { + return m.Size() +} +func (m *InsertWorkerPayloadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_InsertWorkerPayloadResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_InsertWorkerPayloadResponse proto.InternalMessageInfo + +type RegisterRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,4,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` + IsReputer bool `protobuf:"varint,6,opt,name=is_reputer,json=isReputer,proto3" json:"is_reputer,omitempty"` +} + +func (m *RegisterRequest) Reset() { *m = RegisterRequest{} } +func (m *RegisterRequest) String() string { return proto.CompactTextString(m) } +func (*RegisterRequest) ProtoMessage() {} +func (*RegisterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{9} +} +func (m *RegisterRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegisterRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RegisterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterRequest.Merge(m, src) +} +func (m *RegisterRequest) XXX_Size() int { + return m.Size() +} +func (m *RegisterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegisterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RegisterRequest proto.InternalMessageInfo + +func (m *RegisterRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *RegisterRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *RegisterRequest) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *RegisterRequest) GetIsReputer() bool { + if m != nil { + return m.IsReputer + } + return false +} + +type RegisterResponse struct { + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` +} + +func (m *RegisterResponse) Reset() { *m = RegisterResponse{} } +func (m *RegisterResponse) String() string { return proto.CompactTextString(m) } +func (*RegisterResponse) ProtoMessage() {} +func (*RegisterResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{10} +} +func (m *RegisterResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegisterResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RegisterResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterResponse.Merge(m, src) +} +func (m *RegisterResponse) XXX_Size() int { + return m.Size() +} +func (m *RegisterResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RegisterResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RegisterResponse proto.InternalMessageInfo + +func (m *RegisterResponse) GetSuccess() bool { + if m != nil { + return m.Success + } + return false +} + +func (m *RegisterResponse) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +type RemoveRegistrationRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + IsReputer bool `protobuf:"varint,3,opt,name=is_reputer,json=isReputer,proto3" json:"is_reputer,omitempty"` +} + +func (m *RemoveRegistrationRequest) Reset() { *m = RemoveRegistrationRequest{} } +func (m *RemoveRegistrationRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveRegistrationRequest) ProtoMessage() {} +func (*RemoveRegistrationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{11} +} +func (m *RemoveRegistrationRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveRegistrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveRegistrationRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemoveRegistrationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveRegistrationRequest.Merge(m, src) +} +func (m *RemoveRegistrationRequest) XXX_Size() int { + return m.Size() +} +func (m *RemoveRegistrationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveRegistrationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveRegistrationRequest proto.InternalMessageInfo + +func (m *RemoveRegistrationRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *RemoveRegistrationRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *RemoveRegistrationRequest) GetIsReputer() bool { + if m != nil { + return m.IsReputer + } + return false +} + +type RemoveRegistrationResponse struct { + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` +} + +func (m *RemoveRegistrationResponse) Reset() { *m = RemoveRegistrationResponse{} } +func (m *RemoveRegistrationResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveRegistrationResponse) ProtoMessage() {} +func (*RemoveRegistrationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{12} +} +func (m *RemoveRegistrationResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveRegistrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveRegistrationResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemoveRegistrationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveRegistrationResponse.Merge(m, src) +} +func (m *RemoveRegistrationResponse) XXX_Size() int { + return m.Size() +} +func (m *RemoveRegistrationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveRegistrationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveRegistrationResponse proto.InternalMessageInfo + +func (m *RemoveRegistrationResponse) GetSuccess() bool { + if m != nil { + return m.Success + } + return false +} + +func (m *RemoveRegistrationResponse) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +type AddStakeRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Amount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *AddStakeRequest) Reset() { *m = AddStakeRequest{} } +func (m *AddStakeRequest) String() string { return proto.CompactTextString(m) } +func (*AddStakeRequest) ProtoMessage() {} +func (*AddStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{13} +} +func (m *AddStakeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddStakeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AddStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddStakeRequest.Merge(m, src) +} +func (m *AddStakeRequest) XXX_Size() int { + return m.Size() +} +func (m *AddStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddStakeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddStakeRequest proto.InternalMessageInfo + +func (m *AddStakeRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *AddStakeRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +type AddStakeResponse struct { +} + +func (m *AddStakeResponse) Reset() { *m = AddStakeResponse{} } +func (m *AddStakeResponse) String() string { return proto.CompactTextString(m) } +func (*AddStakeResponse) ProtoMessage() {} +func (*AddStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{14} +} +func (m *AddStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddStakeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AddStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddStakeResponse.Merge(m, src) +} +func (m *AddStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *AddStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AddStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AddStakeResponse proto.InternalMessageInfo + +type RemoveStakeRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Amount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *RemoveStakeRequest) Reset() { *m = RemoveStakeRequest{} } +func (m *RemoveStakeRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveStakeRequest) ProtoMessage() {} +func (*RemoveStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{15} +} +func (m *RemoveStakeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveStakeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemoveStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveStakeRequest.Merge(m, src) +} +func (m *RemoveStakeRequest) XXX_Size() int { + return m.Size() +} +func (m *RemoveStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveStakeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveStakeRequest proto.InternalMessageInfo + +func (m *RemoveStakeRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *RemoveStakeRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +type RemoveStakeResponse struct { +} + +func (m *RemoveStakeResponse) Reset() { *m = RemoveStakeResponse{} } +func (m *RemoveStakeResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveStakeResponse) ProtoMessage() {} +func (*RemoveStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{16} +} +func (m *RemoveStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveStakeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemoveStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveStakeResponse.Merge(m, src) +} +func (m *RemoveStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *RemoveStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveStakeResponse proto.InternalMessageInfo + +type CancelRemoveStakeRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +} + +func (m *CancelRemoveStakeRequest) Reset() { *m = CancelRemoveStakeRequest{} } +func (m *CancelRemoveStakeRequest) String() string { return proto.CompactTextString(m) } +func (*CancelRemoveStakeRequest) ProtoMessage() {} +func (*CancelRemoveStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{17} +} +func (m *CancelRemoveStakeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CancelRemoveStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelRemoveStakeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CancelRemoveStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelRemoveStakeRequest.Merge(m, src) +} +func (m *CancelRemoveStakeRequest) XXX_Size() int { + return m.Size() +} +func (m *CancelRemoveStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CancelRemoveStakeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelRemoveStakeRequest proto.InternalMessageInfo + +func (m *CancelRemoveStakeRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *CancelRemoveStakeRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +type CancelRemoveStakeResponse struct { +} + +func (m *CancelRemoveStakeResponse) Reset() { *m = CancelRemoveStakeResponse{} } +func (m *CancelRemoveStakeResponse) String() string { return proto.CompactTextString(m) } +func (*CancelRemoveStakeResponse) ProtoMessage() {} +func (*CancelRemoveStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{18} +} +func (m *CancelRemoveStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CancelRemoveStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelRemoveStakeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CancelRemoveStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelRemoveStakeResponse.Merge(m, src) +} +func (m *CancelRemoveStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *CancelRemoveStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelRemoveStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelRemoveStakeResponse proto.InternalMessageInfo + +type DelegateStakeRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Reputer string `protobuf:"bytes,3,opt,name=reputer,proto3" json:"reputer,omitempty"` + Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *DelegateStakeRequest) Reset() { *m = DelegateStakeRequest{} } +func (m *DelegateStakeRequest) String() string { return proto.CompactTextString(m) } +func (*DelegateStakeRequest) ProtoMessage() {} +func (*DelegateStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{19} +} +func (m *DelegateStakeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegateStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegateStakeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DelegateStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegateStakeRequest.Merge(m, src) +} +func (m *DelegateStakeRequest) XXX_Size() int { + return m.Size() +} +func (m *DelegateStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DelegateStakeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegateStakeRequest proto.InternalMessageInfo + +func (m *DelegateStakeRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *DelegateStakeRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *DelegateStakeRequest) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +type DelegateStakeResponse struct { +} + +func (m *DelegateStakeResponse) Reset() { *m = DelegateStakeResponse{} } +func (m *DelegateStakeResponse) String() string { return proto.CompactTextString(m) } +func (*DelegateStakeResponse) ProtoMessage() {} +func (*DelegateStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{20} +} +func (m *DelegateStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegateStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegateStakeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DelegateStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegateStakeResponse.Merge(m, src) +} +func (m *DelegateStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *DelegateStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DelegateStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegateStakeResponse proto.InternalMessageInfo + +type RemoveDelegateStakeRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + Reputer string `protobuf:"bytes,2,opt,name=reputer,proto3" json:"reputer,omitempty"` + TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *RemoveDelegateStakeRequest) Reset() { *m = RemoveDelegateStakeRequest{} } +func (m *RemoveDelegateStakeRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveDelegateStakeRequest) ProtoMessage() {} +func (*RemoveDelegateStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{21} +} +func (m *RemoveDelegateStakeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveDelegateStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveDelegateStakeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemoveDelegateStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveDelegateStakeRequest.Merge(m, src) +} +func (m *RemoveDelegateStakeRequest) XXX_Size() int { + return m.Size() +} +func (m *RemoveDelegateStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveDelegateStakeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveDelegateStakeRequest proto.InternalMessageInfo + +func (m *RemoveDelegateStakeRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *RemoveDelegateStakeRequest) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +func (m *RemoveDelegateStakeRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +type RemoveDelegateStakeResponse struct { +} + +func (m *RemoveDelegateStakeResponse) Reset() { *m = RemoveDelegateStakeResponse{} } +func (m *RemoveDelegateStakeResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveDelegateStakeResponse) ProtoMessage() {} +func (*RemoveDelegateStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{22} +} +func (m *RemoveDelegateStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveDelegateStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveDelegateStakeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemoveDelegateStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveDelegateStakeResponse.Merge(m, src) +} +func (m *RemoveDelegateStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *RemoveDelegateStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveDelegateStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveDelegateStakeResponse proto.InternalMessageInfo + +type CancelRemoveDelegateStakeRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Delegator string `protobuf:"bytes,3,opt,name=delegator,proto3" json:"delegator,omitempty"` + Reputer string `protobuf:"bytes,4,opt,name=reputer,proto3" json:"reputer,omitempty"` +} + +func (m *CancelRemoveDelegateStakeRequest) Reset() { *m = CancelRemoveDelegateStakeRequest{} } +func (m *CancelRemoveDelegateStakeRequest) String() string { return proto.CompactTextString(m) } +func (*CancelRemoveDelegateStakeRequest) ProtoMessage() {} +func (*CancelRemoveDelegateStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{23} +} +func (m *CancelRemoveDelegateStakeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CancelRemoveDelegateStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelRemoveDelegateStakeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CancelRemoveDelegateStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelRemoveDelegateStakeRequest.Merge(m, src) +} +func (m *CancelRemoveDelegateStakeRequest) XXX_Size() int { + return m.Size() +} +func (m *CancelRemoveDelegateStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CancelRemoveDelegateStakeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelRemoveDelegateStakeRequest proto.InternalMessageInfo + +func (m *CancelRemoveDelegateStakeRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *CancelRemoveDelegateStakeRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *CancelRemoveDelegateStakeRequest) GetDelegator() string { + if m != nil { + return m.Delegator + } + return "" +} + +func (m *CancelRemoveDelegateStakeRequest) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +type CancelRemoveDelegateStakeResponse struct { +} + +func (m *CancelRemoveDelegateStakeResponse) Reset() { *m = CancelRemoveDelegateStakeResponse{} } +func (m *CancelRemoveDelegateStakeResponse) String() string { return proto.CompactTextString(m) } +func (*CancelRemoveDelegateStakeResponse) ProtoMessage() {} +func (*CancelRemoveDelegateStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{24} +} +func (m *CancelRemoveDelegateStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CancelRemoveDelegateStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelRemoveDelegateStakeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CancelRemoveDelegateStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelRemoveDelegateStakeResponse.Merge(m, src) +} +func (m *CancelRemoveDelegateStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *CancelRemoveDelegateStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelRemoveDelegateStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelRemoveDelegateStakeResponse proto.InternalMessageInfo + +// Inferences are requested by consumers who fund topics by sending ALLO to +// ecosystem account via TopicFund messages +type FundTopicRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Amount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *FundTopicRequest) Reset() { *m = FundTopicRequest{} } +func (m *FundTopicRequest) String() string { return proto.CompactTextString(m) } +func (*FundTopicRequest) ProtoMessage() {} +func (*FundTopicRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{25} +} +func (m *FundTopicRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FundTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FundTopicRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FundTopicRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FundTopicRequest.Merge(m, src) +} +func (m *FundTopicRequest) XXX_Size() int { + return m.Size() +} +func (m *FundTopicRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FundTopicRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_FundTopicRequest proto.InternalMessageInfo + +func (m *FundTopicRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *FundTopicRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +type FundTopicResponse struct { +} + +func (m *FundTopicResponse) Reset() { *m = FundTopicResponse{} } +func (m *FundTopicResponse) String() string { return proto.CompactTextString(m) } +func (*FundTopicResponse) ProtoMessage() {} +func (*FundTopicResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{26} +} +func (m *FundTopicResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FundTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FundTopicResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FundTopicResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FundTopicResponse.Merge(m, src) +} +func (m *FundTopicResponse) XXX_Size() int { + return m.Size() +} +func (m *FundTopicResponse) XXX_DiscardUnknown() { + xxx_messageInfo_FundTopicResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_FundTopicResponse proto.InternalMessageInfo + +type AddToWhitelistAdminRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *AddToWhitelistAdminRequest) Reset() { *m = AddToWhitelistAdminRequest{} } +func (m *AddToWhitelistAdminRequest) String() string { return proto.CompactTextString(m) } +func (*AddToWhitelistAdminRequest) ProtoMessage() {} +func (*AddToWhitelistAdminRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{27} +} +func (m *AddToWhitelistAdminRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddToWhitelistAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddToWhitelistAdminRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AddToWhitelistAdminRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddToWhitelistAdminRequest.Merge(m, src) +} +func (m *AddToWhitelistAdminRequest) XXX_Size() int { + return m.Size() +} +func (m *AddToWhitelistAdminRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddToWhitelistAdminRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddToWhitelistAdminRequest proto.InternalMessageInfo + +func (m *AddToWhitelistAdminRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *AddToWhitelistAdminRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type AddToWhitelistAdminResponse struct { +} + +func (m *AddToWhitelistAdminResponse) Reset() { *m = AddToWhitelistAdminResponse{} } +func (m *AddToWhitelistAdminResponse) String() string { return proto.CompactTextString(m) } +func (*AddToWhitelistAdminResponse) ProtoMessage() {} +func (*AddToWhitelistAdminResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{28} +} +func (m *AddToWhitelistAdminResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddToWhitelistAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddToWhitelistAdminResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AddToWhitelistAdminResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddToWhitelistAdminResponse.Merge(m, src) +} +func (m *AddToWhitelistAdminResponse) XXX_Size() int { + return m.Size() +} +func (m *AddToWhitelistAdminResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AddToWhitelistAdminResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AddToWhitelistAdminResponse proto.InternalMessageInfo + +type RemoveFromWhitelistAdminRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *RemoveFromWhitelistAdminRequest) Reset() { *m = RemoveFromWhitelistAdminRequest{} } +func (m *RemoveFromWhitelistAdminRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveFromWhitelistAdminRequest) ProtoMessage() {} +func (*RemoveFromWhitelistAdminRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{29} +} +func (m *RemoveFromWhitelistAdminRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveFromWhitelistAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveFromWhitelistAdminRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemoveFromWhitelistAdminRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveFromWhitelistAdminRequest.Merge(m, src) +} +func (m *RemoveFromWhitelistAdminRequest) XXX_Size() int { + return m.Size() +} +func (m *RemoveFromWhitelistAdminRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveFromWhitelistAdminRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveFromWhitelistAdminRequest proto.InternalMessageInfo + +func (m *RemoveFromWhitelistAdminRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *RemoveFromWhitelistAdminRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type RemoveFromWhitelistAdminResponse struct { +} + +func (m *RemoveFromWhitelistAdminResponse) Reset() { *m = RemoveFromWhitelistAdminResponse{} } +func (m *RemoveFromWhitelistAdminResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveFromWhitelistAdminResponse) ProtoMessage() {} +func (*RemoveFromWhitelistAdminResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{30} +} +func (m *RemoveFromWhitelistAdminResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveFromWhitelistAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveFromWhitelistAdminResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RemoveFromWhitelistAdminResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveFromWhitelistAdminResponse.Merge(m, src) +} +func (m *RemoveFromWhitelistAdminResponse) XXX_Size() int { + return m.Size() +} +func (m *RemoveFromWhitelistAdminResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveFromWhitelistAdminResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveFromWhitelistAdminResponse proto.InternalMessageInfo + +type RewardDelegateStakeResponse struct { +} + +func (m *RewardDelegateStakeResponse) Reset() { *m = RewardDelegateStakeResponse{} } +func (m *RewardDelegateStakeResponse) String() string { return proto.CompactTextString(m) } +func (*RewardDelegateStakeResponse) ProtoMessage() {} +func (*RewardDelegateStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{31} +} +func (m *RewardDelegateStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RewardDelegateStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RewardDelegateStakeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RewardDelegateStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RewardDelegateStakeResponse.Merge(m, src) +} +func (m *RewardDelegateStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *RewardDelegateStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RewardDelegateStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RewardDelegateStakeResponse proto.InternalMessageInfo + +type RewardDelegateStakeRequest struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Reputer string `protobuf:"bytes,3,opt,name=reputer,proto3" json:"reputer,omitempty"` +} + +func (m *RewardDelegateStakeRequest) Reset() { *m = RewardDelegateStakeRequest{} } +func (m *RewardDelegateStakeRequest) String() string { return proto.CompactTextString(m) } +func (*RewardDelegateStakeRequest) ProtoMessage() {} +func (*RewardDelegateStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1368adc19e22cbb9, []int{32} +} +func (m *RewardDelegateStakeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RewardDelegateStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RewardDelegateStakeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RewardDelegateStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RewardDelegateStakeRequest.Merge(m, src) +} +func (m *RewardDelegateStakeRequest) XXX_Size() int { + return m.Size() +} +func (m *RewardDelegateStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RewardDelegateStakeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RewardDelegateStakeRequest proto.InternalMessageInfo + +func (m *RewardDelegateStakeRequest) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *RewardDelegateStakeRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *RewardDelegateStakeRequest) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +func init() { + proto.RegisterType((*OptionalParams)(nil), "emissions.v4.OptionalParams") + proto.RegisterType((*UpdateParamsRequest)(nil), "emissions.v4.UpdateParamsRequest") + proto.RegisterType((*UpdateParamsResponse)(nil), "emissions.v4.UpdateParamsResponse") + proto.RegisterType((*CreateNewTopicRequest)(nil), "emissions.v4.CreateNewTopicRequest") + proto.RegisterType((*CreateNewTopicResponse)(nil), "emissions.v4.CreateNewTopicResponse") + proto.RegisterType((*InsertReputerPayloadRequest)(nil), "emissions.v4.InsertReputerPayloadRequest") + proto.RegisterType((*InsertReputerPayloadResponse)(nil), "emissions.v4.InsertReputerPayloadResponse") + proto.RegisterType((*InsertWorkerPayloadRequest)(nil), "emissions.v4.InsertWorkerPayloadRequest") + proto.RegisterType((*InsertWorkerPayloadResponse)(nil), "emissions.v4.InsertWorkerPayloadResponse") + proto.RegisterType((*RegisterRequest)(nil), "emissions.v4.RegisterRequest") + proto.RegisterType((*RegisterResponse)(nil), "emissions.v4.RegisterResponse") + proto.RegisterType((*RemoveRegistrationRequest)(nil), "emissions.v4.RemoveRegistrationRequest") + proto.RegisterType((*RemoveRegistrationResponse)(nil), "emissions.v4.RemoveRegistrationResponse") + proto.RegisterType((*AddStakeRequest)(nil), "emissions.v4.AddStakeRequest") + proto.RegisterType((*AddStakeResponse)(nil), "emissions.v4.AddStakeResponse") + proto.RegisterType((*RemoveStakeRequest)(nil), "emissions.v4.RemoveStakeRequest") + proto.RegisterType((*RemoveStakeResponse)(nil), "emissions.v4.RemoveStakeResponse") + proto.RegisterType((*CancelRemoveStakeRequest)(nil), "emissions.v4.CancelRemoveStakeRequest") + proto.RegisterType((*CancelRemoveStakeResponse)(nil), "emissions.v4.CancelRemoveStakeResponse") + proto.RegisterType((*DelegateStakeRequest)(nil), "emissions.v4.DelegateStakeRequest") + proto.RegisterType((*DelegateStakeResponse)(nil), "emissions.v4.DelegateStakeResponse") + proto.RegisterType((*RemoveDelegateStakeRequest)(nil), "emissions.v4.RemoveDelegateStakeRequest") + proto.RegisterType((*RemoveDelegateStakeResponse)(nil), "emissions.v4.RemoveDelegateStakeResponse") + proto.RegisterType((*CancelRemoveDelegateStakeRequest)(nil), "emissions.v4.CancelRemoveDelegateStakeRequest") + proto.RegisterType((*CancelRemoveDelegateStakeResponse)(nil), "emissions.v4.CancelRemoveDelegateStakeResponse") + proto.RegisterType((*FundTopicRequest)(nil), "emissions.v4.FundTopicRequest") + proto.RegisterType((*FundTopicResponse)(nil), "emissions.v4.FundTopicResponse") + proto.RegisterType((*AddToWhitelistAdminRequest)(nil), "emissions.v4.AddToWhitelistAdminRequest") + proto.RegisterType((*AddToWhitelistAdminResponse)(nil), "emissions.v4.AddToWhitelistAdminResponse") + proto.RegisterType((*RemoveFromWhitelistAdminRequest)(nil), "emissions.v4.RemoveFromWhitelistAdminRequest") + proto.RegisterType((*RemoveFromWhitelistAdminResponse)(nil), "emissions.v4.RemoveFromWhitelistAdminResponse") + proto.RegisterType((*RewardDelegateStakeResponse)(nil), "emissions.v4.RewardDelegateStakeResponse") + proto.RegisterType((*RewardDelegateStakeRequest)(nil), "emissions.v4.RewardDelegateStakeRequest") +} + +func init() { proto.RegisterFile("emissions/v4/tx.proto", fileDescriptor_1368adc19e22cbb9) } + +var fileDescriptor_1368adc19e22cbb9 = []byte{ + // 2593 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcf, 0x6f, 0x1b, 0xc7, + 0xf5, 0x37, 0x2d, 0x4a, 0xa2, 0x9e, 0x64, 0x89, 0x1a, 0x4b, 0xf2, 0x8a, 0xfa, 0x69, 0xc9, 0x49, + 0x18, 0x7f, 0x63, 0xf1, 0xdb, 0x38, 0x40, 0xd3, 0xb4, 0x87, 0xda, 0xb1, 0x95, 0x4a, 0xb0, 0x5c, + 0x65, 0xa5, 0xc4, 0x85, 0x53, 0x60, 0x33, 0xda, 0x1d, 0x92, 0x5b, 0xed, 0xee, 0x6c, 0x66, 0x86, + 0x94, 0x14, 0xf4, 0x50, 0x14, 0xe8, 0xb9, 0x3d, 0xf5, 0xd0, 0x16, 0x3d, 0xf7, 0x54, 0xe4, 0xd0, + 0x53, 0x4f, 0x01, 0x7a, 0xc9, 0x31, 0xe8, 0xa9, 0xe8, 0x21, 0x28, 0x92, 0x43, 0xfe, 0x8d, 0x62, + 0x7e, 0xec, 0x72, 0x97, 0x22, 0x15, 0xc5, 0xab, 0x02, 0xb9, 0x24, 0xde, 0x99, 0x37, 0x9f, 0xf7, + 0x79, 0x6f, 0xde, 0xbc, 0x1f, 0x84, 0x60, 0x9e, 0x84, 0x3e, 0xe7, 0x3e, 0x8d, 0x78, 0xa3, 0xfb, + 0x46, 0x43, 0x9c, 0x6e, 0xc5, 0x8c, 0x0a, 0x8a, 0xa6, 0xd2, 0xe5, 0xad, 0xee, 0x1b, 0xb5, 0x59, + 0x1c, 0xfa, 0x11, 0x6d, 0xa8, 0xff, 0x6a, 0x81, 0xda, 0x2d, 0x97, 0xf2, 0x90, 0xf2, 0x46, 0xc8, + 0x5b, 0x8d, 0xee, 0xf7, 0xe4, 0xff, 0xcc, 0xc6, 0xa2, 0xde, 0x70, 0xd4, 0x57, 0x43, 0x7f, 0x98, + 0xad, 0x5a, 0x46, 0xd7, 0xfd, 0x06, 0x23, 0x71, 0x47, 0x10, 0x96, 0x1c, 0xcb, 0xed, 0x9d, 0x50, + 0x76, 0x9c, 0x6e, 0xcd, 0xb5, 0x68, 0x8b, 0x6a, 0x38, 0xf9, 0x2f, 0xbd, 0xba, 0xf1, 0xc5, 0x12, + 0x4c, 0xff, 0x34, 0x16, 0x3e, 0x8d, 0x70, 0xb0, 0x8f, 0x19, 0x0e, 0x39, 0xb2, 0x60, 0xbc, 0x4b, + 0x98, 0x04, 0xb1, 0x4a, 0xeb, 0x23, 0xf5, 0x09, 0x3b, 0xf9, 0x44, 0x3f, 0x80, 0xc5, 0x10, 0x9f, + 0x3a, 0x9c, 0x30, 0x1f, 0x07, 0xfe, 0xc7, 0xc4, 0x73, 0x42, 0xde, 0x72, 0x02, 0x12, 0xb5, 0x44, + 0xdb, 0xba, 0xbe, 0x3e, 0x52, 0x1f, 0xb1, 0x17, 0x42, 0x7c, 0x7a, 0x90, 0xee, 0xef, 0xf1, 0xd6, + 0x13, 0xb5, 0x8b, 0x30, 0x54, 0x43, 0x3f, 0x72, 0x04, 0x8d, 0x7d, 0xd7, 0x39, 0x21, 0x7e, 0xab, + 0x2d, 0xac, 0x11, 0x89, 0xfe, 0xf0, 0xfb, 0x9f, 0x7d, 0xb1, 0x76, 0xed, 0xdf, 0x5f, 0xac, 0x35, + 0x5a, 0xbe, 0x68, 0x77, 0x8e, 0xb6, 0x5c, 0x1a, 0x36, 0x70, 0x10, 0x50, 0x86, 0xef, 0x45, 0x44, + 0x48, 0x13, 0x92, 0x4f, 0xb7, 0x8d, 0xfd, 0xa8, 0x11, 0x62, 0xd1, 0xde, 0x7a, 0x44, 0x5c, 0x7b, + 0x3a, 0xf4, 0xa3, 0x43, 0x89, 0xf7, 0x4c, 0xc1, 0xa1, 0x26, 0x2c, 0x30, 0xf2, 0x51, 0xc7, 0x67, + 0x92, 0x97, 0x1f, 0xf9, 0x61, 0x27, 0x74, 0xb8, 0xc0, 0xc7, 0xc4, 0x1a, 0x55, 0x8a, 0xfe, 0xdf, + 0x28, 0x9a, 0xd7, 0xde, 0xe4, 0xde, 0xf1, 0x96, 0x4f, 0x35, 0xdc, 0x4e, 0x24, 0xfe, 0xf9, 0xb7, + 0x7b, 0x60, 0xdc, 0xbc, 0x13, 0x89, 0xbf, 0x7c, 0xfd, 0xc9, 0xdd, 0x92, 0x3d, 0x97, 0xe0, 0xed, + 0x69, 0xb8, 0x03, 0x89, 0x26, 0xbd, 0xc0, 0x48, 0x48, 0xbb, 0x44, 0xa3, 0x3b, 0x1e, 0x09, 0xf0, + 0x99, 0x73, 0xe2, 0x47, 0x1e, 0x3d, 0xb1, 0xc6, 0xb4, 0x17, 0xb4, 0x80, 0x92, 0x7f, 0x24, 0xb7, + 0x9f, 0xa9, 0x5d, 0x54, 0xd7, 0x5e, 0x20, 0x31, 0x75, 0xdb, 0x89, 0xdf, 0xc6, 0xd5, 0x09, 0x69, + 0xcc, 0x63, 0xb9, 0x6c, 0xfc, 0xf5, 0x1c, 0xa6, 0x8e, 0x88, 0xc0, 0x0e, 0x89, 0x04, 0xa3, 0xf1, + 0x99, 0x55, 0x29, 0xe6, 0xab, 0x49, 0x09, 0xf6, 0x58, 0x63, 0xa1, 0x9f, 0xc3, 0x8d, 0x80, 0x60, + 0x16, 0xf9, 0x51, 0xcb, 0x61, 0x58, 0x10, 0x6b, 0xa2, 0x18, 0xf8, 0x54, 0x82, 0x66, 0x63, 0x41, + 0x50, 0x08, 0x32, 0x06, 0x9c, 0x16, 0xc3, 0x9e, 0x4f, 0x22, 0xe1, 0x88, 0x36, 0x23, 0xbc, 0x4d, + 0x03, 0xcf, 0x82, 0x62, 0x6a, 0xe6, 0x42, 0x7c, 0xfa, 0x8e, 0x41, 0x3d, 0x4c, 0x40, 0x11, 0x01, + 0x24, 0x5d, 0xaa, 0xaf, 0xa2, 0xc9, 0xb0, 0x2b, 0x63, 0xd9, 0x9a, 0x2c, 0xa6, 0x4a, 0xde, 0x92, + 0xba, 0xbc, 0x6d, 0x03, 0x88, 0x1e, 0xc3, 0x9a, 0xb4, 0xaa, 0x13, 0x35, 0x3b, 0x41, 0xd3, 0x0f, + 0x02, 0xe2, 0x39, 0xfa, 0x75, 0x39, 0x32, 0x46, 0x08, 0x17, 0xdc, 0xba, 0xb1, 0x3e, 0x52, 0x2f, + 0xdb, 0xcb, 0x21, 0x3e, 0x7d, 0xaf, 0x27, 0xf5, 0x4c, 0x09, 0xd9, 0x46, 0x06, 0xbd, 0x03, 0xeb, + 0xfd, 0x30, 0xe6, 0x01, 0xf7, 0x70, 0xa6, 0x15, 0xce, 0x4a, 0x1e, 0xc7, 0xd6, 0x52, 0x29, 0xd0, + 0xc7, 0xb0, 0xa2, 0xdf, 0x12, 0x23, 0x27, 0x98, 0x79, 0xc6, 0x7e, 0x3f, 0x8c, 0x29, 0x13, 0x38, + 0x72, 0x89, 0x35, 0x53, 0xcc, 0x03, 0x35, 0x85, 0x6e, 0x2b, 0x70, 0xe5, 0x89, 0x9d, 0x14, 0x1a, + 0xfd, 0xa6, 0x04, 0x9b, 0x39, 0xe5, 0x4d, 0x42, 0x1c, 0x46, 0xba, 0x24, 0xea, 0xe4, 0x28, 0x54, + 0x8b, 0x51, 0x58, 0xcb, 0x50, 0xd8, 0x26, 0xc4, 0xd6, 0x0a, 0x32, 0x3c, 0x08, 0xa0, 0x1c, 0x0d, + 0x1c, 0xc4, 0x6d, 0x6c, 0xcd, 0x16, 0xbc, 0xfa, 0x8c, 0xd6, 0x07, 0x12, 0x10, 0xb9, 0x30, 0x2b, + 0x30, 0x3f, 0xce, 0x6b, 0x41, 0xc5, 0xb4, 0xcc, 0x48, 0xc4, 0xac, 0x12, 0xe9, 0xd3, 0x2e, 0x0e, + 0x7c, 0x0f, 0x0b, 0xca, 0xb8, 0xd3, 0xe5, 0x8e, 0x3e, 0xe8, 0xc4, 0x84, 0xb9, 0xf2, 0x19, 0x69, + 0xed, 0xd6, 0xcd, 0x82, 0x3e, 0xed, 0xe9, 0x78, 0x9f, 0x3f, 0x50, 0x22, 0xfb, 0x5a, 0x81, 0x26, + 0x83, 0x7e, 0x04, 0x4b, 0x2a, 0xc5, 0xe3, 0x30, 0x0e, 0x08, 0x77, 0x04, 0x75, 0xb8, 0x8b, 0x03, + 0xe2, 0x70, 0x97, 0x32, 0xc2, 0xad, 0x39, 0x15, 0x9b, 0xb7, 0x64, 0x92, 0xd7, 0x12, 0x87, 0xf4, + 0x40, 0xee, 0x1f, 0xa8, 0x6d, 0xf4, 0x16, 0xd4, 0xe4, 0x69, 0x41, 0x63, 0xc7, 0x8f, 0x9a, 0x84, + 0x11, 0xa6, 0x20, 0x0c, 0xf7, 0x79, 0x75, 0x58, 0x66, 0x87, 0x43, 0x1a, 0xef, 0x98, 0xfd, 0x43, + 0x6a, 0x34, 0xff, 0x18, 0x56, 0x92, 0xb3, 0x4d, 0xca, 0x88, 0x8b, 0xb9, 0xc8, 0x1f, 0x5f, 0x50, + 0xc7, 0x17, 0xf5, 0xf1, 0xed, 0x9e, 0x48, 0x8a, 0x90, 0xd1, 0x6e, 0x1e, 0x55, 0xf6, 0xf8, 0xad, + 0xac, 0x76, 0xf3, 0x9c, 0x7a, 0x67, 0x9f, 0x43, 0xd5, 0x65, 0x04, 0x0b, 0x62, 0x4a, 0x54, 0x93, + 0x10, 0xcb, 0x7a, 0xc1, 0xb2, 0x31, 0xad, 0x91, 0x54, 0x6d, 0xda, 0x26, 0x04, 0xfd, 0x10, 0x6a, + 0x69, 0x36, 0xf4, 0x08, 0x57, 0xd7, 0x29, 0x89, 0xfa, 0x92, 0x81, 0xb5, 0xa8, 0x5d, 0x9a, 0x48, + 0x3c, 0xd2, 0x02, 0x7b, 0xf8, 0x74, 0x47, 0x6e, 0xa3, 0x0f, 0xa0, 0xca, 0x48, 0xcb, 0xe7, 0x82, + 0x61, 0x99, 0x88, 0x14, 0xb1, 0xe5, 0x17, 0x24, 0x36, 0x93, 0x45, 0x92, 0xcc, 0x5e, 0x03, 0xe4, + 0x91, 0x26, 0xee, 0x04, 0xc2, 0x89, 0x71, 0x8b, 0x38, 0x81, 0x1f, 0xfa, 0xc2, 0x5a, 0x51, 0x8c, + 0xaa, 0x66, 0x67, 0x1f, 0xb7, 0xc8, 0x13, 0xb9, 0x8e, 0xee, 0xc0, 0xb4, 0xa4, 0x9d, 0x91, 0x5c, + 0x55, 0x92, 0x53, 0x21, 0x3e, 0xed, 0x49, 0xc9, 0x7b, 0xec, 0xab, 0x71, 0x0e, 0x23, 0x2e, 0x65, + 0x9e, 0x39, 0xb4, 0xa6, 0x0a, 0xde, 0x62, 0xbe, 0xe0, 0xd9, 0x4a, 0x42, 0x23, 0xd4, 0xa1, 0x7a, + 0x14, 0x50, 0xf7, 0x98, 0xcb, 0xe0, 0x77, 0x42, 0x1a, 0x89, 0xb6, 0xb5, 0xae, 0x34, 0x4d, 0xeb, + 0xf5, 0x7d, 0xc2, 0xf6, 0xe4, 0xaa, 0xcc, 0x00, 0x71, 0xf2, 0x2e, 0x75, 0xc0, 0xc9, 0xbc, 0x73, + 0xbb, 0x60, 0x06, 0x88, 0x75, 0x4c, 0xec, 0x24, 0x80, 0x32, 0x03, 0xa4, 0x6a, 0x92, 0xd8, 0xb4, + 0x36, 0x0a, 0x66, 0x00, 0xa3, 0x25, 0x09, 0x64, 0xd9, 0x21, 0xa5, 0x4a, 0x4c, 0xf8, 0x5a, 0x9b, + 0x05, 0x3b, 0x24, 0xa3, 0xc3, 0x44, 0xbb, 0x74, 0x97, 0x7b, 0xde, 0x5d, 0x77, 0x0a, 0xba, 0xcb, + 0x1d, 0xe0, 0x2e, 0xf7, 0x9c, 0xbb, 0x5e, 0x2a, 0xe8, 0x2e, 0xb7, 0xcf, 0x5d, 0x4f, 0x61, 0xcc, + 0x75, 0x22, 0xca, 0x42, 0xeb, 0xe5, 0x62, 0xc8, 0xa3, 0xee, 0x53, 0xca, 0x42, 0xf4, 0x21, 0xcc, + 0x90, 0x98, 0xfb, 0x01, 0x8d, 0x52, 0xef, 0xd7, 0x0b, 0x7a, 0xdf, 0xe0, 0x25, 0xde, 0x7f, 0x1f, + 0x5e, 0x6d, 0xe3, 0xa0, 0xa9, 0x9e, 0x7e, 0xcc, 0xa8, 0x4b, 0x38, 0x37, 0x65, 0x5b, 0x75, 0x8b, + 0x38, 0xe0, 0x0e, 0x89, 0x3c, 0x47, 0x85, 0xb8, 0x75, 0x57, 0xc5, 0xfb, 0xa6, 0x3c, 0xb0, 0x87, + 0x4f, 0xf7, 0xb5, 0xb8, 0x2a, 0xc4, 0xb6, 0x11, 0x7e, 0x1c, 0x79, 0x0f, 0xa5, 0xa8, 0x4c, 0x5d, + 0x1e, 0x16, 0xd8, 0xe1, 0x24, 0xf2, 0x64, 0x4b, 0x27, 0x33, 0xc4, 0xff, 0xbd, 0x68, 0xea, 0x92, + 0x48, 0x07, 0x1a, 0x48, 0x26, 0x08, 0x0c, 0xd5, 0xc4, 0x2b, 0x1c, 0x37, 0x89, 0xe3, 0xf9, 0x5d, + 0xeb, 0xb5, 0xab, 0x71, 0xcb, 0x01, 0x6e, 0x92, 0x47, 0x7e, 0x37, 0x19, 0x2a, 0x48, 0x40, 0x42, + 0x12, 0x09, 0xfd, 0xe6, 0xd3, 0xa8, 0xb9, 0x97, 0x26, 0xed, 0xc7, 0x66, 0x7f, 0x9f, 0xb0, 0x34, + 0x06, 0x4c, 0xb1, 0x92, 0x2d, 0x5a, 0xd7, 0x24, 0x6e, 0x7d, 0x5e, 0xfb, 0x70, 0x2b, 0x2d, 0x56, + 0x0f, 0x94, 0x84, 0x4a, 0xc8, 0x12, 0x40, 0xfb, 0xed, 0x2e, 0xcc, 0xaa, 0x52, 0x27, 0x98, 0xf4, + 0x9a, 0xe9, 0xc6, 0x1b, 0xea, 0xcc, 0x8c, 0x2c, 0x70, 0x6a, 0x5d, 0x67, 0xa7, 0xdd, 0x72, 0xa5, + 0x5c, 0x1d, 0xdd, 0x2d, 0x57, 0x6a, 0xd5, 0xa5, 0xdd, 0x72, 0x65, 0xa9, 0xba, 0xbc, 0x5b, 0xae, + 0xbc, 0x52, 0xad, 0xef, 0x96, 0x2b, 0xaf, 0x56, 0xef, 0xaa, 0xce, 0xf4, 0x9c, 0x7a, 0x7b, 0x49, + 0xa5, 0xc1, 0x66, 0x93, 0x64, 0xe8, 0x25, 0x6d, 0x92, 0xbd, 0x29, 0x8f, 0x30, 0x22, 0x98, 0xaf, + 0xab, 0xac, 0x6e, 0xf4, 0x9c, 0x88, 0x46, 0x2e, 0xe1, 0xa6, 0xb5, 0xb4, 0x97, 0xd3, 0x5a, 0x94, + 0xb6, 0x57, 0x1e, 0x71, 0xf1, 0x99, 0xea, 0xda, 0xed, 0x3b, 0x17, 0x42, 0x98, 0x20, 0xde, 0x88, + 0xe1, 0xe6, 0x7b, 0xb1, 0x87, 0x05, 0xd1, 0xd3, 0x9d, 0x69, 0x20, 0xd1, 0x02, 0x8c, 0xc9, 0x78, + 0x21, 0xcc, 0x2a, 0xad, 0x97, 0xea, 0x13, 0xb6, 0xf9, 0x42, 0x6f, 0xc0, 0x58, 0xac, 0x04, 0xad, + 0xeb, 0xeb, 0xa5, 0xfa, 0xe4, 0xeb, 0xcb, 0x5b, 0xd9, 0x11, 0x76, 0x2b, 0x3f, 0x2a, 0xda, 0x46, + 0xf6, 0xad, 0xc9, 0x5f, 0x7f, 0xfd, 0xc9, 0x5d, 0x03, 0xb1, 0xb1, 0x00, 0x73, 0x79, 0x8d, 0x3c, + 0xa6, 0x11, 0x27, 0x1b, 0xff, 0xa8, 0xc0, 0xfc, 0xdb, 0xaa, 0x32, 0x3e, 0x25, 0x27, 0x87, 0xba, + 0xcb, 0xd2, 0x64, 0x2c, 0x18, 0x57, 0x25, 0x93, 0x26, 0x6c, 0x92, 0x4f, 0x54, 0x83, 0x4a, 0x48, + 0x04, 0x96, 0x51, 0xa9, 0x08, 0x4d, 0xd8, 0xe9, 0x37, 0x5a, 0x83, 0xc9, 0x80, 0x72, 0xee, 0x84, + 0x44, 0xb4, 0xa9, 0x67, 0x95, 0xd5, 0x36, 0xc8, 0xa5, 0x3d, 0xb5, 0x82, 0x6e, 0xc3, 0x54, 0xdf, + 0xa4, 0x55, 0xaa, 0x8f, 0xd8, 0x93, 0x24, 0x33, 0x66, 0xd5, 0xa1, 0xda, 0x62, 0xb4, 0x13, 0x79, + 0x8e, 0x60, 0x1d, 0xd1, 0x76, 0x02, 0xdc, 0xb2, 0x2a, 0x4a, 0x6c, 0x5a, 0xaf, 0x1f, 0xca, 0xe5, + 0x27, 0xb8, 0x25, 0xf3, 0x4d, 0xac, 0xf3, 0x0d, 0x48, 0x45, 0x05, 0xf2, 0x4d, 0xac, 0xf2, 0xcd, + 0x73, 0x98, 0x52, 0x9d, 0xa4, 0xc3, 0x48, 0x8b, 0x11, 0x61, 0x4d, 0x16, 0x43, 0x9d, 0x54, 0x60, + 0xb6, 0xc2, 0x42, 0x2f, 0xc1, 0xb4, 0x94, 0x3a, 0x71, 0x22, 0xd2, 0xc2, 0x32, 0xf8, 0xac, 0xa9, + 0xf5, 0x52, 0xbd, 0x62, 0xdf, 0x50, 0xab, 0x4f, 0xcd, 0x22, 0x7a, 0x17, 0xc6, 0xcd, 0x5b, 0xb4, + 0x6e, 0x14, 0xd3, 0x9e, 0xe0, 0xa0, 0x37, 0xc1, 0x32, 0x63, 0x11, 0xef, 0x1c, 0x99, 0xc0, 0x49, + 0x46, 0xe3, 0x69, 0xe5, 0xd7, 0x05, 0xbd, 0x7f, 0x90, 0x6e, 0x9b, 0xd1, 0xf8, 0x18, 0xe6, 0x43, + 0xc2, 0x7c, 0xe1, 0x70, 0xca, 0x84, 0xaf, 0x5a, 0x1d, 0xdd, 0x69, 0xcf, 0x14, 0xa3, 0x76, 0x53, + 0xa1, 0x1e, 0x24, 0xa0, 0xba, 0xdb, 0xa6, 0x70, 0xcb, 0x24, 0x0d, 0xd3, 0xa6, 0x3a, 0x1f, 0x75, + 0x70, 0x24, 0xfc, 0x40, 0x0e, 0x2d, 0x85, 0xd4, 0xcd, 0x6b, 0x5c, 0xd3, 0xdd, 0xbe, 0x6b, 0x50, + 0x51, 0x07, 0x6a, 0x46, 0x61, 0xaf, 0xb7, 0xed, 0xe9, 0x9c, 0x2d, 0xa6, 0xd3, 0xd2, 0xd0, 0xbd, + 0x96, 0x38, 0x55, 0xdb, 0xb3, 0x33, 0x99, 0x32, 0x53, 0x9d, 0xe8, 0x4a, 0xec, 0x34, 0xb5, 0x2d, + 0x51, 0xf8, 0xd6, 0x94, 0x4c, 0x04, 0xc9, 0xeb, 0xdd, 0x2d, 0x57, 0x46, 0xaa, 0xe5, 0xdd, 0x72, + 0x65, 0xb4, 0x3a, 0xb6, 0x5b, 0xae, 0x8c, 0x55, 0xc7, 0x77, 0xcb, 0x95, 0x89, 0x2a, 0xe8, 0x47, + 0xea, 0x04, 0xb4, 0xe5, 0xbb, 0xf6, 0x4c, 0xda, 0x88, 0x98, 0x85, 0x6a, 0x6f, 0x41, 0xbf, 0x6c, + 0x7b, 0x32, 0xe9, 0x51, 0x31, 0x6b, 0x6d, 0xdc, 0x87, 0x85, 0xfe, 0x24, 0xa2, 0xf3, 0x0b, 0x5a, + 0x84, 0x8a, 0xce, 0x97, 0xbe, 0xa7, 0xd2, 0x48, 0xd9, 0x1e, 0x57, 0xdf, 0x3b, 0xde, 0xc6, 0xef, + 0x4b, 0xb0, 0xb4, 0x13, 0x71, 0xc2, 0x84, 0x21, 0xbc, 0x8f, 0xcf, 0x02, 0x8a, 0xbd, 0x6f, 0xca, + 0x86, 0x36, 0xcc, 0x25, 0x8e, 0xeb, 0xe2, 0xa0, 0x43, 0x9c, 0xa3, 0x4e, 0xe4, 0x05, 0xc4, 0xe4, + 0xc6, 0xf5, 0x6c, 0x6e, 0xbc, 0xbf, 0x65, 0xa0, 0xdf, 0x97, 0x82, 0x0f, 0x95, 0x9c, 0x8d, 0xd8, + 0xb9, 0xb5, 0x7c, 0xae, 0x5c, 0x85, 0xe5, 0xc1, 0xbc, 0x4c, 0xce, 0xfc, 0x6d, 0x09, 0x6a, 0x5a, + 0x40, 0xff, 0x90, 0x70, 0x49, 0xde, 0x4f, 0x00, 0x99, 0x67, 0xa8, 0x3a, 0x83, 0x1c, 0xeb, 0xd5, + 0x3c, 0x6b, 0x8d, 0xfb, 0x08, 0x0b, 0x6c, 0x38, 0x57, 0x4f, 0xfa, 0x56, 0xf2, 0x8c, 0x57, 0x12, + 0x4f, 0xf6, 0x11, 0x32, 0x84, 0xff, 0x5a, 0x82, 0x19, 0x5b, 0x4d, 0x19, 0xe9, 0x8f, 0x15, 0x43, + 0x59, 0x66, 0x2f, 0xac, 0x9c, 0xbb, 0x30, 0x34, 0x07, 0xa3, 0xf4, 0x24, 0x22, 0xcc, 0x1a, 0x55, + 0x27, 0xf4, 0x07, 0x5a, 0x01, 0xf0, 0xd3, 0xca, 0x66, 0x8d, 0xa9, 0x9c, 0x36, 0xe1, 0x73, 0xe3, + 0xbb, 0x1c, 0xcf, 0xdd, 0x72, 0xe5, 0x7a, 0x75, 0x44, 0x47, 0xa0, 0x3d, 0x19, 0xf8, 0x47, 0x4e, + 0xfc, 0x7a, 0xec, 0x1c, 0x93, 0x33, 0xfb, 0x46, 0xd8, 0x09, 0x84, 0xef, 0x60, 0xcf, 0x63, 0x84, + 0xf3, 0x8d, 0x6d, 0xa8, 0xf6, 0xf8, 0x9a, 0x48, 0xb2, 0x60, 0x9c, 0x77, 0x5c, 0xd9, 0x71, 0x29, + 0xc6, 0x15, 0x3b, 0xf9, 0x94, 0x3b, 0x21, 0xe1, 0x1c, 0xb7, 0x88, 0x29, 0x47, 0xc9, 0xe7, 0xc6, + 0xc7, 0xb0, 0xa8, 0x3a, 0x33, 0x62, 0x67, 0x66, 0xac, 0x6f, 0xe3, 0x81, 0xeb, 0x79, 0x0f, 0xe4, + 0x6d, 0x1d, 0xb9, 0xc8, 0xd6, 0x8d, 0x7d, 0xa8, 0x0d, 0xd2, 0x5d, 0xc0, 0x9a, 0x3f, 0x96, 0x60, + 0xe6, 0x81, 0xe7, 0x99, 0x86, 0xf3, 0x85, 0x8d, 0xf8, 0x09, 0x8c, 0xe1, 0x90, 0x76, 0x22, 0xa1, + 0x0c, 0x78, 0x91, 0x86, 0xd4, 0x9c, 0xcf, 0xdb, 0x8b, 0xa0, 0xda, 0x23, 0x67, 0x02, 0xef, 0xcf, + 0x25, 0x40, 0x76, 0xef, 0x57, 0xd7, 0xef, 0x1e, 0xe9, 0x79, 0xb8, 0x99, 0xe3, 0x67, 0x78, 0x3f, + 0x07, 0xeb, 0x6d, 0x1c, 0xb9, 0x24, 0xb8, 0x12, 0xf2, 0x79, 0x95, 0x4b, 0xb0, 0x38, 0x00, 0xdb, + 0x28, 0xfe, 0x7b, 0x09, 0xe6, 0x1e, 0x91, 0x40, 0x36, 0x03, 0x85, 0x5d, 0x66, 0xc1, 0x78, 0x36, + 0x52, 0x27, 0xec, 0xe4, 0x33, 0xe3, 0xcc, 0xf2, 0x55, 0x3a, 0xf3, 0x16, 0xcc, 0xf7, 0x71, 0x37, + 0x56, 0x7d, 0x5a, 0x4a, 0xde, 0xc2, 0xb7, 0xb2, 0x2d, 0x63, 0xc0, 0xf5, 0xbc, 0x01, 0x59, 0xab, + 0x47, 0x86, 0x05, 0xca, 0x95, 0xda, 0xb6, 0x02, 0x4b, 0x03, 0x2d, 0x30, 0x16, 0xfe, 0xa1, 0x04, + 0xeb, 0xd9, 0x5b, 0xbd, 0xaa, 0x3b, 0x5c, 0x86, 0x09, 0x4f, 0x43, 0xd1, 0xe4, 0x16, 0x7b, 0x0b, + 0x59, 0x07, 0x95, 0x73, 0x0e, 0xca, 0x73, 0xdf, 0x84, 0xdb, 0x17, 0x70, 0x33, 0x16, 0xfc, 0xa9, + 0x04, 0xd5, 0x6d, 0xd9, 0x5b, 0x67, 0x67, 0x80, 0xef, 0xce, 0x43, 0xbd, 0x09, 0xb3, 0x19, 0x76, + 0x86, 0xf3, 0x07, 0x50, 0x7b, 0xe0, 0x79, 0x87, 0xf4, 0x59, 0xdb, 0x17, 0x24, 0xf0, 0xb9, 0x78, + 0xe0, 0x85, 0x7e, 0x74, 0x89, 0xb0, 0x32, 0x75, 0x26, 0x09, 0x2b, 0xf3, 0x79, 0xee, 0xc6, 0x07, + 0x82, 0x1b, 0xdd, 0x1f, 0xc2, 0x9a, 0x76, 0xe7, 0x36, 0xa3, 0xe1, 0xff, 0x84, 0xc0, 0x06, 0xac, + 0x0f, 0xd7, 0x60, 0x58, 0xa8, 0xb0, 0x3c, 0xc1, 0xcc, 0x1b, 0x7c, 0xa9, 0x5d, 0xf9, 0xee, 0x06, + 0x6c, 0x5f, 0x7d, 0x4e, 0xc9, 0x51, 0x7f, 0xfd, 0xd3, 0x29, 0x80, 0x3d, 0xde, 0x3a, 0x20, 0xac, + 0xeb, 0xbb, 0x04, 0xbd, 0x07, 0x53, 0xd9, 0xe1, 0x13, 0xdd, 0xce, 0xcf, 0xaf, 0x03, 0x46, 0xe1, + 0xda, 0xc6, 0x45, 0x22, 0xa6, 0x86, 0x7e, 0x00, 0xd3, 0xf9, 0xae, 0x13, 0x6d, 0xe6, 0x4f, 0x0d, + 0x1c, 0x6c, 0x6b, 0x77, 0x2e, 0x16, 0x32, 0xe0, 0x3b, 0x50, 0x49, 0x5a, 0x10, 0xb4, 0x92, 0x3f, + 0xd1, 0xd7, 0x4a, 0xd5, 0x56, 0x87, 0x6d, 0x1b, 0xa8, 0x56, 0x52, 0x04, 0xb3, 0x9d, 0x00, 0x7a, + 0xa5, 0xff, 0xd4, 0x90, 0x3e, 0xa5, 0x56, 0xff, 0x66, 0xc1, 0x1e, 0xe7, 0xa4, 0x04, 0xf7, 0x73, + 0xee, 0xeb, 0x1b, 0xfa, 0x39, 0xf7, 0x57, 0x6e, 0x64, 0xc3, 0x64, 0xa6, 0x3e, 0xa1, 0xf5, 0x41, + 0x1c, 0x72, 0x80, 0xb7, 0x2f, 0x90, 0x30, 0x98, 0x1e, 0xcc, 0x9e, 0xab, 0x7c, 0xe8, 0xe5, 0xbe, + 0xdb, 0x18, 0x52, 0x76, 0x6b, 0xaf, 0x7c, 0xa3, 0x9c, 0xd1, 0xf2, 0x33, 0xb8, 0x91, 0x8b, 0x76, + 0xd4, 0x17, 0x4a, 0x83, 0x9e, 0x42, 0x6d, 0xf3, 0x42, 0x19, 0x83, 0xfc, 0x0b, 0xd9, 0x2c, 0x9c, + 0x7b, 0x4d, 0xe8, 0xdc, 0xfd, 0x0c, 0x7b, 0x70, 0xb5, 0x57, 0x2f, 0x21, 0x99, 0xd5, 0x75, 0x2e, + 0x5b, 0xa3, 0x81, 0xb1, 0x70, 0x39, 0x5d, 0x43, 0x53, 0x3f, 0xfa, 0x65, 0xbe, 0x23, 0xc9, 0x6b, + 0xdc, 0x1a, 0xee, 0xf7, 0x81, 0x7a, 0x1b, 0x97, 0x96, 0x37, 0xda, 0x9f, 0xc0, 0x44, 0x9a, 0xd9, + 0x51, 0x5f, 0x58, 0xf6, 0x17, 0xa4, 0xda, 0xda, 0xd0, 0xfd, 0x9e, 0xdf, 0x06, 0x64, 0xed, 0x7e, + 0xbf, 0x0d, 0xaf, 0x1a, 0xfd, 0x7e, 0xbb, 0xa0, 0x04, 0xa0, 0x33, 0xb0, 0x86, 0x25, 0x68, 0x74, + 0x6f, 0x90, 0xfb, 0x87, 0x96, 0x8a, 0xda, 0xd6, 0x65, 0xc5, 0x7b, 0x66, 0x0e, 0x18, 0xf8, 0xfa, + 0xcd, 0x1c, 0x3e, 0xa4, 0xf6, 0x9b, 0x79, 0xc1, 0xf4, 0x88, 0x42, 0x98, 0x1b, 0x34, 0x0e, 0xa3, + 0x81, 0x10, 0x03, 0x47, 0xf9, 0xda, 0xdd, 0xcb, 0x88, 0x6a, 0x75, 0xb5, 0xd1, 0x5f, 0xc9, 0x2e, + 0xe0, 0xa1, 0xfd, 0xd9, 0x97, 0xab, 0xa5, 0xcf, 0xbf, 0x5c, 0x2d, 0xfd, 0xe7, 0xcb, 0xd5, 0xd2, + 0xef, 0xbe, 0x5a, 0xbd, 0xf6, 0xf9, 0x57, 0xab, 0xd7, 0xfe, 0xf5, 0xd5, 0xea, 0xb5, 0xe7, 0x6f, + 0x5e, 0xf2, 0x67, 0x91, 0xd3, 0x46, 0xef, 0xef, 0x6e, 0xc4, 0x59, 0x4c, 0xf8, 0xd1, 0x98, 0xfa, + 0xf3, 0x9a, 0xfb, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xe7, 0xcd, 0xe2, 0x2d, 0x19, 0x24, 0x00, + 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgServiceClient is the client API for MsgService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgServiceClient interface { + UpdateParams(ctx context.Context, in *UpdateParamsRequest, opts ...grpc.CallOption) (*UpdateParamsResponse, error) + CreateNewTopic(ctx context.Context, in *CreateNewTopicRequest, opts ...grpc.CallOption) (*CreateNewTopicResponse, error) + Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) + RemoveRegistration(ctx context.Context, in *RemoveRegistrationRequest, opts ...grpc.CallOption) (*RemoveRegistrationResponse, error) + AddStake(ctx context.Context, in *AddStakeRequest, opts ...grpc.CallOption) (*AddStakeResponse, error) + RemoveStake(ctx context.Context, in *RemoveStakeRequest, opts ...grpc.CallOption) (*RemoveStakeResponse, error) + CancelRemoveStake(ctx context.Context, in *CancelRemoveStakeRequest, opts ...grpc.CallOption) (*CancelRemoveStakeResponse, error) + DelegateStake(ctx context.Context, in *DelegateStakeRequest, opts ...grpc.CallOption) (*DelegateStakeResponse, error) + RewardDelegateStake(ctx context.Context, in *RewardDelegateStakeRequest, opts ...grpc.CallOption) (*RewardDelegateStakeResponse, error) + RemoveDelegateStake(ctx context.Context, in *RemoveDelegateStakeRequest, opts ...grpc.CallOption) (*RemoveDelegateStakeResponse, error) + CancelRemoveDelegateStake(ctx context.Context, in *CancelRemoveDelegateStakeRequest, opts ...grpc.CallOption) (*CancelRemoveDelegateStakeResponse, error) + FundTopic(ctx context.Context, in *FundTopicRequest, opts ...grpc.CallOption) (*FundTopicResponse, error) + AddToWhitelistAdmin(ctx context.Context, in *AddToWhitelistAdminRequest, opts ...grpc.CallOption) (*AddToWhitelistAdminResponse, error) + RemoveFromWhitelistAdmin(ctx context.Context, in *RemoveFromWhitelistAdminRequest, opts ...grpc.CallOption) (*RemoveFromWhitelistAdminResponse, error) + InsertWorkerPayload(ctx context.Context, in *InsertWorkerPayloadRequest, opts ...grpc.CallOption) (*InsertWorkerPayloadResponse, error) + InsertReputerPayload(ctx context.Context, in *InsertReputerPayloadRequest, opts ...grpc.CallOption) (*InsertReputerPayloadResponse, error) +} + +type msgServiceClient struct { + cc grpc1.ClientConn +} + +func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient { + return &msgServiceClient{cc} +} + +func (c *msgServiceClient) UpdateParams(ctx context.Context, in *UpdateParamsRequest, opts ...grpc.CallOption) (*UpdateParamsResponse, error) { + out := new(UpdateParamsResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/UpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) CreateNewTopic(ctx context.Context, in *CreateNewTopicRequest, opts ...grpc.CallOption) (*CreateNewTopicResponse, error) { + out := new(CreateNewTopicResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/CreateNewTopic", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) { + out := new(RegisterResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/Register", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) RemoveRegistration(ctx context.Context, in *RemoveRegistrationRequest, opts ...grpc.CallOption) (*RemoveRegistrationResponse, error) { + out := new(RemoveRegistrationResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/RemoveRegistration", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) AddStake(ctx context.Context, in *AddStakeRequest, opts ...grpc.CallOption) (*AddStakeResponse, error) { + out := new(AddStakeResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/AddStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) RemoveStake(ctx context.Context, in *RemoveStakeRequest, opts ...grpc.CallOption) (*RemoveStakeResponse, error) { + out := new(RemoveStakeResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/RemoveStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) CancelRemoveStake(ctx context.Context, in *CancelRemoveStakeRequest, opts ...grpc.CallOption) (*CancelRemoveStakeResponse, error) { + out := new(CancelRemoveStakeResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/CancelRemoveStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) DelegateStake(ctx context.Context, in *DelegateStakeRequest, opts ...grpc.CallOption) (*DelegateStakeResponse, error) { + out := new(DelegateStakeResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/DelegateStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) RewardDelegateStake(ctx context.Context, in *RewardDelegateStakeRequest, opts ...grpc.CallOption) (*RewardDelegateStakeResponse, error) { + out := new(RewardDelegateStakeResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/RewardDelegateStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) RemoveDelegateStake(ctx context.Context, in *RemoveDelegateStakeRequest, opts ...grpc.CallOption) (*RemoveDelegateStakeResponse, error) { + out := new(RemoveDelegateStakeResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/RemoveDelegateStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) CancelRemoveDelegateStake(ctx context.Context, in *CancelRemoveDelegateStakeRequest, opts ...grpc.CallOption) (*CancelRemoveDelegateStakeResponse, error) { + out := new(CancelRemoveDelegateStakeResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/CancelRemoveDelegateStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) FundTopic(ctx context.Context, in *FundTopicRequest, opts ...grpc.CallOption) (*FundTopicResponse, error) { + out := new(FundTopicResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/FundTopic", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) AddToWhitelistAdmin(ctx context.Context, in *AddToWhitelistAdminRequest, opts ...grpc.CallOption) (*AddToWhitelistAdminResponse, error) { + out := new(AddToWhitelistAdminResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/AddToWhitelistAdmin", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) RemoveFromWhitelistAdmin(ctx context.Context, in *RemoveFromWhitelistAdminRequest, opts ...grpc.CallOption) (*RemoveFromWhitelistAdminResponse, error) { + out := new(RemoveFromWhitelistAdminResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/RemoveFromWhitelistAdmin", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) InsertWorkerPayload(ctx context.Context, in *InsertWorkerPayloadRequest, opts ...grpc.CallOption) (*InsertWorkerPayloadResponse, error) { + out := new(InsertWorkerPayloadResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/InsertWorkerPayload", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgServiceClient) InsertReputerPayload(ctx context.Context, in *InsertReputerPayloadRequest, opts ...grpc.CallOption) (*InsertReputerPayloadResponse, error) { + out := new(InsertReputerPayloadResponse) + err := c.cc.Invoke(ctx, "/emissions.v4.MsgService/InsertReputerPayload", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServiceServer is the server API for MsgService service. +type MsgServiceServer interface { + UpdateParams(context.Context, *UpdateParamsRequest) (*UpdateParamsResponse, error) + CreateNewTopic(context.Context, *CreateNewTopicRequest) (*CreateNewTopicResponse, error) + Register(context.Context, *RegisterRequest) (*RegisterResponse, error) + RemoveRegistration(context.Context, *RemoveRegistrationRequest) (*RemoveRegistrationResponse, error) + AddStake(context.Context, *AddStakeRequest) (*AddStakeResponse, error) + RemoveStake(context.Context, *RemoveStakeRequest) (*RemoveStakeResponse, error) + CancelRemoveStake(context.Context, *CancelRemoveStakeRequest) (*CancelRemoveStakeResponse, error) + DelegateStake(context.Context, *DelegateStakeRequest) (*DelegateStakeResponse, error) + RewardDelegateStake(context.Context, *RewardDelegateStakeRequest) (*RewardDelegateStakeResponse, error) + RemoveDelegateStake(context.Context, *RemoveDelegateStakeRequest) (*RemoveDelegateStakeResponse, error) + CancelRemoveDelegateStake(context.Context, *CancelRemoveDelegateStakeRequest) (*CancelRemoveDelegateStakeResponse, error) + FundTopic(context.Context, *FundTopicRequest) (*FundTopicResponse, error) + AddToWhitelistAdmin(context.Context, *AddToWhitelistAdminRequest) (*AddToWhitelistAdminResponse, error) + RemoveFromWhitelistAdmin(context.Context, *RemoveFromWhitelistAdminRequest) (*RemoveFromWhitelistAdminResponse, error) + InsertWorkerPayload(context.Context, *InsertWorkerPayloadRequest) (*InsertWorkerPayloadResponse, error) + InsertReputerPayload(context.Context, *InsertReputerPayloadRequest) (*InsertReputerPayloadResponse, error) +} + +// UnimplementedMsgServiceServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServiceServer struct { +} + +func (*UnimplementedMsgServiceServer) UpdateParams(ctx context.Context, req *UpdateParamsRequest) (*UpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (*UnimplementedMsgServiceServer) CreateNewTopic(ctx context.Context, req *CreateNewTopicRequest) (*CreateNewTopicResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNewTopic not implemented") +} +func (*UnimplementedMsgServiceServer) Register(ctx context.Context, req *RegisterRequest) (*RegisterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Register not implemented") +} +func (*UnimplementedMsgServiceServer) RemoveRegistration(ctx context.Context, req *RemoveRegistrationRequest) (*RemoveRegistrationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveRegistration not implemented") +} +func (*UnimplementedMsgServiceServer) AddStake(ctx context.Context, req *AddStakeRequest) (*AddStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddStake not implemented") +} +func (*UnimplementedMsgServiceServer) RemoveStake(ctx context.Context, req *RemoveStakeRequest) (*RemoveStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveStake not implemented") +} +func (*UnimplementedMsgServiceServer) CancelRemoveStake(ctx context.Context, req *CancelRemoveStakeRequest) (*CancelRemoveStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelRemoveStake not implemented") +} +func (*UnimplementedMsgServiceServer) DelegateStake(ctx context.Context, req *DelegateStakeRequest) (*DelegateStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelegateStake not implemented") +} +func (*UnimplementedMsgServiceServer) RewardDelegateStake(ctx context.Context, req *RewardDelegateStakeRequest) (*RewardDelegateStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RewardDelegateStake not implemented") +} +func (*UnimplementedMsgServiceServer) RemoveDelegateStake(ctx context.Context, req *RemoveDelegateStakeRequest) (*RemoveDelegateStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveDelegateStake not implemented") +} +func (*UnimplementedMsgServiceServer) CancelRemoveDelegateStake(ctx context.Context, req *CancelRemoveDelegateStakeRequest) (*CancelRemoveDelegateStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelRemoveDelegateStake not implemented") +} +func (*UnimplementedMsgServiceServer) FundTopic(ctx context.Context, req *FundTopicRequest) (*FundTopicResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FundTopic not implemented") +} +func (*UnimplementedMsgServiceServer) AddToWhitelistAdmin(ctx context.Context, req *AddToWhitelistAdminRequest) (*AddToWhitelistAdminResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddToWhitelistAdmin not implemented") +} +func (*UnimplementedMsgServiceServer) RemoveFromWhitelistAdmin(ctx context.Context, req *RemoveFromWhitelistAdminRequest) (*RemoveFromWhitelistAdminResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveFromWhitelistAdmin not implemented") +} +func (*UnimplementedMsgServiceServer) InsertWorkerPayload(ctx context.Context, req *InsertWorkerPayloadRequest) (*InsertWorkerPayloadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InsertWorkerPayload not implemented") +} +func (*UnimplementedMsgServiceServer) InsertReputerPayload(ctx context.Context, req *InsertReputerPayloadRequest) (*InsertReputerPayloadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InsertReputerPayload not implemented") +} + +func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer) { + s.RegisterService(&_MsgService_serviceDesc, srv) +} + +func _MsgService_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/UpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).UpdateParams(ctx, req.(*UpdateParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_CreateNewTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNewTopicRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).CreateNewTopic(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/CreateNewTopic", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).CreateNewTopic(ctx, req.(*CreateNewTopicRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RegisterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).Register(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/Register", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).Register(ctx, req.(*RegisterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_RemoveRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveRegistrationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).RemoveRegistration(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/RemoveRegistration", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).RemoveRegistration(ctx, req.(*RemoveRegistrationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_AddStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddStakeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).AddStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/AddStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).AddStake(ctx, req.(*AddStakeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_RemoveStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveStakeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).RemoveStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/RemoveStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).RemoveStake(ctx, req.(*RemoveStakeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_CancelRemoveStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelRemoveStakeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).CancelRemoveStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/CancelRemoveStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).CancelRemoveStake(ctx, req.(*CancelRemoveStakeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_DelegateStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelegateStakeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).DelegateStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/DelegateStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).DelegateStake(ctx, req.(*DelegateStakeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_RewardDelegateStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RewardDelegateStakeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).RewardDelegateStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/RewardDelegateStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).RewardDelegateStake(ctx, req.(*RewardDelegateStakeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_RemoveDelegateStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveDelegateStakeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).RemoveDelegateStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/RemoveDelegateStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).RemoveDelegateStake(ctx, req.(*RemoveDelegateStakeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_CancelRemoveDelegateStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelRemoveDelegateStakeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).CancelRemoveDelegateStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/CancelRemoveDelegateStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).CancelRemoveDelegateStake(ctx, req.(*CancelRemoveDelegateStakeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_FundTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FundTopicRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).FundTopic(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/FundTopic", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).FundTopic(ctx, req.(*FundTopicRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_AddToWhitelistAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddToWhitelistAdminRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).AddToWhitelistAdmin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/AddToWhitelistAdmin", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).AddToWhitelistAdmin(ctx, req.(*AddToWhitelistAdminRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_RemoveFromWhitelistAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveFromWhitelistAdminRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).RemoveFromWhitelistAdmin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/RemoveFromWhitelistAdmin", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).RemoveFromWhitelistAdmin(ctx, req.(*RemoveFromWhitelistAdminRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_InsertWorkerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InsertWorkerPayloadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).InsertWorkerPayload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/InsertWorkerPayload", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).InsertWorkerPayload(ctx, req.(*InsertWorkerPayloadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MsgService_InsertReputerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InsertReputerPayloadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServiceServer).InsertReputerPayload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v4.MsgService/InsertReputerPayload", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServiceServer).InsertReputerPayload(ctx, req.(*InsertReputerPayloadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _MsgService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "emissions.v4.MsgService", + HandlerType: (*MsgServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _MsgService_UpdateParams_Handler, + }, + { + MethodName: "CreateNewTopic", + Handler: _MsgService_CreateNewTopic_Handler, + }, + { + MethodName: "Register", + Handler: _MsgService_Register_Handler, + }, + { + MethodName: "RemoveRegistration", + Handler: _MsgService_RemoveRegistration_Handler, + }, + { + MethodName: "AddStake", + Handler: _MsgService_AddStake_Handler, + }, + { + MethodName: "RemoveStake", + Handler: _MsgService_RemoveStake_Handler, + }, + { + MethodName: "CancelRemoveStake", + Handler: _MsgService_CancelRemoveStake_Handler, + }, + { + MethodName: "DelegateStake", + Handler: _MsgService_DelegateStake_Handler, + }, + { + MethodName: "RewardDelegateStake", + Handler: _MsgService_RewardDelegateStake_Handler, + }, + { + MethodName: "RemoveDelegateStake", + Handler: _MsgService_RemoveDelegateStake_Handler, + }, + { + MethodName: "CancelRemoveDelegateStake", + Handler: _MsgService_CancelRemoveDelegateStake_Handler, + }, + { + MethodName: "FundTopic", + Handler: _MsgService_FundTopic_Handler, + }, + { + MethodName: "AddToWhitelistAdmin", + Handler: _MsgService_AddToWhitelistAdmin_Handler, + }, + { + MethodName: "RemoveFromWhitelistAdmin", + Handler: _MsgService_RemoveFromWhitelistAdmin_Handler, + }, + { + MethodName: "InsertWorkerPayload", + Handler: _MsgService_InsertWorkerPayload_Handler, + }, + { + MethodName: "InsertReputerPayload", + Handler: _MsgService_InsertReputerPayload_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "emissions/v4/tx.proto", +} + +func (m *OptionalParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OptionalParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MaxStringLength) > 0 { + dAtA2 := make([]byte, len(m.MaxStringLength)*10) + var j1 int + for _, num := range m.MaxStringLength { + for num >= 1<<7 { + dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA2[j1] = uint8(num) + j1++ + } + i -= j1 + copy(dAtA[i:], dAtA2[:j1]) + i = encodeVarintTx(dAtA, i, uint64(j1)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xfa + } + if len(m.MaxActiveTopicsPerBlock) > 0 { + dAtA4 := make([]byte, len(m.MaxActiveTopicsPerBlock)*10) + var j3 int + for _, num := range m.MaxActiveTopicsPerBlock { + for num >= 1<<7 { + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA4[j3] = uint8(num) + j3++ + } + i -= j3 + copy(dAtA[i:], dAtA4[:j3]) + i = encodeVarintTx(dAtA, i, uint64(j3)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xf2 + } + if len(m.MaxElementsPerForecast) > 0 { + dAtA6 := make([]byte, len(m.MaxElementsPerForecast)*10) + var j5 int + for _, num := range m.MaxElementsPerForecast { + for num >= 1<<7 { + dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j5++ + } + dAtA6[j5] = uint8(num) + j5++ + } + i -= j5 + copy(dAtA[i:], dAtA6[:j5]) + i = encodeVarintTx(dAtA, i, uint64(j5)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xea + } + if len(m.EpsilonSafeDiv) > 0 { + for iNdEx := len(m.EpsilonSafeDiv) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.EpsilonSafeDiv[iNdEx].Size() + i -= size + if _, err := m.EpsilonSafeDiv[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + } + } + if len(m.DataSendingFee) > 0 { + for iNdEx := len(m.DataSendingFee) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.DataSendingFee[iNdEx].Size() + i -= size + if _, err := m.DataSendingFee[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xda + } + } + if len(m.HalfMaxProcessStakeRemovalsEndBlock) > 0 { + dAtA8 := make([]byte, len(m.HalfMaxProcessStakeRemovalsEndBlock)*10) + var j7 int + for _, num := range m.HalfMaxProcessStakeRemovalsEndBlock { + for num >= 1<<7 { + dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j7++ + } + dAtA8[j7] = uint8(num) + j7++ + } + i -= j7 + copy(dAtA[i:], dAtA8[:j7]) + i = encodeVarintTx(dAtA, i, uint64(j7)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd2 + } + if len(m.EpsilonReputer) > 0 { + for iNdEx := len(m.EpsilonReputer) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.EpsilonReputer[iNdEx].Size() + i -= size + if _, err := m.EpsilonReputer[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.CNorm) > 0 { + for iNdEx := len(m.CNorm) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.CNorm[iNdEx].Size() + i -= size + if _, err := m.CNorm[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xb2 + } + } + if len(m.CRewardForecast) > 0 { + for iNdEx := len(m.CRewardForecast) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.CRewardForecast[iNdEx].Size() + i -= size + if _, err := m.CRewardForecast[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xaa + } + } + if len(m.CRewardInference) > 0 { + for iNdEx := len(m.CRewardInference) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.CRewardInference[iNdEx].Size() + i -= size + if _, err := m.CRewardInference[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.PRewardReputer) > 0 { + for iNdEx := len(m.PRewardReputer) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.PRewardReputer[iNdEx].Size() + i -= size + if _, err := m.PRewardReputer[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x9a + } + } + if len(m.PRewardForecast) > 0 { + for iNdEx := len(m.PRewardForecast) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.PRewardForecast[iNdEx].Size() + i -= size + if _, err := m.PRewardForecast[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x92 + } + } + if len(m.PRewardInference) > 0 { + for iNdEx := len(m.PRewardInference) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.PRewardInference[iNdEx].Size() + i -= size + if _, err := m.PRewardInference[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a + } + } + if len(m.BlocksPerMonth) > 0 { + dAtA10 := make([]byte, len(m.BlocksPerMonth)*10) + var j9 int + for _, num := range m.BlocksPerMonth { + for num >= 1<<7 { + dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j9++ + } + dAtA10[j9] = uint8(num) + j9++ + } + i -= j9 + copy(dAtA[i:], dAtA10[:j9]) + i = encodeVarintTx(dAtA, i, uint64(j9)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x82 + } + if len(m.MinEpochLengthRecordLimit) > 0 { + dAtA12 := make([]byte, len(m.MinEpochLengthRecordLimit)*10) + var j11 int + for _, num1 := range m.MinEpochLengthRecordLimit { + num := uint64(num1) + for num >= 1<<7 { + dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j11++ + } + dAtA12[j11] = uint8(num) + j11++ + } + i -= j11 + copy(dAtA[i:], dAtA12[:j11]) + i = encodeVarintTx(dAtA, i, uint64(j11)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xfa + } + if len(m.MaxPageLimit) > 0 { + dAtA14 := make([]byte, len(m.MaxPageLimit)*10) + var j13 int + for _, num := range m.MaxPageLimit { + for num >= 1<<7 { + dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j13++ + } + dAtA14[j13] = uint8(num) + j13++ + } + i -= j13 + copy(dAtA[i:], dAtA14[:j13]) + i = encodeVarintTx(dAtA, i, uint64(j13)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf2 + } + if len(m.DefaultPageLimit) > 0 { + dAtA16 := make([]byte, len(m.DefaultPageLimit)*10) + var j15 int + for _, num := range m.DefaultPageLimit { + for num >= 1<<7 { + dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j15++ + } + dAtA16[j15] = uint8(num) + j15++ + } + i -= j15 + copy(dAtA[i:], dAtA16[:j15]) + i = encodeVarintTx(dAtA, i, uint64(j15)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xea + } + if len(m.RegistrationFee) > 0 { + for iNdEx := len(m.RegistrationFee) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.RegistrationFee[iNdEx].Size() + i -= size + if _, err := m.RegistrationFee[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe2 + } + } + if len(m.GradientDescentMaxIters) > 0 { + dAtA18 := make([]byte, len(m.GradientDescentMaxIters)*10) + var j17 int + for _, num := range m.GradientDescentMaxIters { + for num >= 1<<7 { + dAtA18[j17] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j17++ + } + dAtA18[j17] = uint8(num) + j17++ + } + i -= j17 + copy(dAtA[i:], dAtA18[:j17]) + i = encodeVarintTx(dAtA, i, uint64(j17)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + if len(m.CreateTopicFee) > 0 { + for iNdEx := len(m.CreateTopicFee) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.CreateTopicFee[iNdEx].Size() + i -= size + if _, err := m.CreateTopicFee[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.MaxTopReputersToReward) > 0 { + dAtA20 := make([]byte, len(m.MaxTopReputersToReward)*10) + var j19 int + for _, num := range m.MaxTopReputersToReward { + for num >= 1<<7 { + dAtA20[j19] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j19++ + } + dAtA20[j19] = uint8(num) + j19++ + } + i -= j19 + copy(dAtA[i:], dAtA20[:j19]) + i = encodeVarintTx(dAtA, i, uint64(j19)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + if len(m.MaxTopForecastersToReward) > 0 { + dAtA22 := make([]byte, len(m.MaxTopForecastersToReward)*10) + var j21 int + for _, num := range m.MaxTopForecastersToReward { + for num >= 1<<7 { + dAtA22[j21] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j21++ + } + dAtA22[j21] = uint8(num) + j21++ + } + i -= j21 + copy(dAtA[i:], dAtA22[:j21]) + i = encodeVarintTx(dAtA, i, uint64(j21)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + if len(m.MaxTopInferersToReward) > 0 { + dAtA24 := make([]byte, len(m.MaxTopInferersToReward)*10) + var j23 int + for _, num := range m.MaxTopInferersToReward { + for num >= 1<<7 { + dAtA24[j23] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j23++ + } + dAtA24[j23] = uint8(num) + j23++ + } + i -= j23 + copy(dAtA[i:], dAtA24[:j23]) + i = encodeVarintTx(dAtA, i, uint64(j23)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + if len(m.MaxSamplesToScaleScores) > 0 { + dAtA26 := make([]byte, len(m.MaxSamplesToScaleScores)*10) + var j25 int + for _, num := range m.MaxSamplesToScaleScores { + for num >= 1<<7 { + dAtA26[j25] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j25++ + } + dAtA26[j25] = uint8(num) + j25++ + } + i -= j25 + copy(dAtA[i:], dAtA26[:j25]) + i = encodeVarintTx(dAtA, i, uint64(j25)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + if len(m.ValidatorsVsAlloraPercentReward) > 0 { + for iNdEx := len(m.ValidatorsVsAlloraPercentReward) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.ValidatorsVsAlloraPercentReward[iNdEx].Size() + i -= size + if _, err := m.ValidatorsVsAlloraPercentReward[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + } + if len(m.TaskRewardAlpha) > 0 { + for iNdEx := len(m.TaskRewardAlpha) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.TaskRewardAlpha[iNdEx].Size() + i -= size + if _, err := m.TaskRewardAlpha[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + } + if len(m.TopicRewardAlpha) > 0 { + for iNdEx := len(m.TopicRewardAlpha) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.TopicRewardAlpha[iNdEx].Size() + i -= size + if _, err := m.TopicRewardAlpha[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + if len(m.TopicRewardFeeRevenueImportance) > 0 { + for iNdEx := len(m.TopicRewardFeeRevenueImportance) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.TopicRewardFeeRevenueImportance[iNdEx].Size() + i -= size + if _, err := m.TopicRewardFeeRevenueImportance[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if len(m.TopicRewardStakeImportance) > 0 { + for iNdEx := len(m.TopicRewardStakeImportance) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.TopicRewardStakeImportance[iNdEx].Size() + i -= size + if _, err := m.TopicRewardStakeImportance[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + } + if len(m.MaxUnfulfilledReputerRequests) > 0 { + dAtA28 := make([]byte, len(m.MaxUnfulfilledReputerRequests)*10) + var j27 int + for _, num := range m.MaxUnfulfilledReputerRequests { + for num >= 1<<7 { + dAtA28[j27] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j27++ + } + dAtA28[j27] = uint8(num) + j27++ + } + i -= j27 + copy(dAtA[i:], dAtA28[:j27]) + i = encodeVarintTx(dAtA, i, uint64(j27)) + i-- + dAtA[i] = 0x72 + } + if len(m.MaxUnfulfilledWorkerRequests) > 0 { + dAtA30 := make([]byte, len(m.MaxUnfulfilledWorkerRequests)*10) + var j29 int + for _, num := range m.MaxUnfulfilledWorkerRequests { + for num >= 1<<7 { + dAtA30[j29] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j29++ + } + dAtA30[j29] = uint8(num) + j29++ + } + i -= j29 + copy(dAtA[i:], dAtA30[:j29]) + i = encodeVarintTx(dAtA, i, uint64(j29)) + i-- + dAtA[i] = 0x6a + } + if len(m.MinStakeFraction) > 0 { + for iNdEx := len(m.MinStakeFraction) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.MinStakeFraction[iNdEx].Size() + i -= size + if _, err := m.MinStakeFraction[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.MaxGradientThreshold) > 0 { + for iNdEx := len(m.MaxGradientThreshold) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.MaxGradientThreshold[iNdEx].Size() + i -= size + if _, err := m.MaxGradientThreshold[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.LearningRate) > 0 { + for iNdEx := len(m.LearningRate) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.LearningRate[iNdEx].Size() + i -= size + if _, err := m.LearningRate[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.BetaEntropy) > 0 { + for iNdEx := len(m.BetaEntropy) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.BetaEntropy[iNdEx].Size() + i -= size + if _, err := m.BetaEntropy[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.MinEpochLength) > 0 { + dAtA32 := make([]byte, len(m.MinEpochLength)*10) + var j31 int + for _, num1 := range m.MinEpochLength { + num := uint64(num1) + for num >= 1<<7 { + dAtA32[j31] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j31++ + } + dAtA32[j31] = uint8(num) + j31++ + } + i -= j31 + copy(dAtA[i:], dAtA32[:j31]) + i = encodeVarintTx(dAtA, i, uint64(j31)) + i-- + dAtA[i] = 0x3a + } + if len(m.RemoveStakeDelayWindow) > 0 { + dAtA34 := make([]byte, len(m.RemoveStakeDelayWindow)*10) + var j33 int + for _, num1 := range m.RemoveStakeDelayWindow { + num := uint64(num1) + for num >= 1<<7 { + dAtA34[j33] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j33++ + } + dAtA34[j33] = uint8(num) + j33++ + } + i -= j33 + copy(dAtA[i:], dAtA34[:j33]) + i = encodeVarintTx(dAtA, i, uint64(j33)) + i-- + dAtA[i] = 0x32 + } + if len(m.RequiredMinimumStake) > 0 { + for iNdEx := len(m.RequiredMinimumStake) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.RequiredMinimumStake[iNdEx].Size() + i -= size + if _, err := m.RequiredMinimumStake[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.MinTopicWeight) > 0 { + for iNdEx := len(m.MinTopicWeight) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.MinTopicWeight[iNdEx].Size() + i -= size + if _, err := m.MinTopicWeight[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.MaxSerializedMsgLength) > 0 { + dAtA36 := make([]byte, len(m.MaxSerializedMsgLength)*10) + var j35 int + for _, num1 := range m.MaxSerializedMsgLength { + num := uint64(num1) + for num >= 1<<7 { + dAtA36[j35] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j35++ + } + dAtA36[j35] = uint8(num) + j35++ + } + i -= j35 + copy(dAtA[i:], dAtA36[:j35]) + i = encodeVarintTx(dAtA, i, uint64(j35)) + i-- + dAtA[i] = 0x12 + } + if len(m.Version) > 0 { + for iNdEx := len(m.Version) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Version[iNdEx]) + copy(dAtA[i:], m.Version[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Version[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UpdateParamsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Params != nil { + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CreateNewTopicRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateNewTopicRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateNewTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.ActiveReputerQuantile.Size() + i -= size + if _, err := m.ActiveReputerQuantile.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + { + size := m.ActiveForecasterQuantile.Size() + i -= size + if _, err := m.ActiveForecasterQuantile.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + { + size := m.ActiveInfererQuantile.Size() + i -= size + if _, err := m.ActiveInfererQuantile.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + { + size := m.MeritSortitionAlpha.Size() + i -= size + if _, err := m.MeritSortitionAlpha.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + if m.WorkerSubmissionWindow != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.WorkerSubmissionWindow)) + i-- + dAtA[i] = 0x70 + } + { + size := m.Epsilon.Size() + i -= size + if _, err := m.Epsilon.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + if m.AllowNegative { + i-- + if m.AllowNegative { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + { + size := m.AlphaRegret.Size() + i -= size + if _, err := m.AlphaRegret.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + { + size := m.PNorm.Size() + i -= size + if _, err := m.PNorm.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + if m.GroundTruthLag != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.GroundTruthLag)) + i-- + dAtA[i] = 0x40 + } + if m.EpochLength != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.EpochLength)) + i-- + dAtA[i] = 0x38 + } + if len(m.LossMethod) > 0 { + i -= len(m.LossMethod) + copy(dAtA[i:], m.LossMethod) + i = encodeVarintTx(dAtA, i, uint64(len(m.LossMethod))) + i-- + dAtA[i] = 0x22 + } + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTx(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CreateNewTopicResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CreateNewTopicResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateNewTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *InsertReputerPayloadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InsertReputerPayloadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InsertReputerPayloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReputerValueBundle != nil { + { + size, err := m.ReputerValueBundle.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *InsertReputerPayloadResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InsertReputerPayloadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InsertReputerPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *InsertWorkerPayloadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InsertWorkerPayloadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InsertWorkerPayloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.WorkerDataBundle != nil { + { + size, err := m.WorkerDataBundle.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *InsertWorkerPayloadResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InsertWorkerPayloadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InsertWorkerPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RegisterRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RegisterRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsReputer { + i-- + if m.IsReputer { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintTx(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x2a + } + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x20 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RegisterResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RegisterResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintTx(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x12 + } + if m.Success { + i-- + if m.Success { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *RemoveRegistrationRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveRegistrationRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveRegistrationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsReputer { + i-- + if m.IsReputer { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RemoveRegistrationResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveRegistrationResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveRegistrationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintTx(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x12 + } + if m.Success { + i-- + if m.Success { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *AddStakeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddStakeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AddStakeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RemoveStakeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveStakeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RemoveStakeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CancelRemoveStakeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CancelRemoveStakeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelRemoveStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CancelRemoveStakeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CancelRemoveStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelRemoveStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *DelegateStakeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DelegateStakeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegateStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x1a + } + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegateStakeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DelegateStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegateStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RemoveDelegateStakeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveDelegateStakeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveDelegateStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x18 + } + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RemoveDelegateStakeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveDelegateStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveDelegateStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CancelRemoveDelegateStakeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CancelRemoveDelegateStakeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelRemoveDelegateStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x22 + } + if len(m.Delegator) > 0 { + i -= len(m.Delegator) + copy(dAtA[i:], m.Delegator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Delegator))) + i-- + dAtA[i] = 0x1a + } + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CancelRemoveDelegateStakeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CancelRemoveDelegateStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelRemoveDelegateStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *FundTopicRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FundTopicRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FundTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FundTopicResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FundTopicResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FundTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *AddToWhitelistAdminRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddToWhitelistAdminRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddToWhitelistAdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AddToWhitelistAdminResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddToWhitelistAdminResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddToWhitelistAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RemoveFromWhitelistAdminRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveFromWhitelistAdminRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveFromWhitelistAdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RemoveFromWhitelistAdminResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveFromWhitelistAdminResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveFromWhitelistAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RewardDelegateStakeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RewardDelegateStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RewardDelegateStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RewardDelegateStakeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RewardDelegateStakeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RewardDelegateStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x1a + } + if m.TopicId != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OptionalParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Version) > 0 { + for _, s := range m.Version { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.MaxSerializedMsgLength) > 0 { + l = 0 + for _, e := range m.MaxSerializedMsgLength { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.MinTopicWeight) > 0 { + for _, e := range m.MinTopicWeight { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.RequiredMinimumStake) > 0 { + for _, e := range m.RequiredMinimumStake { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.RemoveStakeDelayWindow) > 0 { + l = 0 + for _, e := range m.RemoveStakeDelayWindow { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.MinEpochLength) > 0 { + l = 0 + for _, e := range m.MinEpochLength { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.BetaEntropy) > 0 { + for _, e := range m.BetaEntropy { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.LearningRate) > 0 { + for _, e := range m.LearningRate { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.MaxGradientThreshold) > 0 { + for _, e := range m.MaxGradientThreshold { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.MinStakeFraction) > 0 { + for _, e := range m.MinStakeFraction { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.MaxUnfulfilledWorkerRequests) > 0 { + l = 0 + for _, e := range m.MaxUnfulfilledWorkerRequests { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.MaxUnfulfilledReputerRequests) > 0 { + l = 0 + for _, e := range m.MaxUnfulfilledReputerRequests { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + if len(m.TopicRewardStakeImportance) > 0 { + for _, e := range m.TopicRewardStakeImportance { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.TopicRewardFeeRevenueImportance) > 0 { + for _, e := range m.TopicRewardFeeRevenueImportance { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.TopicRewardAlpha) > 0 { + for _, e := range m.TopicRewardAlpha { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.TaskRewardAlpha) > 0 { + for _, e := range m.TaskRewardAlpha { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.ValidatorsVsAlloraPercentReward) > 0 { + for _, e := range m.ValidatorsVsAlloraPercentReward { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.MaxSamplesToScaleScores) > 0 { + l = 0 + for _, e := range m.MaxSamplesToScaleScores { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.MaxTopInferersToReward) > 0 { + l = 0 + for _, e := range m.MaxTopInferersToReward { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.MaxTopForecastersToReward) > 0 { + l = 0 + for _, e := range m.MaxTopForecastersToReward { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.MaxTopReputersToReward) > 0 { + l = 0 + for _, e := range m.MaxTopReputersToReward { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.CreateTopicFee) > 0 { + for _, e := range m.CreateTopicFee { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.GradientDescentMaxIters) > 0 { + l = 0 + for _, e := range m.GradientDescentMaxIters { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.RegistrationFee) > 0 { + for _, e := range m.RegistrationFee { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.DefaultPageLimit) > 0 { + l = 0 + for _, e := range m.DefaultPageLimit { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.MaxPageLimit) > 0 { + l = 0 + for _, e := range m.MaxPageLimit { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.MinEpochLengthRecordLimit) > 0 { + l = 0 + for _, e := range m.MinEpochLengthRecordLimit { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.BlocksPerMonth) > 0 { + l = 0 + for _, e := range m.BlocksPerMonth { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.PRewardInference) > 0 { + for _, e := range m.PRewardInference { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.PRewardForecast) > 0 { + for _, e := range m.PRewardForecast { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.PRewardReputer) > 0 { + for _, e := range m.PRewardReputer { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.CRewardInference) > 0 { + for _, e := range m.CRewardInference { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.CRewardForecast) > 0 { + for _, e := range m.CRewardForecast { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.CNorm) > 0 { + for _, e := range m.CNorm { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.EpsilonReputer) > 0 { + for _, e := range m.EpsilonReputer { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.HalfMaxProcessStakeRemovalsEndBlock) > 0 { + l = 0 + for _, e := range m.HalfMaxProcessStakeRemovalsEndBlock { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.DataSendingFee) > 0 { + for _, e := range m.DataSendingFee { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.EpsilonSafeDiv) > 0 { + for _, e := range m.EpsilonSafeDiv { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.MaxElementsPerForecast) > 0 { + l = 0 + for _, e := range m.MaxElementsPerForecast { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.MaxActiveTopicsPerBlock) > 0 { + l = 0 + for _, e := range m.MaxActiveTopicsPerBlock { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.MaxStringLength) > 0 { + l = 0 + for _, e := range m.MaxStringLength { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + return n +} + +func (m *UpdateParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Params != nil { + l = m.Params.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *UpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CreateNewTopicRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.LossMethod) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.EpochLength != 0 { + n += 1 + sovTx(uint64(m.EpochLength)) + } + if m.GroundTruthLag != 0 { + n += 1 + sovTx(uint64(m.GroundTruthLag)) + } + l = m.PNorm.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.AlphaRegret.Size() + n += 1 + l + sovTx(uint64(l)) + if m.AllowNegative { + n += 2 + } + l = m.Epsilon.Size() + n += 1 + l + sovTx(uint64(l)) + if m.WorkerSubmissionWindow != 0 { + n += 1 + sovTx(uint64(m.WorkerSubmissionWindow)) + } + l = m.MeritSortitionAlpha.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.ActiveInfererQuantile.Size() + n += 2 + l + sovTx(uint64(l)) + l = m.ActiveForecasterQuantile.Size() + n += 2 + l + sovTx(uint64(l)) + l = m.ActiveReputerQuantile.Size() + n += 2 + l + sovTx(uint64(l)) + return n +} + +func (m *CreateNewTopicResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + return n +} + +func (m *InsertReputerPayloadRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.ReputerValueBundle != nil { + l = m.ReputerValueBundle.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *InsertReputerPayloadResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *InsertWorkerPayloadRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.WorkerDataBundle != nil { + l = m.WorkerDataBundle.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *InsertWorkerPayloadResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RegisterRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.IsReputer { + n += 2 + } + return n +} + +func (m *RegisterResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Success { + n += 2 + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *RemoveRegistrationRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + if m.IsReputer { + n += 2 + } + return n +} + +func (m *RemoveRegistrationResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Success { + n += 2 + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *AddStakeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *AddStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RemoveStakeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *RemoveStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CancelRemoveStakeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + return n +} + +func (m *CancelRemoveStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *DelegateStakeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *DelegateStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RemoveDelegateStakeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *RemoveDelegateStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CancelRemoveDelegateStakeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + l = len(m.Delegator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *CancelRemoveDelegateStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *FundTopicRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *FundTopicResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *AddToWhitelistAdminRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *AddToWhitelistAdminResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RemoveFromWhitelistAdminRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *RemoveFromWhitelistAdminResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RewardDelegateStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RewardDelegateStakeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovTx(uint64(m.TopicId)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OptionalParams) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OptionalParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OptionalParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = append(m.Version, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxSerializedMsgLength = append(m.MaxSerializedMsgLength, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxSerializedMsgLength) == 0 { + m.MaxSerializedMsgLength = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxSerializedMsgLength = append(m.MaxSerializedMsgLength, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSerializedMsgLength", wireType) + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinTopicWeight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.MinTopicWeight = append(m.MinTopicWeight, v) + if err := m.MinTopicWeight[len(m.MinTopicWeight)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequiredMinimumStake", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v cosmossdk_io_math.Int + m.RequiredMinimumStake = append(m.RequiredMinimumStake, v) + if err := m.RequiredMinimumStake[len(m.RequiredMinimumStake)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RemoveStakeDelayWindow = append(m.RemoveStakeDelayWindow, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.RemoveStakeDelayWindow) == 0 { + m.RemoveStakeDelayWindow = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RemoveStakeDelayWindow = append(m.RemoveStakeDelayWindow, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field RemoveStakeDelayWindow", wireType) + } + case 7: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinEpochLength = append(m.MinEpochLength, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MinEpochLength) == 0 { + m.MinEpochLength = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinEpochLength = append(m.MinEpochLength, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MinEpochLength", wireType) + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BetaEntropy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.BetaEntropy = append(m.BetaEntropy, v) + if err := m.BetaEntropy[len(m.BetaEntropy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LearningRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.LearningRate = append(m.LearningRate, v) + if err := m.LearningRate[len(m.LearningRate)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxGradientThreshold", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.MaxGradientThreshold = append(m.MaxGradientThreshold, v) + if err := m.MaxGradientThreshold[len(m.MaxGradientThreshold)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinStakeFraction", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.MinStakeFraction = append(m.MinStakeFraction, v) + if err := m.MinStakeFraction[len(m.MinStakeFraction)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxUnfulfilledWorkerRequests = append(m.MaxUnfulfilledWorkerRequests, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxUnfulfilledWorkerRequests) == 0 { + m.MaxUnfulfilledWorkerRequests = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxUnfulfilledWorkerRequests = append(m.MaxUnfulfilledWorkerRequests, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUnfulfilledWorkerRequests", wireType) + } + case 14: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxUnfulfilledReputerRequests = append(m.MaxUnfulfilledReputerRequests, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxUnfulfilledReputerRequests) == 0 { + m.MaxUnfulfilledReputerRequests = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxUnfulfilledReputerRequests = append(m.MaxUnfulfilledReputerRequests, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUnfulfilledReputerRequests", wireType) + } + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicRewardStakeImportance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.TopicRewardStakeImportance = append(m.TopicRewardStakeImportance, v) + if err := m.TopicRewardStakeImportance[len(m.TopicRewardStakeImportance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicRewardFeeRevenueImportance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.TopicRewardFeeRevenueImportance = append(m.TopicRewardFeeRevenueImportance, v) + if err := m.TopicRewardFeeRevenueImportance[len(m.TopicRewardFeeRevenueImportance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicRewardAlpha", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.TopicRewardAlpha = append(m.TopicRewardAlpha, v) + if err := m.TopicRewardAlpha[len(m.TopicRewardAlpha)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskRewardAlpha", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.TaskRewardAlpha = append(m.TaskRewardAlpha, v) + if err := m.TaskRewardAlpha[len(m.TaskRewardAlpha)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorsVsAlloraPercentReward", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.ValidatorsVsAlloraPercentReward = append(m.ValidatorsVsAlloraPercentReward, v) + if err := m.ValidatorsVsAlloraPercentReward[len(m.ValidatorsVsAlloraPercentReward)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxSamplesToScaleScores = append(m.MaxSamplesToScaleScores, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxSamplesToScaleScores) == 0 { + m.MaxSamplesToScaleScores = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxSamplesToScaleScores = append(m.MaxSamplesToScaleScores, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSamplesToScaleScores", wireType) + } + case 21: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxTopInferersToReward = append(m.MaxTopInferersToReward, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxTopInferersToReward) == 0 { + m.MaxTopInferersToReward = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxTopInferersToReward = append(m.MaxTopInferersToReward, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTopInferersToReward", wireType) + } + case 22: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxTopForecastersToReward = append(m.MaxTopForecastersToReward, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxTopForecastersToReward) == 0 { + m.MaxTopForecastersToReward = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxTopForecastersToReward = append(m.MaxTopForecastersToReward, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTopForecastersToReward", wireType) + } + case 23: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxTopReputersToReward = append(m.MaxTopReputersToReward, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxTopReputersToReward) == 0 { + m.MaxTopReputersToReward = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxTopReputersToReward = append(m.MaxTopReputersToReward, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTopReputersToReward", wireType) + } + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateTopicFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v cosmossdk_io_math.Int + m.CreateTopicFee = append(m.CreateTopicFee, v) + if err := m.CreateTopicFee[len(m.CreateTopicFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 25: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GradientDescentMaxIters = append(m.GradientDescentMaxIters, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.GradientDescentMaxIters) == 0 { + m.GradientDescentMaxIters = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GradientDescentMaxIters = append(m.GradientDescentMaxIters, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field GradientDescentMaxIters", wireType) + } + case 28: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegistrationFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v cosmossdk_io_math.Int + m.RegistrationFee = append(m.RegistrationFee, v) + if err := m.RegistrationFee[len(m.RegistrationFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 29: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DefaultPageLimit = append(m.DefaultPageLimit, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.DefaultPageLimit) == 0 { + m.DefaultPageLimit = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DefaultPageLimit = append(m.DefaultPageLimit, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultPageLimit", wireType) + } + case 30: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPageLimit = append(m.MaxPageLimit, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxPageLimit) == 0 { + m.MaxPageLimit = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPageLimit = append(m.MaxPageLimit, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPageLimit", wireType) + } + case 31: + if wireType == 0 { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinEpochLengthRecordLimit = append(m.MinEpochLengthRecordLimit, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MinEpochLengthRecordLimit) == 0 { + m.MinEpochLengthRecordLimit = make([]int64, 0, elementCount) + } + for iNdEx < postIndex { + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinEpochLengthRecordLimit = append(m.MinEpochLengthRecordLimit, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MinEpochLengthRecordLimit", wireType) + } + case 32: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BlocksPerMonth = append(m.BlocksPerMonth, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.BlocksPerMonth) == 0 { + m.BlocksPerMonth = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BlocksPerMonth = append(m.BlocksPerMonth, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field BlocksPerMonth", wireType) + } + case 33: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PRewardInference", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.PRewardInference = append(m.PRewardInference, v) + if err := m.PRewardInference[len(m.PRewardInference)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 34: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PRewardForecast", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.PRewardForecast = append(m.PRewardForecast, v) + if err := m.PRewardForecast[len(m.PRewardForecast)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 35: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PRewardReputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.PRewardReputer = append(m.PRewardReputer, v) + if err := m.PRewardReputer[len(m.PRewardReputer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 36: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CRewardInference", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.CRewardInference = append(m.CRewardInference, v) + if err := m.CRewardInference[len(m.CRewardInference)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 37: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CRewardForecast", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.CRewardForecast = append(m.CRewardForecast, v) + if err := m.CRewardForecast[len(m.CRewardForecast)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 38: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CNorm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.CNorm = append(m.CNorm, v) + if err := m.CNorm[len(m.CNorm)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 40: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpsilonReputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.EpsilonReputer = append(m.EpsilonReputer, v) + if err := m.EpsilonReputer[len(m.EpsilonReputer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 42: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HalfMaxProcessStakeRemovalsEndBlock = append(m.HalfMaxProcessStakeRemovalsEndBlock, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.HalfMaxProcessStakeRemovalsEndBlock) == 0 { + m.HalfMaxProcessStakeRemovalsEndBlock = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HalfMaxProcessStakeRemovalsEndBlock = append(m.HalfMaxProcessStakeRemovalsEndBlock, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field HalfMaxProcessStakeRemovalsEndBlock", wireType) + } + case 43: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataSendingFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v cosmossdk_io_math.Int + m.DataSendingFee = append(m.DataSendingFee, v) + if err := m.DataSendingFee[len(m.DataSendingFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 44: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpsilonSafeDiv", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.EpsilonSafeDiv = append(m.EpsilonSafeDiv, v) + if err := m.EpsilonSafeDiv[len(m.EpsilonSafeDiv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 45: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxElementsPerForecast = append(m.MaxElementsPerForecast, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxElementsPerForecast) == 0 { + m.MaxElementsPerForecast = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxElementsPerForecast = append(m.MaxElementsPerForecast, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxElementsPerForecast", wireType) + } + case 46: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxActiveTopicsPerBlock = append(m.MaxActiveTopicsPerBlock, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxActiveTopicsPerBlock) == 0 { + m.MaxActiveTopicsPerBlock = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxActiveTopicsPerBlock = append(m.MaxActiveTopicsPerBlock, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxActiveTopicsPerBlock", wireType) + } + case 47: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxStringLength = append(m.MaxStringLength, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MaxStringLength) == 0 { + m.MaxStringLength = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxStringLength = append(m.MaxStringLength, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MaxStringLength", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateParamsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Params == nil { + m.Params = &OptionalParams{} + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateNewTopicRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateNewTopicRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateNewTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LossMethod", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LossMethod = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochLength", wireType) + } + m.EpochLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochLength |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroundTruthLag", wireType) + } + m.GroundTruthLag = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroundTruthLag |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PNorm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PNorm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AlphaRegret", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AlphaRegret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowNegative", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowNegative = bool(v != 0) + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Epsilon", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Epsilon.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkerSubmissionWindow", wireType) + } + m.WorkerSubmissionWindow = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WorkerSubmissionWindow |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MeritSortitionAlpha", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MeritSortitionAlpha.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveInfererQuantile", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ActiveInfererQuantile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveForecasterQuantile", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ActiveForecasterQuantile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveReputerQuantile", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ActiveReputerQuantile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateNewTopicResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateNewTopicResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateNewTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InsertReputerPayloadRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InsertReputerPayloadRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InsertReputerPayloadRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReputerValueBundle == nil { + m.ReputerValueBundle = &ReputerValueBundle{} + } + if err := m.ReputerValueBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InsertReputerPayloadResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InsertReputerPayloadResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InsertReputerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InsertWorkerPayloadRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InsertWorkerPayloadRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InsertWorkerPayloadRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkerDataBundle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.WorkerDataBundle == nil { + m.WorkerDataBundle = &WorkerDataBundle{} + } + if err := m.WorkerDataBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InsertWorkerPayloadResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InsertWorkerPayloadResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InsertWorkerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RegisterRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RegisterRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RegisterRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsReputer", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsReputer = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RegisterResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RegisterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Success = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveRegistrationRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveRegistrationRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveRegistrationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsReputer", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsReputer = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveRegistrationResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveRegistrationResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveRegistrationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Success = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddStakeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddStakeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddStakeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveStakeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveStakeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveStakeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CancelRemoveStakeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CancelRemoveStakeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CancelRemoveStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CancelRemoveStakeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CancelRemoveStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CancelRemoveStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DelegateStakeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DelegateStakeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegateStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DelegateStakeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DelegateStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegateStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveDelegateStakeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveDelegateStakeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveDelegateStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveDelegateStakeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveDelegateStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveDelegateStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CancelRemoveDelegateStakeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CancelRemoveDelegateStakeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CancelRemoveDelegateStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CancelRemoveDelegateStakeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CancelRemoveDelegateStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CancelRemoveDelegateStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FundTopicRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FundTopicRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FundTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FundTopicResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FundTopicResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FundTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddToWhitelistAdminRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddToWhitelistAdminRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddToWhitelistAdminRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddToWhitelistAdminResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddToWhitelistAdminResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddToWhitelistAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveFromWhitelistAdminRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveFromWhitelistAdminRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveFromWhitelistAdminRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveFromWhitelistAdminResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveFromWhitelistAdminResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveFromWhitelistAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RewardDelegateStakeResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RewardDelegateStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RewardDelegateStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RewardDelegateStakeRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RewardDelegateStakeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RewardDelegateStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +) diff --git a/codec/allora-chain/x/emissions/v4types/worker.pb.go b/codec/allora-chain/x/emissions/v4types/worker.pb.go new file mode 100644 index 0000000..1b81093 --- /dev/null +++ b/codec/allora-chain/x/emissions/v4types/worker.pb.go @@ -0,0 +1,2753 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: emissions/v3/worker.proto + +package types + +import ( + bytes "bytes" + fmt "fmt" + github_com_allora_network_allora_chain_math "github.com/allora-network/allora-chain/math" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type TimestampedValue struct { + BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + Value github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,2,opt,name=value,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"value"` +} + +func (m *TimestampedValue) Reset() { *m = TimestampedValue{} } +func (m *TimestampedValue) String() string { return proto.CompactTextString(m) } +func (*TimestampedValue) ProtoMessage() {} +func (*TimestampedValue) Descriptor() ([]byte, []int) { + return fileDescriptor_60e5359cc895864b, []int{0} +} +func (m *TimestampedValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TimestampedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TimestampedValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TimestampedValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimestampedValue.Merge(m, src) +} +func (m *TimestampedValue) XXX_Size() int { + return m.Size() +} +func (m *TimestampedValue) XXX_DiscardUnknown() { + xxx_messageInfo_TimestampedValue.DiscardUnknown(m) +} + +var xxx_messageInfo_TimestampedValue proto.InternalMessageInfo + +func (m *TimestampedValue) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +type Inference struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + Inferer string `protobuf:"bytes,3,opt,name=inferer,proto3" json:"inferer,omitempty"` + Value github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,4,opt,name=value,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"value"` + ExtraData []byte `protobuf:"bytes,5,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` + Proof string `protobuf:"bytes,6,opt,name=proof,proto3" json:"proof,omitempty"` +} + +func (m *Inference) Reset() { *m = Inference{} } +func (m *Inference) String() string { return proto.CompactTextString(m) } +func (*Inference) ProtoMessage() {} +func (*Inference) Descriptor() ([]byte, []int) { + return fileDescriptor_60e5359cc895864b, []int{1} +} +func (m *Inference) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Inference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Inference.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Inference) XXX_Merge(src proto.Message) { + xxx_messageInfo_Inference.Merge(m, src) +} +func (m *Inference) XXX_Size() int { + return m.Size() +} +func (m *Inference) XXX_DiscardUnknown() { + xxx_messageInfo_Inference.DiscardUnknown(m) +} + +var xxx_messageInfo_Inference proto.InternalMessageInfo + +func (m *Inference) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *Inference) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *Inference) GetInferer() string { + if m != nil { + return m.Inferer + } + return "" +} + +func (m *Inference) GetExtraData() []byte { + if m != nil { + return m.ExtraData + } + return nil +} + +func (m *Inference) GetProof() string { + if m != nil { + return m.Proof + } + return "" +} + +type Inferences struct { + Inferences []*Inference `protobuf:"bytes,1,rep,name=inferences,proto3" json:"inferences,omitempty"` +} + +func (m *Inferences) Reset() { *m = Inferences{} } +func (m *Inferences) String() string { return proto.CompactTextString(m) } +func (*Inferences) ProtoMessage() {} +func (*Inferences) Descriptor() ([]byte, []int) { + return fileDescriptor_60e5359cc895864b, []int{2} +} +func (m *Inferences) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Inferences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Inferences.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Inferences) XXX_Merge(src proto.Message) { + xxx_messageInfo_Inferences.Merge(m, src) +} +func (m *Inferences) XXX_Size() int { + return m.Size() +} +func (m *Inferences) XXX_DiscardUnknown() { + xxx_messageInfo_Inferences.DiscardUnknown(m) +} + +var xxx_messageInfo_Inferences proto.InternalMessageInfo + +func (m *Inferences) GetInferences() []*Inference { + if m != nil { + return m.Inferences + } + return nil +} + +type ForecastElement struct { + Inferer string `protobuf:"bytes,1,opt,name=inferer,proto3" json:"inferer,omitempty"` + Value github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,2,opt,name=value,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"value"` +} + +func (m *ForecastElement) Reset() { *m = ForecastElement{} } +func (m *ForecastElement) String() string { return proto.CompactTextString(m) } +func (*ForecastElement) ProtoMessage() {} +func (*ForecastElement) Descriptor() ([]byte, []int) { + return fileDescriptor_60e5359cc895864b, []int{3} +} +func (m *ForecastElement) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ForecastElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ForecastElement.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ForecastElement) XXX_Merge(src proto.Message) { + xxx_messageInfo_ForecastElement.Merge(m, src) +} +func (m *ForecastElement) XXX_Size() int { + return m.Size() +} +func (m *ForecastElement) XXX_DiscardUnknown() { + xxx_messageInfo_ForecastElement.DiscardUnknown(m) +} + +var xxx_messageInfo_ForecastElement proto.InternalMessageInfo + +func (m *ForecastElement) GetInferer() string { + if m != nil { + return m.Inferer + } + return "" +} + +type Forecast struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + Forecaster string `protobuf:"bytes,3,opt,name=forecaster,proto3" json:"forecaster,omitempty"` + ForecastElements []*ForecastElement `protobuf:"bytes,4,rep,name=forecast_elements,json=forecastElements,proto3" json:"forecast_elements,omitempty"` + ExtraData []byte `protobuf:"bytes,5,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` +} + +func (m *Forecast) Reset() { *m = Forecast{} } +func (m *Forecast) String() string { return proto.CompactTextString(m) } +func (*Forecast) ProtoMessage() {} +func (*Forecast) Descriptor() ([]byte, []int) { + return fileDescriptor_60e5359cc895864b, []int{4} +} +func (m *Forecast) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Forecast) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Forecast.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Forecast) XXX_Merge(src proto.Message) { + xxx_messageInfo_Forecast.Merge(m, src) +} +func (m *Forecast) XXX_Size() int { + return m.Size() +} +func (m *Forecast) XXX_DiscardUnknown() { + xxx_messageInfo_Forecast.DiscardUnknown(m) +} + +var xxx_messageInfo_Forecast proto.InternalMessageInfo + +func (m *Forecast) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *Forecast) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *Forecast) GetForecaster() string { + if m != nil { + return m.Forecaster + } + return "" +} + +func (m *Forecast) GetForecastElements() []*ForecastElement { + if m != nil { + return m.ForecastElements + } + return nil +} + +func (m *Forecast) GetExtraData() []byte { + if m != nil { + return m.ExtraData + } + return nil +} + +type Forecasts struct { + Forecasts []*Forecast `protobuf:"bytes,1,rep,name=forecasts,proto3" json:"forecasts,omitempty"` +} + +func (m *Forecasts) Reset() { *m = Forecasts{} } +func (m *Forecasts) String() string { return proto.CompactTextString(m) } +func (*Forecasts) ProtoMessage() {} +func (*Forecasts) Descriptor() ([]byte, []int) { + return fileDescriptor_60e5359cc895864b, []int{5} +} +func (m *Forecasts) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Forecasts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Forecasts.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Forecasts) XXX_Merge(src proto.Message) { + xxx_messageInfo_Forecasts.Merge(m, src) +} +func (m *Forecasts) XXX_Size() int { + return m.Size() +} +func (m *Forecasts) XXX_DiscardUnknown() { + xxx_messageInfo_Forecasts.DiscardUnknown(m) +} + +var xxx_messageInfo_Forecasts proto.InternalMessageInfo + +func (m *Forecasts) GetForecasts() []*Forecast { + if m != nil { + return m.Forecasts + } + return nil +} + +type InferenceForecastBundle struct { + Inference *Inference `protobuf:"bytes,1,opt,name=inference,proto3" json:"inference,omitempty"` + Forecast *Forecast `protobuf:"bytes,2,opt,name=forecast,proto3" json:"forecast,omitempty"` +} + +func (m *InferenceForecastBundle) Reset() { *m = InferenceForecastBundle{} } +func (m *InferenceForecastBundle) String() string { return proto.CompactTextString(m) } +func (*InferenceForecastBundle) ProtoMessage() {} +func (*InferenceForecastBundle) Descriptor() ([]byte, []int) { + return fileDescriptor_60e5359cc895864b, []int{6} +} +func (m *InferenceForecastBundle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InferenceForecastBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InferenceForecastBundle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InferenceForecastBundle) XXX_Merge(src proto.Message) { + xxx_messageInfo_InferenceForecastBundle.Merge(m, src) +} +func (m *InferenceForecastBundle) XXX_Size() int { + return m.Size() +} +func (m *InferenceForecastBundle) XXX_DiscardUnknown() { + xxx_messageInfo_InferenceForecastBundle.DiscardUnknown(m) +} + +var xxx_messageInfo_InferenceForecastBundle proto.InternalMessageInfo + +func (m *InferenceForecastBundle) GetInference() *Inference { + if m != nil { + return m.Inference + } + return nil +} + +func (m *InferenceForecastBundle) GetForecast() *Forecast { + if m != nil { + return m.Forecast + } + return nil +} + +type WorkerDataBundle struct { + Worker string `protobuf:"bytes,1,opt,name=worker,proto3" json:"worker,omitempty"` + Nonce *Nonce `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + InferenceForecastsBundle *InferenceForecastBundle `protobuf:"bytes,4,opt,name=inference_forecasts_bundle,json=inferenceForecastsBundle,proto3" json:"inference_forecasts_bundle,omitempty"` + InferencesForecastsBundleSignature []byte `protobuf:"bytes,5,opt,name=inferences_forecasts_bundle_signature,json=inferencesForecastsBundleSignature,proto3" json:"inferences_forecasts_bundle_signature,omitempty"` + Pubkey string `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` +} + +func (m *WorkerDataBundle) Reset() { *m = WorkerDataBundle{} } +func (m *WorkerDataBundle) String() string { return proto.CompactTextString(m) } +func (*WorkerDataBundle) ProtoMessage() {} +func (*WorkerDataBundle) Descriptor() ([]byte, []int) { + return fileDescriptor_60e5359cc895864b, []int{7} +} +func (m *WorkerDataBundle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkerDataBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WorkerDataBundle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WorkerDataBundle) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkerDataBundle.Merge(m, src) +} +func (m *WorkerDataBundle) XXX_Size() int { + return m.Size() +} +func (m *WorkerDataBundle) XXX_DiscardUnknown() { + xxx_messageInfo_WorkerDataBundle.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkerDataBundle proto.InternalMessageInfo + +func (m *WorkerDataBundle) GetWorker() string { + if m != nil { + return m.Worker + } + return "" +} + +func (m *WorkerDataBundle) GetNonce() *Nonce { + if m != nil { + return m.Nonce + } + return nil +} + +func (m *WorkerDataBundle) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *WorkerDataBundle) GetInferenceForecastsBundle() *InferenceForecastBundle { + if m != nil { + return m.InferenceForecastsBundle + } + return nil +} + +func (m *WorkerDataBundle) GetInferencesForecastsBundleSignature() []byte { + if m != nil { + return m.InferencesForecastsBundleSignature + } + return nil +} + +func (m *WorkerDataBundle) GetPubkey() string { + if m != nil { + return m.Pubkey + } + return "" +} + +type WorkerDataBundles struct { + WorkerDataBundles []*WorkerDataBundle `protobuf:"bytes,1,rep,name=worker_data_bundles,json=workerDataBundles,proto3" json:"worker_data_bundles,omitempty"` +} + +func (m *WorkerDataBundles) Reset() { *m = WorkerDataBundles{} } +func (m *WorkerDataBundles) String() string { return proto.CompactTextString(m) } +func (*WorkerDataBundles) ProtoMessage() {} +func (*WorkerDataBundles) Descriptor() ([]byte, []int) { + return fileDescriptor_60e5359cc895864b, []int{8} +} +func (m *WorkerDataBundles) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkerDataBundles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WorkerDataBundles.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WorkerDataBundles) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkerDataBundles.Merge(m, src) +} +func (m *WorkerDataBundles) XXX_Size() int { + return m.Size() +} +func (m *WorkerDataBundles) XXX_DiscardUnknown() { + xxx_messageInfo_WorkerDataBundles.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkerDataBundles proto.InternalMessageInfo + +func (m *WorkerDataBundles) GetWorkerDataBundles() []*WorkerDataBundle { + if m != nil { + return m.WorkerDataBundles + } + return nil +} + +func init() { + proto.RegisterType((*TimestampedValue)(nil), "emissions.v3.TimestampedValue") + proto.RegisterType((*Inference)(nil), "emissions.v3.Inference") + proto.RegisterType((*Inferences)(nil), "emissions.v3.Inferences") + proto.RegisterType((*ForecastElement)(nil), "emissions.v3.ForecastElement") + proto.RegisterType((*Forecast)(nil), "emissions.v3.Forecast") + proto.RegisterType((*Forecasts)(nil), "emissions.v3.Forecasts") + proto.RegisterType((*InferenceForecastBundle)(nil), "emissions.v3.InferenceForecastBundle") + proto.RegisterType((*WorkerDataBundle)(nil), "emissions.v3.WorkerDataBundle") + proto.RegisterType((*WorkerDataBundles)(nil), "emissions.v3.WorkerDataBundles") +} + +func init() { proto.RegisterFile("emissions/v3/worker.proto", fileDescriptor_60e5359cc895864b) } + +var fileDescriptor_60e5359cc895864b = []byte{ + // 647 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4f, 0x4f, 0x13, 0x41, + 0x14, 0xef, 0xd0, 0x16, 0xe8, 0x83, 0x44, 0x18, 0x08, 0x2c, 0x24, 0x2c, 0xb5, 0x09, 0x49, 0x3d, + 0xd8, 0x4d, 0x40, 0x83, 0xf1, 0x26, 0x01, 0x23, 0x26, 0x92, 0x38, 0x1a, 0x4d, 0xbc, 0x6c, 0xa6, + 0xdb, 0x69, 0x3b, 0xa1, 0xdd, 0xd9, 0xec, 0x4c, 0xf9, 0x73, 0xf3, 0xec, 0xc9, 0x8f, 0xe0, 0xa7, + 0x31, 0x1c, 0x39, 0xaa, 0x07, 0x62, 0xe0, 0xe2, 0xc5, 0xef, 0x60, 0x76, 0x76, 0x76, 0x97, 0x5d, + 0xac, 0x9a, 0xc8, 0x6d, 0xdf, 0xdb, 0x5f, 0xdf, 0xfb, 0xfd, 0xd9, 0x99, 0xc2, 0x0a, 0x1b, 0x72, + 0x29, 0xb9, 0xf0, 0xa5, 0x73, 0xb4, 0xe5, 0x1c, 0x8b, 0xf0, 0x90, 0x85, 0xad, 0x20, 0x14, 0x4a, + 0xe0, 0xd9, 0xf4, 0x55, 0xeb, 0x68, 0x6b, 0xd5, 0xca, 0x01, 0x7d, 0xe1, 0x7b, 0x2c, 0xc6, 0xad, + 0x2e, 0xf6, 0x44, 0x4f, 0xe8, 0x47, 0x27, 0x7a, 0x8a, 0xbb, 0x8d, 0x0f, 0x08, 0xe6, 0x5e, 0xf3, + 0x21, 0x93, 0x8a, 0x0e, 0x03, 0xd6, 0x79, 0x43, 0x07, 0x23, 0x86, 0xef, 0xc2, 0x6c, 0x7b, 0x20, + 0xbc, 0x43, 0xb7, 0xcf, 0x78, 0xaf, 0xaf, 0x2c, 0x54, 0x47, 0xcd, 0x32, 0x99, 0xd1, 0xbd, 0x67, + 0xba, 0x85, 0x5f, 0x40, 0xf5, 0x28, 0xc2, 0x5a, 0x13, 0x75, 0xd4, 0xac, 0xed, 0x6c, 0x9f, 0x5d, + 0xac, 0x97, 0xbe, 0x5d, 0xac, 0x3b, 0x3d, 0xae, 0xfa, 0xa3, 0x76, 0xcb, 0x13, 0x43, 0x87, 0x0e, + 0x06, 0x22, 0xa4, 0xf7, 0x7d, 0xa6, 0x22, 0xbe, 0x49, 0xe9, 0xf5, 0x29, 0xf7, 0x9d, 0x21, 0x55, + 0xfd, 0xd6, 0x2e, 0xf3, 0x48, 0x3c, 0xe5, 0x71, 0xe5, 0xc7, 0xa7, 0x75, 0xd4, 0xf8, 0x89, 0xa0, + 0xb6, 0xef, 0x77, 0x59, 0xc8, 0x7c, 0x8f, 0xe1, 0x15, 0x98, 0x56, 0x22, 0xe0, 0x9e, 0xcb, 0x3b, + 0x9a, 0x41, 0x85, 0x4c, 0xe9, 0x7a, 0xbf, 0x73, 0x83, 0xe0, 0xc4, 0x4d, 0x82, 0x16, 0x4c, 0x71, + 0x3d, 0x2a, 0xb4, 0xca, 0x11, 0x45, 0x92, 0x94, 0x19, 0xf5, 0xca, 0x6d, 0x50, 0xc7, 0x6b, 0x00, + 0xec, 0x44, 0x85, 0xd4, 0xed, 0x50, 0x45, 0xad, 0x6a, 0x1d, 0x35, 0x67, 0x49, 0x4d, 0x77, 0x76, + 0xa9, 0xa2, 0x78, 0x11, 0xaa, 0x41, 0x28, 0x44, 0xd7, 0x9a, 0xd4, 0x2c, 0xe2, 0xc2, 0xe8, 0xdd, + 0x03, 0x48, 0xe5, 0x4a, 0xbc, 0x0d, 0xc0, 0xd3, 0xca, 0x42, 0xf5, 0x72, 0x73, 0x66, 0x73, 0xb9, + 0x75, 0x3d, 0xdd, 0x56, 0x8a, 0x26, 0xd7, 0xa0, 0x8d, 0xf7, 0x08, 0xee, 0x3c, 0x15, 0x21, 0xf3, + 0xa8, 0x54, 0x7b, 0x03, 0x36, 0x64, 0x7e, 0x4e, 0x3e, 0x1a, 0x23, 0xff, 0x36, 0x93, 0xfb, 0x8a, + 0x60, 0x3a, 0xa1, 0xf0, 0x9f, 0xc1, 0xd9, 0x00, 0x5d, 0x33, 0x29, 0xcd, 0xee, 0x5a, 0x07, 0x3f, + 0x87, 0xf9, 0xa4, 0x72, 0x59, 0xac, 0x56, 0x5a, 0x15, 0xed, 0xd6, 0x5a, 0xde, 0xad, 0x82, 0x27, + 0x64, 0xae, 0x9b, 0x6f, 0xc8, 0xbf, 0x64, 0x67, 0xb4, 0x3d, 0x81, 0x5a, 0x32, 0x49, 0xe2, 0x07, + 0x50, 0x4b, 0xa6, 0x24, 0x19, 0x2d, 0xfd, 0x7e, 0x2b, 0xc9, 0x80, 0xd1, 0x29, 0x5b, 0x4e, 0xb3, + 0x4b, 0x00, 0x3b, 0x23, 0xbf, 0x33, 0x60, 0xf8, 0x21, 0xd4, 0xd2, 0x2c, 0xb5, 0x5d, 0x7f, 0x48, + 0x3d, 0x43, 0xe2, 0x4d, 0x98, 0x4e, 0xe6, 0x6b, 0x17, 0xc7, 0xf3, 0x48, 0x71, 0x46, 0xcf, 0xe7, + 0x09, 0x98, 0x7b, 0xab, 0x6f, 0x90, 0x48, 0xa4, 0x61, 0xb1, 0x04, 0x93, 0xf1, 0xad, 0x62, 0x3e, + 0x17, 0x53, 0xe1, 0x7b, 0x50, 0xd5, 0x97, 0x88, 0xd9, 0xb1, 0x90, 0xdf, 0x71, 0x10, 0xbd, 0x22, + 0x31, 0x22, 0x17, 0x7b, 0x39, 0x1f, 0xbb, 0x07, 0xab, 0x29, 0x73, 0x37, 0xb5, 0xc5, 0x6d, 0xeb, + 0xdd, 0xfa, 0x1c, 0xce, 0x6c, 0x6e, 0x8c, 0x11, 0x9d, 0xb7, 0x8b, 0x58, 0xbc, 0xf8, 0x42, 0x1a, + 0x09, 0x2f, 0x61, 0x23, 0x3b, 0x14, 0x37, 0xb6, 0xb8, 0x92, 0xf7, 0x7c, 0xaa, 0x46, 0x21, 0x33, + 0x39, 0x37, 0x32, 0x70, 0x61, 0xd2, 0xab, 0x04, 0x19, 0xb9, 0x12, 0x8c, 0xda, 0x87, 0xec, 0xd4, + 0x9c, 0x5e, 0x53, 0x19, 0x23, 0x3d, 0x98, 0x2f, 0xfa, 0x28, 0xf1, 0x01, 0x2c, 0xc4, 0xd6, 0xe9, + 0x6f, 0xca, 0x2c, 0x4f, 0x3e, 0x15, 0x3b, 0xaf, 0xb1, 0xf8, 0x6b, 0x32, 0x7f, 0x5c, 0x9c, 0xb7, + 0x43, 0xce, 0x2e, 0x6d, 0x74, 0x7e, 0x69, 0xa3, 0xef, 0x97, 0x36, 0xfa, 0x78, 0x65, 0x97, 0xce, + 0xaf, 0xec, 0xd2, 0x97, 0x2b, 0xbb, 0xf4, 0xee, 0xd1, 0x3f, 0x9e, 0xd8, 0x13, 0x27, 0xfb, 0x4f, + 0x50, 0xa7, 0x01, 0x93, 0xed, 0x49, 0x7d, 0xf7, 0x6f, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xae, + 0x9e, 0x56, 0xa4, 0x56, 0x06, 0x00, 0x00, +} + +func (this *TimestampedValue) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TimestampedValue) + if !ok { + that2, ok := that.(TimestampedValue) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.BlockHeight != that1.BlockHeight { + return false + } + if !this.Value.Equal(that1.Value) { + return false + } + return true +} +func (this *Inference) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Inference) + if !ok { + that2, ok := that.(Inference) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TopicId != that1.TopicId { + return false + } + if this.BlockHeight != that1.BlockHeight { + return false + } + if this.Inferer != that1.Inferer { + return false + } + if !this.Value.Equal(that1.Value) { + return false + } + if !bytes.Equal(this.ExtraData, that1.ExtraData) { + return false + } + if this.Proof != that1.Proof { + return false + } + return true +} +func (this *ForecastElement) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ForecastElement) + if !ok { + that2, ok := that.(ForecastElement) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Inferer != that1.Inferer { + return false + } + if !this.Value.Equal(that1.Value) { + return false + } + return true +} +func (this *Forecast) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Forecast) + if !ok { + that2, ok := that.(Forecast) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TopicId != that1.TopicId { + return false + } + if this.BlockHeight != that1.BlockHeight { + return false + } + if this.Forecaster != that1.Forecaster { + return false + } + if len(this.ForecastElements) != len(that1.ForecastElements) { + return false + } + for i := range this.ForecastElements { + if !this.ForecastElements[i].Equal(that1.ForecastElements[i]) { + return false + } + } + if !bytes.Equal(this.ExtraData, that1.ExtraData) { + return false + } + return true +} +func (this *InferenceForecastBundle) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*InferenceForecastBundle) + if !ok { + that2, ok := that.(InferenceForecastBundle) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.Inference.Equal(that1.Inference) { + return false + } + if !this.Forecast.Equal(that1.Forecast) { + return false + } + return true +} +func (this *WorkerDataBundle) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*WorkerDataBundle) + if !ok { + that2, ok := that.(WorkerDataBundle) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Worker != that1.Worker { + return false + } + if !this.Nonce.Equal(that1.Nonce) { + return false + } + if this.TopicId != that1.TopicId { + return false + } + if !this.InferenceForecastsBundle.Equal(that1.InferenceForecastsBundle) { + return false + } + if !bytes.Equal(this.InferencesForecastsBundleSignature, that1.InferencesForecastsBundleSignature) { + return false + } + if this.Pubkey != that1.Pubkey { + return false + } + return true +} +func (m *TimestampedValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TimestampedValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TimestampedValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.BlockHeight != 0 { + i = encodeVarintWorker(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Inference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Inference) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Inference) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Proof) > 0 { + i -= len(m.Proof) + copy(dAtA[i:], m.Proof) + i = encodeVarintWorker(dAtA, i, uint64(len(m.Proof))) + i-- + dAtA[i] = 0x32 + } + if len(m.ExtraData) > 0 { + i -= len(m.ExtraData) + copy(dAtA[i:], m.ExtraData) + i = encodeVarintWorker(dAtA, i, uint64(len(m.ExtraData))) + i-- + dAtA[i] = 0x2a + } + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.Inferer) > 0 { + i -= len(m.Inferer) + copy(dAtA[i:], m.Inferer) + i = encodeVarintWorker(dAtA, i, uint64(len(m.Inferer))) + i-- + dAtA[i] = 0x1a + } + if m.BlockHeight != 0 { + i = encodeVarintWorker(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintWorker(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Inferences) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Inferences) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Inferences) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Inferences) > 0 { + for iNdEx := len(m.Inferences) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Inferences[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ForecastElement) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ForecastElement) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ForecastElement) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Inferer) > 0 { + i -= len(m.Inferer) + copy(dAtA[i:], m.Inferer) + i = encodeVarintWorker(dAtA, i, uint64(len(m.Inferer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Forecast) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Forecast) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Forecast) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ExtraData) > 0 { + i -= len(m.ExtraData) + copy(dAtA[i:], m.ExtraData) + i = encodeVarintWorker(dAtA, i, uint64(len(m.ExtraData))) + i-- + dAtA[i] = 0x2a + } + if len(m.ForecastElements) > 0 { + for iNdEx := len(m.ForecastElements) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ForecastElements[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Forecaster) > 0 { + i -= len(m.Forecaster) + copy(dAtA[i:], m.Forecaster) + i = encodeVarintWorker(dAtA, i, uint64(len(m.Forecaster))) + i-- + dAtA[i] = 0x1a + } + if m.BlockHeight != 0 { + i = encodeVarintWorker(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintWorker(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Forecasts) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Forecasts) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Forecasts) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Forecasts) > 0 { + for iNdEx := len(m.Forecasts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Forecasts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *InferenceForecastBundle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InferenceForecastBundle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InferenceForecastBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Forecast != nil { + { + size, err := m.Forecast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Inference != nil { + { + size, err := m.Inference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *WorkerDataBundle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkerDataBundle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkerDataBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Pubkey) > 0 { + i -= len(m.Pubkey) + copy(dAtA[i:], m.Pubkey) + i = encodeVarintWorker(dAtA, i, uint64(len(m.Pubkey))) + i-- + dAtA[i] = 0x32 + } + if len(m.InferencesForecastsBundleSignature) > 0 { + i -= len(m.InferencesForecastsBundleSignature) + copy(dAtA[i:], m.InferencesForecastsBundleSignature) + i = encodeVarintWorker(dAtA, i, uint64(len(m.InferencesForecastsBundleSignature))) + i-- + dAtA[i] = 0x2a + } + if m.InferenceForecastsBundle != nil { + { + size, err := m.InferenceForecastsBundle.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.TopicId != 0 { + i = encodeVarintWorker(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x18 + } + if m.Nonce != nil { + { + size, err := m.Nonce.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintWorker(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *WorkerDataBundles) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkerDataBundles) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkerDataBundles) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.WorkerDataBundles) > 0 { + for iNdEx := len(m.WorkerDataBundles) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WorkerDataBundles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintWorker(dAtA []byte, offset int, v uint64) int { + offset -= sovWorker(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TimestampedValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockHeight != 0 { + n += 1 + sovWorker(uint64(m.BlockHeight)) + } + l = m.Value.Size() + n += 1 + l + sovWorker(uint64(l)) + return n +} + +func (m *Inference) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovWorker(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovWorker(uint64(m.BlockHeight)) + } + l = len(m.Inferer) + if l > 0 { + n += 1 + l + sovWorker(uint64(l)) + } + l = m.Value.Size() + n += 1 + l + sovWorker(uint64(l)) + l = len(m.ExtraData) + if l > 0 { + n += 1 + l + sovWorker(uint64(l)) + } + l = len(m.Proof) + if l > 0 { + n += 1 + l + sovWorker(uint64(l)) + } + return n +} + +func (m *Inferences) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Inferences) > 0 { + for _, e := range m.Inferences { + l = e.Size() + n += 1 + l + sovWorker(uint64(l)) + } + } + return n +} + +func (m *ForecastElement) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inferer) + if l > 0 { + n += 1 + l + sovWorker(uint64(l)) + } + l = m.Value.Size() + n += 1 + l + sovWorker(uint64(l)) + return n +} + +func (m *Forecast) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovWorker(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovWorker(uint64(m.BlockHeight)) + } + l = len(m.Forecaster) + if l > 0 { + n += 1 + l + sovWorker(uint64(l)) + } + if len(m.ForecastElements) > 0 { + for _, e := range m.ForecastElements { + l = e.Size() + n += 1 + l + sovWorker(uint64(l)) + } + } + l = len(m.ExtraData) + if l > 0 { + n += 1 + l + sovWorker(uint64(l)) + } + return n +} + +func (m *Forecasts) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Forecasts) > 0 { + for _, e := range m.Forecasts { + l = e.Size() + n += 1 + l + sovWorker(uint64(l)) + } + } + return n +} + +func (m *InferenceForecastBundle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Inference != nil { + l = m.Inference.Size() + n += 1 + l + sovWorker(uint64(l)) + } + if m.Forecast != nil { + l = m.Forecast.Size() + n += 1 + l + sovWorker(uint64(l)) + } + return n +} + +func (m *WorkerDataBundle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Worker) + if l > 0 { + n += 1 + l + sovWorker(uint64(l)) + } + if m.Nonce != nil { + l = m.Nonce.Size() + n += 1 + l + sovWorker(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovWorker(uint64(m.TopicId)) + } + if m.InferenceForecastsBundle != nil { + l = m.InferenceForecastsBundle.Size() + n += 1 + l + sovWorker(uint64(l)) + } + l = len(m.InferencesForecastsBundleSignature) + if l > 0 { + n += 1 + l + sovWorker(uint64(l)) + } + l = len(m.Pubkey) + if l > 0 { + n += 1 + l + sovWorker(uint64(l)) + } + return n +} + +func (m *WorkerDataBundles) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.WorkerDataBundles) > 0 { + for _, e := range m.WorkerDataBundles { + l = e.Size() + n += 1 + l + sovWorker(uint64(l)) + } + } + return n +} + +func sovWorker(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozWorker(x uint64) (n int) { + return sovWorker(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TimestampedValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TimestampedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TimestampedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipWorker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthWorker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Inference) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Inference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Inference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtraData", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtraData = append(m.ExtraData[:0], dAtA[iNdEx:postIndex]...) + if m.ExtraData == nil { + m.ExtraData = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proof = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipWorker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthWorker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Inferences) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Inferences: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Inferences: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inferences = append(m.Inferences, &Inference{}) + if err := m.Inferences[len(m.Inferences)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipWorker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthWorker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ForecastElement) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ForecastElement: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ForecastElement: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipWorker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthWorker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Forecast) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Forecast: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Forecast: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ForecastElements", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ForecastElements = append(m.ForecastElements, &ForecastElement{}) + if err := m.ForecastElements[len(m.ForecastElements)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtraData", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtraData = append(m.ExtraData[:0], dAtA[iNdEx:postIndex]...) + if m.ExtraData == nil { + m.ExtraData = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipWorker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthWorker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Forecasts) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Forecasts: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Forecasts: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecasts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Forecasts = append(m.Forecasts, &Forecast{}) + if err := m.Forecasts[len(m.Forecasts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipWorker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthWorker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InferenceForecastBundle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InferenceForecastBundle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InferenceForecastBundle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inference", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Inference == nil { + m.Inference = &Inference{} + } + if err := m.Inference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Forecast == nil { + m.Forecast = &Forecast{} + } + if err := m.Forecast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipWorker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthWorker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkerDataBundle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkerDataBundle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkerDataBundle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nonce == nil { + m.Nonce = &Nonce{} + } + if err := m.Nonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InferenceForecastsBundle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InferenceForecastsBundle == nil { + m.InferenceForecastsBundle = &InferenceForecastBundle{} + } + if err := m.InferenceForecastsBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InferencesForecastsBundleSignature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InferencesForecastsBundleSignature = append(m.InferencesForecastsBundleSignature[:0], dAtA[iNdEx:postIndex]...) + if m.InferencesForecastsBundleSignature == nil { + m.InferencesForecastsBundleSignature = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pubkey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipWorker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthWorker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkerDataBundles) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkerDataBundles: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkerDataBundles: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkerDataBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WorkerDataBundles = append(m.WorkerDataBundles, &WorkerDataBundle{}) + if err := m.WorkerDataBundles[len(m.WorkerDataBundles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipWorker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthWorker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipWorker(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowWorker + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowWorker + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowWorker + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthWorker + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupWorker + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthWorker + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthWorker = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowWorker = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupWorker = fmt.Errorf("proto: unexpected end of group") +) diff --git a/codec/codec.go b/codec/codec.go index 3da2af7..e343175 100644 --- a/codec/codec.go +++ b/codec/codec.go @@ -23,6 +23,8 @@ import ( // Make sure types are imported in this order (newest to oldest) to avoid conflicts emissions "github.com/allora-network/allora-chain/x/emissions/types" + emissionsv4 "github.com/allora-network/allora-producer/codec/allora-chain/x/emissions/v4types" + emissionsv3 "github.com/allora-network/allora-producer/codec/allora-chain/x/emissions/v3types" emissionsv2 "github.com/allora-network/allora-producer/codec/allora-chain/x/emissions/v2types" @@ -69,8 +71,9 @@ var defaultRegisterFuncs = []func(codectypes.InterfaceRegistry){ emissions.RegisterInterfaces, mint.RegisterInterfaces, // Allora types (local) - emissionsv2.RegisterInterfaces, + emissionsv4.RegisterInterfaces, emissionsv3.RegisterInterfaces, + emissionsv2.RegisterInterfaces, } // NewCodec creates a new instance of Codec with registered interfaces. diff --git a/codec/codec_test.go b/codec/codec_test.go index 3629d9f..b1b96aa 100644 --- a/codec/codec_test.go +++ b/codec/codec_test.go @@ -5,7 +5,6 @@ import ( "errors" "testing" - emissionsv3 "github.com/allora-network/allora-producer/codec/allora-chain/x/emissions/v3types" abcitypes "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" @@ -17,6 +16,7 @@ import ( mock "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" + emissions "github.com/allora-network/allora-chain/x/emissions/types" "github.com/allora-network/allora-producer/codec/mocks" ) @@ -38,14 +38,14 @@ func TestCodec_AddInterfaces(t *testing.T) { c, _, _ := newTestCodec() // Attempt to resolve an interface before adding it - _, err := c.interfaceRegistry.Resolve("/emissions.v3.MsgInsertReputerPayload") + _, err := c.interfaceRegistry.Resolve("/emissions.v5.InsertWorkerPayloadRequest") require.Error(t, err) // Add a new interface - c.AddInterfaces(emissionsv3.RegisterInterfaces) + c.AddInterfaces(emissions.RegisterInterfaces) // Resolve the interface after adding it - _, err = c.interfaceRegistry.Resolve("/emissions.v3.MsgInsertReputerPayload") + _, err = c.interfaceRegistry.Resolve("/emissions.v5.InsertWorkerPayloadRequest") require.NoError(t, err) } diff --git a/config/config.allora-devnet-1.yaml b/config/config.allora-devnet-1.yaml index e9bdd17..3cf77a7 100644 --- a/config/config.allora-devnet-1.yaml +++ b/config/config.allora-devnet-1.yaml @@ -27,6 +27,8 @@ kafka_topic_router: - "emissions.v3.MsgRemoveStake" - "emissions.v4.AddStakeRequest" - "emissions.v4.RemoveStakeRequest" + - "emissions.v5.AddStakeRequest" + - "emissions.v5.RemoveStakeRequest" - name: "domain-event.input.allora.allora-devnet-1.delegation" types: - "emissions.v3.StakeInfo" @@ -35,6 +37,7 @@ kafka_topic_router: types: - "emissions.v3.MsgInsertReputerPayload" - "emissions.v4.InsertReputerPayloadRequest" + - "emissions.v5.InsertReputerPayloadRequest" - name: "domain-event.input.allora.allora-devnet-1.worker-loss" types: - "emissions.v3.EventNetworkLossSet" @@ -49,6 +52,8 @@ kafka_topic_router: - "emissions.v3.MsgRemoveRegistration" - "emissions.v4.RemoveRegistrationRequest" - "emissions.v4.RegisterRequest" + - "emissions.v5.RemoveRegistrationRequest" + - "emissions.v5.RegisterRequest" - name: "domain-event.input.allora.allora-devnet-1.transfer" types: - "cosmos.bank.v1beta1.MsgSend" @@ -99,3 +104,9 @@ filter_transaction: # TODO Rename to filter_message? - "emissions.v4.RemoveRegistrationRequest" # Bank - "cosmos.bank.v1beta1.MsgSend" + # emissions.v5 + - "emissions.v5.AddStakeRequest" + - "emissions.v5.RemoveStakeRequest" + - "emissions.v5.InsertReputerPayloadRequest" + - "emissions.v5.RegisterRequest" + - "emissions.v5.RemoveRegistrationRequest" diff --git a/config/config.allora-localnet-1.yaml b/config/config.allora-localnet-1.yaml index ab8addc..610b86c 100644 --- a/config/config.allora-localnet-1.yaml +++ b/config/config.allora-localnet-1.yaml @@ -26,6 +26,8 @@ kafka_topic_router: - "emissions.v3.MsgRemoveStake" - "emissions.v4.AddStakeRequest" - "emissions.v4.RemoveStakeRequest" + - "emissions.v5.AddStakeRequest" + - "emissions.v5.RemoveStakeRequest" - name: "domain-event.input.allora.delegation" types: - "emissions.v3.StakeInfo" @@ -34,6 +36,7 @@ kafka_topic_router: types: - "emissions.v3.MsgInsertReputerPayload" - "emissions.v4.InsertReputerPayloadRequest" + - "emissions.v5.InsertReputerPayloadRequest" - name: "domain-event.input.allora.worker-loss" types: - "emissions.v3.EventNetworkLossSet" @@ -48,6 +51,8 @@ kafka_topic_router: - "emissions.v3.MsgRemoveRegistration" - "emissions.v4.RemoveRegistrationRequest" - "emissions.v4.RegisterRequest" + - "emissions.v5.RemoveRegistrationRequest" + - "emissions.v5.RegisterRequest" - name: "domain-event.input.allora.transfer" types: - "cosmos.bank.v1beta1.MsgSend" @@ -98,3 +103,9 @@ filter_transaction: # TODO Rename to filter_message? - "emissions.v4.RemoveRegistrationRequest" # Bank - "cosmos.bank.v1beta1.MsgSend" + # emissions.v5 + - "emissions.v5.AddStakeRequest" + - "emissions.v5.RemoveStakeRequest" + - "emissions.v5.InsertReputerPayloadRequest" + - "emissions.v5.RegisterRequest" + - "emissions.v5.RemoveRegistrationRequest" diff --git a/config/config.allora-mainnet-1.yaml b/config/config.allora-mainnet-1.yaml index cc302c8..2d94bb7 100644 --- a/config/config.allora-mainnet-1.yaml +++ b/config/config.allora-mainnet-1.yaml @@ -27,6 +27,8 @@ kafka_topic_router: - "emissions.v3.MsgRemoveStake" - "emissions.v4.AddStakeRequest" - "emissions.v4.RemoveStakeRequest" + - "emissions.v5.AddStakeRequest" + - "emissions.v5.RemoveStakeRequest" - name: "domain-event.input.allora.allora-mainnet-1.delegation" types: - "emissions.v3.StakeInfo" @@ -35,6 +37,7 @@ kafka_topic_router: types: - "emissions.v3.MsgInsertReputerPayload" - "emissions.v4.InsertReputerPayloadRequest" + - "emissions.v5.InsertReputerPayloadRequest" - name: "domain-event.input.allora.allora-mainnet-1.worker-loss" types: - "emissions.v3.EventNetworkLossSet" @@ -49,6 +52,8 @@ kafka_topic_router: - "emissions.v3.MsgRemoveRegistration" - "emissions.v4.RemoveRegistrationRequest" - "emissions.v4.RegisterRequest" + - "emissions.v5.RemoveRegistrationRequest" + - "emissions.v5.RegisterRequest" - name: "domain-event.input.allora.allora-mainnet-1.transfer" types: - "cosmos.bank.v1beta1.MsgSend" @@ -99,3 +104,9 @@ filter_transaction: # TODO Rename to filter_message? - "emissions.v4.RemoveRegistrationRequest" # Bank - "cosmos.bank.v1beta1.MsgSend" + # emissions.v5 + - "emissions.v5.AddStakeRequest" + - "emissions.v5.RemoveStakeRequest" + - "emissions.v5.InsertReputerPayloadRequest" + - "emissions.v5.RegisterRequest" + - "emissions.v5.RemoveRegistrationRequest" diff --git a/config/config.allora-testnet-1.yaml b/config/config.allora-testnet-1.yaml index 89abcd9..9d6cd45 100644 --- a/config/config.allora-testnet-1.yaml +++ b/config/config.allora-testnet-1.yaml @@ -20,47 +20,52 @@ producer: num_workers: 3 kafka_topic_router: - - name: "domain-event.input.allora.allora-testnet-1.staking" + - name: "domain-event.input.allora.staking" types: - "emissions.v3.MsgAddStake" - "emissions.v3.MsgRemoveStake" - "emissions.v4.AddStakeRequest" - "emissions.v4.RemoveStakeRequest" - - name: "domain-event.input.allora.allora-testnet-1.delegation" + - "emissions.v5.AddStakeRequest" + - "emissions.v5.RemoveStakeRequest" + - name: "domain-event.input.allora.delegation" types: - "emissions.v3.StakeInfo" - "emissions.v3.DelegateStakeRemovalInfo" - - name: "domain-event.input.allora.allora-testnet-1.reputer-loss" + - name: "domain-event.input.allora.reputer-loss" types: - "emissions.v3.MsgInsertReputerPayload" - "emissions.v4.InsertReputerPayloadRequest" - - name: "domain-event.input.allora.allora-testnet-1.worker-loss" + - "emissions.v5.InsertReputerPayloadRequest" + - name: "domain-event.input.allora.worker-loss" types: - "emissions.v3.EventNetworkLossSet" - "emissions.v4.EventNetworkLossSet" - - name: "domain-event.input.allora.allora-testnet-1.rewards" + - name: "domain-event.input.allora.rewards" types: - "emissions.v3.EventRewardsSettled" - "emissions.v4.EventRewardsSettled" - - name: "domain-event.input.allora.allora-testnet-1.registration" + - name: "domain-event.input.allora.registration" types: - "emissions.v3.MsgRegister" - "emissions.v3.MsgRemoveRegistration" - "emissions.v4.RemoveRegistrationRequest" - "emissions.v4.RegisterRequest" - - name: "domain-event.input.allora.allora-testnet-1.transfer" + - "emissions.v5.RemoveRegistrationRequest" + - "emissions.v5.RegisterRequest" + - name: "domain-event.input.allora.transfer" types: - "cosmos.bank.v1beta1.MsgSend" - - name: "domain-event.input.allora.allora-testnet-1.emascores" + - name: "domain-event.input.allora.emascores" types: - "emissions.v4.EventEMAScoresSet" - - name: "domain-event.input.allora.allora-testnet-1.validator-rewards" + - name: "domain-event.input.allora.validator-rewards" types: - "rewards" - "commission" - "withdraw_rewards" - "withdraw_commission" - - name: "domain-event.input.allora.allora-testnet-1.fund-topic" + - name: "domain-event.input.allora.fund-topic" types: - "emissions.v3.MsgFundTopic" @@ -98,3 +103,9 @@ filter_transaction: # TODO Rename to filter_message? - "emissions.v4.RemoveRegistrationRequest" # Bank - "cosmos.bank.v1beta1.MsgSend" + # emissions.v5 + - "emissions.v5.AddStakeRequest" + - "emissions.v5.RemoveStakeRequest" + - "emissions.v5.InsertReputerPayloadRequest" + - "emissions.v5.RegisterRequest" + - "emissions.v5.RemoveRegistrationRequest" diff --git a/config/init_test.go b/config/init_test.go index c508f88..97b4b79 100644 --- a/config/init_test.go +++ b/config/init_test.go @@ -212,5 +212,148 @@ func TestViperAdapter(t *testing.T) { err = adapter.Unmarshal(&cfg) require.NoError(t, err) + expectedCfg := config.Config{ + Database: config.DatabaseConfig{ + URL: "postgres://devuser:devpass@localhost:5432/dev-indexer?sslmode=disable", + }, + Kafka: config.KafkaConfig{ + Seeds: []string{ + "localhost:9092", + }, + User: "user", + Password: "pass", + }, + Allora: config.AlloraConfig{ + RPC: "https://allora-rpc.testnet.allora.network", + Timeout: 10000000000, + }, + KafkaTopicRouter: []config.KafkaTopicRouterConfig{ + { + Name: "domain-event.input.allora.staking", + Types: []string{ + "emissions.v3.MsgAddStake", + "emissions.v3.MsgRemoveStake", + "emissions.v4.AddStakeRequest", + "emissions.v4.RemoveStakeRequest", + "emissions.v5.AddStakeRequest", + "emissions.v5.RemoveStakeRequest", + }, + }, + { + Name: "domain-event.input.allora.delegation", + Types: []string{ + "emissions.v3.StakeInfo", + "emissions.v3.DelegateStakeRemovalInfo", + }, + }, + { + Name: "domain-event.input.allora.reputer-loss", + Types: []string{ + "emissions.v3.MsgInsertReputerPayload", + "emissions.v4.InsertReputerPayloadRequest", + "emissions.v5.InsertReputerPayloadRequest", + }, + }, + { + Name: "domain-event.input.allora.worker-loss", + Types: []string{ + "emissions.v3.EventNetworkLossSet", + "emissions.v4.EventNetworkLossSet", + }, + }, + { + Name: "domain-event.input.allora.rewards", + Types: []string{ + "emissions.v3.EventRewardsSettled", + "emissions.v4.EventRewardsSettled", + }, + }, + { + Name: "domain-event.input.allora.registration", + Types: []string{ + "emissions.v3.MsgRegister", + "emissions.v3.MsgRemoveRegistration", + "emissions.v4.RemoveRegistrationRequest", + "emissions.v4.RegisterRequest", + "emissions.v5.RemoveRegistrationRequest", + "emissions.v5.RegisterRequest", + }, + }, + { + Name: "domain-event.input.allora.transfer", + Types: []string{ + "cosmos.bank.v1beta1.MsgSend", + }, + }, + { + Name: "domain-event.input.allora.emascores", + Types: []string{ + "emissions.v4.EventEMAScoresSet", + }, + }, + { + Name: "domain-event.input.allora.validator-rewards", + Types: []string{ + "rewards", + "commission", + "withdraw_rewards", + "withdraw_commission", + }, + }, + { + Name: "domain-event.input.allora.fund-topic", + Types: []string{ + "emissions.v3.MsgFundTopic", + }, + }, + }, + FilterEvent: config.FilterEventConfig{ + Types: []string{ + "emissions.v3.EventNetworkLossSet", + "emissions.v3.EventRewardsSettled", + "emissions.v4.EventNetworkLossSet", + "emissions.v4.EventRewardsSettled", + "emissions.v4.EventEMAScoresSet", + "rewards", + "commission", + "withdraw_rewards", + "withdraw_commission", + }, + }, + FilterTransaction: config.FilterTransactionConfig{ + Types: []string{ + "emissions.v3.MsgAddStake", + "emissions.v3.MsgRemoveStake", + "emissions.v3.MsgInsertReputerPayload", + "emissions.v3.MsgRegister", + "emissions.v3.MsgRemoveRegistration", + "emissions.v3.StakeInfo", + "emissions.v3.DelegateStakeRemovalInfo", + "emissions.v3.MsgFundTopic", + "emissions.v4.AddStakeRequest", + "emissions.v4.RemoveStakeRequest", + "emissions.v4.InsertReputerPayloadRequest", + "emissions.v4.RegisterRequest", + "emissions.v4.RemoveRegistrationRequest", + "cosmos.bank.v1beta1.MsgSend", + "emissions.v5.AddStakeRequest", + "emissions.v5.RemoveStakeRequest", + "emissions.v5.InsertReputerPayloadRequest", + "emissions.v5.RegisterRequest", + "emissions.v5.RemoveRegistrationRequest", + }, + }, + Log: config.LogConfig{ + Level: 1, + }, + Producer: config.ProducerConfig{ + BlockRefreshInterval: 5000000000, + RateLimitInterval: 1000000000, + NumWorkers: 3, + }, + } + + assert.Equal(t, expectedCfg, cfg) + assert.NotEmpty(t, cfg) } diff --git a/docker-compose.debug.yml b/docker-compose.debug.yml new file mode 100644 index 0000000..9fab43b --- /dev/null +++ b/docker-compose.debug.yml @@ -0,0 +1,20 @@ +services: + postgres: + env_file: "debug.env" + image: postgres:16 + environment: + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_DB: ${POSTGRES_DB} + ports: + - "5432:5432" + volumes: + - pgdata:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] + interval: 10s + timeout: 5s + retries: 5 + +volumes: + pgdata: diff --git a/go.mod b/go.mod index 6dc1fd4..93dc66d 100644 --- a/go.mod +++ b/go.mod @@ -1,16 +1,16 @@ module github.com/allora-network/allora-producer -go 1.22.2 +go 1.22.8 require ( - github.com/allora-network/allora-chain v0.5.0 + github.com/allora-network/allora-chain v0.6.0 github.com/cometbft/cometbft v0.38.12 github.com/cosmos/cosmos-sdk v0.50.10 github.com/cosmos/gogoproto v1.7.0 github.com/go-playground/validator/v10 v10.22.1 github.com/jackc/pgconn v1.14.3 github.com/rs/zerolog v1.33.0 - github.com/testcontainers/testcontainers-go/modules/kafka v0.33.0 + github.com/testcontainers/testcontainers-go/modules/kafka v0.34.0 ) require ( @@ -30,8 +30,8 @@ require ( github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.2.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect - github.com/cpuguy83/dockercfg v0.3.1 // indirect - github.com/danieljoos/wincred v1.1.2 // indirect + github.com/cpuguy83/dockercfg v0.3.2 // indirect + github.com/danieljoos/wincred v1.2.1 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/distribution/reference v0.6.0 // indirect github.com/docker/docker v27.1.1+incompatible // indirect @@ -39,10 +39,10 @@ require ( github.com/docker/go-units v0.5.0 // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect github.com/emicklei/dot v1.6.1 // indirect - github.com/fatih/color v1.15.0 // indirect + github.com/fatih/color v1.16.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect - github.com/go-logr/logr v1.4.1 // indirect + github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-ole/go-ole v1.2.6 // indirect github.com/go-playground/locales v0.14.1 // indirect @@ -54,7 +54,7 @@ require ( github.com/gorilla/mux v1.8.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect - github.com/hashicorp/go-hclog v1.5.0 // indirect + github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-plugin v1.6.0 // indirect github.com/hashicorp/yamux v0.1.1 // indirect github.com/huandu/skiplist v1.2.0 // indirect @@ -90,7 +90,7 @@ require ( github.com/tidwall/btree v1.7.0 // indirect github.com/tklauser/go-sysconf v0.3.12 // indirect github.com/tklauser/numcpus v0.6.1 // indirect - github.com/twmb/franz-go/pkg/kmsg v1.8.0 // indirect + github.com/twmb/franz-go/pkg/kmsg v1.9.0 // indirect github.com/yusufpapurcu/wmi v1.2.3 // indirect github.com/zondax/hid v0.9.2 // indirect github.com/zondax/ledger-go v0.14.3 // indirect @@ -98,28 +98,28 @@ require ( go.opentelemetry.io/otel v1.24.0 // indirect go.opentelemetry.io/otel/metric v1.24.0 // indirect go.opentelemetry.io/otel/trace v1.24.0 // indirect - golang.org/x/mod v0.20.0 // indirect + golang.org/x/mod v0.21.0 // indirect golang.org/x/sync v0.8.0 // indirect - golang.org/x/term v0.23.0 // indirect + golang.org/x/term v0.25.0 // indirect gotest.tools/v3 v3.5.1 // indirect nhooyr.io/websocket v1.8.6 // indirect pgregory.net/rapid v1.1.0 // indirect ) require ( - cosmossdk.io/api v0.7.5 // indirect + cosmossdk.io/api v0.7.6 // indirect cosmossdk.io/collections v0.4.0 // indirect - cosmossdk.io/core v0.11.1 // indirect + cosmossdk.io/core v0.11.2 // indirect cosmossdk.io/depinject v1.0.0 // indirect cosmossdk.io/log v1.4.1 // indirect cosmossdk.io/math v1.3.0 cosmossdk.io/store v1.1.1 // indirect cosmossdk.io/x/tx v0.13.5 // indirect - filippo.io/edwards25519 v1.0.0 // indirect + filippo.io/edwards25519 v1.1.0 // indirect github.com/DataDog/zstd v1.5.5 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect - github.com/cenkalti/backoff/v4 v4.2.1 // indirect + github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/cockroachdb/apd/v3 v3.2.1 // indirect @@ -145,7 +145,7 @@ require ( github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.0 // indirect + github.com/golang/glog v1.2.2 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.1.2 // indirect @@ -161,7 +161,7 @@ require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jackc/pgx/v4 v4.18.3 github.com/jmhodges/levigo v1.0.0 // indirect - github.com/klauspost/compress v1.17.9 // indirect + github.com/klauspost/compress v1.17.11 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/linxGnu/grocksdb v1.8.14 // indirect @@ -170,7 +170,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect - github.com/pelletier/go-toml/v2 v2.2.2 // indirect + github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect @@ -185,7 +185,7 @@ require ( github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/afero v1.11.0 // indirect - github.com/spf13/cast v1.6.0 // indirect + github.com/spf13/cast v1.7.0 // indirect github.com/spf13/cobra v1.8.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/viper v1.19.0 @@ -193,22 +193,22 @@ require ( github.com/subosito/gotenv v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect - github.com/testcontainers/testcontainers-go v0.33.0 - github.com/testcontainers/testcontainers-go/modules/postgres v0.33.0 - github.com/twmb/franz-go v1.17.1 - github.com/twmb/franz-go/pkg/kadm v1.13.0 + github.com/testcontainers/testcontainers-go v0.34.0 + github.com/testcontainers/testcontainers-go/modules/postgres v0.34.0 + github.com/twmb/franz-go v1.18.0 + github.com/twmb/franz-go/pkg/kadm v1.14.0 go.etcd.io/bbolt v1.3.10 // indirect - go.uber.org/multierr v1.10.0 // indirect - golang.org/x/crypto v0.26.0 // indirect - golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect - golang.org/x/net v0.28.0 // indirect - golang.org/x/sys v0.25.0 // indirect - golang.org/x/text v0.17.0 // indirect - google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5 // indirect - google.golang.org/grpc v1.64.1 - google.golang.org/protobuf v1.34.2 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/crypto v0.28.0 // indirect + golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect + golang.org/x/net v0.30.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/text v0.19.0 // indirect + google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20241015192408-796eee8c2d53 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 // indirect + google.golang.org/grpc v1.67.1 + google.golang.org/protobuf v1.35.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect sigs.k8s.io/yaml v1.4.0 // indirect diff --git a/go.sum b/go.sum index 2a23ed8..04a4e83 100644 --- a/go.sum +++ b/go.sum @@ -1,11 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cosmossdk.io/api v0.7.5 h1:eMPTReoNmGUm8DeiQL9DyM8sYDjEhWzL1+nLbI9DqtQ= -cosmossdk.io/api v0.7.5/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/api v0.7.6 h1:PC20PcXy1xYKH2KU4RMurVoFjjKkCgYRbVAD4PdqUuY= +cosmossdk.io/api v0.7.6/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= cosmossdk.io/collections v0.4.0/go.mod h1:oa5lUING2dP+gdDquow+QjlF45eL1t4TJDypgGd+tv0= -cosmossdk.io/core v0.11.1 h1:h9WfBey7NAiFfIcUhDVNS503I2P2HdZLebJlUIs8LPA= -cosmossdk.io/core v0.11.1/go.mod h1:OJzxcdC+RPrgGF8NJZR2uoQr56tc7gfBKhiKeDO7hH0= +cosmossdk.io/core v0.11.2 h1:20PXbQxhWRKA83pSYW76OXrc1MI2E93flbMAGSVFlyc= +cosmossdk.io/core v0.11.2/go.mod h1:q137AJUo+/BFZ0hTTgx+7enPAar5c3Nr0h042BgcZMY= cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050= cosmossdk.io/depinject v1.0.0/go.mod h1:zxK/h3HgHoA/eJVtiSsoaRaRA2D5U4cJ5thIG4ssbB8= cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= @@ -21,8 +21,8 @@ cosmossdk.io/x/tx v0.13.5/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w= dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= -filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= +filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= @@ -56,8 +56,8 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuy github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/allora-network/allora-chain v0.5.0 h1:mjhlXvbUmyTb3jlOpabHcN670LcYS2wJWiSfkuV9h3s= -github.com/allora-network/allora-chain v0.5.0/go.mod h1:Mc6EjLiTIzHFYazLNEUkk394U0xHOQFE9XD3LxllXKI= +github.com/allora-network/allora-chain v0.6.0 h1:E7r0pdKOWZjGqOlm6X7mnQ+5Hf7af1M+SV6Pk6L8U2U= +github.com/allora-network/allora-chain v0.6.0/go.mod h1:Dg6BPiJYFh+8MpW/6PmCmw0QC0GNqt9545BFfDm/CQc= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -90,8 +90,8 @@ github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g1 github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= -github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= -github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= +github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= @@ -173,8 +173,8 @@ github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5Rtn github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= -github.com/cpuguy83/dockercfg v0.3.1 h1:/FpZ+JaygUR/lZP2NlFI2DVfrOEMAIKP5wWEJdoYe9E= -github.com/cpuguy83/dockercfg v0.3.1/go.mod h1:sugsbF4//dDlL/i+S+rtpIWp+5h0BHJHfjj5/jFyUJc= +github.com/cpuguy83/dockercfg v0.3.2 h1:DlJTyZGBDlXqUZ2Dk2Q3xHs/FtnooJJVaad2S9GKorA= +github.com/cpuguy83/dockercfg v0.3.2/go.mod h1:sugsbF4//dDlL/i+S+rtpIWp+5h0BHJHfjj5/jFyUJc= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= @@ -182,8 +182,8 @@ github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7Do github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= -github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= -github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= +github.com/danieljoos/wincred v1.2.1 h1:dl9cBrupW8+r5250DYkYxocLeZ1Y4vB1kxgtjxw8GQs= +github.com/danieljoos/wincred v1.2.1/go.mod h1:uGaFL9fDn3OLTvzCGulzE+SzjEe5NGlh5FdCcyfPwps= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= @@ -238,8 +238,8 @@ github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go. github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= -github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= +github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= @@ -280,8 +280,8 @@ github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= @@ -326,8 +326,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= -github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= +github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= @@ -412,8 +412,8 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= -github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= +github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= @@ -553,8 +553,8 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= -github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= +github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= +github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -700,8 +700,8 @@ github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0Mw github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= -github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= +github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M= +github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= @@ -817,8 +817,8 @@ github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= -github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= +github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= @@ -859,12 +859,12 @@ github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDd github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/testcontainers/testcontainers-go v0.33.0 h1:zJS9PfXYT5O0ZFXM2xxXfk4J5UMw/kRiISng037Gxdw= -github.com/testcontainers/testcontainers-go v0.33.0/go.mod h1:W80YpTa8D5C3Yy16icheD01UTDu+LmXIA2Keo+jWtT8= -github.com/testcontainers/testcontainers-go/modules/kafka v0.33.0 h1:Zug/9wK9tE9NdJ/sy27XbIvIVjXsD7rXrcV5B3KVrOM= -github.com/testcontainers/testcontainers-go/modules/kafka v0.33.0/go.mod h1:J8NhxBCTnivcTANoNpuMnOEkdKf/x9zwZ434Y4dbIH4= -github.com/testcontainers/testcontainers-go/modules/postgres v0.33.0 h1:c+Gt+XLJjqFAejgX4hSpnHIpC9eAhvgI/TFWL/PbrFI= -github.com/testcontainers/testcontainers-go/modules/postgres v0.33.0/go.mod h1:I4DazHBoWDyf69ByOIyt3OdNjefiUx372459txOpQ3o= +github.com/testcontainers/testcontainers-go v0.34.0 h1:5fbgF0vIN5u+nD3IWabQwRybuB4GY8G2HHgCkbMzMHo= +github.com/testcontainers/testcontainers-go v0.34.0/go.mod h1:6P/kMkQe8yqPHfPWNulFGdFHTD8HB2vLq/231xY2iPQ= +github.com/testcontainers/testcontainers-go/modules/kafka v0.34.0 h1:LrMlsBH+nKJ2c6M7rOjbi7UivgofgAQo+LAwsWttR+Q= +github.com/testcontainers/testcontainers-go/modules/kafka v0.34.0/go.mod h1:4BIbeoKY/ZAf86MvWT5xJW5TvxbCPg67I5rBvwFsx4A= +github.com/testcontainers/testcontainers-go/modules/postgres v0.34.0 h1:c51aBXT3v2HEBVarmaBnsKzvgZjC5amn0qsj8Naqi50= +github.com/testcontainers/testcontainers-go/modules/postgres v0.34.0/go.mod h1:EWP75ogLQU4M4L8U+20mFipjV4WIR9WtlMXSB6/wiuc= github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= @@ -873,12 +873,12 @@ github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+F github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/twmb/franz-go v1.17.1 h1:0LwPsbbJeJ9R91DPUHSEd4su82WJWcTY1Zzbgbg4CeQ= -github.com/twmb/franz-go v1.17.1/go.mod h1:NreRdJ2F7dziDY/m6VyspWd6sNxHKXdMZI42UfQ3GXM= -github.com/twmb/franz-go/pkg/kadm v1.13.0 h1:bJq4C2ZikUE2jh/wl9MtMTQ/kpmnBgVFh8XMQBEC+60= -github.com/twmb/franz-go/pkg/kadm v1.13.0/go.mod h1:VMvpfjz/szpH9WB+vGM+rteTzVv0djyHFimci9qm2C0= -github.com/twmb/franz-go/pkg/kmsg v1.8.0 h1:lAQB9Z3aMrIP9qF9288XcFf/ccaSxEitNA1CDTEIeTA= -github.com/twmb/franz-go/pkg/kmsg v1.8.0/go.mod h1:HzYEb8G3uu5XevZbtU0dVbkphaKTHk0X68N5ka4q6mU= +github.com/twmb/franz-go v1.18.0 h1:25FjMZfdozBywVX+5xrWC2W+W76i0xykKjTdEeD2ejw= +github.com/twmb/franz-go v1.18.0/go.mod h1:zXCGy74M0p5FbXsLeASdyvfLFsBvTubVqctIaa5wQ+I= +github.com/twmb/franz-go/pkg/kadm v1.14.0 h1:nAn1co1lXzJQocpzyIyOFOjUBf4WHWs5/fTprXy2IZs= +github.com/twmb/franz-go/pkg/kadm v1.14.0/go.mod h1:XjOPz6ZaXXjrW2jVCfLuucP8H1w2TvD6y3PT2M+aAM4= +github.com/twmb/franz-go/pkg/kmsg v1.9.0 h1:JojYUph2TKAau6SBtErXpXGC7E3gg4vGZMv9xFU/B6M= +github.com/twmb/franz-go/pkg/kmsg v1.9.0/go.mod h1:CMbfazviCyY6HM0SXuG5t9vOwYDHRCSrJJyBAe5paqg= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= @@ -932,8 +932,8 @@ go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/ go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= -go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= @@ -953,13 +953,13 @@ golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 h1:985EYyeCOxTpcgOTJpflJUwOeEz0CQOdPt73OzpE9F8= -golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI= +golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY= +golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -973,8 +973,8 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= -golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= +golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1003,8 +1003,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= -golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1065,7 +1065,6 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1081,13 +1080,13 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -1095,8 +1094,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= @@ -1145,12 +1144,12 @@ google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= -google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= -google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= -google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 h1:RFiFrvy37/mpSpdySBDrUdipW/dHwsRwh3J3+A9VgT4= -google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go.mod h1:Z5Iiy3jtmioajWHDGFk7CeugTyHtPvMHA4UTmUkyalE= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5 h1:SbSDUWW1PAO24TNpLdeheoYPd7kllICcLU52x6eD4kQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= +google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094 h1:6whtk83KtD3FkGrVb2hFXuQ+ZMbCNdakARIn/aHMmG8= +google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094/go.mod h1:Zs4wYw8z1zr6RNF4cwYb31mvN/EGaKAdQjNCF3DW6K4= +google.golang.org/genproto/googleapis/api v0.0.0-20241015192408-796eee8c2d53 h1:fVoAXEKA4+yufmbdVYv+SE73+cPZbbbe8paLsHfkK+U= +google.golang.org/genproto/googleapis/api v0.0.0-20241015192408-796eee8c2d53/go.mod h1:riSXTwQ4+nqmPGtobMFyW5FqVAmIs0St6VPp4Ug7CE4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 h1:QCqS/PdaHTSWGvupk2F/ehwHtGc0/GYkT+3GAcR1CCc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -1168,8 +1167,8 @@ google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTp google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.64.1 h1:LKtvyfbX3UGVPFcGqJ9ItpVWW6oN/2XqTxfAnwRRXiA= -google.golang.org/grpc v1.64.1/go.mod h1:hiQF4LFZelK2WKaP6W0L92zGHtiQdZxk8CrSdvyjeP0= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -1184,8 +1183,8 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/util/revision.go b/util/revision.go new file mode 100644 index 0000000..8792f1b --- /dev/null +++ b/util/revision.go @@ -0,0 +1,22 @@ +package util + +import ( + "runtime/debug" +) + +// readBuildInfo is a variable that references debug.ReadBuildInfo. +// It can be overridden for testing purposes. +var readBuildInfo = debug.ReadBuildInfo + +// Revision retrieves the VCS revision from build info. +// Available only if the build was done with -buildvcs flag. +func Revision() string { + if info, ok := readBuildInfo(); ok { + for _, setting := range info.Settings { + if setting.Key == "vcs.revision" { + return setting.Value + } + } + } + return "" +} diff --git a/util/revision_test.go b/util/revision_test.go new file mode 100644 index 0000000..e6982fd --- /dev/null +++ b/util/revision_test.go @@ -0,0 +1,85 @@ +package util + +import ( + "runtime/debug" + "testing" + + "github.com/stretchr/testify/suite" +) + +// RevisionTestSuite defines the test suite for Revision function. +type RevisionTestSuite struct { + suite.Suite + // originalReadBuildInfo holds the original readBuildInfo function to restore after tests. + originalReadBuildInfo func() (*debug.BuildInfo, bool) +} + +// SetupSuite runs before each test in the suite. +func (suite *RevisionTestSuite) SetupSuite() { + // Save the original readBuildInfo function. + suite.originalReadBuildInfo = readBuildInfo +} + +// TearDownSuite runs after each test in the suite. +func (suite *RevisionTestSuite) TearDownSuite() { + // Restore the original readBuildInfo function. + readBuildInfo = suite.originalReadBuildInfo +} + +// TestRevision tests the Revision function with various scenarios. +func (suite *RevisionTestSuite) TestRevision() { + tests := []struct { + name string + mockSetup func() + want string + }{ + { + name: "Valid Revision", + mockSetup: func() { + readBuildInfo = func() (*debug.BuildInfo, bool) { + return &debug.BuildInfo{ + Settings: []debug.BuildSetting{ + {Key: "vcs.revision", Value: "abc123"}, + }, + }, true + } + }, + want: "abc123", + }, + { + name: "No Revision Key", + mockSetup: func() { + readBuildInfo = func() (*debug.BuildInfo, bool) { + return &debug.BuildInfo{ + Settings: []debug.BuildSetting{ + {Key: "some.other.key", Value: "value"}, + }, + }, true + } + }, + want: "", + }, + { + name: "ReadBuildInfo Fails", + mockSetup: func() { + readBuildInfo = func() (*debug.BuildInfo, bool) { + return nil, false + } + }, + want: "", + }, + } + + for _, tt := range tests { + suite.Run(tt.name, func() { + tt.mockSetup() + got := Revision() + suite.Equal(tt.want, got, "Revision() should return the expected value") + }) + } +} + +// TestRevisionTestSuite runs the RevisionTestSuite. +func TestRevisionTestSuite(t *testing.T) { + suite.Run(t, new(RevisionTestSuite)) +}