Documentation ¶
Index ¶
- type MintAndRegisterParams
- type Status
- type TokenRegistryClient
- func (trc *TokenRegistryClient) FetchStatus() (*Status, error)
- func (trc *TokenRegistryClient) MintAndRegister(par MintAndRegisterParams) (*sctransaction.Transaction, error)
- func (trc *TokenRegistryClient) OwnerAddress() address.Address
- func (trc *TokenRegistryClient) Query(color *balance.Color) (*tokenregistry.TokenMetadata, error)
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 ¶
func (trc *TokenRegistryClient) MintAndRegister(par MintAndRegisterParams) (*sctransaction.Transaction, error)
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 ¶
func (trc *TokenRegistryClient) Query(color *balance.Color) (*tokenregistry.TokenMetadata, error)
Click to show internal directories.
Click to hide internal directories.