AssetsExt
Calls
burnFrom
Burns an asset from an account. Caller must be the asset owner Attempting to burn ROOT token will throw an error
Namespace
Type
createAsset
Creates a new asset with unique ID according to the network asset id scheme.
Namespace
Type
mint
Mints an asset to an account if the caller is the asset owner Attempting to mint ROOT token will throw an error
Namespace
Type
setAssetDeposit
Sudo call to set the asset deposit for creating assets Note, this does not change the deposit when calling create within the assets pallet However that call is filtered
Namespace
Type
transfer
Transfers either ROOT or an asset
Namespace
Type
Storage
assetDeposit
The minimum deposit for creating an asset
Namespace
Type
holds
The holdings of a specific account for a specific asset.
Namespace
Type
nextAssetId
The total units issued in the system.
Namespace
Type
Events
AssetDepositSet
The asset deposit was set
Namespace
Type
CreateAsset
New asset has been created
Namespace
Type
InternalDeposit
Assets were deposited into this account by the system e.g. refunding gas
Namespace
Type
InternalWithdraw
Assets were withdrawn from this account by the system e.g. paying tx fees
Namespace
Type
PlaceHold
Some assets have been placed on hold by a pallet
Namespace
Type
ReleaseHold
Some held assets have been released by a pallet
Namespace
Type
SpendHold
Some held assets were spend by a pallet
Namespace
Type
SplitTransfer
Multi-part transfer of assets from who
Namespace
Type
Errors
BalanceLow
Hold balance is less then the required amount
Namespace
CreateAssetFailed
Failed to create a new asset
Namespace
DecimalsTooHigh
Decimals cannot be higher than 18
Namespace
MaxHolds
Maximum holds placed on this asset/account pair
Namespace
NoAccount
The account to alter does not exist
Namespace
NoAvailableIds
No more Ids are available, they've been exhausted
Namespace
NoPermission
The signer does not have permission to perform this action
Namespace
Overflow
Operation would overflow
Namespace
Constants
maxHolds
The maximum * of holds per asset & account
Namespace
Type
nativeAssetId
The native token asset Id (managed by pallet-balances)
Namespace
Type
palletId
This pallet's Id, used for deriving a sovereign account ID
Namespace
Type
Last updated