Documentation ¶
Index ¶
- type CoreContext
- func (c CoreContext) BeginUnbonding(amount int64) error
- func (c CoreContext) CheckBalance() error
- func (c CoreContext) CheckValidatorDistInfo() error
- func (c CoreContext) CompleteUnbonding() error
- func (c CoreContext) ConstructTendermintTransaction(tx auth.AuthTx) (tdmtx tdmtypes.Tx, err error)
- func (c CoreContext) ConstructTransaction(msg sdk.Msg) (auth.AuthTx, error)
- func (c CoreContext) GetNonce() (int64, error)
- func (c CoreContext) LoadBalance(amount int64, denom string) error
- func (c CoreContext) RegisterValidator(amount int64, moniker string, identity string, website string, details string) error
- func (c CoreContext) WithdrawBlockReward() error
- type SHRAccount1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreContext ¶
type CoreContext struct { Client rpcclient.Client PrivKey types.PrivKeySecp256k1 Codec *amino.Codec }
func NewCoreContextFromConfig ¶
func NewCoreContextFromConfig(config *cfg.Config) CoreContext
func NewCoreContextFromConfigWithClient ¶
func NewCoreContextFromConfigWithClient(config *cfg.Config, client string) CoreContext
func (CoreContext) BeginUnbonding ¶
func (c CoreContext) BeginUnbonding(amount int64) error
func (CoreContext) CheckBalance ¶
func (c CoreContext) CheckBalance() error
func (CoreContext) CheckValidatorDistInfo ¶
func (c CoreContext) CheckValidatorDistInfo() error
func (CoreContext) CompleteUnbonding ¶
func (c CoreContext) CompleteUnbonding() error
func (CoreContext) ConstructTendermintTransaction ¶
ConstructTendermintTransaction - encode a ShareLedger authTx in Amino and form a Tendermint tx before sending to ShareLedger
func (CoreContext) ConstructTransaction ¶
func (CoreContext) GetNonce ¶
func (c CoreContext) GetNonce() (int64, error)
func (CoreContext) LoadBalance ¶
func (c CoreContext) LoadBalance(amount int64, denom string) error
func (CoreContext) RegisterValidator ¶
func (CoreContext) WithdrawBlockReward ¶
func (c CoreContext) WithdrawBlockReward() error
type SHRAccount1 ¶
Click to show internal directories.
Click to hide internal directories.