mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-04-04 15:55:23 +00:00
Compare commits
3 Commits
0830a6d458
...
f73e9d8cf0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f73e9d8cf0 | ||
![]() |
db1d6463ec | ||
![]() |
1a039a0d13 |
@ -121,7 +121,7 @@ func (s *WrappedA0giBaseTestSuite) TestMinterSupply() {
|
|||||||
s.Run(tc.name, func() {
|
s.Run(tc.name, func() {
|
||||||
s.SetupTest()
|
s.SetupTest()
|
||||||
|
|
||||||
s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{
|
s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{
|
||||||
Authority: govAccAddr,
|
Authority: govAccAddr,
|
||||||
Minter: s.signerOne.Addr.Bytes(),
|
Minter: s.signerOne.Addr.Bytes(),
|
||||||
Cap: big.NewInt(8e18).Bytes(),
|
Cap: big.NewInt(8e18).Bytes(),
|
||||||
|
@ -87,7 +87,7 @@ func (s *WrappedA0giBaseTestSuite) TestMint() {
|
|||||||
|
|
||||||
fmt.Println(s.signerOne.Addr)
|
fmt.Println(s.signerOne.Addr)
|
||||||
s.wa0gibasekeeper.SetWA0GIAddress(s.Ctx, s.signerOne.Addr)
|
s.wa0gibasekeeper.SetWA0GIAddress(s.Ctx, s.signerOne.Addr)
|
||||||
s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{
|
s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{
|
||||||
Authority: govAccAddr,
|
Authority: govAccAddr,
|
||||||
Minter: s.signerOne.Addr.Bytes(),
|
Minter: s.signerOne.Addr.Bytes(),
|
||||||
Cap: big.NewInt(8e18).Bytes(),
|
Cap: big.NewInt(8e18).Bytes(),
|
||||||
@ -189,7 +189,7 @@ func (s *WrappedA0giBaseTestSuite) TestBurn() {
|
|||||||
|
|
||||||
fmt.Println(s.signerOne.Addr)
|
fmt.Println(s.signerOne.Addr)
|
||||||
s.wa0gibasekeeper.SetWA0GIAddress(s.Ctx, s.signerOne.Addr)
|
s.wa0gibasekeeper.SetWA0GIAddress(s.Ctx, s.signerOne.Addr)
|
||||||
s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{
|
s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{
|
||||||
Authority: govAccAddr,
|
Authority: govAccAddr,
|
||||||
Minter: s.signerOne.Addr.Bytes(),
|
Minter: s.signerOne.Addr.Bytes(),
|
||||||
Cap: big.NewInt(8e18).Bytes(),
|
Cap: big.NewInt(8e18).Bytes(),
|
||||||
|
@ -11,7 +11,7 @@ option (gogoproto.goproto_getters_all) = false;
|
|||||||
// Msg defines the wrapped a0gi base Msg service
|
// Msg defines the wrapped a0gi base Msg service
|
||||||
service Msg {
|
service Msg {
|
||||||
rpc SetWA0GI(MsgSetWA0GI) returns (MsgSetWA0GIResponse);
|
rpc SetWA0GI(MsgSetWA0GI) returns (MsgSetWA0GIResponse);
|
||||||
rpc SetMinterCap(MsgSetMintCap) returns (MsgSetMintCapResponse);
|
rpc SetMinterCap(MsgSetMinterCap) returns (MsgSetMinterCapResponse);
|
||||||
rpc Mint(MsgMint) returns (MsgMintResponse);
|
rpc Mint(MsgMint) returns (MsgMintResponse);
|
||||||
rpc Burn(MsgBurn) returns (MsgBurnResponse);
|
rpc Burn(MsgBurn) returns (MsgBurnResponse);
|
||||||
}
|
}
|
||||||
@ -23,13 +23,13 @@ message MsgSetWA0GI {
|
|||||||
|
|
||||||
message MsgSetWA0GIResponse {}
|
message MsgSetWA0GIResponse {}
|
||||||
|
|
||||||
message MsgSetMintCap {
|
message MsgSetMinterCap {
|
||||||
string authority = 1;
|
string authority = 1;
|
||||||
bytes minter = 2;
|
bytes minter = 2;
|
||||||
bytes cap = 3; // big endian
|
bytes cap = 3; // big endian
|
||||||
}
|
}
|
||||||
|
|
||||||
message MsgSetMintCapResponse {}
|
message MsgSetMinterCapResponse {}
|
||||||
|
|
||||||
message MsgMint {
|
message MsgMint {
|
||||||
bytes minter = 1;
|
bytes minter = 1;
|
||||||
|
@ -17,8 +17,8 @@ message BaseAccount {
|
|||||||
option (gogoproto.equal) = false;
|
option (gogoproto.equal) = false;
|
||||||
option (cosmos_proto.implements_interface) = "cosmos.auth.v1beta1.AccountI";
|
option (cosmos_proto.implements_interface) = "cosmos.auth.v1beta1.AccountI";
|
||||||
|
|
||||||
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
google.protobuf.Any pub_key = 2 [(gogoproto.jsontag) = "public_key,omitempty", (amino.field_name) = "public_key"];
|
google.protobuf.Any pub_key = 2 [(gogoproto.jsontag) = "public_key,omitempty", (amino.field_name) = "public_key"];
|
||||||
uint64 account_number = 3;
|
uint64 account_number = 3;
|
||||||
uint64 sequence = 4;
|
uint64 sequence = 4;
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ message Metadata {
|
|||||||
string description = 1;
|
string description = 1;
|
||||||
// denom_units represents the list of DenomUnit's for a given coin
|
// denom_units represents the list of DenomUnit's for a given coin
|
||||||
repeated DenomUnit denom_units = 2;
|
repeated DenomUnit denom_units = 2;
|
||||||
// base represents the base denom (should be the DenomUnit with exponent = 0).
|
// base represents the evm denom (should be the DenomUnit with exponent = 0).
|
||||||
string base = 3;
|
string base = 3;
|
||||||
// display indicates the suggested denom that should be
|
// display indicates the suggested denom that should be
|
||||||
// displayed in clients.
|
// displayed in clients.
|
||||||
|
@ -20,15 +20,15 @@ message StoreKVPair {
|
|||||||
// BlockMetadata contains all the abci event data of a block
|
// BlockMetadata contains all the abci event data of a block
|
||||||
// the file streamer dump them into files together with the state changes.
|
// the file streamer dump them into files together with the state changes.
|
||||||
message BlockMetadata {
|
message BlockMetadata {
|
||||||
// DeliverTx encapulate deliver tx request and response.
|
// DeliverTx encapulate deliver tx request and response.
|
||||||
message DeliverTx {
|
message DeliverTx {
|
||||||
tendermint.abci.RequestDeliverTx request = 1;
|
tendermint.abci.RequestDeliverTx request = 1;
|
||||||
tendermint.abci.ResponseDeliverTx response = 2;
|
tendermint.abci.ResponseDeliverTx response = 2;
|
||||||
}
|
}
|
||||||
tendermint.abci.RequestBeginBlock request_begin_block = 1;
|
tendermint.abci.RequestBeginBlock request_begin_block = 1;
|
||||||
tendermint.abci.ResponseBeginBlock response_begin_block = 2;
|
tendermint.abci.ResponseBeginBlock response_begin_block = 2;
|
||||||
repeated DeliverTx deliver_txs = 3;
|
repeated DeliverTx deliver_txs = 3;
|
||||||
tendermint.abci.RequestEndBlock request_end_block = 4;
|
tendermint.abci.RequestEndBlock request_end_block = 4;
|
||||||
tendermint.abci.ResponseEndBlock response_end_block = 5;
|
tendermint.abci.ResponseEndBlock response_end_block = 5;
|
||||||
tendermint.abci.ResponseCommit response_commit = 6;
|
tendermint.abci.ResponseCommit response_commit = 6;
|
||||||
}
|
}
|
||||||
|
@ -162,8 +162,8 @@ message MsgCommunityPoolSpend {
|
|||||||
option (amino.name) = "cosmos-sdk/distr/MsgCommunityPoolSpend";
|
option (amino.name) = "cosmos-sdk/distr/MsgCommunityPoolSpend";
|
||||||
|
|
||||||
// authority is the address that controls the module (defaults to x/gov unless overwritten).
|
// authority is the address that controls the module (defaults to x/gov unless overwritten).
|
||||||
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
string recipient = 2;
|
string recipient = 2;
|
||||||
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
||||||
(gogoproto.nullable) = false,
|
(gogoproto.nullable) = false,
|
||||||
(amino.dont_omitempty) = true,
|
(amino.dont_omitempty) = true,
|
||||||
|
@ -18,14 +18,14 @@ message Equivocation {
|
|||||||
option (gogoproto.equal) = false;
|
option (gogoproto.equal) = false;
|
||||||
|
|
||||||
// height is the equivocation height.
|
// height is the equivocation height.
|
||||||
int64 height = 1;
|
int64 height = 1;
|
||||||
|
|
||||||
// time is the equivocation time.
|
// time is the equivocation time.
|
||||||
google.protobuf.Timestamp time = 2
|
google.protobuf.Timestamp time = 2
|
||||||
[(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true];
|
[(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdtime) = true];
|
||||||
|
|
||||||
// power is the equivocation validator power.
|
// power is the equivocation validator power.
|
||||||
int64 power = 3;
|
int64 power = 3;
|
||||||
|
|
||||||
// consensus_address is the equivocation validator consensus address.
|
// consensus_address is the equivocation validator consensus address.
|
||||||
string consensus_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string consensus_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
@ -29,7 +29,7 @@ message MsgSubmitEvidence {
|
|||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// submitter is the signer account address of evidence.
|
// submitter is the signer account address of evidence.
|
||||||
string submitter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string submitter = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// evidence defines the evidence of misbehavior.
|
// evidence defines the evidence of misbehavior.
|
||||||
google.protobuf.Any evidence = 2 [(cosmos_proto.accepts_interface) = "cosmos.evidence.v1beta1.Evidence"];
|
google.protobuf.Any evidence = 2 [(cosmos_proto.accepts_interface) = "cosmos.evidence.v1beta1.Evidence"];
|
||||||
|
30
third_party/proto/cosmos/gov/v1/gov.proto
vendored
30
third_party/proto/cosmos/gov/v1/gov.proto
vendored
@ -32,17 +32,17 @@ message WeightedVoteOption {
|
|||||||
VoteOption option = 1;
|
VoteOption option = 1;
|
||||||
|
|
||||||
// weight is the vote weight associated with the vote option.
|
// weight is the vote weight associated with the vote option.
|
||||||
string weight = 2 [(cosmos_proto.scalar) = "cosmos.Dec"];
|
string weight = 2 [(cosmos_proto.scalar) = "cosmos.Dec"];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deposit defines an amount deposited by an account address to an active
|
// Deposit defines an amount deposited by an account address to an active
|
||||||
// proposal.
|
// proposal.
|
||||||
message Deposit {
|
message Deposit {
|
||||||
// proposal_id defines the unique id of the proposal.
|
// proposal_id defines the unique id of the proposal.
|
||||||
uint64 proposal_id = 1;
|
uint64 proposal_id = 1;
|
||||||
|
|
||||||
// depositor defines the deposit addresses from the proposals.
|
// depositor defines the deposit addresses from the proposals.
|
||||||
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// amount to be deposited by depositor.
|
// amount to be deposited by depositor.
|
||||||
repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||||
@ -51,33 +51,33 @@ message Deposit {
|
|||||||
// Proposal defines the core field members of a governance proposal.
|
// Proposal defines the core field members of a governance proposal.
|
||||||
message Proposal {
|
message Proposal {
|
||||||
// id defines the unique id of the proposal.
|
// id defines the unique id of the proposal.
|
||||||
uint64 id = 1;
|
uint64 id = 1;
|
||||||
|
|
||||||
// messages are the arbitrary messages to be executed if the proposal passes.
|
// messages are the arbitrary messages to be executed if the proposal passes.
|
||||||
repeated google.protobuf.Any messages = 2;
|
repeated google.protobuf.Any messages = 2;
|
||||||
|
|
||||||
// status defines the proposal status.
|
// status defines the proposal status.
|
||||||
ProposalStatus status = 3;
|
ProposalStatus status = 3;
|
||||||
|
|
||||||
// final_tally_result is the final tally result of the proposal. When
|
// final_tally_result is the final tally result of the proposal. When
|
||||||
// querying a proposal via gRPC, this field is not populated until the
|
// querying a proposal via gRPC, this field is not populated until the
|
||||||
// proposal's voting period has ended.
|
// proposal's voting period has ended.
|
||||||
TallyResult final_tally_result = 4;
|
TallyResult final_tally_result = 4;
|
||||||
|
|
||||||
// submit_time is the time of proposal submission.
|
// submit_time is the time of proposal submission.
|
||||||
google.protobuf.Timestamp submit_time = 5 [(gogoproto.stdtime) = true];
|
google.protobuf.Timestamp submit_time = 5 [(gogoproto.stdtime) = true];
|
||||||
|
|
||||||
// deposit_end_time is the end time for deposition.
|
// deposit_end_time is the end time for deposition.
|
||||||
google.protobuf.Timestamp deposit_end_time = 6 [(gogoproto.stdtime) = true];
|
google.protobuf.Timestamp deposit_end_time = 6 [(gogoproto.stdtime) = true];
|
||||||
|
|
||||||
// total_deposit is the total deposit on the proposal.
|
// total_deposit is the total deposit on the proposal.
|
||||||
repeated cosmos.base.v1beta1.Coin total_deposit = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
repeated cosmos.base.v1beta1.Coin total_deposit = 7 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// voting_start_time is the starting time to vote on a proposal.
|
// voting_start_time is the starting time to vote on a proposal.
|
||||||
google.protobuf.Timestamp voting_start_time = 8 [(gogoproto.stdtime) = true];
|
google.protobuf.Timestamp voting_start_time = 8 [(gogoproto.stdtime) = true];
|
||||||
|
|
||||||
// voting_end_time is the end time of voting on a proposal.
|
// voting_end_time is the end time of voting on a proposal.
|
||||||
google.protobuf.Timestamp voting_end_time = 9 [(gogoproto.stdtime) = true];
|
google.protobuf.Timestamp voting_end_time = 9 [(gogoproto.stdtime) = true];
|
||||||
|
|
||||||
// metadata is any arbitrary metadata attached to the proposal.
|
// metadata is any arbitrary metadata attached to the proposal.
|
||||||
string metadata = 10;
|
string metadata = 10;
|
||||||
@ -122,11 +122,11 @@ enum ProposalStatus {
|
|||||||
// TallyResult defines a standard tally for a governance proposal.
|
// TallyResult defines a standard tally for a governance proposal.
|
||||||
message TallyResult {
|
message TallyResult {
|
||||||
// yes_count is the number of yes votes on a proposal.
|
// yes_count is the number of yes votes on a proposal.
|
||||||
string yes_count = 1 [(cosmos_proto.scalar) = "cosmos.Int"];
|
string yes_count = 1 [(cosmos_proto.scalar) = "cosmos.Int"];
|
||||||
// abstain_count is the number of abstain votes on a proposal.
|
// abstain_count is the number of abstain votes on a proposal.
|
||||||
string abstain_count = 2 [(cosmos_proto.scalar) = "cosmos.Int"];
|
string abstain_count = 2 [(cosmos_proto.scalar) = "cosmos.Int"];
|
||||||
// no_count is the number of no votes on a proposal.
|
// no_count is the number of no votes on a proposal.
|
||||||
string no_count = 3 [(cosmos_proto.scalar) = "cosmos.Int"];
|
string no_count = 3 [(cosmos_proto.scalar) = "cosmos.Int"];
|
||||||
// no_with_veto_count is the number of no with veto votes on a proposal.
|
// no_with_veto_count is the number of no with veto votes on a proposal.
|
||||||
string no_with_veto_count = 4 [(cosmos_proto.scalar) = "cosmos.Int"];
|
string no_with_veto_count = 4 [(cosmos_proto.scalar) = "cosmos.Int"];
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ message Vote {
|
|||||||
uint64 proposal_id = 1;
|
uint64 proposal_id = 1;
|
||||||
|
|
||||||
// voter is the voter address of the proposal.
|
// voter is the voter address of the proposal.
|
||||||
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
reserved 3;
|
reserved 3;
|
||||||
|
|
||||||
|
24
third_party/proto/cosmos/gov/v1/tx.proto
vendored
24
third_party/proto/cosmos/gov/v1/tx.proto
vendored
@ -46,13 +46,13 @@ message MsgSubmitProposal {
|
|||||||
option (amino.name) = "cosmos-sdk/v1/MsgSubmitProposal";
|
option (amino.name) = "cosmos-sdk/v1/MsgSubmitProposal";
|
||||||
|
|
||||||
// messages are the arbitrary messages to be executed if proposal passes.
|
// messages are the arbitrary messages to be executed if proposal passes.
|
||||||
repeated google.protobuf.Any messages = 1;
|
repeated google.protobuf.Any messages = 1;
|
||||||
|
|
||||||
// initial_deposit is the deposit value that must be paid at proposal submission.
|
// initial_deposit is the deposit value that must be paid at proposal submission.
|
||||||
repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// proposer is the account address of the proposer.
|
// proposer is the account address of the proposer.
|
||||||
string proposer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string proposer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// metadata is any arbitrary metadata attached to the proposal.
|
// metadata is any arbitrary metadata attached to the proposal.
|
||||||
string metadata = 4;
|
string metadata = 4;
|
||||||
@ -95,16 +95,16 @@ message MsgVote {
|
|||||||
option (amino.name) = "cosmos-sdk/v1/MsgVote";
|
option (amino.name) = "cosmos-sdk/v1/MsgVote";
|
||||||
|
|
||||||
// proposal_id defines the unique id of the proposal.
|
// proposal_id defines the unique id of the proposal.
|
||||||
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// voter is the voter address for the proposal.
|
// voter is the voter address for the proposal.
|
||||||
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// option defines the vote option.
|
// option defines the vote option.
|
||||||
VoteOption option = 3;
|
VoteOption option = 3;
|
||||||
|
|
||||||
// metadata is any arbitrary metadata attached to the Vote.
|
// metadata is any arbitrary metadata attached to the Vote.
|
||||||
string metadata = 4;
|
string metadata = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgVoteResponse defines the Msg/Vote response type.
|
// MsgVoteResponse defines the Msg/Vote response type.
|
||||||
@ -116,16 +116,16 @@ message MsgVoteWeighted {
|
|||||||
option (amino.name) = "cosmos-sdk/v1/MsgVoteWeighted";
|
option (amino.name) = "cosmos-sdk/v1/MsgVoteWeighted";
|
||||||
|
|
||||||
// proposal_id defines the unique id of the proposal.
|
// proposal_id defines the unique id of the proposal.
|
||||||
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// voter is the voter address for the proposal.
|
// voter is the voter address for the proposal.
|
||||||
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// options defines the weighted vote options.
|
// options defines the weighted vote options.
|
||||||
repeated WeightedVoteOption options = 3;
|
repeated WeightedVoteOption options = 3;
|
||||||
|
|
||||||
// metadata is any arbitrary metadata attached to the VoteWeighted.
|
// metadata is any arbitrary metadata attached to the VoteWeighted.
|
||||||
string metadata = 4;
|
string metadata = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
||||||
@ -137,10 +137,10 @@ message MsgDeposit {
|
|||||||
option (amino.name) = "cosmos-sdk/v1/MsgDeposit";
|
option (amino.name) = "cosmos-sdk/v1/MsgDeposit";
|
||||||
|
|
||||||
// proposal_id defines the unique id of the proposal.
|
// proposal_id defines the unique id of the proposal.
|
||||||
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// depositor defines the deposit addresses from the proposals.
|
// depositor defines the deposit addresses from the proposals.
|
||||||
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// amount to be deposited by depositor.
|
// amount to be deposited by depositor.
|
||||||
repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||||
|
18
third_party/proto/cosmos/gov/v1beta1/gov.proto
vendored
18
third_party/proto/cosmos/gov/v1beta1/gov.proto
vendored
@ -39,7 +39,7 @@ message WeightedVoteOption {
|
|||||||
VoteOption option = 1;
|
VoteOption option = 1;
|
||||||
|
|
||||||
// weight is the vote weight associated with the vote option.
|
// weight is the vote weight associated with the vote option.
|
||||||
string weight = 2 [
|
string weight = 2 [
|
||||||
(cosmos_proto.scalar) = "cosmos.Dec",
|
(cosmos_proto.scalar) = "cosmos.Dec",
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
||||||
(gogoproto.nullable) = false
|
(gogoproto.nullable) = false
|
||||||
@ -55,7 +55,7 @@ message TextProposal {
|
|||||||
option (gogoproto.equal) = true;
|
option (gogoproto.equal) = true;
|
||||||
|
|
||||||
// title of the proposal.
|
// title of the proposal.
|
||||||
string title = 1;
|
string title = 1;
|
||||||
|
|
||||||
// description associated with the proposal.
|
// description associated with the proposal.
|
||||||
string description = 2;
|
string description = 2;
|
||||||
@ -68,10 +68,10 @@ message Deposit {
|
|||||||
option (gogoproto.equal) = false;
|
option (gogoproto.equal) = false;
|
||||||
|
|
||||||
// proposal_id defines the unique id of the proposal.
|
// proposal_id defines the unique id of the proposal.
|
||||||
uint64 proposal_id = 1;
|
uint64 proposal_id = 1;
|
||||||
|
|
||||||
// depositor defines the deposit addresses from the proposals.
|
// depositor defines the deposit addresses from the proposals.
|
||||||
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// amount to be deposited by depositor.
|
// amount to be deposited by depositor.
|
||||||
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
||||||
@ -86,20 +86,20 @@ message Proposal {
|
|||||||
option (gogoproto.equal) = true;
|
option (gogoproto.equal) = true;
|
||||||
|
|
||||||
// proposal_id defines the unique id of the proposal.
|
// proposal_id defines the unique id of the proposal.
|
||||||
uint64 proposal_id = 1;
|
uint64 proposal_id = 1;
|
||||||
|
|
||||||
// content is the proposal's content.
|
// content is the proposal's content.
|
||||||
google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"];
|
google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "cosmos.gov.v1beta1.Content"];
|
||||||
// status defines the proposal status.
|
// status defines the proposal status.
|
||||||
ProposalStatus status = 3;
|
ProposalStatus status = 3;
|
||||||
|
|
||||||
// final_tally_result is the final tally result of the proposal. When
|
// final_tally_result is the final tally result of the proposal. When
|
||||||
// querying a proposal via gRPC, this field is not populated until the
|
// querying a proposal via gRPC, this field is not populated until the
|
||||||
// proposal's voting period has ended.
|
// proposal's voting period has ended.
|
||||||
TallyResult final_tally_result = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
TallyResult final_tally_result = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// submit_time is the time of proposal submission.
|
// submit_time is the time of proposal submission.
|
||||||
google.protobuf.Timestamp submit_time = 5
|
google.protobuf.Timestamp submit_time = 5
|
||||||
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// deposit_end_time is the end time for deposition.
|
// deposit_end_time is the end time for deposition.
|
||||||
@ -188,7 +188,7 @@ message Vote {
|
|||||||
uint64 proposal_id = 1 [(gogoproto.jsontag) = "id", (amino.field_name) = "id", (amino.dont_omitempty) = true];
|
uint64 proposal_id = 1 [(gogoproto.jsontag) = "id", (amino.field_name) = "id", (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// voter is the voter address of the proposal.
|
// voter is the voter address of the proposal.
|
||||||
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
// Deprecated: Prefer to use `options` instead. This field is set in queries
|
// Deprecated: Prefer to use `options` instead. This field is set in queries
|
||||||
// if and only if `len(options) == 1` and that option has weight 1. In all
|
// if and only if `len(options) == 1` and that option has weight 1. In all
|
||||||
// other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
|
// other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
|
||||||
|
16
third_party/proto/cosmos/gov/v1beta1/tx.proto
vendored
16
third_party/proto/cosmos/gov/v1beta1/tx.proto
vendored
@ -71,13 +71,13 @@ message MsgVote {
|
|||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// proposal_id defines the unique id of the proposal.
|
// proposal_id defines the unique id of the proposal.
|
||||||
uint64 proposal_id = 1;
|
uint64 proposal_id = 1;
|
||||||
|
|
||||||
// voter is the voter address for the proposal.
|
// voter is the voter address for the proposal.
|
||||||
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// option defines the vote option.
|
// option defines the vote option.
|
||||||
VoteOption option = 3;
|
VoteOption option = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgVoteResponse defines the Msg/Vote response type.
|
// MsgVoteResponse defines the Msg/Vote response type.
|
||||||
@ -96,13 +96,13 @@ message MsgVoteWeighted {
|
|||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// proposal_id defines the unique id of the proposal.
|
// proposal_id defines the unique id of the proposal.
|
||||||
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// voter is the voter address for the proposal.
|
// voter is the voter address for the proposal.
|
||||||
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// options defines the weighted vote options.
|
// options defines the weighted vote options.
|
||||||
repeated WeightedVoteOption options = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
repeated WeightedVoteOption options = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||||
}
|
}
|
||||||
|
|
||||||
// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
|
||||||
@ -121,10 +121,10 @@ message MsgDeposit {
|
|||||||
option (gogoproto.goproto_getters) = false;
|
option (gogoproto.goproto_getters) = false;
|
||||||
|
|
||||||
// proposal_id defines the unique id of the proposal.
|
// proposal_id defines the unique id of the proposal.
|
||||||
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (amino.dont_omitempty) = true];
|
||||||
|
|
||||||
// depositor defines the deposit addresses from the proposals.
|
// depositor defines the deposit addresses from the proposals.
|
||||||
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
|
|
||||||
// amount to be deposited by depositor.
|
// amount to be deposited by depositor.
|
||||||
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
||||||
|
27
third_party/proto/cosmos/mint/v1beta1/mint.proto
vendored
27
third_party/proto/cosmos/mint/v1beta1/mint.proto
vendored
@ -55,30 +55,5 @@ message Params {
|
|||||||
(gogoproto.nullable) = false
|
(gogoproto.nullable) = false
|
||||||
];
|
];
|
||||||
// expected blocks per year
|
// expected blocks per year
|
||||||
uint64 blocks_per_year = 6;
|
uint64 blocks_per_year = 6;
|
||||||
string max_staked_ratio = 7 [
|
|
||||||
(cosmos_proto.scalar) = "cosmos.Dec",
|
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
string apy_at_max_staked_ratio = 8 [
|
|
||||||
(cosmos_proto.scalar) = "cosmos.Dec",
|
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
string min_staked_ratio = 9 [
|
|
||||||
(cosmos_proto.scalar) = "cosmos.Dec",
|
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
string apy_at_min_staked_ratio = 10 [
|
|
||||||
(cosmos_proto.scalar) = "cosmos.Dec",
|
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
string decay_rate = 11 [
|
|
||||||
(cosmos_proto.scalar) = "cosmos.Dec",
|
|
||||||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
|
|
||||||
(gogoproto.nullable) = false
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
6
third_party/proto/cosmos/tx/v1beta1/tx.proto
vendored
6
third_party/proto/cosmos/tx/v1beta1/tx.proto
vendored
@ -234,18 +234,18 @@ message Tip {
|
|||||||
string tipper = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string tipper = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuxSignerData is the intermediary format that an auxiliary signer (e.g. a
|
// AuxSignerData is the intermediary format that an gas signer (e.g. a
|
||||||
// tipper) builds and sends to the fee payer (who will build and broadcast the
|
// tipper) builds and sends to the fee payer (who will build and broadcast the
|
||||||
// actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
|
// actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
|
||||||
// by the node if sent directly as-is.
|
// by the node if sent directly as-is.
|
||||||
//
|
//
|
||||||
// Since: cosmos-sdk 0.46
|
// Since: cosmos-sdk 0.46
|
||||||
message AuxSignerData {
|
message AuxSignerData {
|
||||||
// address is the bech32-encoded address of the auxiliary signer. If using
|
// address is the bech32-encoded address of the gas signer. If using
|
||||||
// AuxSignerData across different chains, the bech32 prefix of the target
|
// AuxSignerData across different chains, the bech32 prefix of the target
|
||||||
// chain (where the final transaction is broadcasted) should be used.
|
// chain (where the final transaction is broadcasted) should be used.
|
||||||
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||||
// sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer
|
// sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the gas signer
|
||||||
// signs. Note: we use the same sign doc even if we're signing with
|
// signs. Note: we use the same sign doc even if we're signing with
|
||||||
// LEGACY_AMINO_JSON.
|
// LEGACY_AMINO_JSON.
|
||||||
SignDocDirectAux sign_doc = 2;
|
SignDocDirectAux sign_doc = 2;
|
||||||
|
@ -56,13 +56,13 @@ message SoftwareUpgradeProposal {
|
|||||||
option (gogoproto.goproto_stringer) = false;
|
option (gogoproto.goproto_stringer) = false;
|
||||||
|
|
||||||
// title of the proposal
|
// title of the proposal
|
||||||
string title = 1;
|
string title = 1;
|
||||||
|
|
||||||
// description of the proposal
|
// description of the proposal
|
||||||
string description = 2;
|
string description = 2;
|
||||||
|
|
||||||
// plan of the proposal
|
// plan of the proposal
|
||||||
Plan plan = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
Plan plan = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||||
}
|
}
|
||||||
|
|
||||||
// CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
|
// CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
|
||||||
@ -77,7 +77,7 @@ message CancelSoftwareUpgradeProposal {
|
|||||||
option (gogoproto.goproto_stringer) = false;
|
option (gogoproto.goproto_stringer) = false;
|
||||||
|
|
||||||
// title of the proposal
|
// title of the proposal
|
||||||
string title = 1;
|
string title = 1;
|
||||||
|
|
||||||
// description of the proposal
|
// description of the proposal
|
||||||
string description = 2;
|
string description = 2;
|
||||||
|
@ -86,8 +86,8 @@ message MsgCreatePeriodicVestingAccount {
|
|||||||
|
|
||||||
option (gogoproto.equal) = false;
|
option (gogoproto.equal) = false;
|
||||||
|
|
||||||
string from_address = 1;
|
string from_address = 1;
|
||||||
string to_address = 2;
|
string to_address = 2;
|
||||||
// start of vesting as unix time (in seconds).
|
// start of vesting as unix time (in seconds).
|
||||||
int64 start_time = 3;
|
int64 start_time = 3;
|
||||||
repeated Period vesting_periods = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
repeated Period vesting_periods = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||||
|
@ -44,7 +44,7 @@ message ContinuousVestingAccount {
|
|||||||
|
|
||||||
BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true];
|
BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true];
|
||||||
// Vesting start time, as unix timestamp (in seconds).
|
// Vesting start time, as unix timestamp (in seconds).
|
||||||
int64 start_time = 2;
|
int64 start_time = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// DelayedVestingAccount implements the VestingAccount interface. It vests all
|
// DelayedVestingAccount implements the VestingAccount interface. It vests all
|
||||||
|
19
third_party/proto/ethermint/evm/v1/evm.proto
vendored
19
third_party/proto/ethermint/evm/v1/evm.proto
vendored
@ -18,12 +18,17 @@ message Params {
|
|||||||
repeated int64 extra_eips = 4 [(gogoproto.customname) = "ExtraEIPs", (gogoproto.moretags) = "yaml:\"extra_eips\""];
|
repeated int64 extra_eips = 4 [(gogoproto.customname) = "ExtraEIPs", (gogoproto.moretags) = "yaml:\"extra_eips\""];
|
||||||
// chain_config defines the EVM chain configuration parameters
|
// chain_config defines the EVM chain configuration parameters
|
||||||
ChainConfig chain_config = 5 [(gogoproto.moretags) = "yaml:\"chain_config\"", (gogoproto.nullable) = false];
|
ChainConfig chain_config = 5 [(gogoproto.moretags) = "yaml:\"chain_config\"", (gogoproto.nullable) = false];
|
||||||
// list of allowed eip712 msgs and their types
|
// eip712_allowed_msgs contains list of allowed eip712 msgs and their types
|
||||||
repeated EIP712AllowedMsg eip712_allowed_msgs = 6
|
repeated EIP712AllowedMsg eip712_allowed_msgs = 6
|
||||||
[(gogoproto.customname) = "EIP712AllowedMsgs", (gogoproto.nullable) = false];
|
[(gogoproto.customname) = "EIP712AllowedMsgs", (gogoproto.nullable) = false];
|
||||||
// allow_unprotected_txs defines if replay-protected (i.e non EIP155
|
// allow_unprotected_txs defines if replay-protected (i.e non EIP155
|
||||||
// signed) transactions can be executed on the state machine.
|
// signed) transactions can be executed on the state machine.
|
||||||
bool allow_unprotected_txs = 7;
|
bool allow_unprotected_txs = 7;
|
||||||
|
// enabled_precompiles contains list of hex-encoded evm addresses of enabled precompiled contracts.
|
||||||
|
// Precompile must be registered before it can be enabled.
|
||||||
|
// enabled_precompiles should be sorted in ascending order and unique.
|
||||||
|
// sorting and uniqueness are checked against bytes representation of addresses
|
||||||
|
repeated string enabled_precompiles = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values
|
// ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values
|
||||||
@ -246,20 +251,20 @@ message TraceConfig {
|
|||||||
|
|
||||||
// EIP712AllowedMsg stores an allowed legacy msg and its eip712 type.
|
// EIP712AllowedMsg stores an allowed legacy msg and its eip712 type.
|
||||||
message EIP712AllowedMsg {
|
message EIP712AllowedMsg {
|
||||||
// msg's proto type name. ie "/cosmos.bank.v1beta1.MsgSend"
|
// msg_type_url is a msg's proto type name. ie "/cosmos.bank.v1beta1.MsgSend"
|
||||||
string msg_type_url = 1;
|
string msg_type_url = 1;
|
||||||
|
|
||||||
// name of the eip712 value type. ie "MsgValueSend"
|
// msg_value_type_name is a name of the eip712 value type. ie "MsgValueSend"
|
||||||
string msg_value_type_name = 2;
|
string msg_value_type_name = 2;
|
||||||
|
|
||||||
// types of the msg value
|
// value_types is a list of msg value types
|
||||||
repeated EIP712MsgAttrType value_types = 3 [(gogoproto.nullable) = false];
|
repeated EIP712MsgAttrType value_types = 3 [(gogoproto.nullable) = false];
|
||||||
|
|
||||||
// nested types of the msg value
|
// nested_types is a list of msg value nested types
|
||||||
repeated EIP712NestedMsgType nested_types = 4 [(gogoproto.nullable) = false];
|
repeated EIP712NestedMsgType nested_types = 4 [(gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
|
|
||||||
// EIP712MsgType is the eip712 type of a single message.
|
// EIP712NestedMsgType is the eip712 type of a single message.
|
||||||
message EIP712NestedMsgType {
|
message EIP712NestedMsgType {
|
||||||
// name of the nested type. ie "Fee", "Coin"
|
// name of the nested type. ie "Fee", "Coin"
|
||||||
string name = 1;
|
string name = 1;
|
||||||
@ -270,6 +275,8 @@ message EIP712NestedMsgType {
|
|||||||
|
|
||||||
// EIP712MsgAttrType is the eip712 type of a single message attribute.
|
// EIP712MsgAttrType is the eip712 type of a single message attribute.
|
||||||
message EIP712MsgAttrType {
|
message EIP712MsgAttrType {
|
||||||
|
// name
|
||||||
string name = 1;
|
string name = 1;
|
||||||
|
// type
|
||||||
string type = 2;
|
string type = 2;
|
||||||
}
|
}
|
||||||
|
@ -6,13 +6,13 @@ option go_package = "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types";
|
|||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
|
|
||||||
// DenomTrace contains the base denomination for ICS20 fungible tokens and the
|
// DenomTrace contains the evm denomination for ICS20 fungible tokens and the
|
||||||
// source tracing information path.
|
// source tracing information path.
|
||||||
message DenomTrace {
|
message DenomTrace {
|
||||||
// path defines the chain of port/channel identifiers used for tracing the
|
// path defines the chain of port/channel identifiers used for tracing the
|
||||||
// source of the fungible token.
|
// source of the fungible token.
|
||||||
string path = 1;
|
string path = 1;
|
||||||
// base denomination of the relayed fungible token.
|
// evm denomination of the relayed fungible token.
|
||||||
string base_denom = 2;
|
string base_denom = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
68
third_party/proto/tendermint/abci/types.proto
vendored
68
third_party/proto/tendermint/abci/types.proto
vendored
@ -103,8 +103,8 @@ message RequestListSnapshots {}
|
|||||||
|
|
||||||
// offers a snapshot to the application
|
// offers a snapshot to the application
|
||||||
message RequestOfferSnapshot {
|
message RequestOfferSnapshot {
|
||||||
Snapshot snapshot = 1; // snapshot offered by peers
|
Snapshot snapshot = 1; // snapshot offered by peers
|
||||||
bytes app_hash = 2; // light client-verified app hash for snapshot height
|
bytes app_hash = 2; // light client-verified app hash for snapshot height
|
||||||
}
|
}
|
||||||
|
|
||||||
// loads a snapshot chunk
|
// loads a snapshot chunk
|
||||||
@ -205,8 +205,8 @@ message ResponseInitChain {
|
|||||||
message ResponseQuery {
|
message ResponseQuery {
|
||||||
uint32 code = 1;
|
uint32 code = 1;
|
||||||
// bytes data = 2; // use "value" instead.
|
// bytes data = 2; // use "value" instead.
|
||||||
string log = 3; // nondeterministic
|
string log = 3; // nondeterministic
|
||||||
string info = 4; // nondeterministic
|
string info = 4; // nondeterministic
|
||||||
int64 index = 5;
|
int64 index = 5;
|
||||||
bytes key = 6;
|
bytes key = 6;
|
||||||
bytes value = 7;
|
bytes value = 7;
|
||||||
@ -223,15 +223,15 @@ message ResponseBeginBlock {
|
|||||||
message ResponseCheckTx {
|
message ResponseCheckTx {
|
||||||
uint32 code = 1;
|
uint32 code = 1;
|
||||||
bytes data = 2;
|
bytes data = 2;
|
||||||
string log = 3; // nondeterministic
|
string log = 3; // nondeterministic
|
||||||
string info = 4; // nondeterministic
|
string info = 4; // nondeterministic
|
||||||
int64 gas_wanted = 5 [json_name = "gas_wanted"];
|
int64 gas_wanted = 5 [json_name = "gas_wanted"];
|
||||||
int64 gas_used = 6 [json_name = "gas_used"];
|
int64 gas_used = 6 [json_name = "gas_used"];
|
||||||
repeated Event events = 7
|
repeated Event events = 7
|
||||||
[(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"];
|
[(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"];
|
||||||
string codespace = 8;
|
string codespace = 8;
|
||||||
string sender = 9;
|
string sender = 9;
|
||||||
int64 priority = 10;
|
int64 priority = 10;
|
||||||
|
|
||||||
// mempool_error is set by CometBFT.
|
// mempool_error is set by CometBFT.
|
||||||
// ABCI applictions creating a ResponseCheckTX should not set mempool_error.
|
// ABCI applictions creating a ResponseCheckTX should not set mempool_error.
|
||||||
@ -241,8 +241,8 @@ message ResponseCheckTx {
|
|||||||
message ResponseDeliverTx {
|
message ResponseDeliverTx {
|
||||||
uint32 code = 1;
|
uint32 code = 1;
|
||||||
bytes data = 2;
|
bytes data = 2;
|
||||||
string log = 3; // nondeterministic
|
string log = 3; // nondeterministic
|
||||||
string info = 4; // nondeterministic
|
string info = 4; // nondeterministic
|
||||||
int64 gas_wanted = 5 [json_name = "gas_wanted"];
|
int64 gas_wanted = 5 [json_name = "gas_wanted"];
|
||||||
int64 gas_used = 6 [json_name = "gas_used"];
|
int64 gas_used = 6 [json_name = "gas_used"];
|
||||||
repeated Event events = 7 [
|
repeated Event events = 7 [
|
||||||
@ -273,12 +273,12 @@ message ResponseOfferSnapshot {
|
|||||||
Result result = 1;
|
Result result = 1;
|
||||||
|
|
||||||
enum Result {
|
enum Result {
|
||||||
UNKNOWN = 0; // Unknown result, abort all snapshot restoration
|
UNKNOWN = 0; // Unknown result, abort all snapshot restoration
|
||||||
ACCEPT = 1; // Snapshot accepted, apply chunks
|
ACCEPT = 1; // Snapshot accepted, apply chunks
|
||||||
ABORT = 2; // Abort all snapshot restoration
|
ABORT = 2; // Abort all snapshot restoration
|
||||||
REJECT = 3; // Reject this specific snapshot, try others
|
REJECT = 3; // Reject this specific snapshot, try others
|
||||||
REJECT_FORMAT = 4; // Reject all snapshots of this format, try others
|
REJECT_FORMAT = 4; // Reject all snapshots of this format, try others
|
||||||
REJECT_SENDER = 5; // Reject all snapshots from the sender(s), try others
|
REJECT_SENDER = 5; // Reject all snapshots from the sender(s), try others
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,16 +288,16 @@ message ResponseLoadSnapshotChunk {
|
|||||||
|
|
||||||
message ResponseApplySnapshotChunk {
|
message ResponseApplySnapshotChunk {
|
||||||
Result result = 1;
|
Result result = 1;
|
||||||
repeated uint32 refetch_chunks = 2; // Chunks to refetch and reapply
|
repeated uint32 refetch_chunks = 2; // Chunks to refetch and reapply
|
||||||
repeated string reject_senders = 3; // Chunk senders to reject and ban
|
repeated string reject_senders = 3; // Chunk senders to reject and ban
|
||||||
|
|
||||||
enum Result {
|
enum Result {
|
||||||
UNKNOWN = 0; // Unknown result, abort all snapshot restoration
|
UNKNOWN = 0; // Unknown result, abort all snapshot restoration
|
||||||
ACCEPT = 1; // Chunk successfully accepted
|
ACCEPT = 1; // Chunk successfully accepted
|
||||||
ABORT = 2; // Abort all snapshot restoration
|
ABORT = 2; // Abort all snapshot restoration
|
||||||
RETRY = 3; // Retry chunk (combine with refetch and reject)
|
RETRY = 3; // Retry chunk (combine with refetch and reject)
|
||||||
RETRY_SNAPSHOT = 4; // Retry snapshot (combine with refetch and reject)
|
RETRY_SNAPSHOT = 4; // Retry snapshot (combine with refetch and reject)
|
||||||
REJECT_SNAPSHOT = 5; // Reject this snapshot, try others
|
REJECT_SNAPSHOT = 5; // Reject this snapshot, try others
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -346,7 +346,7 @@ message Event {
|
|||||||
message EventAttribute {
|
message EventAttribute {
|
||||||
string key = 1;
|
string key = 1;
|
||||||
string value = 2;
|
string value = 2;
|
||||||
bool index = 3; // nondeterministic
|
bool index = 3; // nondeterministic
|
||||||
}
|
}
|
||||||
|
|
||||||
// TxResult contains results of executing the transaction.
|
// TxResult contains results of executing the transaction.
|
||||||
@ -364,9 +364,9 @@ message TxResult {
|
|||||||
|
|
||||||
// Validator
|
// Validator
|
||||||
message Validator {
|
message Validator {
|
||||||
bytes address = 1; // The first 20 bytes of SHA256(public key)
|
bytes address = 1; // The first 20 bytes of SHA256(public key)
|
||||||
// PubKey pub_key = 2 [(gogoproto.nullable)=false];
|
// PubKey pub_key = 2 [(gogoproto.nullable)=false];
|
||||||
int64 power = 3; // The voting power
|
int64 power = 3; // The voting power
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatorUpdate
|
// ValidatorUpdate
|
||||||
@ -384,7 +384,7 @@ message VoteInfo {
|
|||||||
message ExtendedVoteInfo {
|
message ExtendedVoteInfo {
|
||||||
Validator validator = 1 [(gogoproto.nullable) = false];
|
Validator validator = 1 [(gogoproto.nullable) = false];
|
||||||
bool signed_last_block = 2;
|
bool signed_last_block = 2;
|
||||||
bytes vote_extension = 3; // Reserved for future use
|
bytes vote_extension = 3; // Reserved for future use
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MisbehaviorType {
|
enum MisbehaviorType {
|
||||||
@ -412,11 +412,11 @@ message Misbehavior {
|
|||||||
// State Sync Types
|
// State Sync Types
|
||||||
|
|
||||||
message Snapshot {
|
message Snapshot {
|
||||||
uint64 height = 1; // The height at which the snapshot was taken
|
uint64 height = 1; // The height at which the snapshot was taken
|
||||||
uint32 format = 2; // The application-specific snapshot format
|
uint32 format = 2; // The application-specific snapshot format
|
||||||
uint32 chunks = 3; // Number of chunks in the snapshot
|
uint32 chunks = 3; // Number of chunks in the snapshot
|
||||||
bytes hash = 4; // Arbitrary snapshot hash, equal only if identical
|
bytes hash = 4; // Arbitrary snapshot hash, equal only if identical
|
||||||
bytes metadata = 5; // Arbitrary application metadata
|
bytes metadata = 5; // Arbitrary application metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------
|
//----------------------------------------
|
||||||
|
@ -30,7 +30,7 @@ message LightClientAttackEvidence {
|
|||||||
int64 common_height = 2;
|
int64 common_height = 2;
|
||||||
repeated tendermint.types.Validator byzantine_validators = 3;
|
repeated tendermint.types.Validator byzantine_validators = 3;
|
||||||
int64 total_voting_power = 4;
|
int64 total_voting_power = 4;
|
||||||
google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
google.protobuf.Timestamp timestamp = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
||||||
}
|
}
|
||||||
|
|
||||||
message EvidenceList {
|
message EvidenceList {
|
||||||
|
@ -26,7 +26,7 @@ message BlockParams {
|
|||||||
// Note: must be greater or equal to -1
|
// Note: must be greater or equal to -1
|
||||||
int64 max_gas = 2;
|
int64 max_gas = 2;
|
||||||
|
|
||||||
reserved 3; // was TimeIotaMs see https://github.com/cometbft/cometbft/pull/5792
|
reserved 3; // was TimeIotaMs see https://github.com/cometbft/cometbft/pull/5792
|
||||||
}
|
}
|
||||||
|
|
||||||
// EvidenceParams determine how we handle evidence of malfeasance.
|
// EvidenceParams determine how we handle evidence of malfeasance.
|
||||||
|
28
third_party/proto/tendermint/types/types.proto
vendored
28
third_party/proto/tendermint/types/types.proto
vendored
@ -66,19 +66,19 @@ message Header {
|
|||||||
BlockID last_block_id = 5 [(gogoproto.nullable) = false];
|
BlockID last_block_id = 5 [(gogoproto.nullable) = false];
|
||||||
|
|
||||||
// hashes of block data
|
// hashes of block data
|
||||||
bytes last_commit_hash = 6; // commit from validators from the last block
|
bytes last_commit_hash = 6; // commit from validators from the last block
|
||||||
bytes data_hash = 7; // transactions
|
bytes data_hash = 7; // transactions
|
||||||
|
|
||||||
// hashes from the app output from the prev block
|
// hashes from the app output from the prev block
|
||||||
bytes validators_hash = 8; // validators for the current block
|
bytes validators_hash = 8; // validators for the current block
|
||||||
bytes next_validators_hash = 9; // validators for the next block
|
bytes next_validators_hash = 9; // validators for the next block
|
||||||
bytes consensus_hash = 10; // consensus params for current block
|
bytes consensus_hash = 10; // consensus params for current block
|
||||||
bytes app_hash = 11; // state after txs from the previous block
|
bytes app_hash = 11; // state after txs from the previous block
|
||||||
bytes last_results_hash = 12; // root hash of all results from the txs from the previous block
|
bytes last_results_hash = 12; // root hash of all results from the txs from the previous block
|
||||||
|
|
||||||
// consensus info
|
// consensus info
|
||||||
bytes evidence_hash = 13; // evidence included in the block
|
bytes evidence_hash = 13; // evidence included in the block
|
||||||
bytes proposer_address = 14; // original proposer of the block
|
bytes proposer_address = 14; // original proposer of the block
|
||||||
}
|
}
|
||||||
|
|
||||||
// Data contains the set of transactions included in the block
|
// Data contains the set of transactions included in the block
|
||||||
@ -99,9 +99,9 @@ message Vote {
|
|||||||
[(gogoproto.nullable) = false, (gogoproto.customname) = "BlockID"]; // zero if vote is nil.
|
[(gogoproto.nullable) = false, (gogoproto.customname) = "BlockID"]; // zero if vote is nil.
|
||||||
google.protobuf.Timestamp timestamp = 5
|
google.protobuf.Timestamp timestamp = 5
|
||||||
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
||||||
bytes validator_address = 6;
|
bytes validator_address = 6;
|
||||||
int32 validator_index = 7;
|
int32 validator_index = 7;
|
||||||
bytes signature = 8;
|
bytes signature = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Commit contains the evidence that a block was committed by a set of validators.
|
// Commit contains the evidence that a block was committed by a set of validators.
|
||||||
@ -118,7 +118,7 @@ message CommitSig {
|
|||||||
bytes validator_address = 2;
|
bytes validator_address = 2;
|
||||||
google.protobuf.Timestamp timestamp = 3
|
google.protobuf.Timestamp timestamp = 3
|
||||||
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
||||||
bytes signature = 4;
|
bytes signature = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Proposal {
|
message Proposal {
|
||||||
@ -129,7 +129,7 @@ message Proposal {
|
|||||||
BlockID block_id = 5 [(gogoproto.customname) = "BlockID", (gogoproto.nullable) = false];
|
BlockID block_id = 5 [(gogoproto.customname) = "BlockID", (gogoproto.nullable) = false];
|
||||||
google.protobuf.Timestamp timestamp = 6
|
google.protobuf.Timestamp timestamp = 6
|
||||||
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
|
||||||
bytes signature = 7;
|
bytes signature = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SignedHeader {
|
message SignedHeader {
|
||||||
|
@ -69,7 +69,7 @@ func (k Keeper) Mint(goCtx context.Context, msg *types.MsgMint) (*types.MsgMintR
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SetMinterCap implements types.MsgServer.
|
// SetMinterCap implements types.MsgServer.
|
||||||
func (k Keeper) SetMinterCap(goCtx context.Context, msg *types.MsgSetMintCap) (*types.MsgSetMintCapResponse, error) {
|
func (k Keeper) SetMinterCap(goCtx context.Context, msg *types.MsgSetMinterCap) (*types.MsgSetMinterCapResponse, error) {
|
||||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||||
minter := common.BytesToAddress(msg.Minter)
|
minter := common.BytesToAddress(msg.Minter)
|
||||||
// validate authority
|
// validate authority
|
||||||
@ -80,7 +80,7 @@ func (k Keeper) SetMinterCap(goCtx context.Context, msg *types.MsgSetMintCap) (*
|
|||||||
if err := k.setMinterCap(ctx, minter, new(big.Int).SetBytes(msg.Cap)); err != nil {
|
if err := k.setMinterCap(ctx, minter, new(big.Int).SetBytes(msg.Cap)); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &types.MsgSetMintCapResponse{}, nil
|
return &types.MsgSetMinterCapResponse{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetWA0GI implements types.MsgServer.
|
// SetWA0GI implements types.MsgServer.
|
||||||
|
@ -106,7 +106,7 @@ func (s *MsgServerTestSuite) TestSetMinterCap() {
|
|||||||
}
|
}
|
||||||
s.Run("invalid authority", func() {
|
s.Run("invalid authority", func() {
|
||||||
s.SetupTest()
|
s.SetupTest()
|
||||||
_, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{
|
_, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{
|
||||||
Authority: s.Addresses[0].String(),
|
Authority: s.Addresses[0].String(),
|
||||||
Minter: common.HexToAddress("0x0000000000000000000000000000000000000000").Bytes(),
|
Minter: common.HexToAddress("0x0000000000000000000000000000000000000000").Bytes(),
|
||||||
Cap: big.NewInt(600000).Bytes(),
|
Cap: big.NewInt(600000).Bytes(),
|
||||||
@ -121,7 +121,7 @@ func (s *MsgServerTestSuite) TestSetMinterCap() {
|
|||||||
|
|
||||||
c := make(map[common.Address]*big.Int)
|
c := make(map[common.Address]*big.Int)
|
||||||
for _, cap := range tc.caps {
|
for _, cap := range tc.caps {
|
||||||
_, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{
|
_, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{
|
||||||
Authority: govAccAddr,
|
Authority: govAccAddr,
|
||||||
Minter: cap.account.Bytes(),
|
Minter: cap.account.Bytes(),
|
||||||
Cap: cap.cap.Bytes(),
|
Cap: cap.cap.Bytes(),
|
||||||
@ -162,14 +162,14 @@ func (s *MsgServerTestSuite) TestSetMintBurn() {
|
|||||||
minter2 := common.HexToAddress("0x0000000000000000000000000000000000000002")
|
minter2 := common.HexToAddress("0x0000000000000000000000000000000000000002")
|
||||||
|
|
||||||
// set mint cap of minter 1 to 8 a0gi
|
// set mint cap of minter 1 to 8 a0gi
|
||||||
_, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{
|
_, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{
|
||||||
Authority: govAccAddr,
|
Authority: govAccAddr,
|
||||||
Minter: minter1.Bytes(),
|
Minter: minter1.Bytes(),
|
||||||
Cap: big.NewInt(8e18).Bytes(),
|
Cap: big.NewInt(8e18).Bytes(),
|
||||||
})
|
})
|
||||||
s.Require().NoError(err)
|
s.Require().NoError(err)
|
||||||
// set mint cap of minter 2 to 5 a0gi
|
// set mint cap of minter 2 to 5 a0gi
|
||||||
_, err = s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{
|
_, err = s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{
|
||||||
Authority: govAccAddr,
|
Authority: govAccAddr,
|
||||||
Minter: minter2.Bytes(),
|
Minter: minter2.Bytes(),
|
||||||
Cap: big.NewInt(5e18).Bytes(),
|
Cap: big.NewInt(5e18).Bytes(),
|
||||||
|
@ -32,7 +32,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
|
|||||||
registry.RegisterImplementations(
|
registry.RegisterImplementations(
|
||||||
(*sdk.Msg)(nil),
|
(*sdk.Msg)(nil),
|
||||||
&MsgSetWA0GI{},
|
&MsgSetWA0GI{},
|
||||||
&MsgSetMintCap{},
|
&MsgSetMinterCap{},
|
||||||
&MsgMint{},
|
&MsgMint{},
|
||||||
&MsgBurn{},
|
&MsgBurn{},
|
||||||
)
|
)
|
||||||
|
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@ import (
|
|||||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _, _, _, _ sdk.Msg = &MsgSetWA0GI{}, &MsgSetMintCap{}, &MsgMint{}, &MsgBurn{}
|
var _, _, _, _ sdk.Msg = &MsgSetWA0GI{}, &MsgSetMinterCap{}, &MsgMint{}, &MsgBurn{}
|
||||||
|
|
||||||
func (msg *MsgSetWA0GI) GetSigners() []sdk.AccAddress {
|
func (msg *MsgSetWA0GI) GetSigners() []sdk.AccAddress {
|
||||||
addr, _ := sdk.AccAddressFromBech32(msg.Authority)
|
addr, _ := sdk.AccAddressFromBech32(msg.Authority)
|
||||||
@ -24,12 +24,12 @@ func (msg MsgSetWA0GI) GetSignBytes() []byte {
|
|||||||
return sdk.MustSortJSON(AminoCdc.MustMarshalJSON(&msg))
|
return sdk.MustSortJSON(AminoCdc.MustMarshalJSON(&msg))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (msg *MsgSetMintCap) GetSigners() []sdk.AccAddress {
|
func (msg *MsgSetMinterCap) GetSigners() []sdk.AccAddress {
|
||||||
addr, _ := sdk.AccAddressFromBech32(msg.Authority)
|
addr, _ := sdk.AccAddressFromBech32(msg.Authority)
|
||||||
return []sdk.AccAddress{addr}
|
return []sdk.AccAddress{addr}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (msg *MsgSetMintCap) ValidateBasic() error {
|
func (msg *MsgSetMinterCap) ValidateBasic() error {
|
||||||
if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
|
if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
|
||||||
return errorsmod.Wrap(err, "authority")
|
return errorsmod.Wrap(err, "authority")
|
||||||
}
|
}
|
||||||
@ -37,7 +37,7 @@ func (msg *MsgSetMintCap) ValidateBasic() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (msg MsgSetMintCap) GetSignBytes() []byte {
|
func (msg MsgSetMinterCap) GetSignBytes() []byte {
|
||||||
return sdk.MustSortJSON(AminoCdc.MustMarshalJSON(&msg))
|
return sdk.MustSortJSON(AminoCdc.MustMarshalJSON(&msg))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,24 +104,24 @@ func (m *MsgSetWA0GIResponse) XXX_DiscardUnknown() {
|
|||||||
|
|
||||||
var xxx_messageInfo_MsgSetWA0GIResponse proto.InternalMessageInfo
|
var xxx_messageInfo_MsgSetWA0GIResponse proto.InternalMessageInfo
|
||||||
|
|
||||||
type MsgSetMintCap struct {
|
type MsgSetMinterCap struct {
|
||||||
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
||||||
Minter []byte `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"`
|
Minter []byte `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"`
|
||||||
Cap []byte `protobuf:"bytes,3,opt,name=cap,proto3" json:"cap,omitempty"`
|
Cap []byte `protobuf:"bytes,3,opt,name=cap,proto3" json:"cap,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCap) Reset() { *m = MsgSetMintCap{} }
|
func (m *MsgSetMinterCap) Reset() { *m = MsgSetMinterCap{} }
|
||||||
func (m *MsgSetMintCap) String() string { return proto.CompactTextString(m) }
|
func (m *MsgSetMinterCap) String() string { return proto.CompactTextString(m) }
|
||||||
func (*MsgSetMintCap) ProtoMessage() {}
|
func (*MsgSetMinterCap) ProtoMessage() {}
|
||||||
func (*MsgSetMintCap) Descriptor() ([]byte, []int) {
|
func (*MsgSetMinterCap) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_f80bf93a1fc022d3, []int{2}
|
return fileDescriptor_f80bf93a1fc022d3, []int{2}
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCap) XXX_Unmarshal(b []byte) error {
|
func (m *MsgSetMinterCap) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
func (m *MsgSetMinterCap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
if deterministic {
|
if deterministic {
|
||||||
return xxx_messageInfo_MsgSetMintCap.Marshal(b, m, deterministic)
|
return xxx_messageInfo_MsgSetMinterCap.Marshal(b, m, deterministic)
|
||||||
} else {
|
} else {
|
||||||
b = b[:cap(b)]
|
b = b[:cap(b)]
|
||||||
n, err := m.MarshalToSizedBuffer(b)
|
n, err := m.MarshalToSizedBuffer(b)
|
||||||
@ -131,33 +131,33 @@ func (m *MsgSetMintCap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error
|
|||||||
return b[:n], nil
|
return b[:n], nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCap) XXX_Merge(src proto.Message) {
|
func (m *MsgSetMinterCap) XXX_Merge(src proto.Message) {
|
||||||
xxx_messageInfo_MsgSetMintCap.Merge(m, src)
|
xxx_messageInfo_MsgSetMinterCap.Merge(m, src)
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCap) XXX_Size() int {
|
func (m *MsgSetMinterCap) XXX_Size() int {
|
||||||
return m.Size()
|
return m.Size()
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCap) XXX_DiscardUnknown() {
|
func (m *MsgSetMinterCap) XXX_DiscardUnknown() {
|
||||||
xxx_messageInfo_MsgSetMintCap.DiscardUnknown(m)
|
xxx_messageInfo_MsgSetMinterCap.DiscardUnknown(m)
|
||||||
}
|
}
|
||||||
|
|
||||||
var xxx_messageInfo_MsgSetMintCap proto.InternalMessageInfo
|
var xxx_messageInfo_MsgSetMinterCap proto.InternalMessageInfo
|
||||||
|
|
||||||
type MsgSetMintCapResponse struct {
|
type MsgSetMinterCapResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCapResponse) Reset() { *m = MsgSetMintCapResponse{} }
|
func (m *MsgSetMinterCapResponse) Reset() { *m = MsgSetMinterCapResponse{} }
|
||||||
func (m *MsgSetMintCapResponse) String() string { return proto.CompactTextString(m) }
|
func (m *MsgSetMinterCapResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*MsgSetMintCapResponse) ProtoMessage() {}
|
func (*MsgSetMinterCapResponse) ProtoMessage() {}
|
||||||
func (*MsgSetMintCapResponse) Descriptor() ([]byte, []int) {
|
func (*MsgSetMinterCapResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_f80bf93a1fc022d3, []int{3}
|
return fileDescriptor_f80bf93a1fc022d3, []int{3}
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCapResponse) XXX_Unmarshal(b []byte) error {
|
func (m *MsgSetMinterCapResponse) XXX_Unmarshal(b []byte) error {
|
||||||
return m.Unmarshal(b)
|
return m.Unmarshal(b)
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
func (m *MsgSetMinterCapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
if deterministic {
|
if deterministic {
|
||||||
return xxx_messageInfo_MsgSetMintCapResponse.Marshal(b, m, deterministic)
|
return xxx_messageInfo_MsgSetMinterCapResponse.Marshal(b, m, deterministic)
|
||||||
} else {
|
} else {
|
||||||
b = b[:cap(b)]
|
b = b[:cap(b)]
|
||||||
n, err := m.MarshalToSizedBuffer(b)
|
n, err := m.MarshalToSizedBuffer(b)
|
||||||
@ -167,17 +167,17 @@ func (m *MsgSetMintCapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt
|
|||||||
return b[:n], nil
|
return b[:n], nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCapResponse) XXX_Merge(src proto.Message) {
|
func (m *MsgSetMinterCapResponse) XXX_Merge(src proto.Message) {
|
||||||
xxx_messageInfo_MsgSetMintCapResponse.Merge(m, src)
|
xxx_messageInfo_MsgSetMinterCapResponse.Merge(m, src)
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCapResponse) XXX_Size() int {
|
func (m *MsgSetMinterCapResponse) XXX_Size() int {
|
||||||
return m.Size()
|
return m.Size()
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCapResponse) XXX_DiscardUnknown() {
|
func (m *MsgSetMinterCapResponse) XXX_DiscardUnknown() {
|
||||||
xxx_messageInfo_MsgSetMintCapResponse.DiscardUnknown(m)
|
xxx_messageInfo_MsgSetMinterCapResponse.DiscardUnknown(m)
|
||||||
}
|
}
|
||||||
|
|
||||||
var xxx_messageInfo_MsgSetMintCapResponse proto.InternalMessageInfo
|
var xxx_messageInfo_MsgSetMinterCapResponse proto.InternalMessageInfo
|
||||||
|
|
||||||
type MsgMint struct {
|
type MsgMint struct {
|
||||||
Minter []byte `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter,omitempty"`
|
Minter []byte `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter,omitempty"`
|
||||||
@ -330,8 +330,8 @@ var xxx_messageInfo_MsgBurnResponse proto.InternalMessageInfo
|
|||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*MsgSetWA0GI)(nil), "zgc.wrappeda0gibase.MsgSetWA0GI")
|
proto.RegisterType((*MsgSetWA0GI)(nil), "zgc.wrappeda0gibase.MsgSetWA0GI")
|
||||||
proto.RegisterType((*MsgSetWA0GIResponse)(nil), "zgc.wrappeda0gibase.MsgSetWA0GIResponse")
|
proto.RegisterType((*MsgSetWA0GIResponse)(nil), "zgc.wrappeda0gibase.MsgSetWA0GIResponse")
|
||||||
proto.RegisterType((*MsgSetMintCap)(nil), "zgc.wrappeda0gibase.MsgSetMintCap")
|
proto.RegisterType((*MsgSetMinterCap)(nil), "zgc.wrappeda0gibase.MsgSetMinterCap")
|
||||||
proto.RegisterType((*MsgSetMintCapResponse)(nil), "zgc.wrappeda0gibase.MsgSetMintCapResponse")
|
proto.RegisterType((*MsgSetMinterCapResponse)(nil), "zgc.wrappeda0gibase.MsgSetMinterCapResponse")
|
||||||
proto.RegisterType((*MsgMint)(nil), "zgc.wrappeda0gibase.MsgMint")
|
proto.RegisterType((*MsgMint)(nil), "zgc.wrappeda0gibase.MsgMint")
|
||||||
proto.RegisterType((*MsgMintResponse)(nil), "zgc.wrappeda0gibase.MsgMintResponse")
|
proto.RegisterType((*MsgMintResponse)(nil), "zgc.wrappeda0gibase.MsgMintResponse")
|
||||||
proto.RegisterType((*MsgBurn)(nil), "zgc.wrappeda0gibase.MsgBurn")
|
proto.RegisterType((*MsgBurn)(nil), "zgc.wrappeda0gibase.MsgBurn")
|
||||||
@ -341,34 +341,34 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("zgc/wrappeda0gibase/tx.proto", fileDescriptor_f80bf93a1fc022d3) }
|
func init() { proto.RegisterFile("zgc/wrappeda0gibase/tx.proto", fileDescriptor_f80bf93a1fc022d3) }
|
||||||
|
|
||||||
var fileDescriptor_f80bf93a1fc022d3 = []byte{
|
var fileDescriptor_f80bf93a1fc022d3 = []byte{
|
||||||
// 421 bytes of a gzipped FileDescriptorProto
|
// 419 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x4f, 0xab, 0xd3, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xc1, 0xae, 0xd2, 0x40,
|
||||||
0x14, 0xc5, 0x93, 0x57, 0xe9, 0xf3, 0x5d, 0x2b, 0x6a, 0x6a, 0x6b, 0x1a, 0x4a, 0x28, 0xc1, 0x45,
|
0x14, 0x86, 0x5b, 0x30, 0x20, 0x23, 0x89, 0x5a, 0x14, 0x4b, 0x43, 0x1a, 0xd2, 0xb0, 0x60, 0x21,
|
||||||
0x11, 0x9a, 0x09, 0xea, 0xc6, 0xa5, 0x15, 0x11, 0x85, 0x6c, 0x22, 0x58, 0x70, 0xa1, 0x4c, 0xd2,
|
0x9d, 0x46, 0xdd, 0xb8, 0x14, 0x63, 0x8c, 0x26, 0xdd, 0xd4, 0x44, 0xa3, 0x1b, 0x33, 0x2d, 0xe3,
|
||||||
0x71, 0x1a, 0x68, 0x32, 0x21, 0x33, 0xc1, 0xb6, 0x9f, 0xc2, 0x8f, 0xd5, 0x65, 0x37, 0x82, 0x4b,
|
0xd0, 0x84, 0x76, 0x9a, 0xce, 0x34, 0x02, 0x4f, 0xe1, 0x63, 0xb1, 0x64, 0xa9, 0x3b, 0x2f, 0xbc,
|
||||||
0x6d, 0xbf, 0x88, 0x4c, 0xfe, 0xd4, 0xb4, 0xd8, 0x16, 0xde, 0x2e, 0xe7, 0x9c, 0x7b, 0x7f, 0x03,
|
0xc8, 0xcd, 0x4c, 0x69, 0x6f, 0x21, 0x17, 0xb8, 0xb9, 0xbb, 0x39, 0xff, 0xf9, 0xcf, 0x77, 0x9a,
|
||||||
0x27, 0x5c, 0xe8, 0xaf, 0x68, 0x80, 0xbe, 0xa7, 0x38, 0x49, 0xc8, 0x14, 0x3b, 0x34, 0xf4, 0x31,
|
0xbf, 0x39, 0xa0, 0xbf, 0x22, 0x01, 0xfc, 0x9d, 0xa2, 0x24, 0xc1, 0x53, 0xe4, 0x90, 0xd0, 0x47,
|
||||||
0x27, 0x48, 0x2c, 0xec, 0x24, 0x65, 0x82, 0x69, 0xed, 0x15, 0x0d, 0xec, 0xa3, 0xd4, 0xe8, 0x05,
|
0x0c, 0x43, 0xbe, 0xb0, 0x93, 0x94, 0x72, 0xaa, 0x75, 0x56, 0x24, 0xb0, 0x8f, 0xba, 0x46, 0x2f,
|
||||||
0x8c, 0x47, 0x8c, 0x7f, 0xcd, 0x47, 0x50, 0x21, 0x8a, 0x79, 0xe3, 0x31, 0x65, 0x94, 0x15, 0xbe,
|
0xa0, 0x2c, 0xa2, 0xec, 0xa7, 0xb4, 0xc0, 0xbc, 0xc8, 0xfd, 0xc6, 0x33, 0x42, 0x09, 0xcd, 0x75,
|
||||||
0xfc, 0x2a, 0xdd, 0x1e, 0x65, 0x8c, 0xce, 0x09, 0xca, 0x95, 0x9f, 0x7d, 0x43, 0x38, 0x5e, 0x16,
|
0xf1, 0xda, 0xab, 0x3d, 0x42, 0x29, 0x99, 0x63, 0x28, 0x2b, 0x3f, 0xfb, 0x05, 0x51, 0xbc, 0xcc,
|
||||||
0x91, 0xf5, 0x16, 0xee, 0xb9, 0x9c, 0x7e, 0x24, 0x62, 0xf2, 0xda, 0x79, 0xf7, 0x5e, 0xeb, 0xc3,
|
0x5b, 0xd6, 0x07, 0xf0, 0xc8, 0x65, 0xe4, 0x0b, 0xe6, 0xdf, 0xde, 0x39, 0x1f, 0x3f, 0x69, 0x7d,
|
||||||
0x0d, 0xce, 0xc4, 0x8c, 0xa5, 0xa1, 0x58, 0xea, 0xea, 0x40, 0x1d, 0xde, 0x78, 0xff, 0x0c, 0x4d,
|
0xd0, 0x42, 0x19, 0x9f, 0xd1, 0x34, 0xe4, 0x4b, 0x5d, 0x1d, 0xa8, 0xa3, 0x96, 0x77, 0x23, 0x68,
|
||||||
0x87, 0x6b, 0x3c, 0x9d, 0xa6, 0x84, 0x73, 0xfd, 0x6a, 0xa0, 0x0e, 0x5b, 0x5e, 0x25, 0xad, 0x0e,
|
0x3a, 0x68, 0xa2, 0xe9, 0x34, 0xc5, 0x8c, 0xe9, 0xb5, 0x81, 0x3a, 0x6a, 0x7b, 0x45, 0x69, 0x3d,
|
||||||
0xb4, 0x6b, 0x18, 0x8f, 0xf0, 0x84, 0xc5, 0x9c, 0x58, 0x13, 0xb8, 0x5f, 0xd8, 0x6e, 0x18, 0x8b,
|
0x07, 0x9d, 0x0a, 0xc6, 0xc3, 0x2c, 0xa1, 0x31, 0xc3, 0xd6, 0x77, 0xf0, 0x38, 0x97, 0xdd, 0x30,
|
||||||
0x37, 0x38, 0xb9, 0xc0, 0xef, 0x42, 0x33, 0x0a, 0x63, 0x41, 0xd2, 0x12, 0x5f, 0x2a, 0xed, 0x21,
|
0xe6, 0x38, 0x7d, 0x8f, 0x92, 0x0b, 0x1b, 0xba, 0xa0, 0x11, 0x49, 0xeb, 0x7e, 0xc1, 0xbe, 0xd2,
|
||||||
0x34, 0x02, 0x9c, 0xe8, 0x8d, 0xdc, 0x94, 0x9f, 0xd6, 0x13, 0xe8, 0x1c, 0x80, 0xf7, 0x2f, 0xbe,
|
0x9e, 0x80, 0x7a, 0x80, 0x12, 0xbd, 0x2e, 0x45, 0xf1, 0xb4, 0x7a, 0xe0, 0xc5, 0x11, 0xba, 0xdc,
|
||||||
0x82, 0x6b, 0x97, 0x53, 0xe9, 0xd6, 0x68, 0xea, 0x01, 0xad, 0x0b, 0x4d, 0x1c, 0xb1, 0x2c, 0x16,
|
0xfa, 0x16, 0x34, 0x5d, 0x46, 0x84, 0x5e, 0xe1, 0xa9, 0x07, 0xbc, 0x2e, 0x68, 0xa0, 0x88, 0x66,
|
||||||
0xd5, 0x2b, 0x85, 0xb2, 0x1e, 0xc1, 0x83, 0x72, 0xf5, 0x88, 0x36, 0xce, 0xd2, 0xf8, 0x96, 0x34,
|
0x31, 0x2f, 0xf6, 0xe4, 0x95, 0xf5, 0x54, 0x7e, 0xb0, 0x18, 0x3d, 0xa2, 0x4d, 0xb2, 0x34, 0xbe,
|
||||||
0xb9, 0x5a, 0xd1, 0x9e, 0xff, 0xbc, 0x82, 0x86, 0xcb, 0xa9, 0xf6, 0x09, 0xee, 0xee, 0x0b, 0x1f,
|
0x27, 0x4d, 0x8c, 0x16, 0xb4, 0x57, 0xff, 0x6a, 0xa0, 0xee, 0x32, 0xa2, 0x7d, 0x05, 0x0f, 0xcb,
|
||||||
0xd8, 0xff, 0xf9, 0xc3, 0x76, 0xad, 0x4b, 0x63, 0x78, 0x69, 0xa2, 0xe2, 0x6b, 0x5f, 0xa0, 0x55,
|
0xd0, 0x07, 0xf6, 0x2d, 0x7f, 0xd9, 0xae, 0xe4, 0x69, 0x8c, 0x2e, 0x39, 0x0a, 0xbe, 0xe6, 0x83,
|
||||||
0x36, 0x42, 0x52, 0x59, 0xb6, 0x75, 0x66, 0xb3, 0xec, 0xcd, 0x78, 0x76, 0x79, 0x66, 0xcf, 0xff,
|
0xf6, 0x41, 0xdc, 0xc3, 0x33, 0x93, 0xa5, 0xcb, 0x78, 0x79, 0x17, 0x57, 0xb9, 0xe3, 0x33, 0x78,
|
||||||
0x00, 0x77, 0xf2, 0x62, 0xfb, 0xa7, 0x76, 0x64, 0x6a, 0x3c, 0x3d, 0x97, 0xd6, 0x59, 0x79, 0xad,
|
0x20, 0xc3, 0xed, 0x9f, 0x9a, 0x12, 0x5d, 0x63, 0x78, 0xae, 0x5b, 0x65, 0xc9, 0x68, 0x4f, 0xb2,
|
||||||
0x27, 0x59, 0x32, 0x3d, 0xcd, 0xaa, 0xf7, 0x3a, 0xf6, 0xd6, 0x7f, 0x4c, 0x65, 0xbd, 0x35, 0xd5,
|
0x44, 0xf7, 0x34, 0xab, 0x9a, 0xed, 0xc4, 0x5b, 0x5f, 0x99, 0xca, 0x7a, 0x6b, 0xaa, 0x9b, 0xad,
|
||||||
0xcd, 0xd6, 0x54, 0x7f, 0x6f, 0x4d, 0xf5, 0xc7, 0xce, 0x54, 0x36, 0x3b, 0x53, 0xf9, 0xb5, 0x33,
|
0xa9, 0xfe, 0xdf, 0x9a, 0xea, 0x9f, 0x9d, 0xa9, 0x6c, 0x76, 0xa6, 0xf2, 0x77, 0x67, 0x2a, 0x3f,
|
||||||
0x95, 0xcf, 0x2f, 0x69, 0x28, 0x66, 0x99, 0x6f, 0x07, 0x2c, 0x42, 0x0e, 0x9d, 0x63, 0x9f, 0x23,
|
0xde, 0x90, 0x90, 0xcf, 0x32, 0xdf, 0x0e, 0x68, 0x04, 0x1d, 0x32, 0x47, 0x3e, 0x83, 0x0e, 0x19,
|
||||||
0x87, 0x8e, 0x82, 0x19, 0x0e, 0x63, 0xb4, 0xa8, 0x2e, 0x6f, 0x24, 0xe1, 0xa3, 0xe2, 0xf6, 0x96,
|
0x07, 0x33, 0x14, 0xc6, 0x70, 0x51, 0x5c, 0xe0, 0x58, 0xc0, 0xc7, 0xf9, 0x0d, 0x2e, 0x13, 0xcc,
|
||||||
0x09, 0xe1, 0x7e, 0x33, 0x3f, 0x8f, 0x17, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x6f, 0x43, 0x23,
|
0xfc, 0x86, 0x3c, 0x93, 0xd7, 0xd7, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x07, 0x50, 0x07, 0xa7,
|
||||||
0x4d, 0x9f, 0x03, 0x00, 0x00,
|
0x03, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference imports to suppress errors if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
@ -384,7 +384,7 @@ 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.
|
// 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 {
|
type MsgClient interface {
|
||||||
SetWA0GI(ctx context.Context, in *MsgSetWA0GI, opts ...grpc.CallOption) (*MsgSetWA0GIResponse, error)
|
SetWA0GI(ctx context.Context, in *MsgSetWA0GI, opts ...grpc.CallOption) (*MsgSetWA0GIResponse, error)
|
||||||
SetMinterCap(ctx context.Context, in *MsgSetMintCap, opts ...grpc.CallOption) (*MsgSetMintCapResponse, error)
|
SetMinterCap(ctx context.Context, in *MsgSetMinterCap, opts ...grpc.CallOption) (*MsgSetMinterCapResponse, error)
|
||||||
Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error)
|
Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error)
|
||||||
Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error)
|
Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error)
|
||||||
}
|
}
|
||||||
@ -406,8 +406,8 @@ func (c *msgClient) SetWA0GI(ctx context.Context, in *MsgSetWA0GI, opts ...grpc.
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *msgClient) SetMinterCap(ctx context.Context, in *MsgSetMintCap, opts ...grpc.CallOption) (*MsgSetMintCapResponse, error) {
|
func (c *msgClient) SetMinterCap(ctx context.Context, in *MsgSetMinterCap, opts ...grpc.CallOption) (*MsgSetMinterCapResponse, error) {
|
||||||
out := new(MsgSetMintCapResponse)
|
out := new(MsgSetMinterCapResponse)
|
||||||
err := c.cc.Invoke(ctx, "/zgc.wrappeda0gibase.Msg/SetMinterCap", in, out, opts...)
|
err := c.cc.Invoke(ctx, "/zgc.wrappeda0gibase.Msg/SetMinterCap", in, out, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -436,7 +436,7 @@ func (c *msgClient) Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOpti
|
|||||||
// MsgServer is the server API for Msg service.
|
// MsgServer is the server API for Msg service.
|
||||||
type MsgServer interface {
|
type MsgServer interface {
|
||||||
SetWA0GI(context.Context, *MsgSetWA0GI) (*MsgSetWA0GIResponse, error)
|
SetWA0GI(context.Context, *MsgSetWA0GI) (*MsgSetWA0GIResponse, error)
|
||||||
SetMinterCap(context.Context, *MsgSetMintCap) (*MsgSetMintCapResponse, error)
|
SetMinterCap(context.Context, *MsgSetMinterCap) (*MsgSetMinterCapResponse, error)
|
||||||
Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
|
Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
|
||||||
Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
|
Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
|
||||||
}
|
}
|
||||||
@ -448,7 +448,7 @@ type UnimplementedMsgServer struct {
|
|||||||
func (*UnimplementedMsgServer) SetWA0GI(ctx context.Context, req *MsgSetWA0GI) (*MsgSetWA0GIResponse, error) {
|
func (*UnimplementedMsgServer) SetWA0GI(ctx context.Context, req *MsgSetWA0GI) (*MsgSetWA0GIResponse, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method SetWA0GI not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method SetWA0GI not implemented")
|
||||||
}
|
}
|
||||||
func (*UnimplementedMsgServer) SetMinterCap(ctx context.Context, req *MsgSetMintCap) (*MsgSetMintCapResponse, error) {
|
func (*UnimplementedMsgServer) SetMinterCap(ctx context.Context, req *MsgSetMinterCap) (*MsgSetMinterCapResponse, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method SetMinterCap not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method SetMinterCap not implemented")
|
||||||
}
|
}
|
||||||
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error) {
|
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error) {
|
||||||
@ -481,7 +481,7 @@ func _Msg_SetWA0GI_Handler(srv interface{}, ctx context.Context, dec func(interf
|
|||||||
}
|
}
|
||||||
|
|
||||||
func _Msg_SetMinterCap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _Msg_SetMinterCap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(MsgSetMintCap)
|
in := new(MsgSetMinterCap)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -493,7 +493,7 @@ func _Msg_SetMinterCap_Handler(srv interface{}, ctx context.Context, dec func(in
|
|||||||
FullMethod: "/zgc.wrappeda0gibase.Msg/SetMinterCap",
|
FullMethod: "/zgc.wrappeda0gibase.Msg/SetMinterCap",
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(MsgServer).SetMinterCap(ctx, req.(*MsgSetMintCap))
|
return srv.(MsgServer).SetMinterCap(ctx, req.(*MsgSetMinterCap))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
@ -619,7 +619,7 @@ func (m *MsgSetWA0GIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
return len(dAtA) - i, nil
|
return len(dAtA) - i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCap) Marshal() (dAtA []byte, err error) {
|
func (m *MsgSetMinterCap) Marshal() (dAtA []byte, err error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
dAtA = make([]byte, size)
|
dAtA = make([]byte, size)
|
||||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
@ -629,12 +629,12 @@ func (m *MsgSetMintCap) Marshal() (dAtA []byte, err error) {
|
|||||||
return dAtA[:n], nil
|
return dAtA[:n], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCap) MarshalTo(dAtA []byte) (int, error) {
|
func (m *MsgSetMinterCap) MarshalTo(dAtA []byte) (int, error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCap) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
func (m *MsgSetMinterCap) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||||
i := len(dAtA)
|
i := len(dAtA)
|
||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
@ -663,7 +663,7 @@ func (m *MsgSetMintCap) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
return len(dAtA) - i, nil
|
return len(dAtA) - i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCapResponse) Marshal() (dAtA []byte, err error) {
|
func (m *MsgSetMinterCapResponse) Marshal() (dAtA []byte, err error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
dAtA = make([]byte, size)
|
dAtA = make([]byte, size)
|
||||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
@ -673,12 +673,12 @@ func (m *MsgSetMintCapResponse) Marshal() (dAtA []byte, err error) {
|
|||||||
return dAtA[:n], nil
|
return dAtA[:n], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCapResponse) MarshalTo(dAtA []byte) (int, error) {
|
func (m *MsgSetMinterCapResponse) MarshalTo(dAtA []byte) (int, error) {
|
||||||
size := m.Size()
|
size := m.Size()
|
||||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
func (m *MsgSetMinterCapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||||
i := len(dAtA)
|
i := len(dAtA)
|
||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
@ -843,7 +843,7 @@ func (m *MsgSetWA0GIResponse) Size() (n int) {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCap) Size() (n int) {
|
func (m *MsgSetMinterCap) Size() (n int) {
|
||||||
if m == nil {
|
if m == nil {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -864,7 +864,7 @@ func (m *MsgSetMintCap) Size() (n int) {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgSetMintCapResponse) Size() (n int) {
|
func (m *MsgSetMinterCapResponse) Size() (n int) {
|
||||||
if m == nil {
|
if m == nil {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -1097,7 +1097,7 @@ func (m *MsgSetWA0GIResponse) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCap) Unmarshal(dAtA []byte) error {
|
func (m *MsgSetMinterCap) Unmarshal(dAtA []byte) error {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
@ -1120,10 +1120,10 @@ func (m *MsgSetMintCap) Unmarshal(dAtA []byte) error {
|
|||||||
fieldNum := int32(wire >> 3)
|
fieldNum := int32(wire >> 3)
|
||||||
wireType := int(wire & 0x7)
|
wireType := int(wire & 0x7)
|
||||||
if wireType == 4 {
|
if wireType == 4 {
|
||||||
return fmt.Errorf("proto: MsgSetMintCap: wiretype end group for non-group")
|
return fmt.Errorf("proto: MsgSetMinterCap: wiretype end group for non-group")
|
||||||
}
|
}
|
||||||
if fieldNum <= 0 {
|
if fieldNum <= 0 {
|
||||||
return fmt.Errorf("proto: MsgSetMintCap: illegal tag %d (wire type %d)", fieldNum, wire)
|
return fmt.Errorf("proto: MsgSetMinterCap: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
}
|
}
|
||||||
switch fieldNum {
|
switch fieldNum {
|
||||||
case 1:
|
case 1:
|
||||||
@ -1247,7 +1247,7 @@ func (m *MsgSetMintCap) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func (m *MsgSetMintCapResponse) Unmarshal(dAtA []byte) error {
|
func (m *MsgSetMinterCapResponse) Unmarshal(dAtA []byte) error {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
@ -1270,10 +1270,10 @@ func (m *MsgSetMintCapResponse) Unmarshal(dAtA []byte) error {
|
|||||||
fieldNum := int32(wire >> 3)
|
fieldNum := int32(wire >> 3)
|
||||||
wireType := int(wire & 0x7)
|
wireType := int(wire & 0x7)
|
||||||
if wireType == 4 {
|
if wireType == 4 {
|
||||||
return fmt.Errorf("proto: MsgSetMintCapResponse: wiretype end group for non-group")
|
return fmt.Errorf("proto: MsgSetMinterCapResponse: wiretype end group for non-group")
|
||||||
}
|
}
|
||||||
if fieldNum <= 0 {
|
if fieldNum <= 0 {
|
||||||
return fmt.Errorf("proto: MsgSetMintCapResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
return fmt.Errorf("proto: MsgSetMinterCapResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
}
|
}
|
||||||
switch fieldNum {
|
switch fieldNum {
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user