Skip to content

Commit b497df4

Browse files
authored
Sui: upgrade SDK from deprecated version to latest @mysten/sui (#811)
1 parent 2249ad2 commit b497df4

17 files changed

+236
-136
lines changed

package-lock.json

+155-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

platforms/sui/__tests__/unit/platform.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { SuiChains, SuiPlatform } from "./../../src/index.js";
66

77
import "@wormhole-foundation/sdk-sui-core";
88
import "@wormhole-foundation/sdk-sui-tokenbridge";
9-
import { SuiClient } from "@mysten/sui.js/client";
9+
import { SuiClient } from "@mysten/sui/client";
1010

1111
const network = DEFAULT_NETWORK;
1212

platforms/sui/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"main": "./dist/cjs/index.js",
1717
"types": "./dist/cjs/index.d.ts",
1818
"module": "./dist/esm/index.js",
19-
"description": "SDK for EVM chains, used in conjunction with @wormhole-foundation/sdk",
19+
"description": "SDK for Sui chains, used in conjunction with @wormhole-foundation/sdk",
2020
"files": [
2121
"dist/esm",
2222
"dist/cjs"
@@ -47,7 +47,7 @@
4747
},
4848
"dependencies": {
4949
"@wormhole-foundation/sdk-connect": "1.0.3",
50-
"@mysten/sui.js": "^0.50.1"
50+
"@mysten/sui": "^1.21.2"
5151
},
5252
"type": "module",
5353
"typesVersions": {
@@ -99,4 +99,4 @@
9999
}
100100
}
101101
}
102-
}
102+
}

platforms/sui/protocols/cctp/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"prettier": "prettier --write ./src"
4646
},
4747
"dependencies": {
48-
"@mysten/sui.js": "^0.50.1",
48+
"@mysten/sui": "^1.21.2",
4949
"@wormhole-foundation/sdk-connect": "1.0.3",
5050
"@wormhole-foundation/sdk-sui": "1.0.3"
5151
},
@@ -72,4 +72,4 @@
7272
}
7373
}
7474
}
75-
}
75+
}

0 commit comments

Comments
 (0)