diff --git a/proto/nibiru/perp/v2/genesis.proto b/proto/nibiru/perp/v2/genesis.proto index 4f62d876e..8d5300acb 100644 --- a/proto/nibiru/perp/v2/genesis.proto +++ b/proto/nibiru/perp/v2/genesis.proto @@ -61,7 +61,7 @@ message GenesisState { repeated nibiru.perp.v2.GenesisMarketLastVersion market_last_versions = 10 [ (gogoproto.nullable) = false ]; - repeated GlobalVolume global_volumes = 11 [ (gogoproto.nullable) = false ]; + repeated GlobalVolume global_volumes = 13 [ (gogoproto.nullable) = false ]; repeated DNRAllocation rebates_allocations = 12 [ (gogoproto.nullable) = false ]; diff --git a/x/perp/v2/types/genesis.pb.go b/x/perp/v2/types/genesis.pb.go index b46ab116e..a97d842db 100644 --- a/x/perp/v2/types/genesis.pb.go +++ b/x/perp/v2/types/genesis.pb.go @@ -42,6 +42,8 @@ type GenesisState struct { GlobalDiscount []GenesisState_Discount `protobuf:"bytes,8,rep,name=global_discount,json=globalDiscount,proto3" json:"global_discount"` CustomDiscounts []GenesisState_CustomDiscount `protobuf:"bytes,9,rep,name=custom_discounts,json=customDiscounts,proto3" json:"custom_discounts"` MarketLastVersions []GenesisMarketLastVersion `protobuf:"bytes,10,rep,name=market_last_versions,json=marketLastVersions,proto3" json:"market_last_versions"` + GlobalVolumes []GenesisState_GlobalVolume `protobuf:"bytes,13,rep,name=global_volumes,json=globalVolumes,proto3" json:"global_volumes"` + RebatesAllocations []DNRAllocation `protobuf:"bytes,12,rep,name=rebates_allocations,json=rebatesAllocations,proto3" json:"rebates_allocations"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -147,6 +149,20 @@ func (m *GenesisState) GetMarketLastVersions() []GenesisMarketLastVersion { return nil } +func (m *GenesisState) GetGlobalVolumes() []GenesisState_GlobalVolume { + if m != nil { + return m.GlobalVolumes + } + return nil +} + +func (m *GenesisState) GetRebatesAllocations() []DNRAllocation { + if m != nil { + return m.RebatesAllocations + } + return nil +} + type GenesisState_TraderVolume struct { Trader string `protobuf:"bytes,1,opt,name=trader,proto3" json:"trader,omitempty"` Epoch uint64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` @@ -290,6 +306,51 @@ func (m *GenesisState_CustomDiscount) GetDiscount() *GenesisState_Discount { return nil } +type GenesisState_GlobalVolume struct { + Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` + Volume github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=volume,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"volume"` +} + +func (m *GenesisState_GlobalVolume) Reset() { *m = GenesisState_GlobalVolume{} } +func (m *GenesisState_GlobalVolume) String() string { return proto.CompactTextString(m) } +func (*GenesisState_GlobalVolume) ProtoMessage() {} +func (*GenesisState_GlobalVolume) Descriptor() ([]byte, []int) { + return fileDescriptor_c2c7acfef3993fde, []int{0, 3} +} +func (m *GenesisState_GlobalVolume) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState_GlobalVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState_GlobalVolume.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 *GenesisState_GlobalVolume) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState_GlobalVolume.Merge(m, src) +} +func (m *GenesisState_GlobalVolume) XXX_Size() int { + return m.Size() +} +func (m *GenesisState_GlobalVolume) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState_GlobalVolume.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState_GlobalVolume proto.InternalMessageInfo + +func (m *GenesisState_GlobalVolume) GetEpoch() uint64 { + if m != nil { + return m.Epoch + } + return 0 +} + // GenesisMarketLastVersion is the last version including pair only used for // genesis type GenesisMarketLastVersion struct { @@ -395,6 +456,7 @@ func init() { proto.RegisterType((*GenesisState_TraderVolume)(nil), "nibiru.perp.v2.GenesisState.TraderVolume") proto.RegisterType((*GenesisState_Discount)(nil), "nibiru.perp.v2.GenesisState.Discount") proto.RegisterType((*GenesisState_CustomDiscount)(nil), "nibiru.perp.v2.GenesisState.CustomDiscount") + proto.RegisterType((*GenesisState_GlobalVolume)(nil), "nibiru.perp.v2.GenesisState.GlobalVolume") proto.RegisterType((*GenesisMarketLastVersion)(nil), "nibiru.perp.v2.GenesisMarketLastVersion") proto.RegisterType((*GenesisPosition)(nil), "nibiru.perp.v2.GenesisPosition") } @@ -402,51 +464,56 @@ func init() { func init() { proto.RegisterFile("nibiru/perp/v2/genesis.proto", fileDescriptor_c2c7acfef3993fde) } var fileDescriptor_c2c7acfef3993fde = []byte{ - // 700 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xdf, 0x6a, 0x13, 0x4d, - 0x14, 0xcf, 0x36, 0x69, 0x9a, 0x4c, 0xfb, 0x25, 0xfd, 0xc6, 0x52, 0x96, 0x58, 0xd2, 0x52, 0x50, - 0x52, 0xa4, 0x3b, 0x34, 0x82, 0xa0, 0x57, 0x36, 0xad, 0x16, 0xc1, 0x48, 0xd9, 0x96, 0x5e, 0x88, - 0x10, 0x27, 0x9b, 0x31, 0x59, 0x9a, 0x9d, 0x59, 0xe6, 0x4c, 0x82, 0x5e, 0xeb, 0x03, 0x78, 0xe1, - 0xb3, 0xf8, 0x0c, 0xbd, 0xb3, 0x97, 0xe2, 0x45, 0x91, 0xf6, 0x45, 0x64, 0x67, 0x26, 0x69, 0xb2, - 0x98, 0xaa, 0x08, 0x5e, 0x65, 0xe7, 0xcc, 0xf9, 0xfd, 0x99, 0x73, 0x4e, 0x0e, 0x5a, 0xe3, 0x61, - 0x3b, 0x94, 0x03, 0x12, 0x33, 0x19, 0x93, 0x61, 0x9d, 0x74, 0x19, 0x67, 0x10, 0x82, 0x17, 0x4b, - 0xa1,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b, 0x65, 0xd5, 0xf9, 0x78, 0x55, 0xcd, 0x9c, 0x5f, 0x55, 0x33, 0x5f, 0xaf, 0xaa, 0x99, - 0x97, 0xdb, 0xbf, 0x32, 0x3a, 0xda, 0xef, 0x7a, 0x00, 0xda, 0x79, 0xbd, 0xe0, 0xef, 0xff, 0x08, - 0x00, 0x00, 0xff, 0xff, 0xa2, 0xa1, 0x80, 0x9e, 0x80, 0x06, 0x00, 0x00, + // 772 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4f, 0x4f, 0xdb, 0x48, + 0x14, 0x8f, 0x49, 0x08, 0xc9, 0x10, 0x12, 0x76, 0x40, 0xc8, 0xca, 0xb2, 0x01, 0x21, 0xed, 0x2a, + 0x68, 0x85, 0x2d, 0xb2, 0xd2, 0x4a, 0xbb, 0xa7, 0x25, 0x64, 0x8b, 0x2a, 0x35, 0x08, 0x19, 0xc4, + 0xa1, 0xaa, 0x94, 0x4e, 0x9c, 0xa9, 0x63, 0x61, 0x7b, 0xac, 0x79, 0x93, 0xa8, 0x3d, 0xb7, 0x1f, + 0xa0, 0x87, 0x7e, 0x96, 0x7e, 0x06, 0x8e, 0x1c, 0xab, 0x1e, 0x50, 0x05, 0xc7, 0x7e, 0x89, 0xca, + 0x33, 0x93, 0x7f, 0x16, 0xa1, 0x54, 0x48, 0x3d, 0x25, 0xf3, 0xde, 0xfb, 0xfd, 0xde, 0x6f, 0xde, + 0xfc, 0x66, 0x8c, 0x36, 0x23, 0xbf, 0xeb, 0xf3, 0x81, 0x1d, 0x53, 0x1e, 0xdb, 0xc3, 0x86, 0xed, + 0xd1, 0x88, 0x82, 0x0f, 0x56, 0xcc, 0x99, 0x60, 0xb8, 0xac, 0xb2, 0x56, 0x92, 0xb5, 0x86, 0x8d, + 0x6a, 0xcd, 0x65, 0x10, 0x32, 0xb0, 0xbb, 0x04, 0xa8, 0x3d, 0xd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+ 0xb4, 0x7b, 0x46, 0xcb, 0x9d, 0x8f, 0x06, 0xaa, 0xa4, 0xde, 0xd6, 0x9f, 0xd6, 0x1c, 0xff, 0x8b, + 0x0a, 0xa3, 0x07, 0x5c, 0xda, 0x77, 0xb9, 0x61, 0xa6, 0xcf, 0x2c, 0xf5, 0xe0, 0x8f, 0xeb, 0x9b, + 0x47, 0x97, 0x37, 0x35, 0xe3, 0xea, 0xa6, 0x66, 0x7c, 0xb9, 0xa9, 0x19, 0xef, 0x6f, 0x6b, 0x99, + 0xab, 0xdb, 0x5a, 0xe6, 0xd3, 0x6d, 0x2d, 0xf3, 0x7c, 0xef, 0x7b, 0x42, 0x47, 0xdf, 0x3e, 0x79, + 0x26, 0xdd, 0xbc, 0xfc, 0xf8, 0xfd, 0xf5, 0x2d, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x78, 0x24, 0x04, + 0x9c, 0x07, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -469,6 +536,34 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.GlobalVolumes) > 0 { + for iNdEx := len(m.GlobalVolumes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GlobalVolumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + } + if len(m.RebatesAllocations) > 0 { + for iNdEx := len(m.RebatesAllocations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RebatesAllocations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } if len(m.CollateralDenom) > 0 { i -= len(m.CollateralDenom) copy(dAtA[i:], m.CollateralDenom) @@ -726,6 +821,44 @@ func (m *GenesisState_CustomDiscount) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } +func (m *GenesisState_GlobalVolume) 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 *GenesisState_GlobalVolume) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState_GlobalVolume) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Volume.Size() + i -= size + if _, err := m.Volume.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.Epoch != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Epoch)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *GenesisMarketLastVersion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -884,6 +1017,18 @@ func (m *GenesisState) Size() (n int) { if l > 0 { n += 1 + l + sovGenesis(uint64(l)) } + if len(m.RebatesAllocations) > 0 { + for _, e := range m.RebatesAllocations { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.GlobalVolumes) > 0 { + for _, e := range m.GlobalVolumes { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } return n } @@ -935,6 +1080,20 @@ func (m *GenesisState_CustomDiscount) Size() (n int) { return n } +func (m *GenesisState_GlobalVolume) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Epoch != 0 { + n += 1 + sovGenesis(uint64(m.Epoch)) + } + l = m.Volume.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + func (m *GenesisMarketLastVersion) Size() (n int) { if m == nil { return 0 @@ -1323,6 +1482,74 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } m.CollateralDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RebatesAllocations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RebatesAllocations = append(m.RebatesAllocations, DNRAllocation{}) + if err := m.RebatesAllocations[len(m.RebatesAllocations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalVolumes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GlobalVolumes = append(m.GlobalVolumes, GenesisState_GlobalVolume{}) + if err := m.GlobalVolumes[len(m.GlobalVolumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) @@ -1715,6 +1942,109 @@ func (m *GenesisState_CustomDiscount) Unmarshal(dAtA []byte) error { } return nil } +func (m *GenesisState_GlobalVolume) 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 ErrIntOverflowGenesis + } + 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: GlobalVolume: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GlobalVolume: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + } + m.Epoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Epoch |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Volume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *GenesisMarketLastVersion) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/perp/v2/types/tx.pb.go b/x/perp/v2/types/tx.pb.go index 31ed8fd93..54ba4245b 100644 --- a/x/perp/v2/types/tx.pb.go +++ b/x/perp/v2/types/tx.pb.go @@ -1004,6 +1004,201 @@ func (m *MsgChangeCollateralDenomResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgChangeCollateralDenomResponse proto.InternalMessageInfo +// -------------------------- AllocateEpochRebates -------------------------- +type MsgAllocateEpochRebates struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + // rebates to allocate + Rebates github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=rebates,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rebates"` +} + +func (m *MsgAllocateEpochRebates) Reset() { *m = MsgAllocateEpochRebates{} } +func (m *MsgAllocateEpochRebates) String() string { return proto.CompactTextString(m) } +func (*MsgAllocateEpochRebates) ProtoMessage() {} +func (*MsgAllocateEpochRebates) Descriptor() ([]byte, []int) { + return fileDescriptor_b95cda40bf0a0f91, []int{17} +} +func (m *MsgAllocateEpochRebates) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAllocateEpochRebates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAllocateEpochRebates.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 *MsgAllocateEpochRebates) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAllocateEpochRebates.Merge(m, src) +} +func (m *MsgAllocateEpochRebates) XXX_Size() int { + return m.Size() +} +func (m *MsgAllocateEpochRebates) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAllocateEpochRebates.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAllocateEpochRebates proto.InternalMessageInfo + +func (m *MsgAllocateEpochRebates) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *MsgAllocateEpochRebates) GetRebates() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Rebates + } + return nil +} + +type MsgAllocateEpochRebatesResponse struct { + TotalEpochRebates github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=total_epoch_rebates,json=totalEpochRebates,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_epoch_rebates"` +} + +func (m *MsgAllocateEpochRebatesResponse) Reset() { *m = MsgAllocateEpochRebatesResponse{} } +func (m *MsgAllocateEpochRebatesResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAllocateEpochRebatesResponse) ProtoMessage() {} +func (*MsgAllocateEpochRebatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b95cda40bf0a0f91, []int{18} +} +func (m *MsgAllocateEpochRebatesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAllocateEpochRebatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAllocateEpochRebatesResponse.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 *MsgAllocateEpochRebatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAllocateEpochRebatesResponse.Merge(m, src) +} +func (m *MsgAllocateEpochRebatesResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAllocateEpochRebatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAllocateEpochRebatesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAllocateEpochRebatesResponse proto.InternalMessageInfo + +func (m *MsgAllocateEpochRebatesResponse) GetTotalEpochRebates() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.TotalEpochRebates + } + return nil +} + +// -------------------------- WithdrawEpochRebates -------------------------- +type MsgWithdrawEpochRebates struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + Epochs []uint64 `protobuf:"varint,2,rep,packed,name=epochs,proto3" json:"epochs,omitempty"` +} + +func (m *MsgWithdrawEpochRebates) Reset() { *m = MsgWithdrawEpochRebates{} } +func (m *MsgWithdrawEpochRebates) String() string { return proto.CompactTextString(m) } +func (*MsgWithdrawEpochRebates) ProtoMessage() {} +func (*MsgWithdrawEpochRebates) Descriptor() ([]byte, []int) { + return fileDescriptor_b95cda40bf0a0f91, []int{19} +} +func (m *MsgWithdrawEpochRebates) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgWithdrawEpochRebates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgWithdrawEpochRebates.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 *MsgWithdrawEpochRebates) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgWithdrawEpochRebates.Merge(m, src) +} +func (m *MsgWithdrawEpochRebates) XXX_Size() int { + return m.Size() +} +func (m *MsgWithdrawEpochRebates) XXX_DiscardUnknown() { + xxx_messageInfo_MsgWithdrawEpochRebates.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgWithdrawEpochRebates proto.InternalMessageInfo + +func (m *MsgWithdrawEpochRebates) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *MsgWithdrawEpochRebates) GetEpochs() []uint64 { + if m != nil { + return m.Epochs + } + return nil +} + +type MsgWithdrawEpochRebatesResponse struct { + WithdrawnRebates github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=withdrawn_rebates,json=withdrawnRebates,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"withdrawn_rebates"` +} + +func (m *MsgWithdrawEpochRebatesResponse) Reset() { *m = MsgWithdrawEpochRebatesResponse{} } +func (m *MsgWithdrawEpochRebatesResponse) String() string { return proto.CompactTextString(m) } +func (*MsgWithdrawEpochRebatesResponse) ProtoMessage() {} +func (*MsgWithdrawEpochRebatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b95cda40bf0a0f91, []int{20} +} +func (m *MsgWithdrawEpochRebatesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgWithdrawEpochRebatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgWithdrawEpochRebatesResponse.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 *MsgWithdrawEpochRebatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgWithdrawEpochRebatesResponse.Merge(m, src) +} +func (m *MsgWithdrawEpochRebatesResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgWithdrawEpochRebatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgWithdrawEpochRebatesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgWithdrawEpochRebatesResponse proto.InternalMessageInfo + +func (m *MsgWithdrawEpochRebatesResponse) GetWithdrawnRebates() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.WithdrawnRebates + } + return nil +} + func init() { proto.RegisterType((*MsgSettlePosition)(nil), "nibiru.perp.v2.MsgSettlePosition") proto.RegisterType((*MsgRemoveMargin)(nil), "nibiru.perp.v2.MsgRemoveMargin") @@ -1024,93 +1219,107 @@ func init() { proto.RegisterType((*MsgDonateToEcosystemFundResponse)(nil), "nibiru.perp.v2.MsgDonateToEcosystemFundResponse") proto.RegisterType((*MsgChangeCollateralDenom)(nil), "nibiru.perp.v2.MsgChangeCollateralDenom") proto.RegisterType((*MsgChangeCollateralDenomResponse)(nil), "nibiru.perp.v2.MsgChangeCollateralDenomResponse") + proto.RegisterType((*MsgAllocateEpochRebates)(nil), "nibiru.perp.v2.MsgAllocateEpochRebates") + proto.RegisterType((*MsgAllocateEpochRebatesResponse)(nil), "nibiru.perp.v2.MsgAllocateEpochRebatesResponse") + proto.RegisterType((*MsgWithdrawEpochRebates)(nil), "nibiru.perp.v2.MsgWithdrawEpochRebates") + proto.RegisterType((*MsgWithdrawEpochRebatesResponse)(nil), "nibiru.perp.v2.MsgWithdrawEpochRebatesResponse") } func init() { proto.RegisterFile("nibiru/perp/v2/tx.proto", fileDescriptor_b95cda40bf0a0f91) } var fileDescriptor_b95cda40bf0a0f91 = []byte{ - // 1287 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xc6, 0x6e, 0x9a, 0xbc, 0xa4, 0x4e, 0x3a, 0xa4, 0x89, 0x6b, 0x2a, 0x27, 0xac, 0x50, - 0x09, 0x87, 0xec, 0xd2, 0x80, 0x84, 0x40, 0x02, 0x94, 0x8f, 0x16, 0x81, 0xea, 0x36, 0xdd, 0x56, - 0x2d, 0x2a, 0xa0, 0xed, 0xc4, 0x1e, 0x6f, 0x46, 0xdd, 0x9d, 0x71, 0x77, 0x66, 0xdd, 0xa6, 0x47, - 0xfe, 0x02, 0x0e, 0xfc, 0x0b, 0x5c, 0x91, 0x38, 0x00, 0x17, 0xfe, 0x80, 0x1e, 0x7b, 0x44, 0x1c, - 0x2a, 0x94, 0x5c, 0xb8, 0x52, 0x71, 0xe1, 0x86, 0x66, 0xbf, 0xbc, 0x76, 0x37, 0x89, 0x6d, 0xd2, - 0x48, 0x20, 0x4e, 0xf6, 0xec, 0x7b, 0xef, 0xf7, 0xbe, 0xdf, 0x7c, 0xc0, 0x02, 0xa3, 0xdb, 0xd4, - 0x0f, 0xcc, 0x36, 0xf1, 0x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x3c, 0x90, 0x5c, 0xce, 0xea, 0x5b, 0x83, 0x72, - 0xf6, 0xaa, 0xcd, 0x6f, 0xbb, 0x5c, 0xdb, 0xf3, 0x38, 0x73, 0xd5, 0x1e, 0xda, 0x79, 0x7a, 0x61, - 0xfd, 0xe3, 0x27, 0x7b, 0x35, 0xed, 0xe9, 0x5e, 0x4d, 0xfb, 0x6d, 0xaf, 0xa6, 0x7d, 0xbd, 0x5f, - 0x2b, 0x3c, 0xdd, 0xaf, 0x15, 0x7e, 0xd9, 0xaf, 0x15, 0xee, 0xae, 0x1c, 0xb5, 0x49, 0xa6, 0xef, - 0xac, 0x6a, 0xec, 0x6d, 0x8f, 0x87, 0x6f, 0x9d, 0x6f, 0xff, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x38, - 0x87, 0x87, 0xcc, 0x86, 0x15, 0x00, 0x00, + // 1447 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0xf7, 0xc6, 0x6e, 0xea, 0xbc, 0xa4, 0x4e, 0xb2, 0x4d, 0x13, 0xd7, 0xdf, 0xca, 0xc9, 0x77, + 0x85, 0x4a, 0x38, 0x64, 0xb7, 0x0d, 0x48, 0x08, 0x24, 0x40, 0xf9, 0xd1, 0xa2, 0xa2, 0xba, 0x4d, + 0xb7, 0x55, 0x8b, 0x0a, 0x68, 0x3b, 0xb1, 0x27, 0x9b, 0x51, 0xd7, 0x33, 0xee, 0xce, 0xac, 0x93, + 0x94, 0x1b, 0x7f, 0x01, 0x07, 0x0e, 0x48, 0x48, 0xdc, 0xb8, 0x70, 0x40, 0xe2, 0x00, 0x5c, 0xf8, + 0x03, 0x7a, 0xec, 0x11, 0x71, 0x28, 0xd0, 0x5c, 0xb8, 0x52, 0xf1, 0x07, 0xa0, 0xd9, 0x5f, 0x5e, + 0xbb, 0x13, 0xc7, 0x09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0x2a, 0xa7, 0x9a, 0xca, 0xa7, 0x4a, 0x51, 0xe9, 0xb3, 0xdf, 0x6c, 0x33, 0x72, 0xcb, 0xef, + 0x3e, 0x7a, 0x5a, 0xd5, 0x1e, 0x3f, 0xad, 0x6a, 0xbf, 0x3e, 0xad, 0x6a, 0x9f, 0xee, 0x56, 0x73, + 0x8f, 0x77, 0xab, 0xb9, 0x9f, 0x76, 0xab, 0xb9, 0xbb, 0x0b, 0xfb, 0x9d, 0x18, 0xd3, 0x7f, 0x3a, + 0xc8, 0x21, 0xb6, 0x3e, 0x1c, 0x7e, 0xf8, 0x7f, 0xf5, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x70, + 0xcc, 0xc4, 0x19, 0x93, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1134,6 +1343,8 @@ type MsgClient interface { SettlePosition(ctx context.Context, in *MsgSettlePosition, opts ...grpc.CallOption) (*MsgClosePositionResponse, error) DonateToEcosystemFund(ctx context.Context, in *MsgDonateToEcosystemFund, opts ...grpc.CallOption) (*MsgDonateToEcosystemFundResponse, error) ChangeCollateralDenom(ctx context.Context, in *MsgChangeCollateralDenom, opts ...grpc.CallOption) (*MsgChangeCollateralDenomResponse, error) + AllocateEpochRebates(ctx context.Context, in *MsgAllocateEpochRebates, opts ...grpc.CallOption) (*MsgAllocateEpochRebatesResponse, error) + WithdrawEpochRebates(ctx context.Context, in *MsgWithdrawEpochRebates, opts ...grpc.CallOption) (*MsgWithdrawEpochRebatesResponse, error) } type msgClient struct { @@ -1225,6 +1436,24 @@ func (c *msgClient) ChangeCollateralDenom(ctx context.Context, in *MsgChangeColl return out, nil } +func (c *msgClient) AllocateEpochRebates(ctx context.Context, in *MsgAllocateEpochRebates, opts ...grpc.CallOption) (*MsgAllocateEpochRebatesResponse, error) { + out := new(MsgAllocateEpochRebatesResponse) + err := c.cc.Invoke(ctx, "/nibiru.perp.v2.Msg/AllocateEpochRebates", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) WithdrawEpochRebates(ctx context.Context, in *MsgWithdrawEpochRebates, opts ...grpc.CallOption) (*MsgWithdrawEpochRebatesResponse, error) { + out := new(MsgWithdrawEpochRebatesResponse) + err := c.cc.Invoke(ctx, "/nibiru.perp.v2.Msg/WithdrawEpochRebates", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { RemoveMargin(context.Context, *MsgRemoveMargin) (*MsgRemoveMarginResponse, error) @@ -1236,6 +1465,8 @@ type MsgServer interface { SettlePosition(context.Context, *MsgSettlePosition) (*MsgClosePositionResponse, error) DonateToEcosystemFund(context.Context, *MsgDonateToEcosystemFund) (*MsgDonateToEcosystemFundResponse, error) ChangeCollateralDenom(context.Context, *MsgChangeCollateralDenom) (*MsgChangeCollateralDenomResponse, error) + AllocateEpochRebates(context.Context, *MsgAllocateEpochRebates) (*MsgAllocateEpochRebatesResponse, error) + WithdrawEpochRebates(context.Context, *MsgWithdrawEpochRebates) (*MsgWithdrawEpochRebatesResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1269,6 +1500,12 @@ func (*UnimplementedMsgServer) DonateToEcosystemFund(ctx context.Context, req *M func (*UnimplementedMsgServer) ChangeCollateralDenom(ctx context.Context, req *MsgChangeCollateralDenom) (*MsgChangeCollateralDenomResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeCollateralDenom not implemented") } +func (*UnimplementedMsgServer) AllocateEpochRebates(ctx context.Context, req *MsgAllocateEpochRebates) (*MsgAllocateEpochRebatesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllocateEpochRebates not implemented") +} +func (*UnimplementedMsgServer) WithdrawEpochRebates(ctx context.Context, req *MsgWithdrawEpochRebates) (*MsgWithdrawEpochRebatesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WithdrawEpochRebates not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -1436,6 +1673,42 @@ func _Msg_ChangeCollateralDenom_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _Msg_AllocateEpochRebates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAllocateEpochRebates) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AllocateEpochRebates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/nibiru.perp.v2.Msg/AllocateEpochRebates", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AllocateEpochRebates(ctx, req.(*MsgAllocateEpochRebates)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_WithdrawEpochRebates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgWithdrawEpochRebates) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).WithdrawEpochRebates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/nibiru.perp.v2.Msg/WithdrawEpochRebates", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).WithdrawEpochRebates(ctx, req.(*MsgWithdrawEpochRebates)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "nibiru.perp.v2.Msg", HandlerType: (*MsgServer)(nil), @@ -1476,6 +1749,14 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "ChangeCollateralDenom", Handler: _Msg_ChangeCollateralDenom_Handler, }, + { + MethodName: "AllocateEpochRebates", + Handler: _Msg_AllocateEpochRebates_Handler, + }, + { + MethodName: "WithdrawEpochRebates", + Handler: _Msg_WithdrawEpochRebates_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "nibiru/perp/v2/tx.proto", @@ -2467,76 +2748,242 @@ func (m *MsgChangeCollateralDenomResponse) MarshalToSizedBuffer(dAtA []byte) (in 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++ +func (m *MsgAllocateEpochRebates) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *MsgSettlePosition) Size() (n int) { - if m == nil { - return 0 - } + +func (m *MsgAllocateEpochRebates) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAllocateEpochRebates) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Sender) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Rebates) > 0 { + for iNdEx := len(m.Rebates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rebates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - l = m.Pair.Size() - n += 1 + l + sovTx(uint64(l)) - if m.Version != 0 { - n += 1 + sovTx(uint64(m.Version)) + 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 n + return len(dAtA) - i, nil } -func (m *MsgRemoveMargin) 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)) +func (m *MsgAllocateEpochRebatesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - l = m.Pair.Size() - n += 1 + l + sovTx(uint64(l)) - l = m.Margin.Size() - n += 1 + l + sovTx(uint64(l)) - return n + return dAtA[:n], nil } -func (m *MsgRemoveMarginResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.MarginOut.Size() - n += 1 + l + sovTx(uint64(l)) - l = m.FundingPayment.Size() - n += 1 + l + sovTx(uint64(l)) - if m.Position != nil { - l = m.Position.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n +func (m *MsgAllocateEpochRebatesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgAddMargin) Size() (n int) { - if m == nil { - return 0 - } +func (m *MsgAllocateEpochRebatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Sender) + if len(m.TotalEpochRebates) > 0 { + for iNdEx := len(m.TotalEpochRebates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TotalEpochRebates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *MsgWithdrawEpochRebates) 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 *MsgWithdrawEpochRebates) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgWithdrawEpochRebates) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Epochs) > 0 { + dAtA11 := make([]byte, len(m.Epochs)*10) + var j10 int + for _, num := range m.Epochs { + for num >= 1<<7 { + dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j10++ + } + dAtA11[j10] = uint8(num) + j10++ + } + i -= j10 + copy(dAtA[i:], dAtA11[:j10]) + i = encodeVarintTx(dAtA, i, uint64(j10)) + 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 *MsgWithdrawEpochRebatesResponse) 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 *MsgWithdrawEpochRebatesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgWithdrawEpochRebatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.WithdrawnRebates) > 0 { + for iNdEx := len(m.WithdrawnRebates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WithdrawnRebates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + 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 *MsgSettlePosition) 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 = m.Pair.Size() + n += 1 + l + sovTx(uint64(l)) + if m.Version != 0 { + n += 1 + sovTx(uint64(m.Version)) + } + return n +} + +func (m *MsgRemoveMargin) 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 = m.Pair.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.Margin.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgRemoveMarginResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.MarginOut.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.FundingPayment.Size() + n += 1 + l + sovTx(uint64(l)) + if m.Position != nil { + l = m.Position.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAddMargin) 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)) } @@ -2812,6 +3259,75 @@ func (m *MsgChangeCollateralDenomResponse) Size() (n int) { return n } +func (m *MsgAllocateEpochRebates) 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 len(m.Rebates) > 0 { + for _, e := range m.Rebates { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgAllocateEpochRebatesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TotalEpochRebates) > 0 { + for _, e := range m.TotalEpochRebates { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgWithdrawEpochRebates) 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 len(m.Epochs) > 0 { + l = 0 + for _, e := range m.Epochs { + l += sovTx(uint64(e)) + } + n += 1 + sovTx(uint64(l)) + l + } + return n +} + +func (m *MsgWithdrawEpochRebatesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.WithdrawnRebates) > 0 { + for _, e := range m.WithdrawnRebates { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -5676,6 +6192,448 @@ func (m *MsgChangeCollateralDenomResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgAllocateEpochRebates) 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: MsgAllocateEpochRebates: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAllocateEpochRebates: 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 Rebates", 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 + } + m.Rebates = append(m.Rebates, types.Coin{}) + if err := m.Rebates[len(m.Rebates)-1].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 *MsgAllocateEpochRebatesResponse) 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: MsgAllocateEpochRebatesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAllocateEpochRebatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalEpochRebates", 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 + } + m.TotalEpochRebates = append(m.TotalEpochRebates, types.Coin{}) + if err := m.TotalEpochRebates[len(m.TotalEpochRebates)-1].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 *MsgWithdrawEpochRebates) 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: MsgWithdrawEpochRebates: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgWithdrawEpochRebates: 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 { + 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.Epochs = append(m.Epochs, 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.Epochs) == 0 { + m.Epochs = 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.Epochs = append(m.Epochs, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Epochs", 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 *MsgWithdrawEpochRebatesResponse) 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: MsgWithdrawEpochRebatesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgWithdrawEpochRebatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawnRebates", 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 + } + m.WithdrawnRebates = append(m.WithdrawnRebates, types.Coin{}) + if err := m.WithdrawnRebates[len(m.WithdrawnRebates)-1].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 skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0