diff --git a/.env.example b/.env.example index 52a617f..30acfe0 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,8 @@ INFURA_IPFS_PASS= 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 d491a8e..67eba15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ 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 ROOTSTOCK_API_KEY=${ROOTSTOCK_API_KEY} ENV CHAIN_ID=${CHAIN_ID} COPY . . diff --git a/README.md b/README.md index 9a692e6..03a0d20 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ INFURA_IPFS_PASS= 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 0b23ad5..b5109af 100644 --- a/utils.ts +++ b/utils.ts @@ -238,6 +238,28 @@ 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}`, + }, + { + 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(