package
1.4.0-rc.2
Repository: https://github.com/iotaledger/wasp.git
Documentation: pkg.go.dev

# Functions

Nonce returns the "total request count" for an account (it's the AccountNonce that is expected in the next request).
No description provided by the author
converts an account key from the accounts contract (shortform without chainID) to an AgentID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CreditNFTToAccount credits an NFT to the on chain ledger.
CreditToAccount brings new funds to the on chain ledger NOTE: this function does not take NFTs into account.
No description provided by the author
DebitFromAccount takes out assets balance the on chain ledger.
DebitFromAccountFullDecimals removes the amount from the chain ledger.
DebitNFTFromAccount removes an NFT from an account.
DeleteFoundryOutput deletes foundry output from the map of all foundries.
No description provided by the author
No description provided by the author
GetAccountFungibleTokens returns all fungible tokens belonging to the agentID on the state.
GetAccountNFTs returns all NFTs belonging to the agentID on the state.
No description provided by the author
No description provided by the author
No description provided by the author
GetFoundryOutput returns foundry output, its block number and output index.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HasEnoughForAllowance checks whether an account has enough balance to cover for the allowance.
No description provided by the author
MoveBetweenAccounts moves assets between on-chain accounts.
MoveFoundryBetweenAccounts changes ownership of the foundry.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SaveFoundryOutput stores foundry output into the map of all foundry outputs (compressed form).
No description provided by the author
SaveNativeTokenOutput map nativeTokenID -> foundryRec.
No description provided by the author
this expects the origin amount minus SD.
No description provided by the author

# Constants

L2TotalsAccount is the special <accountID> storing the total fungible tokens controlled by the chain Covered in: TestFoundries.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
request parameters.
PrefixFoundries + <agentID> stores a map of <foundrySN> (uint32) => true Covered in: TestFoundries.
prefixBaseTokens | <accountID> stores a map of <nativeTokenID> => big.Int Covered in: TestFoundries.
PrefixNFTs | <agentID> stores a map of <NFTID> => true Covered in: TestDepositNFTWithMinStorageDeposit.
PrefixNFTsByCollection | <agentID> | <collectionID> stores a map of <nftID> => true Covered in: TestNFTMint Covered in: TestDepositNFTWithMinStorageDeposit.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Funcs.
Kept for compatibility reasons.
No description provided by the author
.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Views.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author