@raac/rpc 2.0.0-beta.7 → 2.0.0-beta.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.
Files changed (32) hide show
  1. package/dist/RPCLibrary.js +14 -2
  2. package/dist/artifacts/core/collectors/fee-streamer/RentStreamer.sol/RentStreamer.json +838 -0
  3. package/dist/artifacts/mocks/core/tokens/USDCTokenLimited.sol/USDCTokenLimited.json +558 -0
  4. package/dist/configs/chains/11155111.json +28 -3
  5. package/dist/contracts/rentStreamer/_helpers.js +19 -0
  6. package/dist/contracts/rentStreamer/getScheduled.js +19 -0
  7. package/dist/contracts/rentStreamer/getState.js +40 -0
  8. package/dist/contracts/rentStreamer/previewRelease.js +23 -0
  9. package/dist/contracts/rentStreamer/release.js +22 -0
  10. package/dist/contracts/rentStreamer/sync.js +21 -0
  11. package/dist/prices/tokenPricesUSD.js +1 -0
  12. package/dist/types/RPCLibrary.d.ts +12 -0
  13. package/dist/types/contracts/rentStreamer/_helpers.d.ts +4 -0
  14. package/dist/types/contracts/rentStreamer/getScheduled.d.ts +12 -0
  15. package/dist/types/contracts/rentStreamer/getState.d.ts +33 -0
  16. package/dist/types/contracts/rentStreamer/previewRelease.d.ts +20 -0
  17. package/dist/types/contracts/rentStreamer/release.d.ts +12 -0
  18. package/dist/types/contracts/rentStreamer/sync.d.ts +11 -0
  19. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/RentStreamer.d.ts +422 -0
  20. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/index.d.ts +1 -0
  21. package/dist/types/typechain-types/contracts/core/collectors/index.d.ts +2 -0
  22. package/dist/types/typechain-types/contracts/mocks/core/tokens/USDCTokenLimited.d.ts +238 -0
  23. package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
  24. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/RentStreamer__factory.d.ts +665 -0
  25. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/index.d.ts +1 -0
  26. package/dist/types/typechain-types/factories/contracts/core/collectors/index.d.ts +1 -0
  27. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/USDCTokenLimited__factory.d.ts +439 -0
  28. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +1 -0
  29. package/dist/types/typechain-types/index.d.ts +4 -0
  30. package/dist/types/utils/artifacts.d.ts +198 -0
  31. package/dist/utils/artifacts.js +4 -0
  32. package/package.json +1 -1
@@ -0,0 +1,558 @@
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
+ }
@@ -103,6 +103,11 @@
103
103
  "id": "crvusdtousdoracle",
104
104
  "name": "pmUSD to USD Oracle",
105
105
  "contract": "0xDC97F7E1C11E339cfE91Dac799D168F922c57b20"
106
+ },
107
+ "rentstreamer": {
108
+ "id": "rentstreamer",
109
+ "name": "Rent Streamer",
110
+ "contract": "0xe1BD7Afe892509b752FA30cf04049Fb45Af022f3"
106
111
  }
107
112
  },
108
113
  "gauges": {
@@ -130,6 +135,12 @@
130
135
  "name": "r-ireetpmUSD (iREET/pmUSD LP)",
131
136
  "contract": "0x084D7252d83AD886348EC58f4b1e5261Ab7f67c9",
132
137
  "stakingToken": "0x7F7d0924C9082F4C3F0D5D97bF9a26C3D3DEf706"
138
+ },
139
+ {
140
+ "id": "r-leraacraacpmUSD",
141
+ "name": "r-leraacraacpmUSD (leRAAC/RAAC/pmUSD LP)",
142
+ "contract": "0x1239C9035Ba29e073b225C78ae97c1A5D6cD6a1E",
143
+ "stakingToken": "0x1D0805Bd3EF5338b66158770c28fD6f4Cd685F28"
133
144
  }
134
145
  ]
135
146
  },
@@ -137,9 +148,16 @@
137
148
  "id": "rwagauges",
138
149
  "label": "RWA Gauges",
139
150
  "gaugeType": "RWAGauge",
140
- "controller": "0x0000000000000000000000000000000000000000",
141
- "distributor": "0x0000000000000000000000000000000000000000",
142
- "gauges": []
151
+ "controller": "0x272495030e96d541C092e3Def9B6351D70Ec447C",
152
+ "distributor": "0x2c3DEA6B0ec087E5E21249CCF9730e73DE8A9444",
153
+ "gauges": [
154
+ {
155
+ "id": "rwa-ireetpmUSD",
156
+ "name": "rwa-ireetpmUSD (iREET/pmUSD LP)",
157
+ "contract": "0x9100E30Cd4E28027A8B769BCbA3C8BE06FC81cf8",
158
+ "stakingToken": "0x7F7d0924C9082F4C3F0D5D97bF9a26C3D3DEf706"
159
+ }
160
+ ]
143
161
  }
144
162
  },
145
163
  "proposals": [
@@ -251,6 +269,13 @@
251
269
  "decimals": 18,
252
270
  "contract": "0x0D63FFffF740A0B5DbcC6C70774FDA1456195a3c"
253
271
  },
272
+ "usdc": {
273
+ "id": "usdc",
274
+ "name": "USDC",
275
+ "symbol": "USDC",
276
+ "decimals": 6,
277
+ "contract": "0xBBfc1B017954e2F65378b189735dd7be279AbC2A"
278
+ },
254
279
  "rtoken": {
255
280
  "id": "rtoken",
256
281
  "name": "RToken",
@@ -0,0 +1,19 @@
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
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getScheduled = void 0;
4
+ const amount_1 = require("../../utils/amount");
5
+ const _helpers_1 = require("./_helpers");
6
+ /**
7
+ * Reads the amount bucketed for one epoch. Released epochs read zero.
8
+ *
9
+ * @param chainId - The chain/network to use.
10
+ * @param epoch - Epoch start timestamp, a multiple of one week.
11
+ * @param provider - Optional ethers.js Provider instance.
12
+ * @returns The scheduled amount in the streamed token's base units.
13
+ */
14
+ const getScheduled = async (chainId, epoch, provider) => {
15
+ const contract = await (0, _helpers_1.getRentStreamerContract)(chainId, provider);
16
+ const [token, amount] = await Promise.all([contract.TOKEN(), contract.scheduled(epoch)]);
17
+ return (0, amount_1.toTokenAmount)(chainId, token, amount);
18
+ };
19
+ exports.getScheduled = getScheduled;