/**
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type Option, type OptionOrNullable } from '@solana/kit';
import { type Extension, type ExtensionArgs } from '../types';
export type Mint = {
/**
* Optional authority used to mint new tokens. The mint authority may only
* be provided during mint creation. If no mint authority is present
* then the mint has a fixed supply and no further tokens may be minted.
*/
mintAuthority: Option
;
/** Total supply of tokens. */
supply: bigint;
/** Number of base 10 digits to the right of the decimal place. */
decimals: number;
/** Is `true` if this structure has been initialized. */
isInitialized: boolean;
/** Optional authority to freeze token accounts. */
freezeAuthority: Option;
/** The extensions activated on the mint account. */
extensions: Option>;
};
export type MintArgs = {
/**
* Optional authority used to mint new tokens. The mint authority may only
* be provided during mint creation. If no mint authority is present
* then the mint has a fixed supply and no further tokens may be minted.
*/
mintAuthority: OptionOrNullable;
/** Total supply of tokens. */
supply: number | bigint;
/** Number of base 10 digits to the right of the decimal place. */
decimals: number;
/** Is `true` if this structure has been initialized. */
isInitialized: boolean;
/** Optional authority to freeze token accounts. */
freezeAuthority: OptionOrNullable;
/** The extensions activated on the mint account. */
extensions: OptionOrNullable>;
};
/** Gets the encoder for {@link MintArgs} account data. */
export declare function getMintEncoder(): Encoder;
/** Gets the decoder for {@link Mint} account data. */
export declare function getMintDecoder(): Decoder;
/** Gets the codec for {@link Mint} account data. */
export declare function getMintCodec(): Codec;
export declare function decodeMint(encodedAccount: EncodedAccount): Account;
export declare function decodeMint(encodedAccount: MaybeEncodedAccount): MaybeAccount;
export declare function fetchMint(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>;
export declare function fetchMaybeMint(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>;
export declare function fetchAllMint(rpc: Parameters[0], addresses: Array, config?: FetchAccountsConfig): Promise[]>;
export declare function fetchAllMaybeMint(rpc: Parameters[0], addresses: Array, config?: FetchAccountsConfig): Promise[]>;
//# sourceMappingURL=mint.d.ts.map