/** * The IDL of the module. * * @module */ /** The IDL of the module. */ export declare const idl: { readonly module_id: "0x1::aptos_coin"; readonly doc: "This module defines a minimal and generic Coin and Balance.\nmodified from https://github.com/move-language/move/tree/main/language/documentation/tutorial"; readonly functions: readonly [{ readonly name: "mint"; readonly doc: "Only callable in tests and testnets where the core resources account exists.\nCreate new coins and deposit them into dst_addr's account."; readonly ty_args: readonly []; readonly args: readonly [{ readonly name: "dst_addr"; readonly ty: "address"; }, { readonly name: "amount"; readonly ty: "u64"; }]; }, { readonly name: "claim_mint_capability"; readonly doc: "Only callable in tests and testnets where the core resources account exists.\nClaim the delegated mint capability and destroy the delegated token."; readonly ty_args: readonly []; readonly args: readonly []; }, { readonly name: "delegate_mint_capability"; readonly doc: "Only callable in tests and testnets where the core resources account exists.\nCreate delegated token for the address so the account could claim MintCapability later."; readonly ty_args: readonly []; readonly args: readonly [{ readonly name: "to"; readonly ty: "address"; }]; }]; readonly structs: readonly [{ readonly name: "0x1::aptos_coin::AptosCoin"; readonly fields: readonly [{ readonly name: "dummy_field"; readonly ty: "bool"; }]; readonly abilities: readonly ["key"]; }, { readonly name: "0x1::aptos_coin::DelegatedMintCapability"; readonly doc: "Delegation token created by delegator and can be claimed by the delegatee as MintCapability."; readonly fields: readonly [{ readonly name: "to"; readonly ty: "address"; }]; readonly abilities: readonly ["store"]; }, { readonly name: "0x1::aptos_coin::Delegations"; readonly doc: "The container stores the current pending delegations."; readonly fields: readonly [{ readonly name: "inner"; readonly ty: { readonly vector: { readonly struct: { readonly name: "0x1::aptos_coin::DelegatedMintCapability"; }; }; }; }]; readonly abilities: readonly ["key"]; }, { readonly name: "0x1::aptos_coin::MintCapStore"; readonly fields: readonly [{ readonly name: "mint_cap"; readonly ty: { readonly struct: { readonly name: "0x1::coin::MintCapability"; readonly ty_args: readonly [{ readonly struct: { readonly name: "0x1::aptos_coin::AptosCoin"; }; }]; }; }; }]; readonly abilities: readonly ["key"]; }]; readonly errors: { readonly "1": { readonly name: "ENO_CAPABILITIES"; readonly doc: "Account does not have mint capability"; }; readonly "2": { readonly name: "EALREADY_DELEGATED"; readonly doc: "Mint capability has already been delegated to this specified address"; }; readonly "3": { readonly name: "EDELEGATION_NOT_FOUND"; readonly doc: "Cannot find delegation of mint capability to this account"; }; }; }; //# sourceMappingURL=idl.d.ts.map