Mints an asset to an account if the caller is the asset owner Attempting to mint ROOT token will throw an errorNamespace
api.tx.assetsExt.mint
Type
function mint( asset_id: u32, beneficiary: SeedPrimitivesSignatureAccountId20, amount: Compact<u128>)
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 filteredNamespace
api.tx.assetsExt.setAssetDeposit
Type
function setAssetDeposit( asset_deposit: u128)
transfer
Transfers either ROOT or an assetNamespace
api.tx.assetsExt.transfer
Type
function transfer( asset_id: u32, destination: SeedPrimitivesSignatureAccountId20, amount: Compact<u128>, keep_alive: bool)
Storage
assetDeposit
The minimum deposit for creating an assetNamespace
api.query.assetsExt.assetDeposit
Type
function assetDeposit(): u128
holds
The holdings of a specific account for a specific asset.Namespace
api.query.assetsExt.holds
Type
function holds( u32, SeedPrimitivesSignatureAccountId20): Vec<([u8;8],u128)>
nextAssetId
The total units issued in the system.Namespace
api.query.assetsExt.nextAssetId
Type
function nextAssetId(): u32
Events
AssetDepositSet
The asset deposit was setNamespace
api.events.assetsExt.AssetDepositSet
Type
type AssetDepositSet = { asset_deposit: u128}
CreateAsset
New asset has been createdNamespace
api.events.assetsExt.CreateAsset
Type
type CreateAsset = { asset_id: u32, creator: SeedPrimitivesSignatureAccountId20, initial_balance: u128}
InternalDeposit
Assets were deposited into this account by the system e.g. refunding gasNamespace
api.events.assetsExt.InternalDeposit
Type
type InternalDeposit = { asset_id: u32, who: SeedPrimitivesSignatureAccountId20, amount: u128}
InternalWithdraw
Assets were withdrawn from this account by the system e.g. paying tx feesNamespace
api.events.assetsExt.InternalWithdraw
Type
type InternalWithdraw = { asset_id: u32, who: SeedPrimitivesSignatureAccountId20, amount: u128}
PlaceHold
Some assets have been placed on hold by a palletNamespace