github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/distribution/v1beta1/tx.proto (about)

     1  syntax = "proto3";
     2  package cosmos.distribution.v1beta1;
     3  
     4  option go_package            = "github.com/Finschia/finschia-sdk/x/distribution/types";
     5  option (gogoproto.equal_all) = true;
     6  
     7  import "gogoproto/gogo.proto";
     8  import "cosmos/base/v1beta1/coin.proto";
     9  
    10  // Msg defines the distribution Msg service.
    11  service Msg {
    12    // SetWithdrawAddress defines a method to change the withdraw address
    13    // for a delegator (or validator self-delegation).
    14    rpc SetWithdrawAddress(MsgSetWithdrawAddress) returns (MsgSetWithdrawAddressResponse);
    15  
    16    // WithdrawDelegatorReward defines a method to withdraw rewards of delegator
    17    // from a single validator.
    18    rpc WithdrawDelegatorReward(MsgWithdrawDelegatorReward) returns (MsgWithdrawDelegatorRewardResponse);
    19  
    20    // WithdrawValidatorCommission defines a method to withdraw the
    21    // full commission to the validator address.
    22    rpc WithdrawValidatorCommission(MsgWithdrawValidatorCommission) returns (MsgWithdrawValidatorCommissionResponse);
    23  
    24    // FundCommunityPool defines a method to allow an account to directly
    25    // fund the community pool.
    26    rpc FundCommunityPool(MsgFundCommunityPool) returns (MsgFundCommunityPoolResponse);
    27  }
    28  
    29  // MsgSetWithdrawAddress sets the withdraw address for
    30  // a delegator (or validator self-delegation).
    31  message MsgSetWithdrawAddress {
    32    option (gogoproto.equal)           = false;
    33    option (gogoproto.goproto_getters) = false;
    34  
    35    string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""];
    36    string withdraw_address  = 2 [(gogoproto.moretags) = "yaml:\"withdraw_address\""];
    37  }
    38  
    39  // MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type.
    40  message MsgSetWithdrawAddressResponse {}
    41  
    42  // MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
    43  // from a single validator.
    44  message MsgWithdrawDelegatorReward {
    45    option (gogoproto.equal)           = false;
    46    option (gogoproto.goproto_getters) = false;
    47  
    48    string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""];
    49    string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""];
    50  }
    51  
    52  // MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.
    53  message MsgWithdrawDelegatorRewardResponse {}
    54  
    55  // MsgWithdrawValidatorCommission withdraws the full commission to the validator
    56  // address.
    57  message MsgWithdrawValidatorCommission {
    58    option (gogoproto.equal)           = false;
    59    option (gogoproto.goproto_getters) = false;
    60  
    61    string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""];
    62  }
    63  
    64  // MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.
    65  message MsgWithdrawValidatorCommissionResponse {}
    66  
    67  // MsgFundCommunityPool allows an account to directly
    68  // fund the community pool.
    69  message MsgFundCommunityPool {
    70    option (gogoproto.equal)           = false;
    71    option (gogoproto.goproto_getters) = false;
    72  
    73    repeated cosmos.base.v1beta1.Coin amount = 1
    74        [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coins"];
    75    string depositor = 2;
    76  }
    77  
    78  // MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
    79  message MsgFundCommunityPoolResponse {}