Documentation
Preparing search index...
@orca-so/whirlpools-client
SwapInput
Type Alias SwapInput<TAccountTokenProgram, TAccountTokenAuthority, TAccountWhirlpool, TAccountTokenOwnerAccountA, TAccountTokenVaultA, TAccountTokenOwnerAccountB, TAccountTokenVaultB, TAccountTickArray0, TAccountTickArray1, TAccountTickArray2, TAccountOracle>
type
SwapInput
<
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
ToB
oracle
other
Amount
Threshold
sqrt
Price
Limit
tick
Array0
tick
Array1
tick
Array2
token
Authority
token
Owner
AccountA
token
Owner
AccountB
token
Program?
token
VaultA
token
VaultB
whirlpool
Properties
amount
amount
:
SwapInstructionDataArgs
[
"amount"
]
amount
Specified
Is
Input
amountSpecifiedIsInput
:
SwapInstructionDataArgs
[
"amountSpecifiedIsInput"
]
a
ToB
aToB
:
SwapInstructionDataArgs
[
"aToB"
]
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
AccountA
tokenOwnerAccountA
:
Address
<
TAccountTokenOwnerAccountA
>
token
Owner
AccountB
tokenOwnerAccountB
:
Address
<
TAccountTokenOwnerAccountB
>
Optional
token
Program
tokenProgram
?:
Address
<
TAccountTokenProgram
>
token
VaultA
tokenVaultA
:
Address
<
TAccountTokenVaultA
>
token
VaultB
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
ToB
oracle
other
Amount
Threshold
sqrt
Price
Limit
tick
Array0
tick
Array1
tick
Array2
token
Authority
token
Owner
AccountA
token
Owner
AccountB
token
Program
token
VaultA
token
VaultB
whirlpool
Documentation
Loading...