Skip to content
Merged

v152 #79

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
028fd2d
feat: add OTokenAddressYield entity and related logic for yield tracking
toniocodo May 11, 2026
07aa8e3
refactor: tighten OTokenAddressYield accuracy and memory footprint
apexearth May 12, 2026
f849e63
fix: skip empty yield rows and pre-fetch seeds across dust evictions
apexearth May 12, 2026
5461fb5
refactor: derive OTokenAddressYield from OTokenAddress snapshots
apexearth May 13, 2026
3d21ee2
fix how we pull current/previous day data for address yield rows
apexearth May 13, 2026
a214943
update squid-utils & add env mappings for portal
apexearth May 13, 2026
b1367f1
stop evicting dust address yields
apexearth May 13, 2026
acbf8bb
track claimable and claimableAt for otoken and arm products
apexearth May 13, 2026
570a19b
bump sqd and fix compatibility issues
apexearth May 14, 2026
0f6e5e5
Guard against bad on-chain data producing absurd APYs
apexearth May 14, 2026
e8408c8
fix hyperliquid_mainnet
apexearth May 14, 2026
365f209
use node 22 in github actions
apexearth May 14, 2026
660010a
force package manager to pnpm 10 for docker build
apexearth May 14, 2026
72f74ea
fix pnpm version
apexearth May 14, 2026
4e47744
specify arm chainids
apexearth May 14, 2026
3bef822
remove portal url assignments from manifest - not ready yet
apexearth May 14, 2026
7168943
add exchange_rate_daily as a conflict table
apexearth May 14, 2026
122db79
add erc20 as a conflict table
apexearth May 14, 2026
700f432
smarter restore locking
apexearth May 14, 2026
939381a
fix issues found in cumulative yield and fees which seem to be caused by
apexearth May 15, 2026
acbd667
update postdeploy
apexearth May 16, 2026
635703a
fix: prevent strategy earnings double-counting when multiple log filt…
apexearth May 17, 2026
2e1142c
fix: use UTC day boundary for ARM getYesterdayState lookup
apexearth May 17, 2026
8b98a0e
fix: only update accountsOverThreshold for the day matching batch end…
apexearth May 17, 2026
a74fd5b
feat: prompt y/c/N when create-db-dump would wipe existing in-progres…
apexearth May 18, 2026
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .claude/scheduled_tasks.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"sessionId":"701028d5-7f99-47dc-8046-10213625b9c3","pid":5326,"procStart":"Mon May 11 16:24:29 2026","acquiredAt":1778555920954}
4 changes: 2 additions & 2 deletions .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
version: 10.24.0

- name: Install squid CLI
run: pnpm add -g @subsquid/cli
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
version: 10.24.0

- name: Install squid CLI
run: pnpm add -g @subsquid/cli
Expand Down
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Entry points: `src/main-*.ts` files (e.g., `main-oeth.ts`, `main-ousd.ts`)
- `src/utils/` - Shared utilities including chain-specific addresses (`addresses-*.ts`)
- `src/shared/` - Shared modules (ERC20 state, post-processors)
- `src/model/` - TypeORM entities (generated from GraphQL)
- `abi/` - Raw ABI JSON files
- `src/abi-json/` - Raw ABI JSON files (kept inside src/ so JSON imports don't shift tsc output into lib/src/)
- `src/abi/` - Generated TypeScript ABI interfaces

### Path Aliases (tsconfig.json)
Expand All @@ -89,7 +89,7 @@ Entry points: `src/main-*.ts` files (e.g., `main-oeth.ts`, `main-ousd.ts`)
## Development Workflow

### Adding New Events/Contracts
1. Add ABI JSON to `abi/`
1. Add ABI JSON to `src/abi-json/`
2. Run `pnpm run typegen` to generate TypeScript interfaces
3. Create processor in `src/[network]/processors/` or use existing template
4. Update `squid.yaml` if adding new processor
Expand Down
4 changes: 2 additions & 2 deletions commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
"cmd": ["squid-typeorm-codegen"]
},
"typegen": {
"description": "Generate data access classes for an ABI file(s) in the ./abi folder",
"description": "Generate data access classes for an ABI file(s) in the ./src/abi-json folder",
"cmd": [
"squid-evm-typegen",
"./src/abi",
{
"glob": "./abi/*.json"
"glob": "./src/abi-json/*.json"
},
"--multicall"
]
Expand Down

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

21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "origin-squid",
"private": true,
"packageManager": "pnpm@10.24.0",
"scripts": {
"codegen": "echo '# GENERATED, DO NOT MODIFY\n' > schema.graphql && cat $(find src -name '*.graphql') >> schema.graphql && sqd codegen && git add src/model/generated/*",
"migration:generate": "sqd down && sqd up && sqd migration:generate && git add db/migrations/*",
Expand All @@ -26,7 +27,7 @@
"process:hyperevm": "sqd process:hyperevm",
"process:test": "sqd process:test",
"process": "sqd process",
"generate:validations": "ts-node --require tsconfig-paths/register scripts/generate-validations.ts",
"generate:validations": "ts-node --require ./scripts/register-js-ts.js --require tsconfig-paths/register scripts/generate-validations.ts",
"log:processing-times": "ts-node --require tsconfig-paths/register scripts/check-processing-times.ts",
"postdeploy": "sh -c 'pnpm run log:processing-times $1 && pnpm run generate:validations $1 $2' --",
"lint": "eslint \"src/**/*.ts\"",
Expand All @@ -38,11 +39,11 @@
"@lavamoat/preinstall-always-fail": "^2.1.1",
"@originprotocol/squid-utils": "github:OriginProtocol/squid-utils#main",
"@subsquid/big-decimal": "^1.0.0",
"@subsquid/evm-processor": "^1.27.3",
"@subsquid/graphql-server": "^4.11.0",
"@subsquid/rpc-client": "4.14.0",
"@subsquid/typeorm-migration": "^1.3.0",
"@subsquid/typeorm-store": "^1.5.1",
"@subsquid/evm-processor": "^1.30.1",
"@subsquid/graphql-server": "^4.12.0",
"@subsquid/rpc-client": "4.15.0",
"@subsquid/typeorm-migration": "^1.3.1",
"@subsquid/typeorm-store": "^1.9.1",
"@tanstack/query-core": "^5.32.0",
"@types/lodash": "^4.14.200",
"chai": "^4.3.10",
Expand All @@ -66,10 +67,10 @@
},
"devDependencies": {
"@lavamoat/allow-scripts": "^3.3.4",
"@subsquid/evm-abi": "0.3.1",
"@subsquid/evm-codec": "0.3.0",
"@subsquid/evm-typegen": "^4.5.1",
"@subsquid/typeorm-codegen": "^2.0.2",
"@subsquid/evm-abi": "1.0.0",
"@subsquid/evm-codec": "1.0.0",
"@subsquid/evm-typegen": "^5.0.0",
"@subsquid/typeorm-codegen": "^2.2.0",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@types/chai": "^4.3.11",
"@types/js-yaml": "^4.0.8",
Expand Down
Loading
Loading