-
Notifications
You must be signed in to change notification settings - Fork 0
/
querier.go
36 lines (29 loc) · 1.38 KB
/
querier.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package types
import sdk "github.com/evoblockchain/evochain/libs/cosmos-sdk/types"
// querier keys
const (
QueryParams = "params"
QueryValidatorCommission = "validator_commission"
QueryWithdrawAddr = "withdraw_addr"
QueryCommunityPool = "community_pool"
ParamCommunityTax = "community_tax"
ParamWithdrawAddrEnabled = "withdraw_addr_enabled"
)
// QueryValidatorCommissionParams is the struct of params for query 'custom/distr/validator_commission'
type QueryValidatorCommissionParams struct {
ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"`
}
// NewQueryValidatorCommissionParams creates a new instance of QueryValidatorCommissionParams
func NewQueryValidatorCommissionParams(validatorAddr sdk.ValAddress) QueryValidatorCommissionParams {
return QueryValidatorCommissionParams{
ValidatorAddress: validatorAddr,
}
}
// QueryDelegatorWithdrawAddrParams is the struct of params for query 'custom/distr/withdraw_addr'
type QueryDelegatorWithdrawAddrParams struct {
DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"`
}
// NewQueryDelegatorWithdrawAddrParams creates a new instance of QueryDelegatorWithdrawAddrParams.
func NewQueryDelegatorWithdrawAddrParams(delegatorAddr sdk.AccAddress) QueryDelegatorWithdrawAddrParams {
return QueryDelegatorWithdrawAddrParams{DelegatorAddress: delegatorAddr}
}