diff --git a/packages/common/src/HardhatConfig.ts b/packages/common/src/HardhatConfig.ts index 05724ad829..e6eb0a57e3 100644 --- a/packages/common/src/HardhatConfig.ts +++ b/packages/common/src/HardhatConfig.ts @@ -192,6 +192,11 @@ export function getHardhatConfig( url: getNodeUrl("illiad", true, 1513), accounts: { mnemonic }, }, + odyssey: { + chainId: 1516, + url: getNodeUrl("odyssey", true, 1516), + accounts: { mnemonic }, + }, sx: { chainId: 416, url: getNodeUrl("sx", true, 416), @@ -321,10 +326,18 @@ export function getHardhatConfig( network: "illiad", chainId: 1513, urls: { - apiURL: "https://testnet.storyscan.xyz/", + apiURL: "https://testnet.storyscan.xyz/api", browserURL: "https://testnet.storyscan.xyz/", }, }, + { + network: "odyssey", + chainId: 1516, + urls: { + apiURL: "https://odyssey-testnet-explorer.storyscan.xyz/api", + browserURL: "https://odyssey-testnet-explorer.storyscan.xyz", + }, + }, ], }, namedAccounts: { deployer: 0 }, diff --git a/packages/common/src/ProviderUtils.ts b/packages/common/src/ProviderUtils.ts index d2251c49ba..07dca5974b 100644 --- a/packages/common/src/ProviderUtils.ts +++ b/packages/common/src/ProviderUtils.ts @@ -56,6 +56,7 @@ export function getNodeUrl(networkName: string, useHttps = false, chainId: numbe if (name === "base") return overrideUrl || "https://mainnet.base.org"; if (name === "blast") return overrideUrl || "https://rpc.blast.io/"; if (name === "illiad") return overrideUrl || "https://testnet.storyrpc.io/"; + if (name === "odyssey") return overrideUrl || "https://odyssey-testnet-explorer.storyscan.xyz"; return ( overrideUrl || (useHttps ? `https://${name}.infura.io/v3/${infuraApiKey}` : `wss://${name}.infura.io/ws/v3/${infuraApiKey}`) diff --git a/packages/common/src/PublicNetworks.ts b/packages/common/src/PublicNetworks.ts index 281ed80580..1f51f1979d 100644 --- a/packages/common/src/PublicNetworks.ts +++ b/packages/common/src/PublicNetworks.ts @@ -79,6 +79,7 @@ export const PublicNetworks: PublicNetworksType = { 1115: { name: "core-testnet", nativeToken: "tCORE", etherscan: "https://scan.test.btcs.network/" }, 1116: { name: "core", nativeToken: "CORE", etherscan: "https://scan.coredao.org/" }, 1513: { name: "illiad", nativeToken: "IP", etherscan: "https://testnet.storyscan.xyz/" }, + 1516: { name: "odyssey", nativeToken: "IP", etherscan: "https://odyssey-testnet-explorer.storyscan.xyz" }, 9001: { name: "evmos", nativeToken: "EVMOS", etherscan: "https://evm.evmos.org" }, 80001: { name: "polygon-mumbai", diff --git a/packages/core/networks/1516.json b/packages/core/networks/1516.json new file mode 100644 index 0000000000..6172479416 --- /dev/null +++ b/packages/core/networks/1516.json @@ -0,0 +1,30 @@ +[ + { + "contractName": "Finder", + "address": "0x28077B47Cd03326De7838926A63699849DD4fa87" + }, + { + "contractName": "AddressWhitelist", + "address": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64" + }, + { + "contractName": "IdentifierWhitelist", + "address": "0x7E63A5f1a8F0B4d0934B2f2327DAED3F6bb2ee75" + }, + { + "contractName": "MockOracleAncillary", + "address": "0x3baD7AD0728f9917d1Bf08af5782dCbD516cDd96" + }, + { + "contractName": "Store", + "address": "0xeF684C38F94F48775959ECf2012D7E864ffb9dd4" + }, + { + "contractName": "TestnetERC20", + "address": "0x38fAc33bD20D4c4Cce085C0f347153C06CbA2968" + }, + { + "contractName": "OptimisticOracleV3", + "address": "0x3CA11702f7c0F28e0b4e03C31F7492969862C569" + } +]