@haven-fi/solauto-sdk 1.0.177 → 1.0.178
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +2 -0
- package/dist/jupiter-sdk/index.d.ts +0 -4
- package/dist/jupiter-sdk/index.d.ts.map +1 -1
- package/dist/jupiter-sdk/index.js +0 -4
- package/package.json +1 -1
- package/src/index.ts +3 -1
- package/src/jupiter-sdk/index.ts +0 -4
- package/dist/jupiter-sdk/accounts/index.d.ts +0 -9
- package/dist/jupiter-sdk/accounts/index.d.ts.map +0 -1
- package/dist/jupiter-sdk/accounts/index.js +0 -24
- package/dist/jupiter-sdk/accounts/tokenLedger.d.ts +0 -32
- package/dist/jupiter-sdk/accounts/tokenLedger.d.ts.map +0 -1
- package/dist/jupiter-sdk/accounts/tokenLedger.js +0 -68
- package/dist/jupiter-sdk/instructions/aldrinSwap.d.ts +0 -29
- package/dist/jupiter-sdk/instructions/aldrinSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/aldrinSwap.js +0 -95
- package/dist/jupiter-sdk/instructions/aldrinV2Swap.d.ts +0 -30
- package/dist/jupiter-sdk/instructions/aldrinV2Swap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/aldrinV2Swap.js +0 -100
- package/dist/jupiter-sdk/instructions/balansolSwap.d.ts +0 -34
- package/dist/jupiter-sdk/instructions/balansolSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/balansolSwap.js +0 -130
- package/dist/jupiter-sdk/instructions/claim.d.ts +0 -25
- package/dist/jupiter-sdk/instructions/claim.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/claim.js +0 -64
- package/dist/jupiter-sdk/instructions/claimToken.d.ts +0 -31
- package/dist/jupiter-sdk/instructions/claimToken.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/claimToken.js +0 -93
- package/dist/jupiter-sdk/instructions/cloneSwap.d.ts +0 -34
- package/dist/jupiter-sdk/instructions/cloneSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/cloneSwap.js +0 -120
- package/dist/jupiter-sdk/instructions/createOpenOrders.d.ts +0 -24
- package/dist/jupiter-sdk/instructions/createOpenOrders.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/createOpenOrders.js +0 -76
- package/dist/jupiter-sdk/instructions/createProgramOpenOrders.d.ts +0 -29
- package/dist/jupiter-sdk/instructions/createProgramOpenOrders.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/createProgramOpenOrders.js +0 -86
- package/dist/jupiter-sdk/instructions/createTokenAccount.d.ts +0 -27
- package/dist/jupiter-sdk/instructions/createTokenAccount.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/createTokenAccount.js +0 -70
- package/dist/jupiter-sdk/instructions/createTokenLedger.d.ts +0 -21
- package/dist/jupiter-sdk/instructions/createTokenLedger.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/createTokenLedger.js +0 -62
- package/dist/jupiter-sdk/instructions/cremaSwap.d.ts +0 -33
- package/dist/jupiter-sdk/instructions/cremaSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/cremaSwap.js +0 -119
- package/dist/jupiter-sdk/instructions/cropperSwap.d.ts +0 -30
- package/dist/jupiter-sdk/instructions/cropperSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/cropperSwap.js +0 -103
- package/dist/jupiter-sdk/instructions/cykuraSwap.d.ts +0 -29
- package/dist/jupiter-sdk/instructions/cykuraSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/cykuraSwap.js +0 -99
- package/dist/jupiter-sdk/instructions/deltafiSwap.d.ts +0 -31
- package/dist/jupiter-sdk/instructions/deltafiSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/deltafiSwap.js +0 -109
- package/dist/jupiter-sdk/instructions/dradexSwap.d.ts +0 -35
- package/dist/jupiter-sdk/instructions/dradexSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/dradexSwap.js +0 -121
- package/dist/jupiter-sdk/instructions/exactOutRoute.d.ts +0 -42
- package/dist/jupiter-sdk/instructions/exactOutRoute.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/exactOutRoute.js +0 -109
- package/dist/jupiter-sdk/instructions/goosefxSwap.d.ts +0 -33
- package/dist/jupiter-sdk/instructions/goosefxSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/goosefxSwap.js +0 -115
- package/dist/jupiter-sdk/instructions/goosefxV2Swap.d.ts +0 -38
- package/dist/jupiter-sdk/instructions/goosefxV2Swap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/goosefxV2Swap.js +0 -140
- package/dist/jupiter-sdk/instructions/heliumTreasuryManagementRedeemV0.d.ts +0 -29
- package/dist/jupiter-sdk/instructions/heliumTreasuryManagementRedeemV0.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/heliumTreasuryManagementRedeemV0.js +0 -91
- package/dist/jupiter-sdk/instructions/index.d.ts +0 -72
- package/dist/jupiter-sdk/instructions/index.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/index.js +0 -87
- package/dist/jupiter-sdk/instructions/invariantSwap.d.ts +0 -29
- package/dist/jupiter-sdk/instructions/invariantSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/invariantSwap.js +0 -95
- package/dist/jupiter-sdk/instructions/lifinitySwap.d.ts +0 -32
- package/dist/jupiter-sdk/instructions/lifinitySwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/lifinitySwap.js +0 -113
- package/dist/jupiter-sdk/instructions/lifinityV2Swap.d.ts +0 -32
- package/dist/jupiter-sdk/instructions/lifinityV2Swap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/lifinityV2Swap.js +0 -113
- package/dist/jupiter-sdk/instructions/marcoPoloSwap.d.ts +0 -36
- package/dist/jupiter-sdk/instructions/marcoPoloSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/marcoPoloSwap.js +0 -137
- package/dist/jupiter-sdk/instructions/marinadeDeposit.d.ts +0 -36
- package/dist/jupiter-sdk/instructions/marinadeDeposit.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/marinadeDeposit.js +0 -144
- package/dist/jupiter-sdk/instructions/marinadeUnstake.d.ts +0 -30
- package/dist/jupiter-sdk/instructions/marinadeUnstake.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/marinadeUnstake.js +0 -105
- package/dist/jupiter-sdk/instructions/mercurialSwap.d.ts +0 -25
- package/dist/jupiter-sdk/instructions/mercurialSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/mercurialSwap.js +0 -76
- package/dist/jupiter-sdk/instructions/meteoraDlmmSwap.d.ts +0 -34
- package/dist/jupiter-sdk/instructions/meteoraDlmmSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/meteoraDlmmSwap.js +0 -119
- package/dist/jupiter-sdk/instructions/meteoraSwap.d.ts +0 -34
- package/dist/jupiter-sdk/instructions/meteoraSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/meteoraSwap.js +0 -120
- package/dist/jupiter-sdk/instructions/moonshotWrappedBuy.d.ts +0 -33
- package/dist/jupiter-sdk/instructions/moonshotWrappedBuy.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/moonshotWrappedBuy.js +0 -119
- package/dist/jupiter-sdk/instructions/moonshotWrappedSell.d.ts +0 -31
- package/dist/jupiter-sdk/instructions/moonshotWrappedSell.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/moonshotWrappedSell.js +0 -106
- package/dist/jupiter-sdk/instructions/obricSwap.d.ts +0 -31
- package/dist/jupiter-sdk/instructions/obricSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/obricSwap.js +0 -106
- package/dist/jupiter-sdk/instructions/oneIntroSwap.d.ts +0 -30
- package/dist/jupiter-sdk/instructions/oneIntroSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/oneIntroSwap.js +0 -100
- package/dist/jupiter-sdk/instructions/openBookV2Swap.d.ts +0 -35
- package/dist/jupiter-sdk/instructions/openBookV2Swap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/openBookV2Swap.js +0 -125
- package/dist/jupiter-sdk/instructions/perpsAddLiquidity.d.ts +0 -32
- package/dist/jupiter-sdk/instructions/perpsAddLiquidity.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/perpsAddLiquidity.js +0 -110
- package/dist/jupiter-sdk/instructions/perpsRemoveLiquidity.d.ts +0 -32
- package/dist/jupiter-sdk/instructions/perpsRemoveLiquidity.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/perpsRemoveLiquidity.js +0 -110
- package/dist/jupiter-sdk/instructions/perpsSwap.d.ts +0 -34
- package/dist/jupiter-sdk/instructions/perpsSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/perpsSwap.js +0 -120
- package/dist/jupiter-sdk/instructions/perpsV2AddLiquidity.d.ts +0 -33
- package/dist/jupiter-sdk/instructions/perpsV2AddLiquidity.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/perpsV2AddLiquidity.js +0 -115
- package/dist/jupiter-sdk/instructions/perpsV2RemoveLiquidity.d.ts +0 -33
- package/dist/jupiter-sdk/instructions/perpsV2RemoveLiquidity.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/perpsV2RemoveLiquidity.js +0 -112
- package/dist/jupiter-sdk/instructions/perpsV2Swap.d.ts +0 -36
- package/dist/jupiter-sdk/instructions/perpsV2Swap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/perpsV2Swap.js +0 -130
- package/dist/jupiter-sdk/instructions/phoenixSwap.d.ts +0 -27
- package/dist/jupiter-sdk/instructions/phoenixSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/phoenixSwap.js +0 -89
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedBuy.d.ts +0 -34
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedBuy.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedBuy.js +0 -123
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedSell.d.ts +0 -32
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedSell.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedSell.js +0 -107
- package/dist/jupiter-sdk/instructions/raydiumClmmSwap.d.ts +0 -29
- package/dist/jupiter-sdk/instructions/raydiumClmmSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/raydiumClmmSwap.js +0 -102
- package/dist/jupiter-sdk/instructions/raydiumClmmSwapV2.d.ts +0 -32
- package/dist/jupiter-sdk/instructions/raydiumClmmSwapV2.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/raydiumClmmSwapV2.js +0 -117
- package/dist/jupiter-sdk/instructions/raydiumCpSwap.d.ts +0 -32
- package/dist/jupiter-sdk/instructions/raydiumCpSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/raydiumCpSwap.js +0 -116
- package/dist/jupiter-sdk/instructions/raydiumSwap.d.ts +0 -36
- package/dist/jupiter-sdk/instructions/raydiumSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/raydiumSwap.js +0 -134
- package/dist/jupiter-sdk/instructions/route.d.ts +0 -40
- package/dist/jupiter-sdk/instructions/route.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/route.js +0 -99
- package/dist/jupiter-sdk/instructions/routeWithTokenLedger.d.ts +0 -39
- package/dist/jupiter-sdk/instructions/routeWithTokenLedger.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/routeWithTokenLedger.js +0 -103
- package/dist/jupiter-sdk/instructions/saberAddDecimals.d.ts +0 -26
- package/dist/jupiter-sdk/instructions/saberAddDecimals.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/saberAddDecimals.js +0 -81
- package/dist/jupiter-sdk/instructions/saberSwap.d.ts +0 -28
- package/dist/jupiter-sdk/instructions/saberSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/saberSwap.js +0 -87
- package/dist/jupiter-sdk/instructions/senchaSwap.d.ts +0 -28
- package/dist/jupiter-sdk/instructions/senchaSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/senchaSwap.js +0 -90
- package/dist/jupiter-sdk/instructions/serumSwap.d.ts +0 -34
- package/dist/jupiter-sdk/instructions/serumSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/serumSwap.js +0 -122
- package/dist/jupiter-sdk/instructions/setTokenLedger.d.ts +0 -20
- package/dist/jupiter-sdk/instructions/setTokenLedger.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/setTokenLedger.js +0 -46
- package/dist/jupiter-sdk/instructions/sharedAccountsExactOutRoute.d.ts +0 -46
- package/dist/jupiter-sdk/instructions/sharedAccountsExactOutRoute.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/sharedAccountsExactOutRoute.js +0 -120
- package/dist/jupiter-sdk/instructions/sharedAccountsRoute.d.ts +0 -46
- package/dist/jupiter-sdk/instructions/sharedAccountsRoute.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/sharedAccountsRoute.js +0 -120
- package/dist/jupiter-sdk/instructions/sharedAccountsRouteWithTokenLedger.d.ts +0 -45
- package/dist/jupiter-sdk/instructions/sharedAccountsRouteWithTokenLedger.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/sharedAccountsRouteWithTokenLedger.js +0 -126
- package/dist/jupiter-sdk/instructions/stabbleStableSwap.d.ts +0 -31
- package/dist/jupiter-sdk/instructions/stabbleStableSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/stabbleStableSwap.js +0 -101
- package/dist/jupiter-sdk/instructions/stabbleWeightedSwap.d.ts +0 -31
- package/dist/jupiter-sdk/instructions/stabbleWeightedSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/stabbleWeightedSwap.js +0 -101
- package/dist/jupiter-sdk/instructions/stepSwap.d.ts +0 -29
- package/dist/jupiter-sdk/instructions/stepSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/stepSwap.js +0 -98
- package/dist/jupiter-sdk/instructions/symmetrySwap.d.ts +0 -32
- package/dist/jupiter-sdk/instructions/symmetrySwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/symmetrySwap.js +0 -114
- package/dist/jupiter-sdk/instructions/tokenSwap.d.ts +0 -29
- package/dist/jupiter-sdk/instructions/tokenSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/tokenSwap.js +0 -98
- package/dist/jupiter-sdk/instructions/tokenSwapV2.d.ts +0 -33
- package/dist/jupiter-sdk/instructions/tokenSwapV2.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/tokenSwapV2.js +0 -114
- package/dist/jupiter-sdk/instructions/whirlpoolSwap.d.ts +0 -31
- package/dist/jupiter-sdk/instructions/whirlpoolSwap.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/whirlpoolSwap.js +0 -104
- package/dist/jupiter-sdk/instructions/whirlpoolSwapV2.d.ts +0 -35
- package/dist/jupiter-sdk/instructions/whirlpoolSwapV2.d.ts.map +0 -1
- package/dist/jupiter-sdk/instructions/whirlpoolSwapV2.js +0 -119
- package/dist/jupiter-sdk/shared/index.d.ts +0 -54
- package/dist/jupiter-sdk/shared/index.d.ts.map +0 -1
- package/dist/jupiter-sdk/shared/index.js +0 -69
- package/dist/jupiter-sdk/types/accountsType.d.ts +0 -15
- package/dist/jupiter-sdk/types/accountsType.d.ts.map +0 -1
- package/dist/jupiter-sdk/types/accountsType.js +0 -22
- package/dist/jupiter-sdk/types/amountWithSlippage.d.ts +0 -18
- package/dist/jupiter-sdk/types/amountWithSlippage.d.ts.map +0 -1
- package/dist/jupiter-sdk/types/amountWithSlippage.js +0 -17
- package/dist/jupiter-sdk/types/index.d.ts +0 -15
- package/dist/jupiter-sdk/types/index.d.ts.map +0 -1
- package/dist/jupiter-sdk/types/index.js +0 -30
- package/dist/jupiter-sdk/types/remainingAccountsInfo.d.ts +0 -17
- package/dist/jupiter-sdk/types/remainingAccountsInfo.d.ts.map +0 -1
- package/dist/jupiter-sdk/types/remainingAccountsInfo.js +0 -15
- package/dist/jupiter-sdk/types/remainingAccountsSlice.d.ts +0 -19
- package/dist/jupiter-sdk/types/remainingAccountsSlice.d.ts.map +0 -1
- package/dist/jupiter-sdk/types/remainingAccountsSlice.js +0 -18
- package/dist/jupiter-sdk/types/routePlanStep.d.ts +0 -23
- package/dist/jupiter-sdk/types/routePlanStep.d.ts.map +0 -1
- package/dist/jupiter-sdk/types/routePlanStep.js +0 -20
- package/dist/jupiter-sdk/types/side.d.ts +0 -15
- package/dist/jupiter-sdk/types/side.d.ts.map +0 -1
- package/dist/jupiter-sdk/types/side.js +0 -20
- package/dist/jupiter-sdk/types/swap.d.ts +0 -372
- package/dist/jupiter-sdk/types/swap.d.ts.map +0 -1
- package/dist/jupiter-sdk/types/swap.js +0 -188
- package/src/jupiter-sdk/accounts/index.ts +0 -9
- package/src/jupiter-sdk/accounts/tokenLedger.ts +0 -146
- package/src/jupiter-sdk/instructions/aldrinSwap.ts +0 -165
- package/src/jupiter-sdk/instructions/aldrinV2Swap.ts +0 -171
- package/src/jupiter-sdk/instructions/balansolSwap.ts +0 -211
- package/src/jupiter-sdk/instructions/claim.ts +0 -128
- package/src/jupiter-sdk/instructions/claimToken.ts +0 -171
- package/src/jupiter-sdk/instructions/cloneSwap.ts +0 -195
- package/src/jupiter-sdk/instructions/createOpenOrders.ts +0 -148
- package/src/jupiter-sdk/instructions/createProgramOpenOrders.ts +0 -170
- package/src/jupiter-sdk/instructions/createTokenAccount.ts +0 -152
- package/src/jupiter-sdk/instructions/createTokenLedger.ts +0 -128
- package/src/jupiter-sdk/instructions/cremaSwap.ts +0 -193
- package/src/jupiter-sdk/instructions/cropperSwap.ts +0 -174
- package/src/jupiter-sdk/instructions/cykuraSwap.ts +0 -169
- package/src/jupiter-sdk/instructions/deltafiSwap.ts +0 -181
- package/src/jupiter-sdk/instructions/dradexSwap.ts +0 -200
- package/src/jupiter-sdk/instructions/exactOutRoute.ts +0 -208
- package/src/jupiter-sdk/instructions/goosefxSwap.ts +0 -189
- package/src/jupiter-sdk/instructions/goosefxV2Swap.ts +0 -222
- package/src/jupiter-sdk/instructions/heliumTreasuryManagementRedeemV0.ts +0 -169
- package/src/jupiter-sdk/instructions/index.ts +0 -72
- package/src/jupiter-sdk/instructions/invariantSwap.ts +0 -168
- package/src/jupiter-sdk/instructions/lifinitySwap.ts +0 -186
- package/src/jupiter-sdk/instructions/lifinityV2Swap.ts +0 -189
- package/src/jupiter-sdk/instructions/marcoPoloSwap.ts +0 -223
- package/src/jupiter-sdk/instructions/marinadeDeposit.ts +0 -230
- package/src/jupiter-sdk/instructions/marinadeUnstake.ts +0 -182
- package/src/jupiter-sdk/instructions/mercurialSwap.ts +0 -145
- package/src/jupiter-sdk/instructions/meteoraDlmmSwap.ts +0 -193
- package/src/jupiter-sdk/instructions/meteoraSwap.ts +0 -195
- package/src/jupiter-sdk/instructions/moonshotWrappedBuy.ts +0 -201
- package/src/jupiter-sdk/instructions/moonshotWrappedSell.ts +0 -186
- package/src/jupiter-sdk/instructions/obricSwap.ts +0 -178
- package/src/jupiter-sdk/instructions/oneIntroSwap.ts +0 -171
- package/src/jupiter-sdk/instructions/openBookV2Swap.ts +0 -207
- package/src/jupiter-sdk/instructions/perpsAddLiquidity.ts +0 -186
- package/src/jupiter-sdk/instructions/perpsRemoveLiquidity.ts +0 -188
- package/src/jupiter-sdk/instructions/perpsSwap.ts +0 -195
- package/src/jupiter-sdk/instructions/perpsV2AddLiquidity.ts +0 -194
- package/src/jupiter-sdk/instructions/perpsV2RemoveLiquidity.ts +0 -193
- package/src/jupiter-sdk/instructions/perpsV2Swap.ts +0 -207
- package/src/jupiter-sdk/instructions/phoenixSwap.ts +0 -157
- package/src/jupiter-sdk/instructions/pumpdotfunWrappedBuy.ts +0 -209
- package/src/jupiter-sdk/instructions/pumpdotfunWrappedSell.ts +0 -190
- package/src/jupiter-sdk/instructions/raydiumClmmSwap.ts +0 -175
- package/src/jupiter-sdk/instructions/raydiumClmmSwapV2.ts +0 -193
- package/src/jupiter-sdk/instructions/raydiumCpSwap.ts +0 -189
- package/src/jupiter-sdk/instructions/raydiumSwap.ts +0 -211
- package/src/jupiter-sdk/instructions/route.ts +0 -189
- package/src/jupiter-sdk/instructions/routeWithTokenLedger.ts +0 -201
- package/src/jupiter-sdk/instructions/saberAddDecimals.ts +0 -151
- package/src/jupiter-sdk/instructions/saberSwap.ts +0 -156
- package/src/jupiter-sdk/instructions/senchaSwap.ts +0 -159
- package/src/jupiter-sdk/instructions/serumSwap.ts +0 -200
- package/src/jupiter-sdk/instructions/setTokenLedger.ts +0 -106
- package/src/jupiter-sdk/instructions/sharedAccountsExactOutRoute.ts +0 -226
- package/src/jupiter-sdk/instructions/sharedAccountsRoute.ts +0 -225
- package/src/jupiter-sdk/instructions/sharedAccountsRouteWithTokenLedger.ts +0 -231
- package/src/jupiter-sdk/instructions/stabbleStableSwap.ts +0 -176
- package/src/jupiter-sdk/instructions/stabbleWeightedSwap.ts +0 -178
- package/src/jupiter-sdk/instructions/stepSwap.ts +0 -168
- package/src/jupiter-sdk/instructions/symmetrySwap.ts +0 -187
- package/src/jupiter-sdk/instructions/tokenSwap.ts +0 -168
- package/src/jupiter-sdk/instructions/tokenSwapV2.ts +0 -185
- package/src/jupiter-sdk/instructions/whirlpoolSwap.ts +0 -179
- package/src/jupiter-sdk/instructions/whirlpoolSwapV2.ts +0 -194
- package/src/jupiter-sdk/shared/index.ts +0 -117
- package/src/jupiter-sdk/types/accountsType.ts +0 -25
- package/src/jupiter-sdk/types/amountWithSlippage.ts +0 -34
- package/src/jupiter-sdk/types/index.ts +0 -15
- package/src/jupiter-sdk/types/remainingAccountsInfo.ts +0 -34
- package/src/jupiter-sdk/types/remainingAccountsSlice.ts +0 -33
- package/src/jupiter-sdk/types/routePlanStep.ts +0 -39
- package/src/jupiter-sdk/types/side.ts +0 -23
- package/src/jupiter-sdk/types/swap.ts +0 -566
@@ -1,23 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This code was AUTOGENERATED using the kinobi library.
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
4
|
-
* to add features, then rerun kinobi to update it.
|
5
|
-
*
|
6
|
-
* @see https://github.com/metaplex-foundation/kinobi
|
7
|
-
*/
|
8
|
-
import { Serializer } from '@metaplex-foundation/umi/serializers';
|
9
|
-
import { Swap, SwapArgs } from '.';
|
10
|
-
export type RoutePlanStep = {
|
11
|
-
swap: Swap;
|
12
|
-
percent: number;
|
13
|
-
inputIndex: number;
|
14
|
-
outputIndex: number;
|
15
|
-
};
|
16
|
-
export type RoutePlanStepArgs = {
|
17
|
-
swap: SwapArgs;
|
18
|
-
percent: number;
|
19
|
-
inputIndex: number;
|
20
|
-
outputIndex: number;
|
21
|
-
};
|
22
|
-
export declare function getRoutePlanStepSerializer(): Serializer<RoutePlanStepArgs, RoutePlanStep>;
|
23
|
-
//# sourceMappingURL=routePlanStep.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"routePlanStep.d.ts","sourceRoot":"","sources":["../../../src/jupiter-sdk/types/routePlanStep.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAc,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAqB,MAAM,GAAG,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,UAAU,CACtD,iBAAiB,EACjB,aAAa,CACd,CAUA"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* This code was AUTOGENERATED using the kinobi library.
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
5
|
-
* to add features, then rerun kinobi to update it.
|
6
|
-
*
|
7
|
-
* @see https://github.com/metaplex-foundation/kinobi
|
8
|
-
*/
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.getRoutePlanStepSerializer = getRoutePlanStepSerializer;
|
11
|
-
const serializers_1 = require("@metaplex-foundation/umi/serializers");
|
12
|
-
const _1 = require(".");
|
13
|
-
function getRoutePlanStepSerializer() {
|
14
|
-
return (0, serializers_1.struct)([
|
15
|
-
['swap', (0, _1.getSwapSerializer)()],
|
16
|
-
['percent', (0, serializers_1.u8)()],
|
17
|
-
['inputIndex', (0, serializers_1.u8)()],
|
18
|
-
['outputIndex', (0, serializers_1.u8)()],
|
19
|
-
], { description: 'RoutePlanStep' });
|
20
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This code was AUTOGENERATED using the kinobi library.
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
4
|
-
* to add features, then rerun kinobi to update it.
|
5
|
-
*
|
6
|
-
* @see https://github.com/metaplex-foundation/kinobi
|
7
|
-
*/
|
8
|
-
import { Serializer } from '@metaplex-foundation/umi/serializers';
|
9
|
-
export declare enum Side {
|
10
|
-
Bid = 0,
|
11
|
-
Ask = 1
|
12
|
-
}
|
13
|
-
export type SideArgs = Side;
|
14
|
-
export declare function getSideSerializer(): Serializer<SideArgs, Side>;
|
15
|
-
//# sourceMappingURL=side.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"side.d.ts","sourceRoot":"","sources":["../../../src/jupiter-sdk/types/side.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAc,MAAM,sCAAsC,CAAC;AAE9E,oBAAY,IAAI;IACd,GAAG,IAAA;IACH,GAAG,IAAA;CACJ;AAED,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC;AAE5B,wBAAgB,iBAAiB,IAAI,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAK9D"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* This code was AUTOGENERATED using the kinobi library.
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
5
|
-
* to add features, then rerun kinobi to update it.
|
6
|
-
*
|
7
|
-
* @see https://github.com/metaplex-foundation/kinobi
|
8
|
-
*/
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.Side = void 0;
|
11
|
-
exports.getSideSerializer = getSideSerializer;
|
12
|
-
const serializers_1 = require("@metaplex-foundation/umi/serializers");
|
13
|
-
var Side;
|
14
|
-
(function (Side) {
|
15
|
-
Side[Side["Bid"] = 0] = "Bid";
|
16
|
-
Side[Side["Ask"] = 1] = "Ask";
|
17
|
-
})(Side || (exports.Side = Side = {}));
|
18
|
-
function getSideSerializer() {
|
19
|
-
return (0, serializers_1.scalarEnum)(Side, { description: 'Side' });
|
20
|
-
}
|
@@ -1,372 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This code was AUTOGENERATED using the kinobi library.
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
4
|
-
* to add features, then rerun kinobi to update it.
|
5
|
-
*
|
6
|
-
* @see https://github.com/metaplex-foundation/kinobi
|
7
|
-
*/
|
8
|
-
import { Option, OptionOrNullable } from '@metaplex-foundation/umi';
|
9
|
-
import { GetDataEnumKind, GetDataEnumKindContent, Serializer } from '@metaplex-foundation/umi/serializers';
|
10
|
-
import { RemainingAccountsInfo, RemainingAccountsInfoArgs, Side, SideArgs } from '.';
|
11
|
-
export type Swap = {
|
12
|
-
__kind: 'Saber';
|
13
|
-
} | {
|
14
|
-
__kind: 'SaberAddDecimalsDeposit';
|
15
|
-
} | {
|
16
|
-
__kind: 'SaberAddDecimalsWithdraw';
|
17
|
-
} | {
|
18
|
-
__kind: 'TokenSwap';
|
19
|
-
} | {
|
20
|
-
__kind: 'Sencha';
|
21
|
-
} | {
|
22
|
-
__kind: 'Step';
|
23
|
-
} | {
|
24
|
-
__kind: 'Cropper';
|
25
|
-
} | {
|
26
|
-
__kind: 'Raydium';
|
27
|
-
} | {
|
28
|
-
__kind: 'Crema';
|
29
|
-
aToB: boolean;
|
30
|
-
} | {
|
31
|
-
__kind: 'Lifinity';
|
32
|
-
} | {
|
33
|
-
__kind: 'Mercurial';
|
34
|
-
} | {
|
35
|
-
__kind: 'Cykura';
|
36
|
-
} | {
|
37
|
-
__kind: 'Serum';
|
38
|
-
side: Side;
|
39
|
-
} | {
|
40
|
-
__kind: 'MarinadeDeposit';
|
41
|
-
} | {
|
42
|
-
__kind: 'MarinadeUnstake';
|
43
|
-
} | {
|
44
|
-
__kind: 'Aldrin';
|
45
|
-
side: Side;
|
46
|
-
} | {
|
47
|
-
__kind: 'AldrinV2';
|
48
|
-
side: Side;
|
49
|
-
} | {
|
50
|
-
__kind: 'Whirlpool';
|
51
|
-
aToB: boolean;
|
52
|
-
} | {
|
53
|
-
__kind: 'Invariant';
|
54
|
-
xToY: boolean;
|
55
|
-
} | {
|
56
|
-
__kind: 'Meteora';
|
57
|
-
} | {
|
58
|
-
__kind: 'GooseFX';
|
59
|
-
} | {
|
60
|
-
__kind: 'DeltaFi';
|
61
|
-
stable: boolean;
|
62
|
-
} | {
|
63
|
-
__kind: 'Balansol';
|
64
|
-
} | {
|
65
|
-
__kind: 'MarcoPolo';
|
66
|
-
xToY: boolean;
|
67
|
-
} | {
|
68
|
-
__kind: 'Dradex';
|
69
|
-
side: Side;
|
70
|
-
} | {
|
71
|
-
__kind: 'LifinityV2';
|
72
|
-
} | {
|
73
|
-
__kind: 'RaydiumClmm';
|
74
|
-
} | {
|
75
|
-
__kind: 'Openbook';
|
76
|
-
side: Side;
|
77
|
-
} | {
|
78
|
-
__kind: 'Phoenix';
|
79
|
-
side: Side;
|
80
|
-
} | {
|
81
|
-
__kind: 'Symmetry';
|
82
|
-
fromTokenId: bigint;
|
83
|
-
toTokenId: bigint;
|
84
|
-
} | {
|
85
|
-
__kind: 'TokenSwapV2';
|
86
|
-
} | {
|
87
|
-
__kind: 'HeliumTreasuryManagementRedeemV0';
|
88
|
-
} | {
|
89
|
-
__kind: 'StakeDexStakeWrappedSol';
|
90
|
-
} | {
|
91
|
-
__kind: 'StakeDexSwapViaStake';
|
92
|
-
bridgeStakeSeed: number;
|
93
|
-
} | {
|
94
|
-
__kind: 'GooseFXV2';
|
95
|
-
} | {
|
96
|
-
__kind: 'Perps';
|
97
|
-
} | {
|
98
|
-
__kind: 'PerpsAddLiquidity';
|
99
|
-
} | {
|
100
|
-
__kind: 'PerpsRemoveLiquidity';
|
101
|
-
} | {
|
102
|
-
__kind: 'MeteoraDlmm';
|
103
|
-
} | {
|
104
|
-
__kind: 'OpenBookV2';
|
105
|
-
side: Side;
|
106
|
-
} | {
|
107
|
-
__kind: 'RaydiumClmmV2';
|
108
|
-
} | {
|
109
|
-
__kind: 'StakeDexPrefundWithdrawStakeAndDepositStake';
|
110
|
-
bridgeStakeSeed: number;
|
111
|
-
} | {
|
112
|
-
__kind: 'Clone';
|
113
|
-
poolIndex: number;
|
114
|
-
quantityIsInput: boolean;
|
115
|
-
quantityIsCollateral: boolean;
|
116
|
-
} | {
|
117
|
-
__kind: 'SanctumS';
|
118
|
-
srcLstValueCalcAccs: number;
|
119
|
-
dstLstValueCalcAccs: number;
|
120
|
-
srcLstIndex: number;
|
121
|
-
dstLstIndex: number;
|
122
|
-
} | {
|
123
|
-
__kind: 'SanctumSAddLiquidity';
|
124
|
-
lstValueCalcAccs: number;
|
125
|
-
lstIndex: number;
|
126
|
-
} | {
|
127
|
-
__kind: 'SanctumSRemoveLiquidity';
|
128
|
-
lstValueCalcAccs: number;
|
129
|
-
lstIndex: number;
|
130
|
-
} | {
|
131
|
-
__kind: 'RaydiumCP';
|
132
|
-
} | {
|
133
|
-
__kind: 'WhirlpoolSwapV2';
|
134
|
-
aToB: boolean;
|
135
|
-
remainingAccountsInfo: Option<RemainingAccountsInfo>;
|
136
|
-
} | {
|
137
|
-
__kind: 'OneIntro';
|
138
|
-
} | {
|
139
|
-
__kind: 'PumpdotfunWrappedBuy';
|
140
|
-
} | {
|
141
|
-
__kind: 'PumpdotfunWrappedSell';
|
142
|
-
} | {
|
143
|
-
__kind: 'PerpsV2';
|
144
|
-
} | {
|
145
|
-
__kind: 'PerpsV2AddLiquidity';
|
146
|
-
} | {
|
147
|
-
__kind: 'PerpsV2RemoveLiquidity';
|
148
|
-
} | {
|
149
|
-
__kind: 'MoonshotWrappedBuy';
|
150
|
-
} | {
|
151
|
-
__kind: 'MoonshotWrappedSell';
|
152
|
-
} | {
|
153
|
-
__kind: 'StabbleStableSwap';
|
154
|
-
} | {
|
155
|
-
__kind: 'StabbleWeightedSwap';
|
156
|
-
} | {
|
157
|
-
__kind: 'Obric';
|
158
|
-
xToY: boolean;
|
159
|
-
};
|
160
|
-
export type SwapArgs = {
|
161
|
-
__kind: 'Saber';
|
162
|
-
} | {
|
163
|
-
__kind: 'SaberAddDecimalsDeposit';
|
164
|
-
} | {
|
165
|
-
__kind: 'SaberAddDecimalsWithdraw';
|
166
|
-
} | {
|
167
|
-
__kind: 'TokenSwap';
|
168
|
-
} | {
|
169
|
-
__kind: 'Sencha';
|
170
|
-
} | {
|
171
|
-
__kind: 'Step';
|
172
|
-
} | {
|
173
|
-
__kind: 'Cropper';
|
174
|
-
} | {
|
175
|
-
__kind: 'Raydium';
|
176
|
-
} | {
|
177
|
-
__kind: 'Crema';
|
178
|
-
aToB: boolean;
|
179
|
-
} | {
|
180
|
-
__kind: 'Lifinity';
|
181
|
-
} | {
|
182
|
-
__kind: 'Mercurial';
|
183
|
-
} | {
|
184
|
-
__kind: 'Cykura';
|
185
|
-
} | {
|
186
|
-
__kind: 'Serum';
|
187
|
-
side: SideArgs;
|
188
|
-
} | {
|
189
|
-
__kind: 'MarinadeDeposit';
|
190
|
-
} | {
|
191
|
-
__kind: 'MarinadeUnstake';
|
192
|
-
} | {
|
193
|
-
__kind: 'Aldrin';
|
194
|
-
side: SideArgs;
|
195
|
-
} | {
|
196
|
-
__kind: 'AldrinV2';
|
197
|
-
side: SideArgs;
|
198
|
-
} | {
|
199
|
-
__kind: 'Whirlpool';
|
200
|
-
aToB: boolean;
|
201
|
-
} | {
|
202
|
-
__kind: 'Invariant';
|
203
|
-
xToY: boolean;
|
204
|
-
} | {
|
205
|
-
__kind: 'Meteora';
|
206
|
-
} | {
|
207
|
-
__kind: 'GooseFX';
|
208
|
-
} | {
|
209
|
-
__kind: 'DeltaFi';
|
210
|
-
stable: boolean;
|
211
|
-
} | {
|
212
|
-
__kind: 'Balansol';
|
213
|
-
} | {
|
214
|
-
__kind: 'MarcoPolo';
|
215
|
-
xToY: boolean;
|
216
|
-
} | {
|
217
|
-
__kind: 'Dradex';
|
218
|
-
side: SideArgs;
|
219
|
-
} | {
|
220
|
-
__kind: 'LifinityV2';
|
221
|
-
} | {
|
222
|
-
__kind: 'RaydiumClmm';
|
223
|
-
} | {
|
224
|
-
__kind: 'Openbook';
|
225
|
-
side: SideArgs;
|
226
|
-
} | {
|
227
|
-
__kind: 'Phoenix';
|
228
|
-
side: SideArgs;
|
229
|
-
} | {
|
230
|
-
__kind: 'Symmetry';
|
231
|
-
fromTokenId: number | bigint;
|
232
|
-
toTokenId: number | bigint;
|
233
|
-
} | {
|
234
|
-
__kind: 'TokenSwapV2';
|
235
|
-
} | {
|
236
|
-
__kind: 'HeliumTreasuryManagementRedeemV0';
|
237
|
-
} | {
|
238
|
-
__kind: 'StakeDexStakeWrappedSol';
|
239
|
-
} | {
|
240
|
-
__kind: 'StakeDexSwapViaStake';
|
241
|
-
bridgeStakeSeed: number;
|
242
|
-
} | {
|
243
|
-
__kind: 'GooseFXV2';
|
244
|
-
} | {
|
245
|
-
__kind: 'Perps';
|
246
|
-
} | {
|
247
|
-
__kind: 'PerpsAddLiquidity';
|
248
|
-
} | {
|
249
|
-
__kind: 'PerpsRemoveLiquidity';
|
250
|
-
} | {
|
251
|
-
__kind: 'MeteoraDlmm';
|
252
|
-
} | {
|
253
|
-
__kind: 'OpenBookV2';
|
254
|
-
side: SideArgs;
|
255
|
-
} | {
|
256
|
-
__kind: 'RaydiumClmmV2';
|
257
|
-
} | {
|
258
|
-
__kind: 'StakeDexPrefundWithdrawStakeAndDepositStake';
|
259
|
-
bridgeStakeSeed: number;
|
260
|
-
} | {
|
261
|
-
__kind: 'Clone';
|
262
|
-
poolIndex: number;
|
263
|
-
quantityIsInput: boolean;
|
264
|
-
quantityIsCollateral: boolean;
|
265
|
-
} | {
|
266
|
-
__kind: 'SanctumS';
|
267
|
-
srcLstValueCalcAccs: number;
|
268
|
-
dstLstValueCalcAccs: number;
|
269
|
-
srcLstIndex: number;
|
270
|
-
dstLstIndex: number;
|
271
|
-
} | {
|
272
|
-
__kind: 'SanctumSAddLiquidity';
|
273
|
-
lstValueCalcAccs: number;
|
274
|
-
lstIndex: number;
|
275
|
-
} | {
|
276
|
-
__kind: 'SanctumSRemoveLiquidity';
|
277
|
-
lstValueCalcAccs: number;
|
278
|
-
lstIndex: number;
|
279
|
-
} | {
|
280
|
-
__kind: 'RaydiumCP';
|
281
|
-
} | {
|
282
|
-
__kind: 'WhirlpoolSwapV2';
|
283
|
-
aToB: boolean;
|
284
|
-
remainingAccountsInfo: OptionOrNullable<RemainingAccountsInfoArgs>;
|
285
|
-
} | {
|
286
|
-
__kind: 'OneIntro';
|
287
|
-
} | {
|
288
|
-
__kind: 'PumpdotfunWrappedBuy';
|
289
|
-
} | {
|
290
|
-
__kind: 'PumpdotfunWrappedSell';
|
291
|
-
} | {
|
292
|
-
__kind: 'PerpsV2';
|
293
|
-
} | {
|
294
|
-
__kind: 'PerpsV2AddLiquidity';
|
295
|
-
} | {
|
296
|
-
__kind: 'PerpsV2RemoveLiquidity';
|
297
|
-
} | {
|
298
|
-
__kind: 'MoonshotWrappedBuy';
|
299
|
-
} | {
|
300
|
-
__kind: 'MoonshotWrappedSell';
|
301
|
-
} | {
|
302
|
-
__kind: 'StabbleStableSwap';
|
303
|
-
} | {
|
304
|
-
__kind: 'StabbleWeightedSwap';
|
305
|
-
} | {
|
306
|
-
__kind: 'Obric';
|
307
|
-
xToY: boolean;
|
308
|
-
};
|
309
|
-
export declare function getSwapSerializer(): Serializer<SwapArgs, Swap>;
|
310
|
-
export declare function swap(kind: 'Saber'): GetDataEnumKind<SwapArgs, 'Saber'>;
|
311
|
-
export declare function swap(kind: 'SaberAddDecimalsDeposit'): GetDataEnumKind<SwapArgs, 'SaberAddDecimalsDeposit'>;
|
312
|
-
export declare function swap(kind: 'SaberAddDecimalsWithdraw'): GetDataEnumKind<SwapArgs, 'SaberAddDecimalsWithdraw'>;
|
313
|
-
export declare function swap(kind: 'TokenSwap'): GetDataEnumKind<SwapArgs, 'TokenSwap'>;
|
314
|
-
export declare function swap(kind: 'Sencha'): GetDataEnumKind<SwapArgs, 'Sencha'>;
|
315
|
-
export declare function swap(kind: 'Step'): GetDataEnumKind<SwapArgs, 'Step'>;
|
316
|
-
export declare function swap(kind: 'Cropper'): GetDataEnumKind<SwapArgs, 'Cropper'>;
|
317
|
-
export declare function swap(kind: 'Raydium'): GetDataEnumKind<SwapArgs, 'Raydium'>;
|
318
|
-
export declare function swap(kind: 'Crema', data: GetDataEnumKindContent<SwapArgs, 'Crema'>): GetDataEnumKind<SwapArgs, 'Crema'>;
|
319
|
-
export declare function swap(kind: 'Lifinity'): GetDataEnumKind<SwapArgs, 'Lifinity'>;
|
320
|
-
export declare function swap(kind: 'Mercurial'): GetDataEnumKind<SwapArgs, 'Mercurial'>;
|
321
|
-
export declare function swap(kind: 'Cykura'): GetDataEnumKind<SwapArgs, 'Cykura'>;
|
322
|
-
export declare function swap(kind: 'Serum', data: GetDataEnumKindContent<SwapArgs, 'Serum'>): GetDataEnumKind<SwapArgs, 'Serum'>;
|
323
|
-
export declare function swap(kind: 'MarinadeDeposit'): GetDataEnumKind<SwapArgs, 'MarinadeDeposit'>;
|
324
|
-
export declare function swap(kind: 'MarinadeUnstake'): GetDataEnumKind<SwapArgs, 'MarinadeUnstake'>;
|
325
|
-
export declare function swap(kind: 'Aldrin', data: GetDataEnumKindContent<SwapArgs, 'Aldrin'>): GetDataEnumKind<SwapArgs, 'Aldrin'>;
|
326
|
-
export declare function swap(kind: 'AldrinV2', data: GetDataEnumKindContent<SwapArgs, 'AldrinV2'>): GetDataEnumKind<SwapArgs, 'AldrinV2'>;
|
327
|
-
export declare function swap(kind: 'Whirlpool', data: GetDataEnumKindContent<SwapArgs, 'Whirlpool'>): GetDataEnumKind<SwapArgs, 'Whirlpool'>;
|
328
|
-
export declare function swap(kind: 'Invariant', data: GetDataEnumKindContent<SwapArgs, 'Invariant'>): GetDataEnumKind<SwapArgs, 'Invariant'>;
|
329
|
-
export declare function swap(kind: 'Meteora'): GetDataEnumKind<SwapArgs, 'Meteora'>;
|
330
|
-
export declare function swap(kind: 'GooseFX'): GetDataEnumKind<SwapArgs, 'GooseFX'>;
|
331
|
-
export declare function swap(kind: 'DeltaFi', data: GetDataEnumKindContent<SwapArgs, 'DeltaFi'>): GetDataEnumKind<SwapArgs, 'DeltaFi'>;
|
332
|
-
export declare function swap(kind: 'Balansol'): GetDataEnumKind<SwapArgs, 'Balansol'>;
|
333
|
-
export declare function swap(kind: 'MarcoPolo', data: GetDataEnumKindContent<SwapArgs, 'MarcoPolo'>): GetDataEnumKind<SwapArgs, 'MarcoPolo'>;
|
334
|
-
export declare function swap(kind: 'Dradex', data: GetDataEnumKindContent<SwapArgs, 'Dradex'>): GetDataEnumKind<SwapArgs, 'Dradex'>;
|
335
|
-
export declare function swap(kind: 'LifinityV2'): GetDataEnumKind<SwapArgs, 'LifinityV2'>;
|
336
|
-
export declare function swap(kind: 'RaydiumClmm'): GetDataEnumKind<SwapArgs, 'RaydiumClmm'>;
|
337
|
-
export declare function swap(kind: 'Openbook', data: GetDataEnumKindContent<SwapArgs, 'Openbook'>): GetDataEnumKind<SwapArgs, 'Openbook'>;
|
338
|
-
export declare function swap(kind: 'Phoenix', data: GetDataEnumKindContent<SwapArgs, 'Phoenix'>): GetDataEnumKind<SwapArgs, 'Phoenix'>;
|
339
|
-
export declare function swap(kind: 'Symmetry', data: GetDataEnumKindContent<SwapArgs, 'Symmetry'>): GetDataEnumKind<SwapArgs, 'Symmetry'>;
|
340
|
-
export declare function swap(kind: 'TokenSwapV2'): GetDataEnumKind<SwapArgs, 'TokenSwapV2'>;
|
341
|
-
export declare function swap(kind: 'HeliumTreasuryManagementRedeemV0'): GetDataEnumKind<SwapArgs, 'HeliumTreasuryManagementRedeemV0'>;
|
342
|
-
export declare function swap(kind: 'StakeDexStakeWrappedSol'): GetDataEnumKind<SwapArgs, 'StakeDexStakeWrappedSol'>;
|
343
|
-
export declare function swap(kind: 'StakeDexSwapViaStake', data: GetDataEnumKindContent<SwapArgs, 'StakeDexSwapViaStake'>): GetDataEnumKind<SwapArgs, 'StakeDexSwapViaStake'>;
|
344
|
-
export declare function swap(kind: 'GooseFXV2'): GetDataEnumKind<SwapArgs, 'GooseFXV2'>;
|
345
|
-
export declare function swap(kind: 'Perps'): GetDataEnumKind<SwapArgs, 'Perps'>;
|
346
|
-
export declare function swap(kind: 'PerpsAddLiquidity'): GetDataEnumKind<SwapArgs, 'PerpsAddLiquidity'>;
|
347
|
-
export declare function swap(kind: 'PerpsRemoveLiquidity'): GetDataEnumKind<SwapArgs, 'PerpsRemoveLiquidity'>;
|
348
|
-
export declare function swap(kind: 'MeteoraDlmm'): GetDataEnumKind<SwapArgs, 'MeteoraDlmm'>;
|
349
|
-
export declare function swap(kind: 'OpenBookV2', data: GetDataEnumKindContent<SwapArgs, 'OpenBookV2'>): GetDataEnumKind<SwapArgs, 'OpenBookV2'>;
|
350
|
-
export declare function swap(kind: 'RaydiumClmmV2'): GetDataEnumKind<SwapArgs, 'RaydiumClmmV2'>;
|
351
|
-
export declare function swap(kind: 'StakeDexPrefundWithdrawStakeAndDepositStake', data: GetDataEnumKindContent<SwapArgs, 'StakeDexPrefundWithdrawStakeAndDepositStake'>): GetDataEnumKind<SwapArgs, 'StakeDexPrefundWithdrawStakeAndDepositStake'>;
|
352
|
-
export declare function swap(kind: 'Clone', data: GetDataEnumKindContent<SwapArgs, 'Clone'>): GetDataEnumKind<SwapArgs, 'Clone'>;
|
353
|
-
export declare function swap(kind: 'SanctumS', data: GetDataEnumKindContent<SwapArgs, 'SanctumS'>): GetDataEnumKind<SwapArgs, 'SanctumS'>;
|
354
|
-
export declare function swap(kind: 'SanctumSAddLiquidity', data: GetDataEnumKindContent<SwapArgs, 'SanctumSAddLiquidity'>): GetDataEnumKind<SwapArgs, 'SanctumSAddLiquidity'>;
|
355
|
-
export declare function swap(kind: 'SanctumSRemoveLiquidity', data: GetDataEnumKindContent<SwapArgs, 'SanctumSRemoveLiquidity'>): GetDataEnumKind<SwapArgs, 'SanctumSRemoveLiquidity'>;
|
356
|
-
export declare function swap(kind: 'RaydiumCP'): GetDataEnumKind<SwapArgs, 'RaydiumCP'>;
|
357
|
-
export declare function swap(kind: 'WhirlpoolSwapV2', data: GetDataEnumKindContent<SwapArgs, 'WhirlpoolSwapV2'>): GetDataEnumKind<SwapArgs, 'WhirlpoolSwapV2'>;
|
358
|
-
export declare function swap(kind: 'OneIntro'): GetDataEnumKind<SwapArgs, 'OneIntro'>;
|
359
|
-
export declare function swap(kind: 'PumpdotfunWrappedBuy'): GetDataEnumKind<SwapArgs, 'PumpdotfunWrappedBuy'>;
|
360
|
-
export declare function swap(kind: 'PumpdotfunWrappedSell'): GetDataEnumKind<SwapArgs, 'PumpdotfunWrappedSell'>;
|
361
|
-
export declare function swap(kind: 'PerpsV2'): GetDataEnumKind<SwapArgs, 'PerpsV2'>;
|
362
|
-
export declare function swap(kind: 'PerpsV2AddLiquidity'): GetDataEnumKind<SwapArgs, 'PerpsV2AddLiquidity'>;
|
363
|
-
export declare function swap(kind: 'PerpsV2RemoveLiquidity'): GetDataEnumKind<SwapArgs, 'PerpsV2RemoveLiquidity'>;
|
364
|
-
export declare function swap(kind: 'MoonshotWrappedBuy'): GetDataEnumKind<SwapArgs, 'MoonshotWrappedBuy'>;
|
365
|
-
export declare function swap(kind: 'MoonshotWrappedSell'): GetDataEnumKind<SwapArgs, 'MoonshotWrappedSell'>;
|
366
|
-
export declare function swap(kind: 'StabbleStableSwap'): GetDataEnumKind<SwapArgs, 'StabbleStableSwap'>;
|
367
|
-
export declare function swap(kind: 'StabbleWeightedSwap'): GetDataEnumKind<SwapArgs, 'StabbleWeightedSwap'>;
|
368
|
-
export declare function swap(kind: 'Obric', data: GetDataEnumKindContent<SwapArgs, 'Obric'>): GetDataEnumKind<SwapArgs, 'Obric'>;
|
369
|
-
export declare function isSwap<K extends Swap['__kind']>(kind: K, value: Swap): value is Swap & {
|
370
|
-
__kind: K;
|
371
|
-
};
|
372
|
-
//# sourceMappingURL=swap.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"swap.d.ts","sourceRoot":"","sources":["../../../src/jupiter-sdk/types/swap.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,UAAU,EASX,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,IAAI,EACJ,QAAQ,EAGT,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,IAAI,GACZ;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB;IAAE,MAAM,EAAE,yBAAyB,CAAA;CAAE,GACrC;IAAE,MAAM,EAAE,0BAA0B,CAAA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D,wBAAgB,IAAI,CAClB,IAAI,EAAE,mBAAmB,GACxB,eAAe,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;AAClD,wBAAgB,IAAI,CAClB,IAAI,EAAE,qBAAqB,GAC1B,eAAe,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;AACpD,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,sBAAsB,CAAC,QAAQ,EAAE,OAAO,CAAC,GAC9C,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAStC,wBAAgB,MAAM,CAAC,CAAC,SAAS,IAAI,CAAC,QAAQ,CAAC,EAC7C,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,IAAI,GACV,KAAK,IAAI,IAAI,GAAG;IAAE,MAAM,EAAE,CAAC,CAAA;CAAE,CAE/B"}
|
@@ -1,188 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* This code was AUTOGENERATED using the kinobi library.
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
5
|
-
* to add features, then rerun kinobi to update it.
|
6
|
-
*
|
7
|
-
* @see https://github.com/metaplex-foundation/kinobi
|
8
|
-
*/
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.getSwapSerializer = getSwapSerializer;
|
11
|
-
exports.swap = swap;
|
12
|
-
exports.isSwap = isSwap;
|
13
|
-
const serializers_1 = require("@metaplex-foundation/umi/serializers");
|
14
|
-
const _1 = require(".");
|
15
|
-
function getSwapSerializer() {
|
16
|
-
return (0, serializers_1.dataEnum)([
|
17
|
-
['Saber', (0, serializers_1.unit)()],
|
18
|
-
['SaberAddDecimalsDeposit', (0, serializers_1.unit)()],
|
19
|
-
['SaberAddDecimalsWithdraw', (0, serializers_1.unit)()],
|
20
|
-
['TokenSwap', (0, serializers_1.unit)()],
|
21
|
-
['Sencha', (0, serializers_1.unit)()],
|
22
|
-
['Step', (0, serializers_1.unit)()],
|
23
|
-
['Cropper', (0, serializers_1.unit)()],
|
24
|
-
['Raydium', (0, serializers_1.unit)()],
|
25
|
-
[
|
26
|
-
'Crema',
|
27
|
-
(0, serializers_1.struct)([['aToB', (0, serializers_1.bool)()]]),
|
28
|
-
],
|
29
|
-
['Lifinity', (0, serializers_1.unit)()],
|
30
|
-
['Mercurial', (0, serializers_1.unit)()],
|
31
|
-
['Cykura', (0, serializers_1.unit)()],
|
32
|
-
[
|
33
|
-
'Serum',
|
34
|
-
(0, serializers_1.struct)([
|
35
|
-
['side', (0, _1.getSideSerializer)()],
|
36
|
-
]),
|
37
|
-
],
|
38
|
-
['MarinadeDeposit', (0, serializers_1.unit)()],
|
39
|
-
['MarinadeUnstake', (0, serializers_1.unit)()],
|
40
|
-
[
|
41
|
-
'Aldrin',
|
42
|
-
(0, serializers_1.struct)([
|
43
|
-
['side', (0, _1.getSideSerializer)()],
|
44
|
-
]),
|
45
|
-
],
|
46
|
-
[
|
47
|
-
'AldrinV2',
|
48
|
-
(0, serializers_1.struct)([
|
49
|
-
['side', (0, _1.getSideSerializer)()],
|
50
|
-
]),
|
51
|
-
],
|
52
|
-
[
|
53
|
-
'Whirlpool',
|
54
|
-
(0, serializers_1.struct)([['aToB', (0, serializers_1.bool)()]]),
|
55
|
-
],
|
56
|
-
[
|
57
|
-
'Invariant',
|
58
|
-
(0, serializers_1.struct)([['xToY', (0, serializers_1.bool)()]]),
|
59
|
-
],
|
60
|
-
['Meteora', (0, serializers_1.unit)()],
|
61
|
-
['GooseFX', (0, serializers_1.unit)()],
|
62
|
-
[
|
63
|
-
'DeltaFi',
|
64
|
-
(0, serializers_1.struct)([['stable', (0, serializers_1.bool)()]]),
|
65
|
-
],
|
66
|
-
['Balansol', (0, serializers_1.unit)()],
|
67
|
-
[
|
68
|
-
'MarcoPolo',
|
69
|
-
(0, serializers_1.struct)([['xToY', (0, serializers_1.bool)()]]),
|
70
|
-
],
|
71
|
-
[
|
72
|
-
'Dradex',
|
73
|
-
(0, serializers_1.struct)([
|
74
|
-
['side', (0, _1.getSideSerializer)()],
|
75
|
-
]),
|
76
|
-
],
|
77
|
-
['LifinityV2', (0, serializers_1.unit)()],
|
78
|
-
['RaydiumClmm', (0, serializers_1.unit)()],
|
79
|
-
[
|
80
|
-
'Openbook',
|
81
|
-
(0, serializers_1.struct)([
|
82
|
-
['side', (0, _1.getSideSerializer)()],
|
83
|
-
]),
|
84
|
-
],
|
85
|
-
[
|
86
|
-
'Phoenix',
|
87
|
-
(0, serializers_1.struct)([
|
88
|
-
['side', (0, _1.getSideSerializer)()],
|
89
|
-
]),
|
90
|
-
],
|
91
|
-
[
|
92
|
-
'Symmetry',
|
93
|
-
(0, serializers_1.struct)([
|
94
|
-
['fromTokenId', (0, serializers_1.u64)()],
|
95
|
-
['toTokenId', (0, serializers_1.u64)()],
|
96
|
-
]),
|
97
|
-
],
|
98
|
-
['TokenSwapV2', (0, serializers_1.unit)()],
|
99
|
-
['HeliumTreasuryManagementRedeemV0', (0, serializers_1.unit)()],
|
100
|
-
['StakeDexStakeWrappedSol', (0, serializers_1.unit)()],
|
101
|
-
[
|
102
|
-
'StakeDexSwapViaStake',
|
103
|
-
(0, serializers_1.struct)([
|
104
|
-
['bridgeStakeSeed', (0, serializers_1.u32)()],
|
105
|
-
]),
|
106
|
-
],
|
107
|
-
['GooseFXV2', (0, serializers_1.unit)()],
|
108
|
-
['Perps', (0, serializers_1.unit)()],
|
109
|
-
['PerpsAddLiquidity', (0, serializers_1.unit)()],
|
110
|
-
['PerpsRemoveLiquidity', (0, serializers_1.unit)()],
|
111
|
-
['MeteoraDlmm', (0, serializers_1.unit)()],
|
112
|
-
[
|
113
|
-
'OpenBookV2',
|
114
|
-
(0, serializers_1.struct)([
|
115
|
-
['side', (0, _1.getSideSerializer)()],
|
116
|
-
]),
|
117
|
-
],
|
118
|
-
['RaydiumClmmV2', (0, serializers_1.unit)()],
|
119
|
-
[
|
120
|
-
'StakeDexPrefundWithdrawStakeAndDepositStake',
|
121
|
-
(0, serializers_1.struct)([['bridgeStakeSeed', (0, serializers_1.u32)()]]),
|
122
|
-
],
|
123
|
-
[
|
124
|
-
'Clone',
|
125
|
-
(0, serializers_1.struct)([
|
126
|
-
['poolIndex', (0, serializers_1.u8)()],
|
127
|
-
['quantityIsInput', (0, serializers_1.bool)()],
|
128
|
-
['quantityIsCollateral', (0, serializers_1.bool)()],
|
129
|
-
]),
|
130
|
-
],
|
131
|
-
[
|
132
|
-
'SanctumS',
|
133
|
-
(0, serializers_1.struct)([
|
134
|
-
['srcLstValueCalcAccs', (0, serializers_1.u8)()],
|
135
|
-
['dstLstValueCalcAccs', (0, serializers_1.u8)()],
|
136
|
-
['srcLstIndex', (0, serializers_1.u32)()],
|
137
|
-
['dstLstIndex', (0, serializers_1.u32)()],
|
138
|
-
]),
|
139
|
-
],
|
140
|
-
[
|
141
|
-
'SanctumSAddLiquidity',
|
142
|
-
(0, serializers_1.struct)([
|
143
|
-
['lstValueCalcAccs', (0, serializers_1.u8)()],
|
144
|
-
['lstIndex', (0, serializers_1.u32)()],
|
145
|
-
]),
|
146
|
-
],
|
147
|
-
[
|
148
|
-
'SanctumSRemoveLiquidity',
|
149
|
-
(0, serializers_1.struct)([
|
150
|
-
['lstValueCalcAccs', (0, serializers_1.u8)()],
|
151
|
-
['lstIndex', (0, serializers_1.u32)()],
|
152
|
-
]),
|
153
|
-
],
|
154
|
-
['RaydiumCP', (0, serializers_1.unit)()],
|
155
|
-
[
|
156
|
-
'WhirlpoolSwapV2',
|
157
|
-
(0, serializers_1.struct)([
|
158
|
-
['aToB', (0, serializers_1.bool)()],
|
159
|
-
[
|
160
|
-
'remainingAccountsInfo',
|
161
|
-
(0, serializers_1.option)((0, _1.getRemainingAccountsInfoSerializer)()),
|
162
|
-
],
|
163
|
-
]),
|
164
|
-
],
|
165
|
-
['OneIntro', (0, serializers_1.unit)()],
|
166
|
-
['PumpdotfunWrappedBuy', (0, serializers_1.unit)()],
|
167
|
-
['PumpdotfunWrappedSell', (0, serializers_1.unit)()],
|
168
|
-
['PerpsV2', (0, serializers_1.unit)()],
|
169
|
-
['PerpsV2AddLiquidity', (0, serializers_1.unit)()],
|
170
|
-
['PerpsV2RemoveLiquidity', (0, serializers_1.unit)()],
|
171
|
-
['MoonshotWrappedBuy', (0, serializers_1.unit)()],
|
172
|
-
['MoonshotWrappedSell', (0, serializers_1.unit)()],
|
173
|
-
['StabbleStableSwap', (0, serializers_1.unit)()],
|
174
|
-
['StabbleWeightedSwap', (0, serializers_1.unit)()],
|
175
|
-
[
|
176
|
-
'Obric',
|
177
|
-
(0, serializers_1.struct)([['xToY', (0, serializers_1.bool)()]]),
|
178
|
-
],
|
179
|
-
], { description: 'Swap' });
|
180
|
-
}
|
181
|
-
function swap(kind, data) {
|
182
|
-
return Array.isArray(data)
|
183
|
-
? { __kind: kind, fields: data }
|
184
|
-
: { __kind: kind, ...(data ?? {}) };
|
185
|
-
}
|
186
|
-
function isSwap(kind, value) {
|
187
|
-
return value.__kind === kind;
|
188
|
-
}
|