Skip to content

Commit 05c631b

Browse files
authored
Add mainnet networks (#274)
1 parent 303385b commit 05c631b

22 files changed

+2446
-35
lines changed

ethereum/.env.prod.arbitrum

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MIGRATIONS_DIR=./migrations/prod
2+
MIGRATIONS_NETWORK=arbitrum
3+
4+
#Pyth
5+
WORMHOLE_BRIDGE_ADDRESS=0xa5f208e072434bC67592E4C49C1B991BA79BCA46
6+
SOLANA_CHAIN_ID=0x1
7+
SOLANA_EMITTER=0x6bb14509a612f01fbbc4cffeebd4bbfb492a86df717ebe92eb6df432a3f00a25
8+
PYTHNET_CHAIN_ID=0x1a
9+
PYTHNET_EMITTER=0xf8cd23c2ab91237730770bbea08d61005cdda0984348f3f6eecb559638c0bba0
10+
11+
VALID_TIME_PERIOD_SECONDS=60

ethereum/.env.prod.optimism

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
MIGRATIONS_DIR=./migrations/prod
2+
MIGRATIONS_NETWORK=optimism
3+
4+
#Pyth
5+
WORMHOLE_BRIDGE_ADDRESS=0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722
6+
SOLANA_CHAIN_ID=0x1
7+
SOLANA_EMITTER=0x6bb14509a612f01fbbc4cffeebd4bbfb492a86df717ebe92eb6df432a3f00a25
8+
PYTHNET_CHAIN_ID=0x1a
9+
PYTHNET_EMITTER=0xf8cd23c2ab91237730770bbea08d61005cdda0984348f3f6eecb559638c0bba0
10+
11+
VALID_TIME_PERIOD_SECONDS=60

ethereum/.openzeppelin/mainnet.json

+253
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
{
2+
"manifestVersion": "3.2",
3+
"proxies": [
4+
{
5+
"address": "0x4305FB66699C3B2702D4d05CF36551390A4c69C6",
6+
"txHash": "0xa5d57f2a33f7890850ffe9ce867ffb169d59c6ec2e96d1902363d1f670302892",
7+
"kind": "uups"
8+
}
9+
],
10+
"impls": {
11+
"66da3aeb765cd76983db9ad4a6b981006f3966e9f9a484b73495ebe53c2503f7": {
12+
"address": "0xB2eeb93D778c364E7E2274D6299e2aa0c2Bea090",
13+
"txHash": "0x104df46a283ff1ddbcae6739f5d2a609f37fa11c5a72a810e3fefac7dc14f2ed",
14+
"layout": {
15+
"storage": [
16+
{
17+
"contract": "Initializable",
18+
"label": "_initialized",
19+
"type": "t_bool",
20+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39"
21+
},
22+
{
23+
"contract": "Initializable",
24+
"label": "_initializing",
25+
"type": "t_bool",
26+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44"
27+
},
28+
{
29+
"contract": "ContextUpgradeable",
30+
"label": "__gap",
31+
"type": "t_array(t_uint256)50_storage",
32+
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
33+
},
34+
{
35+
"contract": "OwnableUpgradeable",
36+
"label": "_owner",
37+
"type": "t_address",
38+
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
39+
},
40+
{
41+
"contract": "OwnableUpgradeable",
42+
"label": "__gap",
43+
"type": "t_array(t_uint256)49_storage",
44+
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:87"
45+
},
46+
{
47+
"contract": "ERC1967UpgradeUpgradeable",
48+
"label": "__gap",
49+
"type": "t_array(t_uint256)50_storage",
50+
"src": "../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
51+
},
52+
{
53+
"contract": "UUPSUpgradeable",
54+
"label": "__gap",
55+
"type": "t_array(t_uint256)50_storage",
56+
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
57+
},
58+
{
59+
"contract": "PythState",
60+
"label": "_state",
61+
"type": "t_struct(State)4128_storage",
62+
"src": "../project:/contracts/pyth/PythState.sol:35"
63+
}
64+
],
65+
"types": {
66+
"t_struct(State)4128_storage": {
67+
"label": "struct PythStorage.State",
68+
"members": [
69+
{
70+
"label": "wormhole",
71+
"type": "t_address"
72+
},
73+
{
74+
"label": "_deprecatedPyth2WormholeChainId",
75+
"type": "t_uint16"
76+
},
77+
{
78+
"label": "_deprecatedPyth2WormholeEmitter",
79+
"type": "t_bytes32"
80+
},
81+
{
82+
"label": "latestPriceInfo",
83+
"type": "t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)"
84+
},
85+
{
86+
"label": "validDataSources",
87+
"type": "t_array(t_struct(DataSource)4013_storage)dyn_storage"
88+
},
89+
{
90+
"label": "isValidDataSource",
91+
"type": "t_mapping(t_bytes32,t_bool)"
92+
},
93+
{
94+
"label": "singleUpdateFeeInWei",
95+
"type": "t_uint256"
96+
},
97+
{
98+
"label": "validTimePeriodSeconds",
99+
"type": "t_uint256"
100+
}
101+
]
102+
},
103+
"t_address": {
104+
"label": "address"
105+
},
106+
"t_uint16": {
107+
"label": "uint16"
108+
},
109+
"t_bytes32": {
110+
"label": "bytes32"
111+
},
112+
"t_mapping(t_bytes32,t_struct(PriceInfo)4008_storage)": {
113+
"label": "mapping(bytes32 => struct PythInternalStructs.PriceInfo)"
114+
},
115+
"t_struct(PriceInfo)4008_storage": {
116+
"label": "struct PythInternalStructs.PriceInfo",
117+
"members": [
118+
{
119+
"label": "attestationTime",
120+
"type": "t_uint256"
121+
},
122+
{
123+
"label": "arrivalTime",
124+
"type": "t_uint256"
125+
},
126+
{
127+
"label": "arrivalBlock",
128+
"type": "t_uint256"
129+
},
130+
{
131+
"label": "priceFeed",
132+
"type": "t_struct(PriceFeed)2463_storage"
133+
}
134+
]
135+
},
136+
"t_array(t_struct(DataSource)4013_storage)dyn_storage": {
137+
"label": "struct PythInternalStructs.DataSource[]"
138+
},
139+
"t_struct(DataSource)4013_storage": {
140+
"label": "struct PythInternalStructs.DataSource",
141+
"members": [
142+
{
143+
"label": "chainId",
144+
"type": "t_uint16"
145+
},
146+
{
147+
"label": "emitterAddress",
148+
"type": "t_bytes32"
149+
}
150+
]
151+
},
152+
"t_mapping(t_bytes32,t_bool)": {
153+
"label": "mapping(bytes32 => bool)"
154+
},
155+
"t_bool": {
156+
"label": "bool"
157+
},
158+
"t_uint256": {
159+
"label": "uint256"
160+
},
161+
"t_struct(PriceFeed)2463_storage": {
162+
"label": "struct PythStructs.PriceFeed",
163+
"members": [
164+
{
165+
"label": "id",
166+
"type": "t_bytes32"
167+
},
168+
{
169+
"label": "productId",
170+
"type": "t_bytes32"
171+
},
172+
{
173+
"label": "price",
174+
"type": "t_int64"
175+
},
176+
{
177+
"label": "conf",
178+
"type": "t_uint64"
179+
},
180+
{
181+
"label": "expo",
182+
"type": "t_int32"
183+
},
184+
{
185+
"label": "status",
186+
"type": "t_enum(PriceStatus)2468"
187+
},
188+
{
189+
"label": "maxNumPublishers",
190+
"type": "t_uint32"
191+
},
192+
{
193+
"label": "numPublishers",
194+
"type": "t_uint32"
195+
},
196+
{
197+
"label": "emaPrice",
198+
"type": "t_int64"
199+
},
200+
{
201+
"label": "emaConf",
202+
"type": "t_uint64"
203+
},
204+
{
205+
"label": "publishTime",
206+
"type": "t_uint64"
207+
},
208+
{
209+
"label": "prevPrice",
210+
"type": "t_int64"
211+
},
212+
{
213+
"label": "prevConf",
214+
"type": "t_uint64"
215+
},
216+
{
217+
"label": "prevPublishTime",
218+
"type": "t_uint64"
219+
}
220+
]
221+
},
222+
"t_int64": {
223+
"label": "int64"
224+
},
225+
"t_uint64": {
226+
"label": "uint64"
227+
},
228+
"t_int32": {
229+
"label": "int32"
230+
},
231+
"t_enum(PriceStatus)2468": {
232+
"label": "enum PythStructs.PriceStatus",
233+
"members": [
234+
"UNKNOWN",
235+
"TRADING",
236+
"HALTED",
237+
"AUCTION"
238+
]
239+
},
240+
"t_uint32": {
241+
"label": "uint32"
242+
},
243+
"t_array(t_uint256)50_storage": {
244+
"label": "uint256[50]"
245+
},
246+
"t_array(t_uint256)49_storage": {
247+
"label": "uint256[49]"
248+
}
249+
}
250+
}
251+
}
252+
}
253+
}

0 commit comments

Comments
 (0)