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: 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 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