Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .changeset/consolidate-graphql-schemas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@mysten/sui': major
---

Consolidate GraphQL schema exports into a single version:

- Removed versioned schema exports: `@mysten/sui/graphql/schemas/2024.1`, `@mysten/sui/graphql/schemas/2024.4`, `@mysten/sui/graphql/schemas/latest`
- Added single unified schema export: `@mysten/sui/graphql/schema`
- The SDK now tracks only the latest mainnet GraphQL schema version

See the migration guide for updating your code to use the new export
5 changes: 5 additions & 0 deletions .changeset/curly-boxes-follow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/dapp-kit': minor
---

Remove reportTransactionEffects feature
6 changes: 6 additions & 0 deletions .changeset/dry-dingos-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@mysten/walrus': minor
'@mysten/seal': minor
---

remove asClientExtension static method
5 changes: 5 additions & 0 deletions .changeset/dull-bikes-bet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/sui': patch
---

Change private key data on keypairs to be private fields to prevent accidental logging.
5 changes: 5 additions & 0 deletions .changeset/fair-laws-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/walrus': minor
---

WalrusClient can no longer be created with only an rpc url, pass in a Client instead
5 changes: 5 additions & 0 deletions .changeset/fruity-cats-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/sui': major
---

Remove default client used for verifying zklogin signatures
5 changes: 5 additions & 0 deletions .changeset/honest-cows-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/sui': major
---

`network` is now a required option on SuiGraphQLClient and SuiJsonRpcClient
5 changes: 5 additions & 0 deletions .changeset/little-chefs-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/sui': major
---

Make legacyAddress parameter in all methods to reduce confusion and inconsistency around default values
5 changes: 5 additions & 0 deletions .changeset/mean-bikes-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/wallet-standard': minor
---

Remove reportTransactionEffects feature
5 changes: 5 additions & 0 deletions .changeset/remove-bcs-deprecated-exports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/bcs': major
---

Remove deprecated exports: `toB58`, `fromB58`, `toB64`, `fromB64`, `toHEX`, `fromHEX`. Use `toBase58`, `fromBase58`, `toBase64`, `fromBase64`, `toHex`, `fromHex` instead.
5 changes: 5 additions & 0 deletions .changeset/remove-kiosk-deprecated-params.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/kiosk': minor
---

Remove deprecated `transactionBlock` parameter from `KioskTransaction`, `TransferPolicyTransaction`, and `RuleResolvingParams`. Use `transaction` parameter instead.
5 changes: 5 additions & 0 deletions .changeset/remove-signers-deprecated-methods.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/signers': minor
---

Remove deprecated `signData()` method from `AwsKmsSigner`, `GcpKmsSigner`, and `MultiSigSigner`. Use `sign()` method instead.
25 changes: 25 additions & 0 deletions .changeset/remove-suiclient-exports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
'@mysten/sui': major
---

Remove SuiClient exports from @mysten/sui/client

BREAKING CHANGE: All exports from `@mysten/sui/client` have been removed. Use `@mysten/sui/jsonRpc` instead:

- `SuiClient` -> `SuiJsonRpcClient`
- `SuiClientOptions` -> `SuiJsonRpcClientOptions`
- `isSuiClient` -> `isSuiJsonRpcClient`
- `SuiTransport` -> `JsonRpcTransport`
- `getFullnodeUrl` -> `getJsonRpcFullnodeUrl`

Migration example:

```ts
// Before
import { SuiClient, getFullnodeUrl } from '@mysten/sui/client';
const client = new SuiClient({ url: getFullnodeUrl('devnet'), network: 'devnet' });

// After
import { SuiJsonRpcClient, getJsonRpcFullnodeUrl } from '@mysten/sui/jsonRpc';
const client = new SuiJsonRpcClient({ url: getJsonRpcFullnodeUrl('devnet'), network: 'devnet' });
```
15 changes: 15 additions & 0 deletions .changeset/remove-typescript-deprecated-exports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@mysten/sui': major
---

Remove deprecated exports and properties:

