Documentation ¶
Index ¶
- Constants
- func MakeCreateValidatorMsg(createValidatorMsg types.CreateValidatorMsg, from sdk.AccAddress, ...) (sdk.Msg, error)
- func MakeDelegateMsg(delegateMsg types.DelegateMsg, delAddr sdk.AccAddress) (stakingtypes.MsgDelegate, error)
- func MakeEditValidatorMsg(editValidatorMsg types.EditValidatorMsg, addr sdk.AccAddress) (stakingtypes.MsgEditValidator, error)
- func MakeHistoricalInfoMsg(historicalInfoMsg types.HistoricalInfoMsg) (stakingtypes.QueryHistoricalInfoRequest, error)
- func MakeQueryDelegationMsg(queryDelegationMsg types.QueryDelegationMsg) (stakingtypes.QueryDelegationRequest, error)
- func MakeQueryDelegationsMsg(queryDelegationMsg types.QueryDelegationMsg) (stakingtypes.QueryDelegatorDelegationsRequest, error)
- func MakeQueryDelegationsToMsg(queryDelegationMsg types.QueryDelegationMsg) (stakingtypes.QueryValidatorDelegationsRequest, error)
- func MakeQueryRedelegationMsg(queryRedelegationMsg types.QueryRedelegationMsg) (stakingtypes.QueryRedelegationsRequest, error)
- func MakeQueryRedelegationsFromMsg(queryRedelegationMsg types.QueryRedelegationMsg) (stakingtypes.QueryRedelegationsRequest, error)
- func MakeQueryRedelegationsMsg(queryRedelegationMsg types.QueryRedelegationMsg) (stakingtypes.QueryRedelegationsRequest, error)
- func MakeQueryStakingParamsMsg() (stakingtypes.QueryParamsRequest, error)
- func MakeQueryStakingPoolMsg() (stakingtypes.QueryPoolRequest, error)
- func MakeQueryUnbondingDelegationMsg(queryUnbondingDelegationMsg types.QueryUnbondingDelegationMsg) (stakingtypes.QueryUnbondingDelegationRequest, error)
- func MakeQueryUnbondingDelegationsFromMsg(queryUnbondingDelegationMsg types.QueryUnbondingDelegationMsg) (stakingtypes.QueryValidatorUnbondingDelegationsRequest, error)
- func MakeQueryUnbondingDelegationsMsg(queryUnbondingDelegationMsg types.QueryUnbondingDelegationMsg) (stakingtypes.QueryDelegatorUnbondingDelegationsRequest, error)
- func MakeQueryValidatorMsg(queryValidatorMsg types.QueryValidatorMsg) (stakingtypes.QueryValidatorRequest, error)
- func MakeQueryValidatorsMsg() (stakingtypes.QueryValidatorsRequest, error)
- func MakeRedelegateMsg(redelegateMsg types.RedelegateMsg, delAddr sdk.AccAddress) (stakingtypes.MsgBeginRedelegate, error)
- func MakeUnbondMsg(unbondMsg types.UnbondMsg, delAddr sdk.AccAddress) (stakingtypes.MsgUndelegate, error)
- func NewCoreModule() core.CoreModule
- func QueryStaking(i core.QueryClient) (string, error)
- type FilePVKey
- type NodeKey
- type StakingExternal
- func (e StakingExternal) CreateValidator(createValidatorMsg types.CreateValidatorMsg) provider.XplaClient
- func (e StakingExternal) Delegate(delegateMsg types.DelegateMsg) provider.XplaClient
- func (e StakingExternal) EditValidator(editValidatorMsg types.EditValidatorMsg) provider.XplaClient
- func (e StakingExternal) HistoricalInfo(historicalInfoMsg types.HistoricalInfoMsg) provider.XplaClient
- func (e StakingExternal) QueryDelegation(queryDelegationMsg types.QueryDelegationMsg) provider.XplaClient
- func (e StakingExternal) QueryRedelegation(queryRedelegationMsg types.QueryRedelegationMsg) provider.XplaClient
- func (e StakingExternal) QueryUnbondingDelegation(queryUnbondingDelegationMsg types.QueryUnbondingDelegationMsg) provider.XplaClient
- func (e StakingExternal) QueryValidators(queryValidatorMsg ...types.QueryValidatorMsg) provider.XplaClient
- func (e StakingExternal) Redelegate(redelegateMsg types.RedelegateMsg) provider.XplaClient
- func (e StakingExternal) StakingParams() provider.XplaClient
- func (e StakingExternal) StakingPool() provider.XplaClient
- func (e StakingExternal) Unbond(unbondMsg types.UnbondMsg) provider.XplaClient
Constants ¶
const ( StakingModule = "staking" StakingCreateValidatorMsgType = "create-validator" StakingEditValidatorMsgType = "edit-validator" StakingDelegateMsgType = "delegate" StakingRedelegateMsgType = "redelegate" StakingUnbondMsgType = "unbond" StakingQueryValidatorMsgType = "query-validator" StakingQueryValidatorsMsgType = "query-validators" StakingQueryDelegationMsgType = "query-delegation" StakingQueryDelegationsMsgType = "query-delegations" StakingQueryDelegationsToMsgType = "query-delegations-to" StakingQueryUnbondingDelegationMsgType = "query-unbonding-delegation" StakingQueryUnbondingDelegationsMsgType = "query-unbonding-delegations" StakingQueryUnbondingDelegationsFromMsgType = "query-unbonding-delegations-from" StakingQueryRedelegationMsgType = "query-redelegation" StakingQueryRedelegationsMsgType = "query-redelegations" StakingQueryRedelegationsFromMsgType = "query-redelegations-from" StakingHistoricalInfoMsgType = "historical-info" StakingQueryStakingPoolMsgType = "query-staking-pool" StakingQueryStakingParamsMsgType = "query-staking-params" )
Variables ¶
This section is empty.
Functions ¶
func MakeCreateValidatorMsg ¶
func MakeCreateValidatorMsg(createValidatorMsg types.CreateValidatorMsg, from sdk.AccAddress, output string) (sdk.Msg, error)
(Tx) make msg - create validator
func MakeDelegateMsg ¶
func MakeDelegateMsg(delegateMsg types.DelegateMsg, delAddr sdk.AccAddress) (stakingtypes.MsgDelegate, error)
(Tx) make msg - delegate
func MakeEditValidatorMsg ¶
func MakeEditValidatorMsg(editValidatorMsg types.EditValidatorMsg, addr sdk.AccAddress) (stakingtypes.MsgEditValidator, error)
(Tx) make msg - edit validator
func MakeHistoricalInfoMsg ¶
func MakeHistoricalInfoMsg(historicalInfoMsg types.HistoricalInfoMsg) (stakingtypes.QueryHistoricalInfoRequest, error)
(Query) make msg - historical
func MakeQueryDelegationMsg ¶
func MakeQueryDelegationMsg(queryDelegationMsg types.QueryDelegationMsg) (stakingtypes.QueryDelegationRequest, error)
(Query) make msg - query delegation
func MakeQueryDelegationsMsg ¶
func MakeQueryDelegationsMsg(queryDelegationMsg types.QueryDelegationMsg) (stakingtypes.QueryDelegatorDelegationsRequest, error)
(Query) make msg - query delegations
func MakeQueryDelegationsToMsg ¶
func MakeQueryDelegationsToMsg(queryDelegationMsg types.QueryDelegationMsg) (stakingtypes.QueryValidatorDelegationsRequest, error)
(Query) make msg - query delegations to
func MakeQueryRedelegationMsg ¶
func MakeQueryRedelegationMsg(queryRedelegationMsg types.QueryRedelegationMsg) (stakingtypes.QueryRedelegationsRequest, error)
(Query) make msg - query redelegation
func MakeQueryRedelegationsFromMsg ¶
func MakeQueryRedelegationsFromMsg(queryRedelegationMsg types.QueryRedelegationMsg) (stakingtypes.QueryRedelegationsRequest, error)
(Query) make msg - query redelegations from
func MakeQueryRedelegationsMsg ¶
func MakeQueryRedelegationsMsg(queryRedelegationMsg types.QueryRedelegationMsg) (stakingtypes.QueryRedelegationsRequest, error)
(Query) make msg - query redelegations
func MakeQueryStakingParamsMsg ¶
func MakeQueryStakingParamsMsg() (stakingtypes.QueryParamsRequest, error)
(Query) make msg - staking params
func MakeQueryStakingPoolMsg ¶
func MakeQueryStakingPoolMsg() (stakingtypes.QueryPoolRequest, error)
(Query) make msg - staking pool
func MakeQueryUnbondingDelegationMsg ¶
func MakeQueryUnbondingDelegationMsg(queryUnbondingDelegationMsg types.QueryUnbondingDelegationMsg) (stakingtypes.QueryUnbondingDelegationRequest, error)
(Query) make msg - query unbonding delegation
func MakeQueryUnbondingDelegationsFromMsg ¶
func MakeQueryUnbondingDelegationsFromMsg(queryUnbondingDelegationMsg types.QueryUnbondingDelegationMsg) (stakingtypes.QueryValidatorUnbondingDelegationsRequest, error)
(Query) make msg - query unbonding delegations from
func MakeQueryUnbondingDelegationsMsg ¶
func MakeQueryUnbondingDelegationsMsg(queryUnbondingDelegationMsg types.QueryUnbondingDelegationMsg) (stakingtypes.QueryDelegatorUnbondingDelegationsRequest, error)
(Query) make msg - query unbonding delegations
func MakeQueryValidatorMsg ¶
func MakeQueryValidatorMsg(queryValidatorMsg types.QueryValidatorMsg) (stakingtypes.QueryValidatorRequest, error)
(Query) make msg - validator
func MakeQueryValidatorsMsg ¶
func MakeQueryValidatorsMsg() (stakingtypes.QueryValidatorsRequest, error)
(Query) make msg - validators
func MakeRedelegateMsg ¶
func MakeRedelegateMsg(redelegateMsg types.RedelegateMsg, delAddr sdk.AccAddress) (stakingtypes.MsgBeginRedelegate, error)
(Tx) make msg - redelegate
func MakeUnbondMsg ¶
func MakeUnbondMsg(unbondMsg types.UnbondMsg, delAddr sdk.AccAddress) (stakingtypes.MsgUndelegate, error)
(Tx) make msg - unbond
func NewCoreModule ¶ added in v0.1.2
func NewCoreModule() core.CoreModule
func QueryStaking ¶
func QueryStaking(i core.QueryClient) (string, error)
Query client for staking module.
Types ¶
type StakingExternal ¶ added in v0.1.2
type StakingExternal struct {
Xplac provider.XplaClient
}
func NewStakingExternal ¶ added in v0.1.2
func NewStakingExternal(xplac provider.XplaClient) (e StakingExternal)
func (StakingExternal) CreateValidator ¶ added in v0.1.2
func (e StakingExternal) CreateValidator(createValidatorMsg types.CreateValidatorMsg) provider.XplaClient
Create new validator initialized with a self-delegation to it.
func (StakingExternal) Delegate ¶ added in v0.1.2
func (e StakingExternal) Delegate(delegateMsg types.DelegateMsg) provider.XplaClient
Delegate liquid tokens to a validator.
func (StakingExternal) EditValidator ¶ added in v0.1.2
func (e StakingExternal) EditValidator(editValidatorMsg types.EditValidatorMsg) provider.XplaClient
Edit an existing validator account.
func (StakingExternal) HistoricalInfo ¶ added in v0.1.2
func (e StakingExternal) HistoricalInfo(historicalInfoMsg types.HistoricalInfoMsg) provider.XplaClient
Query historical info at given height.
func (StakingExternal) QueryDelegation ¶ added in v0.1.2
func (e StakingExternal) QueryDelegation(queryDelegationMsg types.QueryDelegationMsg) provider.XplaClient
Query a delegation based on address and validator address, all out going redelegations from a validator or all delegations made by on delegator.
func (StakingExternal) QueryRedelegation ¶ added in v0.1.2
func (e StakingExternal) QueryRedelegation(queryRedelegationMsg types.QueryRedelegationMsg) provider.XplaClient
Query a redelegation record based on delegator and a source and destination validator. Also, query all outgoing redelegatations from a validator or all redelegations records for one delegator.
func (StakingExternal) QueryUnbondingDelegation ¶ added in v0.1.2
func (e StakingExternal) QueryUnbondingDelegation(queryUnbondingDelegationMsg types.QueryUnbondingDelegationMsg) provider.XplaClient
Query all unbonding delegatations from a validator, an unbonding-delegation record based on delegator and validator address or all unbonding-delegations records for one delegator.
func (StakingExternal) QueryValidators ¶ added in v0.1.2
func (e StakingExternal) QueryValidators(queryValidatorMsg ...types.QueryValidatorMsg) provider.XplaClient
Query a validator or for all validators.
func (StakingExternal) Redelegate ¶ added in v0.1.2
func (e StakingExternal) Redelegate(redelegateMsg types.RedelegateMsg) provider.XplaClient
Redelegate illiquid tokens from one validator to another.
func (StakingExternal) StakingParams ¶ added in v0.1.2
func (e StakingExternal) StakingParams() provider.XplaClient
Query the current staking parameters information.
func (StakingExternal) StakingPool ¶ added in v0.1.2
func (e StakingExternal) StakingPool() provider.XplaClient
Query the current staking pool values.
func (StakingExternal) Unbond ¶ added in v0.1.2
func (e StakingExternal) Unbond(unbondMsg types.UnbondMsg) provider.XplaClient
Unbond shares from a validator.