@cryptonergy/smart-contracts-sdk 1.0.0-dev.8 → 1.0.0-dev.9
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/dist/types/typechain-types/@chainlink/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.d.ts +103 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/index.js +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.d.ts +54 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.js +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/index.js +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/MockPriceProvider.d.ts +113 -0
- package/dist/types/typechain-types/contracts/mocks/MockPriceProvider.js +1 -0
- package/dist/types/typechain-types/contracts/mocks/MockV3Aggregator.d.ts +75 -0
- package/dist/types/typechain-types/contracts/mocks/MockV3Aggregator.js +1 -0
- package/dist/types/typechain-types/contracts/mocks/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/oracle/IPriceProvider.d.ts +65 -0
- package/dist/types/typechain-types/contracts/oracle/IPriceProvider.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/OracleProviderRegistry.d.ts +246 -0
- package/dist/types/typechain-types/contracts/oracle/OracleProviderRegistry.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/OracleRouter.d.ts +395 -0
- package/dist/types/typechain-types/contracts/oracle/OracleRouter.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/index.d.ts +5 -0
- package/dist/types/typechain-types/contracts/oracle/index.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/providers/ChainlinkProvider.d.ts +116 -0
- package/dist/types/typechain-types/contracts/oracle/providers/ChainlinkProvider.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/providers/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/oracle/providers/index.js +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface__factory.d.ts +93 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface__factory.js +126 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/index.js +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +64 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.js +89 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.js +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.js +1 -0
- package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.js +1 -1
- package/dist/types/typechain-types/factories/contracts/VaultV1__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/VaultV1__factory.js +1 -1
- package/dist/types/typechain-types/factories/contracts/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/index.js +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/MockPriceProvider__factory.d.ts +218 -0
- package/dist/types/typechain-types/factories/contracts/mocks/MockPriceProvider__factory.js +291 -0
- package/dist/types/typechain-types/factories/contracts/mocks/MockV3Aggregator__factory.d.ts +110 -0
- package/dist/types/typechain-types/factories/contracts/mocks/MockV3Aggregator__factory.js +149 -0
- package/dist/types/typechain-types/factories/contracts/mocks/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/index.js +2 -0
- package/dist/types/typechain-types/factories/contracts/oracle/IPriceProvider__factory.d.ts +67 -0
- package/dist/types/typechain-types/factories/contracts/oracle/IPriceProvider__factory.js +94 -0
- package/dist/types/typechain-types/factories/contracts/oracle/OracleProviderRegistry__factory.d.ts +377 -0
- package/dist/types/typechain-types/factories/contracts/oracle/OracleProviderRegistry__factory.js +498 -0
- package/dist/types/typechain-types/factories/contracts/oracle/OracleRouter__factory.d.ts +623 -0
- package/dist/types/typechain-types/factories/contracts/oracle/OracleRouter__factory.js +822 -0
- package/dist/types/typechain-types/factories/contracts/oracle/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/oracle/index.js +7 -0
- package/dist/types/typechain-types/factories/contracts/oracle/providers/ChainlinkProvider__factory.d.ts +179 -0
- package/dist/types/typechain-types/factories/contracts/oracle/providers/ChainlinkProvider__factory.js +241 -0
- package/dist/types/typechain-types/factories/contracts/oracle/providers/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/oracle/providers/index.js +4 -0
- package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.js +1 -1
- package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.js +1 -1
- package/dist/types/typechain-types/factories/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/index.js +1 -0
- package/dist/types/typechain-types/index.d.ts +18 -0
- package/dist/types/typechain-types/index.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,822 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Contract, ContractFactory, Interface, } from "ethers";
|
|
5
|
+
const _abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [],
|
|
8
|
+
stateMutability: "nonpayable",
|
|
9
|
+
type: "constructor",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "target",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
name: "AddressEmptyCode",
|
|
20
|
+
type: "error",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "asset",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
name: "AllProvidersFailed",
|
|
31
|
+
type: "error",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
internalType: "address",
|
|
37
|
+
name: "asset",
|
|
38
|
+
type: "address",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "AssetPaused",
|
|
42
|
+
type: "error",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
inputs: [
|
|
46
|
+
{
|
|
47
|
+
internalType: "uint256",
|
|
48
|
+
name: "len",
|
|
49
|
+
type: "uint256",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "BadProvidersLen",
|
|
53
|
+
type: "error",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
inputs: [
|
|
57
|
+
{
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "provider",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
name: "DuplicateProvider",
|
|
64
|
+
type: "error",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [
|
|
68
|
+
{
|
|
69
|
+
internalType: "address",
|
|
70
|
+
name: "implementation",
|
|
71
|
+
type: "address",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
name: "ERC1967InvalidImplementation",
|
|
75
|
+
type: "error",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
inputs: [],
|
|
79
|
+
name: "ERC1967NonPayable",
|
|
80
|
+
type: "error",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
inputs: [],
|
|
84
|
+
name: "EmptyAssets",
|
|
85
|
+
type: "error",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: "FailedCall",
|
|
90
|
+
type: "error",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [
|
|
94
|
+
{
|
|
95
|
+
internalType: "uint256",
|
|
96
|
+
name: "index",
|
|
97
|
+
type: "uint256",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
internalType: "uint256",
|
|
101
|
+
name: "length",
|
|
102
|
+
type: "uint256",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
name: "IndexOutOfBounds",
|
|
106
|
+
type: "error",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
inputs: [],
|
|
110
|
+
name: "InvalidInitialization",
|
|
111
|
+
type: "error",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
inputs: [
|
|
115
|
+
{
|
|
116
|
+
internalType: "address",
|
|
117
|
+
name: "asset",
|
|
118
|
+
type: "address",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
name: "NoProviders",
|
|
122
|
+
type: "error",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
inputs: [],
|
|
126
|
+
name: "NotInitializing",
|
|
127
|
+
type: "error",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
inputs: [],
|
|
131
|
+
name: "OraclePaused",
|
|
132
|
+
type: "error",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
inputs: [
|
|
136
|
+
{
|
|
137
|
+
internalType: "address",
|
|
138
|
+
name: "owner",
|
|
139
|
+
type: "address",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
name: "OwnableInvalidOwner",
|
|
143
|
+
type: "error",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
inputs: [
|
|
147
|
+
{
|
|
148
|
+
internalType: "address",
|
|
149
|
+
name: "account",
|
|
150
|
+
type: "address",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
name: "OwnableUnauthorizedAccount",
|
|
154
|
+
type: "error",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
inputs: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "address",
|
|
160
|
+
name: "provider",
|
|
161
|
+
type: "address",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
name: "ProviderNotApproved",
|
|
165
|
+
type: "error",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
inputs: [
|
|
169
|
+
{
|
|
170
|
+
internalType: "uint256",
|
|
171
|
+
name: "len",
|
|
172
|
+
type: "uint256",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
name: "TooManyAssets",
|
|
176
|
+
type: "error",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
inputs: [],
|
|
180
|
+
name: "UUPSUnauthorizedCallContext",
|
|
181
|
+
type: "error",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
inputs: [
|
|
185
|
+
{
|
|
186
|
+
internalType: "bytes32",
|
|
187
|
+
name: "slot",
|
|
188
|
+
type: "bytes32",
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
name: "UUPSUnsupportedProxiableUUID",
|
|
192
|
+
type: "error",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
inputs: [],
|
|
196
|
+
name: "ZeroProvider",
|
|
197
|
+
type: "error",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
inputs: [],
|
|
201
|
+
name: "ZeroRegistry",
|
|
202
|
+
type: "error",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
anonymous: false,
|
|
206
|
+
inputs: [
|
|
207
|
+
{
|
|
208
|
+
indexed: true,
|
|
209
|
+
internalType: "address",
|
|
210
|
+
name: "asset",
|
|
211
|
+
type: "address",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
indexed: false,
|
|
215
|
+
internalType: "enum OracleTypes.AggMode",
|
|
216
|
+
name: "mode",
|
|
217
|
+
type: "uint8",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
indexed: false,
|
|
221
|
+
internalType: "uint16",
|
|
222
|
+
name: "maxDeviationBps",
|
|
223
|
+
type: "uint16",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
indexed: false,
|
|
227
|
+
internalType: "bool",
|
|
228
|
+
name: "paused",
|
|
229
|
+
type: "bool",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
name: "AssetCfgSet",
|
|
233
|
+
type: "event",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
anonymous: false,
|
|
237
|
+
inputs: [
|
|
238
|
+
{
|
|
239
|
+
indexed: false,
|
|
240
|
+
internalType: "bool",
|
|
241
|
+
name: "paused",
|
|
242
|
+
type: "bool",
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
name: "EmergencyPausedSet",
|
|
246
|
+
type: "event",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
anonymous: false,
|
|
250
|
+
inputs: [
|
|
251
|
+
{
|
|
252
|
+
indexed: false,
|
|
253
|
+
internalType: "uint64",
|
|
254
|
+
name: "version",
|
|
255
|
+
type: "uint64",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
name: "Initialized",
|
|
259
|
+
type: "event",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
anonymous: false,
|
|
263
|
+
inputs: [
|
|
264
|
+
{
|
|
265
|
+
indexed: true,
|
|
266
|
+
internalType: "address",
|
|
267
|
+
name: "previousOwner",
|
|
268
|
+
type: "address",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
indexed: true,
|
|
272
|
+
internalType: "address",
|
|
273
|
+
name: "newOwner",
|
|
274
|
+
type: "address",
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
name: "OwnershipTransferred",
|
|
278
|
+
type: "event",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
anonymous: false,
|
|
282
|
+
inputs: [
|
|
283
|
+
{
|
|
284
|
+
indexed: true,
|
|
285
|
+
internalType: "address",
|
|
286
|
+
name: "asset",
|
|
287
|
+
type: "address",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
indexed: false,
|
|
291
|
+
internalType: "uint256",
|
|
292
|
+
name: "price",
|
|
293
|
+
type: "uint256",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
name: "Poked",
|
|
297
|
+
type: "event",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
anonymous: false,
|
|
301
|
+
inputs: [
|
|
302
|
+
{
|
|
303
|
+
indexed: true,
|
|
304
|
+
internalType: "address",
|
|
305
|
+
name: "asset",
|
|
306
|
+
type: "address",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
indexed: true,
|
|
310
|
+
internalType: "address",
|
|
311
|
+
name: "provider",
|
|
312
|
+
type: "address",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
indexed: false,
|
|
316
|
+
internalType: "bool",
|
|
317
|
+
name: "enabled",
|
|
318
|
+
type: "bool",
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
name: "ProviderEnabledSet",
|
|
322
|
+
type: "event",
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
anonymous: false,
|
|
326
|
+
inputs: [
|
|
327
|
+
{
|
|
328
|
+
indexed: true,
|
|
329
|
+
internalType: "address",
|
|
330
|
+
name: "asset",
|
|
331
|
+
type: "address",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
indexed: false,
|
|
335
|
+
internalType: "uint256",
|
|
336
|
+
name: "count",
|
|
337
|
+
type: "uint256",
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
name: "ProvidersSet",
|
|
341
|
+
type: "event",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
anonymous: false,
|
|
345
|
+
inputs: [
|
|
346
|
+
{
|
|
347
|
+
indexed: true,
|
|
348
|
+
internalType: "address",
|
|
349
|
+
name: "registry",
|
|
350
|
+
type: "address",
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
name: "RegistrySet",
|
|
354
|
+
type: "event",
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
anonymous: false,
|
|
358
|
+
inputs: [
|
|
359
|
+
{
|
|
360
|
+
indexed: true,
|
|
361
|
+
internalType: "address",
|
|
362
|
+
name: "implementation",
|
|
363
|
+
type: "address",
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
name: "Upgraded",
|
|
367
|
+
type: "event",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
inputs: [],
|
|
371
|
+
name: "MAX_POKE_MANY",
|
|
372
|
+
outputs: [
|
|
373
|
+
{
|
|
374
|
+
internalType: "uint256",
|
|
375
|
+
name: "",
|
|
376
|
+
type: "uint256",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
stateMutability: "view",
|
|
380
|
+
type: "function",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
inputs: [],
|
|
384
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
385
|
+
outputs: [
|
|
386
|
+
{
|
|
387
|
+
internalType: "string",
|
|
388
|
+
name: "",
|
|
389
|
+
type: "string",
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
stateMutability: "view",
|
|
393
|
+
type: "function",
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
inputs: [
|
|
397
|
+
{
|
|
398
|
+
internalType: "address",
|
|
399
|
+
name: "",
|
|
400
|
+
type: "address",
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
name: "assetCfg",
|
|
404
|
+
outputs: [
|
|
405
|
+
{
|
|
406
|
+
internalType: "enum OracleTypes.AggMode",
|
|
407
|
+
name: "mode",
|
|
408
|
+
type: "uint8",
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
internalType: "uint16",
|
|
412
|
+
name: "maxDeviationBps",
|
|
413
|
+
type: "uint16",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
internalType: "bool",
|
|
417
|
+
name: "paused",
|
|
418
|
+
type: "bool",
|
|
419
|
+
},
|
|
420
|
+
],
|
|
421
|
+
stateMutability: "view",
|
|
422
|
+
type: "function",
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
inputs: [
|
|
426
|
+
{
|
|
427
|
+
internalType: "address",
|
|
428
|
+
name: "",
|
|
429
|
+
type: "address",
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
name: "cache",
|
|
433
|
+
outputs: [
|
|
434
|
+
{
|
|
435
|
+
internalType: "uint256",
|
|
436
|
+
name: "price",
|
|
437
|
+
type: "uint256",
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
internalType: "uint64",
|
|
441
|
+
name: "blockNumber",
|
|
442
|
+
type: "uint64",
|
|
443
|
+
},
|
|
444
|
+
],
|
|
445
|
+
stateMutability: "view",
|
|
446
|
+
type: "function",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
inputs: [],
|
|
450
|
+
name: "emergencyPaused",
|
|
451
|
+
outputs: [
|
|
452
|
+
{
|
|
453
|
+
internalType: "bool",
|
|
454
|
+
name: "",
|
|
455
|
+
type: "bool",
|
|
456
|
+
},
|
|
457
|
+
],
|
|
458
|
+
stateMutability: "view",
|
|
459
|
+
type: "function",
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
inputs: [
|
|
463
|
+
{
|
|
464
|
+
internalType: "address",
|
|
465
|
+
name: "asset",
|
|
466
|
+
type: "address",
|
|
467
|
+
},
|
|
468
|
+
],
|
|
469
|
+
name: "getPriceUSD",
|
|
470
|
+
outputs: [
|
|
471
|
+
{
|
|
472
|
+
internalType: "uint256",
|
|
473
|
+
name: "",
|
|
474
|
+
type: "uint256",
|
|
475
|
+
},
|
|
476
|
+
],
|
|
477
|
+
stateMutability: "view",
|
|
478
|
+
type: "function",
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
inputs: [
|
|
482
|
+
{
|
|
483
|
+
internalType: "address",
|
|
484
|
+
name: "asset",
|
|
485
|
+
type: "address",
|
|
486
|
+
},
|
|
487
|
+
],
|
|
488
|
+
name: "getProviders",
|
|
489
|
+
outputs: [
|
|
490
|
+
{
|
|
491
|
+
components: [
|
|
492
|
+
{
|
|
493
|
+
internalType: "address",
|
|
494
|
+
name: "provider",
|
|
495
|
+
type: "address",
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
internalType: "uint32",
|
|
499
|
+
name: "maxAge",
|
|
500
|
+
type: "uint32",
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
internalType: "bool",
|
|
504
|
+
name: "enabled",
|
|
505
|
+
type: "bool",
|
|
506
|
+
},
|
|
507
|
+
],
|
|
508
|
+
internalType: "struct OracleTypes.ProviderCfg[]",
|
|
509
|
+
name: "",
|
|
510
|
+
type: "tuple[]",
|
|
511
|
+
},
|
|
512
|
+
],
|
|
513
|
+
stateMutability: "view",
|
|
514
|
+
type: "function",
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
inputs: [
|
|
518
|
+
{
|
|
519
|
+
internalType: "address",
|
|
520
|
+
name: "owner_",
|
|
521
|
+
type: "address",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
internalType: "address",
|
|
525
|
+
name: "registry_",
|
|
526
|
+
type: "address",
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
name: "initialize",
|
|
530
|
+
outputs: [],
|
|
531
|
+
stateMutability: "nonpayable",
|
|
532
|
+
type: "function",
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
inputs: [
|
|
536
|
+
{
|
|
537
|
+
internalType: "address",
|
|
538
|
+
name: "",
|
|
539
|
+
type: "address",
|
|
540
|
+
},
|
|
541
|
+
],
|
|
542
|
+
name: "lastGoodPrice",
|
|
543
|
+
outputs: [
|
|
544
|
+
{
|
|
545
|
+
internalType: "uint256",
|
|
546
|
+
name: "",
|
|
547
|
+
type: "uint256",
|
|
548
|
+
},
|
|
549
|
+
],
|
|
550
|
+
stateMutability: "view",
|
|
551
|
+
type: "function",
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
inputs: [
|
|
555
|
+
{
|
|
556
|
+
internalType: "address",
|
|
557
|
+
name: "",
|
|
558
|
+
type: "address",
|
|
559
|
+
},
|
|
560
|
+
],
|
|
561
|
+
name: "lastGoodTs",
|
|
562
|
+
outputs: [
|
|
563
|
+
{
|
|
564
|
+
internalType: "uint64",
|
|
565
|
+
name: "",
|
|
566
|
+
type: "uint64",
|
|
567
|
+
},
|
|
568
|
+
],
|
|
569
|
+
stateMutability: "view",
|
|
570
|
+
type: "function",
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
inputs: [],
|
|
574
|
+
name: "owner",
|
|
575
|
+
outputs: [
|
|
576
|
+
{
|
|
577
|
+
internalType: "address",
|
|
578
|
+
name: "",
|
|
579
|
+
type: "address",
|
|
580
|
+
},
|
|
581
|
+
],
|
|
582
|
+
stateMutability: "view",
|
|
583
|
+
type: "function",
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
inputs: [
|
|
587
|
+
{
|
|
588
|
+
internalType: "address",
|
|
589
|
+
name: "asset",
|
|
590
|
+
type: "address",
|
|
591
|
+
},
|
|
592
|
+
],
|
|
593
|
+
name: "poke",
|
|
594
|
+
outputs: [
|
|
595
|
+
{
|
|
596
|
+
internalType: "uint256",
|
|
597
|
+
name: "price",
|
|
598
|
+
type: "uint256",
|
|
599
|
+
},
|
|
600
|
+
],
|
|
601
|
+
stateMutability: "nonpayable",
|
|
602
|
+
type: "function",
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
inputs: [
|
|
606
|
+
{
|
|
607
|
+
internalType: "address[]",
|
|
608
|
+
name: "assets",
|
|
609
|
+
type: "address[]",
|
|
610
|
+
},
|
|
611
|
+
],
|
|
612
|
+
name: "pokeMany",
|
|
613
|
+
outputs: [
|
|
614
|
+
{
|
|
615
|
+
internalType: "uint256[]",
|
|
616
|
+
name: "prices",
|
|
617
|
+
type: "uint256[]",
|
|
618
|
+
},
|
|
619
|
+
],
|
|
620
|
+
stateMutability: "nonpayable",
|
|
621
|
+
type: "function",
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
inputs: [],
|
|
625
|
+
name: "proxiableUUID",
|
|
626
|
+
outputs: [
|
|
627
|
+
{
|
|
628
|
+
internalType: "bytes32",
|
|
629
|
+
name: "",
|
|
630
|
+
type: "bytes32",
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
stateMutability: "view",
|
|
634
|
+
type: "function",
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
inputs: [],
|
|
638
|
+
name: "registry",
|
|
639
|
+
outputs: [
|
|
640
|
+
{
|
|
641
|
+
internalType: "contract OracleProviderRegistry",
|
|
642
|
+
name: "",
|
|
643
|
+
type: "address",
|
|
644
|
+
},
|
|
645
|
+
],
|
|
646
|
+
stateMutability: "view",
|
|
647
|
+
type: "function",
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
inputs: [],
|
|
651
|
+
name: "renounceOwnership",
|
|
652
|
+
outputs: [],
|
|
653
|
+
stateMutability: "nonpayable",
|
|
654
|
+
type: "function",
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
inputs: [
|
|
658
|
+
{
|
|
659
|
+
internalType: "address",
|
|
660
|
+
name: "asset",
|
|
661
|
+
type: "address",
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
components: [
|
|
665
|
+
{
|
|
666
|
+
internalType: "enum OracleTypes.AggMode",
|
|
667
|
+
name: "mode",
|
|
668
|
+
type: "uint8",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
internalType: "uint16",
|
|
672
|
+
name: "maxDeviationBps",
|
|
673
|
+
type: "uint16",
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
internalType: "bool",
|
|
677
|
+
name: "paused",
|
|
678
|
+
type: "bool",
|
|
679
|
+
},
|
|
680
|
+
],
|
|
681
|
+
internalType: "struct OracleTypes.AssetCfg",
|
|
682
|
+
name: "cfg",
|
|
683
|
+
type: "tuple",
|
|
684
|
+
},
|
|
685
|
+
],
|
|
686
|
+
name: "setAssetCfg",
|
|
687
|
+
outputs: [],
|
|
688
|
+
stateMutability: "nonpayable",
|
|
689
|
+
type: "function",
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
inputs: [
|
|
693
|
+
{
|
|
694
|
+
internalType: "bool",
|
|
695
|
+
name: "v",
|
|
696
|
+
type: "bool",
|
|
697
|
+
},
|
|
698
|
+
],
|
|
699
|
+
name: "setEmergencyPaused",
|
|
700
|
+
outputs: [],
|
|
701
|
+
stateMutability: "nonpayable",
|
|
702
|
+
type: "function",
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
inputs: [
|
|
706
|
+
{
|
|
707
|
+
internalType: "address",
|
|
708
|
+
name: "asset",
|
|
709
|
+
type: "address",
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
internalType: "uint256",
|
|
713
|
+
name: "index",
|
|
714
|
+
type: "uint256",
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
internalType: "bool",
|
|
718
|
+
name: "enabled",
|
|
719
|
+
type: "bool",
|
|
720
|
+
},
|
|
721
|
+
],
|
|
722
|
+
name: "setProviderEnabledByIndex",
|
|
723
|
+
outputs: [],
|
|
724
|
+
stateMutability: "nonpayable",
|
|
725
|
+
type: "function",
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
inputs: [
|
|
729
|
+
{
|
|
730
|
+
internalType: "address",
|
|
731
|
+
name: "asset",
|
|
732
|
+
type: "address",
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
components: [
|
|
736
|
+
{
|
|
737
|
+
internalType: "address",
|
|
738
|
+
name: "provider",
|
|
739
|
+
type: "address",
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
internalType: "uint32",
|
|
743
|
+
name: "maxAge",
|
|
744
|
+
type: "uint32",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
internalType: "bool",
|
|
748
|
+
name: "enabled",
|
|
749
|
+
type: "bool",
|
|
750
|
+
},
|
|
751
|
+
],
|
|
752
|
+
internalType: "struct OracleTypes.ProviderCfg[]",
|
|
753
|
+
name: "configs",
|
|
754
|
+
type: "tuple[]",
|
|
755
|
+
},
|
|
756
|
+
],
|
|
757
|
+
name: "setProviders",
|
|
758
|
+
outputs: [],
|
|
759
|
+
stateMutability: "nonpayable",
|
|
760
|
+
type: "function",
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
inputs: [
|
|
764
|
+
{
|
|
765
|
+
internalType: "address",
|
|
766
|
+
name: "newOwner",
|
|
767
|
+
type: "address",
|
|
768
|
+
},
|
|
769
|
+
],
|
|
770
|
+
name: "transferOwnership",
|
|
771
|
+
outputs: [],
|
|
772
|
+
stateMutability: "nonpayable",
|
|
773
|
+
type: "function",
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
inputs: [
|
|
777
|
+
{
|
|
778
|
+
internalType: "address",
|
|
779
|
+
name: "newImplementation",
|
|
780
|
+
type: "address",
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
internalType: "bytes",
|
|
784
|
+
name: "data",
|
|
785
|
+
type: "bytes",
|
|
786
|
+
},
|
|
787
|
+
],
|
|
788
|
+
name: "upgradeToAndCall",
|
|
789
|
+
outputs: [],
|
|
790
|
+
stateMutability: "payable",
|
|
791
|
+
type: "function",
|
|
792
|
+
},
|
|
793
|
+
];
|
|
794
|
+
const _bytecode = "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100d4565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100725760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d15780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516126346100fd600039600081816112240152818161124d015261139301526126346000f3fe6080604052600436106101355760003560e01c80637b103999116100ab5780639d0ab89f1161006f5780639d0ab89f146103e1578063ad3cb1cc14610401578063b1a997ac1461043f578063f2fde38b1461045f578063f8342edf1461047f578063ffe65f7e146104d957600080fd5b80637b103999146102d1578063834a36aa146103095780638429bbf6146103575780638da5cb5b146103845780638f80c130146103c157600080fd5b80634f1ef286116100fd5780634f1ef2861461023457806352d1902d146102475780635708447d1461025c5780636fd9fd0b1461027c578063715018a61461029c57806376af4abb146102b157600080fd5b8063040974251461013a5780630fbb742f1461019857806327c830a9146101bb5780633f20df9c146101e5578063485cc95514610212575b600080fd5b34801561014657600080fd5b50610180610155366004611ec1565b60016020526000908152604090205460ff8082169161ffff6101008204169163010000009091041683565b60405161018f93929190611ef4565b60405180910390f35b3480156101a457600080fd5b506101ad601481565b60405190815260200161018f565b3480156101c757600080fd5b506000546101d59060ff1681565b604051901515815260200161018f565b3480156101f157600080fd5b50610205610200366004611f30565b610506565b60405161018f9190611fa5565b34801561021e57600080fd5b5061023261022d366004611fe8565b61079a565b005b610232610242366004612037565b61090b565b34801561025357600080fd5b506101ad61092a565b34801561026857600080fd5b506101ad610277366004611ec1565b610947565b34801561028857600080fd5b50610232610297366004612100565b610a70565b3480156102a857600080fd5b50610232610b11565b3480156102bd57600080fd5b506102326102cc366004612141565b610b25565b3480156102dd57600080fd5b506006546102f1906001600160a01b031681565b6040516001600160a01b03909116815260200161018f565b34801561031557600080fd5b5061033f610324366004611ec1565b6005602052600090815260409020546001600160401b031681565b6040516001600160401b03909116815260200161018f565b34801561036357600080fd5b506101ad610372366004611ec1565b60046020526000908152604090205481565b34801561039057600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166102f1565b3480156103cd57600080fd5b506102326103dc3660046121d7565b610d9f565b3480156103ed57600080fd5b506102326103fc366004612219565b610e9f565b34801561040d57600080fd5b50610432604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018f919061225a565b34801561044b57600080fd5b506101ad61045a366004611ec1565b610eee565b34801561046b57600080fd5b5061023261047a366004611ec1565b611074565b34801561048b57600080fd5b506104bc61049a366004611ec1565b600360205260009081526040902080546001909101546001600160401b031682565b604080519283526001600160401b0390911660208301520161018f565b3480156104e557600080fd5b506104f96104f4366004611ec1565b6110b2565b60405161018f919061228d565b60005460609060ff161561052d5760405163e28b705360e01b815260040160405180910390fd5b816000819003610550576040516308fb0bd960e21b815260040160405180910390fd5b601481111561057a57604051630118a28760e21b8152600481018290526024015b60405180910390fd5b806001600160401b0381111561059257610592612021565b6040519080825280602002602001820160405280156105bb578160200160208202803683370190505b50915060005b818110156107925760008585838181106105dd576105dd6122ef565b90506020020160208101906105f29190611ec1565b6001600160a01b038116600090815260016020819052604080832081516060810190925280549495509293909291839160ff169081111561063557610635611ede565b600181111561064657610646611ede565b81529054610100810461ffff1660208301526301000000900460ff16151560409182015281015190915015610699576040516326e4b25d60e01b81526001600160a01b0383166004820152602401610571565b60006106a58383611151565b6040805180820182528281526001600160401b0343811660208084019182526001600160a01b0389166000908152600382528581209451855591516001909401805494841667ffffffffffffffff199586161790556004815284822086905560059052929092208054429093169290911691909117905586519091508190879086908110610735576107356122ef565b602002602001018181525050826001600160a01b03167f4889d7d38c1d1f265318505a98367d07d41591d6b7f9cc000f37ea92b8311daa8260405161077c91815260200190565b60405180910390a25050508060010190506105c1565b505092915050565b60006107a46111d7565b805490915060ff600160401b82041615906001600160401b03166000811580156107cb5750825b90506000826001600160401b031660011480156107e75750303b155b9050811580156107f5575080155b156108135760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561083d57845460ff60401b1916600160401b1785555b6001600160a01b03861661086457604051634a100d5960e01b815260040160405180910390fd5b61086d87611200565b610875611211565b600680546001600160a01b0319166001600160a01b0388169081179091556040517f27fe5f0c1c3b1ed427cc63d0f05759ffdecf9aec9e18d31ef366fc8a6cb5dc3b90600090a2831561090257845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610913611219565b61091c826112be565b61092682826112c6565b5050565b6000610934611388565b506000805160206125df83398151915290565b6000805460ff161561096c5760405163e28b705360e01b815260040160405180910390fd5b6001600160a01b0382166000908152600160208190526040808320815160608101909252805491929091839160ff909116908111156109ad576109ad611ede565b60018111156109be576109be611ede565b81529054610100810461ffff1660208301526301000000900460ff16151560409182015281015190915015610a11576040516326e4b25d60e01b81526001600160a01b0384166004820152602401610571565b6001600160a01b038316600090815260036020908152604091829020825180840190935280548352600101546001600160401b0390811691830182905243169003610a5e57519392505050565b610a688483611151565b949350505050565b610a786113d1565b6001600160a01b03821660009081526001602052604090208190610a9c8282612322565b50506001600160a01b0382167f9afbcd1e92cb42642960fbe680d338a9eea2c9a76d36ffc2f01e4e6f384f64fb610ad660208401846123ab565b610ae660408501602086016123c8565b610af66060860160408701612219565b604051610b0593929190611ef4565b60405180910390a25050565b610b196113d1565b610b23600061142c565b565b610b2d6113d1565b6006546001600160a01b031681801580610b475750600581115b15610b6857604051631889e4bd60e21b815260048101829052602401610571565b6001600160a01b0385166000908152600260205260408120610b8991611e70565b60005b81811015610d54576000858583818110610ba857610ba86122ef565b610bbe9260206060909202019081019150611ec1565b90506001600160a01b038116610be757604051633158a19160e01b815260040160405180910390fd5b60405163bd0efaab60e01b81526001600160a01b03828116600483015285169063bd0efaab90602401602060405180830381865afa158015610c2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5191906123e5565b610c795760405163335d67ab60e21b81526001600160a01b0382166004820152602401610571565b60005b82811015610cef57816001600160a01b0316878783818110610ca057610ca06122ef565b610cb69260206060909202019081019150611ec1565b6001600160a01b031603610ce757604051620b6af560e71b81526001600160a01b0383166004820152602401610571565b600101610c7c565b506001600160a01b0387166000908152600260205260409020868684818110610d1a57610d1a6122ef565b83546001810185556000948552602090942060609091029290920192919091019050610d468282612402565b505050806001019050610b8c565b50846001600160a01b03167f3cb4aefaf0e43c392f6dfba5805f98256793ce92a9d9962f371fb8b277a9601882604051610d9091815260200190565b60405180910390a25050505050565b610da76113d1565b6001600160a01b03831660009081526002602052604090208054801580610dd75750610dd46001826124ac565b84115b15610dff576040516363a056dd60e01b81526004810185905260248101829052604401610571565b82828581548110610e1257610e126122ef565b9060005260206000200160000160186101000a81548160ff021916908315150217905550818481548110610e4857610e486122ef565b6000918252602091829020015460405185151581526001600160a01b0391821692918816917fddbcf96a7f2d27dda1d0a35eddd99517a6afd48b1e0a8742e735622639168301910160405180910390a35050505050565b610ea76113d1565b6000805460ff19168215159081179091556040519081527f67b87bac99aceeeec70234e4dc5457cd15e676319cbc6aff01c99de7235ba5449060200160405180910390a150565b6000805460ff1615610f135760405163e28b705360e01b815260040160405180910390fd5b6001600160a01b0382166000908152600160208190526040808320815160608101909252805491929091839160ff90911690811115610f5457610f54611ede565b6001811115610f6557610f65611ede565b81529054610100810461ffff1660208301526301000000900460ff16151560409182015281015190915015610fb8576040516326e4b25d60e01b81526001600160a01b0384166004820152602401610571565b610fc28382611151565b6040805180820182528281526001600160401b0343811660208084019182526001600160a01b0389166000818152600383528681209551865592516001909501805495851667ffffffffffffffff1996871617905560048252858320879055600582529185902080544290941693909416929092179092559151838152929450917f4889d7d38c1d1f265318505a98367d07d41591d6b7f9cc000f37ea92b8311daa910160405180910390a250919050565b61107c6113d1565b6001600160a01b0381166110a657604051631e4fbdf760e01b815260006004820152602401610571565b6110af8161142c565b50565b6001600160a01b0381166000908152600260209081526040808320805482518185028101850190935280835260609492939192909184015b8282101561114657600084815260209081902060408051606081018252918501546001600160a01b0381168352600160a01b810463ffffffff1683850152600160c01b900460ff161515908201528252600190920191016110ea565b505050509050919050565b6001600160a01b0382166000908152600260205260408120805482036111955760405163784676f760e01b81526001600160a01b0385166004820152602401610571565b6000835160018111156111aa576111aa611ede565b036111c2576111ba84848361149d565b9150506111d1565b6111cd8484836116c9565b9150505b92915050565b6000807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006111d1565b611208611a20565b6110af81611a45565b610b23611a20565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806112a057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166112946000805160206125df833981519152546001600160a01b031690565b6001600160a01b031614155b15610b235760405163703e46dd60e11b815260040160405180910390fd5b6110af6113d1565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611320575060408051601f3d908101601f1916820190925261131d918101906124bf565b60015b61134857604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610571565b6000805160206125df833981519152811461137957604051632a87526960e21b815260048101829052602401610571565b6113838383611a4d565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b235760405163703e46dd60e11b815260040160405180910390fd5b336114037f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610b235760405163118cdaa760e01b8152336004820152602401610571565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b6000805b825481101561169d578281815481106114bc576114bc6122ef565b600091825260209091200154600160c01b900460ff1615611695578281815481106114e9576114e96122ef565b600091825260209091200154604051634f129c5360e01b81526001600160a01b03878116600483015290911690634f129c5390602401602060405180830381865afa925050508015611558575060408051601f3d908101601f19168201909252611555918101906123e5565b60015b1561169557806115685750611695565b5082818154811061157b5761157b6122ef565b6000918252602090912001546040516341976e0960e01b81526001600160a01b038781166004830152909116906341976e0990602401608060405180830381865afa9250505080156115ea575060408051601f3d908101601f191682019092526115e7918101906124d8565b60015b15611695578015806115fa575083155b156116085750505050611695565b86858154811061161a5761161a6122ef565b600091825260209091200154600160a01b900463ffffffff1661163d84426124ac565b111561164c5750505050611695565b6000806116598685611aa3565b915091508161166d57505050505050611695565b6116788b8b83611b53565b61168757505050505050611695565b96506116c295505050505050565b6001016114a1565b50604051634484783760e01b81526001600160a01b0385166004820152602401610571565b9392505050565b805460009081906001600160401b038111156116e7576116e7612021565b604051908082528060200260200182016040528015611710578160200160208202803683370190505b5090506000805b845481101561193557848181548110611732576117326122ef565b600091825260209091200154600160c01b900460ff161561192d5784818154811061175f5761175f6122ef565b600091825260209091200154604051634f129c5360e01b81526001600160a01b03898116600483015290911690634f129c5390602401602060405180830381865afa9250505080156117ce575060408051601f3d908101601f191682019092526117cb918101906123e5565b60015b1561192d57806117de575061192d565b508481815481106117f1576117f16122ef565b6000918252602090912001546040516341976e0960e01b81526001600160a01b038981166004830152909116906341976e0990602401608060405180830381865afa925050508015611860575060408051601f3d908101601f1916820190925261185d918101906124d8565b60015b1561192d57801580611870575083155b1561187e575050505061192d565b888581548110611890576118906122ef565b600091825260209091200154600160a01b900463ffffffff166118b384426124ac565b11156118c2575050505061192d565b6000806118cf8685611aa3565b91509150816118e35750505050505061192d565b6118ee8d8d83611b53565b6118fd5750505050505061192d565b80898981518110611910576119106122ef565b60209081029190910101526119248861252a565b97505050505050505b600101611717565b508060000361196257604051634484783760e01b81526001600160a01b0387166004820152602401610571565b61196c8282611bb9565b611977600282612559565b6001036119ab578161198a60028361256d565b8151811061199a5761199a6122ef565b6020026020010151925050506116c2565b6002826119b8828461256d565b815181106119c8576119c86122ef565b60200260200101518360016002856119e0919061256d565b6119ea91906124ac565b815181106119fa576119fa6122ef565b6020026020010151611a0c9190612581565b611a16919061256d565b9695505050505050565b611a28611c98565b610b2357604051631afcd79f60e31b815260040160405180910390fd5b61107c611a20565b611a5682611cb2565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115611a9b576113838282611d17565b610926611d8d565b600080603660ff84161115611abd57506000905080611b4c565b8260ff16601203611ad357506001905082611b4c565b60128360ff161015611b295760ff601284900316600a0a8415801590611b0a5750808582870281611b0657611b06612543565b0414155b15611b1c576000809250925050611b4c565b6001925084029050611b4c565b60ff601119840116600a0a6001818681611b4557611b45612543565b0492509250505b9250929050565b6001600160a01b038316600090815260046020908152604082205490840151811580611b81575061ffff8116155b15611b91576001925050506116c2565b6000611b9d8386611dac565b9050611bae61ffff83166001612581565b119695505050505050565b60015b81811015611383576000838281518110611bd857611bd86122ef565b6020026020010151905060008290505b600081118015611c1a57508185611c006001846124ac565b81518110611c1057611c106122ef565b6020026020010151115b15611c705784611c2b6001836124ac565b81518110611c3b57611c3b6122ef565b6020026020010151858281518110611c5557611c556122ef565b6020908102919091010152611c6981612594565b9050611be8565b81858281518110611c8357611c836122ef565b60209081029190910101525050600101611bbc565b6000611ca26111d7565b54600160401b900460ff16919050565b806001600160a01b03163b600003611ce857604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610571565b6000805160206125df83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051611d3491906125ab565b600060405180830381855af49150503d8060008114611d6f576040519150601f19603f3d011682016040523d82523d6000602084013e611d74565b606091505b5091509150611d84858383611dcf565b95945050505050565b3415610b235760405163b398979f60e01b815260040160405180910390fd5b600082611db98484611e2b565b611dc5906127106125c7565b6116c2919061256d565b606082611de457611ddf82611e48565b6116c2565b8151158015611dfb57506001600160a01b0384163b155b15611e2457604051639996b31560e01b81526001600160a01b0385166004820152602401610571565b50806116c2565b6000818311611e3e57611ddf83836124ac565b6116c282846124ac565b805115611e5757805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b50805460008255906000526020600020908101906110af91905b80821115611ea85780546001600160c81b0319168155600101611e8a565b5090565b6001600160a01b03811681146110af57600080fd5b600060208284031215611ed357600080fd5b81356116c281611eac565b634e487b7160e01b600052602160045260246000fd5b6060810160028510611f1657634e487b7160e01b600052602160045260246000fd5b93815261ffff929092166020830152151560409091015290565b60008060208385031215611f4357600080fd5b82356001600160401b03811115611f5957600080fd5b8301601f81018513611f6a57600080fd5b80356001600160401b03811115611f8057600080fd5b8560208260051b8401011115611f9557600080fd5b6020919091019590945092505050565b602080825282518282018190526000918401906040840190835b81811015611fdd578351835260209384019390920191600101611fbf565b509095945050505050565b60008060408385031215611ffb57600080fd5b823561200681611eac565b9150602083013561201681611eac565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561204a57600080fd5b823561205581611eac565b915060208301356001600160401b0381111561207057600080fd5b8301601f8101851361208157600080fd5b80356001600160401b0381111561209a5761209a612021565b604051601f8201601f19908116603f011681016001600160401b03811182821017156120c8576120c8612021565b6040528181528282016020018710156120e057600080fd5b816020840160208301376000602083830101528093505050509250929050565b600080828403608081121561211457600080fd5b833561211f81611eac565b92506060601f198201121561213357600080fd5b506020830190509250929050565b60008060006040848603121561215657600080fd5b833561216181611eac565b925060208401356001600160401b0381111561217c57600080fd5b8401601f8101861361218d57600080fd5b80356001600160401b038111156121a357600080fd5b8660206060830284010111156121b857600080fd5b939660209190910195509293505050565b80151581146110af57600080fd5b6000806000606084860312156121ec57600080fd5b83356121f781611eac565b925060208401359150604084013561220e816121c9565b809150509250925092565b60006020828403121561222b57600080fd5b81356116c2816121c9565b60005b83811015612251578181015183820152602001612239565b50506000910152565b6020815260008251806020840152612279816040850160208701612236565b601f01601f19169190910160400192915050565b602080825282518282018190526000918401906040840190835b81811015611fdd57835180516001600160a01b0316845260208082015163ffffffff1681860152604091820151151591850191909152909301926060909201916001016122a7565b634e487b7160e01b600052603260045260246000fd5b600281106110af57600080fd5b61ffff811681146110af57600080fd5b813561232d81612305565b6002811061234b57634e487b7160e01b600052602160045260246000fd5b815460ff821691508160ff198216178355602084013561236a81612312565b62ffff008160081b168362ffffff198416171784555050506040820135612390816121c9565b815463ff000000191690151560181b63ff0000001617905550565b6000602082840312156123bd57600080fd5b81356116c281612305565b6000602082840312156123da57600080fd5b81356116c281612312565b6000602082840312156123f757600080fd5b81516116c2816121c9565b813561240d81611eac565b81546001600160a01b031981166001600160a01b03929092169182178355602084013563ffffffff8116811461244257600080fd5b63ffffffff60a01b60a09190911b166001600160c01b031982168317811784556040850135612470816121c9565b6001600160c81b0319929092169092179190911790151560c01b60ff60c01b1617905550565b634e487b7160e01b600052601160045260246000fd5b818103818111156111d1576111d1612496565b6000602082840312156124d157600080fd5b5051919050565b600080600080608085870312156124ee57600080fd5b845160208601516040870151919550935060ff8116811461250e57600080fd5b606086015190925061251f816121c9565b939692955090935050565b60006001820161253c5761253c612496565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261256857612568612543565b500690565b60008261257c5761257c612543565b500490565b808201808211156111d1576111d1612496565b6000816125a3576125a3612496565b506000190190565b600082516125bd818460208701612236565b9190910192915050565b80820281158282048414176111d1576111d161249656fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201bb3c8b7eb27d79842e64ec94c847b6b516c8de18d5a03ca88de17843a468a8964736f6c634300081c0033";
|
|
795
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
796
|
+
export class OracleRouter__factory extends ContractFactory {
|
|
797
|
+
constructor(...args) {
|
|
798
|
+
if (isSuperArgs(args)) {
|
|
799
|
+
super(...args);
|
|
800
|
+
}
|
|
801
|
+
else {
|
|
802
|
+
super(_abi, _bytecode, args[0]);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
getDeployTransaction(overrides) {
|
|
806
|
+
return super.getDeployTransaction(overrides || {});
|
|
807
|
+
}
|
|
808
|
+
deploy(overrides) {
|
|
809
|
+
return super.deploy(overrides || {});
|
|
810
|
+
}
|
|
811
|
+
connect(runner) {
|
|
812
|
+
return super.connect(runner);
|
|
813
|
+
}
|
|
814
|
+
static createInterface() {
|
|
815
|
+
return new Interface(_abi);
|
|
816
|
+
}
|
|
817
|
+
static connect(address, runner) {
|
|
818
|
+
return new Contract(address, _abi, runner);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
OracleRouter__factory.bytecode = _bytecode;
|
|
822
|
+
OracleRouter__factory.abi = _abi;
|