From ddaa86667c713da5f4ea5e92b3805ccd94c483d5 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Fri, 6 May 2022 17:03:50 +0200 Subject: [PATCH] fix(proto/tokenfactory): fix annotation (#1440) * fix(proto/tokenfactory): fix annotation * regenerate proto --- docs/core/proto-docs.md | 36 ++++++++++ .../osmosis/tokenfactory/v1beta1/query.proto | 4 +- x/lockup/types/tx.pb.go | 2 + x/tokenfactory/types/query.pb.go | 67 ++++++++++--------- 4 files changed, 74 insertions(+), 35 deletions(-) diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index f799c5a3d8f..59e995e5bb8 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -159,6 +159,8 @@ - [MsgBeginUnlockingAll](#osmosis.lockup.MsgBeginUnlockingAll) - [MsgBeginUnlockingAllResponse](#osmosis.lockup.MsgBeginUnlockingAllResponse) - [MsgBeginUnlockingResponse](#osmosis.lockup.MsgBeginUnlockingResponse) + - [MsgExtendLockup](#osmosis.lockup.MsgExtendLockup) + - [MsgExtendLockupResponse](#osmosis.lockup.MsgExtendLockupResponse) - [MsgLockTokens](#osmosis.lockup.MsgLockTokens) - [MsgLockTokensResponse](#osmosis.lockup.MsgLockTokensResponse) @@ -2423,6 +2425,39 @@ Query defines the gRPC querier service. + + +### MsgExtendLockup +MsgExtendLockup extends the existing lockup's duration. +The new duration is longer than the original. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `owner` | [string](#string) | | | +| `ID` | [uint64](#uint64) | | | +| `duration` | [google.protobuf.Duration](#google.protobuf.Duration) | | duration to be set. fails if lower than the current duration, or is unlocking | + + + + + + + + +### MsgExtendLockupResponse + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `success` | [bool](#bool) | | | + + + + + + ### MsgLockTokens @@ -2471,6 +2506,7 @@ Msg defines the Msg service. | `LockTokens` | [MsgLockTokens](#osmosis.lockup.MsgLockTokens) | [MsgLockTokensResponse](#osmosis.lockup.MsgLockTokensResponse) | LockTokens lock tokens | | | `BeginUnlockingAll` | [MsgBeginUnlockingAll](#osmosis.lockup.MsgBeginUnlockingAll) | [MsgBeginUnlockingAllResponse](#osmosis.lockup.MsgBeginUnlockingAllResponse) | BeginUnlockingAll begin unlocking all tokens | | | `BeginUnlocking` | [MsgBeginUnlocking](#osmosis.lockup.MsgBeginUnlocking) | [MsgBeginUnlockingResponse](#osmosis.lockup.MsgBeginUnlockingResponse) | MsgBeginUnlocking begins unlocking tokens by lock ID | | +| `ExtendLockup` | [MsgExtendLockup](#osmosis.lockup.MsgExtendLockup) | [MsgExtendLockupResponse](#osmosis.lockup.MsgExtendLockupResponse) | MsgEditLockup edits the existing lockups by lock ID | | diff --git a/proto/osmosis/tokenfactory/v1beta1/query.proto b/proto/osmosis/tokenfactory/v1beta1/query.proto index 48ebf6c6677..70edaefbb37 100644 --- a/proto/osmosis/tokenfactory/v1beta1/query.proto +++ b/proto/osmosis/tokenfactory/v1beta1/query.proto @@ -34,8 +34,8 @@ message QueryDenomAuthorityMetadataResponse { } message QueryDenomsFromCreatorRequest { - string creator = 1 [ (gogoproto.moretags) = "yaml:\"denoms\"" ]; + string creator = 1 [ (gogoproto.moretags) = "yaml:\"creator\"" ]; } message QueryDenomsFromCreatorResponse { repeated string denoms = 1 [ (gogoproto.moretags) = "yaml:\"denoms\"" ]; -} \ No newline at end of file +} diff --git a/x/lockup/types/tx.pb.go b/x/lockup/types/tx.pb.go index d6c8a25b78d..acafa4dc050 100644 --- a/x/lockup/types/tx.pb.go +++ b/x/lockup/types/tx.pb.go @@ -331,6 +331,8 @@ func (m *MsgBeginUnlockingResponse) GetSuccess() bool { return false } +// MsgExtendLockup extends the existing lockup's duration. +// The new duration is longer than the original. type MsgExtendLockup struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` ID uint64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` diff --git a/x/tokenfactory/types/query.pb.go b/x/tokenfactory/types/query.pb.go index 30a0311d4eb..5a142dae220 100644 --- a/x/tokenfactory/types/query.pb.go +++ b/x/tokenfactory/types/query.pb.go @@ -119,7 +119,7 @@ func (m *QueryDenomAuthorityMetadataResponse) GetAuthorityMetadata() DenomAuthor } type QueryDenomsFromCreatorRequest struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"denoms"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` } func (m *QueryDenomsFromCreatorRequest) Reset() { *m = QueryDenomsFromCreatorRequest{} } @@ -218,38 +218,39 @@ func init() { } var fileDescriptor_6f22013ad0f72e3f = []byte{ - // 492 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x41, 0x6b, 0x13, 0x41, - 0x14, 0xc7, 0x33, 0x96, 0x56, 0x1c, 0x15, 0xcc, 0x20, 0x52, 0x43, 0xdd, 0xd4, 0x11, 0xa4, 0x2a, - 0xee, 0xd0, 0x5a, 0x28, 0x58, 0x45, 0x93, 0x8a, 0x1e, 0xac, 0x87, 0xe6, 0xe8, 0x25, 0xcc, 0xa6, - 0xd3, 0xed, 0x62, 0x76, 0xdf, 0x76, 0x66, 0x52, 0x5c, 0x4a, 0x2f, 0x1e, 0x3c, 0x0b, 0x7e, 0x0f, - 0x3f, 0x86, 0xf4, 0x58, 0xe8, 0xc5, 0x53, 0x90, 0x44, 0xfc, 0x00, 0xf9, 0x04, 0x92, 0x99, 0x49, - 0xac, 0xee, 0xba, 0x16, 0x3d, 0xed, 0x30, 0xef, 0xff, 0xfe, 0xef, 0xfd, 0xde, 0x9b, 0xc5, 0x4b, - 0xa0, 0x62, 0x50, 0x91, 0x62, 0x1a, 0xde, 0x88, 0x64, 0x87, 0x77, 0x34, 0xc8, 0x8c, 0xed, 0x2f, - 0x07, 0x42, 0xf3, 0x65, 0x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0x8f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xd1, 0x0c, 0x41, 0xe9, 0x9c, 0x04, 0x00, 0x00, + // 502 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xcf, 0x6b, 0x13, 0x41, + 0x14, 0xce, 0x58, 0x5a, 0xe9, 0xf8, 0x03, 0x33, 0x88, 0xd4, 0x50, 0x77, 0xeb, 0x08, 0x12, 0x45, + 0x77, 0x68, 0x2d, 0x14, 0xac, 0xa2, 0x49, 0x45, 0x0f, 0xda, 0x43, 0xf7, 0xe8, 0x25, 0xcc, 0xa6, + 0xd3, 0xed, 0x62, 0x76, 0xdf, 0x76, 0x67, 0x52, 0x5c, 0x4a, 0x2f, 0x1e, 0x3c, 0x0b, 0xfe, 0x1f, + 0xfe, 0x19, 0xd2, 0x63, 0xa1, 0x17, 0x4f, 0x8b, 0x24, 0xe2, 0x1f, 0x90, 0xbf, 0x40, 0x32, 0x33, + 0x89, 0xd5, 0xc4, 0xb5, 0xe8, 0x69, 0x87, 0x79, 0xdf, 0xfb, 0xbe, 0xf7, 0x7d, 0x6f, 0x16, 0xd7, + 0x41, 0xc6, 0x20, 0x23, 0xc9, 0x14, 0xbc, 0x11, 0xc9, 0x0e, 0x6f, 0x2b, 0xc8, 0x72, 0xb6, 0xbf, + 0x1c, 0x08, 0xc5, 0x97, 0xd9, 0x5e, 0x57, 0x64, 0xb9, 0x97, 0x66, 0xa0, 0x80, 0x2c, 0x5a, 0xa4, + 0x77, 0x1a, 0xe9, 0x59, 0x64, 0xed, 0x6a, 0x08, 0x21, 0x68, 0x20, 0x1b, 0x9e, 0x4c, 0x4f, 0x6d, + 0x31, 0x04, 0x08, 0x3b, 0x82, 0xf1, 0x34, 0x62, 0x3c, 0x49, 0x40, 0x71, 0x15, 0x41, 0x22, 0x6d, + 0xf5, 0x6e, 0x5b, 0x53, 0xb2, 0x80, 0x4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xac, 0x7c, 0x9e, 0xc1, + 0xb3, 0x9a, 0x8d, 0x7c, 0x47, 0xf8, 0xda, 0x74, 0xdb, 0xe4, 0x69, 0x79, 0x58, 0x7f, 0xdf, 0x6d, + 0xad, 0xf1, 0x1f, 0x0c, 0xc6, 0x14, 0x7d, 0xf1, 0xee, 0xe4, 0xdb, 0xc7, 0x73, 0x0d, 0xf2, 0x84, + 0x95, 0xbe, 0x41, 0xe3, 0x8b, 0x1d, 0xe8, 0xef, 0x21, 0x9b, 0x5c, 0x11, 0x39, 0x41, 0xb8, 0x3a, + 0x91, 0x1d, 0x59, 0x3f, 0xeb, 0x84, 0x53, 0x16, 0x58, 0x7b, 0xf4, 0x6f, 0xcd, 0xd6, 0xd9, 0x86, + 0x76, 0xf6, 0x98, 0xac, 0x9f, 0xc5, 0x59, 0x6b, 0x27, 0x83, 0xb8, 0x65, 0xdf, 0x02, 0x3b, 0xb0, + 0x87, 0xc3, 0xe6, 0xd6, 0x51, 0xcf, 0x41, 0xc7, 0x3d, 0x07, 0x7d, 0xed, 0x39, 0xe8, 0x43, 0xdf, + 0xa9, 0x1c, 0xf7, 0x9d, 0xca, 0x97, 0xbe, 0x53, 0x79, 0xbd, 0x16, 0x46, 0x6a, 0xb7, 0x1b, 0x78, + 0x6d, 0x88, 0x47, 0x02, 0xf7, 0x3b, 0x3c, 0x90, 0x63, 0xb5, 0xfd, 0x35, 0xf6, 0xf6, 0x57, 0x49, + 0x95, 0xa7, 0x42, 0x06, 0x73, 0xfa, 0xef, 0x7d, 0xf0, 0x23, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x7c, + 0x95, 0x87, 0x9d, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used.