@raac/rpc 2.0.0-beta.12 → 2.0.0-beta.13

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 (82) hide show
  1. package/dist/RPCLibrary.js +53 -22
  2. package/dist/configs/chains/11155111.json +16 -41
  3. package/dist/contracts/complianceRegistry/getStatuses.js +40 -0
  4. package/dist/contracts/crvUSDToUSDOracle/getState.js +58 -0
  5. package/dist/contracts/curve/common/_helpers.js +57 -0
  6. package/dist/contracts/curve/common/addLiquidity.js +30 -0
  7. package/dist/contracts/curve/common/calcTokenAmount.js +23 -0
  8. package/dist/contracts/curve/common/calcWithdrawOneCoin.js +21 -0
  9. package/dist/contracts/curve/common/exchange.js +33 -0
  10. package/dist/contracts/curve/common/getDy.js +22 -0
  11. package/dist/contracts/curve/common/index.js +7 -0
  12. package/dist/contracts/curve/common/removeLiquidity.js +30 -0
  13. package/dist/contracts/curve/common/removeLiquidityOneCoin.js +31 -0
  14. package/dist/contracts/faucet/claim.js +37 -0
  15. package/dist/contracts/faucet/index.js +17 -0
  16. package/dist/contracts/feeCollector/getState.js +100 -0
  17. package/dist/contracts/getRoles.js +35 -0
  18. package/dist/contracts/housePrices/getState.js +41 -0
  19. package/dist/contracts/psm/getVaultSettings.js +60 -0
  20. package/dist/contracts/treasury/getState.js +46 -0
  21. package/dist/minter/emissionSchedule.js +90 -0
  22. package/dist/pools/lendingPool/getAdminState.js +47 -0
  23. package/dist/pools/rwaVault/getRegisteredAdapters.js +78 -0
  24. package/dist/pools/rwaVault/getSeedStatus.js +45 -0
  25. package/dist/pools/stabilityPool/getAdminState.js +42 -0
  26. package/dist/pools/stabilityPool/liquidation.js +297 -0
  27. package/dist/prices/tokenPricesUSD.js +0 -2
  28. package/dist/types/RPCLibrary.d.ts +44 -14
  29. package/dist/types/contracts/complianceRegistry/getStatuses.d.ts +25 -0
  30. package/dist/types/contracts/crvUSDToUSDOracle/getState.d.ts +36 -0
  31. package/dist/types/contracts/curve/common/_helpers.d.ts +10 -1
  32. package/dist/types/contracts/curve/common/addLiquidity.d.ts +14 -0
  33. package/dist/types/contracts/curve/common/calcTokenAmount.d.ts +10 -0
  34. package/dist/types/contracts/curve/common/calcWithdrawOneCoin.d.ts +8 -0
  35. package/dist/types/contracts/curve/common/exchange.d.ts +16 -0
  36. package/dist/types/contracts/curve/common/getDy.d.ts +8 -0
  37. package/dist/types/contracts/curve/common/index.d.ts +7 -0
  38. package/dist/types/contracts/curve/common/removeLiquidity.d.ts +14 -0
  39. package/dist/types/contracts/curve/common/removeLiquidityOneCoin.d.ts +15 -0
  40. package/dist/types/contracts/faucet/claim.d.ts +18 -0
  41. package/dist/types/contracts/faucet/index.d.ts +1 -0
  42. package/dist/types/contracts/feeCollector/getState.d.ts +42 -0
  43. package/dist/types/contracts/getRoles.d.ts +15 -0
  44. package/dist/types/contracts/housePrices/getState.d.ts +24 -0
  45. package/dist/types/contracts/psm/getVaultSettings.d.ts +38 -0
  46. package/dist/types/contracts/treasury/getState.d.ts +24 -0
  47. package/dist/types/minter/emissionSchedule.d.ts +53 -0
  48. package/dist/types/pools/lendingPool/getAdminState.d.ts +26 -0
  49. package/dist/types/pools/rwaVault/getRegisteredAdapters.d.ts +33 -0
  50. package/dist/types/pools/rwaVault/getSeedStatus.d.ts +27 -0
  51. package/dist/types/pools/stabilityPool/getAdminState.d.ts +25 -0
  52. package/dist/types/pools/stabilityPool/liquidation.d.ts +112 -0
  53. package/dist/types/typechain-types/contracts/core/collectors/index.d.ts +0 -2
  54. package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +0 -1
  55. package/dist/types/typechain-types/factories/contracts/core/collectors/index.d.ts +0 -1
  56. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +0 -1
  57. package/dist/types/typechain-types/index.d.ts +0 -4
  58. package/dist/types/utils/artifacts.d.ts +0 -198
  59. package/dist/utils/artifacts.js +0 -4
  60. package/package.json +14 -4
  61. package/dist/artifacts/core/collectors/fee-streamer/RentStreamer.sol/RentStreamer.json +0 -838
  62. package/dist/artifacts/mocks/core/tokens/USDCTokenLimited.sol/USDCTokenLimited.json +0 -558
  63. package/dist/contracts/rentStreamer/_helpers.js +0 -19
  64. package/dist/contracts/rentStreamer/getEpochProjection.js +0 -91
  65. package/dist/contracts/rentStreamer/getScheduled.js +0 -19
  66. package/dist/contracts/rentStreamer/getState.js +0 -40
  67. package/dist/contracts/rentStreamer/previewRelease.js +0 -23
  68. package/dist/contracts/rentStreamer/release.js +0 -22
  69. package/dist/contracts/rentStreamer/sync.js +0 -21
  70. package/dist/types/contracts/rentStreamer/_helpers.d.ts +0 -4
  71. package/dist/types/contracts/rentStreamer/getEpochProjection.d.ts +0 -40
  72. package/dist/types/contracts/rentStreamer/getScheduled.d.ts +0 -12
  73. package/dist/types/contracts/rentStreamer/getState.d.ts +0 -33
  74. package/dist/types/contracts/rentStreamer/previewRelease.d.ts +0 -20
  75. package/dist/types/contracts/rentStreamer/release.d.ts +0 -12
  76. package/dist/types/contracts/rentStreamer/sync.d.ts +0 -11
  77. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/RentStreamer.d.ts +0 -422
  78. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/index.d.ts +0 -1
  79. package/dist/types/typechain-types/contracts/mocks/core/tokens/USDCTokenLimited.d.ts +0 -238
  80. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/RentStreamer__factory.d.ts +0 -665
  81. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/index.d.ts +0 -1
  82. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/USDCTokenLimited__factory.d.ts +0 -439
