client

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 13 Imported by: 6 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConsensusAuthCoinInfoCmd

func CreateConsensusAuthCoinInfoCmd(cli *client.CommandLineClient) error

CreateConsensusAuthCoinInfoCmd creates and attached the multi-use auth-coin-info fetch command to the root consensus cmd.

func CreateExploreAuthCoinInfoCmd

func CreateExploreAuthCoinInfoCmd(cli *client.CommandLineClient) error

CreateExploreAuthCoinInfoCmd creates and attached the multi-use auth-coin-info fetch command to the root explore cmd.

func CreateWalletCmds

func CreateWalletCmds(client *client.CommandLineClient, conditionUpdateTransactionVersion, addressUpdateTransactionVersion types.TransactionVersion, opts *WalletCmdsOpts)

CreateWalletCmds creates the auth coin 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) GetActiveAuthCondition

func (cli *PluginClient) GetActiveAuthCondition() (types.UnlockConditionProxy, error)

GetActiveAuthCondition implements authcointx.AuthInfoGetter.GetActiveAuthCondition

func (*PluginClient) GetAddresAuthStateNow

func (cli *PluginClient) GetAddresAuthStateNow(address types.UnlockHash) (bool, error)

GetAddresAuthStateNow provides functionality now required for the AuthInfoGetter, allowing you to request it for a single address

func (*PluginClient) GetAddressAuthStateAt

func (cli *PluginClient) GetAddressAuthStateAt(height types.BlockHeight, address types.UnlockHash) (bool, error)

GetAddressAuthStateAt provides functionality now required for the AuthInfoGetter, allowing you to request it for a single address

func (*PluginClient) GetAddressesAuthStateAt

func (cli *PluginClient) GetAddressesAuthStateAt(height types.BlockHeight, addresses []types.UnlockHash, _ func(index int, state bool) bool) ([]bool, error)

GetAddressesAuthStateAt implements authcointx.AuthInfoGetter.GetAddressesAuthStateAt

func (*PluginClient) GetAddressesAuthStateNow

func (cli *PluginClient) GetAddressesAuthStateNow(addresses []types.UnlockHash, _ func(index int, state bool) bool) ([]bool, error)

GetAddressesAuthStateNow implements authcointx.AuthInfoGetter.GetAddressesAuthStateNow

func (*PluginClient) GetAuthConditionAt

func (cli *PluginClient) GetAuthConditionAt(height types.BlockHeight) (types.UnlockConditionProxy, error)

GetAuthConditionAt implements authcointx.AuthInfoGetter.GetAuthConditionAt

type WalletCmdsOpts added in v1.3.1

type WalletCmdsOpts struct {
	RequireMinerFees bool
}

WalletCmdsOpts defines chain-specific options for the wallet commands

Jump to

Keyboard shortcuts

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