From 4e1e4958bd2208f54128ce731096e625c213a152 Mon Sep 17 00:00:00 2001 From: Coleman Irby Date: Sat, 21 Feb 2026 13:35:43 -0600 Subject: [PATCH] missed filling in zero address for Validation registry of Arbitrum One --- config/networks/arbitrum-one.json | 17 ++++++++++++ config/networks/arbitrum-sepolia.json | 17 ++++++++++++ deployments/deployment.json | 22 +++++++++++++++ src/contract-addresses.ts | 40 +++++++++++++++++++++------ src/utils/chain.ts | 4 ++- 5 files changed, 90 insertions(+), 10 deletions(-) create mode 100644 config/networks/arbitrum-one.json create mode 100644 config/networks/arbitrum-sepolia.json diff --git a/config/networks/arbitrum-one.json b/config/networks/arbitrum-one.json new file mode 100644 index 0000000..7d962fd --- /dev/null +++ b/config/networks/arbitrum-one.json @@ -0,0 +1,17 @@ +{ + "network": "arbitrum-one", + "chainId": "42161", + "displayName": "Arbitrum One", + "identityRegistry": { + "address": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432", + "startBlock": 428895443 + }, + "reputationRegistry": { + "address": "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63", + "startBlock": 428895443 + }, + "validationRegistry": {}, + "graphNode": { + "network": "arbitrum-one" + } +} \ No newline at end of file diff --git a/config/networks/arbitrum-sepolia.json b/config/networks/arbitrum-sepolia.json new file mode 100644 index 0000000..711478a --- /dev/null +++ b/config/networks/arbitrum-sepolia.json @@ -0,0 +1,17 @@ +{ + "network": "arbitrum-sepolia", + "chainId": "421614", + "displayName": "Arbitrum Sepolia", + "identityRegistry": { + "address": "0x8004A818BFB912233c491871b3d84c89A494BD9e", + "startBlock": 239945838 + }, + "reputationRegistry": { + "address": "0x8004B663056A597Dffe9eCcC1965A193B7388713", + "startBlock": 239945838 + }, + "validationRegistry": {}, + "graphNode": { + "network": "arbitrum-sepolia" + } +} \ No newline at end of file diff --git a/deployments/deployment.json b/deployments/deployment.json index 712cedc..fea7e7d 100644 --- a/deployments/deployment.json +++ b/deployments/deployment.json @@ -102,6 +102,28 @@ "schema": "1.0.0", "subgraph": "1.0.0" } + }, + "erc-8004-arbitrum-sepolia": { + "network": "arbitrum-sepolia", + "displayName": "Arbitrum Sepolia", + "chainId": "421614", + "status": "prod", + "configFile": "config/networks/arbitrum-sepolia.json", + "versions": { + "schema": "1.0.0", + "subgraph": "1.0.0" + } + }, + "erc-8004-arbitrum-one": { + "network": "arbitrum-one", + "displayName": "Arbitrum One", + "chainId": "42161", + "status": "prod", + "configFile": "config/networks/arbitrum-one.json", + "versions": { + "schema": "1.0.0", + "subgraph": "1.0.0" + } } } } diff --git a/src/contract-addresses.ts b/src/contract-addresses.ts index 1f2a98f..b431eac 100644 --- a/src/contract-addresses.ts +++ b/src/contract-addresses.ts @@ -99,6 +99,24 @@ export function getContractAddresses(chainId: BigInt): ContractAddresses { Bytes.fromHexString("0x34ae1196b1609e01ebc90b75c802b2ea87203f13") ) } + // Arbitrum Sepolia Testnet (421614) + else if (chainId.equals(BigInt.fromString("421614"))) { + return new ContractAddresses( + Bytes.fromHexString("0x8004A818BFB912233c491871b3d84c89A494BD9e"), + Bytes.fromHexString("0x8004B663056A597Dffe9eCcC1965A193B7388713"), + // Validation registry not configured / indexing paused + Bytes.fromHexString("0x0000000000000000000000000000000000000000") + ) + } + // Arbitrum One (Mainnet) (42161) + else if (chainId.equals(BigInt.fromString("42161"))) { + return new ContractAddresses( + Bytes.fromHexString("0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"), + Bytes.fromHexString("0x8004BAa17C55a88189AE136b182e5fdA19dE9b63"), + // Validation registry not configured / indexing paused + Bytes.fromHexString("0x0000000000000000000000000000000000000000") + ) + } // Unsupported chain - return zero addresses return new ContractAddresses( @@ -122,6 +140,8 @@ export function getChainName(chainId: BigInt): string { if (chainId.equals(BigInt.fromI32(296))) return "Hedera Testnet" if (chainId.equals(BigInt.fromI32(998))) return "HyperEVM Testnet" if (chainId.equals(BigInt.fromString("1351057110"))) return "SKALE Base Sepolia Testnet" + if (chainId.equals(BigInt.fromI32(421614))) return "Arbitrum Sepolia" + if (chainId.equals(BigInt.fromI32(42161))) return "Arbitrum One" return `Unsupported Chain ${chainId.toString()}` } @@ -150,14 +170,16 @@ export function isSupportedChain(chainId: BigInt): boolean { export function getSupportedChains(): BigInt[] { return [ - BigInt.fromI32(1), // Ethereum Mainnet - BigInt.fromI32(137), // Polygon Mainnet - BigInt.fromI32(11155111), // Ethereum Sepolia - BigInt.fromI32(84532), // Base Sepolia - BigInt.fromI32(59141), // Linea Sepolia - BigInt.fromI32(80002), // Polygon Amoy - BigInt.fromI32(296), // Hedera Testnet - BigInt.fromI32(998), // HyperEVM Testnet - BigInt.fromString("1351057110") // SKALE Base Sepolia Testnet + BigInt.fromI32(1), // Ethereum Mainnet + BigInt.fromI32(137), // Polygon Mainnet + BigInt.fromI32(11155111), // Ethereum Sepolia + BigInt.fromI32(84532), // Base Sepolia + BigInt.fromI32(59141), // Linea Sepolia + BigInt.fromI32(80002), // Polygon Amoy + BigInt.fromI32(296), // Hedera Testnet + BigInt.fromI32(998), // HyperEVM Testnet + BigInt.fromString("1351057110"), // SKALE Base Sepolia Testnet + BigInt.fromI32(421614), // Arbitrum Sepolia + BigInt.fromI32(42161) // Arbitrum One (Mainnet) ] } diff --git a/src/utils/chain.ts b/src/utils/chain.ts index 78a4b88..bdc34a3 100644 --- a/src/utils/chain.ts +++ b/src/utils/chain.ts @@ -26,6 +26,8 @@ export function getChainId(): i32 { return 998 // HyperEVM Testnet } else if (network == "skale-base-sepolia-testnet") { return 1351057110 // SKALE Base Sepolia Testnet + } else if (network == "arbitrum-sepolia") { + return 421614 // Arbitrum Sepolia Testnet } // Mainnets (for future use) else if (network == "mainnet") { @@ -37,7 +39,7 @@ export function getChainId(): i32 { } else if (network == "polygon" || network == "matic") { return 137 } else if (network == "arbitrum-one") { - return 42161 + return 42161 // Arbitrum One (Mainnet) } else if (network == "optimism") { return 10 } else if (network == "bsc") {