@@ -1,558 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "USDCTokenLimited",
4
- "sourceName": "contracts/mocks/core/tokens/USDCTokenLimited.sol",
5
- "abi": [
6
- {
7
- "inputs": [
8
- {
9
- "internalType": "string",
10
- "name": "name",
11
- "type": "string"
12
- },
13
- {
14
- "internalType": "string",
15
- "name": "symbol",
16
- "type": "string"
17
- },
18
- {
19
- "internalType": "address",
20
- "name": "initialOwner",
21
- "type": "address"
22
- }
23
- ],
24
- "stateMutability": "nonpayable",
25
- "type": "constructor"
26
- },
27
- {
28
- "inputs": [
29
- {
30
- "internalType": "address",
31
- "name": "spender",
32
- "type": "address"
33
- },
34
- {
35
- "internalType": "uint256",
36
- "name": "allowance",
37
- "type": "uint256"
38
- },
39
- {
40
- "internalType": "uint256",
41
- "name": "needed",
42
- "type": "uint256"
43
- }
44
- ],
45
- "name": "ERC20InsufficientAllowance",
46
- "type": "error"
47
- },
48
- {
49
- "inputs": [
50
- {
51
- "internalType": "address",
52
- "name": "sender",
53
- "type": "address"
54
- },
55
- {
56
- "internalType": "uint256",
57
- "name": "balance",
58
- "type": "uint256"
59
- },
60
- {
61
- "internalType": "uint256",
62
- "name": "needed",
63
- "type": "uint256"
64
- }
65
- ],
66
- "name": "ERC20InsufficientBalance",
67
- "type": "error"
68
- },
69
- {
70
- "inputs": [
71
- {
72
- "internalType": "address",
73
- "name": "approver",
74
- "type": "address"
75
- }
76
- ],
77
- "name": "ERC20InvalidApprover",
78
- "type": "error"
79
- },
80
- {
81
- "inputs": [
82
- {
83
- "internalType": "address",
84
- "name": "receiver",
85
- "type": "address"
86
- }
87
- ],
88
- "name": "ERC20InvalidReceiver",
89
- "type": "error"
90
- },
91
- {
92
- "inputs": [
93
- {
94
- "internalType": "address",
95
- "name": "sender",
96
- "type": "address"
97
- }
98
- ],
99
- "name": "ERC20InvalidSender",
100
- "type": "error"
101
- },
102
- {
103
- "inputs": [
104
- {
105
- "internalType": "address",
106
- "name": "spender",
107
- "type": "address"
108
- }
109
- ],
110
- "name": "ERC20InvalidSpender",
111
- "type": "error"
112
- },
113
- {
114
- "inputs": [
115
- {
116
- "internalType": "address",
117
- "name": "owner",
118
- "type": "address"
119
- }
120
- ],
121
- "name": "OwnableInvalidOwner",
122
- "type": "error"
123
- },
124
- {
125
- "inputs": [
126
- {
127
- "internalType": "address",
128
- "name": "account",
129
- "type": "address"
130
- }
131
- ],
132
- "name": "OwnableUnauthorizedAccount",
133
- "type": "error"
134
- },
135
- {
136
- "anonymous": false,
137
- "inputs": [
138
- {
139
- "indexed": true,
140
- "internalType": "address",
141
- "name": "owner",
142
- "type": "address"
143
- },
144
- {
145
- "indexed": true,
146
- "internalType": "address",
147
- "name": "spender",
148
- "type": "address"
149
- },
150
- {
151
- "indexed": false,
152
- "internalType": "uint256",
153
- "name": "value",
154
- "type": "uint256"
155
- }
156
- ],
157
- "name": "Approval",
158
- "type": "event"
159
- },
160
- {
161
- "anonymous": false,
162
- "inputs": [
163
- {
164
- "indexed": true,
165
- "internalType": "address",
166
- "name": "previousOwner",
167
- "type": "address"
168
- },
169
- {
170
- "indexed": true,
171
- "internalType": "address",
172
- "name": "newOwner",
173
- "type": "address"
174
- }
175
- ],
176
- "name": "OwnershipTransferred",
177
- "type": "event"
178
- },
179
- {
180
- "anonymous": false,
181
- "inputs": [
182
- {
183
- "indexed": true,
184
- "internalType": "address",
185
- "name": "from",
186
- "type": "address"
187
- },
188
- {
189
- "indexed": true,
190
- "internalType": "address",
191
- "name": "to",
192
- "type": "address"
193
- },
194
- {
195
- "indexed": false,
196
- "internalType": "uint256",
197
- "name": "value",
198
- "type": "uint256"
199
- }
200
- ],
201
- "name": "Transfer",
202
- "type": "event"
203
- },
204
- {
205
- "inputs": [
206
- {
207
- "internalType": "address",
208
- "name": "owner",
209
- "type": "address"
210
- },
211
- {
212
- "internalType": "address",
213
- "name": "spender",
214
- "type": "address"
215
- }
216
- ],
217
- "name": "allowance",
218
- "outputs": [
219
- {
220
- "internalType": "uint256",
221
- "name": "",
222
- "type": "uint256"
223
- }
224
- ],
225
- "stateMutability": "view",
226
- "type": "function"
227
- },
228
- {
229
- "inputs": [
230
- {
231
- "internalType": "address",
232
- "name": "spender",
233
- "type": "address"
234
- },
235
- {
236
- "internalType": "uint256",
237
- "name": "value",
238
- "type": "uint256"
239
- }
240
- ],
241
- "name": "approve",
242
- "outputs": [
243
- {
244
- "internalType": "bool",
245
- "name": "",
246
- "type": "bool"
247
- }
248
- ],
249
- "stateMutability": "nonpayable",
250
- "type": "function"
251
- },
252
- {
253
- "inputs": [
254
- {
255
- "internalType": "address",
256
- "name": "account",
257
- "type": "address"
258
- }
259
- ],
260
- "name": "balanceOf",
261
- "outputs": [
262
- {
263
- "internalType": "uint256",
264
- "name": "",
265
- "type": "uint256"
266
- }
267
- ],
268
- "stateMutability": "view",
269
- "type": "function"
270
- },
271
- {
272
- "inputs": [
273
- {
274
- "internalType": "uint256",
275
- "name": "amount",
276
- "type": "uint256"
277
- }
278
- ],
279
- "name": "burn",
280
- "outputs": [],
281
- "stateMutability": "nonpayable",
282
- "type": "function"
283
- },
284
- {
285
- "inputs": [
286
- {
287
- "internalType": "address",
288
- "name": "account",
289
- "type": "address"
290
- },
291
- {
292
- "internalType": "uint256",
293
- "name": "amount",
294
- "type": "uint256"
295
- }
296
- ],
297
- "name": "burnFrom",
298
- "outputs": [],
299
- "stateMutability": "nonpayable",
300
- "type": "function"
301
- },
302
- {
303
- "inputs": [],
304
- "name": "decimals",
305
- "outputs": [
306
- {
307
- "internalType": "uint8",
308
- "name": "",
309
- "type": "uint8"
310
- }
311
- ],
312
- "stateMutability": "pure",
313
- "type": "function"
314
- },
315
- {
316
- "inputs": [],
317
- "name": "maxMintablePerAddress",
318
- "outputs": [
319
- {
320
- "internalType": "uint256",
321
- "name": "",
322
- "type": "uint256"
323
- }
324
- ],
325
- "stateMutability": "view",
326
- "type": "function"
327
- },
328
- {
329
- "inputs": [
330
- {
331
- "internalType": "address",
332
- "name": "to",
333
- "type": "address"
334
- },
335
- {
336
- "internalType": "uint256",
337
- "name": "amount",
338
- "type": "uint256"
339
- }
340
- ],
341
- "name": "mint",
342
- "outputs": [],
343
- "stateMutability": "nonpayable",
344
- "type": "function"
345
- },
346
- {
347
- "inputs": [],
348
- "name": "minter",
349
- "outputs": [
350
- {
351
- "internalType": "address",
352
- "name": "",
353
- "type": "address"
354
- }
355
- ],
356
- "stateMutability": "view",
357
- "type": "function"
358
- },
359
- {
360
- "inputs": [],
361
- "name": "name",
362
- "outputs": [
363
- {
364
- "internalType": "string",
365
- "name": "",
366
- "type": "string"
367
- }
368
- ],
369
- "stateMutability": "view",
370
- "type": "function"
371
- },
372
- {
373
- "inputs": [],
374
- "name": "owner",
375
- "outputs": [
376
- {
377
- "internalType": "address",
378
- "name": "",
379
- "type": "address"
380
- }
381
- ],
382
- "stateMutability": "view",
383
- "type": "function"
384
- },
385
- {
386
- "inputs": [],
387
- "name": "renounceOwnership",
388
- "outputs": [],
389
- "stateMutability": "nonpayable",
390
- "type": "function"
391
- },
392
- {
393
- "inputs": [
394
- {
395
- "internalType": "address",
396
- "name": "_minter",
397
- "type": "address"
398
- }
399
- ],
400
- "name": "setMinter",
401
- "outputs": [],
402
- "stateMutability": "nonpayable",
403
- "type": "function"
404
- },
405
- {
406
- "inputs": [],
407
- "name": "symbol",
408
- "outputs": [
409
- {
410
- "internalType": "string",
411
- "name": "",
412
- "type": "string"
413
- }
414
- ],
415
- "stateMutability": "view",
416
- "type": "function"
417
- },
418
- {
419
- "inputs": [
420
- {
421
- "internalType": "address",
422
- "name": "",
423
- "type": "address"
424
- }
425
- ],
426
- "name": "totalMinted",
427
- "outputs": [
428
- {
429
- "internalType": "uint256",
430
- "name": "",
431
- "type": "uint256"
432
- }
433
- ],
434
- "stateMutability": "view",
435
- "type": "function"
436
- },
437
- {
438
- "inputs": [],
439
- "name": "totalSupply",
440
- "outputs": [
441
- {
442
- "internalType": "uint256",
443
- "name": "",
444
- "type": "uint256"
445
- }
446
- ],
447
- "stateMutability": "view",
448
- "type": "function"
449
- },
450
- {
451
- "inputs": [
452
- {
453
- "internalType": "address",
454
- "name": "to",
455
- "type": "address"
456
- },
457
- {
458
- "internalType": "uint256",
459
- "name": "value",
460
- "type": "uint256"
461
- }
462
- ],
463
- "name": "transfer",
464
- "outputs": [
465
- {
466
- "internalType": "bool",
467
- "name": "",
468
- "type": "bool"
469
- }
470
- ],
471
- "stateMutability": "nonpayable",
472
- "type": "function"
473
- },
474
- {
475
- "inputs": [
476
- {
477
- "internalType": "address",
478
- "name": "from",
479
- "type": "address"
480
- },
481
- {
482
- "internalType": "address",
483
- "name": "to",
484
- "type": "address"
485
- },
486
- {
487
- "internalType": "uint256",
488
- "name": "value",
489
- "type": "uint256"
490
- }
491
- ],
492
- "name": "transferFrom",
493
- "outputs": [
494
- {
495
- "internalType": "bool",
496
- "name": "",
497
- "type": "bool"
498
- }
499
- ],
500
- "stateMutability": "nonpayable",
501
- "type": "function"
502
- },
503
- {
504
- "inputs": [
505
- {
506
- "internalType": "address",
507
- "name": "newOwner",
508
- "type": "address"
509
- }
510
- ],
511
- "name": "transferOwnership",
512
- "outputs": [],
513
- "stateMutability": "nonpayable",
514
- "type": "function"
515
- },
516
- {
517
- "inputs": [
518
- {
519
- "internalType": "address",
520
- "name": "account",
521
- "type": "address"
522
- },
523
- {
524
- "internalType": "bool",
525
- "name": "isWhitelisted",
526
- "type": "bool"
527
- }
528
- ],
529
- "name": "whitelist",
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": "whitelisted",
543
- "outputs": [
544
- {
545
- "internalType": "bool",
546
- "name": "",
547
- "type": "bool"
548
- }
549
- ],
550
- "stateMutability": "view",
551
- "type": "function"
552
- }
553
- ],
554
- "bytecode": "0x6080604052346103c85761102180380380610019816103cc565b9283398101906060818303126103c85780516001600160401b0381116103c857826100459183016103f1565b60208201519092906001600160401b0381116103c8576040916100699184016103f1565b9101516001600160a01b038116908190036103c85782516001600160401b0381116102d957600354600181811c911680156103be575b60208210146102bb57601f811161035b575b506020601f82116001146102f857819293945f926102ed575b50508160011b915f199060031b1c1916176003555b81516001600160401b0381116102d957600454600181811c911680156102cf575b60208210146102bb57601f8111610258575b50602092601f82116001146101f757928192935f926101ec575b50508160011b915f199060031b1c1916176004555b80156101d957600580546001600160a01b031981168317909155604051919081906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a38060018060a01b03196006541617600655692a5a058fc295ed0000006007555f52600860205260405f20600160ff19825416179055642e90edd000600755610bc6908161045b8239f35b631e4fbdf760e01b5f525f60045260245ffd5b015190505f8061012c565b601f1982169360045f52805f20915f5b8681106102405750836001959610610228575b505050811b01600455610141565b01515f1960f88460031b161c191690555f808061021a565b91926020600181928685015181550194019201610207565b60045f527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f830160051c810191602084106102b1575b601f0160051c01905b8181106102a65750610112565b5f8155600101610299565b9091508190610290565b634e487b7160e01b5f52602260045260245ffd5b90607f1690610100565b634e487b7160e01b5f52604160045260245ffd5b015190505f806100ca565b601f1982169060035f52805f20915f5b8181106103435750958360019596971061032b575b505050811b016003556100df565b01515f1960f88460031b161c191690555f808061031d565b9192602060018192868b015181550194019201610308565b60035f527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f830160051c810191602084106103b4575b601f0160051c01905b8181106103a957506100b1565b5f815560010161039c565b9091508190610393565b90607f169061009f565b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176102d957604052565b81601f820112156103c8578051906001600160401b0382116102d957610420601f8301601f19166020016103cc565b92828452602083830101116103c8575f5b82811061044557505060205f918301015290565b8060208092840101518282870101520161043156fe6080806040526004361015610012575f80fd5b5f3560e01c9081623d4790146107d55750806306fdde031461070357806307546172146106db578063095ea7b3146106b557806318160ddd1461069857806323b872dd146105b9578063313ce5671461059e57806337d651211461058157806340c10f191461055c57806342966c681461053f57806370a0823114610508578063715018a6146104c057806379cc6790146104105780638da5cb5b146103e857806395d89b41146102cd578063a9059cbb1461029c578063d936547e1461025f578063dd62ed3e1461020f578063f2fde38b1461019c578063f59c3708146101495763fca3b5aa14610102575f80fd5b346101455760203660031901126101455761011b610809565b610123610ac6565b600680546001600160a01b0319166001600160a01b0392909216919091179055005b5f80fd5b3461014557604036600319011261014557610162610809565b6024359081151580920361014557610178610ac6565b60018060a01b03165f52600860205260405f209060ff801983541691161790555f80f35b34610145576020366003190112610145576101b5610809565b6101bd610ac6565b6001600160a01b031680156101fc57600580546001600160a01b0319811683179091556001600160a01b03165f516020610b515f395f51905f525f80a3005b631e4fbdf760e01b5f525f60045260245ffd5b3461014557604036600319011261014557610228610809565b61023061081f565b6001600160a01b039182165f908152600160209081526040808320949093168252928352819020549051908152f35b34610145576020366003190112610145576001600160a01b03610280610809565b165f526008602052602060ff60405f2054166040519015158152f35b34610145576040366003190112610145576102c26102b8610809565b6024359033610961565b602060405160018152f35b34610145575f366003190112610145576040515f6004548060011c906001811680156103de575b6020831081146103ca578285529081156103ae5750600114610358575b50819003601f01601f19168101906001600160401b038211818310176103445761034082918260405282610835565b0390f35b634e487b7160e01b5f52604160045260245ffd5b60045f9081529091507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82821061039857506020915082010182610311565b6001816020925483858801015201910190610383565b90506020925060ff191682840152151560051b82010182610311565b634e487b7160e01b5f52602260045260245ffd5b91607f16916102f4565b34610145575f366003190112610145576005546040516001600160a01b039091168152602090f35b3461014557604036600319011261014557610429610809565b6001600160a01b0381165f908152600160209081526040808320338452909152902054906024359081831061046f576104688261046d94033383610aed565b610a55565b005b60405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608490fd5b34610145575f366003190112610145576104d8610ac6565b600580546001600160a01b031981169091555f906001600160a01b03165f516020610b515f395f51905f528280a3005b34610145576020366003190112610145576001600160a01b03610529610809565b165f525f602052602060405f2054604051908152f35b346101455760203660031901126101455761046d60043533610a55565b346101455760403660031901126101455761046d610578610809565b6024359061089d565b34610145575f366003190112610145576020600754604051908152f35b34610145575f36600319011261014557602060405160068152f35b34610145576060366003190112610145576105d2610809565b6105da61081f565b6001600160a01b0382165f818152600160209081526040808320338452909152902054909260443592915f198110610618575b506102c29350610961565b83811061067d57841561066a573315610657576102c2945f52600160205260405f2060018060a01b0333165f526020528360405f20910390558461060d565b634a1406b160e11b5f525f60045260245ffd5b63e602df0560e01b5f525f60045260245ffd5b8390637dc7a0d960e11b5f523360045260245260445260645ffd5b34610145575f366003190112610145576020600254604051908152f35b34610145576040366003190112610145576102c26106d1610809565b6024359033610aed565b34610145575f366003190112610145576006546040516001600160a01b039091168152602090f35b34610145575f366003190112610145576040515f6003548060011c906001811680156107cb575b6020831081146103ca578285529081156103ae57506001146107755750819003601f01601f19168101906001600160401b038211818310176103445761034082918260405282610835565b60035f9081529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8282106107b557506020915082010182610311565b60018160209254838588010152019101906107a0565b91607f169161072a565b34610145576020366003190112610145576020906001600160a01b036107f9610809565b165f526009825260405f20548152f35b600435906001600160a01b038216820361014557565b602435906001600160a01b038216820361014557565b9190916020815282518060208301525f5b818110610866575060409293505f838284010152601f8019910116010190565b8060208092870101516040828601015201610846565b9190820180921161088957565b634e487b7160e01b5f52601160045260245ffd5b90335f52600860205260ff60405f20541661093857506001600160a01b0381165f818152600960205260409020546108f6576108dc6007548093610a0b565b5f5260096020526108f260405f2091825461087c565b9055565b60405162461bcd60e51b815260206004820152601a6024820152791059191c995cdcc81a185cc8185b1c9958591e481b5a5b9d195960321b6044820152606490fd5b906109438282610a0b565b60018060a01b03165f5260096020526108f260405f2091825461087c565b6001600160a01b03169081156109f8576001600160a01b03169182156109e557815f525f60205260405f20548181106109cc57815f516020610b715f395f51905f5292602092855f525f84520360405f2055845f525f825260405f20818154019055604051908152a3565b8263391434e360e21b5f5260045260245260445260645ffd5b63ec442f0560e01b5f525f60045260245ffd5b634b637e8f60e11b5f525f60045260245ffd5b6001600160a01b03169081156109e5575f516020610b715f395f51905f52602082610a395f9460025461087c565b60025584845283825260408420818154019055604051908152a3565b9091906001600160a01b031680156109f857805f525f60205260405f2054838110610aac576020845f94955f516020610b715f395f51905f52938587528684520360408620558060025403600255604051908152a3565b915063391434e360e21b5f5260045260245260445260645ffd5b6005546001600160a01b03163303610ada57565b63118cdaa760e01b5f523360045260245ffd5b6001600160a01b031690811561066a576001600160a01b03169182156106575760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591835f526001825260405f20855f5282528060405f2055604051908152a356fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204289982fcf7a140f0becfd824954d196a7976fa4365850643ed469ba6e7168f564736f6c634300081e0033",
555
- "deployedBytecode": "0x6080806040526004361015610012575f80fd5b5f3560e01c9081623d4790146107d55750806306fdde031461070357806307546172146106db578063095ea7b3146106b557806318160ddd1461069857806323b872dd146105b9578063313ce5671461059e57806337d651211461058157806340c10f191461055c57806342966c681461053f57806370a0823114610508578063715018a6146104c057806379cc6790146104105780638da5cb5b146103e857806395d89b41146102cd578063a9059cbb1461029c578063d936547e1461025f578063dd62ed3e1461020f578063f2fde38b1461019c578063f59c3708146101495763fca3b5aa14610102575f80fd5b346101455760203660031901126101455761011b610809565b610123610ac6565b600680546001600160a01b0319166001600160a01b0392909216919091179055005b5f80fd5b3461014557604036600319011261014557610162610809565b6024359081151580920361014557610178610ac6565b60018060a01b03165f52600860205260405f209060ff801983541691161790555f80f35b34610145576020366003190112610145576101b5610809565b6101bd610ac6565b6001600160a01b031680156101fc57600580546001600160a01b0319811683179091556001600160a01b03165f516020610b515f395f51905f525f80a3005b631e4fbdf760e01b5f525f60045260245ffd5b3461014557604036600319011261014557610228610809565b61023061081f565b6001600160a01b039182165f908152600160209081526040808320949093168252928352819020549051908152f35b34610145576020366003190112610145576001600160a01b03610280610809565b165f526008602052602060ff60405f2054166040519015158152f35b34610145576040366003190112610145576102c26102b8610809565b6024359033610961565b602060405160018152f35b34610145575f366003190112610145576040515f6004548060011c906001811680156103de575b6020831081146103ca578285529081156103ae5750600114610358575b50819003601f01601f19168101906001600160401b038211818310176103445761034082918260405282610835565b0390f35b634e487b7160e01b5f52604160045260245ffd5b60045f9081529091507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82821061039857506020915082010182610311565b6001816020925483858801015201910190610383565b90506020925060ff191682840152151560051b82010182610311565b634e487b7160e01b5f52602260045260245ffd5b91607f16916102f4565b34610145575f366003190112610145576005546040516001600160a01b039091168152602090f35b3461014557604036600319011261014557610429610809565b6001600160a01b0381165f908152600160209081526040808320338452909152902054906024359081831061046f576104688261046d94033383610aed565b610a55565b005b60405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608490fd5b34610145575f366003190112610145576104d8610ac6565b600580546001600160a01b031981169091555f906001600160a01b03165f516020610b515f395f51905f528280a3005b34610145576020366003190112610145576001600160a01b03610529610809565b165f525f602052602060405f2054604051908152f35b346101455760203660031901126101455761046d60043533610a55565b346101455760403660031901126101455761046d610578610809565b6024359061089d565b34610145575f366003190112610145576020600754604051908152f35b34610145575f36600319011261014557602060405160068152f35b34610145576060366003190112610145576105d2610809565b6105da61081f565b6001600160a01b0382165f818152600160209081526040808320338452909152902054909260443592915f198110610618575b506102c29350610961565b83811061067d57841561066a573315610657576102c2945f52600160205260405f2060018060a01b0333165f526020528360405f20910390558461060d565b634a1406b160e11b5f525f60045260245ffd5b63e602df0560e01b5f525f60045260245ffd5b8390637dc7a0d960e11b5f523360045260245260445260645ffd5b34610145575f366003190112610145576020600254604051908152f35b34610145576040366003190112610145576102c26106d1610809565b6024359033610aed565b34610145575f366003190112610145576006546040516001600160a01b039091168152602090f35b34610145575f366003190112610145576040515f6003548060011c906001811680156107cb575b6020831081146103ca578285529081156103ae57506001146107755750819003601f01601f19168101906001600160401b038211818310176103445761034082918260405282610835565b60035f9081529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8282106107b557506020915082010182610311565b60018160209254838588010152019101906107a0565b91607f169161072a565b34610145576020366003190112610145576020906001600160a01b036107f9610809565b165f526009825260405f20548152f35b600435906001600160a01b038216820361014557565b602435906001600160a01b038216820361014557565b9190916020815282518060208301525f5b818110610866575060409293505f838284010152601f8019910116010190565b8060208092870101516040828601015201610846565b9190820180921161088957565b634e487b7160e01b5f52601160045260245ffd5b90335f52600860205260ff60405f20541661093857506001600160a01b0381165f818152600960205260409020546108f6576108dc6007548093610a0b565b5f5260096020526108f260405f2091825461087c565b9055565b60405162461bcd60e51b815260206004820152601a6024820152791059191c995cdcc81a185cc8185b1c9958591e481b5a5b9d195960321b6044820152606490fd5b906109438282610a0b565b60018060a01b03165f5260096020526108f260405f2091825461087c565b6001600160a01b03169081156109f8576001600160a01b03169182156109e557815f525f60205260405f20548181106109cc57815f516020610b715f395f51905f5292602092855f525f84520360405f2055845f525f825260405f20818154019055604051908152a3565b8263391434e360e21b5f5260045260245260445260645ffd5b63ec442f0560e01b5f525f60045260245ffd5b634b637e8f60e11b5f525f60045260245ffd5b6001600160a01b03169081156109e5575f516020610b715f395f51905f52602082610a395f9460025461087c565b60025584845283825260408420818154019055604051908152a3565b9091906001600160a01b031680156109f857805f525f60205260405f2054838110610aac576020845f94955f516020610b715f395f51905f52938587528684520360408620558060025403600255604051908152a3565b915063391434e360e21b5f5260045260245260445260645ffd5b6005546001600160a01b03163303610ada57565b63118cdaa760e01b5f523360045260245ffd5b6001600160a01b031690811561066a576001600160a01b03169182156106575760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591835f526001825260405f20855f5282528060405f2055604051908152a356fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204289982fcf7a140f0becfd824954d196a7976fa4365850643ed469ba6e7168f564736f6c634300081e0033",
556
- "linkReferences": {},
557
- "deployedLinkReferences": {}
558
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getRentStreamerContract = getRentStreamerContract;
7
- const ethers_1 = require("ethers");
8
- const chains_1 = __importDefault(require("../../configs/chains"));
9
- const getContractAddress_1 = require("../getContractAddress");
10
- const artifacts_1 = require("../../utils/artifacts");
11
- async function getRentStreamerContract(chainId, runner) {
12
- if (!runner) {
13
- const rpc = chains_1.default[chainId].rpcs[0];
14
- runner = new ethers_1.ethers.JsonRpcProvider(rpc);
15
- }
16
- const address = (0, getContractAddress_1.getContractAddress)(chainId, "rentstreamer");
17
- const abi = (0, artifacts_1.getABI)("rentstreamer");
18
- return new ethers_1.ethers.Contract(address, abi, runner);
19
- }