From 5469e5caf5f821ebf438135d44c1e16922ba01a0 Mon Sep 17 00:00:00 2001 From: Jonathan Smirnoff Date: Mon, 26 Aug 2024 10:17:01 -0300 Subject: [PATCH 1/2] feat: add rootstock testnet --- .env.example | 1 + Dockerfile | 1 + README.md | 1 + utils.ts | 11 +++++++++++ 4 files changed, 14 insertions(+) diff --git a/.env.example b/.env.example index 52a617f..26efa25 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,7 @@ INFURA_IPFS_PASS= ALCHEMY_ARBITRUM_API_KEY= ALCHEMY_SEPOLIA_API_KEY= ALCHEMY_OPTIMISM_GOERLI_API_KEY= +ROOTSTOCK_TESTNET_API_KEY= #POLLING_INTERVAL=60000 #DISABLE_LISTENER=true #REQUEST_DELAY=500 # How many ms to wait before making a request to RPC (useful for free plans) diff --git a/Dockerfile b/Dockerfile index d491a8e..68697ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ ENV INFURA_API_KEY=${INFURA_API_KEY} ENV ALCHEMY_ARBITRUM_API_KEY=${ALCHEMY_ARBITRUM_API_KEY} ENV ALCHEMY_SEPOLIA_API_KEY=${ALCHEMY_SEPOLIA_API_KEY} ENV ALCHEMY_OPTIMISM_GOERLI_API_KEY=${ALCHEMY_OPTIMISM_GOERLI_API_KEY} +ENV ROOTSTOCK_TESTNET_API_KEY=${ROOTSTOCK_TESTNET_API_KEY} ENV CHAIN_ID=${CHAIN_ID} COPY . . diff --git a/README.md b/README.md index 9a692e6..530a8b3 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ INFURA_IPFS_PASS= ALCHEMY_ARBITRUM_API_KEY= ALCHEMY_SEPOLIA_API_KEY= ALCHEMY_OPTIMISM_GOERLI_API_KEY= +ROOTSTOCK_TESTNET_API_KEY= #POLLING_INTERVAL=60000 #DISABLE_LISTENER=true #REQUEST_DELAY=500 # How many ms to wait before making a request to RPC (useful for free plans) diff --git a/utils.ts b/utils.ts index 9515770..bf8592d 100644 --- a/utils.ts +++ b/utils.ts @@ -224,6 +224,17 @@ export const EAS_CHAIN_CONFIGS: EASChainConfig[] = [ etherscanURL: "https://explorer.zksync.io", rpcProvider: `https://mainnet.era.zksync.io`, }, + { + chainId: 31, + chainName: "rootstock-testnet", + subdomain: "rootstock-testnet.", + version: "1.3.0", + contractAddress: "0xc300aeEaDd60999933468738c9F5D7e9C0671e1c", + schemaRegistryAddress: "0x679c62956cD2801AbAbF80e9D430f18859Eea2d5", + contractStartBlock: 5457123, + etherscanURL: "https://rootstock-testnet.blockscout.com/", + rpcProvider: `https://rpc.testnet.rootstock.io/${process.env.ROOTSTOCK_TESTNET_API_KEY}`, + }, ]; const activeChainConfig = EAS_CHAIN_CONFIGS.find( From 8c3738e7579ad018792bb373c2bda2a272d8fd05 Mon Sep 17 00:00:00 2001 From: Jonathan Smirnoff Date: Mon, 26 Aug 2024 12:34:39 -0300 Subject: [PATCH 2/2] feat: add rootstock mainnet --- .env.example | 1 + Dockerfile | 1 + README.md | 1 + utils.ts | 11 +++++++++++ 4 files changed, 14 insertions(+) diff --git a/.env.example b/.env.example index 26efa25..30acfe0 100644 --- a/.env.example +++ b/.env.example @@ -6,6 +6,7 @@ ALCHEMY_ARBITRUM_API_KEY= ALCHEMY_SEPOLIA_API_KEY= ALCHEMY_OPTIMISM_GOERLI_API_KEY= ROOTSTOCK_TESTNET_API_KEY= +ROOTSTOCK_API_KEY= #POLLING_INTERVAL=60000 #DISABLE_LISTENER=true #REQUEST_DELAY=500 # How many ms to wait before making a request to RPC (useful for free plans) diff --git a/Dockerfile b/Dockerfile index 68697ff..67eba15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ ENV ALCHEMY_ARBITRUM_API_KEY=${ALCHEMY_ARBITRUM_API_KEY} ENV ALCHEMY_SEPOLIA_API_KEY=${ALCHEMY_SEPOLIA_API_KEY} ENV ALCHEMY_OPTIMISM_GOERLI_API_KEY=${ALCHEMY_OPTIMISM_GOERLI_API_KEY} ENV ROOTSTOCK_TESTNET_API_KEY=${ROOTSTOCK_TESTNET_API_KEY} +ENV ROOTSTOCK_API_KEY=${ROOTSTOCK_API_KEY} ENV CHAIN_ID=${CHAIN_ID} COPY . . diff --git a/README.md b/README.md index 530a8b3..03a0d20 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ ALCHEMY_ARBITRUM_API_KEY= ALCHEMY_SEPOLIA_API_KEY= ALCHEMY_OPTIMISM_GOERLI_API_KEY= ROOTSTOCK_TESTNET_API_KEY= +ROOTSTOCK_API_KEY= #POLLING_INTERVAL=60000 #DISABLE_LISTENER=true #REQUEST_DELAY=500 # How many ms to wait before making a request to RPC (useful for free plans) diff --git a/utils.ts b/utils.ts index bf8592d..24749af 100644 --- a/utils.ts +++ b/utils.ts @@ -235,6 +235,17 @@ export const EAS_CHAIN_CONFIGS: EASChainConfig[] = [ etherscanURL: "https://rootstock-testnet.blockscout.com/", rpcProvider: `https://rpc.testnet.rootstock.io/${process.env.ROOTSTOCK_TESTNET_API_KEY}`, }, + { + chainId: 30, + chainName: "rootstock", + subdomain: "rootstock.", + version: "1.3.0", + contractAddress: "0x54C0726E9d2D57Bc37AD52c7E219A3229e0eE963", + schemaRegistryAddress: "0xeF29675d82CC5967069d6d9C17F2719f67728F5B", + contractStartBlock: 6635587, + etherscanURL: "https://rootstock.blockscout.com/", + rpcProvider: `https://rpc.mainnet.rootstock.io/${process.env.ROOTSTOCK_API_KEY}`, + }, ]; const activeChainConfig = EAS_CHAIN_CONFIGS.find(