Documentation ¶
Index ¶
- type TransferNFTOption
- func AccessManaPledgeID(nodeID string) TransferNFTOption
- func Alias(aliasID string) TransferNFTOption
- func ConsensusManaPledgeID(nodeID string) TransferNFTOption
- func ResetDelegation(reset bool) TransferNFTOption
- func ResetStateAddress(reset bool) TransferNFTOption
- func ToAddress(address string) TransferNFTOption
- func WaitForConfirmation(wait bool) TransferNFTOption
- type TransferNFTOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransferNFTOption ¶
type TransferNFTOption func(options *TransferNFTOptions) error
TransferNFTOption is a function that provides an option.
func AccessManaPledgeID ¶
func AccessManaPledgeID(nodeID string) TransferNFTOption
AccessManaPledgeID is an option for SendFunds call that defines the nodeID to pledge access mana to.
func ConsensusManaPledgeID ¶
func ConsensusManaPledgeID(nodeID string) TransferNFTOption
ConsensusManaPledgeID is an option for SendFunds call that defines the nodeID to pledge consensus mana to.
func ResetDelegation ¶
func ResetDelegation(reset bool) TransferNFTOption
ResetDelegation defines if the output's delegation staus should be reset.
func ResetStateAddress ¶
func ResetStateAddress(reset bool) TransferNFTOption
ResetStateAddress defines if the state address should be set to ToAddress as well, or not.
func ToAddress ¶
func ToAddress(address string) TransferNFTOption
ToAddress specifies the new governor of the alias.
func WaitForConfirmation ¶
func WaitForConfirmation(wait bool) TransferNFTOption
WaitForConfirmation defines if the call should wait for confirmation before it returns.
type TransferNFTOptions ¶
type TransferNFTOptions struct { AccessManaPledgeID string ConsensusManaPledgeID string Alias *devnetvm.AliasAddress ToAddress devnetvm.Address WaitForConfirmation bool ResetStateAddress bool ResetDelegation bool }
TransferNFTOptions is a struct that is used to aggregate the optional parameters in the TransferNFT call.
func Build ¶
func Build(options ...TransferNFTOption) (result *TransferNFTOptions, err error)
Build build the options.