@exodus/sui-api 1.2.0 → 1.2.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.2.1](https://github.com/ExodusMovement/assets/compare/@exodus/sui-api@1.2.0...@exodus/sui-api@1.2.1) (2026-04-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix(sui-api): use BigInt literal for u64 upper bound check (#7748)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [1.2.0](https://github.com/ExodusMovement/assets/compare/@exodus/sui-api@1.1.3...@exodus/sui-api@1.2.0) (2026-01-06)
|
|
7
17
|
|
|
8
18
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/sui-api",
|
|
3
3
|
"packageManager": "yarn@4.3.1",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"description": "Transaction monitors, RPC with the blockchain node, and other networking code for Sui",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "src/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@exodus/basic-utils": "^3.1.0",
|
|
30
30
|
"@exodus/crypto": "^1.0.0-rc.26",
|
|
31
31
|
"@exodus/currency": "^6.0.1",
|
|
32
|
-
"@exodus/models": "^
|
|
32
|
+
"@exodus/models": "^13.0.0",
|
|
33
33
|
"@exodus/sui-lib": "^1.3.0",
|
|
34
34
|
"@exodus/sui-meta": "^1.2.0",
|
|
35
35
|
"bn.js": "^5.2.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"url-join": "^4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@exodus/asset": "^2.
|
|
42
|
+
"@exodus/asset": "^2.3.0",
|
|
43
43
|
"@exodus/assets-testing": "^1.0.0"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/ExodusMovement/assets/tree/master/sui/sui-api",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"type": "git",
|
|
51
51
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "9db577b4f5d6bd023b35ff3a948969c4f52c90b4"
|
|
54
54
|
}
|
|
@@ -41,12 +41,13 @@ const SuiAddress = pipe(
|
|
|
41
41
|
)
|
|
42
42
|
const ObjectID = SuiAddress
|
|
43
43
|
const BCSBytes = string()
|
|
44
|
+
const U64_UPPER_BOUND = BigInt(2) ** BigInt(64)
|
|
44
45
|
const JsonU64 = pipe(
|
|
45
46
|
union([string(), pipe(number(), integer())]),
|
|
46
47
|
check((val) => {
|
|
47
48
|
try {
|
|
48
49
|
BigInt(val)
|
|
49
|
-
return BigInt(val) >= 0 && BigInt(val)
|
|
50
|
+
return BigInt(val) >= 0 && BigInt(val) < U64_UPPER_BOUND
|
|
50
51
|
} catch {
|
|
51
52
|
return false
|
|
52
53
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @exodus/import/no-deprecated
|
|
1
2
|
import { hashSync } from '@exodus/crypto/hash'
|
|
2
3
|
|
|
3
4
|
function hashTypedData(typeTag, data) {
|
|
@@ -6,6 +7,7 @@ function hashTypedData(typeTag, data) {
|
|
|
6
7
|
const dataWithTag = new Uint8Array(typeTagBytes.length + data.length)
|
|
7
8
|
dataWithTag.set(typeTagBytes)
|
|
8
9
|
dataWithTag.set(data, typeTagBytes.length)
|
|
10
|
+
// eslint-disable-next-line @exodus/import/no-deprecated
|
|
9
11
|
return hashSync('blake2b256', dataWithTag)
|
|
10
12
|
}
|
|
11
13
|
|