@tradeport/sui-trading-sdk 0.5.2 → 0.5.4
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/package.json
CHANGED
|
@@ -1,68 +1,67 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
2
|
+
"name": "@tradeport/sui-trading-sdk",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"version": "0.5.4",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@babel/core": "^7.23.3",
|
|
17
|
+
"@babel/preset-env": "^7.23.3",
|
|
18
|
+
"@changesets/cli": "^2.26.2",
|
|
19
|
+
"@types/jest": "^29.5.10",
|
|
20
|
+
"@types/ms": "^2.1.0",
|
|
21
|
+
"@types/node": "^20.10.0",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
|
23
|
+
"@typescript-eslint/parser": "^6.13.1",
|
|
24
|
+
"babel-jest": "^29.7.0",
|
|
25
|
+
"dotenv": "^16.3.1",
|
|
26
|
+
"eslint": "^8.54.0",
|
|
27
|
+
"eslint-config-prettier": "^9.0.0",
|
|
28
|
+
"eslint-config-xo": "^0.43.1",
|
|
29
|
+
"eslint-config-xo-typescript": "^1.0.1",
|
|
30
|
+
"husky": "^8.0.0",
|
|
31
|
+
"jest": "^29.7.0",
|
|
32
|
+
"lint-staged": "^16.2.7",
|
|
33
|
+
"prettier": "^3.1.0",
|
|
34
|
+
"ts-jest": "^29.1.1",
|
|
35
|
+
"tsup": "^8.0.1",
|
|
36
|
+
"typescript": "^5.3.2"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@mysten/kiosk": "^1.3.1",
|
|
40
|
+
"@mysten/sui": "^2.20.0",
|
|
41
|
+
"@types/analytics-node": "^3.1.14",
|
|
42
|
+
"analytics-node": "^6.2.0",
|
|
43
|
+
"bignumber.js": "^9.3.1",
|
|
44
|
+
"graphql": "^16.12.0",
|
|
45
|
+
"graphql-request": "^6.1.0",
|
|
46
|
+
"ms": "^2.1.3"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public",
|
|
50
|
+
"registry": "https://registry.npmjs.org/"
|
|
51
|
+
},
|
|
52
|
+
"lint-staged": {
|
|
53
|
+
"*.ts": [
|
|
54
|
+
"eslint --fix",
|
|
55
|
+
"bash -c 'tsc --noEmit'",
|
|
56
|
+
"prettier --write"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "tsup src/index.ts --sourcemap --format esm --dts",
|
|
61
|
+
"release": "pnpm run build && changeset publish",
|
|
62
|
+
"lint": "tsc && eslint --fix src/* --ignore-path .gitignore --ext .js,.ts",
|
|
63
|
+
"format": "prettier --write \"**/*.+(js|ts|json)\"",
|
|
64
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
65
|
+
"pre-commit": "lint-staged"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -773,7 +773,10 @@ export async function addBluemoveBuyTxHandler(txData: BuyTx) {
|
|
|
773
773
|
}
|
|
774
774
|
|
|
775
775
|
export async function addClutchyBuyTxHandler(txData: BuyTx) {
|
|
776
|
-
|
|
776
|
+
const sharedObjects =
|
|
777
|
+
txData?.sharedBulkBuyingDataByNftType?.[txData?.nftType]?.sharedObjects ??
|
|
778
|
+
(await getSharedObjects(txData?.nftType));
|
|
779
|
+
await addOriginByteBuyTx({ ...txData, sharedObjects });
|
|
777
780
|
}
|
|
778
781
|
|
|
779
782
|
export async function addSouffl3BuyTxHandler(txData: BuyTx) {
|