From 328403e1e7ffd8a55258aad0ddd480527d5f9b17 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 18 Oct 2022 04:38:13 +0000 Subject: [PATCH 1/8] Update comments in tx.proto --- docs/core/proto-docs.md | 25 ++++++++++++------------ proto/lbm/foundation/v1/tx.proto | 27 +++++++++++++------------- x/foundation/tx.pb.go | 33 ++++++++++++++++---------------- 3 files changed, 41 insertions(+), 44 deletions(-) diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index d2ce347bad..34a64eaa1e 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -17775,7 +17775,7 @@ MsgExecResponse is the Msg/Exec request type. ### MsgFundTreasury -MsgFundTreasury represents a message to fund the treasury. +MsgFundTreasury is the Msg/FundTreasury request type. | Field | Type | Label | Description | @@ -17791,7 +17791,7 @@ MsgFundTreasury represents a message to fund the treasury. ### MsgFundTreasuryResponse -MsgFundTreasuryResponse defines the Msg/FundTreasury response type. +MsgFundTreasuryResponse is the Msg/FundTreasury response type. @@ -17801,7 +17801,7 @@ MsgFundTreasuryResponse defines the Msg/FundTreasury response type. ### MsgGovMint -MsgGovMint represents a message to mint coins to the treasury. +MsgGovMint is the Msg/GovMint request type. | Field | Type | Label | Description | @@ -17817,7 +17817,7 @@ MsgGovMint represents a message to mint coins to the treasury. ### MsgGovMintResponse -MsgGovMintResponse defines the Msg/GovMint response type. +MsgGovMintResponse is the Msg/GovMint response type. @@ -17827,7 +17827,7 @@ MsgGovMintResponse defines the Msg/GovMint response type. ### MsgGrant -MsgGrant is a request type for Grant method. It declares authorization to the grantee +MsgGrant is the Msg/Grant request type. on behalf of the foundation. @@ -17845,7 +17845,7 @@ on behalf of the foundation. ### MsgGrantResponse -MsgGrantResponse defines the Msg/MsgGrant response type. +MsgGrantResponse is the Msg/MsgGrant response type. @@ -17880,8 +17880,7 @@ MsgLeaveFoundationResponse is the Msg/LeaveFoundation response type. ### MsgRevoke -MsgRevoke revokes any authorization with the provided sdk.Msg type -to the grantee on behalf of the foundation. +MsgRevoke is the Msg/Revoke request type. | Field | Type | Label | Description | @@ -17898,7 +17897,7 @@ to the grantee on behalf of the foundation. ### MsgRevokeResponse -MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. +MsgRevokeResponse is the Msg/MsgRevokeResponse response type. @@ -18022,7 +18021,7 @@ MsgVoteResponse is the Msg/Vote response type. ### MsgWithdrawFromTreasury -MsgWithdrawFromTreasury represents a message to withdraw coins from the treasury. +MsgWithdrawFromTreasury is the Msg/WithdrawFromTreasury request type. | Field | Type | Label | Description | @@ -18039,7 +18038,7 @@ MsgWithdrawFromTreasury represents a message to withdraw coins from the treasury ### MsgWithdrawFromTreasuryResponse -MsgWithdrawFromTreasuryResponse defines the Msg/WithdrawFromTreasury response type. +MsgWithdrawFromTreasuryResponse is the Msg/WithdrawFromTreasury response type. @@ -18106,8 +18105,8 @@ Msg defines the foundation Msg service. | `Vote` | [MsgVote](#lbm.foundation.v1.MsgVote) | [MsgVoteResponse](#lbm.foundation.v1.MsgVoteResponse) | Vote allows a voter to vote on a proposal. | | | `Exec` | [MsgExec](#lbm.foundation.v1.MsgExec) | [MsgExecResponse](#lbm.foundation.v1.MsgExecResponse) | Exec executes a proposal. | | | `LeaveFoundation` | [MsgLeaveFoundation](#lbm.foundation.v1.MsgLeaveFoundation) | [MsgLeaveFoundationResponse](#lbm.foundation.v1.MsgLeaveFoundationResponse) | LeaveFoundation allows a member to leave the foundation. | | -| `Grant` | [MsgGrant](#lbm.foundation.v1.MsgGrant) | [MsgGrantResponse](#lbm.foundation.v1.MsgGrantResponse) | Grant grants the provided authorization to the grantee with authority of the foundation. If there is already a grant for the given (granter, grantee, Authorization) tuple, then the grant will be overwritten. | | -| `Revoke` | [MsgRevoke](#lbm.foundation.v1.MsgRevoke) | [MsgRevokeResponse](#lbm.foundation.v1.MsgRevokeResponse) | Revoke revokes any authorization corresponding to the provided method name on the granter that has been granted to the grantee. | | +| `Grant` | [MsgGrant](#lbm.foundation.v1.MsgGrant) | [MsgGrantResponse](#lbm.foundation.v1.MsgGrantResponse) | Grant grants the provided authorization to the grantee with authority of the foundation. If there is already a grant for the given (grantee, Authorization) tuple, then the grant will be overwritten. | | +| `Revoke` | [MsgRevoke](#lbm.foundation.v1.MsgRevoke) | [MsgRevokeResponse](#lbm.foundation.v1.MsgRevokeResponse) | Revoke revokes any authorization corresponding to the provided method name that has been granted to the grantee. | | | `GovMint` | [MsgGovMint](#lbm.foundation.v1.MsgGovMint) | [MsgGovMintResponse](#lbm.foundation.v1.MsgGovMintResponse) | GovMint defines a gov mint coins to the treasury. | | diff --git a/proto/lbm/foundation/v1/tx.proto b/proto/lbm/foundation/v1/tx.proto index 56d826b427..10cbd0efdd 100644 --- a/proto/lbm/foundation/v1/tx.proto +++ b/proto/lbm/foundation/v1/tx.proto @@ -44,28 +44,28 @@ service Msg { // Grant grants the provided authorization to the grantee with authority of // the foundation. If there is already a grant for the given - // (granter, grantee, Authorization) tuple, then the grant will be overwritten. + // (grantee, Authorization) tuple, then the grant will be overwritten. rpc Grant(MsgGrant) returns (MsgGrantResponse); - // Revoke revokes any authorization corresponding to the provided method name on the - // granter that has been granted to the grantee. + // Revoke revokes any authorization corresponding to the provided method name + // that has been granted to the grantee. rpc Revoke(MsgRevoke) returns (MsgRevokeResponse); // GovMint defines a gov mint coins to the treasury. rpc GovMint(MsgGovMint) returns (MsgGovMintResponse); } -// MsgFundTreasury represents a message to fund the treasury. +// MsgFundTreasury is the Msg/FundTreasury request type. message MsgFundTreasury { string from = 1; repeated cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/line/lbm-sdk/types.Coins"]; } -// MsgFundTreasuryResponse defines the Msg/FundTreasury response type. +// MsgFundTreasuryResponse is the Msg/FundTreasury response type. message MsgFundTreasuryResponse {} -// MsgWithdrawFromTreasury represents a message to withdraw coins from the treasury. +// MsgWithdrawFromTreasury is the Msg/WithdrawFromTreasury request type. message MsgWithdrawFromTreasury { string operator = 1; string to = 2; @@ -73,7 +73,7 @@ message MsgWithdrawFromTreasury { [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/line/lbm-sdk/types.Coins"]; } -// MsgWithdrawFromTreasuryResponse defines the Msg/WithdrawFromTreasury response type. +// MsgWithdrawFromTreasuryResponse is the Msg/WithdrawFromTreasury response type. message MsgWithdrawFromTreasuryResponse {} // MsgUpdateMembers is the Msg/UpdateMembers request type. @@ -193,7 +193,7 @@ message MsgLeaveFoundation { // MsgLeaveFoundationResponse is the Msg/LeaveFoundation response type. message MsgLeaveFoundationResponse {} -// MsgGrant is a request type for Grant method. It declares authorization to the grantee +// MsgGrant is the Msg/Grant request type. // on behalf of the foundation. message MsgGrant { string operator = 1; @@ -203,26 +203,25 @@ message MsgGrant { [(cosmos_proto.accepts_interface) = "github.com/line/lbm-sdk/x/foundation.Authorization"]; } -// MsgGrantResponse defines the Msg/MsgGrant response type. +// MsgGrantResponse is the Msg/MsgGrant response type. message MsgGrantResponse {} -// MsgRevoke revokes any authorization with the provided sdk.Msg type -// to the grantee on behalf of the foundation. +// MsgRevoke is the Msg/Revoke request type. message MsgRevoke { string operator = 1; string grantee = 2; string msg_type_url = 3; } -// MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. +// MsgRevokeResponse is the Msg/MsgRevokeResponse response type. message MsgRevokeResponse {} -// MsgGovMint represents a message to mint coins to the treasury. +// MsgGovMint is the Msg/GovMint request type. message MsgGovMint { string operator = 1; repeated cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/line/lbm-sdk/types.Coins"]; } -// MsgGovMintResponse defines the Msg/GovMint response type. +// MsgGovMintResponse is the Msg/GovMint response type. message MsgGovMintResponse {} diff --git a/x/foundation/tx.pb.go b/x/foundation/tx.pb.go index 388e7c3966..599db58cb6 100644 --- a/x/foundation/tx.pb.go +++ b/x/foundation/tx.pb.go @@ -64,7 +64,7 @@ func (Exec) EnumDescriptor() ([]byte, []int) { return fileDescriptor_5ec2105611cae3ff, []int{0} } -// MsgFundTreasury represents a message to fund the treasury. +// MsgFundTreasury is the Msg/FundTreasury request type. type MsgFundTreasury struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Amount github_com_line_lbm_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/line/lbm-sdk/types.Coins" json:"amount"` @@ -103,7 +103,7 @@ func (m *MsgFundTreasury) XXX_DiscardUnknown() { var xxx_messageInfo_MsgFundTreasury proto.InternalMessageInfo -// MsgFundTreasuryResponse defines the Msg/FundTreasury response type. +// MsgFundTreasuryResponse is the Msg/FundTreasury response type. type MsgFundTreasuryResponse struct { } @@ -140,7 +140,7 @@ func (m *MsgFundTreasuryResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgFundTreasuryResponse proto.InternalMessageInfo -// MsgWithdrawFromTreasury represents a message to withdraw coins from the treasury. +// MsgWithdrawFromTreasury is the Msg/WithdrawFromTreasury request type. type MsgWithdrawFromTreasury struct { Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` @@ -180,7 +180,7 @@ func (m *MsgWithdrawFromTreasury) XXX_DiscardUnknown() { var xxx_messageInfo_MsgWithdrawFromTreasury proto.InternalMessageInfo -// MsgWithdrawFromTreasuryResponse defines the Msg/WithdrawFromTreasury response type. +// MsgWithdrawFromTreasuryResponse is the Msg/WithdrawFromTreasury response type. type MsgWithdrawFromTreasuryResponse struct { } @@ -778,7 +778,7 @@ func (m *MsgLeaveFoundationResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgLeaveFoundationResponse proto.InternalMessageInfo -// MsgGrant is a request type for Grant method. It declares authorization to the grantee +// MsgGrant is the Msg/Grant request type. // on behalf of the foundation. type MsgGrant struct { Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` @@ -819,7 +819,7 @@ func (m *MsgGrant) XXX_DiscardUnknown() { var xxx_messageInfo_MsgGrant proto.InternalMessageInfo -// MsgGrantResponse defines the Msg/MsgGrant response type. +// MsgGrantResponse is the Msg/MsgGrant response type. type MsgGrantResponse struct { } @@ -856,8 +856,7 @@ func (m *MsgGrantResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgGrantResponse proto.InternalMessageInfo -// MsgRevoke revokes any authorization with the provided sdk.Msg type -// to the grantee on behalf of the foundation. +// MsgRevoke is the Msg/Revoke request type. type MsgRevoke struct { Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` @@ -897,7 +896,7 @@ func (m *MsgRevoke) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRevoke proto.InternalMessageInfo -// MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. +// MsgRevokeResponse is the Msg/MsgRevokeResponse response type. type MsgRevokeResponse struct { } @@ -934,7 +933,7 @@ func (m *MsgRevokeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRevokeResponse proto.InternalMessageInfo -// MsgGovMint represents a message to mint coins to the treasury. +// MsgGovMint is the Msg/GovMint request type. type MsgGovMint struct { Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` Amount github_com_line_lbm_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/line/lbm-sdk/types.Coins" json:"amount"` @@ -973,7 +972,7 @@ func (m *MsgGovMint) XXX_DiscardUnknown() { var xxx_messageInfo_MsgGovMint proto.InternalMessageInfo -// MsgGovMintResponse defines the Msg/GovMint response type. +// MsgGovMintResponse is the Msg/GovMint response type. type MsgGovMintResponse struct { } @@ -1145,10 +1144,10 @@ type MsgClient interface { LeaveFoundation(ctx context.Context, in *MsgLeaveFoundation, opts ...grpc.CallOption) (*MsgLeaveFoundationResponse, error) // Grant grants the provided authorization to the grantee with authority of // the foundation. If there is already a grant for the given - // (granter, grantee, Authorization) tuple, then the grant will be overwritten. + // (grantee, Authorization) tuple, then the grant will be overwritten. Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error) - // Revoke revokes any authorization corresponding to the provided method name on the - // granter that has been granted to the grantee. + // Revoke revokes any authorization corresponding to the provided method name + // that has been granted to the grantee. Revoke(ctx context.Context, in *MsgRevoke, opts ...grpc.CallOption) (*MsgRevokeResponse, error) // GovMint defines a gov mint coins to the treasury. GovMint(ctx context.Context, in *MsgGovMint, opts ...grpc.CallOption) (*MsgGovMintResponse, error) @@ -1292,10 +1291,10 @@ type MsgServer interface { LeaveFoundation(context.Context, *MsgLeaveFoundation) (*MsgLeaveFoundationResponse, error) // Grant grants the provided authorization to the grantee with authority of // the foundation. If there is already a grant for the given - // (granter, grantee, Authorization) tuple, then the grant will be overwritten. + // (grantee, Authorization) tuple, then the grant will be overwritten. Grant(context.Context, *MsgGrant) (*MsgGrantResponse, error) - // Revoke revokes any authorization corresponding to the provided method name on the - // granter that has been granted to the grantee. + // Revoke revokes any authorization corresponding to the provided method name + // that has been granted to the grantee. Revoke(context.Context, *MsgRevoke) (*MsgRevokeResponse, error) // GovMint defines a gov mint coins to the treasury. GovMint(context.Context, *MsgGovMint) (*MsgGovMintResponse, error) From 08f5a6a22f843a49f734e5fe06cae54f22774906 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 18 Oct 2022 04:41:12 +0000 Subject: [PATCH 2/8] Remove UpdateFoundationParamsProposal Replace the proposal into the corresponding msg. --- docs/core/proto-docs.md | 51 +- proto/lbm/foundation/v1/foundation.proto | 15 - proto/lbm/foundation/v1/tx.proto | 18 + x/foundation/foundation.pb.go | 512 +++++--------------- x/foundation/tx.pb.go | 566 +++++++++++++++++++---- 5 files changed, 647 insertions(+), 515 deletions(-) diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index 34a64eaa1e..c0513f70d8 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -1114,7 +1114,6 @@ - [Proposal](#lbm.foundation.v1.Proposal) - [TallyResult](#lbm.foundation.v1.TallyResult) - [ThresholdDecisionPolicy](#lbm.foundation.v1.ThresholdDecisionPolicy) - - [UpdateFoundationParamsProposal](#lbm.foundation.v1.UpdateFoundationParamsProposal) - [Vote](#lbm.foundation.v1.Vote) - [ProposalExecutorResult](#lbm.foundation.v1.ProposalExecutorResult) @@ -1187,6 +1186,8 @@ - [MsgUpdateDecisionPolicyResponse](#lbm.foundation.v1.MsgUpdateDecisionPolicyResponse) - [MsgUpdateMembers](#lbm.foundation.v1.MsgUpdateMembers) - [MsgUpdateMembersResponse](#lbm.foundation.v1.MsgUpdateMembersResponse) + - [MsgUpdateParams](#lbm.foundation.v1.MsgUpdateParams) + - [MsgUpdateParamsResponse](#lbm.foundation.v1.MsgUpdateParamsResponse) - [MsgVote](#lbm.foundation.v1.MsgVote) - [MsgVoteResponse](#lbm.foundation.v1.MsgVoteResponse) - [MsgWithdrawFromTreasury](#lbm.foundation.v1.MsgWithdrawFromTreasury) @@ -16986,25 +16987,6 @@ satisfies the two following conditions: - - -### UpdateFoundationParamsProposal -UpdateFoundationParamsProposal details a proposal to update params of foundation module. - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| `title` | [string](#string) | | | -| `description` | [string](#string) | | | -| `params` | [Params](#lbm.foundation.v1.Params) | | params defines the x/foundation parameters to update. - -Note: All parameters must be supplied. | - - - - - - ### Vote @@ -17989,6 +17971,34 @@ MsgUpdateMembersResponse is the Msg/UpdateMembers response type. + + +### MsgUpdateParams +MsgUpdateParams is the Msg/UpdateParams request type. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `authority` | [string](#string) | | authority is the address of the operator account. | +| `params` | [Params](#lbm.foundation.v1.Params) | | params defines the x/foundation parameters to update. + +NOTE: All parameters must be supplied. | + + + + + + + + +### MsgUpdateParamsResponse +MsgUpdateParamsResponse is the Msg/UpdateParams response type. + + + + + + ### MsgVote @@ -18096,6 +18106,7 @@ Msg defines the foundation Msg service. | Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint | | ----------- | ------------ | ------------- | ------------| ------- | -------- | +| `UpdateParams` | [MsgUpdateParams](#lbm.foundation.v1.MsgUpdateParams) | [MsgUpdateParamsResponse](#lbm.foundation.v1.MsgUpdateParamsResponse) | UpdateParams defines an operation for updating the x/foundation module parameters. | | | `FundTreasury` | [MsgFundTreasury](#lbm.foundation.v1.MsgFundTreasury) | [MsgFundTreasuryResponse](#lbm.foundation.v1.MsgFundTreasuryResponse) | FundTreasury defines a method to fund the treasury. | | | `WithdrawFromTreasury` | [MsgWithdrawFromTreasury](#lbm.foundation.v1.MsgWithdrawFromTreasury) | [MsgWithdrawFromTreasuryResponse](#lbm.foundation.v1.MsgWithdrawFromTreasuryResponse) | WithdrawFromTreasury defines a method to withdraw coins from the treasury. | | | `UpdateMembers` | [MsgUpdateMembers](#lbm.foundation.v1.MsgUpdateMembers) | [MsgUpdateMembersResponse](#lbm.foundation.v1.MsgUpdateMembersResponse) | UpdateMembers updates the foundation members. | | diff --git a/proto/lbm/foundation/v1/foundation.proto b/proto/lbm/foundation/v1/foundation.proto index c1f1df2962..aa838fea1f 100644 --- a/proto/lbm/foundation/v1/foundation.proto +++ b/proto/lbm/foundation/v1/foundation.proto @@ -18,21 +18,6 @@ message Params { repeated string censored_msg_type_urls = 2; } -// UpdateFoundationParamsProposal details a proposal to update params of foundation module. -message UpdateFoundationParamsProposal { - option (gogoproto.equal) = false; - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = false; - - string title = 1; - string description = 2; - - // params defines the x/foundation parameters to update. - // - // Note: All parameters must be supplied. - Params params = 3 [(gogoproto.nullable) = false]; -} - // Member represents a foundation member with an account address and metadata. message Member { // address is the member's account address. diff --git a/proto/lbm/foundation/v1/tx.proto b/proto/lbm/foundation/v1/tx.proto index 10cbd0efdd..1718e2f43c 100644 --- a/proto/lbm/foundation/v1/tx.proto +++ b/proto/lbm/foundation/v1/tx.proto @@ -15,6 +15,10 @@ option (gogoproto.goproto_getters_all) = false; // Msg defines the foundation Msg service. service Msg { + // UpdateParams defines an operation for updating the x/foundation module + // parameters. + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + // FundTreasury defines a method to fund the treasury. rpc FundTreasury(MsgFundTreasury) returns (MsgFundTreasuryResponse); @@ -55,6 +59,20 @@ service Msg { rpc GovMint(MsgGovMint) returns (MsgGovMintResponse); } +// MsgUpdateParams is the Msg/UpdateParams request type. +message MsgUpdateParams { + // authority is the address of the operator account. + string authority = 1; + + // params defines the x/foundation parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [(gogoproto.nullable) = false]; +} + +// MsgUpdateParamsResponse is the Msg/UpdateParams response type. +message MsgUpdateParamsResponse {} + // MsgFundTreasury is the Msg/FundTreasury request type. message MsgFundTreasury { string from = 1; diff --git a/x/foundation/foundation.pb.go b/x/foundation/foundation.pb.go index 25cba72548..e03c975ca4 100644 --- a/x/foundation/foundation.pb.go +++ b/x/foundation/foundation.pb.go @@ -202,48 +202,6 @@ func (m *Params) GetCensoredMsgTypeUrls() []string { return nil } -// UpdateFoundationParamsProposal details a proposal to update params of foundation module. -type UpdateFoundationParamsProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - // params defines the x/foundation parameters to update. - // - // Note: All parameters must be supplied. - Params Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params"` -} - -func (m *UpdateFoundationParamsProposal) Reset() { *m = UpdateFoundationParamsProposal{} } -func (*UpdateFoundationParamsProposal) ProtoMessage() {} -func (*UpdateFoundationParamsProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{1} -} -func (m *UpdateFoundationParamsProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateFoundationParamsProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateFoundationParamsProposal.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 *UpdateFoundationParamsProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateFoundationParamsProposal.Merge(m, src) -} -func (m *UpdateFoundationParamsProposal) XXX_Size() int { - return m.Size() -} -func (m *UpdateFoundationParamsProposal) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateFoundationParamsProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateFoundationParamsProposal proto.InternalMessageInfo - // Member represents a foundation member with an account address and metadata. type Member struct { // address is the member's account address. @@ -258,7 +216,7 @@ func (m *Member) Reset() { *m = Member{} } func (m *Member) String() string { return proto.CompactTextString(m) } func (*Member) ProtoMessage() {} func (*Member) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{2} + return fileDescriptor_1980496a233f02f4, []int{1} } func (m *Member) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -324,7 +282,7 @@ func (m *MemberRequest) Reset() { *m = MemberRequest{} } func (m *MemberRequest) String() string { return proto.CompactTextString(m) } func (*MemberRequest) ProtoMessage() {} func (*MemberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{3} + return fileDescriptor_1980496a233f02f4, []int{2} } func (m *MemberRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -391,7 +349,7 @@ func (m *ThresholdDecisionPolicy) Reset() { *m = ThresholdDecisionPolicy func (m *ThresholdDecisionPolicy) String() string { return proto.CompactTextString(m) } func (*ThresholdDecisionPolicy) ProtoMessage() {} func (*ThresholdDecisionPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{4} + return fileDescriptor_1980496a233f02f4, []int{3} } func (m *ThresholdDecisionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -444,7 +402,7 @@ func (m *PercentageDecisionPolicy) Reset() { *m = PercentageDecisionPoli func (m *PercentageDecisionPolicy) String() string { return proto.CompactTextString(m) } func (*PercentageDecisionPolicy) ProtoMessage() {} func (*PercentageDecisionPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{5} + return fileDescriptor_1980496a233f02f4, []int{4} } func (m *PercentageDecisionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -503,7 +461,7 @@ func (m *DecisionPolicyWindows) Reset() { *m = DecisionPolicyWindows{} } func (m *DecisionPolicyWindows) String() string { return proto.CompactTextString(m) } func (*DecisionPolicyWindows) ProtoMessage() {} func (*DecisionPolicyWindows) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{6} + return fileDescriptor_1980496a233f02f4, []int{5} } func (m *DecisionPolicyWindows) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -556,7 +514,7 @@ func (m *OutsourcingDecisionPolicy) Reset() { *m = OutsourcingDecisionPo func (m *OutsourcingDecisionPolicy) String() string { return proto.CompactTextString(m) } func (*OutsourcingDecisionPolicy) ProtoMessage() {} func (*OutsourcingDecisionPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{7} + return fileDescriptor_1980496a233f02f4, []int{6} } func (m *OutsourcingDecisionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -611,7 +569,7 @@ func (m *FoundationInfo) Reset() { *m = FoundationInfo{} } func (m *FoundationInfo) String() string { return proto.CompactTextString(m) } func (*FoundationInfo) ProtoMessage() {} func (*FoundationInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{8} + return fileDescriptor_1980496a233f02f4, []int{7} } func (m *FoundationInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -679,7 +637,7 @@ func (m *Proposal) Reset() { *m = Proposal{} } func (m *Proposal) String() string { return proto.CompactTextString(m) } func (*Proposal) ProtoMessage() {} func (*Proposal) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{9} + return fileDescriptor_1980496a233f02f4, []int{8} } func (m *Proposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -724,7 +682,7 @@ func (m *TallyResult) Reset() { *m = TallyResult{} } func (m *TallyResult) String() string { return proto.CompactTextString(m) } func (*TallyResult) ProtoMessage() {} func (*TallyResult) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{10} + return fileDescriptor_1980496a233f02f4, []int{9} } func (m *TallyResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -771,7 +729,7 @@ func (m *Vote) Reset() { *m = Vote{} } func (m *Vote) String() string { return proto.CompactTextString(m) } func (*Vote) ProtoMessage() {} func (*Vote) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{11} + return fileDescriptor_1980496a233f02f4, []int{10} } func (m *Vote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -844,7 +802,7 @@ func (m *Pool) Reset() { *m = Pool{} } func (m *Pool) String() string { return proto.CompactTextString(m) } func (*Pool) ProtoMessage() {} func (*Pool) Descriptor() ([]byte, []int) { - return fileDescriptor_1980496a233f02f4, []int{12} + return fileDescriptor_1980496a233f02f4, []int{11} } func (m *Pool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -885,7 +843,6 @@ func init() { proto.RegisterEnum("lbm.foundation.v1.ProposalStatus", ProposalStatus_name, ProposalStatus_value) proto.RegisterEnum("lbm.foundation.v1.ProposalExecutorResult", ProposalExecutorResult_name, ProposalExecutorResult_value) proto.RegisterType((*Params)(nil), "lbm.foundation.v1.Params") - proto.RegisterType((*UpdateFoundationParamsProposal)(nil), "lbm.foundation.v1.UpdateFoundationParamsProposal") proto.RegisterType((*Member)(nil), "lbm.foundation.v1.Member") proto.RegisterType((*MemberRequest)(nil), "lbm.foundation.v1.MemberRequest") proto.RegisterType((*ThresholdDecisionPolicy)(nil), "lbm.foundation.v1.ThresholdDecisionPolicy") @@ -904,96 +861,92 @@ func init() { } var fileDescriptor_1980496a233f02f4 = []byte{ - // 1415 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcf, 0x6f, 0xdb, 0xc6, - 0x12, 0x16, 0x25, 0x59, 0x96, 0xc7, 0xb6, 0xac, 0x6c, 0xfc, 0x12, 0xd9, 0x49, 0x24, 0x47, 0x08, - 0x1e, 0x9c, 0x00, 0x91, 0x9e, 0x13, 0x3c, 0x3c, 0xbc, 0x5c, 0x0a, 0x49, 0xa6, 0x1b, 0x15, 0x8e, - 0xa4, 0x50, 0x94, 0xdd, 0x16, 0x28, 0x08, 0x4a, 0x5c, 0x4b, 0x44, 0x49, 0x2e, 0xcb, 0x5d, 0xca, - 0xd6, 0xa9, 0xd7, 0xdc, 0x92, 0x63, 0x6e, 0x0d, 0xd0, 0x4b, 0xd1, 0x73, 0x81, 0x16, 0x01, 0x7a, - 0x4f, 0x7b, 0x28, 0x82, 0x5e, 0x5a, 0xf4, 0x90, 0x14, 0xce, 0xa5, 0x97, 0xfe, 0x0f, 0xc5, 0xf2, - 0x87, 0x7e, 0x59, 0x71, 0xab, 0x02, 0xbd, 0x79, 0x76, 0xe6, 0xfb, 0xf8, 0xcd, 0xec, 0xcc, 0x68, - 0x0d, 0x79, 0xa3, 0x6d, 0x16, 0x8f, 0x88, 0x6b, 0x69, 0x2a, 0xd3, 0x89, 0x55, 0xec, 0xef, 0x8c, - 0x59, 0x05, 0xdb, 0x21, 0x8c, 0xa0, 0x0b, 0x46, 0xdb, 0x2c, 0x8c, 0x9d, 0xf6, 0x77, 0x36, 0xd7, - 0xbb, 0xa4, 0x4b, 0x3c, 0x6f, 0x91, 0xff, 0xe5, 0x07, 0x6e, 0x66, 0xbb, 0x84, 0x74, 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85, 0x26, - 0xda, 0x87, 0x15, 0x46, 0x98, 0x6a, 0x28, 0xc7, 0x58, 0xef, 0xf6, 0x98, 0xdf, 0xf3, 0xf3, 0xdc, - 0xfd, 0xb2, 0x07, 0x3f, 0xf4, 0xd0, 0xe8, 0x21, 0xac, 0x69, 0x81, 0x50, 0xc5, 0xf6, 0x94, 0x06, - 0x83, 0xbc, 0x7e, 0xa6, 0x76, 0x25, 0x6b, 0x50, 0x46, 0xdf, 0x9f, 0xc9, 0x4c, 0x4a, 0x69, 0x13, - 0xf6, 0xbd, 0x38, 0x5f, 0x31, 0xf9, 0xaf, 0xe3, 0x90, 0x1c, 0xae, 0xb9, 0x14, 0x44, 0x75, 0xff, - 0x96, 0xe3, 0x52, 0x54, 0xd7, 0xce, 0xdd, 0x29, 0x57, 0x61, 0xc9, 0xf6, 0x70, 0xd8, 0xe1, 0xdb, - 0x8d, 0x6f, 0xd7, 0xd1, 0x01, 0x12, 0x61, 0x99, 0xba, 0x6d, 0x53, 0x67, 0x0a, 0xff, 0x55, 0x99, - 0x6b, 0xe9, 0x80, 0x0f, 0xe4, 0x2e, 0x74, 0x1b, 0xd0, 0xd8, 0x2f, 0x44, 0x58, 0xe9, 0x05, 0x4f, - 0xe0, 0x85, 0x91, 0xe7, 0x20, 0xa8, 0xf9, 0xff, 0x21, 0x41, 0x99, 0xca, 0x5c, 0x9a, 0x49, 0x6c, - 0x09, 0xdb, 0xa9, 0x3b, 0xd7, 0x67, 0xad, 0xdb, 0x20, 0xd9, 0xa6, 0x17, 0x28, 0x05, 0x00, 0x24, - 0x01, 0x3a, 0xd2, 0x2d, 0xd5, 0x50, 0x98, 0x6a, 0x18, 0x03, 0xc5, 0xc1, 0xd4, 0x35, 0x58, 0x66, - 0xd1, 0xd3, 0x9d, 0x9d, 0x41, 0x23, 0xf3, 0x30, 0xc9, 0x8b, 0x0a, 0x56, 0x77, 0xda, 0xc3, 0x8f, - 0x9d, 0xa3, 0x06, 0x5c, 0x98, 0x98, 0x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0xaa, 0xb2, 0x2c, 0xee, 0xa6, 0x05, 0xfe, 0xd9, 0x69, 0x77, 0xa9, 0x52, 0x11, 0x1b, - 0xdc, 0x1b, 0x9d, 0xe5, 0x95, 0xc4, 0xf7, 0xc4, 0x0a, 0xf7, 0xc6, 0x78, 0x45, 0xce, 0x60, 0xcb, - 0x75, 0x89, 0x3b, 0xe3, 0xb3, 0xbe, 0xcb, 0x13, 0xda, 0x95, 0x4a, 0x87, 0xb5, 0xf4, 0x42, 0x90, - 0xd0, 0x73, 0x01, 0x2e, 0xcd, 0xde, 0x2e, 0x68, 0x1b, 0x6e, 0x0c, 0xf1, 0xe2, 0xfb, 0x62, 0xa5, - 0x25, 0xd7, 0x25, 0x45, 0x12, 0x9b, 0xad, 0x7d, 0x79, 0x2a, 0xc3, 0x1b, 0xb0, 0xf5, 0xd6, 0xc8, - 0x5a, 0x5d, 0x56, 0xa4, 0x56, 0x2d, 0x2d, 0x9c, 0x1b, 0xd5, 0x6c, 0x55, 0x2a, 0x62, 0xb3, 0x99, - 0x8e, 0x9e, 0x1b, 0xb5, 0x57, 0xaa, 0xee, 0xb7, 0x24, 0x31, 0x1d, 0xf3, 0xc5, 0x97, 0xcb, 0x5f, - 0x9c, 0x66, 0x85, 0x17, 0xa7, 0x59, 0xe1, 0xe5, 0x69, 0x56, 0xf8, 0xf5, 0x34, 0x2b, 0x3c, 0x79, - 0x93, 0x8d, 0xbc, 0x7c, 0x93, 0x8d, 0xfc, 0xfc, 0x26, 0x1b, 0xf9, 0xf0, 0xc6, 0xdb, 0xfa, 0xed, - 0x64, 0xec, 0x5f, 0xb1, 0x76, 0xc2, 0xeb, 0xff, 0xbb, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0xbd, - 0x56, 0x92, 0xf7, 0xb1, 0x0d, 0x00, 0x00, + // 1348 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0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0x08, 0xc7, 0xdb, 0xc5, 0x2e, 0xd5, 0x02, 0xed, 0x0d, 0x2f, 0xaf, 0x78, 0xa6, 0xbc, + 0xc0, 0x4b, 0xe5, 0x9f, 0x0a, 0x10, 0x6b, 0x62, 0x0b, 0x1b, 0x0c, 0x35, 0x21, 0x79, 0x5a, 0x88, + 0xc2, 0xf1, 0x71, 0x5a, 0xc8, 0x09, 0x5b, 0x2b, 0xe5, 0x3b, 0x2f, 0x5e, 0x65, 0x43, 0x7f, 0xbc, + 0xca, 0xde, 0xea, 0x69, 0xbc, 0x6f, 0x77, 0x0a, 0x5d, 0x6a, 0x14, 0x75, 0xcd, 0x24, 0x45, 0xbd, + 0x63, 0xdc, 0x63, 0xea, 0x67, 0x45, 0x3e, 0x1a, 0x10, 0x56, 0xa8, 0x92, 0xae, 0xb4, 0x7a, 0x2a, + 0x20, 0xe3, 0x63, 0x74, 0x1f, 0xae, 0x76, 0x89, 0xc9, 0xa8, 0x45, 0x54, 0xc5, 0x60, 0x3d, 0xc5, + 0x01, 0x2a, 0xb6, 0xa5, 0xb3, 0x74, 0x38, 0x17, 0xd9, 0x5a, 0x91, 0xae, 0x04, 0xd9, 0x47, 0xac, + 0x27, 0x8f, 0x06, 0xa4, 0x6d, 0xe9, 0x2c, 0xff, 0x05, 0xc4, 0x1e, 0x11, 0xa3, 0x43, 0x2c, 0x94, + 0x86, 0x65, 0xac, 0xaa, 0x16, 0x61, 0xcc, 0x73, 0x22, 0x05, 0x21, 0xda, 0x84, 0xb8, 0x41, 0x38, + 0x56, 0x31, 0xc7, 0xe9, 0xb0, 0x9b, 0x1a, 0xc7, 0xe8, 0x7d, 0x88, 0x63, 0x55, 0x25, 0xaa, 0x82, + 0x79, 0x3a, 0x9a, 0x13, 0xb6, 0x12, 0x3b, 0x9b, 0x05, 0xaf, 0x75, 0x85, 0xa0, 0x75, 0x05, 0x39, + 0xe8, 0x6d, 0x39, 0xee, 0x14, 0xf7, 0xec, 0x75, 0x56, 0x70, 0x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 0x4e, 0x32, 0xc2, + 0x8b, 0x93, 0x8c, 0xf0, 0xf2, 0x24, 0x23, 0xfc, 0x79, 0x92, 0x11, 0x9e, 0xbd, 0xc9, 0x84, 0x5e, + 0xbe, 0xc9, 0x84, 0x7e, 0x7f, 0x93, 0x09, 0x7d, 0x72, 0xfb, 0xbc, 0x79, 0x3b, 0x9e, 0xf8, 0xa3, + 0xd3, 0x89, 0xb9, 0xf3, 0x7f, 0xff, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x11, 0x4b, 0x29, 0xa0, + 0x0f, 0x0d, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -1427,53 +1380,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *UpdateFoundationParamsProposal) 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 *UpdateFoundationParamsProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateFoundationParamsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintFoundation(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintFoundation(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintFoundation(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *Member) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1494,12 +1400,12 @@ func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AddedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AddedAt):]) - if err2 != nil { - return 0, err2 + n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AddedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AddedAt):]) + if err1 != nil { + return 0, err1 } - i -= n2 - i = encodeVarintFoundation(dAtA, i, uint64(n2)) + i -= n1 + i = encodeVarintFoundation(dAtA, i, uint64(n1)) i-- dAtA[i] = 0x22 if len(m.Metadata) > 0 { @@ -1676,21 +1582,21 @@ func (m *DecisionPolicyWindows) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - n5, err5 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.MinExecutionPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.MinExecutionPeriod):]) + n4, err4 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.MinExecutionPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.MinExecutionPeriod):]) + if err4 != nil { + return 0, err4 + } + i -= n4 + i = encodeVarintFoundation(dAtA, i, uint64(n4)) + i-- + dAtA[i] = 0x12 + n5, err5 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.VotingPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.VotingPeriod):]) if err5 != nil { return 0, err5 } i -= n5 i = encodeVarintFoundation(dAtA, i, uint64(n5)) i-- - dAtA[i] = 0x12 - n6, err6 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.VotingPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.VotingPeriod):]) - if err6 != nil { - return 0, err6 - } - i -= n6 - i = encodeVarintFoundation(dAtA, i, uint64(n6)) - i-- dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -1821,12 +1727,12 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x48 } - n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.VotingPeriodEnd, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.VotingPeriodEnd):]) - if err8 != nil { - return 0, err8 + n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.VotingPeriodEnd, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.VotingPeriodEnd):]) + if err7 != nil { + return 0, err7 } - i -= n8 - i = encodeVarintFoundation(dAtA, i, uint64(n8)) + i -= n7 + i = encodeVarintFoundation(dAtA, i, uint64(n7)) i-- dAtA[i] = 0x42 { @@ -1849,12 +1755,12 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x28 } - n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.SubmitTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.SubmitTime):]) - if err10 != nil { - return 0, err10 + n9, err9 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.SubmitTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.SubmitTime):]) + if err9 != nil { + return 0, err9 } - i -= n10 - i = encodeVarintFoundation(dAtA, i, uint64(n10)) + i -= n9 + i = encodeVarintFoundation(dAtA, i, uint64(n9)) i-- dAtA[i] = 0x22 if len(m.Proposers) > 0 { @@ -1964,12 +1870,12 @@ func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - n11, err11 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.SubmitTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.SubmitTime):]) - if err11 != nil { - return 0, err11 + n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.SubmitTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.SubmitTime):]) + if err10 != nil { + return 0, err10 } - i -= n11 - i = encodeVarintFoundation(dAtA, i, uint64(n11)) + i -= n10 + i = encodeVarintFoundation(dAtA, i, uint64(n10)) i-- dAtA[i] = 0x2a if len(m.Metadata) > 0 { @@ -2064,25 +1970,6 @@ func (m *Params) Size() (n int) { return n } -func (m *UpdateFoundationParamsProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovFoundation(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovFoundation(uint64(l)) - } - l = m.Params.Size() - n += 1 + l + sovFoundation(uint64(l)) - return n -} - func (m *Member) Size() (n int) { if m == nil { return 0 @@ -2422,153 +2309,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateFoundationParamsProposal) 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 ErrIntOverflowFoundation - } - 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: UpdateFoundationParamsProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateFoundationParamsProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFoundation - } - 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 ErrInvalidLengthFoundation - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFoundation - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowFoundation - } - 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 ErrInvalidLengthFoundation - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthFoundation - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 ErrIntOverflowFoundation - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthFoundation - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthFoundation - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipFoundation(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthFoundation - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *Member) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/foundation/tx.pb.go b/x/foundation/tx.pb.go index 599db58cb6..c12e1dfd9a 100644 --- a/x/foundation/tx.pb.go +++ b/x/foundation/tx.pb.go @@ -64,6 +64,86 @@ func (Exec) EnumDescriptor() ([]byte, []int) { return fileDescriptor_5ec2105611cae3ff, []int{0} } +// MsgUpdateParams is the Msg/UpdateParams request type. +type MsgUpdateParams struct { + // authority is the address of the operator account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/foundation parameters to update. + // + // NOTE: All parameters must be supplied. + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` +} + +func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } +func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_5ec2105611cae3ff, []int{0} +} +func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParams.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 *MsgUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams.Merge(m, src) +} +func (m *MsgUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo + +// MsgUpdateParamsResponse is the Msg/UpdateParams response type. +type MsgUpdateParamsResponse struct { +} + +func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } +func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParamsResponse) ProtoMessage() {} +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ec2105611cae3ff, []int{1} +} +func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParamsResponse.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 *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) +} +func (m *MsgUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo + // MsgFundTreasury is the Msg/FundTreasury request type. type MsgFundTreasury struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` @@ -74,7 +154,7 @@ func (m *MsgFundTreasury) Reset() { *m = MsgFundTreasury{} } func (m *MsgFundTreasury) String() string { return proto.CompactTextString(m) } func (*MsgFundTreasury) ProtoMessage() {} func (*MsgFundTreasury) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{0} + return fileDescriptor_5ec2105611cae3ff, []int{2} } func (m *MsgFundTreasury) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -111,7 +191,7 @@ func (m *MsgFundTreasuryResponse) Reset() { *m = MsgFundTreasuryResponse func (m *MsgFundTreasuryResponse) String() string { return proto.CompactTextString(m) } func (*MsgFundTreasuryResponse) ProtoMessage() {} func (*MsgFundTreasuryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{1} + return fileDescriptor_5ec2105611cae3ff, []int{3} } func (m *MsgFundTreasuryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -151,7 +231,7 @@ func (m *MsgWithdrawFromTreasury) Reset() { *m = MsgWithdrawFromTreasury func (m *MsgWithdrawFromTreasury) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawFromTreasury) ProtoMessage() {} func (*MsgWithdrawFromTreasury) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{2} + return fileDescriptor_5ec2105611cae3ff, []int{4} } func (m *MsgWithdrawFromTreasury) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -188,7 +268,7 @@ func (m *MsgWithdrawFromTreasuryResponse) Reset() { *m = MsgWithdrawFrom func (m *MsgWithdrawFromTreasuryResponse) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawFromTreasuryResponse) ProtoMessage() {} func (*MsgWithdrawFromTreasuryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{3} + return fileDescriptor_5ec2105611cae3ff, []int{5} } func (m *MsgWithdrawFromTreasuryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -230,7 +310,7 @@ func (m *MsgUpdateMembers) Reset() { *m = MsgUpdateMembers{} } func (m *MsgUpdateMembers) String() string { return proto.CompactTextString(m) } func (*MsgUpdateMembers) ProtoMessage() {} func (*MsgUpdateMembers) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{4} + return fileDescriptor_5ec2105611cae3ff, []int{6} } func (m *MsgUpdateMembers) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -267,7 +347,7 @@ func (m *MsgUpdateMembersResponse) Reset() { *m = MsgUpdateMembersRespon func (m *MsgUpdateMembersResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateMembersResponse) ProtoMessage() {} func (*MsgUpdateMembersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{5} + return fileDescriptor_5ec2105611cae3ff, []int{7} } func (m *MsgUpdateMembersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -308,7 +388,7 @@ func (m *MsgUpdateDecisionPolicy) Reset() { *m = MsgUpdateDecisionPolicy func (m *MsgUpdateDecisionPolicy) String() string { return proto.CompactTextString(m) } func (*MsgUpdateDecisionPolicy) ProtoMessage() {} func (*MsgUpdateDecisionPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{6} + return fileDescriptor_5ec2105611cae3ff, []int{8} } func (m *MsgUpdateDecisionPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -345,7 +425,7 @@ func (m *MsgUpdateDecisionPolicyResponse) Reset() { *m = MsgUpdateDecisi func (m *MsgUpdateDecisionPolicyResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateDecisionPolicyResponse) ProtoMessage() {} func (*MsgUpdateDecisionPolicyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{7} + return fileDescriptor_5ec2105611cae3ff, []int{9} } func (m *MsgUpdateDecisionPolicyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -393,7 +473,7 @@ func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} } func (m *MsgSubmitProposal) String() string { return proto.CompactTextString(m) } func (*MsgSubmitProposal) ProtoMessage() {} func (*MsgSubmitProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{8} + return fileDescriptor_5ec2105611cae3ff, []int{10} } func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -432,7 +512,7 @@ func (m *MsgSubmitProposalResponse) Reset() { *m = MsgSubmitProposalResp func (m *MsgSubmitProposalResponse) String() string { return proto.CompactTextString(m) } func (*MsgSubmitProposalResponse) ProtoMessage() {} func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{9} + return fileDescriptor_5ec2105611cae3ff, []int{11} } func (m *MsgSubmitProposalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -473,7 +553,7 @@ func (m *MsgWithdrawProposal) Reset() { *m = MsgWithdrawProposal{} } func (m *MsgWithdrawProposal) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawProposal) ProtoMessage() {} func (*MsgWithdrawProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{10} + return fileDescriptor_5ec2105611cae3ff, []int{12} } func (m *MsgWithdrawProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -510,7 +590,7 @@ func (m *MsgWithdrawProposalResponse) Reset() { *m = MsgWithdrawProposal func (m *MsgWithdrawProposalResponse) String() string { return proto.CompactTextString(m) } func (*MsgWithdrawProposalResponse) ProtoMessage() {} func (*MsgWithdrawProposalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{11} + return fileDescriptor_5ec2105611cae3ff, []int{13} } func (m *MsgWithdrawProposalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -558,7 +638,7 @@ func (m *MsgVote) Reset() { *m = MsgVote{} } func (m *MsgVote) String() string { return proto.CompactTextString(m) } func (*MsgVote) ProtoMessage() {} func (*MsgVote) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{12} + return fileDescriptor_5ec2105611cae3ff, []int{14} } func (m *MsgVote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -595,7 +675,7 @@ func (m *MsgVoteResponse) Reset() { *m = MsgVoteResponse{} } func (m *MsgVoteResponse) String() string { return proto.CompactTextString(m) } func (*MsgVoteResponse) ProtoMessage() {} func (*MsgVoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{13} + return fileDescriptor_5ec2105611cae3ff, []int{15} } func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -636,7 +716,7 @@ func (m *MsgExec) Reset() { *m = MsgExec{} } func (m *MsgExec) String() string { return proto.CompactTextString(m) } func (*MsgExec) ProtoMessage() {} func (*MsgExec) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{14} + return fileDescriptor_5ec2105611cae3ff, []int{16} } func (m *MsgExec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -673,7 +753,7 @@ func (m *MsgExecResponse) Reset() { *m = MsgExecResponse{} } func (m *MsgExecResponse) String() string { return proto.CompactTextString(m) } func (*MsgExecResponse) ProtoMessage() {} func (*MsgExecResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{15} + return fileDescriptor_5ec2105611cae3ff, []int{17} } func (m *MsgExecResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -712,7 +792,7 @@ func (m *MsgLeaveFoundation) Reset() { *m = MsgLeaveFoundation{} } func (m *MsgLeaveFoundation) String() string { return proto.CompactTextString(m) } func (*MsgLeaveFoundation) ProtoMessage() {} func (*MsgLeaveFoundation) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{16} + return fileDescriptor_5ec2105611cae3ff, []int{18} } func (m *MsgLeaveFoundation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -749,7 +829,7 @@ func (m *MsgLeaveFoundationResponse) Reset() { *m = MsgLeaveFoundationRe func (m *MsgLeaveFoundationResponse) String() string { return proto.CompactTextString(m) } func (*MsgLeaveFoundationResponse) ProtoMessage() {} func (*MsgLeaveFoundationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{17} + return fileDescriptor_5ec2105611cae3ff, []int{19} } func (m *MsgLeaveFoundationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -790,7 +870,7 @@ func (m *MsgGrant) Reset() { *m = MsgGrant{} } func (m *MsgGrant) String() string { return proto.CompactTextString(m) } func (*MsgGrant) ProtoMessage() {} func (*MsgGrant) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{18} + return fileDescriptor_5ec2105611cae3ff, []int{20} } func (m *MsgGrant) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -827,7 +907,7 @@ func (m *MsgGrantResponse) Reset() { *m = MsgGrantResponse{} } func (m *MsgGrantResponse) String() string { return proto.CompactTextString(m) } func (*MsgGrantResponse) ProtoMessage() {} func (*MsgGrantResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{19} + return fileDescriptor_5ec2105611cae3ff, []int{21} } func (m *MsgGrantResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -867,7 +947,7 @@ func (m *MsgRevoke) Reset() { *m = MsgRevoke{} } func (m *MsgRevoke) String() string { return proto.CompactTextString(m) } func (*MsgRevoke) ProtoMessage() {} func (*MsgRevoke) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{20} + return fileDescriptor_5ec2105611cae3ff, []int{22} } func (m *MsgRevoke) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -904,7 +984,7 @@ func (m *MsgRevokeResponse) Reset() { *m = MsgRevokeResponse{} } func (m *MsgRevokeResponse) String() string { return proto.CompactTextString(m) } func (*MsgRevokeResponse) ProtoMessage() {} func (*MsgRevokeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{21} + return fileDescriptor_5ec2105611cae3ff, []int{23} } func (m *MsgRevokeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -943,7 +1023,7 @@ func (m *MsgGovMint) Reset() { *m = MsgGovMint{} } func (m *MsgGovMint) String() string { return proto.CompactTextString(m) } func (*MsgGovMint) ProtoMessage() {} func (*MsgGovMint) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{22} + return fileDescriptor_5ec2105611cae3ff, []int{24} } func (m *MsgGovMint) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -980,7 +1060,7 @@ func (m *MsgGovMintResponse) Reset() { *m = MsgGovMintResponse{} } func (m *MsgGovMintResponse) String() string { return proto.CompactTextString(m) } func (*MsgGovMintResponse) ProtoMessage() {} func (*MsgGovMintResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5ec2105611cae3ff, []int{23} + return fileDescriptor_5ec2105611cae3ff, []int{25} } func (m *MsgGovMintResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1011,6 +1091,8 @@ var xxx_messageInfo_MsgGovMintResponse proto.InternalMessageInfo func init() { proto.RegisterEnum("lbm.foundation.v1.Exec", Exec_name, Exec_value) + proto.RegisterType((*MsgUpdateParams)(nil), "lbm.foundation.v1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "lbm.foundation.v1.MsgUpdateParamsResponse") proto.RegisterType((*MsgFundTreasury)(nil), "lbm.foundation.v1.MsgFundTreasury") proto.RegisterType((*MsgFundTreasuryResponse)(nil), "lbm.foundation.v1.MsgFundTreasuryResponse") proto.RegisterType((*MsgWithdrawFromTreasury)(nil), "lbm.foundation.v1.MsgWithdrawFromTreasury") @@ -1040,76 +1122,80 @@ func init() { func init() { proto.RegisterFile("lbm/foundation/v1/tx.proto", fileDescriptor_5ec2105611cae3ff) } var fileDescriptor_5ec2105611cae3ff = []byte{ - // 1097 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x4f, 0xe3, 0x46, - 0x14, 0x8e, 0x21, 0xfc, 0x7a, 0x40, 0x00, 0x6f, 0xd4, 0x0d, 0x5e, 0x08, 0xa9, 0x61, 0x2b, 0x04, - 0xc5, 0x2e, 0xa9, 0xda, 0x53, 0x2f, 0x0b, 0x4b, 0x2a, 0xa4, 0x75, 0x97, 0x7a, 0xa1, 0xbf, 0x0e, - 0x1b, 0x4d, 0xe2, 0xc1, 0xb8, 0x1b, 0x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xa6, 0xa8, 0x83, 0x63, 0xbd, 0x3c, 0xfc, 0x07, 0x18, 0xc0, 0x13, 0xc5, 0x06, 0xf1, 0xf4, - 0x36, 0x5f, 0xd9, 0x86, 0x85, 0xfe, 0xce, 0xfb, 0x30, 0xff, 0x58, 0x1f, 0x4c, 0xd9, 0x19, 0x09, - 0x26, 0x12, 0x1d, 0xc2, 0x44, 0xdc, 0x93, 0x1f, 0xe4, 0x9f, 0xe3, 0x41, 0x65, 0x7d, 0x48, 0x50, - 0x50, 0x3d, 0x81, 0xc9, 0xa4, 0x29, 0xae, 0xe4, 0xc3, 0xe3, 0xa8, 0xb2, 0x31, 0x2c, 0x2a, 0xd8, - 0x9e, 0xc2, 0x54, 0xda, 0xe7, 0x56, 0x07, 0x64, 0x8f, 0xc3, 0xca, 0xc3, 0xa1, 0xe1, 0x94, 0x70, - 0xaf, 0x71, 0xf5, 0x4f, 0xb5, 0xf0, 0xcb, 0x75, 0xb5, 0x70, 0x75, 0x5d, 0x95, 0x5e, 0x5d, 0x57, - 0xa5, 0xbf, 0xaf, 0xab, 0xd2, 0x4f, 0x37, 0xd5, 0xc2, 0xab, 0x9b, 0x6a, 0xe1, 0x8f, 0x9b, 0x6a, - 0xe1, 0xab, 0x8d, 0x51, 0xe6, 0x45, 0x6b, 0x92, 0xcf, 0x99, 0xf7, 0xff, 0x0b, 0x00, 0x00, 0xff, - 0xff, 0xdc, 0x00, 0x52, 0xcc, 0x21, 0x0d, 0x00, 0x00, + // 1154 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4f, 0x4f, 0xe3, 0xc6, + 0x1b, 0x8e, 0x21, 0x04, 0xf2, 0x2e, 0x04, 0xf0, 0x46, 0xbf, 0x0d, 0x5e, 0x08, 0xf9, 0x19, 0xb6, + 0x42, 0x50, 0xec, 0x42, 0xd5, 0xf6, 0xd2, 0xcb, 0xc2, 0x92, 0x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+ 0xc6, 0xeb, 0x0f, 0xf2, 0x07, 0x50, 0xf0, 0x18, 0xae, 0x32, 0x51, 0x93, 0x36, 0xee, 0xed, 0x2e, + 0x69, 0xb7, 0x4c, 0x6a, 0x11, 0xd1, 0x5e, 0xfe, 0xea, 0xcf, 0xd5, 0x9c, 0xc1, 0xe1, 0xea, 0x12, + 0x3c, 0x18, 0xca, 0x64, 0x60, 0xea, 0x11, 0x97, 0x62, 0xf5, 0x7b, 0x89, 0xa9, 0xa8, 0x77, 0x5d, + 0xf3, 0xd8, 0xc7, 0x88, 0x76, 0xfd, 0xbe, 0x2c, 0x43, 0xfe, 0xcc, 0x27, 0x0e, 0x17, 0xc0, 0x7e, + 0xcb, 0xa7, 0x50, 0x40, 0x0e, 0xe9, 0xba, 0x41, 0x65, 0xa2, 0x36, 0xc9, 0x72, 0x73, 0x2f, 0x61, + 0x4d, 0x34, 0x5e, 0x13, 0x6d, 0x9f, 0xd8, 0xee, 0xde, 0x56, 0x98, 0xfb, 0x97, 0xbf, 0x56, 0xd7, + 0x2c, 0x3b, 0x38, 0xef, 0xb6, 0xb4, 0x36, 0x71, 0xf4, 0x8e, 0xed, 0x62, 0xbd, 0xd3, 0x72, 0xb6, + 0xa9, 0xf9, 0x42, 0x0f, 0xfa, 0x1e, 0xa6, 0x0c, 0x4b, 0x0d, 0xce, 0xca, 0x25, 0x26, 0x65, 0x08, + 0x89, 0x3f, 0x49, 0x2c, 0xf6, 0x99, 0x1d, 0x9c, 0x9b, 0x3e, 0xfa, 0xa6, 0xee, 0x13, 0x47, 0x48, + 0x55, 0x60, 0x86, 0x78, 0xd8, 0x47, 0x01, 0xf1, 0xb9, 0x5c, 0xb1, 0x96, 0x4b, 0x30, 0x11, 0x10, + 0x56, 0xaa, 0xa2, 0x31, 0x11, 0x90, 0x84, 0x85, 0xc9, 0x37, 0x62, 0xe1, 0xff, 0xb0, 0x9a, 0x21, + 0x53, 0x58, 0xf9, 0x0e, 0x16, 0xc4, 0x41, 0x34, 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c, 0x8e, 0xbd, 0xfb, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x74, 0x92, 0x57, 0x48, 0x06, 0x0e, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1124,6 +1210,9 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { + // UpdateParams defines an operation for updating the x/foundation module + // parameters. + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // FundTreasury defines a method to fund the treasury. FundTreasury(ctx context.Context, in *MsgFundTreasury, opts ...grpc.CallOption) (*MsgFundTreasuryResponse, error) // WithdrawFromTreasury defines a method to withdraw coins from the treasury. @@ -1161,6 +1250,15 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { return &msgClient{cc} } +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/UpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *msgClient) FundTreasury(ctx context.Context, in *MsgFundTreasury, opts ...grpc.CallOption) (*MsgFundTreasuryResponse, error) { out := new(MsgFundTreasuryResponse) err := c.cc.Invoke(ctx, "/lbm.foundation.v1.Msg/FundTreasury", in, out, opts...) @@ -1271,6 +1369,9 @@ func (c *msgClient) GovMint(ctx context.Context, in *MsgGovMint, opts ...grpc.Ca // MsgServer is the server API for Msg service. type MsgServer interface { + // UpdateParams defines an operation for updating the x/foundation module + // parameters. + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // FundTreasury defines a method to fund the treasury. FundTreasury(context.Context, *MsgFundTreasury) (*MsgFundTreasuryResponse, error) // WithdrawFromTreasury defines a method to withdraw coins from the treasury. @@ -1304,6 +1405,9 @@ type MsgServer interface { type UnimplementedMsgServer struct { } +func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} func (*UnimplementedMsgServer) FundTreasury(ctx context.Context, req *MsgFundTreasury) (*MsgFundTreasuryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FundTreasury not implemented") } @@ -1345,6 +1449,24 @@ func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) } +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lbm.foundation.v1.Msg/UpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + func _Msg_FundTreasury_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgFundTreasury) if err := dec(in); err != nil { @@ -1565,6 +1687,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "lbm.foundation.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, { MethodName: "FundTreasury", Handler: _Msg_FundTreasury_Handler, @@ -1618,6 +1744,69 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Metadata: "lbm/foundation/v1/tx.proto", } +func (m *MsgUpdateParams) 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 *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + 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.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParamsResponse) 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 *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func (m *MsgFundTreasury) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2438,6 +2627,30 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *MsgUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Params.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func (m *MsgFundTreasury) Size() (n int) { if m == nil { return 0 @@ -2793,6 +3006,171 @@ func sovTx(x uint64) (n int) { func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (m *MsgUpdateParams) 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: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", 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.Authority = 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 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 *MsgUpdateParamsResponse) 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: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: 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 *MsgFundTreasury) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 From cc5e02fb2c79a999481db48d666eee074b496d9a Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 18 Oct 2022 05:09:52 +0000 Subject: [PATCH 3/8] Remove old logics and add stubs --- simapp/app.go | 1 - x/foundation/client/cli/tx.go | 42 +------------------- x/foundation/client/testutil/tx.go | 7 ++++ x/foundation/codec.go | 6 +-- x/foundation/keeper/handler.go | 19 --------- x/foundation/keeper/msg_server.go | 5 +++ x/foundation/keeper/proposal.go | 16 -------- x/foundation/msgs.go | 12 ++++++ x/foundation/proposal.go | 42 -------------------- x/foundation/proposal_test.go | 62 ------------------------------ 10 files changed, 27 insertions(+), 185 deletions(-) delete mode 100644 x/foundation/keeper/handler.go delete mode 100644 x/foundation/proposal.go delete mode 100644 x/foundation/proposal_test.go diff --git a/simapp/app.go b/simapp/app.go index 0ec2228aa7..264fc16ec6 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -471,7 +471,6 @@ func NewSimApp( AddRoute(distrtypes.RouterKey, distr.NewCommunityPoolSpendProposalHandler(app.DistrKeeper)). AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper)). AddRoute(ibcclienttypes.RouterKey, ibcclient.NewClientProposalHandler(app.IBCKeeper.ClientKeeper)). - AddRoute(foundation.RouterKey, foundationkeeper.NewProposalHandler(app.FoundationKeeper)). AddRoute(wasm.RouterKey, wasmkeeper.NewWasmProposalHandler(app.WasmKeeper, wasmlbmtypes.EnableAllProposals)) govKeeper := govkeeper.NewKeeper( diff --git a/x/foundation/client/cli/tx.go b/x/foundation/client/cli/tx.go index 6b700a6874..135bf378ce 100644 --- a/x/foundation/client/cli/tx.go +++ b/x/foundation/client/cli/tx.go @@ -13,8 +13,6 @@ import ( "github.com/line/lbm-sdk/codec" sdk "github.com/line/lbm-sdk/types" "github.com/line/lbm-sdk/x/foundation" - "github.com/line/lbm-sdk/x/gov/client/cli" - govtypes "github.com/line/lbm-sdk/x/gov/types" ) // Proposal flags @@ -151,7 +149,6 @@ func NewTxCmd() *cobra.Command { func NewProposalCmdUpdateFoundationParams() *cobra.Command { cmd := &cobra.Command{ Use: "update-foundation-params [params-json]", - Args: cobra.ExactArgs(1), Short: "Submit an update foundation params proposal", Long: `Submit an update foundation params proposal. @@ -170,51 +167,16 @@ Example of the content of params-json: if err != nil { return err } - from := clientCtx.GetFromAddress() - - depositStr, err := cmd.Flags().GetString(cli.FlagDeposit) - if err != nil { - return err - } - - deposit, err := sdk.ParseCoinsNormalized(depositStr) - if err != nil { - return err - } - - title, err := cmd.Flags().GetString(cli.FlagTitle) - if err != nil { - return err - } - description, err := cmd.Flags().GetString(cli.FlagDescription) + _, err = parseParams(clientCtx.Codec, args[0]) if err != nil { return err } - params, err := parseParams(clientCtx.Codec, args[0]) - if err != nil { - return err - } - - content := foundation.NewUpdateFoundationParamsProposal(title, description, *params) - msg, err := govtypes.NewMsgSubmitProposal(content, deposit, from) - if err != nil { - return err - } - - if err := msg.ValidateBasic(); err != nil { - return err - } - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + panic("not implemented") }, } - cmd.Flags().String(cli.FlagTitle, "", "title of proposal") - cmd.Flags().String(cli.FlagDescription, "", "description of proposal") - cmd.Flags().String(cli.FlagDeposit, "", "deposit of proposal") - return cmd } diff --git a/x/foundation/client/testutil/tx.go b/x/foundation/client/testutil/tx.go index 2d23ee405f..de337a1ad1 100644 --- a/x/foundation/client/testutil/tx.go +++ b/x/foundation/client/testutil/tx.go @@ -53,7 +53,14 @@ func (s *IntegrationTestSuite) TestNewProposalCmdUpdateFoundationParams() { cmd := cli.NewProposalCmdUpdateFoundationParams() flags.AddTxFlagsToCmd(cmd) + // stub + s.Require().Panics(func() { + clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, tc.args) + }) + return + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, tc.args) + if tc.expectErr { s.Require().Error(err) } else { diff --git a/x/foundation/codec.go b/x/foundation/codec.go index c3c79328ea..167f58fbc2 100644 --- a/x/foundation/codec.go +++ b/x/foundation/codec.go @@ -4,15 +4,11 @@ import ( "github.com/line/lbm-sdk/codec/types" sdk "github.com/line/lbm-sdk/types" "github.com/line/lbm-sdk/types/msgservice" - govtypes "github.com/line/lbm-sdk/x/gov/types" ) func RegisterInterfaces(registry types.InterfaceRegistry) { - registry.RegisterImplementations((*govtypes.Content)(nil), - &UpdateFoundationParamsProposal{}, - ) - registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgUpdateParams{}, &MsgFundTreasury{}, &MsgWithdrawFromTreasury{}, &MsgUpdateMembers{}, diff --git a/x/foundation/keeper/handler.go b/x/foundation/keeper/handler.go deleted file mode 100644 index a5a14ad290..0000000000 --- a/x/foundation/keeper/handler.go +++ /dev/null @@ -1,19 +0,0 @@ -package keeper - -import ( - sdk "github.com/line/lbm-sdk/types" - sdkerrors "github.com/line/lbm-sdk/types/errors" - "github.com/line/lbm-sdk/x/foundation" - govtypes "github.com/line/lbm-sdk/x/gov/types" -) - -func NewProposalHandler(k Keeper) govtypes.Handler { - return func(ctx sdk.Context, content govtypes.Content) error { - switch c := content.(type) { - case *foundation.UpdateFoundationParamsProposal: - return k.handleUpdateFoundationParamsProposal(ctx, c) - default: - return sdkerrors.ErrUnknownRequest.Wrapf("unrecognized foundation proposal content type: %T", c) - } - } -} diff --git a/x/foundation/keeper/msg_server.go b/x/foundation/keeper/msg_server.go index 5cdd3e8eac..9d27429d63 100644 --- a/x/foundation/keeper/msg_server.go +++ b/x/foundation/keeper/msg_server.go @@ -24,6 +24,11 @@ func NewMsgServer(keeper Keeper) foundation.MsgServer { var _ foundation.MsgServer = msgServer{} +func (s msgServer) UpdateParams(c context.Context, req *foundation.MsgUpdateParams) (*foundation.MsgUpdateParamsResponse, error) { + stub := foundation.UnimplementedMsgServer{} + return stub.UpdateParams(c, req) +} + // FundTreasury defines a method to fund the treasury. func (s msgServer) FundTreasury(c context.Context, req *foundation.MsgFundTreasury) (*foundation.MsgFundTreasuryResponse, error) { ctx := sdk.UnwrapSDKContext(c) diff --git a/x/foundation/keeper/proposal.go b/x/foundation/keeper/proposal.go index b44e87eeb4..608937e9ce 100644 --- a/x/foundation/keeper/proposal.go +++ b/x/foundation/keeper/proposal.go @@ -8,22 +8,6 @@ import ( "github.com/line/lbm-sdk/x/foundation" ) -// handleUpdateFoundationParamsProposal is a handler for update foundation params proposal -func (k Keeper) handleUpdateFoundationParamsProposal(ctx sdk.Context, p *foundation.UpdateFoundationParamsProposal) error { - params := p.Params - if err := k.UpdateParams(ctx, params); err != nil { - return err - } - - if err := ctx.EventManager().EmitTypedEvent(&foundation.EventUpdateFoundationParams{ - Params: params, - }); err != nil { - panic(err) - } - - return nil -} - func (k Keeper) newProposalID(ctx sdk.Context) uint64 { id := k.getPreviousProposalID(ctx) + 1 k.setPreviousProposalID(ctx, id) diff --git a/x/foundation/msgs.go b/x/foundation/msgs.go index 58a984cf68..7ef92b5683 100644 --- a/x/foundation/msgs.go +++ b/x/foundation/msgs.go @@ -8,6 +8,18 @@ import ( sdkerrors "github.com/line/lbm-sdk/types/errors" ) +var _ sdk.Msg = (*MsgUpdateParams)(nil) + +// ValidateBasic implements Msg. +func (m MsgUpdateParams) ValidateBasic() error { + panic("not implemented") +} + +// GetSigners implements Msg. +func (m MsgUpdateParams) GetSigners() []sdk.AccAddress { + panic("not implemented") +} + var _ sdk.Msg = (*MsgFundTreasury)(nil) // ValidateBasic implements Msg. diff --git a/x/foundation/proposal.go b/x/foundation/proposal.go deleted file mode 100644 index da5d7641e3..0000000000 --- a/x/foundation/proposal.go +++ /dev/null @@ -1,42 +0,0 @@ -package foundation - -import ( - yaml "gopkg.in/yaml.v2" - - govtypes "github.com/line/lbm-sdk/x/gov/types" -) - -const ( - // ProposalTypeUpdateFoundationParams updates parameters of foundation. - ProposalTypeUpdateFoundationParams = "UpdateFoundationParams" -) - -func NewUpdateFoundationParamsProposal(title, description string, params Params) govtypes.Content { - return &UpdateFoundationParamsProposal{title, description, params} -} - -// Assert proposals implements govtypes.Content at compile-time -var _ govtypes.Content = (*UpdateFoundationParamsProposal)(nil) - -func init() { - govtypes.RegisterProposalType(ProposalTypeUpdateFoundationParams) -} - -func (p *UpdateFoundationParamsProposal) GetTitle() string { return p.Title } -func (p *UpdateFoundationParamsProposal) GetDescription() string { return p.Description } -func (p *UpdateFoundationParamsProposal) ProposalRoute() string { return RouterKey } -func (p *UpdateFoundationParamsProposal) ProposalType() string { - return ProposalTypeUpdateFoundationParams -} -func (p *UpdateFoundationParamsProposal) ValidateBasic() error { - if err := p.Params.ValidateBasic(); err != nil { - return err - } - - return nil -} - -func (p UpdateFoundationParamsProposal) String() string { - out, _ := yaml.Marshal(p) - return string(out) -} diff --git a/x/foundation/proposal_test.go b/x/foundation/proposal_test.go deleted file mode 100644 index ce202a6ea8..0000000000 --- a/x/foundation/proposal_test.go +++ /dev/null @@ -1,62 +0,0 @@ -package foundation_test - -import ( - "fmt" - "testing" - - "github.com/stretchr/testify/require" - - sdk "github.com/line/lbm-sdk/types" - "github.com/line/lbm-sdk/x/foundation" -) - -func TestUpdateFoundationParamsProposal(t *testing.T) { - title := "hello" - description := "world" - - testCases := map[string]struct { - params foundation.Params - valid bool - stringified string - }{ - "valid proposal": { - params: foundation.Params{ - FoundationTax: sdk.OneDec(), - CensoredMsgTypeUrls: []string{ - sdk.MsgTypeURL((*foundation.MsgWithdrawFromTreasury)(nil)), - }, - }, - valid: true, - stringified: fmt.Sprintf(`title: %s -description: %s -params: - foundationtax: "%s" - censoredmsgtypeurls: - - %s -`, title, description, sdk.OneDec(), sdk.MsgTypeURL((*foundation.MsgWithdrawFromTreasury)(nil))), - }, - "invalid tax rate": { - params: foundation.Params{ - FoundationTax: sdk.NewDec(2), - }, - }, - } - - for name, tc := range testCases { - proposal := foundation.NewUpdateFoundationParamsProposal(title, description, tc.params) - - require.Equal(t, title, proposal.GetTitle(), name) - require.Equal(t, description, proposal.GetDescription(), name) - require.Equal(t, foundation.RouterKey, proposal.ProposalRoute(), name) - require.Equal(t, foundation.ProposalTypeUpdateFoundationParams, proposal.ProposalType(), name) - - err := proposal.ValidateBasic() - if !tc.valid { - require.Error(t, err, name) - continue - } - require.NoError(t, err, name) - - require.Equal(t, tc.stringified, proposal.String(), name) - } -} From 55ebad6ddff16fd841f4e665addb8c2f3366db21 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 18 Oct 2022 05:22:29 +0000 Subject: [PATCH 4/8] Implement MsgUpdateParams --- x/foundation/msgs.go | 13 +++++++++-- x/foundation/msgs_test.go | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/x/foundation/msgs.go b/x/foundation/msgs.go index 7ef92b5683..99e802fda7 100644 --- a/x/foundation/msgs.go +++ b/x/foundation/msgs.go @@ -12,12 +12,21 @@ var _ sdk.Msg = (*MsgUpdateParams)(nil) // ValidateBasic implements Msg. func (m MsgUpdateParams) ValidateBasic() error { - panic("not implemented") + if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil { + return sdkerrors.ErrInvalidAddress.Wrapf("invalid authority address: %s", m.Authority) + } + + if err := m.Params.ValidateBasic(); err != nil { + return err + } + + return nil } // GetSigners implements Msg. func (m MsgUpdateParams) GetSigners() []sdk.AccAddress { - panic("not implemented") + signer := sdk.MustAccAddressFromBech32(m.Authority) + return []sdk.AccAddress{signer} } var _ sdk.Msg = (*MsgFundTreasury)(nil) diff --git a/x/foundation/msgs_test.go b/x/foundation/msgs_test.go index f7544ab5e4..26efbe3e6a 100644 --- a/x/foundation/msgs_test.go +++ b/x/foundation/msgs_test.go @@ -12,6 +12,52 @@ import ( "github.com/line/lbm-sdk/x/foundation" ) +func TestMsgUpdateParams(t *testing.T) { + addrs := make([]sdk.AccAddress, 1) + for i := range addrs { + addrs[i] = sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()) + } + + testCases := map[string]struct { + authority sdk.AccAddress + params foundation.Params + valid bool + }{ + "valid msg": { + authority: addrs[0], + params: foundation.Params{ + FoundationTax: sdk.ZeroDec(), + }, + valid: true, + }, + "invalid authority": { + params: foundation.Params{ + FoundationTax: sdk.ZeroDec(), + }, + }, + "invalid params": { + authority: addrs[0], + params: foundation.Params{}, + }, + } + + for name, tc := range testCases { + msg := foundation.MsgUpdateParams{ + Authority: tc.authority.String(), + Params: tc.params, + } + + err := msg.ValidateBasic() + if !tc.valid { + require.Error(t, err, name) + continue + } + require.NoError(t, err, name) + + require.Equal(t, []sdk.AccAddress{tc.authority}, msg.GetSigners(), name) + } +} + func TestMsgFundTreasury(t *testing.T) { addrs := make([]sdk.AccAddress, 1) for i := range addrs { From 3151b3314f6555db4ef09646e70617728f6028dc Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 18 Oct 2022 05:35:16 +0000 Subject: [PATCH 5/8] Implement UpdateParams --- x/foundation/keeper/msg_server.go | 19 +++++++++-- x/foundation/keeper/msg_server_test.go | 45 ++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/x/foundation/keeper/msg_server.go b/x/foundation/keeper/msg_server.go index 9d27429d63..3a73a489d2 100644 --- a/x/foundation/keeper/msg_server.go +++ b/x/foundation/keeper/msg_server.go @@ -25,8 +25,23 @@ func NewMsgServer(keeper Keeper) foundation.MsgServer { var _ foundation.MsgServer = msgServer{} func (s msgServer) UpdateParams(c context.Context, req *foundation.MsgUpdateParams) (*foundation.MsgUpdateParamsResponse, error) { - stub := foundation.UnimplementedMsgServer{} - return stub.UpdateParams(c, req) + ctx := sdk.UnwrapSDKContext(c) + + if err := s.keeper.validateOperator(ctx, req.Authority); err != nil { + return nil, err + } + + if err := s.keeper.UpdateParams(ctx, req.Params); err != nil { + return nil, err + } + + if err := ctx.EventManager().EmitTypedEvent(&foundation.EventUpdateFoundationParams{ + Params: req.Params, + }); err != nil { + panic(err) + } + + return &foundation.MsgUpdateParamsResponse{}, nil } // FundTreasury defines a method to fund the treasury. diff --git a/x/foundation/keeper/msg_server_test.go b/x/foundation/keeper/msg_server_test.go index eafae5c9cb..4b828ef6eb 100644 --- a/x/foundation/keeper/msg_server_test.go +++ b/x/foundation/keeper/msg_server_test.go @@ -9,6 +9,51 @@ import ( "github.com/line/lbm-sdk/x/stakingplus" ) +func (s *KeeperTestSuite) TestMsgUpdateParams() { + testCases := map[string]struct { + authority sdk.AccAddress + params foundation.Params + valid bool + }{ + "valid request": { + authority: s.operator, + params: foundation.DefaultParams(), + valid: true, + }, + "invalid authority": { + authority: s.stranger, + params: foundation.DefaultParams(), + }, + "enabling feature": { + authority: s.operator, + params: foundation.Params{ + FoundationTax: sdk.ZeroDec(), + CensoredMsgTypeUrls: []string{ + sdk.MsgTypeURL((*testdata.TestMsg)(nil)), + }, + }, + }, + } + + for name, tc := range testCases { + s.Run(name, func() { + ctx, _ := s.ctx.CacheContext() + + req := &foundation.MsgUpdateParams{ + Authority: tc.authority.String(), + Params: tc.params, + } + res, err := s.msgServer.UpdateParams(sdk.WrapSDKContext(ctx), req) + if !tc.valid { + s.Require().Error(err) + return + } + s.Require().NoError(err) + s.Require().NotNil(res) + }) + } +} + func (s *KeeperTestSuite) TestMsgFundTreasury() { testCases := map[string]struct { amount sdk.Int From 151d0ea71f718b8cf8c6bcfaf79393b5e99bd075 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 18 Oct 2022 06:03:19 +0000 Subject: [PATCH 6/8] Implement cli --- simapp/app.go | 2 - x/foundation/client/cli/tx.go | 28 +++++++--- x/foundation/client/proposal_handler.go | 9 ---- x/foundation/client/testutil/tx.go | 71 ++++++++++--------------- 4 files changed, 49 insertions(+), 61 deletions(-) delete mode 100644 x/foundation/client/proposal_handler.go diff --git a/simapp/app.go b/simapp/app.go index 264fc16ec6..a5af2c3722 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -69,7 +69,6 @@ import ( feegrantkeeper "github.com/line/lbm-sdk/x/feegrant/keeper" feegrantmodule "github.com/line/lbm-sdk/x/feegrant/module" "github.com/line/lbm-sdk/x/foundation" - foundationclient "github.com/line/lbm-sdk/x/foundation/client" foundationkeeper "github.com/line/lbm-sdk/x/foundation/keeper" foundationmodule "github.com/line/lbm-sdk/x/foundation/module" "github.com/line/lbm-sdk/x/genutil" @@ -150,7 +149,6 @@ var ( gov.NewAppModuleBasic( append( wasmclient.ProposalHandlers, - foundationclient.UpdateFoundationParamsProposalHandler, paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, diff --git a/x/foundation/client/cli/tx.go b/x/foundation/client/cli/tx.go index 135bf378ce..e412d74410 100644 --- a/x/foundation/client/cli/tx.go +++ b/x/foundation/client/cli/tx.go @@ -128,6 +128,7 @@ func NewTxCmd() *cobra.Command { } txCmd.AddCommand( + NewTxCmdUpdateParams(), NewTxCmdFundTreasury(), NewTxCmdWithdrawFromTreasury(), NewTxCmdUpdateMembers(), @@ -145,12 +146,12 @@ func NewTxCmd() *cobra.Command { return txCmd } -// NewProposalCmdUpdateFoundationParams implements the command to submit an update-foundation-params proposal -func NewProposalCmdUpdateFoundationParams() *cobra.Command { +func NewTxCmdUpdateParams() *cobra.Command { cmd := &cobra.Command{ - Use: "update-foundation-params [params-json]", - Short: "Submit an update foundation params proposal", - Long: `Submit an update foundation params proposal. + Use: "update-params [authority] [params-json]", + Args: cobra.ExactArgs(2), + Short: "Update params", + Long: `Update x/foundation parameters. Example of the content of params-json: @@ -163,20 +164,33 @@ Example of the content of params-json: } `, RunE: func(cmd *cobra.Command, args []string) error { + authority := args[0] + if err := cmd.Flags().Set(flags.FlagFrom, authority); err != nil { + return err + } + clientCtx, err := client.GetClientTxContext(cmd) if err != nil { return err } - _, err = parseParams(clientCtx.Codec, args[0]) + params, err := parseParams(clientCtx.Codec, args[1]) if err != nil { return err } - panic("not implemented") + msg := foundation.MsgUpdateParams{ + Authority: authority, + Params: *params, + } + if err := msg.ValidateBasic(); err != nil { + return err + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) }, } + flags.AddTxFlagsToCmd(cmd) return cmd } diff --git a/x/foundation/client/proposal_handler.go b/x/foundation/client/proposal_handler.go deleted file mode 100644 index c44bdc1a35..0000000000 --- a/x/foundation/client/proposal_handler.go +++ /dev/null @@ -1,9 +0,0 @@ -package client - -import ( - "github.com/line/lbm-sdk/x/foundation/client/cli" - "github.com/line/lbm-sdk/x/foundation/client/rest" - govclient "github.com/line/lbm-sdk/x/gov/client" -) - -var UpdateFoundationParamsProposalHandler = govclient.NewProposalHandler(cli.NewProposalCmdUpdateFoundationParams, rest.DummyRESTHandler) diff --git a/x/foundation/client/testutil/tx.go b/x/foundation/client/testutil/tx.go index de337a1ad1..9f85692e80 100644 --- a/x/foundation/client/testutil/tx.go +++ b/x/foundation/client/testutil/tx.go @@ -4,8 +4,6 @@ import ( "fmt" "time" - "github.com/gogo/protobuf/proto" - "github.com/line/lbm-sdk/client/flags" clitestutil "github.com/line/lbm-sdk/testutil/cli" "github.com/line/lbm-sdk/testutil/testdata" @@ -15,61 +13,48 @@ import ( "github.com/line/lbm-sdk/x/foundation/client/cli" ) -func (s *IntegrationTestSuite) TestNewProposalCmdUpdateFoundationParams() { +func (s *IntegrationTestSuite) TestNewTxCmdUpdateParams() { val := s.network.Validators[0] - commonFlags := []string{ - fmt.Sprintf("--%s=%s", flags.FlagFrom, val.Address), - fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), - fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock), - fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(10)))), + commonArgs := []string{ + fmt.Sprintf("--%s", flags.FlagGenerateOnly), } - testCases := []struct { - name string - args []string - expectErr bool - expectedCode uint32 - respType proto.Message + testCases := map[string]struct { + args []string + valid bool }{ - { - "wrong number of args", - commonFlags, - true, 0, nil, + "valid transaction": { + []string{ + s.operator.String(), + fmt.Sprintf(`{"foundation_tax": "%s"}`, sdk.ZeroDec()), + }, + true, }, - { - "valid transaction", - append([]string{ + "wrong number of args": { + []string{ + s.operator.String(), fmt.Sprintf(`{"foundation_tax": "%s"}`, sdk.ZeroDec()), - }, commonFlags...), - false, 0, &sdk.TxResponse{}, + "extra", + }, + false, }, } - for _, tc := range testCases { + for name, tc := range testCases { tc := tc - s.Run(tc.name, func() { - cmd := cli.NewProposalCmdUpdateFoundationParams() - flags.AddTxFlagsToCmd(cmd) - - // stub - s.Require().Panics(func() { - clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, tc.args) - }) - return - - out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, tc.args) - - if tc.expectErr { + s.Run(name, func() { + cmd := cli.NewTxCmdUpdateParams() + out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, commonArgs...)) + if !tc.valid { s.Require().Error(err) - } else { - s.Require().NoError(err) - s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), tc.respType), out) - - txResp := tc.respType.(*sdk.TxResponse) - s.Require().Equal(tc.expectedCode, txResp.Code) + return } + s.Require().NoError(err) + + var res txtypes.Tx + s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &res), out) }) } } From 1f296efcfd07fc2ad4ff1d3a52e549dab76cbf07 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 18 Oct 2022 06:06:30 +0000 Subject: [PATCH 7/8] Update name of the corresponding event --- docs/core/proto-docs.md | 18 ++-- proto/lbm/foundation/v1/event.proto | 4 +- x/foundation/event.pb.go | 144 ++++++++++++++-------------- x/foundation/keeper/msg_server.go | 2 +- 4 files changed, 84 insertions(+), 84 deletions(-) diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index c0513f70d8..e14036c0dc 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -1129,8 +1129,8 @@ - [EventRevoke](#lbm.foundation.v1.EventRevoke) - [EventSubmitProposal](#lbm.foundation.v1.EventSubmitProposal) - [EventUpdateDecisionPolicy](#lbm.foundation.v1.EventUpdateDecisionPolicy) - - [EventUpdateFoundationParams](#lbm.foundation.v1.EventUpdateFoundationParams) - [EventUpdateMembers](#lbm.foundation.v1.EventUpdateMembers) + - [EventUpdateParams](#lbm.foundation.v1.EventUpdateParams) - [EventVote](#lbm.foundation.v1.EventVote) - [EventWithdrawFromTreasury](#lbm.foundation.v1.EventWithdrawFromTreasury) - [EventWithdrawProposal](#lbm.foundation.v1.EventWithdrawProposal) @@ -17194,30 +17194,30 @@ EventUpdateDecisionPolicy is an event emitted when the decision policy have been - + -### EventUpdateFoundationParams -EventUpdateFoundationParams is emitted after updating foundation parameters. +### EventUpdateMembers +EventUpdateMembers is an event emitted when the members have been updated. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| `params` | [Params](#lbm.foundation.v1.Params) | | | +| `member_updates` | [MemberRequest](#lbm.foundation.v1.MemberRequest) | repeated | | - + -### EventUpdateMembers -EventUpdateMembers is an event emitted when the members have been updated. +### EventUpdateParams +EventUpdateParams is emitted after updating foundation parameters. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| `member_updates` | [MemberRequest](#lbm.foundation.v1.MemberRequest) | repeated | | +| `params` | [Params](#lbm.foundation.v1.Params) | | | diff --git a/proto/lbm/foundation/v1/event.proto b/proto/lbm/foundation/v1/event.proto index 146d3df1e2..48355ba3f1 100644 --- a/proto/lbm/foundation/v1/event.proto +++ b/proto/lbm/foundation/v1/event.proto @@ -11,8 +11,8 @@ import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; import "lbm/foundation/v1/foundation.proto"; -// EventUpdateFoundationParams is emitted after updating foundation parameters. -message EventUpdateFoundationParams { +// EventUpdateParams is emitted after updating foundation parameters. +message EventUpdateParams { Params params = 1 [(gogoproto.nullable) = false]; } diff --git a/x/foundation/event.pb.go b/x/foundation/event.pb.go index 339ed3fb52..40abeb1423 100644 --- a/x/foundation/event.pb.go +++ b/x/foundation/event.pb.go @@ -27,23 +27,23 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// EventUpdateFoundationParams is emitted after updating foundation parameters. -type EventUpdateFoundationParams struct { +// EventUpdateParams is emitted after updating foundation parameters. +type EventUpdateParams struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` } -func (m *EventUpdateFoundationParams) Reset() { *m = EventUpdateFoundationParams{} } -func (m *EventUpdateFoundationParams) String() string { return proto.CompactTextString(m) } -func (*EventUpdateFoundationParams) ProtoMessage() {} -func (*EventUpdateFoundationParams) Descriptor() ([]byte, []int) { +func (m *EventUpdateParams) Reset() { *m = EventUpdateParams{} } +func (m *EventUpdateParams) String() string { return proto.CompactTextString(m) } +func (*EventUpdateParams) ProtoMessage() {} +func (*EventUpdateParams) Descriptor() ([]byte, []int) { return fileDescriptor_2b66c645bbb34fbc, []int{0} } -func (m *EventUpdateFoundationParams) XXX_Unmarshal(b []byte) error { +func (m *EventUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EventUpdateFoundationParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EventUpdateFoundationParams.Marshal(b, m, deterministic) + return xxx_messageInfo_EventUpdateParams.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -53,19 +53,19 @@ func (m *EventUpdateFoundationParams) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *EventUpdateFoundationParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventUpdateFoundationParams.Merge(m, src) +func (m *EventUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventUpdateParams.Merge(m, src) } -func (m *EventUpdateFoundationParams) XXX_Size() int { +func (m *EventUpdateParams) XXX_Size() int { return m.Size() } -func (m *EventUpdateFoundationParams) XXX_DiscardUnknown() { - xxx_messageInfo_EventUpdateFoundationParams.DiscardUnknown(m) +func (m *EventUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_EventUpdateParams.DiscardUnknown(m) } -var xxx_messageInfo_EventUpdateFoundationParams proto.InternalMessageInfo +var xxx_messageInfo_EventUpdateParams proto.InternalMessageInfo -func (m *EventUpdateFoundationParams) GetParams() Params { +func (m *EventUpdateParams) GetParams() Params { if m != nil { return m.Params } @@ -680,7 +680,7 @@ func (m *EventGovMint) GetAmount() github_com_line_lbm_sdk_types.Coins { } func init() { - proto.RegisterType((*EventUpdateFoundationParams)(nil), "lbm.foundation.v1.EventUpdateFoundationParams") + proto.RegisterType((*EventUpdateParams)(nil), "lbm.foundation.v1.EventUpdateParams") proto.RegisterType((*EventFundTreasury)(nil), "lbm.foundation.v1.EventFundTreasury") proto.RegisterType((*EventWithdrawFromTreasury)(nil), "lbm.foundation.v1.EventWithdrawFromTreasury") proto.RegisterType((*EventUpdateMembers)(nil), "lbm.foundation.v1.EventUpdateMembers") @@ -699,55 +699,55 @@ func init() { proto.RegisterFile("lbm/foundation/v1/event.proto", fileDescriptor var fileDescriptor_2b66c645bbb34fbc = []byte{ // 734 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x41, 0x4f, 0xd4, 0x4e, - 0x14, 0xdf, 0xc2, 0x66, 0xff, 0x7f, 0x06, 0x58, 0xc3, 0x88, 0x71, 0x81, 0xd8, 0xdd, 0x54, 0x0f, - 0x18, 0xb3, 0xad, 0x8b, 0x07, 0x8d, 0x89, 0x24, 0xac, 0x82, 0x31, 0x91, 0x04, 0x2b, 0x60, 0xe2, - 0xc1, 0xcd, 0xb4, 0x1d, 0x4a, 0x43, 0xa7, 0x53, 0x67, 0xa6, 0x95, 0xe5, 0xea, 0x41, 0x13, 0x2f, - 0x7e, 0x04, 0xcf, 0x5e, 0xbc, 0xf0, 0x21, 0x08, 0x27, 0x8e, 0x9e, 0xd4, 0xc0, 0x17, 0x31, 0x33, - 0x9d, 0x5d, 0x76, 0x03, 0x68, 0x62, 0xc2, 0xed, 0xbd, 0x79, 0xbf, 0xf7, 0x7b, 0xbf, 0xf7, 0xe6, - 0x3d, 0x70, 0x23, 0xf6,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x58, 0x0f, 0xc0, 0xb5, 0xa1, 0xdf, 0xeb, 0xf3, 0xd6, 0xc1, 0x78, 0x0f, 0xd4, 0x89, 0x02, 0x45, - 0x5d, 0x76, 0x41, 0xef, 0xe9, 0x59, 0x60, 0x2d, 0x82, 0x31, 0x95, 0xb9, 0x49, 0x05, 0x86, 0x2d, - 0x50, 0xce, 0xa9, 0xc0, 0x5a, 0xc1, 0xf5, 0x73, 0x14, 0x48, 0x98, 0xae, 0xae, 0xa0, 0xd6, 0x7b, - 0x43, 0x13, 0x2c, 0xef, 0x62, 0xff, 0xaf, 0xe5, 0xe0, 0x12, 0xa8, 0x30, 0xcc, 0xb3, 0x58, 0x6e, - 0x8e, 0x31, 0x5f, 0x5d, 0xb8, 0xfd, 0x87, 0x2e, 0x25, 0x63, 0x26, 0x28, 0x73, 0x55, 0x82, 0xab, - 0x13, 0xe5, 0x79, 0xc4, 0x34, 0xe4, 0xb5, 0xd1, 0xe2, 0x3c, 0xa4, 0x6d, 0xdd, 0x05, 0xd3, 0x4a, - 0xc4, 0x73, 0x8c, 0xf2, 0x81, 0xfb, 0x84, 0x35, 0xf0, 0x1f, 0x0a, 0x02, 0x86, 0x39, 0xd7, 0xdb, - 0xdb, 0x73, 0xad, 0x6f, 0x06, 0x00, 0x2a, 0xe5, 0x29, 0x43, 0x89, 0x90, 0xc0, 0x50, 0x1a, 0x98, - 0xf5, 0x80, 0xda, 0x3d, 0x8d, 0x60, 0x25, 0xb9, 0x1f, 0xc1, 0x90, 0x80, 0x49, 0x94, 0x89, 0x6d, - 0xca, 0xa2, 0x3d, 0x55, 0x4d, 0x29, 0xba, 0x68, 0x43, 0x5a, 0x87, 0xfb, 0xcd, 0xe6, 0x45, 0x37, - 0xb0, 0xeb, 0x48, 0xa2, 0x3d, 0x7b, 0x69, 0x90, 0xce, 0x1d, 0x66, 0xb7, 0x7c, 0x30, 0xae, 0x04, - 0xbb, 0x38, 0xa7, 0x3b, 0xf8, 0x9f, 0x14, 0x37, 0xc0, 0x04, 0xe1, 0x61, 0x47, 0x9e, 0x5c, 0x27, - 0x63, 0xb1, 0x1e, 0x21, 0x20, 0x3c, 0x5c, 0xef, 0xa6, 0x78, 0x83, 0xc5, 0x56, 0x02, 0x26, 0x8a, - 0xa9, 0xd0, 0x7c, 0x35, 0x4a, 0xc4, 0xc0, 0xa5, 0x1b, 0x97, 0x71, 0xe9, 0xed, 0xc5, 0x83, 0x63, - 0xd3, 0x38, 0x3a, 0x36, 0x8d, 0x5f, 0xc7, 0xa6, 0xf1, 0xf9, 0xc4, 0x2c, 0x1d, 0x9d, 0x98, 0xa5, - 0xef, 0x27, 0x66, 0xe9, 0xf5, 0xad, 0x8b, 0x87, 0x75, 0xba, 0x2e, 0x5e, 0x45, 0x0d, 0xf9, 0xde, - 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x63, 0x0c, 0x20, 0xbd, 0x64, 0x06, 0x00, 0x00, -} - -func (m *EventUpdateFoundationParams) Marshal() (dAtA []byte, err error) { + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x41, 0x4f, 0x14, 0x4b, + 0x10, 0xde, 0x81, 0xcd, 0xbe, 0x47, 0x03, 0xfb, 0xc2, 0x3c, 0x5e, 0xde, 0xc2, 0xcb, 0xdb, 0xdd, + 0x8c, 0x1e, 0x30, 0x66, 0x67, 0x5c, 0x3c, 0x68, 0x4c, 0x24, 0x61, 0x15, 0x8c, 0x09, 0x24, 0x38, + 0x82, 0x26, 0x1e, 0xdc, 0xf4, 0xcc, 0x34, 0xc3, 0x84, 0xe9, 0xa9, 0xb1, 0xbb, 0x67, 0x64, 0xb9, + 0x7a, 0xd0, 0xc4, 0x8b, 0x3f, 0xc1, 0xb3, 0x17, 0x2f, 0xfc, 0x08, 0xc2, 0x89, 0xa3, 0x27, 0x35, + 0xf0, 0x47, 0x4c, 0xf7, 0xf4, 0x2e, 0xbb, 0x01, 0x34, 0x31, 0xe1, 0x56, 0xd5, 0xf5, 0xd5, 0x57, + 0x5f, 0x55, 0x57, 0xa1, 0xff, 0x63, 0x8f, 0x3a, 0xdb, 0x90, 0x25, 0x01, 0x16, 0x11, 0x24, 0x4e, + 0xde, 0x76, 0x48, 0x4e, 0x12, 0x61, 0xa7, 0x0c, 0x04, 0x98, 0x33, 0xb1, 0x47, 0xed, 0xb3, 0xb0, + 0x9d, 0xb7, 0xe7, 0x67, 0x43, 0x08, 0x41, 0x45, 0x1d, 0x69, 0x15, 0xc0, 0xf9, 0xb9, 0x10, 0x20, + 0x8c, 0x89, 0xa3, 0x3c, 0x2f, 0xdb, 0x76, 0x70, 0xd2, 0xeb, 0x87, 0x7c, 0xe0, 0x14, 0x78, 0xb7, + 0xc8, 0x29, 0x1c, 0x1d, 0xaa, 0x17, 0x9e, 0xe3, 0x61, 0x4e, 0x9c, 0xbc, 0xed, 0x11, 0x81, 0xdb, + 0x8e, 0x0f, 0x51, 0xa2, 0xe3, 0xd6, 0x79, 0x75, 0x43, 0x62, 0x14, 0xc6, 0x5a, 0x43, 0x33, 0x2b, + 0x52, 0xf1, 0x56, 0x1a, 0x60, 0x41, 0x36, 0x30, 0xc3, 0x94, 0x9b, 0x77, 0x50, 0x25, 0x55, 0x56, + 0xcd, 0x68, 0x1a, 0x0b, 0x93, 0x8b, 0x73, 0xf6, 0xb9, 0x46, 0xec, 0x02, 0xda, 0x29, 0x1f, 0x7e, + 0x6d, 0x94, 0x5c, 0x0d, 0xb7, 0xde, 0x1a, 0x9a, 0x6e, 0x35, 0x4b, 0x82, 0x4d, 0x46, 0x30, 0xcf, + 0x58, 0xcf, 0x34, 0x51, 0x79, 0x9b, 0x01, 0x55, 0x64, 0x13, 0xae, 0xb2, 0xcd, 0x97, 0xa8, 0x82, + 0x29, 0x64, 0x89, 0xa8, 0x8d, 0x35, 0xc7, 0x55, 0x09, 0xdd, 0x9a, 0x6c, 0xc6, 0xd6, 0xcd, 0xd8, + 0x0f, 0x20, 0x4a, 0x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69, 0x88, 0x6e, 0x68, 0x90, 0x62, 0xdd, + 0x45, 0xff, 0x8c, 0xfc, 0xde, 0x80, 0xb7, 0x81, 0x26, 0xfb, 0xa0, 0x6e, 0x14, 0x28, 0xea, 0xb2, + 0x8b, 0xfa, 0x4f, 0x8f, 0x03, 0x6b, 0x09, 0x4d, 0xa8, 0xcc, 0x67, 0x20, 0x88, 0xd9, 0x46, 0xe5, + 0x1c, 0x04, 0xd1, 0x0a, 0xfe, 0xbd, 0x40, 0x81, 0x84, 0xe9, 0xea, 0x0a, 0x6a, 0xbd, 0x31, 0x34, + 0xc1, 0xca, 0x1e, 0xf1, 0x7f, 0x59, 0xce, 0x5c, 0x46, 0x15, 0x46, 0x78, 0x16, 0xcb, 0xcd, 0x31, + 0x16, 0xaa, 0x8b, 0x37, 0x7e, 0xd2, 0xa5, 0x64, 0xcc, 0x04, 0x30, 0x57, 0x25, 0xb8, 0x3a, 0x51, + 0x9e, 0x47, 0x0c, 0x21, 0xaf, 0x8d, 0x17, 0xe7, 0x21, 0x6d, 0xeb, 0x16, 0x9a, 0x55, 0x22, 0xd6, + 0x08, 0xce, 0xc9, 0xea, 0x80, 0xcd, 0xac, 0xa1, 0x3f, 0x70, 0x10, 0x30, 0xc2, 0xb9, 0xde, 0xde, + 0xbe, 0x6b, 0x7d, 0x36, 0x10, 0x52, 0x29, 0x8f, 0x18, 0x4e, 0x84, 0x04, 0x86, 0xd2, 0x20, 0xac, + 0x0f, 0xd4, 0xee, 0x59, 0x84, 0x28, 0xc9, 0x83, 0x08, 0x31, 0x29, 0x9a, 0xc6, 0x99, 0xd8, 0x01, + 0x16, 0xed, 0xab, 0x6a, 0x4a, 0xd1, 0x65, 0x1b, 0xd2, 0x3e, 0x3a, 0x68, 0xb5, 0x2e, 0xbb, 0x81, + 0x3d, 0x47, 0x12, 0xed, 0xdb, 0xcb, 0xc3, 0x74, 0xee, 0x28, 0xbb, 0xe5, 0xa3, 0x49, 0x25, 0xd8, + 0x25, 0x39, 0xec, 0x92, 0xdf, 0x52, 0xdc, 0x44, 0x53, 0x94, 0x87, 0x5d, 0x79, 0x72, 0xdd, 0x8c, + 0xc5, 0x7a, 0x84, 0x88, 0xf2, 0x70, 0xb3, 0x97, 0x92, 0x2d, 0x16, 0x5b, 0x09, 0x9a, 0x2a, 0xa6, + 0x02, 0xf9, 0x7a, 0x94, 0x88, 0xa1, 0x4b, 0x37, 0xae, 0xe2, 0xd2, 0x3b, 0x4b, 0x87, 0x27, 0x75, + 0xe3, 0xf8, 0xa4, 0x6e, 0x7c, 0x3f, 0xa9, 0x1b, 0x1f, 0x4e, 0xeb, 0xa5, 0xe3, 0xd3, 0x7a, 0xe9, + 0xcb, 0x69, 0xbd, 0xf4, 0xe2, 0xfa, 0xe5, 0xc3, 0x3a, 0x5b, 0x17, 0xaf, 0xa2, 0x86, 0x7c, 0xfb, + 0x47, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x7a, 0x7f, 0x44, 0x5a, 0x06, 0x00, 0x00, +} + +func (m *EventUpdateParams) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -757,12 +757,12 @@ func (m *EventUpdateFoundationParams) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventUpdateFoundationParams) MarshalTo(dAtA []byte) (int, error) { +func (m *EventUpdateParams) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventUpdateFoundationParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1245,7 +1245,7 @@ func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *EventUpdateFoundationParams) Size() (n int) { +func (m *EventUpdateParams) Size() (n int) { if m == nil { return 0 } @@ -1451,7 +1451,7 @@ func sovEvent(x uint64) (n int) { func sozEvent(x uint64) (n int) { return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *EventUpdateFoundationParams) Unmarshal(dAtA []byte) error { +func (m *EventUpdateParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1474,10 +1474,10 @@ func (m *EventUpdateFoundationParams) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventUpdateFoundationParams: wiretype end group for non-group") + return fmt.Errorf("proto: EventUpdateParams: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventUpdateFoundationParams: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/foundation/keeper/msg_server.go b/x/foundation/keeper/msg_server.go index 3a73a489d2..0f8eb9f513 100644 --- a/x/foundation/keeper/msg_server.go +++ b/x/foundation/keeper/msg_server.go @@ -35,7 +35,7 @@ func (s msgServer) UpdateParams(c context.Context, req *foundation.MsgUpdatePara return nil, err } - if err := ctx.EventManager().EmitTypedEvent(&foundation.EventUpdateFoundationParams{ + if err := ctx.EventManager().EmitTypedEvent(&foundation.EventUpdateParams{ Params: req.Params, }); err != nil { panic(err) From 331ea0fff17b8133003d128b4bc43b192d89e4e8 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 18 Oct 2022 06:14:03 +0000 Subject: [PATCH 8/8] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fb171aea7..80cb86aae6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -83,6 +83,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (x/modules) [\#722](https://github.com/line/lbm-sdk/pull/722) Check error for `RegisterQueryHandlerClient` in all modules `RegisterGRPCGatewayRoutes` * (x/bank) [\#716](https://github.com/line/lbm-sdk/pull/716) remove useless DenomMetadata key function * (x/foundation) [\#704](https://github.com/line/lbm-sdk/pull/704) update x/foundation params +* (x/foundation) [\#729](https://github.com/line/lbm-sdk/pull/729) add UpdateParams to x/foundation ### Bug Fixes * (x/wasm) [\#453](https://github.com/line/lbm-sdk/pull/453) modify wasm grpc query api path