Skip to content

Commit 1a35a6a

Browse files
committed
Add transaction resolution support for grpc client (#649)
* Add transaction resolution support for grpc client * remove experimental client exports (#650) * remove experimental prefix for core client apis * fix some todos and inconsistencies in the core apis (#654)
1 parent 7f5d757 commit 1a35a6a

File tree

92 files changed

+2701
-885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2701
-885
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@mysten/bcs": major
2+
'@mysten/bcs': major
33
---
44

55
Remove deprecated exports: `toB58`, `fromB58`, `toB64`, `fromB64`, `toHEX`, `fromHEX`. Use `toBase58`, `fromBase58`, `toBase64`, `fromBase64`, `toHex`, `fromHex` instead.

.changeset/remove-suiclient-exports.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ BREAKING CHANGE: All exports from `@mysten/sui/client` have been removed. Use `@
1313
- `getFullnodeUrl` -> `getJsonRpcFullnodeUrl`
1414

1515
Migration example:
16+
1617
```ts
1718
// Before
1819
import { SuiClient, getFullnodeUrl } from '@mysten/sui/client';

.changeset/remove-typescript-deprecated-exports.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
2-
"@mysten/sui": major
2+
'@mysten/sui': major
33
---
44

55
Remove deprecated exports and properties:
6+
67
- Removed `fromB64`, `toB64`, `fromHEX`, `toHEX` exports from utils (use `fromBase64`, `toBase64`, `fromHex`, `toHex` instead)
78
- Removed `schema` property from `ParsedKeypair` (use `scheme` instead)
89
- Removed `requestType` parameter from `executeTransactionBlock`
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@mysten/sui': major
3+
---
4+
5+
Stabilize experimental client API by moving it from `@mysten/sui/experimental` to `@mysten/sui/client`:
6+
7+
- Moved client implementation from `src/experimental/` to `src/client/`
8+
- Removed `Experimental_` prefix from all client types and classes
9+
- Updated all internal packages to use the new stable API
10+
11+
Breaking changes:
12+
13+
- `@mysten/sui/experimental` module has been removed
14+
- All `Experimental_` prefixed types/classes have been renamed (e.g., `Experimental_CoreClient``CoreClient`)
15+
- Client types namespace changed from `Experimental_SuiClientTypes` to `SuiClientTypes`

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module.exports = {
3838
'packages/move-bytecode-template',
3939
'packages/walrus-wasm',
4040
'packages/walrus/src/node-api',
41+
'packages/walrus/src/contracts',
4142
'generated',
4243
'vite-env.d.ts',
4344
],
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
:root {
2-
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
3-
line-height: 1.5;
4-
font-weight: 400;
2+
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
3+
line-height: 1.5;
4+
font-weight: 400;
55

6-
color: #213547;
7-
background-color: #ffffff;
6+
color: #213547;
7+
background-color: #ffffff;
88

9-
font-synthesis: none;
10-
text-rendering: optimizeLegibility;
11-
-webkit-font-smoothing: antialiased;
12-
-moz-osx-font-smoothing: grayscale;
9+
font-synthesis: none;
10+
text-rendering: optimizeLegibility;
11+
-webkit-font-smoothing: antialiased;
12+
-moz-osx-font-smoothing: grayscale;
1313
}

packages/dapp-kit-next/examples/next-js/simple/eslint.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { FlatCompat } from '@eslint/eslintrc';
22

33
const compat = new FlatCompat({
44
baseDirectory: import.meta.dirname,
5-
})
5+
});
66

77
const eslintConfig = [
88
...compat.config({
99
extends: ['next'],
1010
}),
11-
]
11+
];
1212

13-
export default eslintConfig;
13+
export default eslintConfig;
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"compilerOptions": {
3-
"target": "ES2017",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
7-
"strict": true,
8-
"noEmit": true,
9-
"esModuleInterop": true,
10-
"module": "esnext",
11-
"moduleResolution": "bundler",
12-
"allowImportingTsExtensions": true,
13-
"resolveJsonModule": true,
14-
"isolatedModules": true,
15-
"jsx": "preserve",
16-
"incremental": true,
17-
"experimentalDecorators": true,
18-
"useDefineForClassFields": false,
19-
"plugins": [
20-
{
21-
"name": "next"
22-
}
23-
],
24-
"paths": {
25-
"@/*": ["./*"]
26-
}
27-
},
28-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
29-
"exclude": ["node_modules"]
2+
"compilerOptions": {
3+
"target": "ES2017",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": true,
8+
"noEmit": true,
9+
"esModuleInterop": true,
10+
"module": "esnext",
11+
"moduleResolution": "bundler",
12+
"allowImportingTsExtensions": true,
13+
"resolveJsonModule": true,
14+
"isolatedModules": true,
15+
"jsx": "preserve",
16+
"incremental": true,
17+
"experimentalDecorators": true,
18+
"useDefineForClassFields": false,
19+
"plugins": [
20+
{
21+
"name": "next"
22+
}
23+
],
24+
"paths": {
25+
"@/*": ["./*"]
26+
}
27+
},
28+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
29+
"exclude": ["node_modules"]
3030
}

packages/dapp-kit-next/examples/vue/simple/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta name="application-name" content="Example App" />
88
<title>DApp Kit Vue Simple Example App</title>
9-
</head>
9+
</head>
1010
<body>
1111
<div id="app"></div>
1212
<script type="module" src="/src/main.ts"></script>

packages/dapp-kit-next/examples/vue/simple/src/App.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ import { dAppKit } from './dapp-kit';
55
<template>
66
<mysten-dapp-kit-connect-button :instance="dAppKit" />
77
</template>
8-

0 commit comments

Comments
 (0)