staking

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateParseArgs

func CreateParseArgs(selfDelegation int64, rate, maxRate, maxChangeRate int64) (sdk.Int, sdk.Dec, sdk.Dec, sdk.Dec)

func HttpDelegateTx

func HttpDelegateTx(from, gas, nonce, amount, priv, validatorAddr, delegatorAddr, proxy, reqUrl string)

func HttpRedelegateTx

func HttpRedelegateTx(from, gas, nonce, amount, priv, validatorSrcAddr, validatorDstAddr, delegatorAddr, proxy, reqUrl string)

func HttpUndelegateTx

func HttpUndelegateTx(from, gas, nonce, amount, priv, validatorAddr, delegatorAddr, proxy, reqUrl string)

func NewDelegateMsg

func NewDelegateMsg(from, delegatorAddress, validatorAddress sdk.AccAddress, amount sdk.Coin) []byte

func NewEditValidatorMsg

func NewEditValidatorMsg(from sdk.AccAddress, desc types.Description, nrArg *sdk.Dec, minArg *sdk.Int) []byte

func NewRedelegateMsg

func NewRedelegateMsg(from, delegatorAddress, validatorSrcAddress, validatorDstAddress sdk.AccAddress, amt sdk.Coin) []byte

func NewUndelegateMsg

func NewUndelegateMsg(from, validatorAddress, delegatorAddress sdk.AccAddress, amt sdk.Coin) []byte

func SignCreateValidatorMSg

func SignCreateValidatorMSg(from sdk.AccAddress, gas, nonce uint64, amount sdk.Coin, priv string, minSelfDelegation int64,
	validatorAddress, delegatorAddress sdk.AccAddress, rate, maxRate, maxChangeRate int64,
	moniker, identity, website, securityContact, details string, publicKey string) ([]byte, error)

func SignDelegateMsg

func SignDelegateMsg(from sdk.AccAddress, gas, nonce uint64, amount sdk.Coin, priv string, validatorAddress, delegatorAddress sdk.AccAddress) ([]byte, error)

func SignEditValidator

func SignEditValidator(from sdk.AccAddress, gas, nonce uint64, priv, moniker, identity, website, secu, details string,
	minSelfDelegation, newRate int64) ([]byte, error)

func SignRedelegateMsg

func SignRedelegateMsg(from sdk.AccAddress, gas, nonce uint64, amount sdk.Coin, priv string, validatorSrcAddress,
	validatorDstAddress, delegatorAddress sdk.AccAddress) ([]byte, error)

func SignUndelegateMsg

func SignUndelegateMsg(from sdk.AccAddress, gas, nonce uint64, amount sdk.Coin, priv string, validatorAddress, delegatorAddress sdk.AccAddress) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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