Skip to content

Commit 1b606e6

Browse files
committed
Add unichain
1 parent 19f9787 commit 1b606e6

File tree

4 files changed

+37
-11
lines changed

4 files changed

+37
-11
lines changed

.github/workflows/Release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
"avax",
1717
"arbitrum",
1818
"base",
19+
"berachain",
1920
"bsc",
2021
"ethereum",
2122
"fantom",
@@ -34,6 +35,7 @@ jobs:
3435
"scroll",
3536
"sei",
3637
"sonic",
38+
"unichain",
3739
"zksync",
3840
]
3941
os: [ubuntu-latest]

README.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This Subgraph sources events from the Beefy contracts in different networks.
1010

1111
- [Avalanche](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-avax/latest/gn)
1212
- [Arbitrum](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-arbitrum/latest/gn)
13+
- [Berachain](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-berachain/latest/gn)
1314
- [Base](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-base/latest/gn)
1415
- [Bsc](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-bsc/latest/gn)
1516
- [Ethereum](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-ethereum/latest/gn)
@@ -29,6 +30,7 @@ This Subgraph sources events from the Beefy contracts in different networks.
2930
- [Scroll](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-scroll/latest/gn)
3031
- [Sei](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-sei/latest/gn)
3132
- [Sonic](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-sonic/latest/gn)
33+
- [Unichain](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-unichain/latest/gn)
3234
- [Zksync](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-zksync/latest/gn)
3335

3436
# Contributing
@@ -65,17 +67,12 @@ yarn test:lint # run prettier linter
6567

6668
1. Add the network configuration [config/<network>.json](config/).
6769
- `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))
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`
73-
- Deploy the new chain in DEV: `./bin/deploy.sh <chain> <dev provider>`
74-
- Test the data in the dev provider subgraph explorer
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`
70+
2. Add the data configuration [data/<network>.json](data/)
71+
3. Add the chain in `.github/workflows/Release.yml` to configure deployments.
72+
4. Add the endpoint link to the [README](README.md) in alphabetical order.
73+
5. Release the first version of the subgraph for the new network using the [./bin/release.sh](./bin/release.sh) script.
74+
- Must be logged in to goldsky with the provided cli.
75+
- Only used to deploy the first version, see below for updating a subgraph.
7976

8077
### How to update the schema
8178

config/unichain.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"network": "unichain",
3+
"indexerHintPrune": 3000000,
4+
"shareTokenMintAddress": "0x0000000000000000000000000000000000000000",
5+
"burnAddress": "0x000000000000000000000000000000000000dead",
6+
7+
"clmManagerFactoryAddress": "0x4a902F6596cCf51c6c1FF5Cc055f69Aa1DD06277",
8+
"clmManagerFactoryStartBlock": 9043276,
9+
"clmStrategyFactoryAddress": "0x0B411a65044fcCA28f2cf0832d319c82A39c54bB",
10+
"clmStrategyFactoryStartBlock": 9043300,
11+
"rewardPoolFactoryAddress": "0x8C8F9B7Fb2a668C866a1c529529f7FB598375252",
12+
"rewardPoolFactoryStartBlock": 9043285,
13+
"beefyClassicVaultFactoryAddress": "0xc0382dbbc2a46F31AA39791Fd0864991962B191c",
14+
"beefyClassicVaultFactoryStartBlock": 9042349,
15+
"beefyClassicStrategyFactoryAddress": "0xC2F5bD6e9fef7368F59121552cA9CC60FF4a127A",
16+
"beefyClassicStrategyFactoryStartBlock": 9047298,
17+
"beefyClassicBoostFactoryAddress": "0x0000000000000000000000000000000000000000",
18+
"beefyClassicBoostFactoryStartBlock": 9042349,
19+
20+
"beefyContractDeployerAddress": "0xcc536552A6214d6667fBC3EC38965F7f556A6391",
21+
"beefyContractDeployerStartBlock": 9047298,
22+
"vaultInitializedEvent": "Initialized(uint8)"
23+
}

data/unichain_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)