Function getTwoHopSwapInstruction
- getTwoHopSwapInstruction<
TAccountTokenProgram extends string,
TAccountTokenAuthority extends string,
TAccountWhirlpoolOne extends string,
TAccountWhirlpoolTwo extends string,
TAccountTokenOwnerAccountOneA extends string,
TAccountTokenVaultOneA extends string,
TAccountTokenOwnerAccountOneB extends string,
TAccountTokenVaultOneB extends string,
TAccountTokenOwnerAccountTwoA extends string,
TAccountTokenVaultTwoA extends string,
TAccountTokenOwnerAccountTwoB extends string,
TAccountTokenVaultTwoB extends string,
TAccountTickArrayOne0 extends string,
TAccountTickArrayOne1 extends string,
TAccountTickArrayOne2 extends string,
TAccountTickArrayTwo0 extends string,
TAccountTickArrayTwo1 extends string,
TAccountTickArrayTwo2 extends string,
TAccountOracleOne extends string,
TAccountOracleTwo extends string,
TProgramAddress extends
Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">,
>(
input: TwoHopSwapInput<
TAccountTokenProgram,
TAccountTokenAuthority,
TAccountWhirlpoolOne,
TAccountWhirlpoolTwo,
TAccountTokenOwnerAccountOneA,
TAccountTokenVaultOneA,
TAccountTokenOwnerAccountOneB,
TAccountTokenVaultOneB,
TAccountTokenOwnerAccountTwoA,
TAccountTokenVaultTwoA,
TAccountTokenOwnerAccountTwoB,
TAccountTokenVaultTwoB,
TAccountTickArrayOne0,
TAccountTickArrayOne1,
TAccountTickArrayOne2,
TAccountTickArrayTwo0,
TAccountTickArrayTwo1,
TAccountTickArrayTwo2,
TAccountOracleOne,
TAccountOracleTwo,
>,
config?: { programAddress?: TProgramAddress },
): TwoHopSwapInstruction<
TProgramAddress,
TAccountTokenProgram,
TAccountTokenAuthority,
TAccountWhirlpoolOne,
TAccountWhirlpoolTwo,
TAccountTokenOwnerAccountOneA,
TAccountTokenVaultOneA,
TAccountTokenOwnerAccountOneB,
TAccountTokenVaultOneB,
TAccountTokenOwnerAccountTwoA,
TAccountTokenVaultTwoA,
TAccountTokenOwnerAccountTwoB,
TAccountTokenVaultTwoB,
TAccountTickArrayOne0,
TAccountTickArrayOne1,
TAccountTickArrayOne2,
TAccountTickArrayTwo0,
TAccountTickArrayTwo1,
TAccountTickArrayTwo2,
TAccountOracleOne,
TAccountOracleTwo,
> Type Parameters
- TAccountTokenProgram extends string
- TAccountTokenAuthority extends string
- TAccountWhirlpoolOne extends string
- TAccountWhirlpoolTwo extends string
- TAccountTokenOwnerAccountOneA extends string
- TAccountTokenVaultOneA extends string
- TAccountTokenOwnerAccountOneB extends string
- TAccountTokenVaultOneB extends string
- TAccountTokenOwnerAccountTwoA extends string
- TAccountTokenVaultTwoA extends string
- TAccountTokenOwnerAccountTwoB extends string
- TAccountTokenVaultTwoB extends string
- TAccountTickArrayOne0 extends string
- TAccountTickArrayOne1 extends string
- TAccountTickArrayOne2 extends string
- TAccountTickArrayTwo0 extends string
- TAccountTickArrayTwo1 extends string
- TAccountTickArrayTwo2 extends string
- TAccountOracleOne extends string
- TAccountOracleTwo extends string
- TProgramAddress extends Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">
Parameters
- input: TwoHopSwapInput<
TAccountTokenProgram,
TAccountTokenAuthority,
TAccountWhirlpoolOne,
TAccountWhirlpoolTwo,
TAccountTokenOwnerAccountOneA,
TAccountTokenVaultOneA,
TAccountTokenOwnerAccountOneB,
TAccountTokenVaultOneB,
TAccountTokenOwnerAccountTwoA,
TAccountTokenVaultTwoA,
TAccountTokenOwnerAccountTwoB,
TAccountTokenVaultTwoB,
TAccountTickArrayOne0,
TAccountTickArrayOne1,
TAccountTickArrayOne2,
TAccountTickArrayTwo0,
TAccountTickArrayTwo1,
TAccountTickArrayTwo2,
TAccountOracleOne,
TAccountOracleTwo,
> Optional
config: { programAddress?: TProgramAddress }