Skip to content

Commit 9328cc4

Browse files
hayes-mystenclaude
andcommitted
Rewrite transaction docs for tx.coin/tx.balance APIs
Rewrite all transaction documentation to cover address balances, tx.coin(), tx.balance(), and the new intent resolution system. - basics.mdx: Use tx.coin() as primary API, add codegen, thunks, serialization - coins-and-balances.mdx: Full rewrite covering dual coin/balance system, resolution paths, tx.withdrawal(), manual operations, getBalance/listCoins - signing-and-execution.mdx: Full rewrite covering simulation, keypair signing, dApp Kit, sponsored transactions (coin-based and address-balance flows), gas configuration, waitForTransaction - reference.mdx: New comprehensive command and input reference - offline.mdx: Rewrite for address balance workflows, party objects, expiration - Update other doc pages for consistency (dapp-kit, bcs, kiosk, etc.) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8549fa0 commit 9328cc4

28 files changed

Lines changed: 1610 additions & 484 deletions

File tree

packages/bcs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ available in both Browser and NodeJS environments in a type-safe way.`
99
To install, add the [`@mysten/bcs`](https://www.npmjs.com/package/@mysten/bcs) package to your
1010
project:
1111

12-
```sh npm2yarn
12+
```npm
1313
npm i @mysten/bcs
1414
```
1515

packages/dapp-kit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ See https://sdk.mystenlabs.com/sui for full documentation
2323

2424
To use the Sui dApp Kit in your project, run the following command in your project root:
2525

26-
```sh npm2yarn
26+
```npm
2727
npm i --save @mysten/dapp-kit @mysten/sui @tanstack/react-query
2828
```
2929

packages/docs/content/bcs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ available in both Browser and NodeJS environments in a type-safe way.`
1212
To install, add the [`@mysten/bcs`](https://www.npmjs.com/package/@mysten/bcs) package to your
1313
project:
1414

15-
```sh npm2yarn
15+
```npm
1616
npm i @mysten/bcs
1717
```
1818

packages/docs/content/codegen/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This package is currently in development and may have breaking changes.
2424

2525
Install the codegen package as a dev dependency:
2626

27-
```sh npm2yarn
27+
```npm
2828
npm install -D @mysten/codegen
2929
```
3030

@@ -456,5 +456,5 @@ const dAppKit = createDAppKit({
456456
already configured
457457
- [Sui Move documentation](https://docs.sui.io/concepts/sui-move-concepts)
458458
- [BCS documentation](/bcs)
459-
- [Transaction building](/sui/transaction-building/basics)
459+
- [Transaction building](/sui/transactions/basics)
460460
- [dApp Kit](/dapp-kit)

packages/docs/content/dapp-kit/getting-started/create-dapp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ built in.
88

99
## Quick Start
1010

11-
```sh npm2yarn
11+
```npm
1212
npm create @mysten/dapp
1313
```
1414

packages/docs/content/dapp-kit/getting-started/next-js.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rendering (SSR).
88

99
## Installation
1010

11-
```sh npm2yarn
11+
```npm
1212
npm i @mysten/dapp-kit-react @mysten/sui
1313
```
1414

packages/docs/content/dapp-kit/getting-started/react.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide walks you through integrating dApp Kit into a React application.
99

1010
The fastest way to get started is using our CLI tool:
1111

12-
```sh npm2yarn
12+
```npm
1313
npm create @mysten/dapp
1414
```
1515

@@ -31,7 +31,7 @@ See the [create-dapp guide](/dapp-kit/getting-started/create-dapp) for more deta
3131

3232
## Manual Installation
3333

34-
```sh npm2yarn
34+
```npm
3535
npm i @mysten/dapp-kit-react @mysten/sui
3636
```
3737

packages/docs/content/dapp-kit/getting-started/vue.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ direct store access.
88

99
## Installation
1010

11-
```sh npm2yarn
11+
```npm
1212
npm i @mysten/dapp-kit-core @mysten/sui @nanostores/vue
1313
```
1414

packages/docs/content/dapp-kit/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ Choose the installation method based on your framework:
3737

3838
### For React Applications
3939

40-
```sh npm2yarn
40+
```npm
4141
npm i @mysten/dapp-kit-react @mysten/sui
4242
```
4343

4444
### Vanilla JavaScript and other frameworks
4545

46-
```sh npm2yarn
46+
```npm
4747
npm i @mysten/dapp-kit-core @mysten/sui
4848
```
4949

packages/docs/content/dapp-kit/legacy/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Some of the core features of the dApp Kit include:
2727

2828
To use the Sui dApp Kit in your project, run the following command in your project root:
2929

30-
```sh npm2yarn
30+
```npm
3131
npm i --save @mysten/dapp-kit @mysten/sui @tanstack/react-query
3232
```
3333

0 commit comments

Comments
 (0)