Skip to content

Commit 570a19b

Browse files
committed
bump sqd and fix compatibility issues
1 parent acbf8bb commit 570a19b

458 files changed

Lines changed: 34309 additions & 22252 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.

.claude/scheduled_tasks.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"sessionId":"701028d5-7f99-47dc-8046-10213625b9c3","pid":5326,"procStart":"Mon May 11 16:24:29 2026","acquiredAt":1778555920954}

CLAUDE.md

Lines changed: 2 additions & 2 deletions

commands.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
"cmd": ["squid-typeorm-codegen"]
4242
},
4343
"typegen": {
44-
"description": "Generate data access classes for an ABI file(s) in the ./abi folder",
44+
"description": "Generate data access classes for an ABI file(s) in the ./src/abi-json folder",
4545
"cmd": [
4646
"squid-evm-typegen",
4747
"./src/abi",
4848
{
49-
"glob": "./abi/*.json"
49+
"glob": "./src/abi-json/*.json"
5050
},
5151
"--multicall"
5252
]

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
"@lavamoat/preinstall-always-fail": "^2.1.1",
3939
"@originprotocol/squid-utils": "github:OriginProtocol/squid-utils#main",
4040
"@subsquid/big-decimal": "^1.0.0",
41-
"@subsquid/evm-processor": "^1.27.3",
42-
"@subsquid/graphql-server": "^4.11.0",
43-
"@subsquid/rpc-client": "4.14.0",
44-
"@subsquid/typeorm-migration": "^1.3.0",
45-
"@subsquid/typeorm-store": "^1.5.1",
41+
"@subsquid/evm-processor": "^1.30.1",
42+
"@subsquid/graphql-server": "^4.12.0",
43+
"@subsquid/rpc-client": "4.15.0",
44+
"@subsquid/typeorm-migration": "^1.3.1",
45+
"@subsquid/typeorm-store": "^1.9.1",
4646
"@tanstack/query-core": "^5.32.0",
4747
"@types/lodash": "^4.14.200",
4848
"chai": "^4.3.10",
@@ -66,10 +66,10 @@
6666
},
6767
"devDependencies": {
6868
"@lavamoat/allow-scripts": "^3.3.4",
69-
"@subsquid/evm-abi": "0.3.1",
70-
"@subsquid/evm-codec": "0.3.0",
71-
"@subsquid/evm-typegen": "^4.5.1",
72-
"@subsquid/typeorm-codegen": "^2.0.2",
69+
"@subsquid/evm-abi": "1.0.0",
70+
"@subsquid/evm-codec": "1.0.0",
71+
"@subsquid/evm-typegen": "^5.0.0",
72+
"@subsquid/typeorm-codegen": "^2.2.0",
7373
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
7474
"@types/chai": "^4.3.11",
7575
"@types/js-yaml": "^4.0.8",

pnpm-lock.yaml

Lines changed: 195 additions & 186 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/check-unused-abis.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ import { execSync } from 'child_process'
66
* Checks for unused ABI files in the codebase.
77
*
88
* ABI workflow:
9-
* 1. JSON ABI files live in /abi/
9+
* 1. JSON ABI files live in /src/abi-json/
1010
* 2. They get typegenned into /src/abi/
1111
* 3. Code imports from @abi/filename
1212
*
1313
* This script finds which ABIs in src/abi/ are not imported
1414
* anywhere outside of src/abi/, and reports the corresponding
15-
* JSON files in abi/ that can be deleted.
15+
* JSON files in src/abi-json/ that can be deleted.
1616
*/
1717

1818
const ROOT_DIR = path.resolve(__dirname, '..')
1919
const SRC_ABI_DIR = path.join(ROOT_DIR, 'src', 'abi')
20-
const ABI_JSON_DIR = path.join(ROOT_DIR, 'abi')
20+
const ABI_JSON_DIR = path.join(ROOT_DIR, 'src', 'abi-json')
2121
const SRC_DIR = path.join(ROOT_DIR, 'src')
2222

2323
// ABIs to ignore (auto-generated or intentionally kept without direct imports)
@@ -116,7 +116,7 @@ function main() {
116116
for (const { tsFile, jsonFile } of unused) {
117117
console.log(` src/abi/${tsFile}.ts`)
118118
if (jsonFile) {
119-
console.log(` -> abi/${jsonFile}`)
119+
console.log(` -> src/abi-json/${jsonFile}`)
120120
}
121121
}
122122

@@ -129,7 +129,7 @@ function main() {
129129
console.log('Commands to delete unused files:')
130130
console.log('```')
131131
for (const jsonFile of jsonFiles) {
132-
console.log(`rm abi/${jsonFile}`)
132+
console.log(`rm src/abi-json/${jsonFile}`)
133133
}
134134
for (const srcFile of srcFiles) {
135135
console.log(`rm src/abi/${srcFile}`)

scripts/generate-abi-exports.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Generate .abi.ts files from raw JSON ABIs in ./abi/.
2+
* Generate .abi.ts files from raw JSON ABIs in ./src/abi-json/.
33
* Each generated file re-exports the ABI with `as const` for proper viem type inference.
44
*
55
* Usage: ts-node scripts/generate-abi-exports.ts
@@ -8,7 +8,7 @@
88
import fs from 'fs'
99
import path from 'path'
1010

11-
const abiDir = path.resolve(__dirname, '../abi')
11+
const abiDir = path.resolve(__dirname, '../src/abi-json')
1212
const outDir = path.resolve(__dirname, '../src/abi')
1313

1414
const jsonFiles = fs.readdirSync(abiDir).filter((f) => f.endsWith('.json'))

0 commit comments

Comments
 (0)