Skip to content

Commit

Permalink
Add Polygon CLM (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kexleyBeefy authored Jun 18, 2024
1 parent 9d89985 commit 0abfc69
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
node: ["21.x"]
chain: ["arbitrum", "base", "optimism", "arbitrum-beta", "moonbeam", "linea"]
chain: ["arbitrum", "base", "optimism", "arbitrum-beta", "moonbeam", "linea", "polygon"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand Down
24 changes: 24 additions & 0 deletions config/polygon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"network": "matic",

"multicall3Address": "0xcA11bde05977b3631167028862bE2a173976CA11",
"shareTokenMintAddress": "0x0000000000000000000000000000000000000000",
"burnAddress": "0x000000000000000000000000000000000000dead",

"clmManagerFactoryAddress": "0x56244006aCBE39275975eA72775E7c9920C9Da57",
"clmManagerFactoryStartBlock": 58270050,
"clmStrategyFactoryAddress": "0xf4CB9Cb96a3F00d66f065ECABc8Ace0742512d22",
"clmStrategyFactoryStartBlock": 58270064,
"rewardPoolFactoryAddress": "0x8dB409dd28B3E4189dD4CF82bAbDD7b593a679EA",
"rewardPoolFactoryStartBlock": 58270058,
"beefyClassicVaultFactoryAddress": "0x5a7Bdd60d6004aaED4C06cA16434f4b657d76C3D",
"beefyClassicVaultFactoryStartBlock": 37425099,
"beefyClassicBoostFactoryAddress": "0x0000000000000000000000000000000000000000",
"beefyClassicBoostFactoryStartBlock": 37425099,
"clockTickBlocks": 150,

"wrappedNativeAddress": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
"wrappedNativeDecimals": 18,
"chainlinkNativePriceFeedAddress": "0xAB594600376Ec9fD91F8e885dADF0CE036862dE0",
"chainlinkNativePriceFeedDecimals": 8
}
23 changes: 10 additions & 13 deletions docker/graph-node/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ indexers = ["default"]
[chains]
ingestor = "default"

[chains.arbitrum-one]
[chains.matic]
shard = "primary"

# archive node test:
# curl https://arbitrum.llamarpc.com -X POST -H "Content-Type: application/json" --data '{"method":"eth_getBalance","params":["0x82af49447d8a07e3bd95bd0d56f35241523fbab1", "0x55"],"id":1,"jsonrpc":"2.0"}'
# curl https://polygon.blockpi.network/v1/rpc/public -X POST -H "Content-Type: application/json" --data '{"method":"eth_getBalance","params":["0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270", "0x55"],"id":1,"jsonrpc":"2.0"}'
provider = [
# { label = "blutgang-http", url = "http://rpc-proxy-cache-arbitrum:3000", features = [ "archive" ] },
{ label = "ankr", url = "https://rpc.ankr.com/arbitrum", features = ["archive"] },
{ label = "gatewayfm", url = "https://rpc.arb1.arbitrum.gateway.fm", features = ["archive"] },
{ label = "tornadoeth", url = "https://rpc.tornadoeth.cash/arbitrum", features = ["archive"] },
{ label = "nodies", url = "https://arb-pokt.nodies.app", features = [] },
{ label = "arbitrumio", url = "https://arb1.arbitrum.io/rpc", features = [] },
{ label = "meowrpc", url = "https://arbitrum.meowrpc.com", features = [] },
{ label = "1rpc", url = "https://1rpc.io/arb", features = [] },
{ label = "publicnode", url = "https://arbitrum-one.publicnode.com", features = [] }
# value: conflicting network identifiers for chain arbitrum: `net_version: 42161, genesis_block_hash: ...` != `net_version: 0xa4b1, genesis_block_hash: ...`
#{ label = "llamarpc", url = "https://arbitrum.llamarpc.com", features = [] },
{ label = "ankr", url = "https://rpc.ankr.com/polygon", features = ["archive"] },
{ label = "finality", url = "https://polygon.api.onfinality.io/public", features = ["archive"] },
{ label = "tenderly", url = "https://gateway.tenderly.co/public/polygon", features = ["archive"] },
{ label = "meowrpc", url = "https://polygon.meowrpc.com", features = [] },
{ label = "dprc", url = "https://polygon.drpc.org", features = ["archive"] },
{ label = "pokt", url = "https://polygon-pokt.nodies.app", features = [] },
{ label = "polygon", url = "https://polygon-rpc.com", features = ["archive"] },
{ label = "blockpi", url = "https://polygon.blockpi.network/v1/rpc/public", features = [] }
]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prepare:optimism-tmp": "./bin/prepare.sh optimism-tmp",
"prepare:arbitrum-beta": "./bin/prepare.sh arbitrum-beta",
"prepare:moonbeam": "./bin/prepare.sh moonbeam",
"prepare:linea": "./bin/prepare.sh linea"
"prepare:linea": "./bin/prepare.sh linea",
"prepare:polygon": "./bin/prepare.sh polygon"
},
"main": "./bin/index.js",
"bin": {
Expand Down

0 comments on commit 0abfc69

Please sign in to comment.