trclient

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0, BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MintAndRegisterParams

type MintAndRegisterParams struct {
	Supply            int64           // number of tokens to mint
	MintTarget        address.Address // where to mint new Supply
	Description       string
	UserDefinedData   []byte
	WaitForCompletion bool
	PublisherHosts    []string
	PublisherQuorum   int
	Timeout           time.Duration // must be enough for confirmation of the request transaction processing of it (>20s)
}

type Status

type Status struct {
	*waspapi.SCStatus

	Registry map[balance.Color]*tokenregistry.TokenMetadata
}

type TokenRegistryClient

type TokenRegistryClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(nodeClient nodeclient.NodeClient, waspHost string, scAddress *address.Address, sigScheme signaturescheme.SignatureScheme) *TokenRegistryClient

func (*TokenRegistryClient) FetchStatus

func (trc *TokenRegistryClient) FetchStatus() (*Status, error)

func (*TokenRegistryClient) MintAndRegister

MintAndRegister mints new Supply of colored tokens to some address and sends request to register it in the TokenRegistry smart contract

func (*TokenRegistryClient) OwnerAddress

func (trc *TokenRegistryClient) OwnerAddress() address.Address

func (*TokenRegistryClient) Query

Jump to

Keyboard shortcuts

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