/** * Allows delegating the minting of coins to multiple addresses. * * A `MintWrapper` can be created for any coin. * * There are two roles one can possess with a `MintWrapper`: * - **Owners**, which can create and delete Minters * - **Minters**, which can mint coins to any address * * **Module ID:** `0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper` * * @module */ import type * as p from "@movingco/prelude"; /** * Holds the mint/burn capabilities. * * Type name: `0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MintWrapper` */ export interface IMintWrapper { /** The capability to mint `CoinType`. */ mint_capability: { dummy_field: boolean; }; /** The capability to burn `CoinType`. */ burn_capability: { dummy_field: boolean; }; /** Optional hard cap of the amount of coins that may be issued. */ hard_cap: p.U64; } /** * Capability to mint at the mint_wrapper of the given coin. * * Type name: `0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Minter` */ export interface IMinter { /** Mint capability for this Minter. */ mint_capability: { dummy_field: boolean; }; /** Maximum amount that this [Minter] can mint. */ allowance: p.U64; } /** * Container for holding minters which are to be transferred to someone. * * Type name: `0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MinterOffers` */ export interface IMinterOffers { /** Minters being offered. */ offers: { handle: p.U128; length: p.U64; }; } /** * Having this permission allows one to create and delete minters. * * Type name: `0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Owner` */ export interface IOwner { /** Where the mint wrapper is stored. */ base: p.RawAddress; } export { idl } from "./idl.js"; /** The address of the module. */ export declare const ADDRESS: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c"; /** The full module name. */ export declare const FULL_NAME: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper"; /** The name of the module. */ export declare const NAME: "mint_wrapper"; /** Module ID information. */ export declare const id: { readonly ADDRESS: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c"; readonly FULL_NAME: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper"; readonly NAME: "mint_wrapper"; }; export * as errors from "./errors.js"; /** Module error codes. */ export declare const errorCodes: { readonly "1": { readonly name: "ENOT_OWNER"; readonly doc: "Must be the owner of the mint wrapper."; }; readonly "2": { readonly name: "ENOT_MINTER"; readonly doc: "You do not have the minter privilege for this mint wrapper."; }; readonly "3": { readonly name: "EINSUFFICIENT_ALLOWANCE"; readonly doc: "Allowance exceeded."; }; }; /** All module function IDLs. */ export declare const functions: {}; /** All struct types with ability `key`. */ export declare const resources: { readonly MintWrapper: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MintWrapper"; readonly Minter: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Minter"; readonly MinterOffers: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MinterOffers"; readonly Owner: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Owner"; }; /** All struct types. */ export declare const structs: { readonly MintWrapper: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MintWrapper"; readonly Minter: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Minter"; readonly MinterOffers: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MinterOffers"; readonly Owner: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Owner"; }; /** * Allows delegating the minting of coins to multiple addresses. * * A `MintWrapper` can be created for any coin. * * There are two roles one can possess with a `MintWrapper`: * - **Owners**, which can create and delete Minters * - **Minters**, which can mint coins to any address */ export declare const moduleDefinition: { readonly errorCodes: { readonly "1": { readonly name: "ENOT_OWNER"; readonly doc: "Must be the owner of the mint wrapper."; }; readonly "2": { readonly name: "ENOT_MINTER"; readonly doc: "You do not have the minter privilege for this mint wrapper."; }; readonly "3": { readonly name: "EINSUFFICIENT_ALLOWANCE"; readonly doc: "Allowance exceeded."; }; }; readonly functions: {}; readonly resources: { readonly MintWrapper: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MintWrapper"; readonly Minter: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Minter"; readonly MinterOffers: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MinterOffers"; readonly Owner: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Owner"; }; readonly structs: { readonly MintWrapper: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MintWrapper"; readonly Minter: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Minter"; readonly MinterOffers: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::MinterOffers"; readonly Owner: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper::Owner"; }; readonly ADDRESS: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c"; readonly FULL_NAME: "0x8f6ce396d6c4b9c7c992f018e94df010ec5c50835d1c83186c023bfa22df638c::mint_wrapper"; readonly NAME: "mint_wrapper"; }; //# sourceMappingURL=index.d.ts.map