Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Rootstock chain #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
22 changes: 22 additions & 0 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down