/** * This module defines a minimal and generic Coin and Balance. * modified from https://github.com/move-language/move/tree/main/language/documentation/tutorial * * **Module ID:** `0x1::aptos_coin` * * @module */ import type * as p from "@movingco/prelude"; /** * Delegation token created by delegator and can be claimed by the delegatee as MintCapability. * * Type name: `0x1::aptos_coin::DelegatedMintCapability` */ export interface IDelegatedMintCapability { to: p.RawAddress; } /** * The container stores the current pending delegations. * * Type name: `0x1::aptos_coin::Delegations` */ export interface IDelegations { inner: ReadonlyArray<{ to: p.RawAddress; }>; } /** Type name: `0x1::aptos_coin::MintCapStore` */ export interface IMintCapStore { mint_cap: { dummy_field: boolean; }; } /** Payload arguments for {@link entry.mint}. */ export declare type MintArgs = { args: { /** IDL type: `Address` */ dst_addr: p.RawAddress; /** IDL type: `U64` */ amount: p.U64; }; }; /** Payload arguments for {@link entry.delegate_mint_capability}. */ export declare type DelegateMintCapabilityArgs = { args: { /** IDL type: `Address` */ to: p.RawAddress; }; }; export * as entry from "./entry.js"; export * as entryNames from "./entryNames.js"; export { idl } from "./idl.js"; export * as payloads from "./payloads.js"; /** The address of the module. */ export declare const ADDRESS: "0x1"; /** The full module name. */ export declare const FULL_NAME: "0x1::aptos_coin"; /** The name of the module. */ export declare const NAME: "aptos_coin"; /** Module ID information. */ export declare const id: { readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::aptos_coin"; readonly NAME: "aptos_coin"; }; export * as errors from "./errors.js"; /** Module error codes. */ export declare const errorCodes: { 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"; }; }; /** All module function IDLs. */ export declare const functions: { readonly claim_mint_capability: { 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 delegate_mint_capability: { 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 mint: { 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"; }]; }; }; /** All struct types with ability `key`. */ export declare const resources: { readonly AptosCoin: "0x1::aptos_coin::AptosCoin"; readonly Delegations: "0x1::aptos_coin::Delegations"; readonly MintCapStore: "0x1::aptos_coin::MintCapStore"; }; /** All struct types. */ export declare const structs: { readonly AptosCoin: "0x1::aptos_coin::AptosCoin"; readonly DelegatedMintCapability: "0x1::aptos_coin::DelegatedMintCapability"; readonly Delegations: "0x1::aptos_coin::Delegations"; readonly MintCapStore: "0x1::aptos_coin::MintCapStore"; }; /** * This module defines a minimal and generic Coin and Balance. * modified from https://github.com/move-language/move/tree/main/language/documentation/tutorial */ export declare const moduleDefinition: { readonly errorCodes: { 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"; }; }; readonly functions: { readonly claim_mint_capability: { 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 delegate_mint_capability: { 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 mint: { 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 resources: { readonly AptosCoin: "0x1::aptos_coin::AptosCoin"; readonly Delegations: "0x1::aptos_coin::Delegations"; readonly MintCapStore: "0x1::aptos_coin::MintCapStore"; }; readonly structs: { readonly AptosCoin: "0x1::aptos_coin::AptosCoin"; readonly DelegatedMintCapability: "0x1::aptos_coin::DelegatedMintCapability"; readonly Delegations: "0x1::aptos_coin::Delegations"; readonly MintCapStore: "0x1::aptos_coin::MintCapStore"; }; readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::aptos_coin"; readonly NAME: "aptos_coin"; }; //# sourceMappingURL=index.d.ts.map