@layerzerolabs/lz-evm-sdk-v1 1.5.21 → 1.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deployments/{bsc-sandbox-local → hubble-testnet}/DefaultProxyAdmin.json +21 -21
- package/deployments/hubble-testnet/Endpoint.json +1282 -0
- package/deployments/{avalanche-sandbox-local → hubble-testnet}/FPValidator.json +10 -10
- package/deployments/{avalanche-sandbox-local → hubble-testnet}/MPTValidator01.json +10 -10
- package/deployments/{bsc-sandbox-local → hubble-testnet}/NonceContract.json +9 -9
- package/deployments/{bsc-sandbox-local → hubble-testnet}/PriceFeed.json +28 -28
- package/deployments/{bsc-sandbox-local → hubble-testnet}/PriceFeed_Implementation.json +19 -19
- package/deployments/{bsc-sandbox-local → hubble-testnet}/PriceFeed_Proxy.json +26 -26
- package/deployments/{bsc-sandbox-local → hubble-testnet}/RelayerV2.json +51 -38
- package/deployments/hubble-testnet/RelayerV2_Implementation.json +1283 -0
- package/deployments/{avalanche-sandbox-local → hubble-testnet}/RelayerV2_Proxy.json +33 -33
- package/deployments/hubble-testnet/TreasuryV2.json +458 -0
- package/deployments/{avalanche-sandbox-local → hubble-testnet}/UltraLightNodeV2.json +45 -45
- package/deployments/{avalanche-sandbox-local → mantle-mainnet}/DefaultProxyAdmin.json +21 -21
- package/deployments/{bsc-sandbox-local → mantle-mainnet}/Endpoint.json +23 -23
- package/deployments/{bsc-sandbox-local → mantle-mainnet}/FPValidator.json +10 -10
- package/deployments/{bsc-sandbox-local → mantle-mainnet}/MPTValidator01.json +10 -10
- package/deployments/{avalanche-sandbox-local → mantle-mainnet}/NonceContract.json +9 -9
- package/deployments/mantle-mainnet/PriceFeed.json +760 -0
- package/deployments/{avalanche-sandbox-local → mantle-mainnet}/PriceFeed_Implementation.json +19 -19
- package/deployments/mantle-mainnet/PriceFeed_Proxy.json +233 -0
- package/deployments/mantle-mainnet/RelayerV2.json +1182 -0
- package/deployments/mantle-mainnet/RelayerV2_Implementation.json +1283 -0
- package/deployments/{bsc-sandbox-local → mantle-mainnet}/RelayerV2_Proxy.json +33 -33
- package/deployments/{avalanche-sandbox-local → mantle-mainnet}/TreasuryV2.json +22 -22
- package/deployments/mantle-mainnet/UltraLightNodeV2.json +1816 -0
- package/deployments/mantle-testnet/DefaultProxyAdmin.json +273 -0
- package/deployments/{avalanche-sandbox-local → mantle-testnet}/Endpoint.json +21 -21
- package/deployments/mantle-testnet/FPValidator.json +382 -0
- package/deployments/mantle-testnet/MPTValidator01.json +395 -0
- package/deployments/mantle-testnet/NonceContract.json +159 -0
- package/deployments/{avalanche-sandbox-local → mantle-testnet}/PriceFeed.json +28 -28
- package/deployments/mantle-testnet/PriceFeed_Implementation.json +776 -0
- package/deployments/{avalanche-sandbox-local → mantle-testnet}/PriceFeed_Proxy.json +26 -26
- package/deployments/{avalanche-sandbox-local → mantle-testnet}/RelayerV2.json +51 -38
- package/deployments/mantle-testnet/RelayerV2_Implementation.json +1283 -0
- package/deployments/mantle-testnet/RelayerV2_Proxy.json +245 -0
- package/deployments/{bsc-sandbox-local → mantle-testnet}/TreasuryV2.json +22 -22
- package/deployments/{bsc-sandbox-local → mantle-testnet}/UltraLightNodeV2.json +45 -45
- package/package.json +3 -3
- package/deployments/avalanche-sandbox-local/RelayerV2_Implementation.json +0 -1270
- package/deployments/bsc-sandbox-local/RelayerV2_Implementation.json +0 -1270
- package/dist/chaintypes/RelayerV2.sol/IForwarder.d.ts +0 -43
- package/dist/chaintypes/RelayerV2.sol/IForwarder.d.ts.map +0 -1
- package/dist/chaintypes/RelayerV2.sol/IForwarder.js +0 -2
- package/dist/chaintypes/RelayerV2.sol/IStargateComposer.d.ts +0 -43
- package/dist/chaintypes/RelayerV2.sol/IStargateComposer.d.ts.map +0 -1
- package/dist/chaintypes/RelayerV2.sol/IStargateComposer.js +0 -2
- package/dist/chaintypes/RelayerV2.sol/RelayerV2.d.ts +0 -731
- package/dist/chaintypes/RelayerV2.sol/RelayerV2.d.ts.map +0 -1
- package/dist/chaintypes/RelayerV2.sol/RelayerV2.js +0 -2
- package/dist/chaintypes/RelayerV2.sol/index.d.ts +0 -3
- package/dist/chaintypes/RelayerV2.sol/index.d.ts.map +0 -1
- package/dist/chaintypes/RelayerV2.sol/index.js +0 -2
- package/dist/chaintypes/factories/RelayerV2.sol/IForwarder__factory.d.ts +0 -19
- package/dist/chaintypes/factories/RelayerV2.sol/IForwarder__factory.d.ts.map +0 -1
- package/dist/chaintypes/factories/RelayerV2.sol/IForwarder__factory.js +0 -32
- package/dist/chaintypes/factories/RelayerV2.sol/IStargateComposer__factory.d.ts +0 -19
- package/dist/chaintypes/factories/RelayerV2.sol/IStargateComposer__factory.d.ts.map +0 -1
- package/dist/chaintypes/factories/RelayerV2.sol/IStargateComposer__factory.js +0 -32
- package/dist/chaintypes/factories/RelayerV2.sol/RelayerV2__factory.d.ts +0 -772
- package/dist/chaintypes/factories/RelayerV2.sol/RelayerV2__factory.d.ts.map +0 -1
- package/dist/chaintypes/factories/RelayerV2.sol/RelayerV2__factory.js +0 -1012
- package/dist/chaintypes/factories/RelayerV2.sol/index.d.ts +0 -3
- package/dist/chaintypes/factories/RelayerV2.sol/index.d.ts.map +0 -1
- package/dist/chaintypes/factories/RelayerV2.sol/index.js +0 -10
- package/dist/chaintypes/factories/messagelib-e2/libs/ExecutorOptions__factory.d.ts +0 -72
- package/dist/chaintypes/factories/messagelib-e2/libs/ExecutorOptions__factory.d.ts.map +0 -1
- package/dist/chaintypes/factories/messagelib-e2/libs/ExecutorOptions__factory.js +0 -107
- package/dist/chaintypes/messagelib-e2/libs/ExecutorOptions.d.ts +0 -75
- package/dist/chaintypes/messagelib-e2/libs/ExecutorOptions.d.ts.map +0 -1
- package/dist/chaintypes/messagelib-e2/libs/ExecutorOptions.js +0 -2
|
@@ -0,0 +1,776 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0x3aCAAf60502791D199a5a5F0B173D78229eBFe32",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"anonymous": false,
|
|
6
|
+
"inputs": [
|
|
7
|
+
{
|
|
8
|
+
"indexed": true,
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "previousOwner",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"indexed": true,
|
|
15
|
+
"internalType": "address",
|
|
16
|
+
"name": "newOwner",
|
|
17
|
+
"type": "address"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"name": "OwnershipTransferred",
|
|
21
|
+
"type": "event"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"inputs": [],
|
|
25
|
+
"name": "ARBITRUM_COMPRESSION_PERCENT",
|
|
26
|
+
"outputs": [
|
|
27
|
+
{
|
|
28
|
+
"internalType": "uint128",
|
|
29
|
+
"name": "",
|
|
30
|
+
"type": "uint128"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"stateMutability": "view",
|
|
34
|
+
"type": "function"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"inputs": [],
|
|
38
|
+
"name": "PRICE_RATIO_DENOMINATOR",
|
|
39
|
+
"outputs": [
|
|
40
|
+
{
|
|
41
|
+
"internalType": "uint128",
|
|
42
|
+
"name": "",
|
|
43
|
+
"type": "uint128"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"stateMutability": "view",
|
|
47
|
+
"type": "function"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"inputs": [],
|
|
51
|
+
"name": "arbitrumPriceExt",
|
|
52
|
+
"outputs": [
|
|
53
|
+
{
|
|
54
|
+
"internalType": "uint64",
|
|
55
|
+
"name": "gasPerL2Tx",
|
|
56
|
+
"type": "uint64"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"internalType": "uint32",
|
|
60
|
+
"name": "gasPerL1CallDataByte",
|
|
61
|
+
"type": "uint32"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"stateMutability": "view",
|
|
65
|
+
"type": "function"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"inputs": [
|
|
69
|
+
{
|
|
70
|
+
"internalType": "uint16",
|
|
71
|
+
"name": "",
|
|
72
|
+
"type": "uint16"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"name": "defaultModelPrice",
|
|
76
|
+
"outputs": [
|
|
77
|
+
{
|
|
78
|
+
"internalType": "uint128",
|
|
79
|
+
"name": "priceRatio",
|
|
80
|
+
"type": "uint128"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"internalType": "uint64",
|
|
84
|
+
"name": "gasPriceInUnit",
|
|
85
|
+
"type": "uint64"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "uint32",
|
|
89
|
+
"name": "gasPerByte",
|
|
90
|
+
"type": "uint32"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"stateMutability": "view",
|
|
94
|
+
"type": "function"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"inputs": [
|
|
98
|
+
{
|
|
99
|
+
"internalType": "uint16",
|
|
100
|
+
"name": "_dstChainId",
|
|
101
|
+
"type": "uint16"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"internalType": "uint256",
|
|
105
|
+
"name": "_callDataSize",
|
|
106
|
+
"type": "uint256"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"internalType": "uint256",
|
|
110
|
+
"name": "_gas",
|
|
111
|
+
"type": "uint256"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"name": "estimateFeeByChain",
|
|
115
|
+
"outputs": [
|
|
116
|
+
{
|
|
117
|
+
"internalType": "uint256",
|
|
118
|
+
"name": "fee",
|
|
119
|
+
"type": "uint256"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"internalType": "uint128",
|
|
123
|
+
"name": "priceRatio",
|
|
124
|
+
"type": "uint128"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"stateMutability": "view",
|
|
128
|
+
"type": "function"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"inputs": [
|
|
132
|
+
{
|
|
133
|
+
"internalType": "uint16",
|
|
134
|
+
"name": "_dstChainId",
|
|
135
|
+
"type": "uint16"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"internalType": "uint256",
|
|
139
|
+
"name": "_callDataSize",
|
|
140
|
+
"type": "uint256"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"internalType": "uint256",
|
|
144
|
+
"name": "_gas",
|
|
145
|
+
"type": "uint256"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"name": "estimateFeeWithArbitrumModel",
|
|
149
|
+
"outputs": [
|
|
150
|
+
{
|
|
151
|
+
"internalType": "uint256",
|
|
152
|
+
"name": "fee",
|
|
153
|
+
"type": "uint256"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"internalType": "uint128",
|
|
157
|
+
"name": "priceRatio",
|
|
158
|
+
"type": "uint128"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"stateMutability": "view",
|
|
162
|
+
"type": "function"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"inputs": [
|
|
166
|
+
{
|
|
167
|
+
"internalType": "uint16",
|
|
168
|
+
"name": "_dstChainId",
|
|
169
|
+
"type": "uint16"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"internalType": "uint256",
|
|
173
|
+
"name": "_callDataSize",
|
|
174
|
+
"type": "uint256"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"internalType": "uint256",
|
|
178
|
+
"name": "_gas",
|
|
179
|
+
"type": "uint256"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"name": "estimateFeeWithDefaultModel",
|
|
183
|
+
"outputs": [
|
|
184
|
+
{
|
|
185
|
+
"internalType": "uint256",
|
|
186
|
+
"name": "fee",
|
|
187
|
+
"type": "uint256"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"internalType": "uint128",
|
|
191
|
+
"name": "priceRatio",
|
|
192
|
+
"type": "uint128"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"stateMutability": "view",
|
|
196
|
+
"type": "function"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"inputs": [
|
|
200
|
+
{
|
|
201
|
+
"internalType": "uint16",
|
|
202
|
+
"name": "_dstChainId",
|
|
203
|
+
"type": "uint16"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"internalType": "uint256",
|
|
207
|
+
"name": "_callDataSize",
|
|
208
|
+
"type": "uint256"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"internalType": "uint256",
|
|
212
|
+
"name": "_gas",
|
|
213
|
+
"type": "uint256"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"name": "estimateFeeWithOptimismModel",
|
|
217
|
+
"outputs": [
|
|
218
|
+
{
|
|
219
|
+
"internalType": "uint256",
|
|
220
|
+
"name": "fee",
|
|
221
|
+
"type": "uint256"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"internalType": "uint128",
|
|
225
|
+
"name": "priceRatio",
|
|
226
|
+
"type": "uint128"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"stateMutability": "view",
|
|
230
|
+
"type": "function"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"inputs": [
|
|
234
|
+
{
|
|
235
|
+
"internalType": "uint16",
|
|
236
|
+
"name": "_dstChainId",
|
|
237
|
+
"type": "uint16"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"name": "getPrice",
|
|
241
|
+
"outputs": [
|
|
242
|
+
{
|
|
243
|
+
"components": [
|
|
244
|
+
{
|
|
245
|
+
"internalType": "uint128",
|
|
246
|
+
"name": "priceRatio",
|
|
247
|
+
"type": "uint128"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"internalType": "uint64",
|
|
251
|
+
"name": "gasPriceInUnit",
|
|
252
|
+
"type": "uint64"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"internalType": "uint32",
|
|
256
|
+
"name": "gasPerByte",
|
|
257
|
+
"type": "uint32"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"internalType": "struct ILayerZeroPriceFeed.Price",
|
|
261
|
+
"name": "price",
|
|
262
|
+
"type": "tuple"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"stateMutability": "view",
|
|
266
|
+
"type": "function"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"inputs": [],
|
|
270
|
+
"name": "getPriceRatioDenominator",
|
|
271
|
+
"outputs": [
|
|
272
|
+
{
|
|
273
|
+
"internalType": "uint128",
|
|
274
|
+
"name": "",
|
|
275
|
+
"type": "uint128"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"stateMutability": "view",
|
|
279
|
+
"type": "function"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"inputs": [
|
|
283
|
+
{
|
|
284
|
+
"internalType": "address",
|
|
285
|
+
"name": "_priceUpdater",
|
|
286
|
+
"type": "address"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"name": "initialize",
|
|
290
|
+
"outputs": [],
|
|
291
|
+
"stateMutability": "nonpayable",
|
|
292
|
+
"type": "function"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"inputs": [],
|
|
296
|
+
"name": "nativeTokenPriceUSD",
|
|
297
|
+
"outputs": [
|
|
298
|
+
{
|
|
299
|
+
"internalType": "uint128",
|
|
300
|
+
"name": "",
|
|
301
|
+
"type": "uint128"
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"stateMutability": "view",
|
|
305
|
+
"type": "function"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"inputs": [],
|
|
309
|
+
"name": "onUpgrade",
|
|
310
|
+
"outputs": [],
|
|
311
|
+
"stateMutability": "nonpayable",
|
|
312
|
+
"type": "function"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"inputs": [],
|
|
316
|
+
"name": "owner",
|
|
317
|
+
"outputs": [
|
|
318
|
+
{
|
|
319
|
+
"internalType": "address",
|
|
320
|
+
"name": "",
|
|
321
|
+
"type": "address"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"stateMutability": "view",
|
|
325
|
+
"type": "function"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"inputs": [
|
|
329
|
+
{
|
|
330
|
+
"internalType": "address",
|
|
331
|
+
"name": "",
|
|
332
|
+
"type": "address"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"name": "priceUpdater",
|
|
336
|
+
"outputs": [
|
|
337
|
+
{
|
|
338
|
+
"internalType": "bool",
|
|
339
|
+
"name": "",
|
|
340
|
+
"type": "bool"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"stateMutability": "view",
|
|
344
|
+
"type": "function"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"inputs": [],
|
|
348
|
+
"name": "renounceOwnership",
|
|
349
|
+
"outputs": [],
|
|
350
|
+
"stateMutability": "nonpayable",
|
|
351
|
+
"type": "function"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"inputs": [
|
|
355
|
+
{
|
|
356
|
+
"internalType": "uint128",
|
|
357
|
+
"name": "_compressionPercent",
|
|
358
|
+
"type": "uint128"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"name": "setArbitrumCompressionPercent",
|
|
362
|
+
"outputs": [],
|
|
363
|
+
"stateMutability": "nonpayable",
|
|
364
|
+
"type": "function"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"inputs": [
|
|
368
|
+
{
|
|
369
|
+
"internalType": "uint128",
|
|
370
|
+
"name": "_nativeTokenPriceUSD",
|
|
371
|
+
"type": "uint128"
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
"name": "setNativeTokenPriceUSD",
|
|
375
|
+
"outputs": [],
|
|
376
|
+
"stateMutability": "nonpayable",
|
|
377
|
+
"type": "function"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"inputs": [
|
|
381
|
+
{
|
|
382
|
+
"components": [
|
|
383
|
+
{
|
|
384
|
+
"internalType": "uint16",
|
|
385
|
+
"name": "chainId",
|
|
386
|
+
"type": "uint16"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"components": [
|
|
390
|
+
{
|
|
391
|
+
"internalType": "uint128",
|
|
392
|
+
"name": "priceRatio",
|
|
393
|
+
"type": "uint128"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"internalType": "uint64",
|
|
397
|
+
"name": "gasPriceInUnit",
|
|
398
|
+
"type": "uint64"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"internalType": "uint32",
|
|
402
|
+
"name": "gasPerByte",
|
|
403
|
+
"type": "uint32"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"internalType": "struct ILayerZeroPriceFeed.Price",
|
|
407
|
+
"name": "price",
|
|
408
|
+
"type": "tuple"
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
"internalType": "struct ILayerZeroPriceFeed.UpdatePrice[]",
|
|
412
|
+
"name": "_price",
|
|
413
|
+
"type": "tuple[]"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"name": "setPrice",
|
|
417
|
+
"outputs": [],
|
|
418
|
+
"stateMutability": "nonpayable",
|
|
419
|
+
"type": "function"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"inputs": [
|
|
423
|
+
{
|
|
424
|
+
"components": [
|
|
425
|
+
{
|
|
426
|
+
"internalType": "uint16",
|
|
427
|
+
"name": "chainId",
|
|
428
|
+
"type": "uint16"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"components": [
|
|
432
|
+
{
|
|
433
|
+
"internalType": "uint128",
|
|
434
|
+
"name": "priceRatio",
|
|
435
|
+
"type": "uint128"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"internalType": "uint64",
|
|
439
|
+
"name": "gasPriceInUnit",
|
|
440
|
+
"type": "uint64"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"internalType": "uint32",
|
|
444
|
+
"name": "gasPerByte",
|
|
445
|
+
"type": "uint32"
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
"internalType": "struct ILayerZeroPriceFeed.Price",
|
|
449
|
+
"name": "price",
|
|
450
|
+
"type": "tuple"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"components": [
|
|
454
|
+
{
|
|
455
|
+
"internalType": "uint64",
|
|
456
|
+
"name": "gasPerL2Tx",
|
|
457
|
+
"type": "uint64"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"internalType": "uint32",
|
|
461
|
+
"name": "gasPerL1CallDataByte",
|
|
462
|
+
"type": "uint32"
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"internalType": "struct ILayerZeroPriceFeed.ArbitrumPriceExt",
|
|
466
|
+
"name": "extend",
|
|
467
|
+
"type": "tuple"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
"internalType": "struct ILayerZeroPriceFeed.UpdatePriceExt[]",
|
|
471
|
+
"name": "_price",
|
|
472
|
+
"type": "tuple[]"
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"name": "setPriceForArbitrum",
|
|
476
|
+
"outputs": [],
|
|
477
|
+
"stateMutability": "nonpayable",
|
|
478
|
+
"type": "function"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"inputs": [
|
|
482
|
+
{
|
|
483
|
+
"internalType": "uint128",
|
|
484
|
+
"name": "_denominator",
|
|
485
|
+
"type": "uint128"
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
"name": "setPriceRatioDenominator",
|
|
489
|
+
"outputs": [],
|
|
490
|
+
"stateMutability": "nonpayable",
|
|
491
|
+
"type": "function"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"inputs": [
|
|
495
|
+
{
|
|
496
|
+
"internalType": "address",
|
|
497
|
+
"name": "_addr",
|
|
498
|
+
"type": "address"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"internalType": "bool",
|
|
502
|
+
"name": "_active",
|
|
503
|
+
"type": "bool"
|
|
504
|
+
}
|
|
505
|
+
],
|
|
506
|
+
"name": "setPriceUpdater",
|
|
507
|
+
"outputs": [],
|
|
508
|
+
"stateMutability": "nonpayable",
|
|
509
|
+
"type": "function"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"inputs": [
|
|
513
|
+
{
|
|
514
|
+
"internalType": "address",
|
|
515
|
+
"name": "newOwner",
|
|
516
|
+
"type": "address"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"name": "transferOwnership",
|
|
520
|
+
"outputs": [],
|
|
521
|
+
"stateMutability": "nonpayable",
|
|
522
|
+
"type": "function"
|
|
523
|
+
}
|
|
524
|
+
],
|
|
525
|
+
"transactionHash": "0x55e093b0f48e7ef82c787ddf893cc7cebd9f9752cfdafb3a4c36abba8c9f6239",
|
|
526
|
+
"receipt": {
|
|
527
|
+
"to": null,
|
|
528
|
+
"from": "0xc13b65f7c53Cd6db2EA205a4b574b4a0858720A6",
|
|
529
|
+
"contractAddress": "0x3aCAAf60502791D199a5a5F0B173D78229eBFe32",
|
|
530
|
+
"transactionIndex": 0,
|
|
531
|
+
"gasUsed": "1679858",
|
|
532
|
+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
533
|
+
"blockHash": "0xac3b48f63333a8a857dd3533e91966efbd25d925becf8dc36d82a9db465e4f17",
|
|
534
|
+
"transactionHash": "0x55e093b0f48e7ef82c787ddf893cc7cebd9f9752cfdafb3a4c36abba8c9f6239",
|
|
535
|
+
"logs": [],
|
|
536
|
+
"blockNumber": 14923277,
|
|
537
|
+
"cumulativeGasUsed": "1679858",
|
|
538
|
+
"status": 1,
|
|
539
|
+
"byzantium": true
|
|
540
|
+
},
|
|
541
|
+
"args": [],
|
|
542
|
+
"numDeployments": 1,
|
|
543
|
+
"solcInputHash": "c9813f16c0a9a8a4ed63c4b4efa707e9",
|
|
544
|
+
"metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ARBITRUM_COMPRESSION_PERCENT\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PRICE_RATIO_DENOMINATOR\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"arbitrumPriceExt\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"gasPerL2Tx\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"gasPerL1CallDataByte\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"defaultModelPrice\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"priceRatio\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"gasPriceInUnit\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"gasPerByte\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_callDataSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gas\",\"type\":\"uint256\"}],\"name\":\"estimateFeeByChain\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"priceRatio\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_callDataSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gas\",\"type\":\"uint256\"}],\"name\":\"estimateFeeWithArbitrumModel\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"priceRatio\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_callDataSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gas\",\"type\":\"uint256\"}],\"name\":\"estimateFeeWithDefaultModel\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"priceRatio\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_callDataSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_gas\",\"type\":\"uint256\"}],\"name\":\"estimateFeeWithOptimismModel\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"priceRatio\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"}],\"name\":\"getPrice\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"priceRatio\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"gasPriceInUnit\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"gasPerByte\",\"type\":\"uint32\"}],\"internalType\":\"struct ILayerZeroPriceFeed.Price\",\"name\":\"price\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPriceRatioDenominator\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_priceUpdater\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nativeTokenPriceUSD\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"onUpgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"priceUpdater\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"_compressionPercent\",\"type\":\"uint128\"}],\"name\":\"setArbitrumCompressionPercent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"_nativeTokenPriceUSD\",\"type\":\"uint128\"}],\"name\":\"setNativeTokenPriceUSD\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"priceRatio\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"gasPriceInUnit\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"gasPerByte\",\"type\":\"uint32\"}],\"internalType\":\"struct ILayerZeroPriceFeed.Price\",\"name\":\"price\",\"type\":\"tuple\"}],\"internalType\":\"struct ILayerZeroPriceFeed.UpdatePrice[]\",\"name\":\"_price\",\"type\":\"tuple[]\"}],\"name\":\"setPrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"priceRatio\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"gasPriceInUnit\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"gasPerByte\",\"type\":\"uint32\"}],\"internalType\":\"struct ILayerZeroPriceFeed.Price\",\"name\":\"price\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"gasPerL2Tx\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"gasPerL1CallDataByte\",\"type\":\"uint32\"}],\"internalType\":\"struct ILayerZeroPriceFeed.ArbitrumPriceExt\",\"name\":\"extend\",\"type\":\"tuple\"}],\"internalType\":\"struct ILayerZeroPriceFeed.UpdatePriceExt[]\",\"name\":\"_price\",\"type\":\"tuple[]\"}],\"name\":\"setPriceForArbitrum\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"_denominator\",\"type\":\"uint128\"}],\"name\":\"setPriceRatioDenominator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_active\",\"type\":\"bool\"}],\"name\":\"setPriceUpdater\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/PriceFeed.sol\":\"PriceFeed\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/Initializable.sol\\\";\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal initializer {\\n __Context_init_unchained();\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal initializer {\\n address msgSender = _msgSender();\\n _owner = msgSender;\\n emit OwnershipTransferred(address(0), msgSender);\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n emit OwnershipTransferred(_owner, address(0));\\n _owner = address(0);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n emit OwnershipTransferred(_owner, newOwner);\\n _owner = newOwner;\\n }\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0xba7ba5b188c0b27489bad1efee8d8b1dcebb502785192b22e3d69824a802983d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\n// solhint-disable-next-line compiler-version\\npragma solidity >=0.4.24 <0.8.0;\\n\\nimport \\\"../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n */\\nabstract contract Initializable {\\n\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n require(_initializing || _isConstructor() || !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n\\n /// @dev Returns true if and only if the function is running in the constructor\\n function _isConstructor() private view returns (bool) {\\n return !AddressUpgradeable.isContract(address(this));\\n }\\n}\\n\",\"keccak256\":\"0xd8e4eb08dcc1d1860fb347ba5ffd595242b9a1b66d49a47f2b4cb51c3f35017e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\n (bool success, ) = recipient.call{ value: amount }(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain`call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x1fd568d8b8ca285c801fbd1d3f40f848434d850a682c0273786cada3e0b84057\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\nimport \\\"../proxy/Initializable.sol\\\";\\n\\n/*\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with GSN meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal initializer {\\n __Context_init_unchained();\\n }\\n\\n function __Context_init_unchained() internal initializer {\\n }\\n function _msgSender() internal view virtual returns (address payable) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes memory) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xbbf8a21b9a66c48d45ff771b8563c6df19ba451d63dfb8380a865c1e1f29d1a0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (a == 0) return 0;\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: division by zero\\\");\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryDiv}.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n}\\n\",\"keccak256\":\"0xe22a1fc7400ae196eba2ad1562d0386462b00a6363b742d55a2fd2021a58586f\",\"license\":\"MIT\"},\"contracts/PriceFeed.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity 0.7.6;\\npragma abicoder v2;\\n\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport \\\"hardhat-deploy/solc_0.7/proxy/Proxied.sol\\\";\\nimport \\\"./interfaces/ILayerZeroPriceFeed.sol\\\";\\n\\ncontract PriceFeed is ILayerZeroPriceFeed, OwnableUpgradeable, Proxied {\\n using SafeMath for uint;\\n\\n uint128 public PRICE_RATIO_DENOMINATOR;\\n\\n // sets pricing\\n mapping(address => bool) public priceUpdater;\\n\\n // [_chainId]\\n mapping(uint16 => Price) public defaultModelPrice;\\n ArbitrumPriceExt public arbitrumPriceExt;\\n\\n uint128 public override nativeTokenPriceUSD; // uses PRICE_RATIO_DENOMINATOR\\n\\n // upgrade: arbitrum compression - percentage of callDataSize after brotli compression\\n uint128 public ARBITRUM_COMPRESSION_PERCENT;\\n\\n // ============================ Constructor ===================================\\n\\n function initialize(address _priceUpdater) public proxied initializer {\\n __Ownable_init();\\n priceUpdater[_priceUpdater] = true;\\n PRICE_RATIO_DENOMINATOR = 1e10; // gas optimization: if you change this, you also need to change the RelayerV2\\n ARBITRUM_COMPRESSION_PERCENT = 47;\\n }\\n\\n function onUpgrade() public proxied {\\n PRICE_RATIO_DENOMINATOR = 1e10; // gas optimization: if you change this, you also need to change the RelayerV2\\n ARBITRUM_COMPRESSION_PERCENT = 47;\\n }\\n\\n // ============================ Modifier ======================================\\n\\n // owner is always approved\\n modifier onlyPriceUpdater() {\\n if (owner() != msg.sender) {\\n require(priceUpdater[msg.sender], \\\"PriceFeed: not price updater\\\");\\n }\\n _;\\n }\\n\\n // ============================ OnlyOwner =====================================\\n\\n function setPriceUpdater(address _addr, bool _active) external onlyOwner {\\n priceUpdater[_addr] = _active;\\n }\\n\\n function setPriceRatioDenominator(uint128 _denominator) external onlyOwner {\\n PRICE_RATIO_DENOMINATOR = _denominator;\\n }\\n\\n function setArbitrumCompressionPercent(uint128 _compressionPercent) external onlyOwner {\\n ARBITRUM_COMPRESSION_PERCENT = _compressionPercent;\\n }\\n\\n // ============================ OnlyPriceUpdater =====================================\\n\\n function setPrice(UpdatePrice[] calldata _price) external onlyPriceUpdater {\\n for (uint i = 0; i < _price.length; i++) {\\n UpdatePrice calldata _update = _price[i];\\n _setPrice(_update.chainId, _update.price);\\n }\\n }\\n\\n function setPriceForArbitrum(UpdatePriceExt[] calldata _price) external onlyPriceUpdater {\\n for (uint i = 0; i < _price.length; i++) {\\n UpdatePriceExt calldata _update = _price[i];\\n\\n _setPrice(_update.chainId, _update.price);\\n\\n uint64 gasPerL2Tx = _update.extend.gasPerL2Tx;\\n uint32 gasPerL1CalldataByte = _update.extend.gasPerL1CallDataByte;\\n\\n arbitrumPriceExt.gasPerL2Tx = gasPerL2Tx;\\n arbitrumPriceExt.gasPerL1CallDataByte = gasPerL1CalldataByte;\\n }\\n }\\n\\n function setNativeTokenPriceUSD(uint128 _nativeTokenPriceUSD) external onlyPriceUpdater {\\n nativeTokenPriceUSD = _nativeTokenPriceUSD;\\n }\\n\\n // ============================ Internal ==========================================\\n function _setPrice(uint16 chainId, Price memory _price) internal {\\n uint128 priceRatio = _price.priceRatio;\\n uint64 gasPriceInUnit = _price.gasPriceInUnit;\\n uint32 gasPerByte = _price.gasPerByte;\\n defaultModelPrice[chainId] = Price(priceRatio, gasPriceInUnit, gasPerByte);\\n }\\n\\n // For optimism l1 gas price lookup\\n function _getL1LookupId(uint16 _l2ChainId) internal pure returns (uint16) {\\n if (_l2ChainId == 111) {\\n return 101;\\n } else if (_l2ChainId == 10132) {\\n return 10121; // ethereum-goerli\\n } else if (_l2ChainId == 20132) {\\n return 20121; // ethereum-goerli\\n } else {\\n revert(\\\"PriceFeed: unknown l2 chain id\\\");\\n }\\n }\\n\\n // ============================ View ==========================================\\n\\n function getPrice(uint16 _dstChainId) external view override returns (Price memory price) {\\n price = defaultModelPrice[_dstChainId];\\n }\\n\\n function getPriceRatioDenominator() external view override returns (uint128) {\\n return PRICE_RATIO_DENOMINATOR;\\n }\\n\\n function estimateFeeByChain(\\n uint16 _dstChainId,\\n uint _callDataSize,\\n uint _gas\\n ) external view override returns (uint fee, uint128 priceRatio) {\\n if (_dstChainId == 110 || _dstChainId == 10143 || _dstChainId == 20143) {\\n return estimateFeeWithArbitrumModel(_dstChainId, _callDataSize, _gas);\\n } else if (_dstChainId == 111 || _dstChainId == 10132 || _dstChainId == 20132) {\\n return estimateFeeWithOptimismModel(_dstChainId, _callDataSize, _gas);\\n } else {\\n return estimateFeeWithDefaultModel(_dstChainId, _callDataSize, _gas);\\n }\\n }\\n\\n function estimateFeeWithDefaultModel(\\n uint16 _dstChainId,\\n uint _callDataSize,\\n uint _gas\\n ) public view returns (uint fee, uint128 priceRatio) {\\n Price storage remotePrice = defaultModelPrice[_dstChainId];\\n\\n // assuming the _gas includes (1) the 21,000 overhead and (2) not the calldata gas\\n uint gasForCallData = _callDataSize.mul(remotePrice.gasPerByte);\\n uint remoteFee = (gasForCallData.add(_gas)).mul(remotePrice.gasPriceInUnit);\\n return ((remoteFee.mul(remotePrice.priceRatio)).div(PRICE_RATIO_DENOMINATOR), remotePrice.priceRatio);\\n }\\n\\n function estimateFeeWithOptimismModel(\\n uint16 _dstChainId,\\n uint _callDataSize,\\n uint _gas\\n ) public view returns (uint fee, uint128 priceRatio) {\\n uint16 ethereumId = _getL1LookupId(_dstChainId);\\n\\n // L1 fee\\n Price storage ethereumPrice = defaultModelPrice[ethereumId];\\n uint gasForL1CallData = _callDataSize.mul(ethereumPrice.gasPerByte).add(3188); // 2100 + 68 * 16\\n uint l1Fee = gasForL1CallData.mul(ethereumPrice.gasPriceInUnit);\\n\\n // L2 fee\\n Price storage optimismPrice = defaultModelPrice[_dstChainId];\\n uint gasForL2CallData = _callDataSize.mul(optimismPrice.gasPerByte);\\n uint l2Fee = (gasForL2CallData.add(_gas)).mul(optimismPrice.gasPriceInUnit);\\n\\n uint l1FeeInSrcPrice = l1Fee.mul(ethereumPrice.priceRatio).div(PRICE_RATIO_DENOMINATOR);\\n uint l2FeeInSrcPrice = l2Fee.mul(optimismPrice.priceRatio).div(PRICE_RATIO_DENOMINATOR);\\n uint gasFee = l1FeeInSrcPrice.add(l2FeeInSrcPrice);\\n return (gasFee, optimismPrice.priceRatio);\\n }\\n\\n function estimateFeeWithArbitrumModel(\\n uint16 _dstChainId,\\n uint _callDataSize,\\n uint _gas\\n ) public view returns (uint fee, uint128 priceRatio) {\\n Price storage arbitrumPrice = defaultModelPrice[_dstChainId];\\n\\n // L1 fee\\n uint gasForL1CallData = _callDataSize.mul(ARBITRUM_COMPRESSION_PERCENT).div(100).mul(\\n arbitrumPriceExt.gasPerL1CallDataByte\\n );\\n // L2 Fee\\n uint gasForL2CallData = _callDataSize.mul(arbitrumPrice.gasPerByte);\\n uint gasFee = (_gas.add(arbitrumPriceExt.gasPerL2Tx).add(gasForL1CallData).add(gasForL2CallData)).mul(\\n arbitrumPrice.gasPriceInUnit\\n );\\n\\n return ((gasFee.mul(arbitrumPrice.priceRatio)).div(PRICE_RATIO_DENOMINATOR), arbitrumPrice.priceRatio);\\n }\\n}\\n\",\"keccak256\":\"0x7154927cf3bc0148f4e27ce0ad3401358d42e350fa0cd1a227e88b42d740c781\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroPriceFeed.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\npragma abicoder v2;\\n\\ninterface ILayerZeroPriceFeed {\\n /**\\n * @dev\\n * priceRatio: (USD price of 1 unit of remote native token in unit of local native token) * PRICE_RATIO_DENOMINATOR\\n */\\n\\n struct Price {\\n uint128 priceRatio; // float value * 10 ^ 10, decimal awared. for aptos to evm, the basis would be (10^18 / 10^8) * 10 ^10 = 10 ^ 20.\\n uint64 gasPriceInUnit; // for evm, it is in wei, for aptos, it is in octas.\\n uint32 gasPerByte;\\n }\\n\\n struct UpdatePrice {\\n uint16 chainId;\\n Price price;\\n }\\n\\n /**\\n * @dev\\n * ArbGasInfo.go:GetPricesInArbGas\\n *\\n */\\n struct ArbitrumPriceExt {\\n uint64 gasPerL2Tx; // L2 overhead\\n uint32 gasPerL1CallDataByte;\\n }\\n\\n struct UpdatePriceExt {\\n uint16 chainId;\\n Price price;\\n ArbitrumPriceExt extend;\\n }\\n\\n function getPrice(uint16 _dstChainId) external view returns (Price memory);\\n\\n function getPriceRatioDenominator() external view returns (uint128);\\n\\n function estimateFeeByChain(\\n uint16 _dstChainId,\\n uint _callDataSize,\\n uint _gas\\n ) external view returns (uint fee, uint128 priceRatio);\\n\\n function nativeTokenPriceUSD() external view returns (uint128);\\n}\\n\",\"keccak256\":\"0x4f339e20ed31d0d8ee7426bb2bd6fe6d5fa5ee3282af2a94438f6d06bd10fae1\",\"license\":\"BUSL-1.1\"},\"hardhat-deploy/solc_0.7/proxy/Proxied.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.7.0;\\n\\nabstract contract Proxied {\\n /// @notice to be used by initialisation / postUpgrade function so that only the proxy's admin can execute them\\n /// It also allows these functions to be called inside a contructor\\n /// even if the contract is meant to be used without proxy\\n modifier proxied() {\\n address proxyAdminAddress = _proxyAdmin();\\n // With hardhat-deploy proxies\\n // the proxyAdminAddress is zero only for the implementation contract\\n // if the implementation contract want to be used as a standalone/immutable contract\\n // it simply has to execute the `proxied` function\\n // This ensure the proxyAdminAddress is never zero post deployment\\n // And allow you to keep the same code for both proxied contract and immutable contract\\n if (proxyAdminAddress == address(0)) {\\n // ensure can not be called twice when used outside of proxy : no admin\\n // solhint-disable-next-line security/no-inline-assembly\\n assembly {\\n sstore(\\n 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103,\\n 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\\n )\\n }\\n } else {\\n require(msg.sender == proxyAdminAddress);\\n }\\n _;\\n }\\n\\n modifier onlyProxyAdmin() {\\n require(msg.sender == _proxyAdmin(), \\\"NOT_AUTHORIZED\\\");\\n _;\\n }\\n\\n function _proxyAdmin() internal view returns (address ownerAddress) {\\n // solhint-disable-next-line security/no-inline-assembly\\n assembly {\\n ownerAddress := sload(0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x760a00cd889372a2358732403723d8a13cb8b02bb82450a9bf5488177828aa79\",\"license\":\"MIT\"}},\"version\":1}",
|
|
545
|
+
"bytecode": "0x608060405234801561001057600080fd5b50611d88806100206000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c80638da5cb5b116100e3578063cd68b79b1161008c578063e15d16e811610066578063e15d16e814610320578063f2fde38b14610333578063ff37b496146103465761018d565b8063cd68b79b146102e5578063d350ad25146102ed578063e0ad121a146103005761018d565b8063ab1518ab116100bd578063ab1518ab146102b7578063c1840327146102ca578063c4d66de8146102d25761018d565b80638da5cb5b146102785780638f7002d21461028d57806392807f58146102af5761018d565b806352a7251011610145578063715018a61161011f578063715018a61461022f5780637bc3c9ab146102375780638ca2fb08146102585761018d565b806352a72510146101f65780635d6d7ccb14610209578063711746e21461021c5761018d565b80632f7cb0b4116101765780632f7cb0b4146101af57806336a5beba146101c25780633c04741e146101e15761018d565b806315527af6146101925780631824a46b146101a7575b600080fd5b6101a56101a036600461199c565b610359565b005b6101a56104a8565b6101a56101bd366004611acf565b61058c565b6101ca61064f565b6040516101d8929190611cbd565b60405180910390f35b6101e9610673565b6040516101d89190611c46565b6101a5610204366004611962565b61068b565b6101a5610217366004611acf565b610751565b6101a561022a366004611a0c565b6107e7565b6101a5610876565b61024a610245366004611b03565b610973565b6040516101d8929190611c9d565b61026b610266366004611941565b610a02565b6040516101d89190611b8a565b610280610a17565b6040516101d89190611b69565b6102a061029b366004611ae9565b610a33565b6040516101d893929190611c63565b6101e9610a9a565b61024a6102c5366004611b03565b610ab2565b6101e9610c6c565b6101a56102e0366004611941565b610c84565b6101e9610e41565b6101a56102fb366004611acf565b610e6d565b61031361030e366004611ae9565b610f3e565b6040516101d89190611c03565b61024a61032e366004611b03565b610fce565b6101a5610341366004611941565b61109e565b61024a610354366004611b03565b61120c565b33610362610a17565b73ffffffffffffffffffffffffffffffffffffffff16146103b5573360009081526066602052604090205460ff166103b55760405162461bcd60e51b81526004016103ac90611b95565b60405180910390fd5b60005b818110156104a357368383838181106103cd57fe5b60c0029190910191506103ff90506103e86020830183611ae9565b6103fa36849003840160208501611a6a565b61134e565b600061041160a0830160808401611b4f565b9050600061042560c0840160a08501611b35565b6068805463ffffffff90921668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff67ffffffffffffffff9095167fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090931692909217939093161790915550506001016103b8565b505050565b60006104b261146a565b905073ffffffffffffffffffffffffffffffffffffffff811661050b5773ffffffffffffffffffffffffffffffffffffffff7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035561052d565b3373ffffffffffffffffffffffffffffffffffffffff82161461052d57600080fd5b50606580546402540be4007fffffffffffffffffffffffffffffffff00000000000000000000000000000000909116179055606980546fffffffffffffffffffffffffffffffff16702f00000000000000000000000000000000179055565b61059461148f565b73ffffffffffffffffffffffffffffffffffffffff166105b2610a17565b73ffffffffffffffffffffffffffffffffffffffff161461061a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b606980546fffffffffffffffffffffffffffffffff928316700100000000000000000000000000000000029216919091179055565b60685467ffffffffffffffff81169068010000000000000000900463ffffffff1682565b6065546fffffffffffffffffffffffffffffffff1681565b61069361148f565b73ffffffffffffffffffffffffffffffffffffffff166106b1610a17565b73ffffffffffffffffffffffffffffffffffffffff1614610719576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff919091166000908152606660205260409020805460ff1916911515919091179055565b3361075a610a17565b73ffffffffffffffffffffffffffffffffffffffff16146107a4573360009081526066602052604090205460ff166107a45760405162461bcd60e51b81526004016103ac90611b95565b606980547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b336107f0610a17565b73ffffffffffffffffffffffffffffffffffffffff161461083a573360009081526066602052604090205460ff1661083a5760405162461bcd60e51b81526004016103ac90611b95565b60005b818110156104a3573683838381811061085257fe5b60800291909101915061086d90506103e86020830183611ae9565b5060010161083d565b61087e61148f565b73ffffffffffffffffffffffffffffffffffffffff1661089c610a17565b73ffffffffffffffffffffffffffffffffffffffff1614610904576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60335460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000808461ffff16606e148061098e57508461ffff1661279f145b8061099e57508461ffff16614eaf145b156109b7576109ae85858561120c565b915091506109fa565b8461ffff16606f14806109cf57508461ffff16612794145b806109df57508461ffff16614ea4145b156109ef576109ae858585610ab2565b6109ae858585610fce565b935093915050565b60666020526000908152604090205460ff1681565b60335473ffffffffffffffffffffffffffffffffffffffff1690565b6067602052600090815260409020546fffffffffffffffffffffffffffffffff811690700100000000000000000000000000000000810467ffffffffffffffff16907801000000000000000000000000000000000000000000000000900463ffffffff1683565b6069546fffffffffffffffffffffffffffffffff1681565b6000806000610ac086611493565b61ffff81166000908152606760205260408120805492935091610b1890610c7490610b12908a9063ffffffff78010000000000000000000000000000000000000000000000009091048116906114f516565b90611557565b8254909150600090610b49908390700100000000000000000000000000000000900467ffffffffffffffff166114f5565b61ffff8a166000908152606760205260408120805492935091610b93908b9063ffffffff78010000000000000000000000000000000000000000000000009091048116906114f516565b8254909150600090610bcd90700100000000000000000000000000000000900467ffffffffffffffff16610bc7848d611557565b906114f5565b6065548754919250600091610c03916fffffffffffffffffffffffffffffffff90811691610bfd918991166114f5565b906115b1565b6065548554919250600091610c33916fffffffffffffffffffffffffffffffff90811691610bfd918791166114f5565b90506000610c418383611557565b9554959f6fffffffffffffffffffffffffffffffff9096169e50949c50505050505050505050505050565b6065546fffffffffffffffffffffffffffffffff1690565b6000610c8e61146a565b905073ffffffffffffffffffffffffffffffffffffffff8116610ce75773ffffffffffffffffffffffffffffffffffffffff7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355610d09565b3373ffffffffffffffffffffffffffffffffffffffff821614610d0957600080fd5b600054610100900460ff1680610d225750610d22611618565b80610d30575060005460ff16155b610d6b5760405162461bcd60e51b815260040180806020018281038252602e815260200180611d04602e913960400191505060405180910390fd5b600054610100900460ff16158015610d96576000805460ff1961ff0019909116610100171660011790555b610d9e611629565b73ffffffffffffffffffffffffffffffffffffffff83166000908152606660205260409020805460ff19166001179055606580547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166402540be40017905560698054702f000000000000000000000000000000006fffffffffffffffffffffffffffffffff9190911617905580156104a3576000805461ff0019169055505050565b60695470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1681565b610e7561148f565b73ffffffffffffffffffffffffffffffffffffffff16610e93610a17565b73ffffffffffffffffffffffffffffffffffffffff1614610efb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b606580547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b610f4661189f565b5061ffff16600090815260676020908152604091829020825160608101845290546fffffffffffffffffffffffffffffffff81168252700100000000000000000000000000000000810467ffffffffffffffff1692820192909252780100000000000000000000000000000000000000000000000090910463ffffffff169181019190915290565b61ffff831660009081526067602052604081208054829190829061101990879063ffffffff78010000000000000000000000000000000000000000000000009091048116906114f516565b825490915060009061104d90700100000000000000000000000000000000900467ffffffffffffffff16610bc78489611557565b606554845491925061107a916fffffffffffffffffffffffffffffffff91821691610bfd918591166114f5565b925492986fffffffffffffffffffffffffffffffff90931697509195505050505050565b6110a661148f565b73ffffffffffffffffffffffffffffffffffffffff166110c4610a17565b73ffffffffffffffffffffffffffffffffffffffff161461112c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811661117e5760405162461bcd60e51b8152600401808060200182810382526026815260200180611cde6026913960400191505060405180910390fd5b60335460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61ffff83166000908152606760205260408120606854606954839291839161127d9168010000000000000000900463ffffffff90811691610bc791606491610bfd918c9170010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16906114f516565b82549091506000906112b690889063ffffffff78010000000000000000000000000000000000000000000000009091048116906114f516565b83546068549192506000916112fc9167ffffffffffffffff700100000000000000000000000000000000909104811691610bc7918691610b1291899183918f9116611557565b6065548554919250611329916fffffffffffffffffffffffffffffffff91821691610bfd918591166114f5565b935493996fffffffffffffffffffffffffffffffff9094169850929650505050505050565b805160208083015160409384015184516060810186526fffffffffffffffffffffffffffffffff948516815267ffffffffffffffff92831681850190815263ffffffff92831682880190815261ffff909816600090815260679095529590932092518354955196519091167801000000000000000000000000000000000000000000000000027fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff96909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff919094167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090951694909417939093169190911792909216179055565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b3390565b60008161ffff16606f14156114aa575060656114f0565b8161ffff1661279414156114c157506127896114f0565b8161ffff16614ea414156114d85750614e996114f0565b60405162461bcd60e51b81526004016103ac90611bcc565b919050565b60008261150457506000611551565b8282028284828161151157fe5b041461154e5760405162461bcd60e51b8152600401808060200182810382526021815260200180611d326021913960400191505060405180910390fd5b90505b92915050565b60008282018381101561154e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211611607576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161161057fe5b049392505050565b6000611623306116db565b15905090565b600054610100900460ff16806116425750611642611618565b80611650575060005460ff16155b61168b5760405162461bcd60e51b815260040180806020018281038252602e815260200180611d04602e913960400191505060405180910390fd5b600054610100900460ff161580156116b6576000805460ff1961ff0019909116610100171660011790555b6116be6116e1565b6116c6611781565b80156116d8576000805461ff00191690555b50565b3b151590565b600054610100900460ff16806116fa57506116fa611618565b80611708575060005460ff16155b6117435760405162461bcd60e51b815260040180806020018281038252602e815260200180611d04602e913960400191505060405180910390fd5b600054610100900460ff161580156116c6576000805460ff1961ff00199091166101001716600117905580156116d8576000805461ff001916905550565b600054610100900460ff168061179a575061179a611618565b806117a8575060005460ff16155b6117e35760405162461bcd60e51b815260040180806020018281038252602e815260200180611d04602e913960400191505060405180910390fd5b600054610100900460ff1615801561180e576000805460ff1961ff0019909116610100171660011790555b600061181861148f565b603380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156116d8576000805461ff001916905550565b604080516060810182526000808252602082018190529181019190915290565b803573ffffffffffffffffffffffffffffffffffffffff811681146114f057600080fd5b80356fffffffffffffffffffffffffffffffff811681146114f057600080fd5b803561ffff811681146114f057600080fd5b803563ffffffff811681146114f057600080fd5b803567ffffffffffffffff811681146114f057600080fd5b600060208284031215611952578081fd5b61195b826118bf565b9392505050565b60008060408385031215611974578081fd5b61197d836118bf565b915060208301358015158114611991578182fd5b809150509250929050565b600080602083850312156119ae578182fd5b823567ffffffffffffffff808211156119c5578384fd5b818501915085601f8301126119d8578384fd5b8135818111156119e6578485fd5b86602060c0830285010111156119fa578485fd5b60209290920196919550909350505050565b60008060208385031215611a1e578182fd5b823567ffffffffffffffff80821115611a35578384fd5b818501915085601f830112611a48578384fd5b813581811115611a56578485fd5b8660206080830285010111156119fa578485fd5b600060608284031215611a7b578081fd5b6040516060810181811067ffffffffffffffff82111715611a9857fe5b604052611aa4836118e3565b8152611ab260208401611929565b6020820152611ac360408401611915565b60408201529392505050565b600060208284031215611ae0578081fd5b61195b826118e3565b600060208284031215611afa578081fd5b61195b82611903565b600080600060608486031215611b17578081fd5b611b2084611903565b95602085013595506040909401359392505050565b600060208284031215611b46578081fd5b61195b82611915565b600060208284031215611b60578081fd5b61195b82611929565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b901515815260200190565b6020808252601c908201527f5072696365466565643a206e6f74207072696365207570646174657200000000604082015260600190565b6020808252601e908201527f5072696365466565643a20756e6b6e6f776e206c3220636861696e2069640000604082015260600190565b81516fffffffffffffffffffffffffffffffff16815260208083015167ffffffffffffffff169082015260409182015163ffffffff169181019190915260600190565b6fffffffffffffffffffffffffffffffff91909116815260200190565b6fffffffffffffffffffffffffffffffff93909316835267ffffffffffffffff91909116602083015263ffffffff16604082015260600190565b9182526fffffffffffffffffffffffffffffffff16602082015260400190565b67ffffffffffffffff92909216825263ffffffff1660208201526040019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122084d19d33e46396ac413d8a3748b5f0e89c0cc00faac0761f74a448ad28c3daa964736f6c63430007060033",
|
|
546
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061018d5760003560e01c80638da5cb5b116100e3578063cd68b79b1161008c578063e15d16e811610066578063e15d16e814610320578063f2fde38b14610333578063ff37b496146103465761018d565b8063cd68b79b146102e5578063d350ad25146102ed578063e0ad121a146103005761018d565b8063ab1518ab116100bd578063ab1518ab146102b7578063c1840327146102ca578063c4d66de8146102d25761018d565b80638da5cb5b146102785780638f7002d21461028d57806392807f58146102af5761018d565b806352a7251011610145578063715018a61161011f578063715018a61461022f5780637bc3c9ab146102375780638ca2fb08146102585761018d565b806352a72510146101f65780635d6d7ccb14610209578063711746e21461021c5761018d565b80632f7cb0b4116101765780632f7cb0b4146101af57806336a5beba146101c25780633c04741e146101e15761018d565b806315527af6146101925780631824a46b146101a7575b600080fd5b6101a56101a036600461199c565b610359565b005b6101a56104a8565b6101a56101bd366004611acf565b61058c565b6101ca61064f565b6040516101d8929190611cbd565b60405180910390f35b6101e9610673565b6040516101d89190611c46565b6101a5610204366004611962565b61068b565b6101a5610217366004611acf565b610751565b6101a561022a366004611a0c565b6107e7565b6101a5610876565b61024a610245366004611b03565b610973565b6040516101d8929190611c9d565b61026b610266366004611941565b610a02565b6040516101d89190611b8a565b610280610a17565b6040516101d89190611b69565b6102a061029b366004611ae9565b610a33565b6040516101d893929190611c63565b6101e9610a9a565b61024a6102c5366004611b03565b610ab2565b6101e9610c6c565b6101a56102e0366004611941565b610c84565b6101e9610e41565b6101a56102fb366004611acf565b610e6d565b61031361030e366004611ae9565b610f3e565b6040516101d89190611c03565b61024a61032e366004611b03565b610fce565b6101a5610341366004611941565b61109e565b61024a610354366004611b03565b61120c565b33610362610a17565b73ffffffffffffffffffffffffffffffffffffffff16146103b5573360009081526066602052604090205460ff166103b55760405162461bcd60e51b81526004016103ac90611b95565b60405180910390fd5b60005b818110156104a357368383838181106103cd57fe5b60c0029190910191506103ff90506103e86020830183611ae9565b6103fa36849003840160208501611a6a565b61134e565b600061041160a0830160808401611b4f565b9050600061042560c0840160a08501611b35565b6068805463ffffffff90921668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff67ffffffffffffffff9095167fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090931692909217939093161790915550506001016103b8565b505050565b60006104b261146a565b905073ffffffffffffffffffffffffffffffffffffffff811661050b5773ffffffffffffffffffffffffffffffffffffffff7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035561052d565b3373ffffffffffffffffffffffffffffffffffffffff82161461052d57600080fd5b50606580546402540be4007fffffffffffffffffffffffffffffffff00000000000000000000000000000000909116179055606980546fffffffffffffffffffffffffffffffff16702f00000000000000000000000000000000179055565b61059461148f565b73ffffffffffffffffffffffffffffffffffffffff166105b2610a17565b73ffffffffffffffffffffffffffffffffffffffff161461061a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b606980546fffffffffffffffffffffffffffffffff928316700100000000000000000000000000000000029216919091179055565b60685467ffffffffffffffff81169068010000000000000000900463ffffffff1682565b6065546fffffffffffffffffffffffffffffffff1681565b61069361148f565b73ffffffffffffffffffffffffffffffffffffffff166106b1610a17565b73ffffffffffffffffffffffffffffffffffffffff1614610719576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff919091166000908152606660205260409020805460ff1916911515919091179055565b3361075a610a17565b73ffffffffffffffffffffffffffffffffffffffff16146107a4573360009081526066602052604090205460ff166107a45760405162461bcd60e51b81526004016103ac90611b95565b606980547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b336107f0610a17565b73ffffffffffffffffffffffffffffffffffffffff161461083a573360009081526066602052604090205460ff1661083a5760405162461bcd60e51b81526004016103ac90611b95565b60005b818110156104a3573683838381811061085257fe5b60800291909101915061086d90506103e86020830183611ae9565b5060010161083d565b61087e61148f565b73ffffffffffffffffffffffffffffffffffffffff1661089c610a17565b73ffffffffffffffffffffffffffffffffffffffff1614610904576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60335460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000808461ffff16606e148061098e57508461ffff1661279f145b8061099e57508461ffff16614eaf145b156109b7576109ae85858561120c565b915091506109fa565b8461ffff16606f14806109cf57508461ffff16612794145b806109df57508461ffff16614ea4145b156109ef576109ae858585610ab2565b6109ae858585610fce565b935093915050565b60666020526000908152604090205460ff1681565b60335473ffffffffffffffffffffffffffffffffffffffff1690565b6067602052600090815260409020546fffffffffffffffffffffffffffffffff811690700100000000000000000000000000000000810467ffffffffffffffff16907801000000000000000000000000000000000000000000000000900463ffffffff1683565b6069546fffffffffffffffffffffffffffffffff1681565b6000806000610ac086611493565b61ffff81166000908152606760205260408120805492935091610b1890610c7490610b12908a9063ffffffff78010000000000000000000000000000000000000000000000009091048116906114f516565b90611557565b8254909150600090610b49908390700100000000000000000000000000000000900467ffffffffffffffff166114f5565b61ffff8a166000908152606760205260408120805492935091610b93908b9063ffffffff78010000000000000000000000000000000000000000000000009091048116906114f516565b8254909150600090610bcd90700100000000000000000000000000000000900467ffffffffffffffff16610bc7848d611557565b906114f5565b6065548754919250600091610c03916fffffffffffffffffffffffffffffffff90811691610bfd918991166114f5565b906115b1565b6065548554919250600091610c33916fffffffffffffffffffffffffffffffff90811691610bfd918791166114f5565b90506000610c418383611557565b9554959f6fffffffffffffffffffffffffffffffff9096169e50949c50505050505050505050505050565b6065546fffffffffffffffffffffffffffffffff1690565b6000610c8e61146a565b905073ffffffffffffffffffffffffffffffffffffffff8116610ce75773ffffffffffffffffffffffffffffffffffffffff7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355610d09565b3373ffffffffffffffffffffffffffffffffffffffff821614610d0957600080fd5b600054610100900460ff1680610d225750610d22611618565b80610d30575060005460ff16155b610d6b5760405162461bcd60e51b815260040180806020018281038252602e815260200180611d04602e913960400191505060405180910390fd5b600054610100900460ff16158015610d96576000805460ff1961ff0019909116610100171660011790555b610d9e611629565b73ffffffffffffffffffffffffffffffffffffffff83166000908152606660205260409020805460ff19166001179055606580547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166402540be40017905560698054702f000000000000000000000000000000006fffffffffffffffffffffffffffffffff9190911617905580156104a3576000805461ff0019169055505050565b60695470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1681565b610e7561148f565b73ffffffffffffffffffffffffffffffffffffffff16610e93610a17565b73ffffffffffffffffffffffffffffffffffffffff1614610efb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b606580547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b610f4661189f565b5061ffff16600090815260676020908152604091829020825160608101845290546fffffffffffffffffffffffffffffffff81168252700100000000000000000000000000000000810467ffffffffffffffff1692820192909252780100000000000000000000000000000000000000000000000090910463ffffffff169181019190915290565b61ffff831660009081526067602052604081208054829190829061101990879063ffffffff78010000000000000000000000000000000000000000000000009091048116906114f516565b825490915060009061104d90700100000000000000000000000000000000900467ffffffffffffffff16610bc78489611557565b606554845491925061107a916fffffffffffffffffffffffffffffffff91821691610bfd918591166114f5565b925492986fffffffffffffffffffffffffffffffff90931697509195505050505050565b6110a661148f565b73ffffffffffffffffffffffffffffffffffffffff166110c4610a17565b73ffffffffffffffffffffffffffffffffffffffff161461112c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811661117e5760405162461bcd60e51b8152600401808060200182810382526026815260200180611cde6026913960400191505060405180910390fd5b60335460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61ffff83166000908152606760205260408120606854606954839291839161127d9168010000000000000000900463ffffffff90811691610bc791606491610bfd918c9170010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16906114f516565b82549091506000906112b690889063ffffffff78010000000000000000000000000000000000000000000000009091048116906114f516565b83546068549192506000916112fc9167ffffffffffffffff700100000000000000000000000000000000909104811691610bc7918691610b1291899183918f9116611557565b6065548554919250611329916fffffffffffffffffffffffffffffffff91821691610bfd918591166114f5565b935493996fffffffffffffffffffffffffffffffff9094169850929650505050505050565b805160208083015160409384015184516060810186526fffffffffffffffffffffffffffffffff948516815267ffffffffffffffff92831681850190815263ffffffff92831682880190815261ffff909816600090815260679095529590932092518354955196519091167801000000000000000000000000000000000000000000000000027fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff96909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff919094167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090951694909417939093169190911792909216179055565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b3390565b60008161ffff16606f14156114aa575060656114f0565b8161ffff1661279414156114c157506127896114f0565b8161ffff16614ea414156114d85750614e996114f0565b60405162461bcd60e51b81526004016103ac90611bcc565b919050565b60008261150457506000611551565b8282028284828161151157fe5b041461154e5760405162461bcd60e51b8152600401808060200182810382526021815260200180611d326021913960400191505060405180910390fd5b90505b92915050565b60008282018381101561154e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211611607576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161161057fe5b049392505050565b6000611623306116db565b15905090565b600054610100900460ff16806116425750611642611618565b80611650575060005460ff16155b61168b5760405162461bcd60e51b815260040180806020018281038252602e815260200180611d04602e913960400191505060405180910390fd5b600054610100900460ff161580156116b6576000805460ff1961ff0019909116610100171660011790555b6116be6116e1565b6116c6611781565b80156116d8576000805461ff00191690555b50565b3b151590565b600054610100900460ff16806116fa57506116fa611618565b80611708575060005460ff16155b6117435760405162461bcd60e51b815260040180806020018281038252602e815260200180611d04602e913960400191505060405180910390fd5b600054610100900460ff161580156116c6576000805460ff1961ff00199091166101001716600117905580156116d8576000805461ff001916905550565b600054610100900460ff168061179a575061179a611618565b806117a8575060005460ff16155b6117e35760405162461bcd60e51b815260040180806020018281038252602e815260200180611d04602e913960400191505060405180910390fd5b600054610100900460ff1615801561180e576000805460ff1961ff0019909116610100171660011790555b600061181861148f565b603380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156116d8576000805461ff001916905550565b604080516060810182526000808252602082018190529181019190915290565b803573ffffffffffffffffffffffffffffffffffffffff811681146114f057600080fd5b80356fffffffffffffffffffffffffffffffff811681146114f057600080fd5b803561ffff811681146114f057600080fd5b803563ffffffff811681146114f057600080fd5b803567ffffffffffffffff811681146114f057600080fd5b600060208284031215611952578081fd5b61195b826118bf565b9392505050565b60008060408385031215611974578081fd5b61197d836118bf565b915060208301358015158114611991578182fd5b809150509250929050565b600080602083850312156119ae578182fd5b823567ffffffffffffffff808211156119c5578384fd5b818501915085601f8301126119d8578384fd5b8135818111156119e6578485fd5b86602060c0830285010111156119fa578485fd5b60209290920196919550909350505050565b60008060208385031215611a1e578182fd5b823567ffffffffffffffff80821115611a35578384fd5b818501915085601f830112611a48578384fd5b813581811115611a56578485fd5b8660206080830285010111156119fa578485fd5b600060608284031215611a7b578081fd5b6040516060810181811067ffffffffffffffff82111715611a9857fe5b604052611aa4836118e3565b8152611ab260208401611929565b6020820152611ac360408401611915565b60408201529392505050565b600060208284031215611ae0578081fd5b61195b826118e3565b600060208284031215611afa578081fd5b61195b82611903565b600080600060608486031215611b17578081fd5b611b2084611903565b95602085013595506040909401359392505050565b600060208284031215611b46578081fd5b61195b82611915565b600060208284031215611b60578081fd5b61195b82611929565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b901515815260200190565b6020808252601c908201527f5072696365466565643a206e6f74207072696365207570646174657200000000604082015260600190565b6020808252601e908201527f5072696365466565643a20756e6b6e6f776e206c3220636861696e2069640000604082015260600190565b81516fffffffffffffffffffffffffffffffff16815260208083015167ffffffffffffffff169082015260409182015163ffffffff169181019190915260600190565b6fffffffffffffffffffffffffffffffff91909116815260200190565b6fffffffffffffffffffffffffffffffff93909316835267ffffffffffffffff91909116602083015263ffffffff16604082015260600190565b9182526fffffffffffffffffffffffffffffffff16602082015260400190565b67ffffffffffffffff92909216825263ffffffff1660208201526040019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122084d19d33e46396ac413d8a3748b5f0e89c0cc00faac0761f74a448ad28c3daa964736f6c63430007060033",
|
|
547
|
+
"devdoc": {
|
|
548
|
+
"kind": "dev",
|
|
549
|
+
"methods": {
|
|
550
|
+
"owner()": {
|
|
551
|
+
"details": "Returns the address of the current owner."
|
|
552
|
+
},
|
|
553
|
+
"renounceOwnership()": {
|
|
554
|
+
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
|
|
555
|
+
},
|
|
556
|
+
"transferOwnership(address)": {
|
|
557
|
+
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"version": 1
|
|
561
|
+
},
|
|
562
|
+
"userdoc": {
|
|
563
|
+
"kind": "user",
|
|
564
|
+
"methods": {},
|
|
565
|
+
"version": 1
|
|
566
|
+
},
|
|
567
|
+
"storageLayout": {
|
|
568
|
+
"storage": [
|
|
569
|
+
{
|
|
570
|
+
"astId": 137,
|
|
571
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
572
|
+
"label": "_initialized",
|
|
573
|
+
"offset": 0,
|
|
574
|
+
"slot": "0",
|
|
575
|
+
"type": "t_bool"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"astId": 140,
|
|
579
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
580
|
+
"label": "_initializing",
|
|
581
|
+
"offset": 1,
|
|
582
|
+
"slot": "0",
|
|
583
|
+
"type": "t_bool"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"astId": 484,
|
|
587
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
588
|
+
"label": "__gap",
|
|
589
|
+
"offset": 0,
|
|
590
|
+
"slot": "1",
|
|
591
|
+
"type": "t_array(t_uint256)50_storage"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"astId": 10,
|
|
595
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
596
|
+
"label": "_owner",
|
|
597
|
+
"offset": 0,
|
|
598
|
+
"slot": "51",
|
|
599
|
+
"type": "t_address"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"astId": 129,
|
|
603
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
604
|
+
"label": "__gap",
|
|
605
|
+
"offset": 0,
|
|
606
|
+
"slot": "52",
|
|
607
|
+
"type": "t_array(t_uint256)49_storage"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"astId": 4857,
|
|
611
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
612
|
+
"label": "PRICE_RATIO_DENOMINATOR",
|
|
613
|
+
"offset": 0,
|
|
614
|
+
"slot": "101",
|
|
615
|
+
"type": "t_uint128"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"astId": 4861,
|
|
619
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
620
|
+
"label": "priceUpdater",
|
|
621
|
+
"offset": 0,
|
|
622
|
+
"slot": "102",
|
|
623
|
+
"type": "t_mapping(t_address,t_bool)"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"astId": 4865,
|
|
627
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
628
|
+
"label": "defaultModelPrice",
|
|
629
|
+
"offset": 0,
|
|
630
|
+
"slot": "103",
|
|
631
|
+
"type": "t_mapping(t_uint16,t_struct(Price)16687_storage)"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"astId": 4867,
|
|
635
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
636
|
+
"label": "arbitrumPriceExt",
|
|
637
|
+
"offset": 0,
|
|
638
|
+
"slot": "104",
|
|
639
|
+
"type": "t_struct(ArbitrumPriceExt)16697_storage"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"astId": 4870,
|
|
643
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
644
|
+
"label": "nativeTokenPriceUSD",
|
|
645
|
+
"offset": 0,
|
|
646
|
+
"slot": "105",
|
|
647
|
+
"type": "t_uint128"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"astId": 4872,
|
|
651
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
652
|
+
"label": "ARBITRUM_COMPRESSION_PERCENT",
|
|
653
|
+
"offset": 16,
|
|
654
|
+
"slot": "105",
|
|
655
|
+
"type": "t_uint128"
|
|
656
|
+
}
|
|
657
|
+
],
|
|
658
|
+
"types": {
|
|
659
|
+
"t_address": {
|
|
660
|
+
"encoding": "inplace",
|
|
661
|
+
"label": "address",
|
|
662
|
+
"numberOfBytes": "20"
|
|
663
|
+
},
|
|
664
|
+
"t_array(t_uint256)49_storage": {
|
|
665
|
+
"base": "t_uint256",
|
|
666
|
+
"encoding": "inplace",
|
|
667
|
+
"label": "uint256[49]",
|
|
668
|
+
"numberOfBytes": "1568"
|
|
669
|
+
},
|
|
670
|
+
"t_array(t_uint256)50_storage": {
|
|
671
|
+
"base": "t_uint256",
|
|
672
|
+
"encoding": "inplace",
|
|
673
|
+
"label": "uint256[50]",
|
|
674
|
+
"numberOfBytes": "1600"
|
|
675
|
+
},
|
|
676
|
+
"t_bool": {
|
|
677
|
+
"encoding": "inplace",
|
|
678
|
+
"label": "bool",
|
|
679
|
+
"numberOfBytes": "1"
|
|
680
|
+
},
|
|
681
|
+
"t_mapping(t_address,t_bool)": {
|
|
682
|
+
"encoding": "mapping",
|
|
683
|
+
"key": "t_address",
|
|
684
|
+
"label": "mapping(address => bool)",
|
|
685
|
+
"numberOfBytes": "32",
|
|
686
|
+
"value": "t_bool"
|
|
687
|
+
},
|
|
688
|
+
"t_mapping(t_uint16,t_struct(Price)16687_storage)": {
|
|
689
|
+
"encoding": "mapping",
|
|
690
|
+
"key": "t_uint16",
|
|
691
|
+
"label": "mapping(uint16 => struct ILayerZeroPriceFeed.Price)",
|
|
692
|
+
"numberOfBytes": "32",
|
|
693
|
+
"value": "t_struct(Price)16687_storage"
|
|
694
|
+
},
|
|
695
|
+
"t_struct(ArbitrumPriceExt)16697_storage": {
|
|
696
|
+
"encoding": "inplace",
|
|
697
|
+
"label": "struct ILayerZeroPriceFeed.ArbitrumPriceExt",
|
|
698
|
+
"members": [
|
|
699
|
+
{
|
|
700
|
+
"astId": 16694,
|
|
701
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
702
|
+
"label": "gasPerL2Tx",
|
|
703
|
+
"offset": 0,
|
|
704
|
+
"slot": "0",
|
|
705
|
+
"type": "t_uint64"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"astId": 16696,
|
|
709
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
710
|
+
"label": "gasPerL1CallDataByte",
|
|
711
|
+
"offset": 8,
|
|
712
|
+
"slot": "0",
|
|
713
|
+
"type": "t_uint32"
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
"numberOfBytes": "32"
|
|
717
|
+
},
|
|
718
|
+
"t_struct(Price)16687_storage": {
|
|
719
|
+
"encoding": "inplace",
|
|
720
|
+
"label": "struct ILayerZeroPriceFeed.Price",
|
|
721
|
+
"members": [
|
|
722
|
+
{
|
|
723
|
+
"astId": 16682,
|
|
724
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
725
|
+
"label": "priceRatio",
|
|
726
|
+
"offset": 0,
|
|
727
|
+
"slot": "0",
|
|
728
|
+
"type": "t_uint128"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"astId": 16684,
|
|
732
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
733
|
+
"label": "gasPriceInUnit",
|
|
734
|
+
"offset": 16,
|
|
735
|
+
"slot": "0",
|
|
736
|
+
"type": "t_uint64"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"astId": 16686,
|
|
740
|
+
"contract": "contracts/PriceFeed.sol:PriceFeed",
|
|
741
|
+
"label": "gasPerByte",
|
|
742
|
+
"offset": 24,
|
|
743
|
+
"slot": "0",
|
|
744
|
+
"type": "t_uint32"
|
|
745
|
+
}
|
|
746
|
+
],
|
|
747
|
+
"numberOfBytes": "32"
|
|
748
|
+
},
|
|
749
|
+
"t_uint128": {
|
|
750
|
+
"encoding": "inplace",
|
|
751
|
+
"label": "uint128",
|
|
752
|
+
"numberOfBytes": "16"
|
|
753
|
+
},
|
|
754
|
+
"t_uint16": {
|
|
755
|
+
"encoding": "inplace",
|
|
756
|
+
"label": "uint16",
|
|
757
|
+
"numberOfBytes": "2"
|
|
758
|
+
},
|
|
759
|
+
"t_uint256": {
|
|
760
|
+
"encoding": "inplace",
|
|
761
|
+
"label": "uint256",
|
|
762
|
+
"numberOfBytes": "32"
|
|
763
|
+
},
|
|
764
|
+
"t_uint32": {
|
|
765
|
+
"encoding": "inplace",
|
|
766
|
+
"label": "uint32",
|
|
767
|
+
"numberOfBytes": "4"
|
|
768
|
+
},
|
|
769
|
+
"t_uint64": {
|
|
770
|
+
"encoding": "inplace",
|
|
771
|
+
"label": "uint64",
|
|
772
|
+
"numberOfBytes": "8"
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|