UNPKG

@bbachain/spl-token-swap

Version:

JavaScript/TypeScript bindings for the Solana Program Library (SPL) Token Swap program.

41 lines 1.64 kB
import * as web3 from '@bbachain/web3.js'; import { DepositAllTokenTypesArgs } from '../types'; /** * @category Instructions * @category DepositAllTokenTypes */ export type DepositAllTokenTypesInstructionAccounts = { /** Token-swap */ tokenSwap: web3.PublicKey; /** swap authority */ authority: web3.PublicKey; /** user transfer authority */ userTransferAuthority: web3.PublicKey; /** token_a user transfer authority can transfer amount */ sourceA: web3.PublicKey; /** token_b user transfer authority can transfer amount */ sourceB: web3.PublicKey; /** token_a Base Account to deposit into */ intoA: web3.PublicKey; /** token_b Base Account to deposit into */ intoB: web3.PublicKey; /** Pool MINT account, swap authority is the owner */ poolMint: web3.PublicKey; /** Pool Account to deposit the generated tokens, user is the owner */ poolAccount: web3.PublicKey; /** Token program id */ tokenProgram: web3.PublicKey; anchorRemainingAccounts?: web3.AccountMeta[]; }; export declare const depositAllTokenTypesInstructionDiscriminator = 2; /** * Creates a _DepositAllTokenTypes_ instruction. * * @param accounts that will be accessed while the instruction is processed * @param args to provide as instruction data to the program * * @category Instructions * @category DepositAllTokenTypes */ export declare function createDepositAllTokenTypesInstruction(accounts: DepositAllTokenTypesInstructionAccounts, args: DepositAllTokenTypesArgs, programId?: web3.PublicKey): web3.TransactionInstruction; //# sourceMappingURL=depositAllTokenTypes.d.ts.map