Documentation ¶
Index ¶
- type DepositFundsToNFTOption
- func AccessManaPledgeID(nodeID string) DepositFundsToNFTOption
- func Alias(aliasID string) DepositFundsToNFTOption
- func Amount(amount map[ledgerstate.Color]uint64) DepositFundsToNFTOption
- func ConsensusManaPledgeID(nodeID string) DepositFundsToNFTOption
- func WaitForConfirmation(wait bool) DepositFundsToNFTOption
- type DepositFundsToNFTOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DepositFundsToNFTOption ¶
type DepositFundsToNFTOption func(options *DepositFundsToNFTOptions) error
DepositFundsToNFTOption is a function that provides options.
func AccessManaPledgeID ¶
func AccessManaPledgeID(nodeID string) DepositFundsToNFTOption
AccessManaPledgeID is an option for SendFunds call that defines the nodeID to pledge access mana to.
func Alias ¶
func Alias(aliasID string) DepositFundsToNFTOption
Alias specifies which alias to transfer.
func Amount ¶
func Amount(amount map[ledgerstate.Color]uint64) DepositFundsToNFTOption
Amount sets how much funds should be withdrew.
func ConsensusManaPledgeID ¶
func ConsensusManaPledgeID(nodeID string) DepositFundsToNFTOption
ConsensusManaPledgeID is an option for SendFunds call that defines the nodeID to pledge consensus mana to.
func WaitForConfirmation ¶
func WaitForConfirmation(wait bool) DepositFundsToNFTOption
WaitForConfirmation defines if the call should wait for confirmation before it returns.
type DepositFundsToNFTOptions ¶
type DepositFundsToNFTOptions struct { Amount map[ledgerstate.Color]uint64 Alias *ledgerstate.AliasAddress AccessManaPledgeID string ConsensusManaPledgeID string WaitForConfirmation bool }
DepositFundsToNFTOptions is a struct that is used to aggregate the optional parameters in the DepositFundsToNFT call.
func Build ¶
func Build(options ...DepositFundsToNFTOption) (result *DepositFundsToNFTOptions, err error)
Build build the options.
Click to show internal directories.
Click to hide internal directories.