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: 11 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConsensusCmd

func CreateConsensusCmd(cli *client.CommandLineClient) error

CreateConsensusCmd adds the consensus cli subcommands for the minting plugin

func CreateExploreCmd

func CreateExploreCmd(cli *client.CommandLineClient) error

CreateExploreCmd adds the explorer clisubcommands for the minting plugin

func CreateWalletCmds

func CreateWalletCmds(ccli *client.CommandLineClient, mintingDefinitionTxVersion, coinCreationTxVersion types.TransactionVersion, opts *WalletCmdsOpts) error

CreateWalletCmds adds the wallet cli subcommands for the minting plugin

Types

type PluginClient

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

PluginClient is used to be able to get the active mint condition, and the active mint condition at a given block height, such that the CLI can correctly validate a mint condition, without requiring access to the consensus-extended transactiondb, normally the validation isn't required on the client side, but it is possible none the less.

func NewPluginConsensusClient

func NewPluginConsensusClient(cli client.BaseClient) *PluginClient

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

func NewPluginExplorerClient

func NewPluginExplorerClient(cli client.BaseClient) *PluginClient

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

func (*PluginClient) GetActiveMintCondition

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

GetActiveMintCondition implements minting.MintConditionGetter.GetActiveMintCondition

func (*PluginClient) GetMintConditionAt

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

GetMintConditionAt implements minting.MintConditionGetter.GetMintConditionAt

type WalletCmdsOpts

type WalletCmdsOpts struct {
	CoinDestructionTxVersion types.TransactionVersion
	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