Type Alias SwapInstruction<TProgram, TAccountTokenProgram, TAccountTokenAuthority, TAccountWhirlpool, TAccountTokenOwnerAccountA, TAccountTokenVaultA, TAccountTokenOwnerAccountB, TAccountTokenVaultB, TAccountTickArray0, TAccountTickArray1, TAccountTickArray2, TAccountOracle, TRemainingAccounts>
SwapInstruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts< [ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountTokenAuthority extends string ? ReadonlySignerAccount<TAccountTokenAuthority> & IAccountSignerMeta< TAccountTokenAuthority, > : TAccountTokenAuthority, TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool, 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 ? ReadonlyAccount<TAccountOracle> : TAccountOracle, ...TRemainingAccounts, ],> Type Parameters
- TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
- TAccountTokenProgram extends string | IAccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
- TAccountTokenAuthority extends string | IAccountMeta<string> = string
- TAccountWhirlpool 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>[] = []