Skip to content

Commit 0a5d8a4

Browse files
committed
Add sonic
1 parent da4a52d commit 0a5d8a4

File tree

4 files changed

+37
-11
lines changed

4 files changed

+37
-11
lines changed

.github/workflows/Release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ jobs:
3131
"optimism",
3232
"polygon",
3333
"rootstock",
34-
"sei",
3534
"scroll",
35+
"sei",
36+
"sonic",
3637
"zksync",
3738
]
3839
os: [ubuntu-latest]

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ This Subgraph sources events from the Beefy contracts in different networks.
2828
- [Rootstock](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-rootstock/latest/gn)
2929
- [Scroll](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-scroll/latest/gn)
3030
- [Sei](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-sei/latest/gn)
31+
- [Sonic](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-sonic/latest/gn)
3132
- [Zksync](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-zksync/latest/gn)
3233

3334
# Contributing
@@ -64,18 +65,17 @@ yarn test:lint # run prettier linter
6465

6566
1. Add the network configuration [config/<network>.json](config/).
6667
- `indexerHintPrune` is the number of blocks to keep for the indexer hint, aim for 2 months. Can be set to `"auto"` to prune as much as possible. Recommended for performance and cost. Or set to `"never"` to keep all updates history. ([Thegraph docs](https://thegraph.com/docs/en/cookbook/pruning/#how-to-prune-a-subgraph-with-indexerhints))
67-
2. Add dev RPCs in graph-node config [docker/graph-node/config.toml](docker/graph-node/config.toml).
68-
3. Add the chain in `.github/workflows/Release.yml` to configure deployments.
69-
4. Test the build
70-
- Apply the configuration: `npm run prepare:<chain>`
71-
- Build the application: `npm run build`
72-
- Run Tests: `npm run test`
68+
2. Add the chain in `.github/workflows/Release.yml` to configure deployments.
69+
3. Test the build
70+
- Apply the configuration: `yarn configure <chain>`
71+
- Build the application: `yarn build`
72+
- Run Tests: `yarn test`
7373
- Deploy the new chain in DEV: `./bin/deploy.sh <chain> <dev provider>`
7474
- Test the data in the dev provider subgraph explorer
75-
- Manually deploy the new chain in PROD for the first version: `./bin/deploy.sh <chain> <dev provider>`
76-
5. Update the `Deployments` section subgraph URLs in this README
77-
6. Update the [Balances API](https://github.com/beefyfinance/beefy-balances-api)
78-
7. Standard formatting with `npm run format`
75+
- Manually deploy the new chain in PROD for the first version: `./bin/release.sh <version> <chain> <dev provider>`
76+
4. Update the `Deployments` section subgraph URLs in this README
77+
5. Update the [Balances API](https://github.com/beefyfinance/beefy-balances-api)
78+
6. Standard formatting with `yarn run format`
7979

8080
### How to update the schema
8181

config/sonic.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"network": "sonic",
3+
"indexerHintPrune": 10800000,
4+
"shareTokenMintAddress": "0x0000000000000000000000000000000000000000",
5+
"burnAddress": "0x000000000000000000000000000000000000dead",
6+
"firstBlock": 491446,
7+
8+
"clmManagerFactoryAddress": "0xD19ab62F83380908D65E344567378cF104cE46c2",
9+
"clmManagerFactoryStartBlock": 491446,
10+
"clmStrategyFactoryAddress": "0xC2cEE7cf27D2Eda09fEc1743f3953dA77Bf1DA61",
11+
"clmStrategyFactoryStartBlock": 491464,
12+
"rewardPoolFactoryAddress": "0x3C0b1765C379833b86A1704997019A7496Afdfae",
13+
"rewardPoolFactoryStartBlock": 491452,
14+
"beefyClassicVaultFactoryAddress": "0x8e0B63846ebEFf857EE35eF3BD3A2df9EF7D6456",
15+
"beefyClassicVaultFactoryStartBlock": 490985,
16+
17+
"beefyContractDeployerAddress": "0xcc536552A6214d6667fBC3EC38965F7f556A6391",
18+
"beefyContractDeployerStartBlock": 517707,
19+
20+
"vaultInitializedEvent": "Initialized(uint8)"
21+
}

data/sonic_data.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"no_factory_vaults": [],
3+
"no_factory_boosts": []
4+
}

0 commit comments

Comments
 (0)