- Removed `fromB64`, `toB64`, `fromHEX`, `toHEX` exports from utils (use `fromBase64`, `toBase64`, `fromHex`, `toHex` instead)
- Removed `schema` property from `ParsedKeypair` (use `scheme` instead)
- Removed `requestType` parameter from `executeTransactionBlock`
- Removed deprecated faucet methods: `requestSuiFromFaucetV0`, `requestSuiFromFaucetV1`, `getFaucetRequestStatus` (use `requestSuiFromFaucetV2` instead)
- Removed deprecated subscription methods: `subscribeEvent`, `subscribeTransaction`
- Removed `blockData` property from Transaction class (use `getData()` instead)
- Removed `gasConfig` property from TransactionDataBuilder (use `gasData` instead)
- Removed `NamedPackagesPluginCache` type export (use `NamedPackagesOverrides` instead)
- Removed unnamed plugin registration methods from Transaction class
15 changes: 15 additions & 0 deletions .changeset/stabilize-experimental-client-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@mysten/sui': major
---

Stabilize experimental client API by moving it from `@mysten/sui/experimental` to `@mysten/sui/client`:

- Moved client implementation from `src/experimental/` to `src/client/`
- Removed `Experimental_` prefix from all client types and classes
- Updated all internal packages to use the new stable API

Breaking changes:

- `@mysten/sui/experimental` module has been removed
- All `Experimental_` prefixed types/classes have been renamed (e.g., `Experimental_CoreClient` → `CoreClient`)
- Client types namespace changed from `Experimental_SuiClientTypes` to `SuiClientTypes`
19 changes: 19 additions & 0 deletions .changeset/update-all-packages-suiclient.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
'@mysten/dapp-kit': minor
'@mysten/kiosk': minor
'@mysten/deepbook': minor
'@mysten/deepbook-v3': minor
'@mysten/suins': minor
'@mysten/walrus': minor
'@mysten/zksend': minor
'@mysten/codegen': minor
'@mysten/enoki': minor
'@mysten/payment-kit': minor
'@mysten/seal': minor
'@mysten/signers': minor
'@mysten/wallet-sdk': minor
---

Update to use SuiJsonRpcClient instead of SuiClient

Updated all type signatures, internal usages, examples, and documentation to use `SuiJsonRpcClient` from `@mysten/sui/jsonRpc` instead of the deprecated `SuiClient` from `@mysten/sui/client`.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = {
'packages/move-bytecode-template',
'packages/walrus-wasm',
'packages/walrus/src/node-api',
'packages/walrus/src/contracts',
'generated',
'vite-env.d.ts',
],
Expand Down
18 changes: 0 additions & 18 deletions packages/bcs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,3 @@ export {
type EnumInputShape,
type EnumOutputShapeWithKeys,
};

/** @deprecated use toBase58 instead */
export const toB58 = toBase58;

/** @deprecated use fromBase58 instead */
export const fromB58 = fromBase58;

/** @deprecated use toBase64 instead */
export const toB64 = toBase64;

/** @deprecated use fromBase64 instead */
export const fromB64 = fromBase64;

/** @deprecated use toHex instead */
export const toHEX = toHex;

