Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spender ¶
type Spender interface { // Spend the provided amount while deducting the provided fee. // Arguments: // - [utxos] contains assets ID and amount to be spend for each assestID // - [kc] are the owners of the funds // - [amounts] is the amount of funds that are available to be spent for each assetID // Returns: // - [amountsSpent] the amount of funds that are spent // - [inputs] the inputs that should be consumed to fund the outputs // - [signers] the proof of ownership of the funds being moved Spend( utxos []*Vidar.UTXO, kc *secp256k1fx.Keychain, amounts map[ids.ID]uint64, ) ( map[ids.ID]uint64, []*Vidar.TransferableInput, [][]*secp256k1.PrivateKey, error, ) SpendNFT( utxos []*Vidar.UTXO, kc *secp256k1fx.Keychain, assetID ids.ID, groupID uint32, to ids.ShortID, ) ( []*txs.Operation, [][]*secp256k1.PrivateKey, error, ) SpendAll( utxos []*Vidar.UTXO, kc *secp256k1fx.Keychain, ) ( map[ids.ID]uint64, []*Vidar.TransferableInput, [][]*secp256k1.PrivateKey, error, ) Mint( utxos []*Vidar.UTXO, kc *secp256k1fx.Keychain, amounts map[ids.ID]uint64, to ids.ShortID, ) ( []*txs.Operation, [][]*secp256k1.PrivateKey, error, ) MintNFT( utxos []*Vidar.UTXO, kc *secp256k1fx.Keychain, assetID ids.ID, payload []byte, to ids.ShortID, ) ( []*txs.Operation, [][]*secp256k1.PrivateKey, error, ) }
Click to show internal directories.
Click to hide internal directories.