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 []*avax.UTXO,
kc *secp256k1fx.Keychain,
amounts map[ids.ID]uint64,
) (
map[ids.ID]uint64,
[]*avax.TransferableInput,
[][]*secp256k1.PrivateKey,
error,
)
SpendNFT(
utxos []*avax.UTXO,
kc *secp256k1fx.Keychain,
assetID ids.ID,
groupID uint32,
to ids.ShortID,
) (
[]*txs.Operation,
[][]*secp256k1.PrivateKey,
error,
)
SpendAll(
utxos []*avax.UTXO,
kc *secp256k1fx.Keychain,
) (
map[ids.ID]uint64,
[]*avax.TransferableInput,
[][]*secp256k1.PrivateKey,
error,
)
Mint(
utxos []*avax.UTXO,
kc *secp256k1fx.Keychain,
amounts map[ids.ID]uint64,
to ids.ShortID,
) (
[]*txs.Operation,
[][]*secp256k1.PrivateKey,
error,
)
MintNFT(
utxos []*avax.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.