From 4b96d508a47c27c0e03b2d4b3fdfc52d80c059fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= <998369+prevostc@users.noreply.github.com> Date: Mon, 2 Sep 2024 17:06:17 +0200 Subject: [PATCH] Add avalanche and fantom --- .github/workflows/Release.yml | 2 +- README.md | 2 ++ config/avalanche.json | 14 ++++++++++++++ config/fantom.json | 14 ++++++++++++++ package.json | 2 ++ 5 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 config/avalanche.json create mode 100644 config/fantom.json diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 2b7b27d..8188f34 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -12,7 +12,7 @@ jobs: matrix: node: ["21.x"] chain: - ["arbitrum", "base", "bsc", "ethereum", "fraxtal", "linea", "manta", "mantle", "mode", "moonbeam", "optimism", "polygon", "sei", "zksync"] + ["avalanche", "arbitrum", "base", "bsc", "ethereum", "fantom", "fraxtal", "linea", "manta", "mantle", "mode", "moonbeam", "optimism", "polygon", "sei", "zksync"] os: [ubuntu-latest] runs-on: ${{ matrix.os }} diff --git a/README.md b/README.md index 7db80b1..0580770 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,12 @@ This Subgraph sources events from the Beefy contracts in different networks. ### Latest endpoints +- [Avalanche](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-avalanche/latest/gn) - [Arbitrum](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-arbitrum/latest/gn) - [Base](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-base/latest/gn) - [Bsc](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-bsc/latest/gn) - [Ethereum](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-ethereum/latest/gn) +- [Fantom](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-fantom/latest/gn) - [Fraxtal](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-fraxtal/latest/gn) - [Linea](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-linea/latest/gn) - [Manta](https://api.goldsky.com/api/public/project_clu2walwem1qm01w40v3yhw1f/subgraphs/beefy-balances-manta/latest/gn) diff --git a/config/avalanche.json b/config/avalanche.json new file mode 100644 index 0000000..348c629 --- /dev/null +++ b/config/avalanche.json @@ -0,0 +1,14 @@ +{ + "network": "avalanche", + "indexerHintPrune": 1000000, + "shareTokenMintAddress": "0x0000000000000000000000000000000000000000", + "burnAddress": "0x000000000000000000000000000000000000dead", + + "beefyClassicVaultFactoryAddress": "0xee78529E158E82AC54c89608A9664F5597050526", + "beefyClassicVaultFactoryStartBlock": 23297126, + + "beefyContractDeployerAddress": "0xcc536552A6214d6667fBC3EC38965F7f556A6391", + "beefyContractDeployerStartBlock": 33664658, + + "vaultInitializedEvent": "Initialized(uint8)" +} diff --git a/config/fantom.json b/config/fantom.json new file mode 100644 index 0000000..73b64e2 --- /dev/null +++ b/config/fantom.json @@ -0,0 +1,14 @@ +{ + "network": "fantom", + "indexerHintPrune": 10000000, + "shareTokenMintAddress": "0x0000000000000000000000000000000000000000", + "burnAddress": "0x000000000000000000000000000000000000dead", + + "beefyClassicVaultFactoryAddress": "0x740ce0674af6eec113a435faa53b297536a3e89b", + "beefyClassicVaultFactoryStartBlock": 54563817, + + "beefyContractDeployerAddress": "0xcc536552A6214d6667fBC3EC38965F7f556A6391", + "beefyContractDeployerStartBlock": 66770113, + + "vaultInitializedEvent": "Initialized(uint8)" +} diff --git a/package.json b/package.json index d97ca80..df512a6 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,12 @@ "create-local": "graph create beefyfinance/local --node http://127.0.0.1:8020", "deploy-local": "graph deploy beefyfinance/local --node http://127.0.0.1:8020 --ipfs http://localhost:5001", "remove-local": "graph remove beefyfinance/local --node http://127.0.0.1:8020", + "prepare:avalanche": "./bin/prepare.sh avalanche", "prepare:arbitrum": "./bin/prepare.sh arbitrum", "prepare:base": "./bin/prepare.sh base", "prepare:bsc": "./bin/prepare.sh bsc", "prepare:ethereum": "./bin/prepare.sh ethereum", + "prepare:fantom": "./bin/prepare.sh fantom", "prepare:fraxtal": "./bin/prepare.sh fraxtal", "prepare:linea": "./bin/prepare.sh linea", "prepare:manta": "./bin/prepare.sh manta",