client

package
v0.0.0-...-5ade1b4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateERC20Cmd

func CreateERC20Cmd(client *client.CommandLineClient) *cobra.Command

CreateERC20Cmd creates rootcommand for ERC20 and adds a subcommand if rootcommand executed the user will also see the output of the syncing status of ethereum

func CreateWalletCmds

func CreateWalletCmds(ccli *client.CommandLineClient, txVersions erc20types.TransactionVersions) error

CreateWalletCmds creates the ERC20 wallet root command as well as its transaction creation sub commands.

Types

type PluginClient

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

PluginClient is used to be able to get auth information from a daemon that has the authcointx extension enabled and running.

func NewPluginConsensusClient

func NewPluginConsensusClient(bc client.BaseClient) *PluginClient

NewPluginConsensusClient creates a new PluginClient, that can be used for easy interaction with the API exposed via the Consensus endpoints

func NewPluginExplorerClient

func NewPluginExplorerClient(bc client.BaseClient) *PluginClient

NewPluginExplorerClient creates a new PluginClient, that can be used for easy interaction with the API exposed via the Explorer endpoints

func (*PluginClient) GetERC20AddressForTFTAddress

func (client *PluginClient) GetERC20AddressForTFTAddress(uh types.UnlockHash) (erc20types.ERC20Address, bool, error)

func (*PluginClient) GetTFTAddressForERC20Address

func (client *PluginClient) GetTFTAddressForERC20Address(addr erc20types.ERC20Address) (types.UnlockHash, bool, error)

func (*PluginClient) GetTFTTransactionIDForERC20TransactionID

func (client *PluginClient) GetTFTTransactionIDForERC20TransactionID(hash erc20types.ERC20Hash) (types.TransactionID, bool, error)

Jump to

Keyboard shortcuts

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