Type Alias ParsedSwapV2Instruction<TProgram, TAccountMetas>

ParsedSwapV2Instruction: {
    accounts: {
        memoProgram: TAccountMetas[2];
        oracle: TAccountMetas[14];
        tickArray0: TAccountMetas[11];
        tickArray1: TAccountMetas[12];
        tickArray2: TAccountMetas[13];
        tokenAuthority: TAccountMetas[3];
        tokenMintA: TAccountMetas[5];
        tokenMintB: TAccountMetas[6];
        tokenOwnerAccountA: TAccountMetas[7];
        tokenOwnerAccountB: TAccountMetas[9];
        tokenProgramA: TAccountMetas[0];
        tokenProgramB: TAccountMetas[1];
        tokenVaultA: TAccountMetas[8];
        tokenVaultB: TAccountMetas[10];
        whirlpool: TAccountMetas[4];
    };
    data: SwapV2InstructionData;
    programAddress: Address<TProgram>;
}

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]

Type declaration