@cetusprotocol/aggregator-sdk 0.4.1 → 0.4.2
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/src/api.d.ts +0 -104
- package/dist/src/client.d.ts +0 -118
- package/dist/src/const.d.ts +0 -8
- package/dist/src/errors.d.ts +0 -40
- package/dist/src/index.d.ts +0 -9
- package/dist/src/math.d.ts +0 -6
- package/dist/src/transaction/afsui.d.ts +0 -10
- package/dist/src/transaction/aftermath.d.ts +0 -13
- package/dist/src/transaction/alphafi.d.ts +0 -7
- package/dist/src/transaction/bluefin.d.ts +0 -7
- package/dist/src/transaction/bluemove.d.ts +0 -7
- package/dist/src/transaction/cetus.d.ts +0 -15
- package/dist/src/transaction/deepbook_v2.d.ts +0 -14
- package/dist/src/transaction/deepbook_v3.d.ts +0 -12
- package/dist/src/transaction/flowx_v2.d.ts +0 -7
- package/dist/src/transaction/flowx_v3.d.ts +0 -8
- package/dist/src/transaction/haedal.d.ts +0 -6
- package/dist/src/transaction/haedal_pmm.d.ts +0 -7
- package/dist/src/transaction/index.d.ts +0 -10
- package/dist/src/transaction/kriya_v2.d.ts +0 -6
- package/dist/src/transaction/kriya_v3.d.ts +0 -7
- package/dist/src/transaction/metastable.d.ts +0 -8
- package/dist/src/transaction/obric.d.ts +0 -8
- package/dist/src/transaction/scallop.d.ts +0 -8
- package/dist/src/transaction/steamm.d.ts +0 -6
- package/dist/src/transaction/suilend.d.ts +0 -7
- package/dist/src/transaction/swap.d.ts +0 -4
- package/dist/src/transaction/turbos.d.ts +0 -7
- package/dist/src/transaction/volo.d.ts +0 -8
- package/dist/src/types/CoinAssist.d.ts +0 -122
- package/dist/src/types/sui.d.ts +0 -112
- package/dist/src/utils/api.d.ts +0 -1
- package/dist/src/utils/coin.d.ts +0 -11
- package/dist/src/utils/contracts.d.ts +0 -16
- package/dist/src/utils/index.d.ts +0 -5
- package/dist/src/utils/msafe.d.ts +0 -2
- package/dist/src/utils/transaction.d.ts +0 -3
- package/dist/tests/math.test.d.ts +0 -1
- package/dist/tests/router/alphafi.test.d.ts +0 -2
- package/dist/tests/router/metastable.test.d.ts +0 -2
- package/dist/tests/router/obric.test.d.ts +0 -2
- package/dist/tests/router/scallop.test.d.ts +0 -2
- package/dist/tests/router/steamm.test.d.ts +0 -2
- package/dist/tests/router.test.d.ts +0 -2
- package/dist/tests/test_data.test.d.ts +0 -18
- package/dist/tests/wallet.test.d.ts +0 -1
- package/example/package.json +0 -17
- package/example/swap.ts +0 -21
- package/example/tsconfig.json +0 -12
- package/jest.config.mjs +0 -13
- package/src/api.ts +0 -325
- package/src/client.ts +0 -1081
- package/src/const.ts +0 -15
- package/src/errors.ts +0 -77
- package/src/index.ts +0 -10
- package/src/math.ts +0 -66
- package/src/transaction/afsui.ts +0 -62
- package/src/transaction/aftermath.ts +0 -88
- package/src/transaction/alphafi.ts +0 -50
- package/src/transaction/bluefin.ts +0 -46
- package/src/transaction/bluemove.ts +0 -42
- package/src/transaction/cetus.ts +0 -118
- package/src/transaction/deepbook_v2.ts +0 -122
- package/src/transaction/deepbook_v3.ts +0 -60
- package/src/transaction/flowx_v2.ts +0 -42
- package/src/transaction/flowx_v3.ts +0 -52
- package/src/transaction/haedal.ts +0 -33
- package/src/transaction/haedal_pmm.ts +0 -80
- package/src/transaction/index.ts +0 -42
- package/src/transaction/kriya_v2.ts +0 -37
- package/src/transaction/kriya_v3.ts +0 -47
- package/src/transaction/metastable.ts +0 -141
- package/src/transaction/obric.ts +0 -90
- package/src/transaction/scallop.ts +0 -64
- package/src/transaction/steamm.ts +0 -77
- package/src/transaction/suilend.ts +0 -48
- package/src/transaction/swap.ts +0 -162
- package/src/transaction/turbos.ts +0 -56
- package/src/transaction/volo.ts +0 -53
- package/src/types/CoinAssist.ts +0 -217
- package/src/types/sui.ts +0 -148
- package/src/utils/api.ts +0 -6
- package/src/utils/coin.ts +0 -136
- package/src/utils/contracts.ts +0 -136
- package/src/utils/index.ts +0 -5
- package/src/utils/msafe.ts +0 -40
- package/src/utils/transaction.ts +0 -20
- package/tests/math.test.ts +0 -21
- package/tests/router/alphafi.test.ts +0 -132
- package/tests/router/metastable.test.ts +0 -383
- package/tests/router/obric.test.ts +0 -203
- package/tests/router/scallop.test.ts +0 -133
- package/tests/router/steamm.test.ts +0 -130
- package/tests/router.test.ts +0 -379
- package/tests/test_data.test.ts +0 -28
- package/tests/wallet.test.ts +0 -21
- package/tsup.config.ts +0 -23
- package/version.mjs +0 -28
package/tsup.config.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
import { exec } from 'child_process'
|
|
3
|
-
|
|
4
|
-
export default defineConfig((options) => ({
|
|
5
|
-
entry: {
|
|
6
|
-
index: './src/index.ts',
|
|
7
|
-
},
|
|
8
|
-
format: ['esm', 'cjs'],
|
|
9
|
-
dts: false,
|
|
10
|
-
clean: !options.watch,
|
|
11
|
-
treeshake: true,
|
|
12
|
-
splitting: true,
|
|
13
|
-
onSuccess: async () => {
|
|
14
|
-
exec('tsc --emitDeclarationOnly --declaration', (err, stdout) => {
|
|
15
|
-
if (err) {
|
|
16
|
-
console.error(stdout)
|
|
17
|
-
if (!options.watch) {
|
|
18
|
-
process.exit(1)
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
})
|
|
22
|
-
},
|
|
23
|
-
}))
|
package/version.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// Don't sync to github
|
|
2
|
-
|
|
3
|
-
import fs from 'fs';
|
|
4
|
-
|
|
5
|
-
const packageJsonPath = './package.json';
|
|
6
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
7
|
-
|
|
8
|
-
const newVersion = `0.0.0-experimental-${getCurrentDateTimeString()}`;
|
|
9
|
-
packageJson.version = newVersion;
|
|
10
|
-
|
|
11
|
-
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf-8');
|
|
12
|
-
|
|
13
|
-
console.log(`Version updated to ${newVersion}`);
|
|
14
|
-
|
|
15
|
-
function getCurrentDateTimeString() {
|
|
16
|
-
const now = new Date();
|
|
17
|
-
|
|
18
|
-
const year = now.getFullYear();
|
|
19
|
-
const month = String(now.getMonth() + 1).padStart(2, '0');
|
|
20
|
-
const day = String(now.getDate()).padStart(2, '0');
|
|
21
|
-
const hours = String(now.getHours()).padStart(2, '0');
|
|
22
|
-
const minutes = String(now.getMinutes()).padStart(2, '0');
|
|
23
|
-
const seconds = String(now.getSeconds()).padStart(2, '0');
|
|
24
|
-
|
|
25
|
-
const dateTimeString = `${year}${month}${day}${hours}${minutes}${seconds}`;
|
|
26
|
-
|
|
27
|
-
return dateTimeString;
|
|
28
|
-
}
|