account

package
v0.0.0-...-ae2c35d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	DeployModule(ctx *Context, wasm io.Reader) (cc.ModuleRef, error)

	InitContract(ctx *Context, moduleRef cc.ModuleRef, name cc.ContractName, params ...any) (*cc.ContractAddress, error)

	UpdateContract(ctx *Context, contractAddress *cc.ContractAddress, receiveName cc.ReceiveName, amount *cc.Amount, params ...any) (any, error)

	SimpleTransfer(ctx *Context, to cc.AccountAddress, amount *cc.Amount) error
	SimpleTransferAsync(ctx *Context, to cc.AccountAddress, amount *cc.Amount) (cc.TransactionHash, error)
}

func NewClient

func NewClient(cli cc.Client) Client

type Context

type Context struct {
	Context     context.Context
	NetworkId   cc.NetworkId
	Credentials cc.Credentials
	Sender      cc.AccountAddress
	Expiry      time.Time
}

Jump to

Keyboard shortcuts

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