Documentation
¶
Index ¶
- func CreateConsensusAuthCoinInfoCmd(cli *client.CommandLineClient) error
- func CreateExploreAuthCoinInfoCmd(cli *client.CommandLineClient) error
- func CreateWalletCmds(client *client.CommandLineClient, ...)
- type PluginClient
- func (cli *PluginClient) GetActiveAuthCondition() (types.UnlockConditionProxy, error)
- func (cli *PluginClient) GetAddresAuthStateNow(address types.UnlockHash) (bool, error)
- func (cli *PluginClient) GetAddressAuthStateAt(height types.BlockHeight, address types.UnlockHash) (bool, error)
- func (cli *PluginClient) GetAddressesAuthStateAt(height types.BlockHeight, addresses []types.UnlockHash, ...) ([]bool, error)
- func (cli *PluginClient) GetAddressesAuthStateNow(addresses []types.UnlockHash, _ func(index int, state bool) bool) ([]bool, error)
- func (cli *PluginClient) GetAuthConditionAt(height types.BlockHeight) (types.UnlockConditionProxy, error)
- type WalletCmdsOpts
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