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

Sepolia update offchain config #5727

Merged
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
6 changes: 3 additions & 3 deletions ops/testnet/prod/backend/config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ locals {
"1735356532" = {
providers = ["https://goerli.optimism.io/"]
}
"1735353714" = {
providers = ["https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"]
"1936027759" = {
providers = ["https://endpoints.omniatech.io/v1/eth/sepolia/public"]
}
"9991" = {
providers = ["https://rpc.ankr.com/polygon_mumbai"]
Expand Down Expand Up @@ -71,7 +71,7 @@ locals {
logLevel = "debug"
chains = {
"1735356532" = { confirmations = 1 }
"1735353714" = { confirmations = 10 }
"1936027759" = { confirmations = 10 }
"9991" = { confirmations = 200 }
"1650553703" = { confirmations = 10 }
"2016506996" = { confirmations = 10 }
Expand Down
26 changes: 13 additions & 13 deletions ops/testnet/prod/core/config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ locals {
"1735356532" = {
providers = ["https://lb.drpc.org/ogrpc?network=optimism-testnet&dkey=${var.drpc_key}", "https://optimism-goerli.blastapi.io/${var.blast_key}", "https://goerli.optimism.io"]
}
"1735353714" = {
"1936027759" = {
providers = ["https://lb.drpc.org/ogrpc?network=goerli&dkey=${var.drpc_key}", "https://eth-goerli.blastapi.io/${var.blast_key}", "https://rpc.ankr.com/eth_goerli"]
excludeListFromRelayerFee = ["0x79D5007F9782eE0407DB4C7a9fC6AE030586afac", "0xc8D125853346a389A8a68390dd23D719c08BF8F8"]
}
Expand Down Expand Up @@ -160,7 +160,7 @@ locals {
subscribe = true
},
{
name = "1735353714"
name = "1936027759"
limit = 1
queueLimit = 1000000
subscribe = true
Expand Down Expand Up @@ -209,8 +209,8 @@ locals {
},
{
exchange = "sequencerX"
target = "1735353714"
keys = ["1735353714"]
target = "1936027759"
keys = ["1936027759"]
},
{
exchange = "sequencerX"
Expand Down Expand Up @@ -267,8 +267,8 @@ locals {
"1735356532" = {
providers = ["https://lb.drpc.org/ogrpc?network=optimism-testnet&dkey=${var.drpc_key}", "https://optimism-goerli.blastapi.io/${var.blast_key}", "https://goerli.optimism.io"]
}
"1735353714" = {
providers = ["https://lb.drpc.org/ogrpc?network=goerli&dkey=${var.drpc_key}", "https://eth-goerli.blastapi.io/${var.blast_key}", "https://rpc.ankr.com/eth_goerli"]
"1936027759" = {
providers = ["https://endpoints.omniatech.io/v1/eth/sepolia/public"]
}
"9991" = {
providers = ["https://lb.drpc.org/ogrpc?network=polygon-mumbai&dkey=${var.drpc_key}", "https://rpc.ankr.com/polygon_mumbai", "https://polygon-testnet.blastapi.io/${var.blast_key}"]
Expand Down Expand Up @@ -301,8 +301,8 @@ locals {
"1735356532" = {
providers = ["https://lb.drpc.org/ogrpc?network=optimism-testnet&dkey=${var.drpc_key}", "https://opt-goerli.g.alchemy.com/v2/${var.optgoerli_alchemy_key_for_lh}"]
}
"1735353714" = {
providers = ["https://lb.drpc.org/ogrpc?network=goerli&dkey=${var.drpc_key}", "https://eth-goerli.g.alchemy.com/v2/${var.goerli_alchemy_key_0}"]
"1936027759" = {
providers = ["https://endpoints.omniatech.io/v1/eth/sepolia/public"]
}
"9991" = {
providers = ["https://lb.drpc.org/ogrpc?network=polygon-mumbai&dkey=${var.drpc_key}", "https://polygon-mumbai.g.alchemy.com/v2/${var.mumbai_alchemy_key_0}"]
Expand Down Expand Up @@ -347,18 +347,18 @@ locals {
propose = "https://betteruptime.com/api/v1/heartbeat/${var.lighthouse_propose_heartbeat}"
sendOutboundRoot = "https://betteruptime.com/api/v1/heartbeat/${var.lighthouse_send_outbound_root_heartbeat}"
}
hubDomain = "1735353714"
hubDomain = "1936027759"
proverBatchSize = {
# "1668247156" = 10,
"9991" = 10,
"1735353714" = 10,
"1936027759" = 10,
# "2053862260" = 10,
"1735356532" = 10,
"1650553703" = 10,
"2016506996" = 10
}
proverBatchWaitTime = {
"1735353714" = 3600,
"1936027759" = 3600,
"2016506996" = 3600,
}
messageQueue = {
Expand Down Expand Up @@ -390,8 +390,8 @@ locals {
"1735356532" = {
providers = ["https://lb.drpc.org/ogrpc?network=optimism-testnet&dkey=${var.drpc_key}", "https://optimism-goerli.blastapi.io/${var.blast_key}", "https://goerli.optimism.io"]
}
"1735353714" = {
providers = ["https://lb.drpc.org/ogrpc?network=goerli&dkey=${var.drpc_key}", "https://eth-goerli.blastapi.io/${var.blast_key}", "https://rpc.ankr.com/eth_goerli"]
"1936027759" = {
providers = ["https://endpoints.omniatech.io/v1/eth/sepolia/public"]
}
"9991" = {
providers = ["https://lb.drpc.org/ogrpc?network=polygon-mumbai&dkey=${var.drpc_key}", "https://rpc.ankr.com/polygon_mumbai", "https://polygon-testnet.blastapi.io/${var.blast_key}"]
Expand Down
8 changes: 4 additions & 4 deletions packages/adapters/subgraph/test/live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ export const livetest = async () => {
const chainData = await getChainData();

const reader = await SubgraphReader.create(chainData, "production");
const hubDomain = "1735353714"; // 9991 => mumbai, 1735356532 => optimism-goerli
const hubDomain = "1936027759"; // 9991 => mumbai, 1735356532 => optimism-goerli

const res = await reader.getLatestBlockNumber(["9991", "1735353714", "1735356532"]);
const res = await reader.getLatestBlockNumber(["9991", "1936027759", "1735356532"]);
console.log("> latest blocknumber: ");
console.log(res);

const rootMessageSents = await reader.getSentRootMessagesByDomain([
{ domain: "1735353714", offset: 0, limit: 10 },
{ domain: "1936027759", offset: 0, limit: 10 },
{ domain: "9991", offset: 0, limit: 10 },
{ domain: "1735356532", offset: 0, limit: 10 },
]);
console.log("> rootMessageSents: ");
console.log(rootMessageSents);

const rootMessages = await reader.getProcessedRootMessagesByDomain([
{ domain: "1735353714", offset: 0, limit: 10 },
{ domain: "1936027759", offset: 0, limit: 10 },
{ domain: "9991", offset: 0, limit: 10 },
{ domain: "1735356532", offset: 0, limit: 10 },
]);
Expand Down
6 changes: 3 additions & 3 deletions packages/adapters/subgraph/test/live_router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ export const livetest = async () => {
const chainData = await getChainData();

const reader = await SubgraphReader.create(chainData, "production");
const hubDomain = "1735353714"; // 9991 => mumbai, 1735356532 => optimism-goerli
const hubDomain = "1936027759"; // 9991 => mumbai, 1735356532 => optimism-goerli

const res = await reader.getLatestBlockNumber(["9991", "1735353714", "1735356532"]);
const res = await reader.getLatestBlockNumber(["9991", "1936027759", "1735356532"]);
console.log("> latest blocknumber: ");
console.log(res);

const queryParams = [
{ domain: "1735353714", offset: 0, limit: 10 },
{ domain: "1936027759", offset: 0, limit: 10 },
{ domain: "9991", offset: 0, limit: 10 },
{ domain: "1735356532", offset: 0, limit: 10 },
];
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/cartographer/poller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"logLevel": "debug",
"chains": {
"1735353714": {},
"1936027759": {},
"1735356532": {},
"1734439522": {}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/cartographer/poller/config.json.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"logLevel": "debug",
"chains": {
"1735353714": {},
"1936027759": {},
"1735356532": {},
"1734439522": {}
},
Expand Down
6 changes: 3 additions & 3 deletions packages/agents/lighthouse/config.json.example
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"logLevel": "debug",
"hubDomain": "1735353714",
"hubDomain": "1936027759",
"chains": {
"1735356532": {
"providers": ["https://goerli.optimism.io"]
},
"1735353714": {
"providers": ["https://rpc.ankr.com/eth_goerli"]
"1936027759": {
"providers": ["https://endpoints.omniatech.io/v1/eth/sepolia/public"]
},
"9991": {
"providers": ["https://rpc.ankr.com/polygon_mumbai"]
Expand Down
4 changes: 2 additions & 2 deletions packages/agents/lighthouse/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export type NxtpLighthouseConfig = Static<typeof NxtpLighthouseConfigSchema>;
export const SPOKE_CONNECTOR_PREFIXES: Record<string, string> = {
// TESTNET
"1735356532": "Optimism",
"1735353714": "Mainnet",
"1936027759": "Mainnet",
"9991": "Polygon",
"1734439522": "Arbitrum",
"2053862260": "ZkSync",
Expand Down Expand Up @@ -185,7 +185,7 @@ export const getEnvConfig = (
}

const nxtpConfig: NxtpLighthouseConfig = {
hubDomain: process.env.HUB_DOMAIN || configJson.hubDomain || configFile.hubDomain || "1735353714",
hubDomain: process.env.HUB_DOMAIN || configJson.hubDomain || configFile.hubDomain || "1936027759",
chains: process.env.NXTP_CHAIN_CONFIG
? JSON.parse(process.env.NXTP_CHAIN_CONFIG)
: configJson.chains
Expand Down
4 changes: 3 additions & 1 deletion packages/agents/sdk-wrapper/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export const XERC20REGISTRY_DOMAIN_ADDRESS: Record<string, string> = {
"6778479": "0x2056c11b071ae4cdd55007136c2493f3d4c1b678",
"1818848877": "0x11984dc4465481512eb5b777e44061c158cf2259",
"1735353714": "0x8aB29a37E7780F6230B4D951fcd69CA8f1014c55",
"1936027759": "",
"1735356532": "0xaB591adE0D0e08F117086c2b3159e50e2746AcA6",
"9991": "0xE4e98Bd63F134FFf3DD54BF29cCa024538D836f5",
};
Expand All @@ -216,6 +217,7 @@ export const LOCKBOX_ADAPTER_DOMAIN_ADDRESS: Record<string, string> = {
"6778479": "0x3Cb55bFBB1f4973FCb9705Bab4aBb7E72BF85eAF",
"1818848877": "0x4895aa5d666c81a04ebcc7a9aa47f249b1c46aa6",
"1735353714": "0x8528d3B173a149CB0eae5e2d7335123bcF888c9f",
"1936027759": "",
"1735356532": "0x55fc076b9b0618a657f8986c83a97bd06e8a80f2",
"9991": "0xec531b272fa2b82efe49ef6d830c2d848753642a",
};
};
2 changes: 2 additions & 0 deletions packages/agents/sdk/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export const XERC20REGISTRY_DOMAIN_ADDRESS: Record<string, string> = {
"6778479": "0x2056c11b071ae4cdd55007136c2493f3d4c1b678",
"1818848877": "0x11984dc4465481512eb5b777e44061c158cf2259",
"1735353714": "0x8aB29a37E7780F6230B4D951fcd69CA8f1014c55",
"1936027759": "",
"1735356532": "0xaB591adE0D0e08F117086c2b3159e50e2746AcA6",
"9991": "0xE4e98Bd63F134FFf3DD54BF29cCa024538D836f5",
};
Expand All @@ -218,6 +219,7 @@ export const LOCKBOX_ADAPTER_DOMAIN_ADDRESS: Record<string, string> = {
"6778479": "0x3Cb55bFBB1f4973FCb9705Bab4aBb7E72BF85eAF",
"1818848877": "0x4895aa5d666c81a04ebcc7a9aa47f249b1c46aa6",
"1735353714": "0x8528d3B173a149CB0eae5e2d7335123bcF888c9f",
"1936027759": "",
"1735356532": "0x55fc076b9b0618a657f8986c83a97bd06e8a80f2",
"9991": "0xec531b272fa2b82efe49ef6d830c2d848753642a",
};
8 changes: 4 additions & 4 deletions packages/agents/sequencer/config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"1735356532": {
"providers": ["https://goerli.optimism.io"]
},
"1735353714": {
"1936027759": {
"providers": ["https://rpc.ankr.com/eth_goerli"]
},
"9991": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"subscribe": true
},
{
"name": "1735353714",
"name": "1936027759",
"limit": 1,
"queueLimit": 100000,
"subscribe": true
Expand All @@ -67,8 +67,8 @@
},
{
"exchange": "sequencerX",
"target": "1735353714",
"keys": ["1735353714"]
"target": "1936027759",
"keys": ["1936027759"]
},
{
"exchange": "sequencerX",
Expand Down
8 changes: 4 additions & 4 deletions packages/deployments/contracts/init.json.example
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"hub": "1735353714",
"supportedDomains": ["1735353714", "1734439522"],
"hub": "1936027759",
"supportedDomains": ["1936027759", "1734439522"],
"environment": "production",
"assets": [
{
"name": "TEST",
"canonical": {
"domain": "1735353714",
"domain": "1936027759",
"address": "0x7ea6eA49B0b0Ae9c5db7907d139D9Cd3439862a1"
},
"representations": {
Expand All @@ -23,7 +23,7 @@
{
"name": "WETH",
"canonical": {
"domain": "1735353714",
"domain": "1936027759",
"address": "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"
},
"representations": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const SUPPORTED_DOMAINS = {
],
testnet: [
1735353714, // goerli
1936027759, // sepolia
1735356532, // optimism goerli
9991, // mumbai
1734439522, // arbitrum-goerli
Expand All @@ -26,5 +27,5 @@ export const SUPPORTED_DOMAINS = {

export const HUBS = {
mainnet: 6648936, // mainnet
testnet: 1735353714, // goerli
testnet: 1936027759, // sepolia
};
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const PROTOCOL_ADMINS: AddressBook = {
},
testnet: {
1735353714: "0xa2Ee8DCd2A8A3A54Cf37F6590E5108BbE502B006", // goerli
1936027759: "0xa2Ee8DCd2A8A3A54Cf37F6590E5108BbE502B006", // sepolia
1735356532: "0xa2Ee8DCd2A8A3A54Cf37F6590E5108BbE502B006", // optimism goerli
9991: "0xa2Ee8DCd2A8A3A54Cf37F6590E5108BbE502B006", // mumbai
1734439522: "0xa2Ee8DCd2A8A3A54Cf37F6590E5108BbE502B006", // arbitrum-goerli
Expand All @@ -43,6 +44,7 @@ export const DAO_CONTRACTS: AddressBook = {
},
testnet: {
1735353714: "0xC4E604b3F1Ab77bc8bF62989ccC0670bc575C124", // goerli
1936027759: "0xC4E604b3F1Ab77bc8bF62989ccC0670bc575C124", // sepolia
1735356532: "0x52F3ca3554336d9B36c74DF8F4C0887b00C3498E", // optimism goerli
9991: "0x52F3ca3554336d9B36c74DF8F4C0887b00C3498E", // mumbai
1734439522: "0xa2Ee8DCd2A8A3A54Cf37F6590E5108BbE502B006", // arbitrum-goerli
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/sdk-server/config.json.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chains": {
"1735353714": {
"1936027759": {
"providers": ["https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"]
},
"1735356532": {
Expand Down
Loading