Skip to content

Commit 0ee865c

Browse files
committed
Transfer manager multisig over
1 parent 67f364a commit 0ee865c

File tree

97 files changed

+118437
-285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+118437
-285
lines changed

.changeset/lovely-keys-joke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@api3/contracts': major
3+
---
4+
5+
Manager multisig addresses are exported with the other contract addresses

data/chain-support.json

Lines changed: 86 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"chainsSupportedByDapis": [
2+
"chainsSupportedByManagerMultisig": [
33
"apechain-arbitrum-sepolia-testnet",
44
"arbitrum",
55
"arbitrum-sepolia-testnet",
@@ -19,7 +19,6 @@
1919
"bsc",
2020
"bsc-testnet",
2121
"bsquared",
22-
"blast-sepolia-testnet",
2322
"core",
2423
"core-testnet",
2524
"ethereum",
@@ -51,6 +50,7 @@
5150
"metal",
5251
"metis",
5352
"metis-sepolia-testnet",
53+
"milkomeda-c1",
5454
"mode",
5555
"mode-sepolia-testnet",
5656
"moonbeam",
@@ -70,10 +70,92 @@
7070
"rari",
7171
"rari-arbitrum-sepolia-testnet",
7272
"rsk",
73+
"scroll",
74+
"scroll-sepolia-testnet",
7375
"sei",
7476
"sei-testnet",
77+
"taiko",
78+
"taiko-holesky-testnet",
79+
"x-layer",
80+
"x-layer-sepolia-testnet",
81+
"zircuit",
82+
"zircuit-sepolia-testnet",
83+
"zksync"
84+
],
85+
"chainsSupportedByDapis": [
86+
"apechain-arbitrum-sepolia-testnet",
87+
"arbitrum",
88+
"arbitrum-sepolia-testnet",
89+
"astar",
90+
"astar-sepolia-testnet",
91+
"avalanche",
92+
"avalanche-testnet",
93+
"base",
94+
"base-sepolia-testnet",
95+
"berachain-testnet",
96+
"bitlayer",
97+
"bitlayer-testnet",
98+
"blast",
99+
"blast-sepolia-testnet",
100+
"bob",
101+
"bob-sepolia-testnet",
102+
"bsc",
103+
"bsc-testnet",
104+
"bsquared",
105+
"core",
106+
"core-testnet",
107+
"ethereum",
108+
"ethereum-holesky-testnet",
109+
"ethereum-sepolia-testnet",
110+
"fantom",
111+
"fantom-testnet",
112+
"fraxtal",
113+
"fraxtal-holesky-testnet",
114+
"gnosis",
115+
"gnosis-testnet",
116+
"immutable-sepolia-testnet",
117+
"inevm",
118+
"inevm-testnet",
119+
"kava",
120+
"kava-testnet",
121+
"kroma",
122+
"kroma-sepolia-testnet",
123+
"lightlink",
124+
"lightlink-sepolia-testnet",
125+
"linea",
126+
"linea-sepolia-testnet",
127+
"lukso",
128+
"lukso-testnet",
129+
"mantle",
130+
"mantle-sepolia-testnet",
131+
"merlin",
132+
"merlin-testnet",
133+
"metal",
134+
"metis",
135+
"metis-sepolia-testnet",
136+
"mode",
137+
"mode-sepolia-testnet",
138+
"moonbeam",
139+
"moonbeam-testnet",
140+
"moonriver",
141+
"neon-evm",
142+
"neon-evm-testnet",
143+
"oev-network",
144+
"opbnb",
145+
"opbnb-testnet",
146+
"optimism",
147+
"optimism-sepolia-testnet",
148+
"polygon",
149+
"polygon-sepolia-testnet",
150+
"polygon-zkevm",
151+
"polygon-zkevm-sepolia-testnet",
152+
"rari",
153+
"rari-arbitrum-sepolia-testnet",
154+
"rsk",
75155
"scroll",
76156
"scroll-sepolia-testnet",
157+
"sei",
158+
"sei-testnet",
77159
"taiko",
78160
"taiko-holesky-testnet",
79161
"x-layer",
@@ -150,10 +232,10 @@
150232
"polygon-zkevm-sepolia-testnet",
151233
"rari",
152234
"rari-arbitrum-sepolia-testnet",
153-
"sei",
154-
"sei-testnet",
155235
"scroll",
156236
"scroll-sepolia-testnet",
237+
"sei",
238+
"sei-testnet",
157239
"taiko",
158240
"taiko-holesky-testnet",
159241
"x-layer",

data/manager-multisig.json

Lines changed: 0 additions & 83 deletions
This file was deleted.

deploy/3_document.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
import * as fs from 'node:fs';
22
import { join } from 'node:path';
33

4-
import { CHAINS } from '@api3/chains';
54
import type { AddressLike } from 'ethers';
65
import { config } from 'hardhat';
76

87
import {
8+
chainsSupportedByManagerMultisig,
99
chainsSupportedByDapis,
1010
chainsSupportedByMarket,
1111
chainsSupportedByOevAuctions,
1212
} from '../data/chain-support.json';
13-
import managerMultisigAddresses from '../data/manager-multisig.json';
1413

1514
module.exports = () => {
1615
const references: Record<string, Record<string, AddressLike>> = {};
1716

1817
const networks = new Set([
19-
...Object.keys(managerMultisigAddresses),
18+
...chainsSupportedByManagerMultisig,
2019
...chainsSupportedByDapis,
2120
...chainsSupportedByMarket,
2221
...chainsSupportedByOevAuctions,
@@ -25,7 +24,7 @@ module.exports = () => {
2524
for (const network of networks) {
2625
const chainId = config.networks[network]!.chainId!;
2726
const contractNames = [
28-
...(Object.keys(managerMultisigAddresses).includes(network) ? ['OwnableCallForwarder'] : []),
27+
...(chainsSupportedByManagerMultisig.includes(network) ? ['GnosisSafeWithoutProxy', 'OwnableCallForwarder'] : []),
2928
...(chainsSupportedByDapis.includes(network) ? ['AccessControlRegistry', 'Api3ServerV1'] : []),
3029
// ...(chainsSupportedByMarket.includes(network) ? ['Api3Market'] : []),
3130
...(chainsSupportedByOevAuctions.includes(network) ? ['OevAuctionHouse'] : []),
@@ -36,15 +35,5 @@ module.exports = () => {
3635
}
3736
}
3837
fs.writeFileSync(join('deployments', 'addresses.json'), `${JSON.stringify(references, null, 2)}\n`);
39-
fs.writeFileSync(
40-
join('deployments', 'manager-multisig-addresses.json'),
41-
`${JSON.stringify(
42-
Object.entries(managerMultisigAddresses).reduce((acc, [alias, address]) => {
43-
return { ...acc, [CHAINS.find((chain) => chain.alias === alias)!.id]: address };
44-
}, {}),
45-
null,
46-
2
47-
)}\n`
48-
);
4938
};
5039
module.exports.tags = ['document'];

0 commit comments

Comments
 (0)