client

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

func (c CoreContext) ConstructTendermintTransaction(tx auth.AuthTx) (tdmtx tdmtypes.Tx, err error)

ConstructTendermintTransaction - encode a ShareLedger authTx in Amino and form a Tendermint tx before sending to ShareLedger

func (CoreContext) ConstructTransaction

func (c CoreContext) ConstructTransaction(msg sdk.Msg) (auth.AuthTx, error)

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 (c CoreContext) RegisterValidator(
	amount int64,
	moniker string,
	identity string,
	website string,
	details string,
) error

func (CoreContext) WithdrawBlockReward

func (c CoreContext) WithdrawBlockReward() error

type SHRAccount1

type SHRAccount1 struct {
	Address sdk.AccAddress `json:"address"`
	Coins   types.Coins    `json:"coins"`
	PubKey  []byte         `json:"pub_key"`
	Nonce   int64          `json:"nonce"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL