Documentation ¶
Index ¶
- func CreateERC20Cmd(client *client.CommandLineClient) *cobra.Command
- func CreateWalletCmds(ccli *client.CommandLineClient, txVersions erc20types.TransactionVersions) error
- type PluginClient
- func (client *PluginClient) GetERC20AddressForTFTAddress(uh types.UnlockHash) (erc20types.ERC20Address, bool, error)
- func (client *PluginClient) GetTFTAddressForERC20Address(addr erc20types.ERC20Address) (types.UnlockHash, bool, error)
- func (client *PluginClient) GetTFTTransactionIDForERC20TransactionID(hash erc20types.ERC20Hash) (types.TransactionID, bool, error)
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)