Type Alias SwapV2Instruction<TProgram, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram, TAccountTokenAuthority, TAccountWhirlpool, TAccountTokenMintA, TAccountTokenMintB, TAccountTokenOwnerAccountA, TAccountTokenVaultA, TAccountTokenOwnerAccountB, TAccountTokenVaultB, TAccountTickArray0, TAccountTickArray1, TAccountTickArray2, TAccountOracle, TRemainingAccounts>
SwapV2Instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts< [ TAccountTokenProgramA extends string ? ReadonlyAccount<TAccountTokenProgramA> : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount<TAccountTokenProgramB> : TAccountTokenProgramB, TAccountMemoProgram extends string ? ReadonlyAccount<TAccountMemoProgram> : TAccountMemoProgram, TAccountTokenAuthority extends string ? ReadonlySignerAccount<TAccountTokenAuthority> & IAccountSignerMeta< TAccountTokenAuthority, > : TAccountTokenAuthority, TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool, TAccountTokenMintA extends string ? ReadonlyAccount<TAccountTokenMintA> : TAccountTokenMintA, TAccountTokenMintB extends string ? ReadonlyAccount<TAccountTokenMintB> : TAccountTokenMintB, TAccountTokenOwnerAccountA extends string ? WritableAccount<TAccountTokenOwnerAccountA> : TAccountTokenOwnerAccountA, TAccountTokenVaultA extends string ? WritableAccount<TAccountTokenVaultA> : TAccountTokenVaultA, TAccountTokenOwnerAccountB extends string ? WritableAccount<TAccountTokenOwnerAccountB> : TAccountTokenOwnerAccountB, TAccountTokenVaultB extends string ? WritableAccount<TAccountTokenVaultB> : TAccountTokenVaultB, TAccountTickArray0 extends string ? WritableAccount<TAccountTickArray0> : TAccountTickArray0, TAccountTickArray1 extends string ? WritableAccount<TAccountTickArray1> : TAccountTickArray1, TAccountTickArray2 extends string ? WritableAccount<TAccountTickArray2> : TAccountTickArray2, TAccountOracle extends string ? WritableAccount<TAccountOracle> : TAccountOracle, ...TRemainingAccounts, ],> Type Parameters
- TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
- TAccountTokenProgramA extends string | IAccountMeta<string> = string
- TAccountTokenProgramB extends string | IAccountMeta<string> = string
- TAccountMemoProgram extends string | IAccountMeta<string> = string
- TAccountTokenAuthority extends string | IAccountMeta<string> = string
- TAccountWhirlpool extends string | IAccountMeta<string> = string
- TAccountTokenMintA extends string | IAccountMeta<string> = string
- TAccountTokenMintB extends string | IAccountMeta<string> = string
- TAccountTokenOwnerAccountA extends string | IAccountMeta<string> = string
- TAccountTokenVaultA extends string | IAccountMeta<string> = string
- TAccountTokenOwnerAccountB extends string | IAccountMeta<string> = string
- TAccountTokenVaultB extends string | IAccountMeta<string> = string
- TAccountTickArray0 extends string | IAccountMeta<string> = string
- TAccountTickArray1 extends string | IAccountMeta<string> = string
- TAccountTickArray2 extends string | IAccountMeta<string> = string
- TAccountOracle extends string | IAccountMeta<string> = string
- TRemainingAccounts extends readonly IAccountMeta<string>[] = []