Skip to content

Commit be53079

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 6ae3c1c + 3bb98d9 commit be53079

130 files changed

Lines changed: 5178 additions & 9397 deletions

File tree

Some content is hidden

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

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
- uses: ./.github/actions/install-dependencies
2222
- run: pnpm clean
2323
- run: pnpm build
24+
- run: pnpm typecheck
25+
- run: pnpm lint
2426

2527
tests:
2628
name: Run all tests

extras/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"devDependencies": {
2121
"@repo/eslint-config": "workspace:^",
2222
"@repo/typescript-config": "workspace:^",
23-
"@types/node": "^25.0.2",
23+
"@types/node": "^25.3.0",
2424
"@types/react": "^19.2.7",
2525
"@types/react-dom": "^19.2.3",
2626
"eslint": "^9.39.2",

extras/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"devDependencies": {
2121
"@repo/eslint-config": "workspace:^",
2222
"@repo/typescript-config": "workspace:^",
23-
"@types/node": "^25.0.2",
23+
"@types/node": "^25.3.0",
2424
"@types/react": "^19.2.7",
2525
"@types/react-dom": "^19.2.3",
2626
"eslint": "^9.39.2",

lefthook.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ pre-commit:
33
prettier:
44
glob: '**/*.{js,jsx,ts,tsx,json,md,yml,yaml}'
55
run: pnpm prettier --write {staged_files} && git add {staged_files}
6+
lint:
7+
run: pnpm lint
8+
typecheck:
9+
run: pnpm typecheck
10+
syncpack:
11+
glob:
12+
- "package.json"
13+
- "packages/**/package.json"
14+
run: pnpm deps:lint
615

716
pre-push:
817
commands:

package.json

Lines changed: 42 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -2,84 +2,59 @@
22
"name": "sequence-core",
33
"license": "Apache-2.0",
44
"private": true,
5-
"devDependencies": {
6-
"@changesets/cli": "^2.29.8",
7-
"flag": "^5.0.1",
8-
"lefthook": "^1.13.6",
9-
"prettier": "^3.8.1",
10-
"prisma": "~7.3.0",
11-
"rimraf": "^6.1.2",
12-
"turbo": "^2.8.3",
13-
"typescript": "5.8.3"
14-
},
15-
"engines": {
16-
"node": ">=18"
17-
},
18-
"dependencies": {
19-
"0xsequence": "^2.3.39",
20-
"0xsequence.js.git": "link:.local/share/pnpm/global/5/node_modules/https:/github.com/Dargon789/0xsequence.js.git",
21-
"@0xsequence/checkout": "~5.4.8",
22-
"@0xsequence/connect": "0.0.0-20251202170137",
23-
"@0xsequence/hooks": "~5.4.8",
24-
"@0xsequence/waas": "^2.3.39",
25-
"@0xsequence/wallet": "~2.3.39",
26-
"@0xsequence/wallet-contracts": "~3.0.1",
27-
"@0xsequence/wallet-primitives": "0.0.0-20250915145821",
28-
"@0xsequence/wallet-widget": "0.0.0-20251202170137",
29-
"@codesandbox/sdk": "3.0.0-rc.1",
30-
"@coinbase/cdp-sdk": "~1.43.1",
31-
"@okx-dex/okx-dex-sdk": "~1.0.18",
32-
"@tanstack/query-async-storage-persister": "~5.90.22",
33-
"@tanstack/query-sync-storage-persister": "~5.90.22",
34-
"@tanstack/react-query": "~5.90.20",
35-
"@tanstack/react-query-devtools": "~5.91.3",
36-
"@tanstack/react-query-persist-client": "~5.90.22",
37-
"@vercel/analytics": "^1.6.1",
38-
"Rabby.git": "link:.local/share/pnpm/global/5/node_modules/git@github.com:Dargon789/Rabby.git",
39-
"connectkit": "~1.9.1",
40-
"ethers": "^6.16.0",
41-
"googleapis": "~170.1.0",
42-
"hardhat-project.git": "link:.local/share/pnpm/global/5/node_modules/git@github.com:Dargon789/hardhat-project.git",
43-
"next": "~16.1.6",
44-
"prettier-plugin-solidity": "^2.2.1",
45-
"react": "~19.2.4",
46-
"react-dom": "~19.2.4",
47-
"thirdweb-dev.git": "link:.local/share/pnpm/global/5/node_modules/git@github.com:Dargon789/thirdweb-dev.git",
48-
"vercel": "^50.11.0",
49-
"viem": "^2.45.1",
50-
"wagmi": "~3.3.4",
51-
"wallet-contracts.git": "link:.local/share/pnpm/global/5/node_modules/https:/github.com/Dargon789/wallet-contracts.git"
52-
},
53-
"version": "1.0.0",
54-
"description": "**NOTE: please see [v2](https://github.com/0xsequence/sequence.js/tree/v2) branch for sequence.js 2.x.x**",
55-
"main": "sequence.js",
56-
"directories": {
57-
"lib": "lib"
58-
},
59-
"repository": {
60-
"type": "git",
61-
"url": "git+https://github.com/Dargon789/sequence.js.git"
62-
},
63-
"keywords": [],
64-
"author": "",
65-
"bugs": {
66-
"url": "https://github.com/Dargon789/sequence.js/issues"
67-
},
68-
"homepage": "https://github.com/Dargon789/sequence.js#readme",
695
"scripts": {
706
"build:all": "turbo build",
717
"build:packages": "turbo build --filter=\"./packages/**/*\"",
728
"build": "pnpm build:packages",
739
"dev": "turbo dev",
7410
"test": "turbo test --concurrency=1",
75-
"lint": "turbo lint",
11+
"lint": "turbo lint --continue",
7612
"format": "prettier --list-different --write \"**/*.{ts,tsx,md}\"",
7713
"typecheck": "turbo typecheck",
7814
"postinstall": "lefthook install",
7915
"dev:server": "node packages/wallet/primitives-cli/dist/index.js server",
8016
"reinstall": "rimraf -g ./**/node_modules && pnpm install",
8117
"test:anvil": "anvil --fork-url https://nodes.sequence.app/arbitrum",
82-
"clean": "turbo clean"
18+
"clean": "turbo clean",
19+
"deps:lint": "syncpack lint --dependency-types prod,dev",
20+
"deps:fix": "syncpack fix"
21+
},
22+
"devDependencies": {
23+
"@changesets/cli": "^2.29.8",
24+
"lefthook": "^2.1.1",
25+
"prettier": "^3.8.1",
26+
"rimraf": "^6.1.3",
27+
"syncpack": "^14.0.0",
28+
"turbo": "^2.8.10",
29+
"typescript": "^5.9.3"
30+
},
31+
"pnpm": {
32+
"overrides": {
33+
"ox": "^0.9.17"
34+
}
35+
},
36+
"packageManager": "pnpm@10.24.0",
37+
"engines": {
38+
"node": ">=18"
8339
},
84-
"type": "commonjs"
40+
"syncpack": {
41+
"source": [
42+
"package.json",
43+
"packages/**/package.json",
44+
"extras/**/package.json",
45+
"repo/**/package.json"
46+
],
47+
"versionGroups": [
48+
{
49+
"label": "Use workspace protocol when developing local packages",
50+
"dependencyTypes": [
51+
"!local"
52+
],
53+
"dependencies": [
54+
"$LOCAL"
55+
],
56+
"pinVersion": "workspace:^"
57+
}
58+
]
59+
}
8560
}

packages/api/eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { config as baseConfig } from "@repo/eslint-config/base"
2+
3+
/** @type {import("eslint").Linter.Config} */
4+
export default baseConfig

packages/api/src/index.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
export * from './api.gen'
1+
export * from './userdata.gen.js'
22

3-
import { API as ApiRpc } from './api.gen'
3+
import { UserData as UserdataRpc } from './userdata.gen.js'
44

5-
const fetch = typeof global === 'object' ? global.fetch : window.fetch
6-
7-
export class SequenceAPIClient extends ApiRpc {
5+
export class SequenceUserdataClient extends UserdataRpc {
86
constructor(
97
hostname: string,
108
public projectAccessKey?: string,
11-
public jwtAuth?: string
9+
public jwtAuth?: string,
1210
) {
1311
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch)
1412
this.fetch = this._fetch
@@ -17,7 +15,7 @@ export class SequenceAPIClient extends ApiRpc {
1715
_fetch = (input: RequestInfo, init?: RequestInit): Promise<Response> => {
1816
// automatically include jwt and access key auth header to requests
1917
// if its been set on the api client
20-
const headers: { [key: string]: any } = {}
18+
const headers: Record<string, string> = {}
2119

2220
const jwtAuth = this.jwtAuth
2321
const projectAccessKey = this.projectAccessKey

0 commit comments

Comments
 (0)