@haven-fi/solauto-sdk 1.0.176 → 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 +46 -4
- package/dist/transactions/transactionsManager.d.ts +2 -1
- package/dist/transactions/transactionsManager.d.ts.map +1 -1
- package/dist/transactions/transactionsManager.js +12 -20
- 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 +72 -5
- package/src/transactions/transactionsManager.ts +26 -29
@@ -0,0 +1,69 @@
|
|
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.expectSome = expectSome;
|
11
|
+
exports.expectPublicKey = expectPublicKey;
|
12
|
+
exports.expectPda = expectPda;
|
13
|
+
exports.getAccountMetasAndSigners = getAccountMetasAndSigners;
|
14
|
+
const umi_1 = require("@metaplex-foundation/umi");
|
15
|
+
/**
|
16
|
+
* Asserts that the given value is not null or undefined.
|
17
|
+
* @internal
|
18
|
+
*/
|
19
|
+
function expectSome(value) {
|
20
|
+
if (value == null) {
|
21
|
+
throw new Error('Expected a value but received null or undefined.');
|
22
|
+
}
|
23
|
+
return value;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* Asserts that the given value is a PublicKey.
|
27
|
+
* @internal
|
28
|
+
*/
|
29
|
+
function expectPublicKey(value) {
|
30
|
+
if (!value) {
|
31
|
+
throw new Error('Expected a PublicKey.');
|
32
|
+
}
|
33
|
+
return (0, umi_1.publicKey)(value, false);
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* Asserts that the given value is a PDA.
|
37
|
+
* @internal
|
38
|
+
*/
|
39
|
+
function expectPda(value) {
|
40
|
+
if (!value || !Array.isArray(value) || !(0, umi_1.isPda)(value)) {
|
41
|
+
throw new Error('Expected a PDA.');
|
42
|
+
}
|
43
|
+
return value;
|
44
|
+
}
|
45
|
+
/**
|
46
|
+
* Get account metas and signers from resolved accounts.
|
47
|
+
* @internal
|
48
|
+
*/
|
49
|
+
function getAccountMetasAndSigners(accounts, optionalAccountStrategy, programId) {
|
50
|
+
const keys = [];
|
51
|
+
const signers = [];
|
52
|
+
accounts.forEach((account) => {
|
53
|
+
if (!account.value) {
|
54
|
+
if (optionalAccountStrategy === 'omitted')
|
55
|
+
return;
|
56
|
+
keys.push({ pubkey: programId, isSigner: false, isWritable: false });
|
57
|
+
return;
|
58
|
+
}
|
59
|
+
if ((0, umi_1.isSigner)(account.value)) {
|
60
|
+
signers.push(account.value);
|
61
|
+
}
|
62
|
+
keys.push({
|
63
|
+
pubkey: (0, umi_1.publicKey)(account.value, false),
|
64
|
+
isSigner: (0, umi_1.isSigner)(account.value),
|
65
|
+
isWritable: account.isWritable,
|
66
|
+
});
|
67
|
+
});
|
68
|
+
return [keys, signers];
|
69
|
+
}
|
@@ -0,0 +1,15 @@
|
|
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 AccountsType {
|
10
|
+
TransferHookA = 0,
|
11
|
+
TransferHookB = 1
|
12
|
+
}
|
13
|
+
export type AccountsTypeArgs = AccountsType;
|
14
|
+
export declare function getAccountsTypeSerializer(): Serializer<AccountsTypeArgs, AccountsType>;
|
15
|
+
//# sourceMappingURL=accountsType.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"accountsType.d.ts","sourceRoot":"","sources":["../../../src/jupiter-sdk/types/accountsType.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAc,MAAM,sCAAsC,CAAC;AAE9E,oBAAY,YAAY;IACtB,aAAa,IAAA;IACb,aAAa,IAAA;CACd;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE5C,wBAAgB,yBAAyB,IAAI,UAAU,CACrD,gBAAgB,EAChB,YAAY,CACb,CAIA"}
|
@@ -0,0 +1,22 @@
|
|
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.AccountsType = void 0;
|
11
|
+
exports.getAccountsTypeSerializer = getAccountsTypeSerializer;
|
12
|
+
const serializers_1 = require("@metaplex-foundation/umi/serializers");
|
13
|
+
var AccountsType;
|
14
|
+
(function (AccountsType) {
|
15
|
+
AccountsType[AccountsType["TransferHookA"] = 0] = "TransferHookA";
|
16
|
+
AccountsType[AccountsType["TransferHookB"] = 1] = "TransferHookB";
|
17
|
+
})(AccountsType || (exports.AccountsType = AccountsType = {}));
|
18
|
+
function getAccountsTypeSerializer() {
|
19
|
+
return (0, serializers_1.scalarEnum)(AccountsType, {
|
20
|
+
description: 'AccountsType',
|
21
|
+
});
|
22
|
+
}
|
@@ -0,0 +1,18 @@
|
|
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 type AmountWithSlippage = {
|
10
|
+
amount: bigint;
|
11
|
+
slippageBps: number;
|
12
|
+
};
|
13
|
+
export type AmountWithSlippageArgs = {
|
14
|
+
amount: number | bigint;
|
15
|
+
slippageBps: number;
|
16
|
+
};
|
17
|
+
export declare function getAmountWithSlippageSerializer(): Serializer<AmountWithSlippageArgs, AmountWithSlippage>;
|
18
|
+
//# sourceMappingURL=amountWithSlippage.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"amountWithSlippage.d.ts","sourceRoot":"","sources":["../../../src/jupiter-sdk/types/amountWithSlippage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,UAAU,EAIX,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,UAAU,CAC3D,sBAAsB,EACtB,kBAAkB,CACnB,CAQA"}
|
@@ -0,0 +1,17 @@
|
|
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.getAmountWithSlippageSerializer = getAmountWithSlippageSerializer;
|
11
|
+
const serializers_1 = require("@metaplex-foundation/umi/serializers");
|
12
|
+
function getAmountWithSlippageSerializer() {
|
13
|
+
return (0, serializers_1.struct)([
|
14
|
+
['amount', (0, serializers_1.u64)()],
|
15
|
+
['slippageBps', (0, serializers_1.u16)()],
|
16
|
+
], { description: 'AmountWithSlippage' });
|
17
|
+
}
|
@@ -0,0 +1,15 @@
|
|
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
|
+
export * from './accountsType';
|
9
|
+
export * from './amountWithSlippage';
|
10
|
+
export * from './remainingAccountsInfo';
|
11
|
+
export * from './remainingAccountsSlice';
|
12
|
+
export * from './routePlanStep';
|
13
|
+
export * from './side';
|
14
|
+
export * from './swap';
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jupiter-sdk/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
@@ -0,0 +1,30 @@
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
14
|
+
}
|
15
|
+
Object.defineProperty(o, k2, desc);
|
16
|
+
}) : (function(o, m, k, k2) {
|
17
|
+
if (k2 === undefined) k2 = k;
|
18
|
+
o[k2] = m[k];
|
19
|
+
}));
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
22
|
+
};
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
24
|
+
__exportStar(require("./accountsType"), exports);
|
25
|
+
__exportStar(require("./amountWithSlippage"), exports);
|
26
|
+
__exportStar(require("./remainingAccountsInfo"), exports);
|
27
|
+
__exportStar(require("./remainingAccountsSlice"), exports);
|
28
|
+
__exportStar(require("./routePlanStep"), exports);
|
29
|
+
__exportStar(require("./side"), exports);
|
30
|
+
__exportStar(require("./swap"), exports);
|
@@ -0,0 +1,17 @@
|
|
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 { RemainingAccountsSlice, RemainingAccountsSliceArgs } from '.';
|
10
|
+
export type RemainingAccountsInfo = {
|
11
|
+
slices: Array<RemainingAccountsSlice>;
|
12
|
+
};
|
13
|
+
export type RemainingAccountsInfoArgs = {
|
14
|
+
slices: Array<RemainingAccountsSliceArgs>;
|
15
|
+
};
|
16
|
+
export declare function getRemainingAccountsInfoSerializer(): Serializer<RemainingAccountsInfoArgs, RemainingAccountsInfo>;
|
17
|
+
//# sourceMappingURL=remainingAccountsInfo.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remainingAccountsInfo.d.ts","sourceRoot":"","sources":["../../../src/jupiter-sdk/types/remainingAccountsInfo.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,UAAU,EAGX,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAE3B,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG;IAAE,MAAM,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAA;CAAE,CAAC;AAE9E,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CAC3C,CAAC;AAEF,wBAAgB,kCAAkC,IAAI,UAAU,CAC9D,yBAAyB,EACzB,qBAAqB,CACtB,CAKA"}
|
@@ -0,0 +1,15 @@
|
|
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.getRemainingAccountsInfoSerializer = getRemainingAccountsInfoSerializer;
|
11
|
+
const serializers_1 = require("@metaplex-foundation/umi/serializers");
|
12
|
+
const _1 = require(".");
|
13
|
+
function getRemainingAccountsInfoSerializer() {
|
14
|
+
return (0, serializers_1.struct)([['slices', (0, serializers_1.array)((0, _1.getRemainingAccountsSliceSerializer)())]], { description: 'RemainingAccountsInfo' });
|
15
|
+
}
|
@@ -0,0 +1,19 @@
|
|
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 { AccountsType, AccountsTypeArgs } from '.';
|
10
|
+
export type RemainingAccountsSlice = {
|
11
|
+
accountsType: AccountsType;
|
12
|
+
length: number;
|
13
|
+
};
|
14
|
+
export type RemainingAccountsSliceArgs = {
|
15
|
+
accountsType: AccountsTypeArgs;
|
16
|
+
length: number;
|
17
|
+
};
|
18
|
+
export declare function getRemainingAccountsSliceSerializer(): Serializer<RemainingAccountsSliceArgs, RemainingAccountsSlice>;
|
19
|
+
//# sourceMappingURL=remainingAccountsSlice.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"remainingAccountsSlice.d.ts","sourceRoot":"","sources":["../../../src/jupiter-sdk/types/remainingAccountsSlice.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAc,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAA6B,MAAM,GAAG,CAAC;AAE9E,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,mCAAmC,IAAI,UAAU,CAC/D,0BAA0B,EAC1B,sBAAsB,CACvB,CAQA"}
|
@@ -0,0 +1,18 @@
|
|
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.getRemainingAccountsSliceSerializer = getRemainingAccountsSliceSerializer;
|
11
|
+
const serializers_1 = require("@metaplex-foundation/umi/serializers");
|
12
|
+
const _1 = require(".");
|
13
|
+
function getRemainingAccountsSliceSerializer() {
|
14
|
+
return (0, serializers_1.struct)([
|
15
|
+
['accountsType', (0, _1.getAccountsTypeSerializer)()],
|
16
|
+
['length', (0, serializers_1.u8)()],
|
17
|
+
], { description: 'RemainingAccountsSlice' });
|
18
|
+
}
|
@@ -0,0 +1,23 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1,20 @@
|
|
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
|
+
}
|
@@ -0,0 +1,15 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1,20 @@
|
|
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
|
+
}
|