Skip to content

Commit

Permalink
fix: improve manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Mar 25, 2024
1 parent b90925f commit 3265778
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 56 deletions.
10 changes: 4 additions & 6 deletions packages/subgraph/manifest/data/arbitrum.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest",
"network": "arbitrum-one",
"PluginRepo": {
"address": "0x7553E6Fb020c5740768cF289e603770AA09b7aE2"
},
"dataSources": {
"PluginSetupProcessors": [
{
"name": "PluginSetupProcessor",
"address": "0x308a1DC5020c4B5d992F5543a7236c465997fecB",
"startBlock": 145462184
}
],
"Plugin": {
"name": "multisig.plugin.dao.eth",
"address": "0x7553E6Fb020c5740768cF289e603770AA09b7aE2",
"startBlock": 145462482
}
]
}
}
10 changes: 4 additions & 6 deletions packages/subgraph/manifest/data/arbitrumSepolia.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest",
"network": "arbitrum-sepolia",
"PluginRepo": {
"address": "0x9e7956C8758470dE159481e5DD0d08F8B59217A2"
},
"dataSources": {
"PluginSetupProcessors": [
{
"name": "PluginSetupProcessor",
"address": "0xC24188a73dc09aA7C721f96Ad8857B469C01dC9f",
"startBlock": 2827173
}
],
"Plugin": {
"name": "multisig.plugin.dao.eth",
"address": "0x9e7956C8758470dE159481e5DD0d08F8B59217A2",
"startBlock": 2827221
}
]
}
}
10 changes: 4 additions & 6 deletions packages/subgraph/manifest/data/baseMainnet.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest",
"network": "base",
"PluginRepo": {
"address": "0xcDC4b0BC63AEfFf3a7826A19D101406C6322A585"
},
"dataSources": {
"PluginSetupProcessors": [
{
"name": "PluginSetupProcessor",
"address": "0x91a851E9Ed7F2c6d41b15F76e4a88f5A37067cC9",
"startBlock": 2094737
}
],
"Plugin": {
"name": "multisig.plugin.dao.eth",
"address": "0xcDC4b0BC63AEfFf3a7826A19D101406C6322A585",
"startBlock": 2094807
}
]
}
}
10 changes: 4 additions & 6 deletions packages/subgraph/manifest/data/baseSepolia.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest",
"network": "base-sepolia",
"PluginRepo": {
"address": "0x9e7956C8758470dE159481e5DD0d08F8B59217A2"
},
"dataSources": {
"PluginSetupProcessors": [
{
"name": "PluginSetupProcessor",
"address": "0xC24188a73dc09aA7C721f96Ad8857B469C01dC9f",
"startBlock": 3654401
}
],
"Plugin": {
"name": "multisig.plugin.dao.eth",
"address": "0x9e7956C8758470dE159481e5DD0d08F8B59217A2",
"startBlock": 3654521
}
]
}
}
12 changes: 5 additions & 7 deletions packages/subgraph/manifest/data/localhost.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest",
"network": "rinkeby",
"network": "sepolia",
"PluginRepo": {
"address": null
},
"dataSources": {
"PluginSetupProcessors": [
{
"name": "PluginSetupProcessor",
"address": "0x2B8C4DD137104d1E869105cd0106e7D9EF955BfE",
"startBlock": 7727664
}
],
"Plugin": {
"name": "MyPlugin",
"address": null,
"startBlock": 7727664
}
]
}
}
10 changes: 4 additions & 6 deletions packages/subgraph/manifest/data/mainnet.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest",
"network": "mainnet",
"PluginRepo": {
"address": "0x8c278e37D0817210E18A7958524b7D0a1fAA6F7b"
},
"dataSources": {
"PluginSetupProcessors": [
{
"name": "PluginSetupProcessor",
"address": "0xE978942c691e43f65c1B7c7F8f1dc8cDF061B13f",
"startBlock": 16721812
}
],
"Plugin": {
"name": "multisig.plugin.dao.eth",
"address": "0x8c278e37D0817210E18A7958524b7D0a1fAA6F7b",
"startBlock": 16721881
}
]
}
}
10 changes: 4 additions & 6 deletions packages/subgraph/manifest/data/mumbai.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest",
"network": "mumbai",
"PluginRepo": {
"address": "0x2c4690b8be39adAd4F15A69340d5035aC6E53eEF"
},
"dataSources": {
"PluginSetupProcessors": [
{
"name": "PluginSetupProcessor",
"address": "0x9227b311C5cecB416707F1C8B7Ca1b52649AabEc",
"startBlock": 33514164
}
],
"Plugin": {
"name": "multisig.plugin.dao.eth",
"address": "0x2c4690b8be39adAd4F15A69340d5035aC6E53eEF",
"startBlock": 33633475
}
]
}
}
10 changes: 4 additions & 6 deletions packages/subgraph/manifest/data/polygon.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest",
"network": "matic",
"PluginRepo": {
"address": "0x5A5035E7E8aeff220540F383a9cf8c35929bcF31"
},
"dataSources": {
"PluginSetupProcessors": [
{
"name": "PluginSetupProcessor",
"address": "0x879D9dfe3F36d7684BeC1a2bB4Aa8E8871A7245B",
"startBlock": 40817440
}
],
"Plugin": {
"name": "multisig.plugin.dao.eth",
"address": "0x5A5035E7E8aeff220540F383a9cf8c35929bcF31",
"startBlock": 40833355
}
]
}
}
10 changes: 4 additions & 6 deletions packages/subgraph/manifest/data/sepolia.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
"info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest",
"network": "sepolia",
"PluginRepo": {
"address": "0x9e7956C8758470dE159481e5DD0d08F8B59217A2"
},
"dataSources": {
"PluginSetupProcessors": [
{
"name": "PluginSetupProcessor",
"address": "0xC24188a73dc09aA7C721f96Ad8857B469C01dC9f",
"startBlock": 4415294
}
],
"Plugin": {
"name": "multisig.plugin.aragon-dao.eth",
"address": "0x9e7956C8758470dE159481e5DD0d08F8B59217A2",
"startBlock": 4421536
}
]
}
}
2 changes: 1 addition & 1 deletion packages/subgraph/scripts/import-plugin-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function extractAndWriteAddressToTS(): void {
const networkManifestPath = path.join(manifestsPath, `${network}.json`);
let networkRepoAddress = JSON.parse(
fs.readFileSync(networkManifestPath, 'utf8')
).dataSources.Plugin.address;
).PluginRepo.address;

// check if address is null and throw warning and continue with zero address
if (!networkRepoAddress) {
Expand Down

0 comments on commit 3265778

Please sign in to comment.