@venusprotocol/protocol-reserve 1.4.0 → 1.5.0-dev.2

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.
Files changed (133) hide show
  1. package/deployments/bscmainnet/RiskFundV2.json +78 -14
  2. package/deployments/bscmainnet/solcInputs/e599bc05495d18590ac88167d546a0ef.json +228 -0
  3. package/deployments/bscmainnet.json +49 -1
  4. package/deployments/bscmainnet_addresses.json +1 -1
  5. package/dist/deploy/006-risk-fund-v2.d.ts +7 -0
  6. package/dist/deploy/006-risk-fund-v2.d.ts.map +1 -0
  7. package/dist/deploy/006-risk-fund-v2.js +25 -0
  8. package/dist/deploy/006-risk-fund-v2.js.map +1 -0
  9. package/package.json +2 -3
  10. package/typechain/AbstractTokenConverter.d.ts +0 -1775
  11. package/typechain/AccessControl.d.ts +0 -388
  12. package/typechain/AccessControlledV8.d.ts +0 -341
  13. package/typechain/BeaconProxy.d.ts +0 -126
  14. package/typechain/BoundValidatorInterface.d.ts +0 -126
  15. package/typechain/ContextUpgradeable.d.ts +0 -92
  16. package/typechain/ConverterNetwork.d.ts +0 -723
  17. package/typechain/ERC165.d.ts +0 -116
  18. package/typechain/ERC1967Upgrade.d.ts +0 -126
  19. package/typechain/ERC20.d.ts +0 -441
  20. package/typechain/IAbstractTokenConverter.d.ts +0 -773
  21. package/typechain/IAccessControl.d.ts +0 -333
  22. package/typechain/IAccessControlManagerV8.d.ts +0 -504
  23. package/typechain/IBeacon.d.ts +0 -101
  24. package/typechain/IComptroller.d.ts +0 -136
  25. package/typechain/IConverterNetwork.d.ts +0 -292
  26. package/typechain/IERC165.d.ts +0 -116
  27. package/typechain/IERC1822Proxiable.d.ts +0 -101
  28. package/typechain/IERC1967.d.ts +0 -126
  29. package/typechain/IERC20.d.ts +0 -324
  30. package/typechain/IERC20Metadata.d.ts +0 -363
  31. package/typechain/IERC20PermitUpgradeable.d.ts +0 -187
  32. package/typechain/IERC20Upgradeable.d.ts +0 -324
  33. package/typechain/IIncomeDestination.d.ts +0 -122
  34. package/typechain/IPoolRegistry.d.ts +0 -155
  35. package/typechain/IProtocolShareReserve.d.ts +0 -127
  36. package/typechain/IRiskFund.d.ts +0 -200
  37. package/typechain/IRiskFundConverter.d.ts +0 -138
  38. package/typechain/IRiskFundGetters.d.ts +0 -103
  39. package/typechain/IShortfall.d.ts +0 -110
  40. package/typechain/IVToken.d.ts +0 -98
  41. package/typechain/IXVSVault.d.ts +0 -95
  42. package/typechain/Initializable.d.ts +0 -92
  43. package/typechain/MaxLoopsLimitHelper.d.ts +0 -128
  44. package/typechain/MaxLoopsLimitHelpersStorage.d.ts +0 -101
  45. package/typechain/MockACM.d.ts +0 -615
  46. package/typechain/MockArraySorter.d.ts +0 -118
  47. package/typechain/MockConverter.d.ts +0 -1969
  48. package/typechain/MockDeflatingToken.d.ts +0 -486
  49. package/typechain/MockRiskFundConverter.d.ts +0 -2479
  50. package/typechain/MockToken.d.ts +0 -505
  51. package/typechain/OracleInterface.d.ts +0 -98
  52. package/typechain/Ownable.d.ts +0 -181
  53. package/typechain/Ownable2StepUpgradeable.d.ts +0 -261
  54. package/typechain/OwnableUpgradeable.d.ts +0 -193
  55. package/typechain/PausableUpgradeable.d.ts +0 -129
  56. package/typechain/ProtocolShareReserve.d.ts +0 -1214
  57. package/typechain/Proxy.d.ts +0 -78
  58. package/typechain/ReentrancyGuardUpgradeable.d.ts +0 -92
  59. package/typechain/ReserveHelpersStorage.d.ts +0 -300
  60. package/typechain/ResilientOracle.d.ts +0 -1034
  61. package/typechain/ResilientOracleInterface.d.ts +0 -192
  62. package/typechain/RiskFundConverter.d.ts +0 -2235
  63. package/typechain/RiskFundV1Storage.d.ts +0 -353
  64. package/typechain/RiskFundV2.d.ts +0 -965
  65. package/typechain/RiskFundV2Storage.d.ts +0 -372
  66. package/typechain/SingleTokenConverter.d.ts +0 -1944
  67. package/typechain/TwapInterface.d.ts +0 -124
  68. package/typechain/UpgradeableBeacon.d.ts +0 -240
  69. package/typechain/VBep20Interface.d.ts +0 -379
  70. package/typechain/XVSVaultTreasury.d.ts +0 -515
  71. package/typechain/common.d.ts +0 -35
  72. package/typechain/factories/AbstractTokenConverter__factory.ts +0 -1297
  73. package/typechain/factories/AccessControl__factory.ts +0 -227
  74. package/typechain/factories/AccessControlledV8__factory.ts +0 -196
  75. package/typechain/factories/BeaconProxy__factory.ts +0 -133
  76. package/typechain/factories/BoundValidatorInterface__factory.ts +0 -59
  77. package/typechain/factories/ContextUpgradeable__factory.ts +0 -39
  78. package/typechain/factories/ConverterNetwork__factory.ts +0 -502
  79. package/typechain/factories/ERC165__factory.ts +0 -39
  80. package/typechain/factories/ERC1967Upgrade__factory.ts +0 -71
  81. package/typechain/factories/ERC20__factory.ts +0 -340
  82. package/typechain/factories/IAbstractTokenConverter__factory.ts +0 -466
  83. package/typechain/factories/IAccessControlManagerV8__factory.ts +0 -301
  84. package/typechain/factories/IAccessControl__factory.ts +0 -198
  85. package/typechain/factories/IBeacon__factory.ts +0 -36
  86. package/typechain/factories/IComptroller__factory.ts +0 -68
  87. package/typechain/factories/IConverterNetwork__factory.ts +0 -142
  88. package/typechain/factories/IERC165__factory.ts +0 -42
  89. package/typechain/factories/IERC1822Proxiable__factory.ts +0 -39
  90. package/typechain/factories/IERC1967__factory.ts +0 -68
  91. package/typechain/factories/IERC20Metadata__factory.ts +0 -248
  92. package/typechain/factories/IERC20PermitUpgradeable__factory.ts +0 -105
  93. package/typechain/factories/IERC20Upgradeable__factory.ts +0 -209
  94. package/typechain/factories/IERC20__factory.ts +0 -203
  95. package/typechain/factories/IIncomeDestination__factory.ts +0 -44
  96. package/typechain/factories/IPoolRegistry__factory.ts +0 -66
  97. package/typechain/factories/IProtocolShareReserve__factory.ts +0 -53
  98. package/typechain/factories/IRiskFundConverter__factory.ts +0 -63
  99. package/typechain/factories/IRiskFundGetters__factory.ts +0 -39
  100. package/typechain/factories/IRiskFund__factory.ts +0 -89
  101. package/typechain/factories/IShortfall__factory.ts +0 -36
  102. package/typechain/factories/IVToken__factory.ts +0 -36
  103. package/typechain/factories/IXVSVault__factory.ts +0 -36
  104. package/typechain/factories/Initializable__factory.ts +0 -36
  105. package/typechain/factories/MaxLoopsLimitHelper__factory.ts +0 -74
  106. package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +0 -75
  107. package/typechain/factories/MockACM__factory.ts +0 -411
  108. package/typechain/factories/MockArraySorter__factory.ts +0 -85
  109. package/typechain/factories/MockConverter__factory.ts +0 -1439
  110. package/typechain/factories/MockDeflatingToken__factory.ts +0 -389
  111. package/typechain/factories/MockRiskFundConverter__factory.ts +0 -1828
  112. package/typechain/factories/MockToken__factory.ts +0 -398
  113. package/typechain/factories/OracleInterface__factory.ts +0 -45
  114. package/typechain/factories/Ownable2StepUpgradeable__factory.ts +0 -134
  115. package/typechain/factories/OwnableUpgradeable__factory.ts +0 -91
  116. package/typechain/factories/Ownable__factory.ts +0 -75
  117. package/typechain/factories/PausableUpgradeable__factory.ts +0 -78
  118. package/typechain/factories/ProtocolShareReserve__factory.ts +0 -874
  119. package/typechain/factories/Proxy__factory.ts +0 -28
  120. package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +0 -43
  121. package/typechain/factories/ReserveHelpersStorage__factory.ts +0 -188
  122. package/typechain/factories/ResilientOracleInterface__factory.ts +0 -94
  123. package/typechain/factories/ResilientOracle__factory.ts +0 -710
  124. package/typechain/factories/RiskFundConverter__factory.ts +0 -1694
  125. package/typechain/factories/RiskFundV1Storage__factory.ts +0 -223
  126. package/typechain/factories/RiskFundV2Storage__factory.ts +0 -236
  127. package/typechain/factories/RiskFundV2__factory.ts +0 -672
  128. package/typechain/factories/SingleTokenConverter__factory.ts +0 -1441
  129. package/typechain/factories/TwapInterface__factory.ts +0 -61
  130. package/typechain/factories/UpgradeableBeacon__factory.ts +0 -163
  131. package/typechain/factories/VBep20Interface__factory.ts +0 -261
  132. package/typechain/factories/XVSVaultTreasury__factory.ts +0 -365
  133. package/typechain/index.ts +0 -126
