createnftoptions

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2021 License: Apache-2.0, BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateNFTOption

type CreateNFTOption func(options *CreateNFTOptions) error

CreateNFTOption is a function that provides options.

func AccessManaPledgeID

func AccessManaPledgeID(nodeID string) CreateNFTOption

AccessManaPledgeID is an option for SendFunds call that defines the nodeID to pledge access mana to.

func ConsensusManaPledgeID

func ConsensusManaPledgeID(nodeID string) CreateNFTOption

ConsensusManaPledgeID is an option for SendFunds call that defines the nodeID to pledge consensus mana to.

func ImmutableData

func ImmutableData(data []byte) CreateNFTOption

ImmutableData sets the immutable data field of the freshly created NFT.

func InitialBalance

func InitialBalance(balance map[ledgerstate.Color]uint64) CreateNFTOption

InitialBalance sets the initial balance of the newly created NFT.

func WaitForConfirmation

func WaitForConfirmation(wait bool) CreateNFTOption

WaitForConfirmation defines if the call should wait for confirmation before it returns.

type CreateNFTOptions

type CreateNFTOptions struct {
	InitialBalance        map[ledgerstate.Color]uint64
	ImmutableData         []byte
	AccessManaPledgeID    string
	ConsensusManaPledgeID string
	WaitForConfirmation   bool
}

CreateNFTOptions is a struct that is used to aggregate the optional parameters in the CreateNFT call.

func Build

func Build(options ...CreateNFTOption) (result *CreateNFTOptions, err error)

Build builds the options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL