Skip to content

Commit 5e84ed1

Browse files
committed
plume network
1 parent d586b12 commit 5e84ed1

File tree

13 files changed

+386
-125
lines changed

13 files changed

+386
-125
lines changed

commands.json

+11
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
"deps": ["build"],
7272
"cmd": ["node", "--require=dotenv/config", "--require=tsconfig-paths/register", "lib/main-sonic.js"]
7373
},
74+
"process:plume": {
75+
"description": "Load .env and start the squid processor",
76+
"deps": ["build"],
77+
"cmd": ["node", "--require=dotenv/config", "--require=tsconfig-paths/register", "lib/main-plume.js"]
78+
},
7479
"process:oeth": {
7580
"description": "Load .env and start the squid processor",
7681
"deps": ["build"],
@@ -114,6 +119,12 @@
114119
"cmd": ["node", "--require=tsconfig-paths/register", "lib/main-sonic.js"],
115120
"hidden": true
116121
},
122+
"process:plume:prod": {
123+
"description": "Start the squid processor",
124+
"deps": ["migration:apply"],
125+
"cmd": ["node", "--require=tsconfig-paths/register", "lib/main-plume.js"],
126+
"hidden": true
127+
},
117128
"process:oeth:prod": {
118129
"description": "Start the squid processor",
119130
"deps": ["migration:apply"],

package-lock.json

+60-81
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"process:oeth": "sqd process:oeth",
1818
"process:ousd": "sqd process:ousd",
1919
"process:ogv": "sqd process:ogv",
20+
"process:plume": "sqd process:plume",
2021
"process:mainnet": "sqd process:mainnet",
2122
"process:test": "sqd process:test",
2223
"process": "sqd process",
@@ -27,7 +28,7 @@
2728
"lint:fix": "eslint \"src/**/*.ts\" --fix"
2829
},
2930
"dependencies": {
30-
"@originprotocol/squid-utils": "github:OriginProtocol/squid-utils#main",
31+
"@originprotocol/squid-utils": "github:OriginProtocol/squid-utils#test2",
3132
"@subsquid/evm-processor": "^1.27.0",
3233
"@subsquid/graphql-server": "^4.9.0",
3334
"@subsquid/typeorm-migration": "^1.3.0",

squid.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,19 @@ deploy:
112112
# # RPC_SONIC_ENDPOINT: https://virtual.base.rpc.tenderly.co/103020a8-b59a-4d51-9f8b-b156564e9fb8
113113
# ### Time Travel Fix
114114
# # BLOCK_FROM: 20919091
115+
########## PLUME NETWORK ##########
116+
- name: plume-processor
117+
cmd: ['sqd', 'process:plume:prod']
118+
# env:
119+
# ### Fork Setup Stage 1
120+
# ARCHIVE_ONLY: 'true'
121+
# BLOCK_TO: 21527081
122+
# ### Fork Setup Stage 2
123+
# # DISABLE_ARCHIVE: 'true'
124+
# # RPC_SONIC_ENV: RPC_SONIC_ENDPOINT
125+
# # RPC_SONIC_ENDPOINT: https://virtual.base.rpc.tenderly.co/103020a8-b59a-4d51-9f8b-b156564e9fb8
126+
# ### Time Travel Fix
127+
# # BLOCK_FROM: 20919091
115128
api:
116129
cmd:
117130
- npx

src/main-plume.ts

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { superOETHp } from 'plume/super-oeth-p'
2+
import 'tsconfig-paths/register'
3+
import { plumeMainnet } from 'viem/chains'
4+
5+
import { defineSquidProcessor, run } from '@originprotocol/squid-utils'
6+
import * as exchangeRatesPostProcessor from '@shared/post-processors/exchange-rates'
7+
import { processStatus } from '@templates/processor-status'
8+
9+
import * as validate from './sonic/validate'
10+
11+
export const processor = defineSquidProcessor({
12+
chainId: plumeMainnet.id,
13+
stateSchema: 'plume-processor',
14+
processors: [
15+
...superOETHp,
16+
// createPoolBoosterProcessor({ registryAddress: '0x4f3b656aa5fb5e708bf7b63d6ff71623eb4a218a', from: 9219718 }),
17+
// createPoolsProcessor(plumeMainnet.id),
18+
],
19+
postProcessors: [exchangeRatesPostProcessor, processStatus('plume')],
20+
validators: [validate],
21+
})
22+
23+
export default processor
24+
25+
if (require.main === module) {
26+
run(processor).catch((error) => {
27+
throw error
28+
})
29+
}

0 commit comments

Comments
 (0)