invoke

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CashOutCheque

func CashOutCheque(cli *client.Client, con util.Uint160, p *ChequeParams) error

CashOutCheque invokes Cheque method.

func Epoch

func Epoch(cli *client.Client, con util.Uint160) (int64, error)

Epoch return epoch value from contract.

func IsInnerRing

func IsInnerRing(cli *client.Client, con util.Uint160, key *ecdsa.PublicKey) (bool, error)

IsInnerRing returns true if 'key' is presented in inner ring list.

func LockAsset

func LockAsset(cli *client.Client, con util.Uint160, p *LockParams) error

LockAsset invokes Lock method.

func SetNewEpoch

func SetNewEpoch(cli *client.Client, con util.Uint160, epoch uint64) error

SetNewEpoch invokes NewEpoch method.

func TransferBalanceX

func TransferBalanceX(cli *client.Client, con util.Uint160, p *TransferXParams) error

TransferBalanceX invokes transferX method.

Types

type ChequeParams

type ChequeParams struct {
	ID          []byte
	Amount      int64 // Fixed8
	User        util.Uint160
	LockAccount util.Uint160
}

ChequeParams for CashOutCheque 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 TransferXParams

type TransferXParams struct {
	Sender   []byte
	Receiver []byte
	Amount   int64 // in Fixed16
	Comment  []byte
}

TransferXParams for TransferBalanceX invocation.

Jump to

Keyboard shortcuts

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