From 9c73f0abceb054e566d500926d8de33e19f070e9 Mon Sep 17 00:00:00 2001 From: Juan Manuel Rodriguez Defago Date: Fri, 2 Jun 2023 11:10:42 -0300 Subject: [PATCH] feat: updated EBO keys with latest rotation (#241) --- .../{staging-l2.json => arbitrum-goerli.json} | 12 ++++++++++++ .../config/{prod-l2.json => arbitrum.json} | 9 +++++++++ .../config/{staging.json => goerli.json} | 12 ++++++++++++ .../subgraph/config/{prod.json => mainnet.json} | 9 +++++++++ packages/subgraph/package.json | 16 ++++++++-------- 5 files changed, 50 insertions(+), 8 deletions(-) rename packages/subgraph/config/{staging-l2.json => arbitrum-goerli.json} (74%) rename packages/subgraph/config/{prod-l2.json => arbitrum.json} (76%) rename packages/subgraph/config/{staging.json => goerli.json} (69%) rename packages/subgraph/config/{prod.json => mainnet.json} (77%) diff --git a/packages/subgraph/config/staging-l2.json b/packages/subgraph/config/arbitrum-goerli.json similarity index 74% rename from packages/subgraph/config/staging-l2.json rename to packages/subgraph/config/arbitrum-goerli.json index 087f561d..25f84e0b 100644 --- a/packages/subgraph/config/staging-l2.json +++ b/packages/subgraph/config/arbitrum-goerli.json @@ -23,6 +23,18 @@ { "entry": "RegisterNetworksMessage" }, { "entry": "ChangePermissionsMessage", "lastEntry": true } ], + "validThrough": "23200000" + }, + { + "address": "0x1e7f07543b873f4c43c03e44b6ded4674079fecb", + "permissions": [ + { "entry": "SetBlockNumbersForEpochMessage" }, + { "entry": "CorrectEpochsMessage" }, + { "entry": "ResetStateMessage" }, + { "entry": "UpdateVersionsMessage" }, + { "entry": "RegisterNetworksMessage" }, + { "entry": "ChangePermissionsMessage", "lastEntry": true } + ], "validThrough": "0" }, { diff --git a/packages/subgraph/config/prod-l2.json b/packages/subgraph/config/arbitrum.json similarity index 76% rename from packages/subgraph/config/prod-l2.json rename to packages/subgraph/config/arbitrum.json index a1bf4f8b..0bcddd4b 100644 --- a/packages/subgraph/config/prod-l2.json +++ b/packages/subgraph/config/arbitrum.json @@ -17,6 +17,15 @@ { "entry": "CorrectEpochsMessage" }, { "entry": "ResetStateMessage", "lastEntry": true } ], + "validThrough": "97000000" + }, + { + "address": "0x5f49491e965895ded343af13389ee45ef60ed793", + "permissions": [ + { "entry": "SetBlockNumbersForEpochMessage" }, + { "entry": "CorrectEpochsMessage" }, + { "entry": "ResetStateMessage", "lastEntry": true } + ], "validThrough": "0" }, { diff --git a/packages/subgraph/config/staging.json b/packages/subgraph/config/goerli.json similarity index 69% rename from packages/subgraph/config/staging.json rename to packages/subgraph/config/goerli.json index d68e7e26..e249f4ee 100644 --- a/packages/subgraph/config/staging.json +++ b/packages/subgraph/config/goerli.json @@ -23,6 +23,18 @@ { "entry": "ChangePermissionsMessage" }, { "entry": "ResetStateMessage", "lastEntry": true } ], + "validThrough": "9092502" + }, + { + "address": "0x9aea497c4018029c3391eb85b8bf25b93f7815a6", + "permissions": [ + { "entry": "SetBlockNumbersForEpochMessage" }, + { "entry": "CorrectEpochsMessage" }, + { "entry": "UpdateVersionsMessage" }, + { "entry": "RegisterNetworksMessage" }, + { "entry": "ChangePermissionsMessage" }, + { "entry": "ResetStateMessage", "lastEntry": true } + ], "validThrough": "0" } ], diff --git a/packages/subgraph/config/prod.json b/packages/subgraph/config/mainnet.json similarity index 77% rename from packages/subgraph/config/prod.json rename to packages/subgraph/config/mainnet.json index 13367cdb..73e148cc 100644 --- a/packages/subgraph/config/prod.json +++ b/packages/subgraph/config/mainnet.json @@ -17,6 +17,15 @@ { "entry": "CorrectEpochsMessage" }, { "entry": "ResetStateMessage", "lastEntry": true } ], + "validThrough": "17372000" + }, + { + "address": "0x080a2def232eee37f49f45d68a81e8eea14c2e05", + "permissions": [ + { "entry": "SetBlockNumbersForEpochMessage" }, + { "entry": "CorrectEpochsMessage" }, + { "entry": "ResetStateMessage", "lastEntry": true } + ], "validThrough": "0" }, { diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index 778a325e..aaf6d640 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -6,19 +6,19 @@ "codegen": "yarn && graph codegen", "test": "yarn && yarn prep:test && yarn codegen && graph test", "build": "yarn && yarn prepare && graph build", - "deploy": "yarn && yarn prep:prod && yarn codegen && graph build --network mainnet && graph deploy --node https://api.thegraph.com/deploy/ graphprotocol/mainnet-epoch-block-oracle", - "deploy-l2": "yarn && yarn prep:prod-l2 && yarn codegen && graph build --network arbitrum-one && graph deploy --node https://api.thegraph.com/deploy/ graphprotocol/arbitrum-epoch-block-oracle", - "deploy-staging": "yarn && yarn prep:staging && yarn codegen && graph build --network goerli && graph deploy --node https://api.thegraph.com/deploy/ graphprotocol/goerli-epoch-block-oracle", - "deploy-staging-l2": "yarn && yarn prep:staging-l2 && yarn codegen && graph build --network arbitrum-goerli && graph deploy --node https://api.thegraph.com/deploy/ graphprotocol/arb-goerli-epoch-block-oracle", + "deploy-mainnet": "yarn && yarn prep:mainnet && yarn codegen && graph build --network mainnet && graph deploy --node https://api.thegraph.com/deploy/ graphprotocol/mainnet-epoch-block-oracle", + "deploy-arbitrum": "yarn && yarn prep:arbitrum && yarn codegen && graph build --network arbitrum-one && graph deploy --node https://api.thegraph.com/deploy/ graphprotocol/arbitrum-epoch-block-oracle", + "deploy-goerli": "yarn && yarn prep:goerli && yarn codegen && graph build --network goerli && graph deploy --node https://api.thegraph.com/deploy/ graphprotocol/goerli-epoch-block-oracle", + "deploy-arbitrum-goerli": "yarn && yarn prep:arbitrum-goerli && yarn codegen && graph build --network arbitrum-goerli && graph deploy --node https://api.thegraph.com/deploy/ graphprotocol/arb-goerli-epoch-block-oracle", "create-local": "graph create --node http://127.0.0.1:8020/ edgeandnode/block-oracle", "remove-local": "graph remove --node http://127.0.0.1:8020/ edgeandnode/block-oracle", "deploy-local": "yarn codegen && graph deploy --node http://127.0.0.1:8020/ --ipfs http://localhost:${IPFS_PORT} edgeandnode/block-oracle --version-label 0.1.0", "prep:local": "mustache ./config/local.json subgraph.template.yaml > subgraph.yaml && mustache ./config/local.json src/constants.template.ts > src/constants.ts", "prep:test": "mustache ./config/test.json subgraph.template.yaml > subgraph.yaml && mustache ./config/test.json src/constants.template.ts > src/constants.ts", - "prep:prod": "mustache ./config/prod.json subgraph.template.yaml > subgraph.yaml && mustache ./config/prod.json src/constants.template.ts > src/constants.ts", - "prep:prod-l2": "mustache ./config/prod-l2.json subgraph.template.yaml > subgraph.yaml && mustache ./config/prod-l2.json src/constants.template.ts > src/constants.ts", - "prep:staging": "mustache ./config/staging.json subgraph.template.yaml > subgraph.yaml && mustache ./config/staging.json src/constants.template.ts > src/constants.ts", - "prep:staging-l2": "mustache ./config/staging-l2.json subgraph.template.yaml > subgraph.yaml && mustache ./config/staging-l2.json src/constants.template.ts > src/constants.ts" + "prep:mainnet": "mustache ./config/mainnet.json subgraph.template.yaml > subgraph.yaml && mustache ./config/mainnet.json src/constants.template.ts > src/constants.ts", + "prep:arbitrum": "mustache ./config/arbitrum.json subgraph.template.yaml > subgraph.yaml && mustache ./config/arbitrum.json src/constants.template.ts > src/constants.ts", + "prep:goerli": "mustache ./config/goerli.json subgraph.template.yaml > subgraph.yaml && mustache ./config/goerli.json src/constants.template.ts > src/constants.ts", + "prep:arbitrum-goerli": "mustache ./config/arbitrum-goerli.json subgraph.template.yaml > subgraph.yaml && mustache ./config/arbitrum-goerli.json src/constants.template.ts > src/constants.ts" }, "devDependencies": { "@graphprotocol/graph-cli": "^0.37.6",