Documentation ¶
Index ¶
- func AlphabetEmit(cli *client.Client, con util.Uint160) error
- func AlphabetVote(cli *client.Client, con util.Uint160, epoch uint64, keys []keys.PublicKey) error
- func ApprovePeer(cli *client.Client, con util.Uint160, peer []byte) error
- func BalancePrecision(cli *client.Client, con util.Uint160) (uint32, error)
- func Burn(cli *client.Client, con util.Uint160, p *MintBurnParams) error
- func CashOutCheque(cli *client.Client, con util.Uint160, p *ChequeParams) error
- func Epoch(cli *client.Client, con util.Uint160) (int64, error)
- func InnerRingIndex(cli *client.Client, con util.Uint160, key *ecdsa.PublicKey) (int32, error)
- func IsInnerRing(cli *client.Client, con util.Uint160, key *ecdsa.PublicKey) (bool, error)
- func LockAsset(cli *client.Client, con util.Uint160, p *LockParams) error
- func Mint(cli *client.Client, con util.Uint160, p *MintBurnParams) error
- func NetmapSnapshot(cli *client.Client, con util.Uint160) (*netmap.Netmap, error)
- func RegisterContainer(cli *client.Client, con util.Uint160, p *ContainerParams) error
- func RemoveContainer(cli *client.Client, con util.Uint160, p *RemoveContainerParams) error
- func SetConfig(cli *client.Client, con util.Uint160, args *SetConfigArgs) error
- func SetNewEpoch(cli *client.Client, con util.Uint160, epoch uint64) error
- func TransferBalanceX(cli *client.Client, con util.Uint160, p *TransferXParams) error
- func UpdateInnerRing(cli *client.Client, con util.Uint160, list []*keys.PublicKey) error
- func UpdatePeerState(cli *client.Client, con util.Uint160, args *UpdatePeerArgs) error
- type ChequeParams
- type ContainerParams
- type LockParams
- type MintBurnParams
- type RemoveContainerParams
- type SetConfigArgs
- type TransferXParams
- type UpdatePeerArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlphabetEmit ¶ added in v0.12.0
AlphabetEmit invokes emit method on alphabet contract.
func AlphabetVote ¶ added in v0.13.0
AlphabetVote invokes vote method on alphabet contract.
func ApprovePeer ¶ added in v0.12.0
ApprovePeer invokes addPeer method.
func BalancePrecision ¶ added in v0.12.0
BalancePrecision invokes Decimal method that returns precision of NEP-5 contract.
func CashOutCheque ¶
CashOutCheque invokes Cheque method.
func InnerRingIndex ¶ added in v0.12.0
InnerRingIndex returns index of the `key` in the inner ring list from sidechain. If key is not in the inner ring list, then returns `-1`.
func IsInnerRing ¶
IsInnerRing returns true if 'key' is presented in inner ring list.
func NetmapSnapshot ¶ added in v0.12.0
NetmapSnapshot returns current netmap node infos. Consider using pkg/morph/client/netmap for this.
func RegisterContainer ¶ added in v0.12.0
RegisterContainer invokes Put method.
func RemoveContainer ¶ added in v0.12.0
RegisterContainer invokes Delete method.
func SetNewEpoch ¶
SetNewEpoch invokes newEpoch method.
func TransferBalanceX ¶
TransferBalanceX invokes transferX method.
func UpdateInnerRing ¶ added in v0.12.0
UpdateInnerRing invokes updateInnerRing method.
func UpdatePeerState ¶ added in v0.12.0
UpdatePeerState invokes addPeer method.
Types ¶
type ChequeParams ¶
type ChequeParams struct { ID []byte Amount int64 // Fixed8 User util.Uint160 LockAccount util.Uint160 }
ChequeParams for CashOutCheque invocation.
type ContainerParams ¶ added in v0.12.0
ContainerParams for container put invocation.
type LockParams ¶
type LockParams struct { ID []byte User util.Uint160 LockAccount util.Uint160 Amount int64 // in Fixed16 Until uint64 // epochs }
LockParams for LockAsset invocation.
type MintBurnParams ¶ added in v0.12.0
MintBurnParams for Mint and Burn invocations.
type RemoveContainerParams ¶ added in v0.12.0
ContainerParams for container put invocation.