@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.
- package/lib/cjs/features/limitDca/placeLimitOrder.js +8 -3
- package/lib/cjs/features/swap/buildTx.js +101 -66
- package/lib/cjs/features/swap/buildTxV2.js +225 -0
- package/lib/cjs/features/swap/config.js +13 -7
- package/lib/cjs/features/swap/getQuote.js +3 -2
- package/lib/cjs/features/swap/index.js +1 -0
- package/lib/cjs/index.js +6 -2
- package/lib/cjs/libs/protocols/cetus_dlmm.js +48 -0
- package/lib/cjs/libs/protocols/index.js +2 -0
- package/lib/cjs/types/features/limitDca/placeLimitOrder.d.ts +2 -1
- package/lib/cjs/types/features/limitDca/placeLimitOrder.d.ts.map +1 -1
- package/lib/cjs/types/features/swap/buildTx.d.ts +14 -1
- package/lib/cjs/types/features/swap/buildTx.d.ts.map +1 -1
- package/lib/cjs/types/features/swap/buildTxV2.d.ts +20 -0
- package/lib/cjs/types/features/swap/buildTxV2.d.ts.map +1 -0
- package/lib/cjs/types/features/swap/config.d.ts.map +1 -1
- package/lib/cjs/types/features/swap/getQuote.d.ts +3 -1
- package/lib/cjs/types/features/swap/getQuote.d.ts.map +1 -1
- package/lib/cjs/types/features/swap/index.d.ts +1 -0
- package/lib/cjs/types/features/swap/index.d.ts.map +1 -1
- package/lib/cjs/types/index.d.ts +4 -2
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/libs/protocols/base.d.ts +4 -5
- package/lib/cjs/types/libs/protocols/base.d.ts.map +1 -1
- package/lib/cjs/types/libs/protocols/cetus_dlmm.d.ts +9 -0
- package/lib/cjs/types/libs/protocols/cetus_dlmm.d.ts.map +1 -0
- package/lib/cjs/types/libs/protocols/index.d.ts +2 -0
- package/lib/cjs/types/libs/protocols/index.d.ts.map +1 -1
- package/lib/cjs/types/libs/protocols/steamm/index.d.ts +3 -12
- package/lib/cjs/types/libs/protocols/steamm/index.d.ts.map +1 -1
- package/lib/cjs/types/libs/swapWithRoute.d.ts +3 -4
- package/lib/cjs/types/libs/swapWithRoute.d.ts.map +1 -1
- package/lib/cjs/types/types/aggregator.d.ts +5 -1
- package/lib/cjs/types/types/aggregator.d.ts.map +1 -1
- package/lib/cjs/types/types/tx.d.ts +13 -0
- package/lib/cjs/types/types/tx.d.ts.map +1 -1
- package/lib/cjs/types/utils/sui.d.ts +1 -0
- package/lib/cjs/types/utils/sui.d.ts.map +1 -1
- package/lib/cjs/utils/sui.js +7 -0
- package/lib/esm/features/limitDca/placeLimitOrder.js +8 -3
- package/lib/esm/features/swap/buildTx.js +95 -66
- package/lib/esm/features/swap/buildTxV2.js +219 -0
- package/lib/esm/features/swap/config.js +13 -7
- package/lib/esm/features/swap/getQuote.js +3 -2
- package/lib/esm/features/swap/index.js +1 -0
- package/lib/esm/index.mjs +12 -10
- package/lib/esm/libs/protocols/cetus_dlmm.js +44 -0
- package/lib/esm/libs/protocols/index.js +2 -0
- package/lib/esm/types/features/limitDca/placeLimitOrder.d.ts +2 -1
- package/lib/esm/types/features/limitDca/placeLimitOrder.d.ts.map +1 -1
- package/lib/esm/types/features/swap/buildTx.d.ts +14 -1
- package/lib/esm/types/features/swap/buildTx.d.ts.map +1 -1
- package/lib/esm/types/features/swap/buildTxV2.d.ts +20 -0
- package/lib/esm/types/features/swap/buildTxV2.d.ts.map +1 -0
- package/lib/esm/types/features/swap/config.d.ts.map +1 -1
- package/lib/esm/types/features/swap/getQuote.d.ts +3 -1
- package/lib/esm/types/features/swap/getQuote.d.ts.map +1 -1
- package/lib/esm/types/features/swap/index.d.ts +1 -0
- package/lib/esm/types/features/swap/index.d.ts.map +1 -1
- package/lib/esm/types/index.d.ts +4 -2
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/libs/protocols/base.d.ts +4 -5
- package/lib/esm/types/libs/protocols/base.d.ts.map +1 -1
- package/lib/esm/types/libs/protocols/cetus_dlmm.d.ts +9 -0
- package/lib/esm/types/libs/protocols/cetus_dlmm.d.ts.map +1 -0
- package/lib/esm/types/libs/protocols/index.d.ts +2 -0
- package/lib/esm/types/libs/protocols/index.d.ts.map +1 -1
- package/lib/esm/types/libs/protocols/steamm/index.d.ts +3 -12
- package/lib/esm/types/libs/protocols/steamm/index.d.ts.map +1 -1
- package/lib/esm/types/libs/swapWithRoute.d.ts +3 -4
- package/lib/esm/types/libs/swapWithRoute.d.ts.map +1 -1
- package/lib/esm/types/types/aggregator.d.ts +5 -1
- package/lib/esm/types/types/aggregator.d.ts.map +1 -1
- package/lib/esm/types/types/tx.d.ts +13 -0
- package/lib/esm/types/types/tx.d.ts.map +1 -1
- package/lib/esm/types/utils/sui.d.ts +1 -0
- package/lib/esm/types/utils/sui.d.ts.map +1 -1
- package/lib/esm/utils/sui.js +7 -0
- package/package.json +3 -3
- package/lib/cjs/libs/getCoinOjectIdsByAmount.js +0 -65
- package/lib/cjs/libs/getSplitCoinForTx.js +0 -33
- package/lib/cjs/types/libs/getCoinOjectIdsByAmount.d.ts +0 -7
- package/lib/cjs/types/libs/getCoinOjectIdsByAmount.d.ts.map +0 -1
- package/lib/cjs/types/libs/getSplitCoinForTx.d.ts +0 -6
- package/lib/cjs/types/libs/getSplitCoinForTx.d.ts.map +0 -1
- package/lib/esm/libs/getCoinOjectIdsByAmount.js +0 -61
- package/lib/esm/libs/getSplitCoinForTx.js +0 -29
- package/lib/esm/types/libs/getCoinOjectIdsByAmount.d.ts +0 -7
- package/lib/esm/types/libs/getCoinOjectIdsByAmount.d.ts.map +0 -1
- package/lib/esm/types/libs/getSplitCoinForTx.d.ts +0 -6
- 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"}
|