Documentation
Preparing search index...
@orca-so/whirlpools-client
SwapAsyncInput
Type Alias SwapAsyncInput<TAccountTokenProgram, TAccountTokenAuthority, TAccountWhirlpool, TAccountTokenOwnerAccountA, TAccountTokenVaultA, TAccountTokenOwnerAccountB, TAccountTokenVaultB, TAccountTickArray0, TAccountTickArray1, TAccountTickArray2, TAccountOracle>
type
SwapAsyncInput
<
TAccountTokenProgram
extends
string
=
string
,
TAccountTokenAuthority
extends
string
=
string
,
TAccountWhirlpool
extends
string
=
string
,
TAccountTokenOwnerAccountA
extends
string
=
string
,
TAccountTokenVaultA
extends
string
=
string
,
TAccountTokenOwnerAccountB
extends
string
=
string
,
TAccountTokenVaultB
extends
string
=
string
,
TAccountTickArray0
extends
string
=
string
,
TAccountTickArray1
extends
string
=
string
,
TAccountTickArray2
extends
string
=
string
,
TAccountOracle
extends
string
=
string
,
>
=
{
amount
:
SwapInstructionDataArgs
[
"amount"
]
;
amountSpecifiedIsInput
:
SwapInstructionDataArgs
[
"amountSpecifiedIsInput"
]
;
aToB
:
SwapInstructionDataArgs
[
"aToB"
]
;
oracle
?:
Address
<
TAccountOracle
>
;
otherAmountThreshold
:
SwapInstructionDataArgs
[
"otherAmountThreshold"
]
;
sqrtPriceLimit
:
SwapInstructionDataArgs
[
"sqrtPriceLimit"
]
;
tickArray0
:
Address
<
TAccountTickArray0
>
;
tickArray1
:
Address
<
TAccountTickArray1
>
;
tickArray2
:
Address
<
TAccountTickArray2
>
;
tokenAuthority
:
TransactionSigner
<
TAccountTokenAuthority
>
;
tokenOwnerAccountA
:
Address
<
TAccountTokenOwnerAccountA
>
;
tokenOwnerAccountB
:
Address
<
TAccountTokenOwnerAccountB
>
;
tokenProgram
?:
Address
<
TAccountTokenProgram
>
;
tokenVaultA
:
Address
<
TAccountTokenVaultA
>
;
tokenVaultB
:
Address
<
TAccountTokenVaultB
>
;
whirlpool
:
Address
<
TAccountWhirlpool
>
;
}
Type Parameters
TAccountTokenProgram
extends
string
=
string
TAccountTokenAuthority
extends
string
=
string
TAccountWhirlpool
extends
string
=
string
TAccountTokenOwnerAccountA
extends
string
=
string
TAccountTokenVaultA
extends
string
=
string
TAccountTokenOwnerAccountB
extends
string
=
string
TAccountTokenVaultB
extends
string
=
string
TAccountTickArray0
extends
string
=
string
TAccountTickArray1
extends
string
=
string
TAccountTickArray2
extends
string
=
string
TAccountOracle
extends
string
=
string
Index
Properties
amount
amount
Specified
Is
Input
a
To
B
oracle?
other
Amount
Threshold
sqrt
Price
Limit
tick
Array0
tick
Array1
tick
Array2
token
Authority
token
Owner
Account
A
token
Owner
Account
B
token
Program?
token
Vault
A
token
Vault
B
whirlpool
Properties
amount
amount
:
SwapInstructionDataArgs
[
"amount"
]
amount
Specified
Is
Input
amountSpecifiedIsInput
:
SwapInstructionDataArgs
[
"amountSpecifiedIsInput"
]
a
To
B
aToB
:
SwapInstructionDataArgs
[
"aToB"
]
Optional
oracle
oracle
?:
Address
<
TAccountOracle
>
other
Amount
Threshold
otherAmountThreshold
:
SwapInstructionDataArgs
[
"otherAmountThreshold"
]
sqrt
Price
Limit
sqrtPriceLimit
:
SwapInstructionDataArgs
[
"sqrtPriceLimit"
]
tick
Array0
tickArray0
:
Address
<
TAccountTickArray0
>
tick
Array1
tickArray1
:
Address
<
TAccountTickArray1
>
tick
Array2
tickArray2
:
Address
<
TAccountTickArray2
>
token
Authority
tokenAuthority
:
TransactionSigner
<
TAccountTokenAuthority
>
token
Owner
Account
A
tokenOwnerAccountA
:
Address
<
TAccountTokenOwnerAccountA
>
token
Owner
Account
B
tokenOwnerAccountB
:
Address
<
TAccountTokenOwnerAccountB
>
Optional
token
Program
tokenProgram
?:
Address
<
TAccountTokenProgram
>
token
Vault
A
tokenVaultA
:
Address
<
TAccountTokenVaultA
>
token
Vault
B
tokenVaultB
:
Address
<
TAccountTokenVaultB
>
whirlpool
whirlpool
:
Address
<
TAccountWhirlpool
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
amount
amount
Specified
Is
Input
a
To
B
oracle
other
Amount
Threshold
sqrt
Price
Limit
tick
Array0
tick
Array1
tick
Array2
token
Authority
token
Owner
Account
A
token
Owner
Account
B
token
Program
token
Vault
A
token
Vault
B
whirlpool
Documentation
Loading...