@haven-fi/solauto-sdk 1.0.175 → 1.0.177
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/constants/generalAccounts.d.ts.map +1 -1
- package/dist/constants/generalAccounts.js +0 -1
- package/dist/constants/solautoConstants.d.ts +0 -1
- package/dist/constants/solautoConstants.d.ts.map +1 -1
- package/dist/constants/solautoConstants.js +3 -3
- package/dist/generated/errors/solauto.d.ts +8 -26
- package/dist/generated/errors/solauto.d.ts.map +1 -1
- package/dist/generated/errors/solauto.js +26 -59
- package/dist/jupiter-sdk/accounts/index.d.ts +9 -0
- package/dist/jupiter-sdk/accounts/index.d.ts.map +1 -0
- package/dist/jupiter-sdk/accounts/index.js +24 -0
- package/dist/jupiter-sdk/accounts/tokenLedger.d.ts +32 -0
- package/dist/jupiter-sdk/accounts/tokenLedger.d.ts.map +1 -0
- package/dist/jupiter-sdk/accounts/tokenLedger.js +68 -0
- package/dist/jupiter-sdk/errors/index.d.ts +9 -0
- package/dist/jupiter-sdk/errors/index.d.ts.map +1 -0
- package/dist/jupiter-sdk/errors/index.js +24 -0
- package/dist/jupiter-sdk/errors/jupiter.d.ts +127 -0
- package/dist/jupiter-sdk/errors/jupiter.d.ts.map +1 -0
- package/dist/jupiter-sdk/errors/jupiter.js +229 -0
- package/dist/jupiter-sdk/index.d.ts +14 -0
- package/dist/jupiter-sdk/index.d.ts.map +1 -0
- package/dist/jupiter-sdk/index.js +29 -0
- package/dist/jupiter-sdk/instructions/aldrinSwap.d.ts +29 -0
- package/dist/jupiter-sdk/instructions/aldrinSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/aldrinSwap.js +95 -0
- package/dist/jupiter-sdk/instructions/aldrinV2Swap.d.ts +30 -0
- package/dist/jupiter-sdk/instructions/aldrinV2Swap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/aldrinV2Swap.js +100 -0
- package/dist/jupiter-sdk/instructions/balansolSwap.d.ts +34 -0
- package/dist/jupiter-sdk/instructions/balansolSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/balansolSwap.js +130 -0
- package/dist/jupiter-sdk/instructions/claim.d.ts +25 -0
- package/dist/jupiter-sdk/instructions/claim.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/claim.js +64 -0
- package/dist/jupiter-sdk/instructions/claimToken.d.ts +31 -0
- package/dist/jupiter-sdk/instructions/claimToken.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/claimToken.js +93 -0
- package/dist/jupiter-sdk/instructions/cloneSwap.d.ts +34 -0
- package/dist/jupiter-sdk/instructions/cloneSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/cloneSwap.js +120 -0
- package/dist/jupiter-sdk/instructions/createOpenOrders.d.ts +24 -0
- package/dist/jupiter-sdk/instructions/createOpenOrders.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/createOpenOrders.js +76 -0
- package/dist/jupiter-sdk/instructions/createProgramOpenOrders.d.ts +29 -0
- package/dist/jupiter-sdk/instructions/createProgramOpenOrders.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/createProgramOpenOrders.js +86 -0
- package/dist/jupiter-sdk/instructions/createTokenAccount.d.ts +27 -0
- package/dist/jupiter-sdk/instructions/createTokenAccount.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/createTokenAccount.js +70 -0
- package/dist/jupiter-sdk/instructions/createTokenLedger.d.ts +21 -0
- package/dist/jupiter-sdk/instructions/createTokenLedger.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/createTokenLedger.js +62 -0
- package/dist/jupiter-sdk/instructions/cremaSwap.d.ts +33 -0
- package/dist/jupiter-sdk/instructions/cremaSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/cremaSwap.js +119 -0
- package/dist/jupiter-sdk/instructions/cropperSwap.d.ts +30 -0
- package/dist/jupiter-sdk/instructions/cropperSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/cropperSwap.js +103 -0
- package/dist/jupiter-sdk/instructions/cykuraSwap.d.ts +29 -0
- package/dist/jupiter-sdk/instructions/cykuraSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/cykuraSwap.js +99 -0
- package/dist/jupiter-sdk/instructions/deltafiSwap.d.ts +31 -0
- package/dist/jupiter-sdk/instructions/deltafiSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/deltafiSwap.js +109 -0
- package/dist/jupiter-sdk/instructions/dradexSwap.d.ts +35 -0
- package/dist/jupiter-sdk/instructions/dradexSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/dradexSwap.js +121 -0
- package/dist/jupiter-sdk/instructions/exactOutRoute.d.ts +42 -0
- package/dist/jupiter-sdk/instructions/exactOutRoute.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/exactOutRoute.js +109 -0
- package/dist/jupiter-sdk/instructions/goosefxSwap.d.ts +33 -0
- package/dist/jupiter-sdk/instructions/goosefxSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/goosefxSwap.js +115 -0
- package/dist/jupiter-sdk/instructions/goosefxV2Swap.d.ts +38 -0
- package/dist/jupiter-sdk/instructions/goosefxV2Swap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/goosefxV2Swap.js +140 -0
- package/dist/jupiter-sdk/instructions/heliumTreasuryManagementRedeemV0.d.ts +29 -0
- package/dist/jupiter-sdk/instructions/heliumTreasuryManagementRedeemV0.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/heliumTreasuryManagementRedeemV0.js +91 -0
- package/dist/jupiter-sdk/instructions/index.d.ts +72 -0
- package/dist/jupiter-sdk/instructions/index.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/index.js +87 -0
- package/dist/jupiter-sdk/instructions/invariantSwap.d.ts +29 -0
- package/dist/jupiter-sdk/instructions/invariantSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/invariantSwap.js +95 -0
- package/dist/jupiter-sdk/instructions/lifinitySwap.d.ts +32 -0
- package/dist/jupiter-sdk/instructions/lifinitySwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/lifinitySwap.js +113 -0
- package/dist/jupiter-sdk/instructions/lifinityV2Swap.d.ts +32 -0
- package/dist/jupiter-sdk/instructions/lifinityV2Swap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/lifinityV2Swap.js +113 -0
- package/dist/jupiter-sdk/instructions/marcoPoloSwap.d.ts +36 -0
- package/dist/jupiter-sdk/instructions/marcoPoloSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/marcoPoloSwap.js +137 -0
- package/dist/jupiter-sdk/instructions/marinadeDeposit.d.ts +36 -0
- package/dist/jupiter-sdk/instructions/marinadeDeposit.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/marinadeDeposit.js +144 -0
- package/dist/jupiter-sdk/instructions/marinadeUnstake.d.ts +30 -0
- package/dist/jupiter-sdk/instructions/marinadeUnstake.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/marinadeUnstake.js +105 -0
- package/dist/jupiter-sdk/instructions/mercurialSwap.d.ts +25 -0
- package/dist/jupiter-sdk/instructions/mercurialSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/mercurialSwap.js +76 -0
- package/dist/jupiter-sdk/instructions/meteoraDlmmSwap.d.ts +34 -0
- package/dist/jupiter-sdk/instructions/meteoraDlmmSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/meteoraDlmmSwap.js +119 -0
- package/dist/jupiter-sdk/instructions/meteoraSwap.d.ts +34 -0
- package/dist/jupiter-sdk/instructions/meteoraSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/meteoraSwap.js +120 -0
- package/dist/jupiter-sdk/instructions/moonshotWrappedBuy.d.ts +33 -0
- package/dist/jupiter-sdk/instructions/moonshotWrappedBuy.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/moonshotWrappedBuy.js +119 -0
- package/dist/jupiter-sdk/instructions/moonshotWrappedSell.d.ts +31 -0
- package/dist/jupiter-sdk/instructions/moonshotWrappedSell.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/moonshotWrappedSell.js +106 -0
- package/dist/jupiter-sdk/instructions/obricSwap.d.ts +31 -0
- package/dist/jupiter-sdk/instructions/obricSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/obricSwap.js +106 -0
- package/dist/jupiter-sdk/instructions/oneIntroSwap.d.ts +30 -0
- package/dist/jupiter-sdk/instructions/oneIntroSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/oneIntroSwap.js +100 -0
- package/dist/jupiter-sdk/instructions/openBookV2Swap.d.ts +35 -0
- package/dist/jupiter-sdk/instructions/openBookV2Swap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/openBookV2Swap.js +125 -0
- package/dist/jupiter-sdk/instructions/perpsAddLiquidity.d.ts +32 -0
- package/dist/jupiter-sdk/instructions/perpsAddLiquidity.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/perpsAddLiquidity.js +110 -0
- package/dist/jupiter-sdk/instructions/perpsRemoveLiquidity.d.ts +32 -0
- package/dist/jupiter-sdk/instructions/perpsRemoveLiquidity.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/perpsRemoveLiquidity.js +110 -0
- package/dist/jupiter-sdk/instructions/perpsSwap.d.ts +34 -0
- package/dist/jupiter-sdk/instructions/perpsSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/perpsSwap.js +120 -0
- package/dist/jupiter-sdk/instructions/perpsV2AddLiquidity.d.ts +33 -0
- package/dist/jupiter-sdk/instructions/perpsV2AddLiquidity.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/perpsV2AddLiquidity.js +115 -0
- package/dist/jupiter-sdk/instructions/perpsV2RemoveLiquidity.d.ts +33 -0
- package/dist/jupiter-sdk/instructions/perpsV2RemoveLiquidity.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/perpsV2RemoveLiquidity.js +112 -0
- package/dist/jupiter-sdk/instructions/perpsV2Swap.d.ts +36 -0
- package/dist/jupiter-sdk/instructions/perpsV2Swap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/perpsV2Swap.js +130 -0
- package/dist/jupiter-sdk/instructions/phoenixSwap.d.ts +27 -0
- package/dist/jupiter-sdk/instructions/phoenixSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/phoenixSwap.js +89 -0
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedBuy.d.ts +34 -0
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedBuy.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedBuy.js +123 -0
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedSell.d.ts +32 -0
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedSell.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/pumpdotfunWrappedSell.js +107 -0
- package/dist/jupiter-sdk/instructions/raydiumClmmSwap.d.ts +29 -0
- package/dist/jupiter-sdk/instructions/raydiumClmmSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/raydiumClmmSwap.js +102 -0
- package/dist/jupiter-sdk/instructions/raydiumClmmSwapV2.d.ts +32 -0
- package/dist/jupiter-sdk/instructions/raydiumClmmSwapV2.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/raydiumClmmSwapV2.js +117 -0
- package/dist/jupiter-sdk/instructions/raydiumCpSwap.d.ts +32 -0
- package/dist/jupiter-sdk/instructions/raydiumCpSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/raydiumCpSwap.js +116 -0
- package/dist/jupiter-sdk/instructions/raydiumSwap.d.ts +36 -0
- package/dist/jupiter-sdk/instructions/raydiumSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/raydiumSwap.js +134 -0
- package/dist/jupiter-sdk/instructions/route.d.ts +40 -0
- package/dist/jupiter-sdk/instructions/route.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/route.js +99 -0
- package/dist/jupiter-sdk/instructions/routeWithTokenLedger.d.ts +39 -0
- package/dist/jupiter-sdk/instructions/routeWithTokenLedger.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/routeWithTokenLedger.js +103 -0
- package/dist/jupiter-sdk/instructions/saberAddDecimals.d.ts +26 -0
- package/dist/jupiter-sdk/instructions/saberAddDecimals.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/saberAddDecimals.js +81 -0
- package/dist/jupiter-sdk/instructions/saberSwap.d.ts +28 -0
- package/dist/jupiter-sdk/instructions/saberSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/saberSwap.js +87 -0
- package/dist/jupiter-sdk/instructions/senchaSwap.d.ts +28 -0
- package/dist/jupiter-sdk/instructions/senchaSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/senchaSwap.js +90 -0
- package/dist/jupiter-sdk/instructions/serumSwap.d.ts +34 -0
- package/dist/jupiter-sdk/instructions/serumSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/serumSwap.js +122 -0
- package/dist/jupiter-sdk/instructions/setTokenLedger.d.ts +20 -0
- package/dist/jupiter-sdk/instructions/setTokenLedger.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/setTokenLedger.js +46 -0
- package/dist/jupiter-sdk/instructions/sharedAccountsExactOutRoute.d.ts +46 -0
- package/dist/jupiter-sdk/instructions/sharedAccountsExactOutRoute.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/sharedAccountsExactOutRoute.js +120 -0
- package/dist/jupiter-sdk/instructions/sharedAccountsRoute.d.ts +46 -0
- package/dist/jupiter-sdk/instructions/sharedAccountsRoute.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/sharedAccountsRoute.js +120 -0
- package/dist/jupiter-sdk/instructions/sharedAccountsRouteWithTokenLedger.d.ts +45 -0
- package/dist/jupiter-sdk/instructions/sharedAccountsRouteWithTokenLedger.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/sharedAccountsRouteWithTokenLedger.js +126 -0
- package/dist/jupiter-sdk/instructions/stabbleStableSwap.d.ts +31 -0
- package/dist/jupiter-sdk/instructions/stabbleStableSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/stabbleStableSwap.js +101 -0
- package/dist/jupiter-sdk/instructions/stabbleWeightedSwap.d.ts +31 -0
- package/dist/jupiter-sdk/instructions/stabbleWeightedSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/stabbleWeightedSwap.js +101 -0
- package/dist/jupiter-sdk/instructions/stepSwap.d.ts +29 -0
- package/dist/jupiter-sdk/instructions/stepSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/stepSwap.js +98 -0
- package/dist/jupiter-sdk/instructions/symmetrySwap.d.ts +32 -0
- package/dist/jupiter-sdk/instructions/symmetrySwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/symmetrySwap.js +114 -0
- package/dist/jupiter-sdk/instructions/tokenSwap.d.ts +29 -0
- package/dist/jupiter-sdk/instructions/tokenSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/tokenSwap.js +98 -0
- package/dist/jupiter-sdk/instructions/tokenSwapV2.d.ts +33 -0
- package/dist/jupiter-sdk/instructions/tokenSwapV2.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/tokenSwapV2.js +114 -0
- package/dist/jupiter-sdk/instructions/whirlpoolSwap.d.ts +31 -0
- package/dist/jupiter-sdk/instructions/whirlpoolSwap.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/whirlpoolSwap.js +104 -0
- package/dist/jupiter-sdk/instructions/whirlpoolSwapV2.d.ts +35 -0
- package/dist/jupiter-sdk/instructions/whirlpoolSwapV2.d.ts.map +1 -0
- package/dist/jupiter-sdk/instructions/whirlpoolSwapV2.js +119 -0
- package/dist/jupiter-sdk/programs/index.d.ts +9 -0
- package/dist/jupiter-sdk/programs/index.d.ts.map +1 -0
- package/dist/jupiter-sdk/programs/index.js +24 -0
- package/dist/jupiter-sdk/programs/jupiter.d.ts +13 -0
- package/dist/jupiter-sdk/programs/jupiter.d.ts.map +1 -0
- package/dist/jupiter-sdk/programs/jupiter.js +36 -0
- package/dist/jupiter-sdk/shared/index.d.ts +54 -0
- package/dist/jupiter-sdk/shared/index.d.ts.map +1 -0
- package/dist/jupiter-sdk/shared/index.js +69 -0
- package/dist/jupiter-sdk/types/accountsType.d.ts +15 -0
- package/dist/jupiter-sdk/types/accountsType.d.ts.map +1 -0
- package/dist/jupiter-sdk/types/accountsType.js +22 -0
- package/dist/jupiter-sdk/types/amountWithSlippage.d.ts +18 -0
- package/dist/jupiter-sdk/types/amountWithSlippage.d.ts.map +1 -0
- package/dist/jupiter-sdk/types/amountWithSlippage.js +17 -0
- package/dist/jupiter-sdk/types/index.d.ts +15 -0
- package/dist/jupiter-sdk/types/index.d.ts.map +1 -0
- package/dist/jupiter-sdk/types/index.js +30 -0
- package/dist/jupiter-sdk/types/remainingAccountsInfo.d.ts +17 -0
- package/dist/jupiter-sdk/types/remainingAccountsInfo.d.ts.map +1 -0
- package/dist/jupiter-sdk/types/remainingAccountsInfo.js +15 -0
- package/dist/jupiter-sdk/types/remainingAccountsSlice.d.ts +19 -0
- package/dist/jupiter-sdk/types/remainingAccountsSlice.d.ts.map +1 -0
- package/dist/jupiter-sdk/types/remainingAccountsSlice.js +18 -0
- package/dist/jupiter-sdk/types/routePlanStep.d.ts +23 -0
- package/dist/jupiter-sdk/types/routePlanStep.d.ts.map +1 -0
- package/dist/jupiter-sdk/types/routePlanStep.js +20 -0
- package/dist/jupiter-sdk/types/side.d.ts +15 -0
- package/dist/jupiter-sdk/types/side.d.ts.map +1 -0
- package/dist/jupiter-sdk/types/side.js +20 -0
- package/dist/jupiter-sdk/types/swap.d.ts +372 -0
- package/dist/jupiter-sdk/types/swap.d.ts.map +1 -0
- package/dist/jupiter-sdk/types/swap.js +188 -0
- package/dist/transactions/transactionUtils.d.ts +5 -0
- package/dist/transactions/transactionUtils.d.ts.map +1 -1
- package/dist/transactions/transactionUtils.js +48 -3
- package/dist/transactions/transactionsManager.d.ts +2 -1
- package/dist/transactions/transactionsManager.d.ts.map +1 -1
- package/dist/transactions/transactionsManager.js +13 -3
- package/package.json +1 -1
- package/src/constants/generalAccounts.ts +0 -3
- package/src/constants/solautoConstants.ts +1 -2
- package/src/generated/errors/solauto.ts +30 -88
- package/src/jupiter-sdk/accounts/index.ts +9 -0
- package/src/jupiter-sdk/accounts/tokenLedger.ts +146 -0
- package/src/jupiter-sdk/errors/index.ts +9 -0
- package/src/jupiter-sdk/errors/jupiter.ts +282 -0
- package/src/jupiter-sdk/index.ts +14 -0
- package/src/jupiter-sdk/instructions/aldrinSwap.ts +165 -0
- package/src/jupiter-sdk/instructions/aldrinV2Swap.ts +171 -0
- package/src/jupiter-sdk/instructions/balansolSwap.ts +211 -0
- package/src/jupiter-sdk/instructions/claim.ts +128 -0
- package/src/jupiter-sdk/instructions/claimToken.ts +171 -0
- package/src/jupiter-sdk/instructions/cloneSwap.ts +195 -0
- package/src/jupiter-sdk/instructions/createOpenOrders.ts +148 -0
- package/src/jupiter-sdk/instructions/createProgramOpenOrders.ts +170 -0
- package/src/jupiter-sdk/instructions/createTokenAccount.ts +152 -0
- package/src/jupiter-sdk/instructions/createTokenLedger.ts +128 -0
- package/src/jupiter-sdk/instructions/cremaSwap.ts +193 -0
- package/src/jupiter-sdk/instructions/cropperSwap.ts +174 -0
- package/src/jupiter-sdk/instructions/cykuraSwap.ts +169 -0
- package/src/jupiter-sdk/instructions/deltafiSwap.ts +181 -0
- package/src/jupiter-sdk/instructions/dradexSwap.ts +200 -0
- package/src/jupiter-sdk/instructions/exactOutRoute.ts +208 -0
- package/src/jupiter-sdk/instructions/goosefxSwap.ts +189 -0
- package/src/jupiter-sdk/instructions/goosefxV2Swap.ts +222 -0
- package/src/jupiter-sdk/instructions/heliumTreasuryManagementRedeemV0.ts +169 -0
- package/src/jupiter-sdk/instructions/index.ts +72 -0
- package/src/jupiter-sdk/instructions/invariantSwap.ts +168 -0
- package/src/jupiter-sdk/instructions/lifinitySwap.ts +186 -0
- package/src/jupiter-sdk/instructions/lifinityV2Swap.ts +189 -0
- package/src/jupiter-sdk/instructions/marcoPoloSwap.ts +223 -0
- package/src/jupiter-sdk/instructions/marinadeDeposit.ts +230 -0
- package/src/jupiter-sdk/instructions/marinadeUnstake.ts +182 -0
- package/src/jupiter-sdk/instructions/mercurialSwap.ts +145 -0
- package/src/jupiter-sdk/instructions/meteoraDlmmSwap.ts +193 -0
- package/src/jupiter-sdk/instructions/meteoraSwap.ts +195 -0
- package/src/jupiter-sdk/instructions/moonshotWrappedBuy.ts +201 -0
- package/src/jupiter-sdk/instructions/moonshotWrappedSell.ts +186 -0
- package/src/jupiter-sdk/instructions/obricSwap.ts +178 -0
- package/src/jupiter-sdk/instructions/oneIntroSwap.ts +171 -0
- package/src/jupiter-sdk/instructions/openBookV2Swap.ts +207 -0
- package/src/jupiter-sdk/instructions/perpsAddLiquidity.ts +186 -0
- package/src/jupiter-sdk/instructions/perpsRemoveLiquidity.ts +188 -0
- package/src/jupiter-sdk/instructions/perpsSwap.ts +195 -0
- package/src/jupiter-sdk/instructions/perpsV2AddLiquidity.ts +194 -0
- package/src/jupiter-sdk/instructions/perpsV2RemoveLiquidity.ts +193 -0
- package/src/jupiter-sdk/instructions/perpsV2Swap.ts +207 -0
- package/src/jupiter-sdk/instructions/phoenixSwap.ts +157 -0
- package/src/jupiter-sdk/instructions/pumpdotfunWrappedBuy.ts +209 -0
- package/src/jupiter-sdk/instructions/pumpdotfunWrappedSell.ts +190 -0
- package/src/jupiter-sdk/instructions/raydiumClmmSwap.ts +175 -0
- package/src/jupiter-sdk/instructions/raydiumClmmSwapV2.ts +193 -0
- package/src/jupiter-sdk/instructions/raydiumCpSwap.ts +189 -0
- package/src/jupiter-sdk/instructions/raydiumSwap.ts +211 -0
- package/src/jupiter-sdk/instructions/route.ts +189 -0
- package/src/jupiter-sdk/instructions/routeWithTokenLedger.ts +201 -0
- package/src/jupiter-sdk/instructions/saberAddDecimals.ts +151 -0
- package/src/jupiter-sdk/instructions/saberSwap.ts +156 -0
- package/src/jupiter-sdk/instructions/senchaSwap.ts +159 -0
- package/src/jupiter-sdk/instructions/serumSwap.ts +200 -0
- package/src/jupiter-sdk/instructions/setTokenLedger.ts +106 -0
- package/src/jupiter-sdk/instructions/sharedAccountsExactOutRoute.ts +226 -0
- package/src/jupiter-sdk/instructions/sharedAccountsRoute.ts +225 -0
- package/src/jupiter-sdk/instructions/sharedAccountsRouteWithTokenLedger.ts +231 -0
- package/src/jupiter-sdk/instructions/stabbleStableSwap.ts +176 -0
- package/src/jupiter-sdk/instructions/stabbleWeightedSwap.ts +178 -0
- package/src/jupiter-sdk/instructions/stepSwap.ts +168 -0
- package/src/jupiter-sdk/instructions/symmetrySwap.ts +187 -0
- package/src/jupiter-sdk/instructions/tokenSwap.ts +168 -0
- package/src/jupiter-sdk/instructions/tokenSwapV2.ts +185 -0
- package/src/jupiter-sdk/instructions/whirlpoolSwap.ts +179 -0
- package/src/jupiter-sdk/instructions/whirlpoolSwapV2.ts +194 -0
- package/src/jupiter-sdk/programs/index.ts +9 -0
- package/src/jupiter-sdk/programs/jupiter.ts +52 -0
- package/src/jupiter-sdk/shared/index.ts +117 -0
- package/src/jupiter-sdk/types/accountsType.ts +25 -0
- package/src/jupiter-sdk/types/amountWithSlippage.ts +34 -0
- package/src/jupiter-sdk/types/index.ts +15 -0
- package/src/jupiter-sdk/types/remainingAccountsInfo.ts +34 -0
- package/src/jupiter-sdk/types/remainingAccountsSlice.ts +33 -0
- package/src/jupiter-sdk/types/routePlanStep.ts +39 -0
- package/src/jupiter-sdk/types/side.ts +23 -0
- package/src/jupiter-sdk/types/swap.ts +566 -0
- package/src/transactions/transactionUtils.ts +75 -4
- package/src/transactions/transactionsManager.ts +31 -6
- package/tests/transactions/solautoMarginfi.ts +2 -2
@@ -0,0 +1,372 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"swap.d.ts","sourceRoot":"","sources":["../../../src/jupiter-sdk/types/swap.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,O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EAAE,qBAAqB,GAC1B,eAAe,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;AACpD,wBAAgB,IAAI,CAClB,IAAI,EAAE,wBAAwB,GAC7B,eAAe,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAC;AACvD,wBAAgB,IAAI,CAClB,IAAI,EAAE,oBAAoB,GACzB,eAAe,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC;AACnD,wBAAgB,IAAI,CAClB,IAAI,EAAE,qBAAqB,GAC1B,eAAe,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;AACpD,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"}
|
@@ -0,0 +1,188 @@
|
|
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
|
+
}
|
@@ -10,4 +10,9 @@ export declare function buildSolautoRebalanceTransaction(client: SolautoClient,
|
|
10
10
|
lookupTableAddresses: string[];
|
11
11
|
} | undefined>;
|
12
12
|
export declare function convertReferralFeesToDestination(umi: Umi, referralState: ReferralState, tokenAccount: PublicKey): Promise<[TransactionBuilder, string[]] | undefined>;
|
13
|
+
export declare function getErrorInfo(tx: TransactionBuilder, error: any): {
|
14
|
+
errorName: string;
|
15
|
+
errorInfo: string;
|
16
|
+
canBeIgnored: boolean;
|
17
|
+
};
|
13
18
|
//# sourceMappingURL=transactionUtils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transactionUtils.d.ts","sourceRoot":"","sources":["../../src/transactions/transactionUtils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"transactionUtils.d.ts","sourceRoot":"","sources":["../../src/transactions/transactionUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,EAClB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,SAAS,EAA8B,MAAM,iBAAiB,CAAC;AAKxE,OAAO,EAGL,aAAa,EAYd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAiOzD,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,kBAAkB,EACtB,sBAAsB,EAAE,MAAM,EAAE,GAC/B,OAAO,CAAC,kBAAkB,CAAC,CA+G7B;AAmLD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,kBAAkB,GACrB,OAAO,CAAC,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CA0BnD;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,aAAa,WAwCnE;AAED,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,aAAa,EACrB,2BAA2B,CAAC,EAAE,MAAM,EACpC,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CACN;IACE,EAAE,EAAE,kBAAkB,CAAC;IACvB,oBAAoB,EAAE,MAAM,EAAE,CAAC;CAChC,GACD,SAAS,CACZ,CAwHA;AAED,wBAAsB,gCAAgC,CACpD,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,SAAS,GACtB,OAAO,CAAC,CAAC,kBAAkB,EAAE,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC,CAmCrD;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,kBAAkB,EAAE,KAAK,EAAE,GAAG;;;;EA0C9D"}
|