Documentation
¶
Index ¶
- func CreateConsensusAuthCoinInfoCmd(client *client.CommandLineClient)
- func CreateExploreAuthCoinInfoCmd(client *client.CommandLineClient)
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConsensusAuthCoinInfoCmd ¶
func CreateConsensusAuthCoinInfoCmd(client *client.CommandLineClient)
CreateConsensusAuthCoinInfoCmd creates and attached the multi-use auth-coin-info fetch command to the root consensus cmd.
func CreateExploreAuthCoinInfoCmd ¶
func CreateExploreAuthCoinInfoCmd(client *client.CommandLineClient)
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)
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(cli *client.CommandLineClient) *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(cli *client.CommandLineClient) *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