Skip to content

Commit f202315

Browse files
committed
Add lisk
1 parent 4393852 commit f202315

File tree

10 files changed

+64
-78
lines changed

10 files changed

+64
-78
lines changed

.github/workflows/Release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
"fraxtal",
2323
"gnosis",
2424
"linea",
25+
"lisk",
2526
"manta",
2627
"mantle",
2728
"metis",

README.md

+9-19
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ This Subgraph sources events from the Beefy contracts in different networks.
1515
- [Ethereum](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-ethereum/latest/gn)
1616
- [Fantom](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-fantom/latest/gn)
1717
- [Fraxtal](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-fraxtal/latest/gn)
18+
- [Gnosis](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-gnosis/latest/gn)
1819
- [Linea](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-linea/latest/gn)
20+
- [Lisk](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-lisk/latest/gn)
1921
- [Manta](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-manta/latest/gn)
22+
- [Mantle](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-mantle/latest/gn)
23+
- [Metis](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-metis/latest/gn)
2024
- [Mode](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-mode/latest/gn)
2125
- [Moonbeam](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-moonbeam/latest/gn)
2226
- [Optimism](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-optimism/latest/gn)
@@ -33,8 +37,6 @@ This Subgraph sources events from the Beefy contracts in different networks.
3337
- Git: [git-scm.com](https://git-scm.com)
3438
- Node.js: [nodejs.org](https://nodejs.org), see version in [.nvmrc](.nvmrc)
3539
- Yarn: [yarnpkg.com](https://yarnpkg.com)
36-
- Docker: [docker.com](https://www.docker.com)
37-
- Docker Compose: [docker.com](https://docs.docker.com/compose/install/)
3840

3941
## Setup the project
4042

@@ -48,17 +50,6 @@ yarn install
4850
yarn infra:strat
4951
```
5052

51-
## Deploying the subgraph locally
52-
53-
```bash
54-
yarn remove-local # if you have already deployed the subgraph
55-
yarn create-local # create the subgraph locally
56-
yarn prepare:<network> # apply configuration for the network
57-
yarn codegen # generate the typescript types
58-
yarn build # build the subgraph code
59-
yarn deploy-local # deploy the subgraph locally
60-
```
61-
6253
## Run tests
6354

6455
```bash
@@ -74,18 +65,17 @@ yarn test:lint # run prettier linter
7465
1. Add the network configuration [config/<network>.json](config/).
7566
- `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))
7667
2. Add dev RPCs in graph-node config [docker/graph-node/config.toml](docker/graph-node/config.toml).
77-
3. Add a new `prepare:<network>` script in [package.json](package.json).
78-
4. Add the chain in `.github/workflows/Release.yml` to configure deployments.
79-
5. Test the build
68+
3. Add the chain in `.github/workflows/Release.yml` to configure deployments.
69+
4. Test the build
8070
- Apply the configuration: `npm run prepare:<chain>`
8171
- Build the application: `npm run build`
8272
- Run Tests: `npm run test`
8373
- Deploy the new chain in DEV: `./bin/deploy.sh <chain> <dev provider>`
8474
- Test the data in the dev provider subgraph explorer
8575
- Manually deploy the new chain in PROD for the first version: `./bin/deploy.sh <chain> <dev provider>`
86-
6. Update the `Deployments` section subgraph URLs in this README
87-
7. Update the [Balances API](https://github.com/beefyfinance/beefy-balances-api)
88-
8. Standard formatting with `npm run format`
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`
8979

9080
### How to update the schema
9181

bin/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function exit_help {
1515
function prepare {
1616
CHAIN=$1
1717
echo "preparing $CHAIN"
18-
yarn prepare:$CHAIN
18+
yarn configure $CHAIN
1919
yarn codegen
2020
yarn build
2121
}

bin/release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function exit_help {
1717
function prepare {
1818
CHAIN=$1
1919
echo "preparing $CHAIN"
20-
yarn prepare:$CHAIN
20+
yarn configure $CHAIN
2121
yarn codegen
2222
yarn build
2323
}

config/_real.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"network": "real",
3+
"indexerHintPrune": 10800000,
4+
"shareTokenMintAddress": "0x0000000000000000000000000000000000000000",
5+
"burnAddress": "0x000000000000000000000000000000000000dead",
6+
"firstBlock": 93102906,
7+
8+
"clmManagerFactoryAddress": "0x2AfB174c22D9eE334895C4e300ab93154d800aA0",
9+
"clmManagerFactoryStartBlock": 93102906,
10+
"clmStrategyFactoryAddress": "0x70127945067E4224d7B6ABfDc6f57e3ea45d5CA4",
11+
"clmStrategyFactoryStartBlock": 93102956,
12+
"rewardPoolFactoryAddress": "0xe103ab2f922aa1a56EC058AbfDA2CeEa1e95bCd7",
13+
"rewardPoolFactoryStartBlock": 93102931,
14+
"beefyClassicVaultFactoryAddress": "0x91BB303E972995EbE5f593BCddBb6F5Ef49Dbcbd",
15+
"beefyClassicVaultFactoryStartBlock": 92535412,
16+
17+
"beefyContractDeployerAddress": "0xcc536552A6214d6667fBC3EC38965F7f556A6391",
18+
"beefyContractDeployerStartBlock": 93106093,
19+
20+
"vaultInitializedEvent": "Initialized(uint8)"
21+
}

config/lisk.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"network": "lisk",
3+
"indexerHintPrune": 2000000,
4+
5+
"shareTokenMintAddress": "0x0000000000000000000000000000000000000000",
6+
"burnAddress": "0x000000000000000000000000000000000000dead",
7+
"firstBlock": 8910850,
8+
9+
"clmManagerFactoryAddress": "0x3C0b1765C379833b86A1704997019A7496Afdfae",
10+
"clmManagerFactoryStartBlock": 9252397,
11+
"clmStrategyFactoryAddress": "0x7cac900B2f504047b40F5554F633248f78bD960A",
12+
"clmStrategyFactoryStartBlock": 9252416,
13+
"rewardPoolFactoryAddress": "0xA5Cd8A60a05571141370D184e255777e5c2d5968",
14+
"rewardPoolFactoryStartBlock": 9252403,
15+
"beefyClassicVaultFactoryAddress": "0xBC4a342B0c057501E081484A2d24e576E854F823",
16+
"beefyClassicVaultFactoryStartBlock": 8910851,
17+
"beefyClassicBoostFactoryAddress": "0x0000000000000000000000000000000000000000",
18+
"beefyClassicBoostFactoryStartBlock": 8910851,
19+
20+
"beefyContractDeployerAddress": "0xcc536552A6214d6667fBC3EC38965F7f556A6391",
21+
"beefyContractDeployerStartBlock": 9387884,
22+
23+
"vaultInitializedEvent": "Initialized(uint8)"
24+
}
25+

data/lisk_data.json

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

docker/.gitignore

-1
This file was deleted.

docker/graph-node/config.toml

-35
This file was deleted.

package.json

+2-21
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "beefy-balances-subgraph",
33
"private": true,
44
"scripts": {
5-
"postinstall": "yarn run --silent prepare:linea && yarn run --silent codegen",
5+
"postinstall": "yarn run --silent configure linea && yarn run --silent codegen",
66
"codegen": "rm -Rf generated && graph codegen",
77
"build": "graph build",
88
"format": "prettier . --write",
@@ -15,26 +15,7 @@
1515
"create-local": "graph create beefyfinance/local --node http://127.0.0.1:8020",
1616
"deploy-local": "graph deploy beefyfinance/local --node http://127.0.0.1:8020 --ipfs http://localhost:5001",
1717
"remove-local": "graph remove beefyfinance/local --node http://127.0.0.1:8020",
18-
"prepare:avax": "./bin/prepare.sh avax",
19-
"prepare:arbitrum": "./bin/prepare.sh arbitrum",
20-
"prepare:base": "./bin/prepare.sh base",
21-
"prepare:bsc": "./bin/prepare.sh bsc",
22-
"prepare:ethereum": "./bin/prepare.sh ethereum",
23-
"prepare:fantom": "./bin/prepare.sh fantom",
24-
"prepare:fraxtal": "./bin/prepare.sh fraxtal",
25-
"prepare:gnosis": "./bin/prepare.sh gnosis",
26-
"prepare:linea": "./bin/prepare.sh linea",
27-
"prepare:manta": "./bin/prepare.sh manta",
28-
"prepare:mantle": "./bin/prepare.sh mantle",
29-
"prepare:metis": "./bin/prepare.sh metis",
30-
"prepare:mode": "./bin/prepare.sh mode",
31-
"prepare:moonbeam": "./bin/prepare.sh moonbeam",
32-
"prepare:optimism": "./bin/prepare.sh optimism",
33-
"prepare:polygon": "./bin/prepare.sh polygon",
34-
"prepare:rootstock": "./bin/prepare.sh rootstock",
35-
"prepare:scroll": "./bin/prepare.sh scroll",
36-
"prepare:sei": "./bin/prepare.sh sei",
37-
"prepare:zksync": "./bin/prepare.sh zksync"
18+
"configure": "./bin/prepare.sh "
3819
},
3920
"main": "./bin/index.js",
4021
"bin": {

0 commit comments

Comments
 (0)