@sen-use/web3
Version:
The library for Sentre
25 lines (24 loc) • 1.17 kB
TypeScript
import { Address, AnchorProvider, web3, BN } from '@project-serum/anchor';
export declare type MintToParams = {
mintAddress: Address;
amount: BN;
dstAddress?: Address;
};
export declare const initTxMintTo: (provider: AnchorProvider, { mintAddress, amount, dstAddress }: MintToParams) => Promise<web3.TransactionInstruction>;
export declare type CreateMintParams = {
mint: web3.Keypair;
decimals?: number;
mintAuthority?: Address;
freezeAuthority?: Address;
};
export declare const initTxCreateMint: (provider: AnchorProvider, { mint, decimals, mintAuthority, freezeAuthority, }: CreateMintParams) => Promise<web3.Transaction>;
export declare type CreateTokenAccountParams = {
mintAddress: Address;
owner?: Address;
};
export declare const initTxCreateTokenAccount: (provider: AnchorProvider, { mintAddress, owner }: CreateTokenAccountParams) => Promise<web3.Transaction>;
export declare type CreateMultiTokenAccountParams = {
mints: Address[];
owner?: Address;
};
export declare const initTxCreateMultiTokenAccount: (provider: AnchorProvider, { mints, owner }: CreateMultiTokenAccountParams) => Promise<web3.Transaction[]>;