/** @deprecated use fromHex instead */
export const fromHEX = fromHex;
16 changes: 8 additions & 8 deletions packages/codegen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export default config;
```

The `package` field should be the MVR name for your move package. If you have not registered your
package on MVR yet, you can use the `@local-pkg` scope, and set up an override in your `SuiClient`
to resolve it to the correct address.
package on MVR yet, you can use the `@local-pkg` scope, and set up an override in your
`SuiJsonRpcClient` to resolve it to the correct address.

## Generating code

Expand Down Expand Up @@ -65,14 +65,14 @@ or by adding something the following script to your package.json and running `pn
}
```

## Setting up SuiClient
## Setting up SuiJsonRpcClient

If your package is registered on MVR, the generated code should work without additional
configuration. If you are using a `@local-pkg` name, you will need to configure your `SuiClient` to
resolver the package name correctly:
configuration. If you are using a `@local-pkg` name, you will need to configure your
`SuiJsonRpcClient` to resolver the package name correctly:

```ts
const client = new SuiClient({
const client = new SuiJsonRpcClient({
network: 'testnet',
url: testnetRpcUrl,
mvr: {
Expand All @@ -90,7 +90,7 @@ If you are using `dapp-kit`, you may need to set up your network config and `Sui
```ts
const { networkConfig, useNetworkVariable, useNetworkVariables } = createNetworkConfig({
testnet: {
url: getFullnodeUrl('testnet'),
url: getJsonRpcFullnodeUrl('testnet'),
variables: {
yourPackageId: YOUR_TESTNET_PACKAGE_ID,
},
Expand All @@ -103,7 +103,7 @@ const { networkConfig, useNetworkVariable, useNetworkVariables } = createNetwork
networks={networkConfig}
defaultNetwork="testnet"
createClient={(network, config) => {
return new SuiClient({
return new SuiJsonRpcClient({
network,
url: config.url,
mvr: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { getFullnodeUrl } from "@mysten/sui/client";
import { getJsonRpcFullnodeUrl } from "@mysten/sui/jsonRpc";
import { createNetworkConfig } from "@mysten/dapp-kit";

const { networkConfig, useNetworkVariable, useNetworkVariables } =
createNetworkConfig({
devnet: {
url: getFullnodeUrl("devnet"),
url: getJsonRpcFullnodeUrl("devnet"),
network: "devnet",
},
testnet: {
url: getFullnodeUrl("testnet"),
url: getJsonRpcFullnodeUrl("testnet"),
network: "testnet",
},
mainnet: {
url: getFullnodeUrl("mainnet"),
url: getJsonRpcFullnodeUrl("mainnet"),
network: "mainnet",
},
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getFullnodeUrl } from "@mysten/sui/client";
import { getJsonRpcFullnodeUrl } from "@mysten/sui/jsonRpc";
import {
DEVNET_COUNTER_PACKAGE_ID,
TESTNET_COUNTER_PACKAGE_ID,
Expand All @@ -9,19 +9,22 @@ import { createNetworkConfig } from "@mysten/dapp-kit";
const { networkConfig, useNetworkVariable, useNetworkVariables } =
createNetworkConfig({
devnet: {
url: getFullnodeUrl("devnet"),
url: getJsonRpcFullnodeUrl("devnet"),
network: "devnet",
variables: {
counterPackageId: DEVNET_COUNTER_PACKAGE_ID,
},
},
testnet: {
url: getFullnodeUrl("testnet"),
url: getJsonRpcFullnodeUrl("testnet"),
network: "testnet",
variables: {
counterPackageId: TESTNET_COUNTER_PACKAGE_ID,
},
},
mainnet: {
url: getFullnodeUrl("mainnet"),
url: getJsonRpcFullnodeUrl("mainnet"),
network: "mainnet",
variables: {
counterPackageId: MAINNET_COUNTER_PACKAGE_ID,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// SPDX-License-Identifier: Apache-2.0

import { createDAppKit } from '@mysten/dapp-kit-react';
import { getFullnodeUrl, SuiClient } from '@mysten/sui/client';
import { getJsonRpcFullnodeUrl, SuiJsonRpcClient } from '@mysten/sui/jsonRpc';

export const dAppKit = createDAppKit({
enableBurnerWallet: process.env.NODE_ENV === 'development',
networks: ['mainnet', 'testnet'],
defaultNetwork: 'testnet',
createClient(network) {
return new SuiClient({ network, url: getFullnodeUrl(network) });
return new SuiJsonRpcClient({ network, url: getJsonRpcFullnodeUrl(network) });
},
});

Expand Down
18 changes: 9 additions & 9 deletions packages/dapp-kit-next/examples/next-js/simple/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
:root {
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;

color: #213547;
background-color: #ffffff;
color: #213547;
background-color: #ffffff;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { FlatCompat } from '@eslint/eslintrc';

const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
})
});

const eslintConfig = [
...compat.config({
extends: ['next'],
}),
]
];

export default eslintConfig;
export default eslintConfig;
Loading
Loading