@cleanmate/cip-sdk 1.2.8 → 1.3.1

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.
@@ -3,1044 +3,1104 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RewardsManagerABI = void 0;
4
4
  exports.RewardsManagerABI = [
5
5
  {
6
- inputs: [
6
+ "inputs": [
7
7
  {
8
- internalType: "address",
9
- name: "addressesProviderAddr",
10
- type: "address",
8
+ "internalType": "address",
9
+ "name": "addressesProviderAddr",
10
+ "type": "address"
11
11
  },
12
12
  {
13
- internalType: "bytes32",
14
- name: "appIdValue",
15
- type: "bytes32",
13
+ "internalType": "bytes32",
14
+ "name": "appIdValue",
15
+ "type": "bytes32"
16
16
  },
17
17
  {
18
- internalType: "uint256",
19
- name: "chainIdValue",
20
- type: "uint256",
21
- },
18
+ "internalType": "uint256",
19
+ "name": "chainIdValue",
20
+ "type": "uint256"
21
+ }
22
22
  ],
23
- stateMutability: "nonpayable",
24
- type: "constructor",
23
+ "stateMutability": "nonpayable",
24
+ "type": "constructor"
25
25
  },
26
26
  {
27
- inputs: [],
28
- name: "AccessControlBadConfirmation",
29
- type: "error",
27
+ "inputs": [],
28
+ "name": "AccessControlBadConfirmation",
29
+ "type": "error"
30
30
  },
31
31
  {
32
- inputs: [
32
+ "inputs": [
33
33
  {
34
- internalType: "address",
35
- name: "account",
36
- type: "address",
34
+ "internalType": "address",
35
+ "name": "account",
36
+ "type": "address"
37
37
  },
38
38
  {
39
- internalType: "bytes32",
40
- name: "neededRole",
41
- type: "bytes32",
42
- },
39
+ "internalType": "bytes32",
40
+ "name": "neededRole",
41
+ "type": "bytes32"
42
+ }
43
43
  ],
44
- name: "AccessControlUnauthorizedAccount",
45
- type: "error",
46
- },
47
- {
48
- inputs: [],
49
- name: "CleanupDoesNotExist",
50
- type: "error",
51
- },
52
- {
53
- inputs: [],
54
- name: "CleanupNotCompleted",
55
- type: "error",
44
+ "name": "AccessControlUnauthorizedAccount",
45
+ "type": "error"
56
46
  },
57
47
  {
58
- inputs: [],
59
- name: "ECDSAInvalidSignature",
60
- type: "error",
48
+ "inputs": [],
49
+ "name": "ECDSAInvalidSignature",
50
+ "type": "error"
61
51
  },
62
52
  {
63
- inputs: [
53
+ "inputs": [
64
54
  {
65
- internalType: "uint256",
66
- name: "length",
67
- type: "uint256",
68
- },
55
+ "internalType": "uint256",
56
+ "name": "length",
57
+ "type": "uint256"
58
+ }
69
59
  ],
70
- name: "ECDSAInvalidSignatureLength",
71
- type: "error",
60
+ "name": "ECDSAInvalidSignatureLength",
61
+ "type": "error"
72
62
  },
73
63
  {
74
- inputs: [
64
+ "inputs": [
75
65
  {
76
- internalType: "bytes32",
77
- name: "s",
78
- type: "bytes32",
79
- },
66
+ "internalType": "bytes32",
67
+ "name": "s",
68
+ "type": "bytes32"
69
+ }
80
70
  ],
81
- name: "ECDSAInvalidSignatureS",
82
- type: "error",
71
+ "name": "ECDSAInvalidSignatureS",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "ImpactDoesNotExist",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "ImpactNotCompleted",
82
+ "type": "error"
83
83
  },
84
84
  {
85
- inputs: [],
86
- name: "InsufficientPendingRewards",
87
- type: "error",
85
+ "inputs": [],
86
+ "name": "InsufficientPendingRewards",
87
+ "type": "error"
88
88
  },
89
89
  {
90
- inputs: [],
91
- name: "InvalidAppId",
92
- type: "error",
90
+ "inputs": [],
91
+ "name": "InvalidAppId",
92
+ "type": "error"
93
93
  },
94
94
  {
95
- inputs: [],
96
- name: "InvalidCleanupAddress",
97
- type: "error",
95
+ "inputs": [],
96
+ "name": "InvalidImpactAddress",
97
+ "type": "error"
98
98
  },
99
99
  {
100
- inputs: [],
101
- name: "InvalidInput",
102
- type: "error",
100
+ "inputs": [],
101
+ "name": "InvalidInput",
102
+ "type": "error"
103
103
  },
104
104
  {
105
- inputs: [],
106
- name: "InvalidRewardsPoolAddress",
107
- type: "error",
105
+ "inputs": [],
106
+ "name": "InvalidRewardsPoolAddress",
107
+ "type": "error"
108
108
  },
109
109
  {
110
- inputs: [],
111
- name: "InvalidUserRegistryAddress",
112
- type: "error",
110
+ "inputs": [],
111
+ "name": "InvalidUserRegistryAddress",
112
+ "type": "error"
113
113
  },
114
114
  {
115
- inputs: [],
116
- name: "LengthMismatch",
117
- type: "error",
115
+ "inputs": [],
116
+ "name": "LengthMismatch",
117
+ "type": "error"
118
118
  },
119
119
  {
120
- inputs: [],
121
- name: "ParticipantNotAcceptedInCleanup",
122
- type: "error",
120
+ "inputs": [],
121
+ "name": "ParticipantNotAcceptedInImpact",
122
+ "type": "error"
123
123
  },
124
124
  {
125
- inputs: [],
126
- name: "ProofNotSubmitted",
127
- type: "error",
125
+ "inputs": [],
126
+ "name": "ProofNotSubmitted",
127
+ "type": "error"
128
128
  },
129
129
  {
130
- inputs: [],
131
- name: "ReentrancyGuardReentrantCall",
132
- type: "error",
130
+ "inputs": [],
131
+ "name": "ReentrancyGuardReentrantCall",
132
+ "type": "error"
133
133
  },
134
134
  {
135
- inputs: [],
136
- name: "RewardsExceedLimit",
137
- type: "error",
135
+ "inputs": [],
136
+ "name": "RewardsExceedLimit",
137
+ "type": "error"
138
138
  },
139
139
  {
140
- inputs: [
140
+ "inputs": [
141
141
  {
142
- internalType: "address",
143
- name: "expectedSigner",
144
- type: "address",
142
+ "internalType": "address",
143
+ "name": "expectedSigner",
144
+ "type": "address"
145
145
  },
146
146
  {
147
- internalType: "address",
148
- name: "actualSigner",
149
- type: "address",
150
- },
147
+ "internalType": "address",
148
+ "name": "actualSigner",
149
+ "type": "address"
150
+ }
151
151
  ],
152
- name: "UnauthorizedSigner",
153
- type: "error",
152
+ "name": "UnauthorizedSigner",
153
+ "type": "error"
154
154
  },
155
155
  {
156
- inputs: [],
157
- name: "ZeroAddress",
158
- type: "error",
156
+ "inputs": [],
157
+ "name": "ZeroAddress",
158
+ "type": "error"
159
159
  },
160
160
  {
161
- anonymous: false,
162
- inputs: [
161
+ "anonymous": false,
162
+ "inputs": [
163
163
  {
164
- indexed: true,
165
- internalType: "address",
166
- name: "oldProvider",
167
- type: "address",
164
+ "indexed": true,
165
+ "internalType": "address",
166
+ "name": "oldProvider",
167
+ "type": "address"
168
168
  },
169
169
  {
170
- indexed: true,
171
- internalType: "address",
172
- name: "newProvider",
173
- type: "address",
174
- },
170
+ "indexed": true,
171
+ "internalType": "address",
172
+ "name": "newProvider",
173
+ "type": "address"
174
+ }
175
175
  ],
176
- name: "AddressesProviderUpdated",
177
- type: "event",
176
+ "name": "AddressesProviderUpdated",
177
+ "type": "event"
178
178
  },
179
179
  {
180
- anonymous: false,
181
- inputs: [
180
+ "anonymous": false,
181
+ "inputs": [
182
182
  {
183
- indexed: false,
184
- internalType: "bytes32",
185
- name: "oldAppId",
186
- type: "bytes32",
183
+ "indexed": false,
184
+ "internalType": "bytes32",
185
+ "name": "oldAppId",
186
+ "type": "bytes32"
187
187
  },
188
188
  {
189
- indexed: false,
190
- internalType: "bytes32",
191
- name: "newAppId",
192
- type: "bytes32",
193
- },
189
+ "indexed": false,
190
+ "internalType": "bytes32",
191
+ "name": "newAppId",
192
+ "type": "bytes32"
193
+ }
194
194
  ],
195
- name: "AppIdUpdated",
196
- type: "event",
195
+ "name": "AppIdUpdated",
196
+ "type": "event"
197
197
  },
198
198
  {
199
- anonymous: false,
200
- inputs: [
199
+ "anonymous": false,
200
+ "inputs": [
201
201
  {
202
- indexed: true,
203
- internalType: "address",
204
- name: "oldToken",
205
- type: "address",
202
+ "indexed": true,
203
+ "internalType": "address",
204
+ "name": "oldToken",
205
+ "type": "address"
206
206
  },
207
207
  {
208
- indexed: true,
209
- internalType: "address",
210
- name: "newToken",
211
- type: "address",
212
- },
208
+ "indexed": true,
209
+ "internalType": "address",
210
+ "name": "newToken",
211
+ "type": "address"
212
+ }
213
213
  ],
214
- name: "B3TROffRampTokenUpdated",
215
- type: "event",
214
+ "name": "B3TROffRampTokenUpdated",
215
+ "type": "event"
216
216
  },
217
217
  {
218
- anonymous: false,
219
- inputs: [
218
+ "anonymous": false,
219
+ "inputs": [
220
220
  {
221
- indexed: true,
222
- internalType: "address",
223
- name: "oldTreasury",
224
- type: "address",
221
+ "indexed": true,
222
+ "internalType": "address",
223
+ "name": "oldTreasury",
224
+ "type": "address"
225
225
  },
226
226
  {
227
- indexed: true,
228
- internalType: "address",
229
- name: "newTreasury",
230
- type: "address",
231
- },
227
+ "indexed": true,
228
+ "internalType": "address",
229
+ "name": "newTreasury",
230
+ "type": "address"
231
+ }
232
232
  ],
233
- name: "B3TROffRampTreasuryUpdated",
234
- type: "event",
233
+ "name": "B3TROffRampTreasuryUpdated",
234
+ "type": "event"
235
235
  },
236
236
  {
237
- anonymous: false,
238
- inputs: [
237
+ "anonymous": false,
238
+ "inputs": [
239
239
  {
240
- indexed: true,
241
- internalType: "uint256",
242
- name: "cleanupId",
243
- type: "uint256",
240
+ "indexed": true,
241
+ "internalType": "uint256",
242
+ "name": "impactId",
243
+ "type": "uint256"
244
244
  },
245
245
  {
246
- indexed: true,
247
- internalType: "address",
248
- name: "participant",
249
- type: "address",
246
+ "indexed": true,
247
+ "internalType": "address",
248
+ "name": "participant",
249
+ "type": "address"
250
250
  },
251
251
  {
252
- indexed: true,
253
- internalType: "uint256",
254
- name: "streakSubmissionId",
255
- type: "uint256",
252
+ "indexed": true,
253
+ "internalType": "uint256",
254
+ "name": "streakSubmissionId",
255
+ "type": "uint256"
256
256
  },
257
257
  {
258
- indexed: false,
259
- internalType: "uint256",
260
- name: "amount",
261
- type: "uint256",
258
+ "indexed": false,
259
+ "internalType": "uint256",
260
+ "name": "amount",
261
+ "type": "uint256"
262
262
  },
263
263
  {
264
- indexed: false,
265
- internalType: "uint8",
266
- name: "rewardType",
267
- type: "uint8",
268
- },
264
+ "indexed": false,
265
+ "internalType": "uint8",
266
+ "name": "rewardType",
267
+ "type": "uint8"
268
+ }
269
269
  ],
270
- name: "RewardEarned",
271
- type: "event",
270
+ "name": "RewardEarned",
271
+ "type": "event"
272
272
  },
273
273
  {
274
- anonymous: false,
275
- inputs: [
274
+ "anonymous": false,
275
+ "inputs": [
276
276
  {
277
- indexed: true,
278
- internalType: "uint256",
279
- name: "cleanupId",
280
- type: "uint256",
277
+ "indexed": true,
278
+ "internalType": "uint256",
279
+ "name": "impactId",
280
+ "type": "uint256"
281
281
  },
282
282
  {
283
- indexed: true,
284
- internalType: "address",
285
- name: "organizer",
286
- type: "address",
283
+ "indexed": true,
284
+ "internalType": "address",
285
+ "name": "organizer",
286
+ "type": "address"
287
287
  },
288
288
  {
289
- indexed: false,
290
- internalType: "uint256",
291
- name: "totalAmount",
292
- type: "uint256",
289
+ "indexed": false,
290
+ "internalType": "uint256",
291
+ "name": "totalAmount",
292
+ "type": "uint256"
293
293
  },
294
294
  {
295
- indexed: false,
296
- internalType: "uint256",
297
- name: "participantCount",
298
- type: "uint256",
299
- },
295
+ "indexed": false,
296
+ "internalType": "uint256",
297
+ "name": "participantCount",
298
+ "type": "uint256"
299
+ }
300
300
  ],
301
- name: "RewardsDistributed",
302
- type: "event",
301
+ "name": "RewardsDistributed",
302
+ "type": "event"
303
303
  },
304
304
  {
305
- anonymous: false,
306
- inputs: [
305
+ "anonymous": false,
306
+ "inputs": [
307
307
  {
308
- indexed: true,
309
- internalType: "address",
310
- name: "oldPool",
311
- type: "address",
308
+ "indexed": true,
309
+ "internalType": "address",
310
+ "name": "oldPool",
311
+ "type": "address"
312
312
  },
313
313
  {
314
- indexed: true,
315
- internalType: "address",
316
- name: "newPool",
317
- type: "address",
318
- },
314
+ "indexed": true,
315
+ "internalType": "address",
316
+ "name": "newPool",
317
+ "type": "address"
318
+ }
319
319
  ],
320
- name: "RewardsPoolUpdated",
321
- type: "event",
320
+ "name": "RewardsPoolUpdated",
321
+ "type": "event"
322
322
  },
323
323
  {
324
- anonymous: false,
325
- inputs: [
324
+ "anonymous": false,
325
+ "inputs": [
326
326
  {
327
- indexed: true,
328
- internalType: "bytes32",
329
- name: "role",
330
- type: "bytes32",
327
+ "indexed": true,
328
+ "internalType": "bytes32",
329
+ "name": "role",
330
+ "type": "bytes32"
331
331
  },
332
332
  {
333
- indexed: true,
334
- internalType: "bytes32",
335
- name: "previousAdminRole",
336
- type: "bytes32",
333
+ "indexed": true,
334
+ "internalType": "bytes32",
335
+ "name": "previousAdminRole",
336
+ "type": "bytes32"
337
337
  },
338
338
  {
339
- indexed: true,
340
- internalType: "bytes32",
341
- name: "newAdminRole",
342
- type: "bytes32",
343
- },
339
+ "indexed": true,
340
+ "internalType": "bytes32",
341
+ "name": "newAdminRole",
342
+ "type": "bytes32"
343
+ }
344
344
  ],
345
- name: "RoleAdminChanged",
346
- type: "event",
345
+ "name": "RoleAdminChanged",
346
+ "type": "event"
347
347
  },
348
348
  {
349
- anonymous: false,
350
- inputs: [
349
+ "anonymous": false,
350
+ "inputs": [
351
351
  {
352
- indexed: true,
353
- internalType: "bytes32",
354
- name: "role",
355
- type: "bytes32",
352
+ "indexed": true,
353
+ "internalType": "bytes32",
354
+ "name": "role",
355
+ "type": "bytes32"
356
356
  },
357
357
  {
358
- indexed: true,
359
- internalType: "address",
360
- name: "account",
361
- type: "address",
358
+ "indexed": true,
359
+ "internalType": "address",
360
+ "name": "account",
361
+ "type": "address"
362
362
  },
363
363
  {
364
- indexed: true,
365
- internalType: "address",
366
- name: "sender",
367
- type: "address",
368
- },
364
+ "indexed": true,
365
+ "internalType": "address",
366
+ "name": "sender",
367
+ "type": "address"
368
+ }
369
369
  ],
370
- name: "RoleGranted",
371
- type: "event",
370
+ "name": "RoleGranted",
371
+ "type": "event"
372
372
  },
373
373
  {
374
- anonymous: false,
375
- inputs: [
374
+ "anonymous": false,
375
+ "inputs": [
376
376
  {
377
- indexed: true,
378
- internalType: "bytes32",
379
- name: "role",
380
- type: "bytes32",
377
+ "indexed": true,
378
+ "internalType": "bytes32",
379
+ "name": "role",
380
+ "type": "bytes32"
381
381
  },
382
382
  {
383
- indexed: true,
384
- internalType: "address",
385
- name: "account",
386
- type: "address",
383
+ "indexed": true,
384
+ "internalType": "address",
385
+ "name": "account",
386
+ "type": "address"
387
387
  },
388
388
  {
389
- indexed: true,
390
- internalType: "address",
391
- name: "sender",
392
- type: "address",
393
- },
389
+ "indexed": true,
390
+ "internalType": "address",
391
+ "name": "sender",
392
+ "type": "address"
393
+ }
394
394
  ],
395
- name: "RoleRevoked",
396
- type: "event",
395
+ "name": "RoleRevoked",
396
+ "type": "event"
397
397
  },
398
398
  {
399
- anonymous: false,
400
- inputs: [
399
+ "anonymous": false,
400
+ "inputs": [
401
401
  {
402
- indexed: true,
403
- internalType: "address",
404
- name: "distributor",
405
- type: "address",
402
+ "indexed": true,
403
+ "internalType": "address",
404
+ "name": "distributor",
405
+ "type": "address"
406
406
  },
407
407
  {
408
- indexed: false,
409
- internalType: "uint256",
410
- name: "totalAmount",
411
- type: "uint256",
408
+ "indexed": false,
409
+ "internalType": "uint256",
410
+ "name": "totalAmount",
411
+ "type": "uint256"
412
412
  },
413
413
  {
414
- indexed: false,
415
- internalType: "uint256",
416
- name: "submissionCount",
417
- type: "uint256",
418
- },
414
+ "indexed": false,
415
+ "internalType": "uint256",
416
+ "name": "submissionCount",
417
+ "type": "uint256"
418
+ }
419
419
  ],
420
- name: "StreaksRewardDistributed",
421
- type: "event",
420
+ "name": "StreaksRewardDistributed",
421
+ "type": "event"
422
422
  },
423
423
  {
424
- anonymous: false,
425
- inputs: [
424
+ "anonymous": false,
425
+ "inputs": [
426
426
  {
427
- indexed: true,
428
- internalType: "address",
429
- name: "user",
430
- type: "address",
427
+ "indexed": true,
428
+ "internalType": "address",
429
+ "name": "user",
430
+ "type": "address"
431
431
  },
432
432
  {
433
- indexed: true,
434
- internalType: "address",
435
- name: "recipient",
436
- type: "address",
433
+ "indexed": true,
434
+ "internalType": "address",
435
+ "name": "recipient",
436
+ "type": "address"
437
437
  },
438
438
  {
439
- indexed: false,
440
- internalType: "uint256",
441
- name: "amount",
442
- type: "uint256",
443
- },
439
+ "indexed": false,
440
+ "internalType": "uint256",
441
+ "name": "amount",
442
+ "type": "uint256"
443
+ }
444
444
  ],
445
- name: "TokenTransferred",
446
- type: "event",
445
+ "name": "TokenTransferred",
446
+ "type": "event"
447
447
  },
448
448
  {
449
- inputs: [],
450
- name: "ADMIN_ROLE",
451
- outputs: [
452
- {
453
- internalType: "bytes32",
454
- name: "",
455
- type: "bytes32",
456
- },
449
+ "inputs": [],
450
+ "name": "ADMIN_ROLE",
451
+ "outputs": [
452
+ {
453
+ "internalType": "bytes32",
454
+ "name": "",
455
+ "type": "bytes32"
456
+ }
457
457
  ],
458
- stateMutability: "view",
459
- type: "function",
458
+ "stateMutability": "view",
459
+ "type": "function"
460
460
  },
461
461
  {
462
- inputs: [],
463
- name: "DEFAULT_ADMIN_ROLE",
464
- outputs: [
465
- {
466
- internalType: "bytes32",
467
- name: "",
468
- type: "bytes32",
469
- },
462
+ "inputs": [],
463
+ "name": "DEFAULT_ADMIN_ROLE",
464
+ "outputs": [
465
+ {
466
+ "internalType": "bytes32",
467
+ "name": "",
468
+ "type": "bytes32"
469
+ }
470
470
  ],
471
- stateMutability: "view",
472
- type: "function",
471
+ "stateMutability": "view",
472
+ "type": "function"
473
473
  },
474
474
  {
475
- inputs: [],
476
- name: "DOMAIN_SEPARATOR",
477
- outputs: [
478
- {
479
- internalType: "bytes32",
480
- name: "",
481
- type: "bytes32",
482
- },
475
+ "inputs": [],
476
+ "name": "DOMAIN_SEPARATOR",
477
+ "outputs": [
478
+ {
479
+ "internalType": "bytes32",
480
+ "name": "",
481
+ "type": "bytes32"
482
+ }
483
483
  ],
484
- stateMutability: "view",
485
- type: "function",
484
+ "stateMutability": "view",
485
+ "type": "function"
486
486
  },
487
487
  {
488
- inputs: [],
489
- name: "addressesProvider",
490
- outputs: [
491
- {
492
- internalType: "contract IAddressesProvider",
493
- name: "",
494
- type: "address",
495
- },
488
+ "inputs": [],
489
+ "name": "addressesProvider",
490
+ "outputs": [
491
+ {
492
+ "internalType": "contract IAddressesProvider",
493
+ "name": "",
494
+ "type": "address"
495
+ }
496
496
  ],
497
- stateMutability: "view",
498
- type: "function",
497
+ "stateMutability": "view",
498
+ "type": "function"
499
499
  },
500
500
  {
501
- inputs: [],
502
- name: "appId",
503
- outputs: [
504
- {
505
- internalType: "bytes32",
506
- name: "",
507
- type: "bytes32",
508
- },
501
+ "inputs": [],
502
+ "name": "appId",
503
+ "outputs": [
504
+ {
505
+ "internalType": "bytes32",
506
+ "name": "",
507
+ "type": "bytes32"
508
+ }
509
509
  ],
510
- stateMutability: "view",
511
- type: "function",
510
+ "stateMutability": "view",
511
+ "type": "function"
512
512
  },
513
513
  {
514
- inputs: [],
515
- name: "b3trToken",
516
- outputs: [
517
- {
518
- internalType: "address",
519
- name: "",
520
- type: "address",
521
- },
514
+ "inputs": [],
515
+ "name": "b3trToken",
516
+ "outputs": [
517
+ {
518
+ "internalType": "address",
519
+ "name": "",
520
+ "type": "address"
521
+ }
522
522
  ],
523
- stateMutability: "view",
524
- type: "function",
523
+ "stateMutability": "view",
524
+ "type": "function"
525
525
  },
526
526
  {
527
- inputs: [],
528
- name: "b3trTreasury",
529
- outputs: [
530
- {
531
- internalType: "address",
532
- name: "",
533
- type: "address",
534
- },
527
+ "inputs": [],
528
+ "name": "b3trTreasury",
529
+ "outputs": [
530
+ {
531
+ "internalType": "address",
532
+ "name": "",
533
+ "type": "address"
534
+ }
535
535
  ],
536
- stateMutability: "view",
537
- type: "function",
536
+ "stateMutability": "view",
537
+ "type": "function"
538
538
  },
539
539
  {
540
- inputs: [],
541
- name: "chainId",
542
- outputs: [
543
- {
544
- internalType: "uint256",
545
- name: "",
546
- type: "uint256",
547
- },
540
+ "inputs": [],
541
+ "name": "chainId",
542
+ "outputs": [
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "",
546
+ "type": "uint256"
547
+ }
548
548
  ],
549
- stateMutability: "view",
550
- type: "function",
549
+ "stateMutability": "view",
550
+ "type": "function"
551
551
  },
552
552
  {
553
- inputs: [
553
+ "inputs": [
554
554
  {
555
- components: [
555
+ "components": [
556
556
  {
557
- internalType: "uint256",
558
- name: "cleanupId",
559
- type: "uint256",
557
+ "internalType": "uint256",
558
+ "name": "impactId",
559
+ "type": "uint256"
560
560
  },
561
561
  {
562
- internalType: "address[]",
563
- name: "participants",
564
- type: "address[]",
562
+ "internalType": "address[]",
563
+ "name": "participants",
564
+ "type": "address[]"
565
565
  },
566
566
  {
567
- internalType: "uint256[]",
568
- name: "amounts",
569
- type: "uint256[]",
567
+ "internalType": "uint256[]",
568
+ "name": "amounts",
569
+ "type": "uint256[]"
570
570
  },
571
571
  {
572
- internalType: "string[]",
573
- name: "proofTypes",
574
- type: "string[]",
572
+ "internalType": "string[]",
573
+ "name": "proofTypes",
574
+ "type": "string[]"
575
575
  },
576
576
  {
577
- internalType: "string[]",
578
- name: "proofValues",
579
- type: "string[]",
577
+ "internalType": "string[]",
578
+ "name": "proofValues",
579
+ "type": "string[]"
580
580
  },
581
581
  {
582
- internalType: "string[]",
583
- name: "impactCodes",
584
- type: "string[]",
582
+ "internalType": "string[]",
583
+ "name": "impactCodes",
584
+ "type": "string[]"
585
585
  },
586
586
  {
587
- internalType: "uint256[]",
588
- name: "impactValues",
589
- type: "uint256[]",
587
+ "internalType": "uint256[]",
588
+ "name": "impactValues",
589
+ "type": "uint256[]"
590
590
  },
591
591
  {
592
- internalType: "string",
593
- name: "description",
594
- type: "string",
592
+ "internalType": "string",
593
+ "name": "description",
594
+ "type": "string"
595
595
  },
596
596
  {
597
- internalType: "string",
598
- name: "metadata",
599
- type: "string",
600
- },
597
+ "internalType": "string",
598
+ "name": "metadata",
599
+ "type": "string"
600
+ }
601
601
  ],
602
- internalType: "struct Params.DistributeRewardsParams",
603
- name: "params",
604
- type: "tuple",
605
- },
602
+ "internalType": "struct Params.DistributeRewardsParams",
603
+ "name": "params",
604
+ "type": "tuple"
605
+ }
606
606
  ],
607
- name: "distributeRewards",
608
- outputs: [],
609
- stateMutability: "nonpayable",
610
- type: "function",
607
+ "name": "distributeRewards",
608
+ "outputs": [],
609
+ "stateMutability": "nonpayable",
610
+ "type": "function"
611
611
  },
612
612
  {
613
- inputs: [
613
+ "inputs": [
614
614
  {
615
- components: [
615
+ "components": [
616
616
  {
617
- internalType: "uint256[]",
618
- name: "submissionIds",
619
- type: "uint256[]",
617
+ "internalType": "uint256[]",
618
+ "name": "submissionIds",
619
+ "type": "uint256[]"
620
620
  },
621
621
  {
622
- internalType: "uint256[]",
623
- name: "amounts",
624
- type: "uint256[]",
622
+ "internalType": "uint256[]",
623
+ "name": "amounts",
624
+ "type": "uint256[]"
625
625
  },
626
626
  {
627
- internalType: "string[]",
628
- name: "proofTypes",
629
- type: "string[]",
627
+ "internalType": "string[]",
628
+ "name": "proofTypes",
629
+ "type": "string[]"
630
630
  },
631
631
  {
632
- internalType: "string[]",
633
- name: "proofValues",
634
- type: "string[]",
632
+ "internalType": "string[]",
633
+ "name": "proofValues",
634
+ "type": "string[]"
635
635
  },
636
636
  {
637
- internalType: "string[]",
638
- name: "impactCodes",
639
- type: "string[]",
637
+ "internalType": "string[]",
638
+ "name": "impactCodes",
639
+ "type": "string[]"
640
640
  },
641
641
  {
642
- internalType: "uint256[]",
643
- name: "impactValues",
644
- type: "uint256[]",
642
+ "internalType": "uint256[]",
643
+ "name": "impactValues",
644
+ "type": "uint256[]"
645
645
  },
646
646
  {
647
- internalType: "string",
648
- name: "description",
649
- type: "string",
647
+ "internalType": "string",
648
+ "name": "description",
649
+ "type": "string"
650
650
  },
651
651
  {
652
- internalType: "string",
653
- name: "metadata",
654
- type: "string",
655
- },
652
+ "internalType": "string",
653
+ "name": "metadata",
654
+ "type": "string"
655
+ }
656
656
  ],
657
- internalType: "struct Params.DistributeStreaksRewardParams",
658
- name: "params",
659
- type: "tuple",
660
- },
657
+ "internalType": "struct Params.DistributeStreaksRewardParams",
658
+ "name": "params",
659
+ "type": "tuple"
660
+ }
661
661
  ],
662
- name: "distributeStreaksReward",
663
- outputs: [],
664
- stateMutability: "nonpayable",
665
- type: "function",
662
+ "name": "distributeStreaksReward",
663
+ "outputs": [],
664
+ "stateMutability": "nonpayable",
665
+ "type": "function"
666
666
  },
667
667
  {
668
- inputs: [],
669
- name: "getAvailableFunds",
670
- outputs: [
671
- {
672
- internalType: "uint256",
673
- name: "funds",
674
- type: "uint256",
675
- },
668
+ "inputs": [],
669
+ "name": "getAvailableFunds",
670
+ "outputs": [
671
+ {
672
+ "internalType": "uint256",
673
+ "name": "funds",
674
+ "type": "uint256"
675
+ }
676
676
  ],
677
- stateMutability: "view",
678
- type: "function",
677
+ "stateMutability": "view",
678
+ "type": "function"
679
679
  },
680
680
  {
681
- inputs: [],
682
- name: "getChainId",
683
- outputs: [
684
- {
685
- internalType: "uint256",
686
- name: "",
687
- type: "uint256",
688
- },
681
+ "inputs": [],
682
+ "name": "getChainId",
683
+ "outputs": [
684
+ {
685
+ "internalType": "uint256",
686
+ "name": "",
687
+ "type": "uint256"
688
+ }
689
689
  ],
690
- stateMutability: "view",
691
- type: "function",
690
+ "stateMutability": "view",
691
+ "type": "function"
692
692
  },
693
693
  {
694
- inputs: [
694
+ "inputs": [
695
695
  {
696
- internalType: "bytes32",
697
- name: "role",
698
- type: "bytes32",
699
- },
696
+ "internalType": "bytes32",
697
+ "name": "role",
698
+ "type": "bytes32"
699
+ }
700
700
  ],
701
- name: "getRoleAdmin",
702
- outputs: [
701
+ "name": "getRoleAdmin",
702
+ "outputs": [
703
703
  {
704
- internalType: "bytes32",
705
- name: "",
706
- type: "bytes32",
707
- },
704
+ "internalType": "bytes32",
705
+ "name": "",
706
+ "type": "bytes32"
707
+ }
708
708
  ],
709
- stateMutability: "view",
710
- type: "function",
709
+ "stateMutability": "view",
710
+ "type": "function"
711
711
  },
712
712
  {
713
- inputs: [
713
+ "inputs": [
714
714
  {
715
- internalType: "bytes32",
716
- name: "role",
717
- type: "bytes32",
715
+ "internalType": "bytes32",
716
+ "name": "role",
717
+ "type": "bytes32"
718
718
  },
719
719
  {
720
- internalType: "address",
721
- name: "account",
722
- type: "address",
723
- },
720
+ "internalType": "address",
721
+ "name": "account",
722
+ "type": "address"
723
+ }
724
724
  ],
725
- name: "grantRole",
726
- outputs: [],
727
- stateMutability: "nonpayable",
728
- type: "function",
725
+ "name": "grantRole",
726
+ "outputs": [],
727
+ "stateMutability": "nonpayable",
728
+ "type": "function"
729
729
  },
730
730
  {
731
- inputs: [
731
+ "inputs": [
732
732
  {
733
- internalType: "bytes32",
734
- name: "role",
735
- type: "bytes32",
733
+ "internalType": "bytes32",
734
+ "name": "role",
735
+ "type": "bytes32"
736
736
  },
737
737
  {
738
- internalType: "address",
739
- name: "account",
740
- type: "address",
741
- },
738
+ "internalType": "address",
739
+ "name": "account",
740
+ "type": "address"
741
+ }
742
742
  ],
743
- name: "hasRole",
744
- outputs: [
743
+ "name": "hasRole",
744
+ "outputs": [
745
745
  {
746
- internalType: "bool",
747
- name: "",
748
- type: "bool",
749
- },
746
+ "internalType": "bool",
747
+ "name": "",
748
+ "type": "bool"
749
+ }
750
750
  ],
751
- stateMutability: "view",
752
- type: "function",
751
+ "stateMutability": "view",
752
+ "type": "function"
753
753
  },
754
754
  {
755
- inputs: [
755
+ "inputs": [
756
756
  {
757
- internalType: "address",
758
- name: "",
759
- type: "address",
760
- },
757
+ "internalType": "address",
758
+ "name": "",
759
+ "type": "address"
760
+ }
761
761
  ],
762
- name: "nonces",
763
- outputs: [
762
+ "name": "nonces",
763
+ "outputs": [
764
764
  {
765
- internalType: "uint256",
766
- name: "",
767
- type: "uint256",
768
- },
765
+ "internalType": "uint256",
766
+ "name": "",
767
+ "type": "uint256"
768
+ }
769
769
  ],
770
- stateMutability: "view",
771
- type: "function",
770
+ "stateMutability": "view",
771
+ "type": "function"
772
772
  },
773
773
  {
774
- inputs: [
774
+ "inputs": [
775
775
  {
776
- internalType: "bytes32",
777
- name: "role",
778
- type: "bytes32",
776
+ "internalType": "bytes32",
777
+ "name": "role",
778
+ "type": "bytes32"
779
779
  },
780
780
  {
781
- internalType: "address",
782
- name: "callerConfirmation",
783
- type: "address",
784
- },
781
+ "internalType": "address",
782
+ "name": "callerConfirmation",
783
+ "type": "address"
784
+ }
785
785
  ],
786
- name: "renounceRole",
787
- outputs: [],
788
- stateMutability: "nonpayable",
789
- type: "function",
786
+ "name": "renounceRole",
787
+ "outputs": [],
788
+ "stateMutability": "nonpayable",
789
+ "type": "function"
790
790
  },
791
791
  {
792
- inputs: [
792
+ "inputs": [
793
793
  {
794
- internalType: "bytes32",
795
- name: "role",
796
- type: "bytes32",
794
+ "internalType": "bytes32",
795
+ "name": "role",
796
+ "type": "bytes32"
797
797
  },
798
798
  {
799
- internalType: "address",
800
- name: "account",
801
- type: "address",
802
- },
799
+ "internalType": "address",
800
+ "name": "account",
801
+ "type": "address"
802
+ }
803
803
  ],
804
- name: "revokeRole",
805
- outputs: [],
806
- stateMutability: "nonpayable",
807
- type: "function",
804
+ "name": "revokeRole",
805
+ "outputs": [],
806
+ "stateMutability": "nonpayable",
807
+ "type": "function"
808
808
  },
809
809
  {
810
- inputs: [
810
+ "inputs": [
811
811
  {
812
- internalType: "address",
813
- name: "",
814
- type: "address",
815
- },
812
+ "internalType": "address",
813
+ "name": "",
814
+ "type": "address"
815
+ }
816
816
  ],
817
- name: "rewards",
818
- outputs: [
817
+ "name": "rewards",
818
+ "outputs": [
819
819
  {
820
- internalType: "uint256",
821
- name: "bonus",
822
- type: "uint256",
820
+ "internalType": "uint256",
821
+ "name": "bonus",
822
+ "type": "uint256"
823
823
  },
824
824
  {
825
- internalType: "uint256",
826
- name: "referral",
827
- type: "uint256",
825
+ "internalType": "uint256",
826
+ "name": "referral",
827
+ "type": "uint256"
828
828
  },
829
829
  {
830
- internalType: "uint256",
831
- name: "others",
832
- type: "uint256",
830
+ "internalType": "uint256",
831
+ "name": "others",
832
+ "type": "uint256"
833
833
  },
834
834
  {
835
- internalType: "uint256",
836
- name: "received",
837
- type: "uint256",
838
- },
835
+ "internalType": "uint256",
836
+ "name": "received",
837
+ "type": "uint256"
838
+ }
839
839
  ],
840
- stateMutability: "view",
841
- type: "function",
840
+ "stateMutability": "view",
841
+ "type": "function"
842
842
  },
843
843
  {
844
- inputs: [
844
+ "inputs": [
845
845
  {
846
- internalType: "uint256",
847
- name: "",
848
- type: "uint256",
849
- },
846
+ "internalType": "uint256",
847
+ "name": "",
848
+ "type": "uint256"
849
+ }
850
850
  ],
851
- name: "rewardsDistributed",
852
- outputs: [
851
+ "name": "rewardsDistributed",
852
+ "outputs": [
853
853
  {
854
- internalType: "bool",
855
- name: "",
856
- type: "bool",
857
- },
854
+ "internalType": "bool",
855
+ "name": "",
856
+ "type": "bool"
857
+ }
858
858
  ],
859
- stateMutability: "view",
860
- type: "function",
859
+ "stateMutability": "view",
860
+ "type": "function"
861
861
  },
862
862
  {
863
- inputs: [
863
+ "inputs": [
864
864
  {
865
- components: [
865
+ "components": [
866
866
  {
867
- internalType: "address[]",
868
- name: "recipients",
869
- type: "address[]",
867
+ "internalType": "address[]",
868
+ "name": "recipients",
869
+ "type": "address[]"
870
870
  },
871
871
  {
872
- internalType: "uint256[]",
873
- name: "amounts",
874
- type: "uint256[]",
872
+ "internalType": "uint256[]",
873
+ "name": "amounts",
874
+ "type": "uint256[]"
875
875
  },
876
876
  {
877
- internalType: "enum Params.RewardType[]",
878
- name: "rewardTypes",
879
- type: "uint8[]",
880
- },
877
+ "internalType": "uint256",
878
+ "name": "impactId",
879
+ "type": "uint256"
880
+ }
881
881
  ],
882
- internalType: "struct Params.SendRewardsParams",
883
- name: "params",
884
- type: "tuple",
885
- },
882
+ "internalType": "struct Params.SendImpactRewardsParams",
883
+ "name": "params",
884
+ "type": "tuple"
885
+ }
886
886
  ],
887
- name: "sendRewards",
888
- outputs: [],
889
- stateMutability: "nonpayable",
890
- type: "function",
887
+ "name": "sendImpactRewards",
888
+ "outputs": [],
889
+ "stateMutability": "nonpayable",
890
+ "type": "function"
891
891
  },
892
892
  {
893
- inputs: [
893
+ "inputs": [
894
894
  {
895
- internalType: "address",
896
- name: "newAddressesProvider",
897
- type: "address",
898
- },
895
+ "components": [
896
+ {
897
+ "internalType": "address[]",
898
+ "name": "recipients",
899
+ "type": "address[]"
900
+ },
901
+ {
902
+ "internalType": "uint256[]",
903
+ "name": "amounts",
904
+ "type": "uint256[]"
905
+ },
906
+ {
907
+ "internalType": "enum Params.RewardType[]",
908
+ "name": "rewardTypes",
909
+ "type": "uint8[]"
910
+ }
911
+ ],
912
+ "internalType": "struct Params.SendRewardsParams",
913
+ "name": "params",
914
+ "type": "tuple"
915
+ }
899
916
  ],
900
- name: "setAddressesProvider",
901
- outputs: [],
902
- stateMutability: "nonpayable",
903
- type: "function",
917
+ "name": "sendRewards",
918
+ "outputs": [],
919
+ "stateMutability": "nonpayable",
920
+ "type": "function"
904
921
  },
905
922
  {
906
- inputs: [
923
+ "inputs": [
907
924
  {
908
- internalType: "bytes32",
909
- name: "newAppId",
910
- type: "bytes32",
911
- },
925
+ "components": [
926
+ {
927
+ "internalType": "address[]",
928
+ "name": "recipients",
929
+ "type": "address[]"
930
+ },
931
+ {
932
+ "internalType": "uint256[]",
933
+ "name": "amounts",
934
+ "type": "uint256[]"
935
+ },
936
+ {
937
+ "internalType": "uint256[]",
938
+ "name": "submissionIds",
939
+ "type": "uint256[]"
940
+ }
941
+ ],
942
+ "internalType": "struct Params.SendStreakRewardsParams",
943
+ "name": "params",
944
+ "type": "tuple"
945
+ }
912
946
  ],
913
- name: "setAppId",
914
- outputs: [],
915
- stateMutability: "nonpayable",
916
- type: "function",
947
+ "name": "sendStreakRewards",
948
+ "outputs": [],
949
+ "stateMutability": "nonpayable",
950
+ "type": "function"
917
951
  },
918
952
  {
919
- inputs: [
953
+ "inputs": [
920
954
  {
921
- internalType: "address",
922
- name: "newToken",
923
- type: "address",
924
- },
955
+ "internalType": "address",
956
+ "name": "newAddressesProvider",
957
+ "type": "address"
958
+ }
925
959
  ],
926
- name: "setToken",
927
- outputs: [],
928
- stateMutability: "nonpayable",
929
- type: "function",
960
+ "name": "setAddressesProvider",
961
+ "outputs": [],
962
+ "stateMutability": "nonpayable",
963
+ "type": "function"
930
964
  },
931
965
  {
932
- inputs: [
966
+ "inputs": [
933
967
  {
934
- internalType: "address",
935
- name: "newTreasury",
936
- type: "address",
937
- },
968
+ "internalType": "bytes32",
969
+ "name": "newAppId",
970
+ "type": "bytes32"
971
+ }
938
972
  ],
939
- name: "setTreasury",
940
- outputs: [],
941
- stateMutability: "nonpayable",
942
- type: "function",
973
+ "name": "setAppId",
974
+ "outputs": [],
975
+ "stateMutability": "nonpayable",
976
+ "type": "function"
943
977
  },
944
978
  {
945
- inputs: [
979
+ "inputs": [
946
980
  {
947
- internalType: "uint256",
948
- name: "",
949
- type: "uint256",
950
- },
981
+ "internalType": "address",
982
+ "name": "newToken",
983
+ "type": "address"
984
+ }
951
985
  ],
952
- name: "streakRewardsDistributed",
953
- outputs: [
986
+ "name": "setToken",
987
+ "outputs": [],
988
+ "stateMutability": "nonpayable",
989
+ "type": "function"
990
+ },
991
+ {
992
+ "inputs": [
954
993
  {
955
- internalType: "bool",
956
- name: "",
957
- type: "bool",
958
- },
994
+ "internalType": "address",
995
+ "name": "newTreasury",
996
+ "type": "address"
997
+ }
959
998
  ],
960
- stateMutability: "view",
961
- type: "function",
999
+ "name": "setTreasury",
1000
+ "outputs": [],
1001
+ "stateMutability": "nonpayable",
1002
+ "type": "function"
962
1003
  },
963
1004
  {
964
- inputs: [
1005
+ "inputs": [
965
1006
  {
966
- internalType: "bytes4",
967
- name: "interfaceId",
968
- type: "bytes4",
969
- },
1007
+ "internalType": "uint256",
1008
+ "name": "",
1009
+ "type": "uint256"
1010
+ }
970
1011
  ],
971
- name: "supportsInterface",
972
- outputs: [
1012
+ "name": "streakRewardsDistributed",
1013
+ "outputs": [
973
1014
  {
974
- internalType: "bool",
975
- name: "",
976
- type: "bool",
977
- },
1015
+ "internalType": "bool",
1016
+ "name": "",
1017
+ "type": "bool"
1018
+ }
978
1019
  ],
979
- stateMutability: "view",
980
- type: "function",
1020
+ "stateMutability": "view",
1021
+ "type": "function"
981
1022
  },
982
1023
  {
983
- inputs: [],
984
- name: "totalDistributed",
985
- outputs: [
1024
+ "inputs": [
986
1025
  {
987
- internalType: "uint256",
988
- name: "",
989
- type: "uint256",
990
- },
1026
+ "internalType": "bytes4",
1027
+ "name": "interfaceId",
1028
+ "type": "bytes4"
1029
+ }
991
1030
  ],
992
- stateMutability: "view",
993
- type: "function",
1031
+ "name": "supportsInterface",
1032
+ "outputs": [
1033
+ {
1034
+ "internalType": "bool",
1035
+ "name": "",
1036
+ "type": "bool"
1037
+ }
1038
+ ],
1039
+ "stateMutability": "view",
1040
+ "type": "function"
994
1041
  },
995
1042
  {
996
- inputs: [
1043
+ "inputs": [],
1044
+ "name": "totalDistributed",
1045
+ "outputs": [
1046
+ {
1047
+ "internalType": "uint256",
1048
+ "name": "",
1049
+ "type": "uint256"
1050
+ }
1051
+ ],
1052
+ "stateMutability": "view",
1053
+ "type": "function"
1054
+ },
1055
+ {
1056
+ "inputs": [
997
1057
  {
998
- components: [
1058
+ "components": [
999
1059
  {
1000
- internalType: "address",
1001
- name: "user",
1002
- type: "address",
1060
+ "internalType": "address",
1061
+ "name": "user",
1062
+ "type": "address"
1003
1063
  },
1004
1064
  {
1005
- internalType: "uint256",
1006
- name: "amount",
1007
- type: "uint256",
1008
- },
1065
+ "internalType": "uint256",
1066
+ "name": "amount",
1067
+ "type": "uint256"
1068
+ }
1009
1069
  ],
1010
- internalType: "struct Params.TransferWithPermitParams",
1011
- name: "params",
1012
- type: "tuple",
1070
+ "internalType": "struct Params.TransferWithPermitParams",
1071
+ "name": "params",
1072
+ "type": "tuple"
1013
1073
  },
1014
1074
  {
1015
- internalType: "address",
1016
- name: "embeddedAddress",
1017
- type: "address",
1075
+ "internalType": "address",
1076
+ "name": "embeddedAddress",
1077
+ "type": "address"
1018
1078
  },
1019
1079
  {
1020
- internalType: "uint256",
1021
- name: "deadline",
1022
- type: "uint256",
1080
+ "internalType": "uint256",
1081
+ "name": "deadline",
1082
+ "type": "uint256"
1023
1083
  },
1024
1084
  {
1025
- internalType: "uint8",
1026
- name: "v",
1027
- type: "uint8",
1085
+ "internalType": "uint8",
1086
+ "name": "v",
1087
+ "type": "uint8"
1028
1088
  },
1029
1089
  {
1030
- internalType: "bytes32",
1031
- name: "r",
1032
- type: "bytes32",
1090
+ "internalType": "bytes32",
1091
+ "name": "r",
1092
+ "type": "bytes32"
1033
1093
  },
1034
1094
  {
1035
- internalType: "bytes32",
1036
- name: "s",
1037
- type: "bytes32",
1038
- },
1095
+ "internalType": "bytes32",
1096
+ "name": "s",
1097
+ "type": "bytes32"
1098
+ }
1039
1099
  ],
1040
- name: "transferWithPermit",
1041
- outputs: [],
1042
- stateMutability: "nonpayable",
1043
- type: "function",
1044
- },
1100
+ "name": "transferWithPermit",
1101
+ "outputs": [],
1102
+ "stateMutability": "nonpayable",
1103
+ "type": "function"
1104
+ }
1045
1105
  ];
1046
1106
  //# sourceMappingURL=RewardsManager.js.map