@@ -1,672 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
6
- import { Provider, TransactionRequest } from "@ethersproject/providers";
7
- import type { RiskFundV2, RiskFundV2Interface } from "../RiskFundV2";
8
-
9
- const _abi = [
10
- {
11
- inputs: [],
12
- name: "InsufficientBalance",
13
- type: "error",
14
- },
15
- {
16
- inputs: [
17
- {
18
- internalType: "address",
19
- name: "comptroller",
20
- type: "address",
21
- },
22
- {
23
- internalType: "uint256",
24
- name: "amount",
25
- type: "uint256",
26
- },
27
- {
28
- internalType: "uint256",
29
- name: "poolReserve",
30
- type: "uint256",
31
- },
32
- ],
33
- name: "InsufficientPoolReserve",
34
- type: "error",
35
- },
36
- {
37
- inputs: [],
38
- name: "InvalidRiskFundConverter",
39
- type: "error",
40
- },
41
- {
42
- inputs: [],
43
- name: "InvalidShortfallAddress",
44
- type: "error",
45
- },
46
- {
47
- inputs: [
48
- {
49
- internalType: "address",
50
- name: "sender",
51
- type: "address",
52
- },
53
- {
54
- internalType: "address",
55
- name: "calledContract",
56
- type: "address",
57
- },
58
- {
59
- internalType: "string",
60
- name: "methodSignature",
61
- type: "string",
62
- },
63
- ],
64
- name: "Unauthorized",
65
- type: "error",
66
- },
67
- {
68
- inputs: [],
69
- name: "ZeroAddressNotAllowed",
70
- type: "error",
71
- },
72
- {
73
- inputs: [],
74
- name: "ZeroValueNotAllowed",
75
- type: "error",
76
- },
77
- {
78
- anonymous: false,
79
- inputs: [
80
- {
81
- indexed: true,
82
- internalType: "address",
83
- name: "oldConvertibleBaseAsset",
84
- type: "address",
85
- },
86
- {
87
- indexed: true,
88
- internalType: "address",
89
- name: "newConvertibleBaseAsset",
90
- type: "address",
91
- },
92
- ],
93
- name: "ConvertibleBaseAssetUpdated",
94
- type: "event",
95
- },
96
- {
97
- anonymous: false,
98
- inputs: [
99
- {
100
- indexed: false,
101
- internalType: "uint8",
102
- name: "version",
103
- type: "uint8",
104
- },
105
- ],
106
- name: "Initialized",
107
- type: "event",
108
- },
109
- {
110
- anonymous: false,
111
- inputs: [
112
- {
113
- indexed: false,
114
- internalType: "address",
115
- name: "oldAccessControlManager",
116
- type: "address",
117
- },
118
- {
119
- indexed: false,
120
- internalType: "address",
121
- name: "newAccessControlManager",
122
- type: "address",
123
- },
124
- ],
125
- name: "NewAccessControlManager",
126
- type: "event",
127
- },
128
- {
129
- anonymous: false,
130
- inputs: [
131
- {
132
- indexed: true,
133
- internalType: "address",
134
- name: "previousOwner",
135
- type: "address",
136
- },
137
- {
138
- indexed: true,
139
- internalType: "address",
140
- name: "newOwner",
141
- type: "address",
142
- },
143
- ],
144
- name: "OwnershipTransferStarted",
145
- type: "event",
146
- },
147
- {
148
- anonymous: false,
149
- inputs: [
150
- {
151
- indexed: true,
152
- internalType: "address",
153
- name: "previousOwner",
154
- type: "address",
155
- },
156
- {
157
- indexed: true,
158
- internalType: "address",
159
- name: "newOwner",
160
- type: "address",
161
- },
162
- ],
163
- name: "OwnershipTransferred",
164
- type: "event",
165
- },
166
- {
167
- anonymous: false,
168
- inputs: [
169
- {
170
- indexed: true,
171
- internalType: "address",
172
- name: "comptroller",
173
- type: "address",
174
- },
175
- {
176
- indexed: true,
177
- internalType: "address",
178
- name: "asset",
179
- type: "address",
180
- },
181
- {
182
- indexed: false,
183
- internalType: "uint256",
184
- name: "amount",
185
- type: "uint256",
186
- },
187
- ],
188
- name: "PoolAssetsDecreased",
189
- type: "event",
190
- },
191
- {
192
- anonymous: false,
193
- inputs: [
194
- {
195
- indexed: true,
196
- internalType: "address",
197
- name: "comptroller",
198
- type: "address",
199
- },
200
- {
201
- indexed: true,
202
- internalType: "address",
203
- name: "asset",
204
- type: "address",
205
- },
206
- {
207
- indexed: false,
208
- internalType: "uint256",
209
- name: "amount",
210
- type: "uint256",
211
- },
212
- ],
213
- name: "PoolAssetsIncreased",
214
- type: "event",
215
- },
216
- {
217
- anonymous: false,
218
- inputs: [
219
- {
220
- indexed: true,
221
- internalType: "address",
222
- name: "oldRiskFundConverter",
223
- type: "address",
224
- },
225
- {
226
- indexed: true,
227
- internalType: "address",
228
- name: "newRiskFundConverter",
229
- type: "address",
230
- },
231
- ],
232
- name: "RiskFundConverterUpdated",
233
- type: "event",
234
- },
235
- {
236
- anonymous: false,
237
- inputs: [
238
- {
239
- indexed: true,
240
- internalType: "address",
241
- name: "oldShortfallContract",
242
- type: "address",
243
- },
244
- {
245
- indexed: true,
246
- internalType: "address",
247
- name: "newShortfallContract",
248
- type: "address",
249
- },
250
- ],
251
- name: "ShortfallContractUpdated",
252
- type: "event",
253
- },
254
- {
255
- anonymous: false,
256
- inputs: [
257
- {
258
- indexed: true,
259
- internalType: "address",
260
- name: "token",
261
- type: "address",
262
- },
263
- {
264
- indexed: true,
265
- internalType: "address",
266
- name: "to",
267
- type: "address",
268
- },
269
- {
270
- indexed: false,
271
- internalType: "uint256",
272
- name: "amount",
273
- type: "uint256",
274
- },
275
- ],
276
- name: "SweepToken",
277
- type: "event",
278
- },
279
- {
280
- anonymous: false,
281
- inputs: [
282
- {
283
- indexed: true,
284
- internalType: "address",
285
- name: "token",
286
- type: "address",
287
- },
288
- {
289
- indexed: true,
290
- internalType: "address",
291
- name: "comptroller",
292
- type: "address",
293
- },
294
- {
295
- indexed: false,
296
- internalType: "uint256",
297
- name: "amount",
298
- type: "uint256",
299
- },
300
- ],
301
- name: "SweepTokenFromPool",
302
- type: "event",
303
- },
304
- {
305
- anonymous: false,
306
- inputs: [
307
- {
308
- indexed: true,
309
- internalType: "address",
310
- name: "comptroller",
311
- type: "address",
312
- },
313
- {
314
- indexed: false,
315
- internalType: "uint256",
316
- name: "amount",
317
- type: "uint256",
318
- },
319
- ],
320
- name: "TransferredReserveForAuction",
321
- type: "event",
322
- },
323
- {
324
- inputs: [],
325
- name: "acceptOwnership",
326
- outputs: [],
327
- stateMutability: "nonpayable",
328
- type: "function",
329
- },
330
- {
331
- inputs: [],
332
- name: "accessControlManager",
333
- outputs: [
334
- {
335
- internalType: "contract IAccessControlManagerV8",
336
- name: "",
337
- type: "address",
338
- },
339
- ],
340
- stateMutability: "view",
341
- type: "function",
342
- },
343
- {
344
- inputs: [],
345
- name: "convertibleBaseAsset",
346
- outputs: [
347
- {
348
- internalType: "address",
349
- name: "",
350
- type: "address",
351
- },
352
- ],
353
- stateMutability: "view",
354
- type: "function",
355
- },
356
- {
357
- inputs: [
358
- {
359
- internalType: "address",
360
- name: "comptroller",
361
- type: "address",
362
- },
363
- ],
364
- name: "getPoolsBaseAssetReserves",
365
- outputs: [
366
- {
367
- internalType: "uint256",
368
- name: "",
369
- type: "uint256",
370
- },
371
- ],
372
- stateMutability: "view",
373
- type: "function",
374
- },
375
- {
376
- inputs: [],
377
- name: "maxLoopsLimit",
378
- outputs: [
379
- {
380
- internalType: "uint256",
381
- name: "",
382
- type: "uint256",
383
- },
384
- ],
385
- stateMutability: "view",
386
- type: "function",
387
- },
388
- {
389
- inputs: [],
390
- name: "owner",
391
- outputs: [
392
- {
393
- internalType: "address",
394
- name: "",
395
- type: "address",
396
- },
397
- ],
398
- stateMutability: "view",
399
- type: "function",
400
- },
401
- {
402
- inputs: [],
403
- name: "pendingOwner",
404
- outputs: [
405
- {
406
- internalType: "address",
407
- name: "",
408
- type: "address",
409
- },
410
- ],
411
- stateMutability: "view",
412
- type: "function",
413
- },
414
- {
415
- inputs: [
416
- {
417
- internalType: "address",
418
- name: "",
419
- type: "address",
420
- },
421
- {
422
- internalType: "address",
423
- name: "",
424
- type: "address",
425
- },
426
- ],
427
- name: "poolAssetsFunds",
428
- outputs: [
429
- {
430
- internalType: "uint256",
431
- name: "",
432
- type: "uint256",
433
- },
434
- ],
435
- stateMutability: "view",
436
- type: "function",
437
- },
438
- {
439
- inputs: [],
440
- name: "renounceOwnership",
441
- outputs: [],
442
- stateMutability: "nonpayable",
443
- type: "function",
444
- },
445
- {
446
- inputs: [],
447
- name: "riskFundConverter",
448
- outputs: [
449
- {
450
- internalType: "address",
451
- name: "",
452
- type: "address",
453
- },
454
- ],
455
- stateMutability: "view",
456
- type: "function",
457
- },
458
- {
459
- inputs: [
460
- {
461
- internalType: "address",
462
- name: "accessControlManager_",
463
- type: "address",
464
- },
465
- ],
466
- name: "setAccessControlManager",
467
- outputs: [],
468
- stateMutability: "nonpayable",
469
- type: "function",
470
- },
471
- {
472
- inputs: [
473
- {
474
- internalType: "address",
475
- name: "convertibleBaseAsset_",
476
- type: "address",
477
- },
478
- ],
479
- name: "setConvertibleBaseAsset",
480
- outputs: [],
481
- stateMutability: "nonpayable",
482
- type: "function",
483
- },
484
- {
485
- inputs: [
486
- {
487
- internalType: "address",
488
- name: "riskFundConverter_",
489
- type: "address",
490
- },
491
- ],
492
- name: "setRiskFundConverter",
493
- outputs: [],
494
- stateMutability: "nonpayable",
495
- type: "function",
496
- },
497
- {
498
- inputs: [
499
- {
500
- internalType: "address",
501
- name: "shortfallContractAddress_",
502
- type: "address",
503
- },
504
- ],
505
- name: "setShortfallContractAddress",
506
- outputs: [],
507
- stateMutability: "nonpayable",
508
- type: "function",
509
- },
510
- {
511
- inputs: [],
512
- name: "shortfall",
513
- outputs: [
514
- {
515
- internalType: "address",
516
- name: "",
517
- type: "address",
518
- },
519
- ],
520
- stateMutability: "view",
521
- type: "function",
522
- },
523
- {
524
- inputs: [
525
- {
526
- internalType: "address",
527
- name: "tokenAddress",
528
- type: "address",
529
- },
530
- {
531
- internalType: "address",
532
- name: "to",
533
- type: "address",
534
- },
535
- {
536
- internalType: "uint256",
537
- name: "amount",
538
- type: "uint256",
539
- },
540
- ],
541
- name: "sweepToken",
542
- outputs: [],
543
- stateMutability: "nonpayable",
544
- type: "function",
545
- },
546
- {
547
- inputs: [
548
- {
549
- internalType: "address",
550
- name: "tokenAddress",
551
- type: "address",
552
- },
553
- {
554
- internalType: "address",
555
- name: "comptroller",
556
- type: "address",
557
- },
558
- {
559
- internalType: "uint256",
560
- name: "amount",
561
- type: "uint256",
562
- },
563
- ],
564
- name: "sweepTokenFromPool",
565
- outputs: [],
566
- stateMutability: "nonpayable",
567
- type: "function",
568
- },
569
- {
570
- inputs: [
571
- {
572
- internalType: "address",
573
- name: "newOwner",
574
- type: "address",
575
- },
576
- ],
577
- name: "transferOwnership",
578
- outputs: [],
579
- stateMutability: "nonpayable",
580
- type: "function",
581
- },
582
- {
583
- inputs: [
584
- {
585
- internalType: "address",
586
- name: "comptroller",
587
- type: "address",
588
- },
589
- {
590
- internalType: "uint256",
591
- name: "amount",
592
- type: "uint256",
593
- },
594
- ],
595
- name: "transferReserveForAuction",
596
- outputs: [
597
- {
598
- internalType: "uint256",
599
- name: "",
600
- type: "uint256",
601
- },
602
- ],
603
- stateMutability: "nonpayable",
604
- type: "function",
605
- },
606
- {
607
- inputs: [
608
- {
609
- internalType: "address",
610
- name: "comptroller",
611
- type: "address",
612
- },
613
- {
614
- internalType: "address",
615
- name: "asset",
616
- type: "address",
617
- },
618
- {
619
- internalType: "uint256",
620
- name: "amount",
621
- type: "uint256",
622
- },
623
- ],
624
- name: "updatePoolState",
625
- outputs: [],
626
- stateMutability: "nonpayable",
627
- type: "function",
628
- },
629
- ];
630
-
631
- const _bytecode =
632
- "0x608060405234801561001057600080fd5b506118db806100206000396000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c806377d4937f116100cd578063b4a0bdf311610081578063c8ecc0d311610066578063c8ecc0d3146102ff578063e30c397814610313578063f2fde38b1461032457600080fd5b8063b4a0bdf3146102e5578063be26317e146102f657600080fd5b8063855a8dd2116100b2578063855a8dd2146102865780638da5cb5b14610299578063a69bd19e146102aa57600080fd5b806377d4937f1461026b57806379ba50971461027e57600080fd5b806353ac353711610124578063601bb5a911610109578063601bb5a91461023d57806364aff9ec14610250578063715018a61461026357600080fd5b806353ac3537146101ff5780635dbe35331461021257600080fd5b806319b1faef1161015557806319b1faef146101ac5780632e688141146101d85780632eef9172146101eb57600080fd5b80630a9837c5146101715780630e32cb8614610197575b600080fd5b61018461017f3660046114dc565b610337565b6040519081526020015b60405180910390f35b6101aa6101a5366004611508565b610496565b005b61012e546101c0906001600160a01b031681565b6040516001600160a01b03909116815260200161018e565b6101aa6101e6366004611508565b6104aa565b610163546101c0906001600160a01b031681565b6101aa61020d36600461152c565b610531565b61018461022036600461156d565b60ca60209081526000928352604080842090915290825290205481565b6101aa61024b366004611508565b610606565b6101aa61025e36600461152c565b61068d565b6101aa610735565b6101aa610279366004611508565b610749565b6101aa6107d0565b6101aa61029436600461152c565b610875565b6033546001600160a01b03166101c0565b6101846102b8366004611508565b6001600160a01b03908116600090815260ca6020908152604080832061012d549094168352929052205490565b6097546001600160a01b03166101c0565b61018460fb5481565b61012d546101c0906001600160a01b031681565b6065546001600160a01b03166101c0565b6101aa610332366004611508565b610996565b6000610341610a1f565b6001600160a01b03838116600090815260ca6020908152604080832061012d548516845290915290205461012e5490911633146103aa576040517fe7792c3b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80831115610402576040517f5f1b50b80000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260248101849052604481018290526064015b60405180910390fd5b6001600160a01b03808516600090815260ca6020908152604080832061012d8054861685529252909120858403905561012e54905461044692908116911685610a94565b836001600160a01b03167fc8d0a37ed16dfaa43514df00e18f478b60d5cc7b4bfc687103948b9020f737fd8460405161048191815260200190565b60405180910390a25050600161013155919050565b61049e610b14565b6104a781610b88565b50565b6104b2610b14565b6104bb81610c97565b61012d546040516001600160a01b038084169216907f5fa61583da12070720613fefdd68cc6c0e464a71e009742526bd2b2e0ac62cd290600090a361012d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610163546001600160a01b03163314610576576040517fece95bc800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03808416600090815260ca60209081526040808320938616835292905290812080548392906105ad9084906115d5565b92505081905550816001600160a01b0316836001600160a01b03167f17452316fd883c456b01c6722a103031ccd3cf17a1dabdbf96cd1109652d6110836040516105f991815260200190565b60405180910390a3505050565b61060e610b14565b61061781610c97565b610163546040516001600160a01b038084169216907f49ca267ed5631dd7b16589efad418137b8fb106674777fc37d2cb82e853dbd2790600090a361016380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610695610b14565b61069d610a1f565b6106a683610c97565b6106af82610c97565b6106b881610cd7565b826106c38183610d11565b6106d76001600160a01b0382168484610a94565b826001600160a01b0316846001600160a01b03167f6d25be279134f4ecaa4770aff0c3d916d9e7c5ef37b65ed95dbdba411f5d54d58460405161071c91815260200190565b60405180910390a350610730600161013155565b505050565b61073d610b14565b6107476000611135565b565b610751610b14565b61075a81610c97565b61012e546040516001600160a01b038084169216907fb6e5fcf02f7fbb8acfbaa3bac4fd5abf9ff51e3f2e8884b5498927179b211b2890600090a361012e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60655433906001600160a01b0316811461086c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016103f9565b6104a781611135565b61087d610b14565b610885610a1f565b61088e83610c97565b61089782610c97565b6108a081610cd7565b6001600160a01b03808316600090815260ca602090815260408083209387168352929052205480821115610919576040517f5f1b50b80000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260248101839052604481018290526064016103f9565b6001600160a01b03808416600090815260ca602090815260408083209388168084529390915290208383039055610951908484610a94565b826001600160a01b0316846001600160a01b03167f0e8a97dff226f3ada9da954f9bd38f73280b03ef851bfc7c97db1343f07bdbdc8460405161071c91815260200190565b61099e610b14565b606580546001600160a01b0383167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556109e76033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60026101315403610a8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103f9565b600261013155565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610730908490611166565b6033546001600160a01b03163314610747576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f9565b6001600160a01b038116610c1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e6167657220616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016103f9565b609780546001600160a01b038381167fffffffffffffffffffffffff000000000000000000000000000000000000000083168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0910160405180910390a15050565b6001600160a01b0381166104a7576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000036104a7576040517f9cf8540c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610d71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9591906115ed565b905080821115610dd1576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610163546040517f5c39f4670000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526000921690635c39f46790602401600060405180830381865afa158015610e36573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610e7c9190810190611645565b8051909150600090815b81811015610f055760ca6000858381518110610ea457610ea4611728565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205483610efb91906115d5565b9250600101610e86565b506000610f128386611757565b90508581101561112c578086036000805b848110156111285760ca6000888381518110610f4157610f41611728565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002054600014611120576000610fa1600187611757565b82101561103357868a60ca60008b8681518110610fc057610fc0611728565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002054611016919061176e565b61102091906117ab565b905061102c81846115d5565b9250611040565b61103d8385611757565b90505b8060ca60008a858151811061105757611057611728565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546110b19190611757565b925050819055508a6001600160a01b03168883815181106110d4576110d4611728565b60200260200101516001600160a01b03167fdfbd88fdb255ea04a0084e45259969bdf724b3fbd610a114da4a0dd51bd843208360405161111691815260200190565b60405180910390a3505b600101610f23565b5050505b50505050505050565b606580547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556104a781611268565b60006111bb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112d29092919063ffffffff16565b90508051600014806111dc5750808060200190518101906111dc91906117e6565b610730576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103f9565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606112e184846000856112e9565b949350505050565b60608247101561137b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103f9565b600080866001600160a01b031685876040516113979190611838565b60006040518083038185875af1925050503d80600081146113d4576040519150601f19603f3d011682016040523d82523d6000602084013e6113d9565b606091505b50915091506113ea878383876113f5565b979650505050505050565b6060831561147e578251600003611477576001600160a01b0385163b611477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103f9565b50816112e1565b6112e183838151156114935781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f99190611854565b6001600160a01b03811681146104a757600080fd5b600080604083850312156114ef57600080fd5b82356114fa816114c7565b946020939093013593505050565b60006020828403121561151a57600080fd5b8135611525816114c7565b9392505050565b60008060006060848603121561154157600080fd5b833561154c816114c7565b9250602084013561155c816114c7565b929592945050506040919091013590565b6000806040838503121561158057600080fd5b823561158b816114c7565b9150602083013561159b816114c7565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156115e8576115e86115a6565b500190565b6000602082840312156115ff57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8051611640816114c7565b919050565b6000602080838503121561165857600080fd5b825167ffffffffffffffff8082111561167057600080fd5b818501915085601f83011261168457600080fd5b81518181111561169657611696611606565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811085821117156116d9576116d9611606565b6040529182528482019250838101850191888311156116f757600080fd5b938501935b8285101561171c5761170d85611635565b845293850193928501926116fc565b98975050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082821015611769576117696115a6565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156117a6576117a66115a6565b500290565b6000826117e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000602082840312156117f857600080fd5b8151801515811461152557600080fd5b60005b8381101561182357818101518382015260200161180b565b83811115611832576000848401525b50505050565b6000825161184a818460208701611808565b9190910192915050565b6020815260008251806020840152611873816040850160208701611808565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220ae70b20469fe0d634614028f8d5ab4bd856fb444c39affcec03bff538f7033cd64736f6c634300080d0033";
633
-
634
- export class RiskFundV2__factory extends ContractFactory {
635
- constructor(
636
- ...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
637
- ) {
638
- if (args.length === 1) {
639
- super(_abi, _bytecode, args[0]);
640
- } else {
641
- super(...args);
642
- }
643
- }
644
-
645
- deploy(
646
- overrides?: Overrides & { from?: string | Promise<string> }
647
- ): Promise<RiskFundV2> {
648
- return super.deploy(overrides || {}) as Promise<RiskFundV2>;
649
- }
650
- getDeployTransaction(
651
- overrides?: Overrides & { from?: string | Promise<string> }
652
- ): TransactionRequest {
653
- return super.getDeployTransaction(overrides || {});
654
- }
655
- attach(address: string): RiskFundV2 {
656
- return super.attach(address) as RiskFundV2;
657
- }
658
- connect(signer: Signer): RiskFundV2__factory {
659
- return super.connect(signer) as RiskFundV2__factory;
660
- }
661
- static readonly bytecode = _bytecode;
662
- static readonly abi = _abi;
663
- static createInterface(): RiskFundV2Interface {
664
- return new utils.Interface(_abi) as RiskFundV2Interface;
665
- }
666
- static connect(
667
- address: string,
668
- signerOrProvider: Signer | Provider
669
- ): RiskFundV2 {
670
- return new Contract(address, _abi, signerOrProvider) as RiskFundV2;
671
- }
672
- }