Coda by Ian Macalinao
Preparing search index...
@solana-programs/orca-whirlpools
SwapInput
Type Alias SwapInput<TAccountTokenProgram, TAccountTokenAuthority, TAccountWhirlpool, TAccountTokenOwnerAccountA, TAccountTokenVaultA, TAccountTokenOwnerAccountB, TAccountTokenVaultB, TAccountTickArray0, TAccountTickArray1, TAccountTickArray2, TAccountOracle>
type
SwapInput
<
TAccountTokenProgram
extends
InstructionAccountInput
=
InstructionAccountInput
,
TAccountTokenAuthority
extends
InstructionSignerInput
=
InstructionSignerInput
,
TAccountWhirlpool
extends
InstructionAccountInput
=
InstructionAccountInput
,
TAccountTokenOwnerAccountA
extends
InstructionAccountInput
=
InstructionAccountInput
,
TAccountTokenVaultA
extends
InstructionAccountInput
=
InstructionAccountInput
,
TAccountTokenOwnerAccountB
extends
InstructionAccountInput
=
InstructionAccountInput
,
TAccountTokenVaultB
extends
InstructionAccountInput
=
InstructionAccountInput
,
TAccountTickArray0
extends
InstructionAccountInput
=
InstructionAccountInput
,
TAccountTickArray1
extends
InstructionAccountInput
=
InstructionAccountInput
,
TAccountTickArray2
extends
InstructionAccountInput
=
InstructionAccountInput
,
TAccountOracle
extends
InstructionAccountInput
=
InstructionAccountInput
,
>
=
{
amount
:
SwapInstructionDataArgs
[
"amount"
]
;
amountSpecifiedIsInput
:
SwapInstructionDataArgs
[
"amountSpecifiedIsInput"
]
;
aToB
:
SwapInstructionDataArgs
[
"aToB"
]
;
oracle
:
TAccountOracle
;
otherAmountThreshold
:
SwapInstructionDataArgs
[
"otherAmountThreshold"
]
;
sqrtPriceLimit
:
SwapInstructionDataArgs
[
"sqrtPriceLimit"
]
;
tickArray0
:
TAccountTickArray0
;
tickArray1
:
TAccountTickArray1
;
tickArray2
:
TAccountTickArray2
;
tokenAuthority
:
TAccountTokenAuthority
;
tokenOwnerAccountA
:
TAccountTokenOwnerAccountA
;
tokenOwnerAccountB
:
TAccountTokenOwnerAccountB
;
tokenProgram
?:
TAccountTokenProgram
;
tokenVaultA
:
TAccountTokenVaultA
;
tokenVaultB
:
TAccountTokenVaultB
;
whirlpool
:
TAccountWhirlpool
;
}
Type Parameters
TAccountTokenProgram
extends
InstructionAccountInput
=
InstructionAccountInput
TAccountTokenAuthority
extends
InstructionSignerInput
=
InstructionSignerInput
TAccountWhirlpool
extends
InstructionAccountInput
=
InstructionAccountInput
TAccountTokenOwnerAccountA
extends
InstructionAccountInput
=
InstructionAccountInput
TAccountTokenVaultA
extends
InstructionAccountInput
=
InstructionAccountInput
TAccountTokenOwnerAccountB
extends
InstructionAccountInput
=
InstructionAccountInput
TAccountTokenVaultB
extends
InstructionAccountInput
=
InstructionAccountInput
TAccountTickArray0
extends
InstructionAccountInput
=
InstructionAccountInput
TAccountTickArray1
extends
InstructionAccountInput
=
InstructionAccountInput
TAccountTickArray2
extends
InstructionAccountInput
=
InstructionAccountInput
TAccountOracle
extends
InstructionAccountInput
=
InstructionAccountInput
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"
]
oracle
oracle
:
TAccountOracle
other
Amount
Threshold
otherAmountThreshold
:
SwapInstructionDataArgs
[
"otherAmountThreshold"
]
sqrt
Price
Limit
sqrtPriceLimit
:
SwapInstructionDataArgs
[
"sqrtPriceLimit"
]
tick
Array0
tickArray0
:
TAccountTickArray0
tick
Array1
tickArray1
:
TAccountTickArray1
tick
Array2
tickArray2
:
TAccountTickArray2
token
Authority
tokenAuthority
:
TAccountTokenAuthority
token
Owner
Account
A
tokenOwnerAccountA
:
TAccountTokenOwnerAccountA
token
Owner
Account
B
tokenOwnerAccountB
:
TAccountTokenOwnerAccountB
Optional
token
Program
tokenProgram
?:
TAccountTokenProgram
token
Vault
A
tokenVaultA
:
TAccountTokenVaultA
token
Vault
B
tokenVaultB
:
TAccountTokenVaultB
whirlpool
whirlpool
:
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
Coda by Ian Macalinao
Loading...