Type Alias InitializePoolInstruction<TProgram, TAccountWhirlpoolsConfig, TAccountTokenMintA, TAccountTokenMintB, TAccountFunder, TAccountWhirlpool, TAccountTokenVaultA, TAccountTokenVaultB, TAccountFeeTier, TAccountTokenProgram, TAccountSystemProgram, TAccountRent, TRemainingAccounts>

InitializePoolInstruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountWhirlpoolsConfig extends string
            ? ReadonlyAccount<TAccountWhirlpoolsConfig>
            : TAccountWhirlpoolsConfig,
        TAccountTokenMintA extends string
            ? ReadonlyAccount<TAccountTokenMintA>
            : TAccountTokenMintA,
        TAccountTokenMintB extends string
            ? ReadonlyAccount<TAccountTokenMintB>
            : TAccountTokenMintB,
        TAccountFunder extends string
            ? WritableSignerAccount<TAccountFunder> & IAccountSignerMeta<
                TAccountFunder,
            >
            : TAccountFunder,
        TAccountWhirlpool extends string
            ? WritableAccount<TAccountWhirlpool>
            : TAccountWhirlpool,
        TAccountTokenVaultA extends string
            ? WritableSignerAccount<TAccountTokenVaultA> & IAccountSignerMeta<
                TAccountTokenVaultA,
            >
            : TAccountTokenVaultA,
        TAccountTokenVaultB extends string
            ? WritableSignerAccount<TAccountTokenVaultB> & IAccountSignerMeta<
                TAccountTokenVaultB,
            >
            : TAccountTokenVaultB,
        TAccountFeeTier extends string
            ? ReadonlyAccount<TAccountFeeTier>
            : TAccountFeeTier,
        TAccountTokenProgram extends string
            ? ReadonlyAccount<TAccountTokenProgram>
            : TAccountTokenProgram,
        TAccountSystemProgram extends string
            ? ReadonlyAccount<TAccountSystemProgram>
            : TAccountSystemProgram,
        TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
        ...TRemainingAccounts,
    ],
>

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountWhirlpoolsConfig extends string | IAccountMeta<string> = string
  • TAccountTokenMintA extends string | IAccountMeta<string> = string
  • TAccountTokenMintB extends string | IAccountMeta<string> = string
  • TAccountFunder extends string | IAccountMeta<string> = string
  • TAccountWhirlpool extends string | IAccountMeta<string> = string
  • TAccountTokenVaultA extends string | IAccountMeta<string> = string
  • TAccountTokenVaultB extends string | IAccountMeta<string> = string
  • TAccountFeeTier extends string | IAccountMeta<string> = string
  • TAccountTokenProgram extends string | IAccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  • TAccountSystemProgram extends string | IAccountMeta<string> = "11111111111111111111111111111111"
  • TAccountRent extends string | IAccountMeta<string> = "SysvarRent111111111111111111111111111111111"
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []