Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
79c1ec1
Version Packages (#541)
github-actions[bot] Sep 10, 2025
0fb5271
Fix kiosk imports (#546)
Jordan-Mysten Sep 11, 2025
642ff27
Version Packages (#547)
github-actions[bot] Sep 11, 2025
fe8b58b
[docs] Add derived object docs (#549)
manolisliolios Sep 17, 2025
bda17bf
feat: WalletConnect Connector (#490)
tomiir Sep 18, 2025
0faabdc
expose Ledger signer utility functions (#548)
jnicoulaud-ledger Sep 18, 2025
3a2639b
Upgrade pnpm and harden dependencies (#550)
Jordan-Mysten Sep 18, 2025
da034e2
Version Packages (#551)
github-actions[bot] Sep 18, 2025
7c623e5
[seal] export DemType (#552)
joyqvq Sep 19, 2025
ee962b9
[dapp-kit-next] add backward compatible auto-connect functionality (#…
williamrobertson13 Sep 19, 2025
5af536e
Version Packages (#553)
github-actions[bot] Sep 22, 2025
c88feaa
Suins SDK to support BBB (#558)
tonylee08 Sep 24, 2025
ea13ae1
Version Packages (#561)
github-actions[bot] Sep 24, 2025
4c53e73
[seal] Check for little-endian encoding for BLS scalars (#560)
jonas-lj Sep 26, 2025
bac074d
Version Packages (#564)
github-actions[bot] Sep 26, 2025
7d8bc08
Deepbook core contract functions (#566)
tonylee08 Sep 29, 2025
3baacfc
Version Packages (#568)
github-actions[bot] Sep 29, 2025
8d577a1
[seal] Endianess of randomness (#570)
jonas-lj Sep 30, 2025
4dbe921
Version Packages (#572)
github-actions[bot] Sep 30, 2025
24e6b36
[Codegen] Use `bcs.option` instead of `bcs.vector` (#573)
will-mysten Sep 30, 2025
436de2e
[Payment Kit] Initial Codegen + Skeleton Client (#571)
will-mysten Sep 30, 2025
d69c51b
[Payment Kit] Added an initial README (#575)
will-mysten Oct 1, 2025
566b9ae
add sui:supportedIntents wallet-standard feature (#562)
hayes-mysten Oct 1, 2025
ca92487
improve mvr support (#577)
hayes-mysten Oct 1, 2025
6fcc517
[Payment Kit] Added `asClientExtension` (#578)
will-mysten Oct 1, 2025
f700dcd
[Payment Kit] Updated README (#579)
will-mysten Oct 1, 2025
5ab3c0a
add client.core.getMoveFunction (#557)
hayes-mysten Oct 2, 2025
fd91249
Margin SDK v1 (#580)
tonylee08 Oct 2, 2025
6431429
Version Packages (#574)
github-actions[bot] Oct 2, 2025
b992f2d
transaction analyzer (#559)
hayes-mysten Oct 3, 2025
02b3ca9
optimize grpc for codesize (#583)
hayes-mysten Oct 3, 2025
80cde59
support executed transactions (#582)
hayes-mysten Oct 6, 2025
21820ad
Add AutoApprovalManager
hayes Oct 2, 2025
23f8d6c
update manager to work with latest analyzer format
hayes Oct 3, 2025
c32ba9c
Add demo
hayes Oct 6, 2025
44a25cd
update analyzer ussage
hayes Oct 6, 2025
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
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .changeset/empty-bats-wish.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/four-sides-jog.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fuzzy-bats-repair.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gorgeous-news-camp.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-parents-hunt.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/major-insects-do.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silver-games-brake.md

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ packages/suins-v2/src/contracts/** linguist-generated=true
packages/codegen/tests/generated/** linguist-generated=true
packages/walrus/src/contracts/** linguist-generated=true
packages/deepbook-v3/src/contracts/** linguist-generated=true
packages/payment-kit/src/contracts/** linguist-generated=true
2 changes: 0 additions & 2 deletions .github/workflows/changesets-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
with:
fetch-depth: 0
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # pin@v3.0.0
with:
version: 9.1.1
- name: Install Nodejs
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
with:
fetch-depth: 0
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # pin@v3.0.0
with:
version: 9.1.1
- name: Install Nodejs
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/seal-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # pin@v3.0.0
with:
version: 9.1.1
- name: Install Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/turborepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # pin@v3.0.0
with:
version: 9.1.1
- name: Install Nodejs
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2
with:
Expand All @@ -37,8 +35,6 @@ jobs:
with:
fetch-depth: 2
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # pin@v3.0.0
with:
version: 9.1.1
- name: Install Nodejs
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2
with:
Expand Down
3 changes: 0 additions & 3 deletions .npmrc

This file was deleted.

24 changes: 24 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# AGENTS.md

## Build/Test/Lint Commands
- `pnpm build` - Build all packages with Turbo
- `pnpm test` - Run unit tests for all packages
- `pnpm --filter @mysten/sui vitest run path/to/test.spec.ts` - Run single test file
- `pnpm lint` - Check ESLint + Prettier
- `pnpm lint:fix` - Auto-fix linting issues
- `pnpm changeset` - Add changeset for version updates

## Architecture
- **Monorepo**: TypeScript SDKs for Sui blockchain, uses pnpm workspaces + Turbo
- **Core packages**: typescript/ (main SDK), dapp-kit/ (React hooks), wallet-standard/, signers/ (AWS/GCP KMS, Ledger)
- **Services**: deepbook/ (DEX), suins/ (name service), zksend/, walrus/
- **Build**: ESM/CJS outputs to `dist/`, dependency-aware builds via Turbo
- **Tests**: Vitest for unit tests, separate e2e configs, Docker for integration tests

## Code Style
- **Headers**: Apache-2.0 license headers required (`header/header` rule)
- **Imports**: Consistent type imports (`@typescript-eslint/consistent-type-imports`), require extensions
- **TypeScript**: Strict typing, no `any` in production, prefer `type` imports
- **Naming**: Underscore prefix for unused vars (`argsIgnorePattern: '^_'`)
- **Modules**: Subpath exports pattern (`@mysten/sui/client`, `@mysten/sui/bcs`)
- **No Buffer**: Banned in packages for web compatibility
10 changes: 9 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This is a monorepo containing TypeScript SDKs for the Sui blockchain ecosystem.
## Common Commands

### Setup and Build

```bash
# Initial setup
pnpm install
Expand All @@ -22,6 +23,7 @@ pnpm turbo build --filter=@mysten/sui
```

### Testing

```bash
# Run unit tests
pnpm test
Expand All @@ -37,6 +39,7 @@ pnpm test:e2e
```

### Linting and Formatting

```bash
# Check lint and formatting
pnpm lint
Expand All @@ -50,6 +53,7 @@ pnpm prettier:check
```

### Package Management

```bash
# Add a changeset for version updates
pnpm changeset
Expand All @@ -61,6 +65,7 @@ pnpm changeset-version
## Architecture

### Repository Structure

- **packages/** - All SDK packages organized by functionality
- **typescript/** - Core Sui SDK with submodules for bcs, client, cryptography, transactions, etc.
- **dapp-kit/** - React hooks and components for dApp development
Expand All @@ -71,19 +76,22 @@ pnpm changeset-version
- **zksend/** - zkSend functionality

### Build System

- Uses Turbo for monorepo task orchestration with dependency-aware builds
- Each package can have its own test configuration (typically using Vitest)
- Common build outputs: `dist/` for compiled code, with both ESM and CJS formats

### Key Patterns

1. **Modular exports**: Packages use subpath exports (e.g., `@mysten/sui/client`, `@mysten/sui/bcs`)
2. **Shared utilities**: Common functionality in `packages/utils`
3. **Code generation**: Some packages use GraphQL codegen and version generation scripts
4. **Testing**: Unit tests alongside source files, e2e tests in separate directories
5. **Type safety**: Extensive TypeScript usage with strict type checking

### Development Workflow

1. Changes require changesets for version management
2. Turbo ensures dependencies are built before dependents
3. ESLint and Prettier are enforced across the codebase
4. Tests must pass before changes can be merged
4. Tests must pass before changes can be merged
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix",
"build": "turbo run build"
},
"packageManager": "pnpm@10.17.0",
"pnpm": {
"overrides": {
"node-notifier": "10.0.0",
Expand All @@ -30,7 +31,7 @@
}
},
"engines": {
"pnpm": ">=9.0.0"
"pnpm": ">=10.17.0"
},
"manypkg": {
"ignoredRules": [
Expand Down Expand Up @@ -64,6 +65,5 @@
"tsx": "^4.20.5",
"turbo": "^2.5.6",
"typescript": "^5.9.2"
},
"packageManager": "pnpm@9.1.1+sha512.14e915759c11f77eac07faba4d019c193ec8637229e62ec99eefb7cf3c3b75c64447882b7c485142451ee3a6b408059cdfb7b7fa0341b975f12d0f7629c71195"
}
}
11 changes: 11 additions & 0 deletions packages/bcs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## 1.8.0

### Minor Changes

- ea1ac70: Update dependencies and improve support for typescript 5.9

### Patch Changes

- Updated dependencies [ea1ac70]
- @mysten/utils@0.2.0

## 1.7.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/bcs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mysten/bcs",
"version": "1.7.0",
"version": "1.8.0",
"description": "BCS - Canonical Binary Serialization implementation for JavaScript",
"license": "Apache-2.0",
"author": "Mysten Labs <build@mystenlabs.com>",
Expand Down
24 changes: 24 additions & 0 deletions packages/codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @mysten/codegen

## 0.5.1

### Patch Changes

- 24e6b36: Optional struct generation should be bcs.option instead of bcs.vector
- Updated dependencies [ca92487]
- Updated dependencies [5ab3c0a]
- @mysten/sui@1.39.0

## 0.5.0

### Minor Changes

- 223d075: Add option to codegen private functions which defaults to generating only private entry
functions
- ea1ac70: Update dependencies and improve support for typescript 5.9

### Patch Changes

- Updated dependencies [3c1741f]
- Updated dependencies [ea1ac70]
- @mysten/sui@1.38.0
- @mysten/bcs@1.8.0

## 0.4.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/codegen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mysten/codegen",
"version": "0.4.5",
"version": "0.5.1",
"description": "typescript codegen for sui move",
"license": "Apache-2.0",
"author": "Mysten Labs <build@mystenlabs.com>",
Expand Down
2 changes: 1 addition & 1 deletion packages/codegen/src/generate-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function getPureBcsSchema(typeTag: string | TypeTag): BcsType<any> | null

if (structTag.module === 'option' && structTag.name === 'Option') {
const type = getPureBcsSchema(structTag.typeParams[0]!);
return type ? bcs.vector(type) : null;
return type ? bcs.option(type) : null;
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/codegen/tests/generated/utils/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions packages/create-dapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @mysten/create-dapp

## 0.5.1

### Patch Changes

- Updated dependencies [ca92487]
- Updated dependencies [566b9ae]
- Updated dependencies [5ab3c0a]
- @mysten/sui@1.39.0
- @mysten/dapp-kit@0.19.0

## 0.5.0

### Minor Changes

- ea1ac70: Update dependencies and improve support for typescript 5.9

### Patch Changes

- Updated dependencies [3c1741f]
- Updated dependencies [ea1ac70]
- @mysten/sui@1.38.0
- @mysten/dapp-kit@0.18.0

## 0.4.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Mysten Labs <build@mystenlabs.com>",
"description": "A CLI for creating new Sui dApps",
"homepage": "https://sdk.mystenlabs.com",
"version": "0.4.26",
"version": "0.5.1",
"license": "Apache-2.0",
"files": [
"CHANGELOG.md",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { DAppKitProvider, ConnectButton } from '@mysten/dapp-kit-react';
import { dAppKit } from './dApp-kit';
import { dAppKit } from './dApp-kit.ts';

export default function ClientOnlyConnectButton() {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
Loading