Some checks failed
Build SimApp / build (amd64) (push) Waiting to run
Build SimApp / build (arm64) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Build & Push / build (push) Waiting to run
Run Gosec / Gosec (push) Waiting to run
Lint / golangci-lint (push) Waiting to run
Checks dependencies and mocks generation / Check go mod tidy (push) Waiting to run
Checks dependencies and mocks generation / Check up to date mocks (push) Waiting to run
System Tests / setup (push) Waiting to run
System Tests / test-system (push) Blocked by required conditions
System Tests / test-system-legacy (push) Blocked by required conditions
Tests / Code Coverage / split-test-files (push) Waiting to run
Tests / Code Coverage / tests (00) (push) Blocked by required conditions
Tests / Code Coverage / tests (01) (push) Blocked by required conditions
Tests / Code Coverage / tests (02) (push) Blocked by required conditions
Tests / Code Coverage / tests (03) (push) Blocked by required conditions
Tests / Code Coverage / test-integration (push) Waiting to run
Tests / Code Coverage / test-e2e (push) Waiting to run
Tests / Code Coverage / repo-analysis (push) Blocked by required conditions
Tests / Code Coverage / test-sim-nondeterminism (push) Waiting to run
Tests / Code Coverage / test-clientv2 (push) Waiting to run
Tests / Code Coverage / test-core (push) Waiting to run
Tests / Code Coverage / test-depinject (push) Waiting to run
Tests / Code Coverage / test-errors (push) Waiting to run
Tests / Code Coverage / test-math (push) Waiting to run
Tests / Code Coverage / test-schema (push) Waiting to run
Tests / Code Coverage / test-collections (push) Waiting to run
Tests / Code Coverage / test-cosmovisor (push) Waiting to run
Tests / Code Coverage / test-confix (push) Waiting to run
Tests / Code Coverage / test-store (push) Waiting to run
Tests / Code Coverage / test-log (push) Waiting to run
Tests / Code Coverage / test-x-tx (push) Waiting to run
Tests / Code Coverage / test-x-nft (push) Waiting to run
Tests / Code Coverage / test-x-circuit (push) Waiting to run
Tests / Code Coverage / test-x-feegrant (push) Waiting to run
Tests / Code Coverage / test-x-evidence (push) Waiting to run
Tests / Code Coverage / test-x-upgrade (push) Waiting to run
Tests / Code Coverage / test-tools-benchmark (push) Waiting to run
Build & Push SDK Proto Builder / build (push) Has been cancelled
216 lines
8.8 KiB
Protocol Buffer
216 lines
8.8 KiB
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.distribution.v1beta1;
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types";
|
|
option (gogoproto.equal_all) = true;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "cosmos/msg/v1/msg.proto";
|
|
import "amino/amino.proto";
|
|
import "cosmos/distribution/v1beta1/distribution.proto";
|
|
|
|
// Msg defines the distribution Msg service.
|
|
service Msg {
|
|
option (cosmos.msg.v1.service) = true;
|
|
|
|
// SetWithdrawAddress defines a method to change the withdraw address
|
|
// for a delegator (or validator self-delegation).
|
|
rpc SetWithdrawAddress(MsgSetWithdrawAddress) returns (MsgSetWithdrawAddressResponse);
|
|
|
|
// WithdrawDelegatorReward defines a method to withdraw rewards of delegator
|
|
// from a single validator.
|
|
rpc WithdrawDelegatorReward(MsgWithdrawDelegatorReward) returns (MsgWithdrawDelegatorRewardResponse);
|
|
|
|
// WithdrawValidatorCommission defines a method to withdraw the
|
|
// full commission to the validator address.
|
|
rpc WithdrawValidatorCommission(MsgWithdrawValidatorCommission) returns (MsgWithdrawValidatorCommissionResponse);
|
|
|
|
// FundCommunityPool defines a method to allow an account to directly
|
|
// fund the community pool.
|
|
//
|
|
// WARNING: This method will fail if an external community pool is used.
|
|
rpc FundCommunityPool(MsgFundCommunityPool) returns (MsgFundCommunityPoolResponse);
|
|
|
|
// UpdateParams defines a governance operation for updating the x/distribution
|
|
// module parameters. The authority is defined in the keeper.
|
|
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse) {
|
|
option (cosmos_proto.method_added_in) = "cosmos-sdk 0.47";
|
|
};
|
|
|
|
// CommunityPoolSpend defines a governance operation for sending tokens from
|
|
// the community pool in the x/distribution module to another account, which
|
|
// could be the governance module itself. The authority is defined in the
|
|
// keeper.
|
|
//
|
|
// WARNING: This method will fail if an external community pool is used.
|
|
rpc CommunityPoolSpend(MsgCommunityPoolSpend) returns (MsgCommunityPoolSpendResponse) {
|
|
option (cosmos_proto.method_added_in) = "cosmos-sdk 0.47";
|
|
};
|
|
|
|
// DepositValidatorRewardsPool defines a method to provide additional rewards
|
|
// to delegators to a specific validator.
|
|
rpc DepositValidatorRewardsPool(MsgDepositValidatorRewardsPool) returns (MsgDepositValidatorRewardsPoolResponse) {
|
|
option (cosmos_proto.method_added_in) = "cosmos-sdk 0.50";
|
|
};
|
|
}
|
|
|
|
// MsgSetWithdrawAddress sets the withdraw address for
|
|
// a delegator (or validator self-delegation).
|
|
message MsgSetWithdrawAddress {
|
|
option (cosmos.msg.v1.signer) = "delegator_address";
|
|
option (amino.name) = "cosmos-sdk/MsgModifyWithdrawAddress";
|
|
|
|
option (gogoproto.equal) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
string withdraw_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
}
|
|
|
|
// MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
|
|
// type.
|
|
message MsgSetWithdrawAddressResponse {}
|
|
|
|
// MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
|
|
// from a single validator.
|
|
message MsgWithdrawDelegatorReward {
|
|
option (cosmos.msg.v1.signer) = "delegator_address";
|
|
option (amino.name) = "cosmos-sdk/MsgWithdrawDelegationReward";
|
|
|
|
option (gogoproto.equal) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"];
|
|
}
|
|
|
|
// MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
|
|
// response type.
|
|
message MsgWithdrawDelegatorRewardResponse {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.46";
|
|
repeated cosmos.base.v1beta1.Coin amount = 1 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
}
|
|
|
|
// MsgWithdrawValidatorCommission withdraws the full commission to the validator
|
|
// address.
|
|
message MsgWithdrawValidatorCommission {
|
|
option (cosmos.msg.v1.signer) = "validator_address";
|
|
option (amino.name) = "cosmos-sdk/MsgWithdrawValCommission";
|
|
|
|
option (gogoproto.equal) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"];
|
|
}
|
|
|
|
// MsgWithdrawValidatorCommissionResponse defines the
|
|
// Msg/WithdrawValidatorCommission response type.
|
|
message MsgWithdrawValidatorCommissionResponse {
|
|
repeated cosmos.base.v1beta1.Coin amount = 1 [
|
|
(cosmos_proto.field_added_in) = "cosmos-sdk 0.46",
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
}
|
|
|
|
// MsgFundCommunityPool allows an account to directly
|
|
// fund the community pool.
|
|
message MsgFundCommunityPool {
|
|
option (cosmos.msg.v1.signer) = "depositor";
|
|
option (amino.name) = "cosmos-sdk/MsgFundCommunityPool";
|
|
|
|
option (gogoproto.equal) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
repeated cosmos.base.v1beta1.Coin amount = 1 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
}
|
|
|
|
// MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
|
|
message MsgFundCommunityPoolResponse {}
|
|
|
|
// MsgUpdateParams is the Msg/UpdateParams request type.
|
|
message MsgUpdateParams {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.47";
|
|
option (cosmos.msg.v1.signer) = "authority";
|
|
option (amino.name) = "cosmos-sdk/distribution/MsgUpdateParams";
|
|
|
|
// authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
// params defines the x/distribution parameters to update.
|
|
//
|
|
// NOTE: All parameters must be supplied.
|
|
Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
|
}
|
|
|
|
// MsgUpdateParamsResponse defines the response structure for executing a
|
|
// MsgUpdateParams message.
|
|
message MsgUpdateParamsResponse {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.47";
|
|
}
|
|
|
|
// MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
// pool to another account. This message is typically executed via a governance
|
|
// proposal with the governance module being the executing authority.
|
|
message MsgCommunityPoolSpend {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.47";
|
|
option (cosmos.msg.v1.signer) = "authority";
|
|
option (amino.name) = "cosmos-sdk/distr/MsgCommunityPoolSpend";
|
|
|
|
// authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
string recipient = 2;
|
|
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
}
|
|
|
|
// MsgCommunityPoolSpendResponse defines the response to executing a
|
|
// MsgCommunityPoolSpend message.
|
|
message MsgCommunityPoolSpendResponse {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.47";
|
|
}
|
|
|
|
// DepositValidatorRewardsPool defines the request structure to provide
|
|
// additional rewards to delegators from a specific validator.
|
|
message MsgDepositValidatorRewardsPool {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.50";
|
|
option (amino.name) = "cosmos-sdk/distr/MsgDepositValRewards";
|
|
option (cosmos.msg.v1.signer) = "depositor";
|
|
|
|
option (gogoproto.equal) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
string depositor = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"];
|
|
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.encoding) = "legacy_coins",
|
|
(amino.dont_omitempty) = true,
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
}
|
|
|
|
// MsgDepositValidatorRewardsPoolResponse defines the response to executing a
|
|
// MsgDepositValidatorRewardsPool message.
|
|
message MsgDepositValidatorRewardsPoolResponse {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.50";
|
|
}
|