@7kprotocol/sdk-ts 3.4.1 → 3.4.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/lib/cjs/features/limitDca/placeLimitOrder.js +8 -3
  2. package/lib/cjs/features/swap/buildTx.js +101 -66
  3. package/lib/cjs/features/swap/buildTxV2.js +225 -0
  4. package/lib/cjs/features/swap/config.js +13 -7
  5. package/lib/cjs/features/swap/getQuote.js +3 -2
  6. package/lib/cjs/features/swap/index.js +1 -0
  7. package/lib/cjs/index.js +6 -2
  8. package/lib/cjs/libs/protocols/cetus_dlmm.js +48 -0
  9. package/lib/cjs/libs/protocols/index.js +2 -0
  10. package/lib/cjs/types/features/limitDca/placeLimitOrder.d.ts +2 -1
  11. package/lib/cjs/types/features/limitDca/placeLimitOrder.d.ts.map +1 -1
  12. package/lib/cjs/types/features/swap/buildTx.d.ts +14 -1
  13. package/lib/cjs/types/features/swap/buildTx.d.ts.map +1 -1
  14. package/lib/cjs/types/features/swap/buildTxV2.d.ts +20 -0
  15. package/lib/cjs/types/features/swap/buildTxV2.d.ts.map +1 -0
  16. package/lib/cjs/types/features/swap/config.d.ts.map +1 -1
  17. package/lib/cjs/types/features/swap/getQuote.d.ts +3 -1
  18. package/lib/cjs/types/features/swap/getQuote.d.ts.map +1 -1
  19. package/lib/cjs/types/features/swap/index.d.ts +1 -0
  20. package/lib/cjs/types/features/swap/index.d.ts.map +1 -1
  21. package/lib/cjs/types/index.d.ts +4 -2
  22. package/lib/cjs/types/index.d.ts.map +1 -1
  23. package/lib/cjs/types/libs/protocols/base.d.ts +4 -5
  24. package/lib/cjs/types/libs/protocols/base.d.ts.map +1 -1
  25. package/lib/cjs/types/libs/protocols/cetus_dlmm.d.ts +9 -0
  26. package/lib/cjs/types/libs/protocols/cetus_dlmm.d.ts.map +1 -0
  27. package/lib/cjs/types/libs/protocols/index.d.ts +2 -0
  28. package/lib/cjs/types/libs/protocols/index.d.ts.map +1 -1
  29. package/lib/cjs/types/libs/protocols/steamm/index.d.ts +3 -12
  30. package/lib/cjs/types/libs/protocols/steamm/index.d.ts.map +1 -1
  31. package/lib/cjs/types/libs/swapWithRoute.d.ts +3 -4
  32. package/lib/cjs/types/libs/swapWithRoute.d.ts.map +1 -1
  33. package/lib/cjs/types/types/aggregator.d.ts +5 -1
  34. package/lib/cjs/types/types/aggregator.d.ts.map +1 -1
  35. package/lib/cjs/types/types/tx.d.ts +13 -0
  36. package/lib/cjs/types/types/tx.d.ts.map +1 -1
  37. package/lib/cjs/types/utils/sui.d.ts +1 -0
  38. package/lib/cjs/types/utils/sui.d.ts.map +1 -1
  39. package/lib/cjs/utils/sui.js +7 -0
  40. package/lib/esm/features/limitDca/placeLimitOrder.js +8 -3
  41. package/lib/esm/features/swap/buildTx.js +95 -66
  42. package/lib/esm/features/swap/buildTxV2.js +219 -0
  43. package/lib/esm/features/swap/config.js +13 -7
  44. package/lib/esm/features/swap/getQuote.js +3 -2
  45. package/lib/esm/features/swap/index.js +1 -0
  46. package/lib/esm/index.mjs +12 -10
  47. package/lib/esm/libs/protocols/cetus_dlmm.js +44 -0
  48. package/lib/esm/libs/protocols/index.js +2 -0
  49. package/lib/esm/types/features/limitDca/placeLimitOrder.d.ts +2 -1
  50. package/lib/esm/types/features/limitDca/placeLimitOrder.d.ts.map +1 -1
  51. package/lib/esm/types/features/swap/buildTx.d.ts +14 -1
  52. package/lib/esm/types/features/swap/buildTx.d.ts.map +1 -1
  53. package/lib/esm/types/features/swap/buildTxV2.d.ts +20 -0
  54. package/lib/esm/types/features/swap/buildTxV2.d.ts.map +1 -0
  55. package/lib/esm/types/features/swap/config.d.ts.map +1 -1
  56. package/lib/esm/types/features/swap/getQuote.d.ts +3 -1
  57. package/lib/esm/types/features/swap/getQuote.d.ts.map +1 -1
  58. package/lib/esm/types/features/swap/index.d.ts +1 -0
  59. package/lib/esm/types/features/swap/index.d.ts.map +1 -1
  60. package/lib/esm/types/index.d.ts +4 -2
  61. package/lib/esm/types/index.d.ts.map +1 -1
  62. package/lib/esm/types/libs/protocols/base.d.ts +4 -5
  63. package/lib/esm/types/libs/protocols/base.d.ts.map +1 -1
  64. package/lib/esm/types/libs/protocols/cetus_dlmm.d.ts +9 -0
  65. package/lib/esm/types/libs/protocols/cetus_dlmm.d.ts.map +1 -0
  66. package/lib/esm/types/libs/protocols/index.d.ts +2 -0
  67. package/lib/esm/types/libs/protocols/index.d.ts.map +1 -1
  68. package/lib/esm/types/libs/protocols/steamm/index.d.ts +3 -12
  69. package/lib/esm/types/libs/protocols/steamm/index.d.ts.map +1 -1
  70. package/lib/esm/types/libs/swapWithRoute.d.ts +3 -4
  71. package/lib/esm/types/libs/swapWithRoute.d.ts.map +1 -1
  72. package/lib/esm/types/types/aggregator.d.ts +5 -1
  73. package/lib/esm/types/types/aggregator.d.ts.map +1 -1
  74. package/lib/esm/types/types/tx.d.ts +13 -0
  75. package/lib/esm/types/types/tx.d.ts.map +1 -1
  76. package/lib/esm/types/utils/sui.d.ts +1 -0
  77. package/lib/esm/types/utils/sui.d.ts.map +1 -1
  78. package/lib/esm/utils/sui.js +7 -0
  79. package/package.json +3 -3
  80. package/lib/cjs/libs/getCoinOjectIdsByAmount.js +0 -65
  81. package/lib/cjs/libs/getSplitCoinForTx.js +0 -33
  82. package/lib/cjs/types/libs/getCoinOjectIdsByAmount.d.ts +0 -7
  83. package/lib/cjs/types/libs/getCoinOjectIdsByAmount.d.ts.map +0 -1
  84. package/lib/cjs/types/libs/getSplitCoinForTx.d.ts +0 -6
  85. package/lib/cjs/types/libs/getSplitCoinForTx.d.ts.map +0 -1
  86. package/lib/esm/libs/getCoinOjectIdsByAmount.js +0 -61
  87. package/lib/esm/libs/getSplitCoinForTx.js +0 -29
  88. package/lib/esm/types/libs/getCoinOjectIdsByAmount.d.ts +0 -7
  89. package/lib/esm/types/libs/getCoinOjectIdsByAmount.d.ts.map +0 -1
  90. package/lib/esm/types/libs/getSplitCoinForTx.d.ts +0 -6
  91. package/lib/esm/types/libs/getSplitCoinForTx.d.ts.map +0 -1
@@ -1,6 +0,0 @@
1
- import { Transaction, TransactionResult } from "@mysten/sui/transactions";
2
- export declare const getSplitCoinForTx: (account: string, amount: string, splits: string[], coinType: string, inheritTx?: Transaction, inspecTransaction?: boolean, isSponsored?: boolean) => Promise<{
3
- tx: Transaction;
4
- coinData: TransactionResult;
5
- }>;
6
- //# sourceMappingURL=getSplitCoinForTx.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSplitCoinForTx.d.ts","sourceRoot":"","sources":["../../../../src/libs/getSplitCoinForTx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAK1E,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EACf,QAAQ,MAAM,EACd,QAAQ,MAAM,EAAE,EAChB,UAAU,MAAM,EAChB,YAAY,WAAW,EACvB,oBAAoB,OAAO,EAC3B,qBAAmB,KAClB,OAAO,CAAC;IACT,EAAE,EAAE,WAAW,CAAC;IAChB,QAAQ,EAAE,iBAAiB,CAAC;CAC7B,CAqCA,CAAC"}