@cleanmate/cip-sdk 1.2.7 → 1.3.0

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.
@@ -0,0 +1,1721 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImpactABI = void 0;
4
+ exports.ImpactABI = [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "internalType": "address",
9
+ "name": "addressesProviderAddr",
10
+ "type": "address"
11
+ },
12
+ {
13
+ "internalType": "uint256",
14
+ "name": "chainIdValue",
15
+ "type": "uint256"
16
+ }
17
+ ],
18
+ "stateMutability": "nonpayable",
19
+ "type": "constructor"
20
+ },
21
+ {
22
+ "inputs": [],
23
+ "name": "AccessControlBadConfirmation",
24
+ "type": "error"
25
+ },
26
+ {
27
+ "inputs": [
28
+ {
29
+ "internalType": "address",
30
+ "name": "account",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "internalType": "bytes32",
35
+ "name": "neededRole",
36
+ "type": "bytes32"
37
+ }
38
+ ],
39
+ "name": "AccessControlUnauthorizedAccount",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [],
44
+ "name": "AlreadyApplied",
45
+ "type": "error"
46
+ },
47
+ {
48
+ "inputs": [],
49
+ "name": "ECDSAInvalidSignature",
50
+ "type": "error"
51
+ },
52
+ {
53
+ "inputs": [
54
+ {
55
+ "internalType": "uint256",
56
+ "name": "length",
57
+ "type": "uint256"
58
+ }
59
+ ],
60
+ "name": "ECDSAInvalidSignatureLength",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [
65
+ {
66
+ "internalType": "bytes32",
67
+ "name": "s",
68
+ "type": "bytes32"
69
+ }
70
+ ],
71
+ "name": "ECDSAInvalidSignatureS",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "EmailNotVerified",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "EmptyString",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "ImpactDoesNotExist",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "ImpactFull",
92
+ "type": "error"
93
+ },
94
+ {
95
+ "inputs": [],
96
+ "name": "ImpactNotOpen",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "InsufficientProofMedia",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "InvalidInput",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "InvalidStatusTransition",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "LengthMismatch",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "NotOrganizer",
122
+ "type": "error"
123
+ },
124
+ {
125
+ "inputs": [],
126
+ "name": "NotVerifiedOrganizer",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [],
131
+ "name": "ParticipantNotFound",
132
+ "type": "error"
133
+ },
134
+ {
135
+ "inputs": [],
136
+ "name": "ParticipantNotPending",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "inputs": [
141
+ {
142
+ "internalType": "address",
143
+ "name": "expectedSigner",
144
+ "type": "address"
145
+ },
146
+ {
147
+ "internalType": "address",
148
+ "name": "actualSigner",
149
+ "type": "address"
150
+ }
151
+ ],
152
+ "name": "UnauthorizedSigner",
153
+ "type": "error"
154
+ },
155
+ {
156
+ "inputs": [],
157
+ "name": "ZeroAddress",
158
+ "type": "error"
159
+ },
160
+ {
161
+ "anonymous": false,
162
+ "inputs": [
163
+ {
164
+ "indexed": true,
165
+ "internalType": "uint256",
166
+ "name": "impactId",
167
+ "type": "uint256"
168
+ },
169
+ {
170
+ "indexed": true,
171
+ "internalType": "address",
172
+ "name": "organizer",
173
+ "type": "address"
174
+ },
175
+ {
176
+ "indexed": false,
177
+ "internalType": "string",
178
+ "name": "metadata",
179
+ "type": "string"
180
+ },
181
+ {
182
+ "indexed": false,
183
+ "internalType": "string",
184
+ "name": "category",
185
+ "type": "string"
186
+ },
187
+ {
188
+ "indexed": false,
189
+ "internalType": "string",
190
+ "name": "locationAddress",
191
+ "type": "string"
192
+ },
193
+ {
194
+ "indexed": false,
195
+ "internalType": "string",
196
+ "name": "city",
197
+ "type": "string"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "internalType": "string",
202
+ "name": "country",
203
+ "type": "string"
204
+ },
205
+ {
206
+ "indexed": false,
207
+ "internalType": "int256",
208
+ "name": "latitude",
209
+ "type": "int256"
210
+ },
211
+ {
212
+ "indexed": false,
213
+ "internalType": "int256",
214
+ "name": "longitude",
215
+ "type": "int256"
216
+ },
217
+ {
218
+ "indexed": false,
219
+ "internalType": "uint256",
220
+ "name": "date",
221
+ "type": "uint256"
222
+ },
223
+ {
224
+ "indexed": false,
225
+ "internalType": "uint256",
226
+ "name": "startTime",
227
+ "type": "uint256"
228
+ },
229
+ {
230
+ "indexed": false,
231
+ "internalType": "uint256",
232
+ "name": "endTime",
233
+ "type": "uint256"
234
+ },
235
+ {
236
+ "indexed": false,
237
+ "internalType": "uint256",
238
+ "name": "maxParticipants",
239
+ "type": "uint256"
240
+ },
241
+ {
242
+ "indexed": false,
243
+ "internalType": "bool",
244
+ "name": "isPrivate",
245
+ "type": "bool"
246
+ }
247
+ ],
248
+ "name": "ImpactCreated",
249
+ "type": "event"
250
+ },
251
+ {
252
+ "anonymous": false,
253
+ "inputs": [
254
+ {
255
+ "indexed": true,
256
+ "internalType": "uint256",
257
+ "name": "impactId",
258
+ "type": "uint256"
259
+ },
260
+ {
261
+ "indexed": true,
262
+ "internalType": "address",
263
+ "name": "admin",
264
+ "type": "address"
265
+ }
266
+ ],
267
+ "name": "ImpactMadePublic",
268
+ "type": "event"
269
+ },
270
+ {
271
+ "anonymous": false,
272
+ "inputs": [
273
+ {
274
+ "indexed": true,
275
+ "internalType": "uint256",
276
+ "name": "impactId",
277
+ "type": "uint256"
278
+ },
279
+ {
280
+ "indexed": false,
281
+ "internalType": "enum IImpact.ImpactStatus",
282
+ "name": "oldStatus",
283
+ "type": "uint8"
284
+ },
285
+ {
286
+ "indexed": false,
287
+ "internalType": "enum IImpact.ImpactStatus",
288
+ "name": "newStatus",
289
+ "type": "uint8"
290
+ }
291
+ ],
292
+ "name": "ImpactStatusUpdated",
293
+ "type": "event"
294
+ },
295
+ {
296
+ "anonymous": false,
297
+ "inputs": [
298
+ {
299
+ "indexed": true,
300
+ "internalType": "uint256",
301
+ "name": "impactId",
302
+ "type": "uint256"
303
+ },
304
+ {
305
+ "indexed": true,
306
+ "internalType": "address",
307
+ "name": "organizer",
308
+ "type": "address"
309
+ },
310
+ {
311
+ "indexed": false,
312
+ "internalType": "string",
313
+ "name": "metadata",
314
+ "type": "string"
315
+ },
316
+ {
317
+ "indexed": false,
318
+ "internalType": "uint256",
319
+ "name": "addedAt",
320
+ "type": "uint256"
321
+ }
322
+ ],
323
+ "name": "ImpactUpdatesAdded",
324
+ "type": "event"
325
+ },
326
+ {
327
+ "anonymous": false,
328
+ "inputs": [
329
+ {
330
+ "indexed": true,
331
+ "internalType": "uint256",
332
+ "name": "impactId",
333
+ "type": "uint256"
334
+ },
335
+ {
336
+ "indexed": true,
337
+ "internalType": "address",
338
+ "name": "participant",
339
+ "type": "address"
340
+ },
341
+ {
342
+ "indexed": true,
343
+ "internalType": "address",
344
+ "name": "organizer",
345
+ "type": "address"
346
+ }
347
+ ],
348
+ "name": "ParticipantAccepted",
349
+ "type": "event"
350
+ },
351
+ {
352
+ "anonymous": false,
353
+ "inputs": [
354
+ {
355
+ "indexed": true,
356
+ "internalType": "uint256",
357
+ "name": "impactId",
358
+ "type": "uint256"
359
+ },
360
+ {
361
+ "indexed": true,
362
+ "internalType": "address",
363
+ "name": "participant",
364
+ "type": "address"
365
+ },
366
+ {
367
+ "indexed": false,
368
+ "internalType": "uint256",
369
+ "name": "appliedAt",
370
+ "type": "uint256"
371
+ }
372
+ ],
373
+ "name": "ParticipantApplied",
374
+ "type": "event"
375
+ },
376
+ {
377
+ "anonymous": false,
378
+ "inputs": [
379
+ {
380
+ "indexed": true,
381
+ "internalType": "uint256",
382
+ "name": "impactId",
383
+ "type": "uint256"
384
+ },
385
+ {
386
+ "indexed": true,
387
+ "internalType": "address",
388
+ "name": "participant",
389
+ "type": "address"
390
+ },
391
+ {
392
+ "indexed": true,
393
+ "internalType": "address",
394
+ "name": "organizer",
395
+ "type": "address"
396
+ }
397
+ ],
398
+ "name": "ParticipantRejected",
399
+ "type": "event"
400
+ },
401
+ {
402
+ "anonymous": false,
403
+ "inputs": [
404
+ {
405
+ "indexed": true,
406
+ "internalType": "uint256",
407
+ "name": "impactId",
408
+ "type": "uint256"
409
+ },
410
+ {
411
+ "indexed": true,
412
+ "internalType": "address",
413
+ "name": "organizer",
414
+ "type": "address"
415
+ },
416
+ {
417
+ "indexed": false,
418
+ "internalType": "string[]",
419
+ "name": "ipfsHashes",
420
+ "type": "string[]"
421
+ },
422
+ {
423
+ "indexed": false,
424
+ "internalType": "string[]",
425
+ "name": "mimetypes",
426
+ "type": "string[]"
427
+ },
428
+ {
429
+ "indexed": false,
430
+ "internalType": "uint256",
431
+ "name": "submittedAt",
432
+ "type": "uint256"
433
+ }
434
+ ],
435
+ "name": "ProofOfWorkSubmitted",
436
+ "type": "event"
437
+ },
438
+ {
439
+ "anonymous": false,
440
+ "inputs": [
441
+ {
442
+ "indexed": true,
443
+ "internalType": "bytes32",
444
+ "name": "role",
445
+ "type": "bytes32"
446
+ },
447
+ {
448
+ "indexed": true,
449
+ "internalType": "bytes32",
450
+ "name": "previousAdminRole",
451
+ "type": "bytes32"
452
+ },
453
+ {
454
+ "indexed": true,
455
+ "internalType": "bytes32",
456
+ "name": "newAdminRole",
457
+ "type": "bytes32"
458
+ }
459
+ ],
460
+ "name": "RoleAdminChanged",
461
+ "type": "event"
462
+ },
463
+ {
464
+ "anonymous": false,
465
+ "inputs": [
466
+ {
467
+ "indexed": true,
468
+ "internalType": "bytes32",
469
+ "name": "role",
470
+ "type": "bytes32"
471
+ },
472
+ {
473
+ "indexed": true,
474
+ "internalType": "address",
475
+ "name": "account",
476
+ "type": "address"
477
+ },
478
+ {
479
+ "indexed": true,
480
+ "internalType": "address",
481
+ "name": "sender",
482
+ "type": "address"
483
+ }
484
+ ],
485
+ "name": "RoleGranted",
486
+ "type": "event"
487
+ },
488
+ {
489
+ "anonymous": false,
490
+ "inputs": [
491
+ {
492
+ "indexed": true,
493
+ "internalType": "bytes32",
494
+ "name": "role",
495
+ "type": "bytes32"
496
+ },
497
+ {
498
+ "indexed": true,
499
+ "internalType": "address",
500
+ "name": "account",
501
+ "type": "address"
502
+ },
503
+ {
504
+ "indexed": true,
505
+ "internalType": "address",
506
+ "name": "sender",
507
+ "type": "address"
508
+ }
509
+ ],
510
+ "name": "RoleRevoked",
511
+ "type": "event"
512
+ },
513
+ {
514
+ "inputs": [],
515
+ "name": "ADMIN_ROLE",
516
+ "outputs": [
517
+ {
518
+ "internalType": "bytes32",
519
+ "name": "",
520
+ "type": "bytes32"
521
+ }
522
+ ],
523
+ "stateMutability": "view",
524
+ "type": "function"
525
+ },
526
+ {
527
+ "inputs": [],
528
+ "name": "DEFAULT_ADMIN_ROLE",
529
+ "outputs": [
530
+ {
531
+ "internalType": "bytes32",
532
+ "name": "",
533
+ "type": "bytes32"
534
+ }
535
+ ],
536
+ "stateMutability": "view",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [],
541
+ "name": "DOMAIN_SEPARATOR",
542
+ "outputs": [
543
+ {
544
+ "internalType": "bytes32",
545
+ "name": "",
546
+ "type": "bytes32"
547
+ }
548
+ ],
549
+ "stateMutability": "view",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [
554
+ {
555
+ "internalType": "uint256",
556
+ "name": "impactId",
557
+ "type": "uint256"
558
+ },
559
+ {
560
+ "internalType": "address",
561
+ "name": "participant",
562
+ "type": "address"
563
+ }
564
+ ],
565
+ "name": "acceptParticipant",
566
+ "outputs": [],
567
+ "stateMutability": "nonpayable",
568
+ "type": "function"
569
+ },
570
+ {
571
+ "inputs": [
572
+ {
573
+ "internalType": "uint256",
574
+ "name": "",
575
+ "type": "uint256"
576
+ }
577
+ ],
578
+ "name": "acceptedParticipantsCount",
579
+ "outputs": [
580
+ {
581
+ "internalType": "uint256",
582
+ "name": "",
583
+ "type": "uint256"
584
+ }
585
+ ],
586
+ "stateMutability": "view",
587
+ "type": "function"
588
+ },
589
+ {
590
+ "inputs": [
591
+ {
592
+ "components": [
593
+ {
594
+ "internalType": "uint256",
595
+ "name": "impactId",
596
+ "type": "uint256"
597
+ },
598
+ {
599
+ "internalType": "string",
600
+ "name": "metadata",
601
+ "type": "string"
602
+ }
603
+ ],
604
+ "internalType": "struct Params.AddImpactUpdatesParams",
605
+ "name": "params",
606
+ "type": "tuple"
607
+ }
608
+ ],
609
+ "name": "addImpactUpdates",
610
+ "outputs": [],
611
+ "stateMutability": "nonpayable",
612
+ "type": "function"
613
+ },
614
+ {
615
+ "inputs": [
616
+ {
617
+ "components": [
618
+ {
619
+ "internalType": "uint256",
620
+ "name": "impactId",
621
+ "type": "uint256"
622
+ },
623
+ {
624
+ "internalType": "string",
625
+ "name": "metadata",
626
+ "type": "string"
627
+ }
628
+ ],
629
+ "internalType": "struct Params.AddImpactUpdatesParams",
630
+ "name": "params",
631
+ "type": "tuple"
632
+ },
633
+ {
634
+ "internalType": "address",
635
+ "name": "editor",
636
+ "type": "address"
637
+ },
638
+ {
639
+ "internalType": "address",
640
+ "name": "embeddedAddress",
641
+ "type": "address"
642
+ },
643
+ {
644
+ "internalType": "uint256",
645
+ "name": "deadline",
646
+ "type": "uint256"
647
+ },
648
+ {
649
+ "internalType": "uint8",
650
+ "name": "v",
651
+ "type": "uint8"
652
+ },
653
+ {
654
+ "internalType": "bytes32",
655
+ "name": "r",
656
+ "type": "bytes32"
657
+ },
658
+ {
659
+ "internalType": "bytes32",
660
+ "name": "s",
661
+ "type": "bytes32"
662
+ }
663
+ ],
664
+ "name": "addImpactUpdatesWithPermit",
665
+ "outputs": [],
666
+ "stateMutability": "nonpayable",
667
+ "type": "function"
668
+ },
669
+ {
670
+ "inputs": [],
671
+ "name": "addressesProvider",
672
+ "outputs": [
673
+ {
674
+ "internalType": "contract IAddressesProvider",
675
+ "name": "",
676
+ "type": "address"
677
+ }
678
+ ],
679
+ "stateMutability": "view",
680
+ "type": "function"
681
+ },
682
+ {
683
+ "inputs": [
684
+ {
685
+ "internalType": "uint256",
686
+ "name": "impactId",
687
+ "type": "uint256"
688
+ }
689
+ ],
690
+ "name": "applyToImpact",
691
+ "outputs": [],
692
+ "stateMutability": "nonpayable",
693
+ "type": "function"
694
+ },
695
+ {
696
+ "inputs": [],
697
+ "name": "chainId",
698
+ "outputs": [
699
+ {
700
+ "internalType": "uint256",
701
+ "name": "",
702
+ "type": "uint256"
703
+ }
704
+ ],
705
+ "stateMutability": "view",
706
+ "type": "function"
707
+ },
708
+ {
709
+ "inputs": [
710
+ {
711
+ "components": [
712
+ {
713
+ "internalType": "string",
714
+ "name": "metadata",
715
+ "type": "string"
716
+ },
717
+ {
718
+ "internalType": "string",
719
+ "name": "category",
720
+ "type": "string"
721
+ },
722
+ {
723
+ "components": [
724
+ {
725
+ "internalType": "string",
726
+ "name": "address_",
727
+ "type": "string"
728
+ },
729
+ {
730
+ "internalType": "string",
731
+ "name": "city",
732
+ "type": "string"
733
+ },
734
+ {
735
+ "internalType": "string",
736
+ "name": "country",
737
+ "type": "string"
738
+ },
739
+ {
740
+ "internalType": "int256",
741
+ "name": "latitude",
742
+ "type": "int256"
743
+ },
744
+ {
745
+ "internalType": "int256",
746
+ "name": "longitude",
747
+ "type": "int256"
748
+ }
749
+ ],
750
+ "internalType": "struct IImpact.Location",
751
+ "name": "location",
752
+ "type": "tuple"
753
+ },
754
+ {
755
+ "internalType": "uint256",
756
+ "name": "date",
757
+ "type": "uint256"
758
+ },
759
+ {
760
+ "internalType": "uint256",
761
+ "name": "startTime",
762
+ "type": "uint256"
763
+ },
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "endTime",
767
+ "type": "uint256"
768
+ },
769
+ {
770
+ "internalType": "uint256",
771
+ "name": "maxParticipants",
772
+ "type": "uint256"
773
+ },
774
+ {
775
+ "internalType": "bool",
776
+ "name": "isPrivate",
777
+ "type": "bool"
778
+ }
779
+ ],
780
+ "internalType": "struct Params.CreateImpactParams",
781
+ "name": "params",
782
+ "type": "tuple"
783
+ }
784
+ ],
785
+ "name": "createImpact",
786
+ "outputs": [
787
+ {
788
+ "internalType": "uint256",
789
+ "name": "impactId",
790
+ "type": "uint256"
791
+ }
792
+ ],
793
+ "stateMutability": "nonpayable",
794
+ "type": "function"
795
+ },
796
+ {
797
+ "inputs": [
798
+ {
799
+ "components": [
800
+ {
801
+ "internalType": "string",
802
+ "name": "metadata",
803
+ "type": "string"
804
+ },
805
+ {
806
+ "internalType": "string",
807
+ "name": "category",
808
+ "type": "string"
809
+ },
810
+ {
811
+ "components": [
812
+ {
813
+ "internalType": "string",
814
+ "name": "address_",
815
+ "type": "string"
816
+ },
817
+ {
818
+ "internalType": "string",
819
+ "name": "city",
820
+ "type": "string"
821
+ },
822
+ {
823
+ "internalType": "string",
824
+ "name": "country",
825
+ "type": "string"
826
+ },
827
+ {
828
+ "internalType": "int256",
829
+ "name": "latitude",
830
+ "type": "int256"
831
+ },
832
+ {
833
+ "internalType": "int256",
834
+ "name": "longitude",
835
+ "type": "int256"
836
+ }
837
+ ],
838
+ "internalType": "struct IImpact.Location",
839
+ "name": "location",
840
+ "type": "tuple"
841
+ },
842
+ {
843
+ "internalType": "uint256",
844
+ "name": "date",
845
+ "type": "uint256"
846
+ },
847
+ {
848
+ "internalType": "uint256",
849
+ "name": "startTime",
850
+ "type": "uint256"
851
+ },
852
+ {
853
+ "internalType": "uint256",
854
+ "name": "endTime",
855
+ "type": "uint256"
856
+ },
857
+ {
858
+ "internalType": "uint256",
859
+ "name": "maxParticipants",
860
+ "type": "uint256"
861
+ },
862
+ {
863
+ "internalType": "bool",
864
+ "name": "isPrivate",
865
+ "type": "bool"
866
+ }
867
+ ],
868
+ "internalType": "struct Params.CreateImpactParams",
869
+ "name": "params",
870
+ "type": "tuple"
871
+ },
872
+ {
873
+ "internalType": "address",
874
+ "name": "organizer",
875
+ "type": "address"
876
+ },
877
+ {
878
+ "internalType": "address",
879
+ "name": "embeddedAddress",
880
+ "type": "address"
881
+ },
882
+ {
883
+ "internalType": "uint256",
884
+ "name": "deadline",
885
+ "type": "uint256"
886
+ },
887
+ {
888
+ "internalType": "uint8",
889
+ "name": "v",
890
+ "type": "uint8"
891
+ },
892
+ {
893
+ "internalType": "bytes32",
894
+ "name": "r",
895
+ "type": "bytes32"
896
+ },
897
+ {
898
+ "internalType": "bytes32",
899
+ "name": "s",
900
+ "type": "bytes32"
901
+ }
902
+ ],
903
+ "name": "createImpactWithPermit",
904
+ "outputs": [
905
+ {
906
+ "internalType": "uint256",
907
+ "name": "impactId",
908
+ "type": "uint256"
909
+ }
910
+ ],
911
+ "stateMutability": "nonpayable",
912
+ "type": "function"
913
+ },
914
+ {
915
+ "inputs": [],
916
+ "name": "getChainId",
917
+ "outputs": [
918
+ {
919
+ "internalType": "uint256",
920
+ "name": "",
921
+ "type": "uint256"
922
+ }
923
+ ],
924
+ "stateMutability": "view",
925
+ "type": "function"
926
+ },
927
+ {
928
+ "inputs": [
929
+ {
930
+ "internalType": "uint256",
931
+ "name": "impactId",
932
+ "type": "uint256"
933
+ }
934
+ ],
935
+ "name": "getImpact",
936
+ "outputs": [
937
+ {
938
+ "components": [
939
+ {
940
+ "internalType": "uint256",
941
+ "name": "id",
942
+ "type": "uint256"
943
+ },
944
+ {
945
+ "internalType": "string",
946
+ "name": "metadata",
947
+ "type": "string"
948
+ },
949
+ {
950
+ "internalType": "string",
951
+ "name": "category",
952
+ "type": "string"
953
+ },
954
+ {
955
+ "internalType": "enum IImpact.ImpactStatus",
956
+ "name": "status",
957
+ "type": "uint8"
958
+ },
959
+ {
960
+ "components": [
961
+ {
962
+ "internalType": "string",
963
+ "name": "address_",
964
+ "type": "string"
965
+ },
966
+ {
967
+ "internalType": "string",
968
+ "name": "city",
969
+ "type": "string"
970
+ },
971
+ {
972
+ "internalType": "string",
973
+ "name": "country",
974
+ "type": "string"
975
+ },
976
+ {
977
+ "internalType": "int256",
978
+ "name": "latitude",
979
+ "type": "int256"
980
+ },
981
+ {
982
+ "internalType": "int256",
983
+ "name": "longitude",
984
+ "type": "int256"
985
+ }
986
+ ],
987
+ "internalType": "struct IImpact.Location",
988
+ "name": "location",
989
+ "type": "tuple"
990
+ },
991
+ {
992
+ "internalType": "uint256",
993
+ "name": "date",
994
+ "type": "uint256"
995
+ },
996
+ {
997
+ "internalType": "uint256",
998
+ "name": "startTime",
999
+ "type": "uint256"
1000
+ },
1001
+ {
1002
+ "internalType": "uint256",
1003
+ "name": "endTime",
1004
+ "type": "uint256"
1005
+ },
1006
+ {
1007
+ "internalType": "uint256",
1008
+ "name": "maxParticipants",
1009
+ "type": "uint256"
1010
+ },
1011
+ {
1012
+ "internalType": "address",
1013
+ "name": "organizer",
1014
+ "type": "address"
1015
+ },
1016
+ {
1017
+ "internalType": "uint256",
1018
+ "name": "createdAt",
1019
+ "type": "uint256"
1020
+ },
1021
+ {
1022
+ "internalType": "uint256",
1023
+ "name": "updatedAt",
1024
+ "type": "uint256"
1025
+ },
1026
+ {
1027
+ "internalType": "uint256",
1028
+ "name": "rewardAmount",
1029
+ "type": "uint256"
1030
+ },
1031
+ {
1032
+ "internalType": "bool",
1033
+ "name": "proofSubmitted",
1034
+ "type": "bool"
1035
+ },
1036
+ {
1037
+ "internalType": "uint256",
1038
+ "name": "proofSubmittedAt",
1039
+ "type": "uint256"
1040
+ },
1041
+ {
1042
+ "internalType": "bool",
1043
+ "name": "isPrivate",
1044
+ "type": "bool"
1045
+ }
1046
+ ],
1047
+ "internalType": "struct IImpact.ImpactData",
1048
+ "name": "data",
1049
+ "type": "tuple"
1050
+ }
1051
+ ],
1052
+ "stateMutability": "view",
1053
+ "type": "function"
1054
+ },
1055
+ {
1056
+ "inputs": [
1057
+ {
1058
+ "internalType": "uint256",
1059
+ "name": "impactId",
1060
+ "type": "uint256"
1061
+ }
1062
+ ],
1063
+ "name": "getParticipants",
1064
+ "outputs": [
1065
+ {
1066
+ "components": [
1067
+ {
1068
+ "internalType": "address",
1069
+ "name": "participantAddress",
1070
+ "type": "address"
1071
+ },
1072
+ {
1073
+ "internalType": "enum IImpact.ParticipantStatus",
1074
+ "name": "status",
1075
+ "type": "uint8"
1076
+ },
1077
+ {
1078
+ "internalType": "uint256",
1079
+ "name": "appliedAt",
1080
+ "type": "uint256"
1081
+ }
1082
+ ],
1083
+ "internalType": "struct IImpact.Participant[]",
1084
+ "name": "participantList",
1085
+ "type": "tuple[]"
1086
+ }
1087
+ ],
1088
+ "stateMutability": "view",
1089
+ "type": "function"
1090
+ },
1091
+ {
1092
+ "inputs": [
1093
+ {
1094
+ "internalType": "uint256",
1095
+ "name": "impactId",
1096
+ "type": "uint256"
1097
+ }
1098
+ ],
1099
+ "name": "getProofMedia",
1100
+ "outputs": [
1101
+ {
1102
+ "components": [
1103
+ {
1104
+ "internalType": "string",
1105
+ "name": "ipfsHash",
1106
+ "type": "string"
1107
+ },
1108
+ {
1109
+ "internalType": "string",
1110
+ "name": "mimetype",
1111
+ "type": "string"
1112
+ },
1113
+ {
1114
+ "internalType": "uint256",
1115
+ "name": "uploadedAt",
1116
+ "type": "uint256"
1117
+ }
1118
+ ],
1119
+ "internalType": "struct IImpact.ProofMedia[]",
1120
+ "name": "media",
1121
+ "type": "tuple[]"
1122
+ }
1123
+ ],
1124
+ "stateMutability": "view",
1125
+ "type": "function"
1126
+ },
1127
+ {
1128
+ "inputs": [
1129
+ {
1130
+ "internalType": "bytes32",
1131
+ "name": "role",
1132
+ "type": "bytes32"
1133
+ }
1134
+ ],
1135
+ "name": "getRoleAdmin",
1136
+ "outputs": [
1137
+ {
1138
+ "internalType": "bytes32",
1139
+ "name": "",
1140
+ "type": "bytes32"
1141
+ }
1142
+ ],
1143
+ "stateMutability": "view",
1144
+ "type": "function"
1145
+ },
1146
+ {
1147
+ "inputs": [
1148
+ {
1149
+ "internalType": "bytes32",
1150
+ "name": "role",
1151
+ "type": "bytes32"
1152
+ },
1153
+ {
1154
+ "internalType": "address",
1155
+ "name": "account",
1156
+ "type": "address"
1157
+ }
1158
+ ],
1159
+ "name": "grantRole",
1160
+ "outputs": [],
1161
+ "stateMutability": "nonpayable",
1162
+ "type": "function"
1163
+ },
1164
+ {
1165
+ "inputs": [
1166
+ {
1167
+ "internalType": "uint256",
1168
+ "name": "",
1169
+ "type": "uint256"
1170
+ },
1171
+ {
1172
+ "internalType": "address",
1173
+ "name": "",
1174
+ "type": "address"
1175
+ }
1176
+ ],
1177
+ "name": "hasApplied",
1178
+ "outputs": [
1179
+ {
1180
+ "internalType": "bool",
1181
+ "name": "",
1182
+ "type": "bool"
1183
+ }
1184
+ ],
1185
+ "stateMutability": "view",
1186
+ "type": "function"
1187
+ },
1188
+ {
1189
+ "inputs": [
1190
+ {
1191
+ "internalType": "bytes32",
1192
+ "name": "role",
1193
+ "type": "bytes32"
1194
+ },
1195
+ {
1196
+ "internalType": "address",
1197
+ "name": "account",
1198
+ "type": "address"
1199
+ }
1200
+ ],
1201
+ "name": "hasRole",
1202
+ "outputs": [
1203
+ {
1204
+ "internalType": "bool",
1205
+ "name": "",
1206
+ "type": "bool"
1207
+ }
1208
+ ],
1209
+ "stateMutability": "view",
1210
+ "type": "function"
1211
+ },
1212
+ {
1213
+ "inputs": [
1214
+ {
1215
+ "internalType": "uint256",
1216
+ "name": "impactId",
1217
+ "type": "uint256"
1218
+ }
1219
+ ],
1220
+ "name": "impactData",
1221
+ "outputs": [
1222
+ {
1223
+ "components": [
1224
+ {
1225
+ "internalType": "uint256",
1226
+ "name": "id",
1227
+ "type": "uint256"
1228
+ },
1229
+ {
1230
+ "internalType": "string",
1231
+ "name": "metadata",
1232
+ "type": "string"
1233
+ },
1234
+ {
1235
+ "internalType": "string",
1236
+ "name": "category",
1237
+ "type": "string"
1238
+ },
1239
+ {
1240
+ "internalType": "enum IImpact.ImpactStatus",
1241
+ "name": "status",
1242
+ "type": "uint8"
1243
+ },
1244
+ {
1245
+ "components": [
1246
+ {
1247
+ "internalType": "string",
1248
+ "name": "address_",
1249
+ "type": "string"
1250
+ },
1251
+ {
1252
+ "internalType": "string",
1253
+ "name": "city",
1254
+ "type": "string"
1255
+ },
1256
+ {
1257
+ "internalType": "string",
1258
+ "name": "country",
1259
+ "type": "string"
1260
+ },
1261
+ {
1262
+ "internalType": "int256",
1263
+ "name": "latitude",
1264
+ "type": "int256"
1265
+ },
1266
+ {
1267
+ "internalType": "int256",
1268
+ "name": "longitude",
1269
+ "type": "int256"
1270
+ }
1271
+ ],
1272
+ "internalType": "struct IImpact.Location",
1273
+ "name": "location",
1274
+ "type": "tuple"
1275
+ },
1276
+ {
1277
+ "internalType": "uint256",
1278
+ "name": "date",
1279
+ "type": "uint256"
1280
+ },
1281
+ {
1282
+ "internalType": "uint256",
1283
+ "name": "startTime",
1284
+ "type": "uint256"
1285
+ },
1286
+ {
1287
+ "internalType": "uint256",
1288
+ "name": "endTime",
1289
+ "type": "uint256"
1290
+ },
1291
+ {
1292
+ "internalType": "uint256",
1293
+ "name": "maxParticipants",
1294
+ "type": "uint256"
1295
+ },
1296
+ {
1297
+ "internalType": "address",
1298
+ "name": "organizer",
1299
+ "type": "address"
1300
+ },
1301
+ {
1302
+ "internalType": "uint256",
1303
+ "name": "createdAt",
1304
+ "type": "uint256"
1305
+ },
1306
+ {
1307
+ "internalType": "uint256",
1308
+ "name": "updatedAt",
1309
+ "type": "uint256"
1310
+ },
1311
+ {
1312
+ "internalType": "uint256",
1313
+ "name": "rewardAmount",
1314
+ "type": "uint256"
1315
+ },
1316
+ {
1317
+ "internalType": "bool",
1318
+ "name": "proofSubmitted",
1319
+ "type": "bool"
1320
+ },
1321
+ {
1322
+ "internalType": "uint256",
1323
+ "name": "proofSubmittedAt",
1324
+ "type": "uint256"
1325
+ },
1326
+ {
1327
+ "internalType": "bool",
1328
+ "name": "isPrivate",
1329
+ "type": "bool"
1330
+ }
1331
+ ],
1332
+ "internalType": "struct IImpact.ImpactData",
1333
+ "name": "data",
1334
+ "type": "tuple"
1335
+ }
1336
+ ],
1337
+ "stateMutability": "view",
1338
+ "type": "function"
1339
+ },
1340
+ {
1341
+ "inputs": [
1342
+ {
1343
+ "internalType": "uint256",
1344
+ "name": "",
1345
+ "type": "uint256"
1346
+ }
1347
+ ],
1348
+ "name": "impactExists",
1349
+ "outputs": [
1350
+ {
1351
+ "internalType": "bool",
1352
+ "name": "",
1353
+ "type": "bool"
1354
+ }
1355
+ ],
1356
+ "stateMutability": "view",
1357
+ "type": "function"
1358
+ },
1359
+ {
1360
+ "inputs": [
1361
+ {
1362
+ "internalType": "uint256",
1363
+ "name": "impactId",
1364
+ "type": "uint256"
1365
+ }
1366
+ ],
1367
+ "name": "makeImpactPublic",
1368
+ "outputs": [],
1369
+ "stateMutability": "nonpayable",
1370
+ "type": "function"
1371
+ },
1372
+ {
1373
+ "inputs": [],
1374
+ "name": "minIpfsHashes",
1375
+ "outputs": [
1376
+ {
1377
+ "internalType": "uint256",
1378
+ "name": "",
1379
+ "type": "uint256"
1380
+ }
1381
+ ],
1382
+ "stateMutability": "view",
1383
+ "type": "function"
1384
+ },
1385
+ {
1386
+ "inputs": [],
1387
+ "name": "nextImpactId",
1388
+ "outputs": [
1389
+ {
1390
+ "internalType": "uint256",
1391
+ "name": "",
1392
+ "type": "uint256"
1393
+ }
1394
+ ],
1395
+ "stateMutability": "view",
1396
+ "type": "function"
1397
+ },
1398
+ {
1399
+ "inputs": [
1400
+ {
1401
+ "internalType": "address",
1402
+ "name": "",
1403
+ "type": "address"
1404
+ }
1405
+ ],
1406
+ "name": "nonces",
1407
+ "outputs": [
1408
+ {
1409
+ "internalType": "uint256",
1410
+ "name": "",
1411
+ "type": "uint256"
1412
+ }
1413
+ ],
1414
+ "stateMutability": "view",
1415
+ "type": "function"
1416
+ },
1417
+ {
1418
+ "inputs": [
1419
+ {
1420
+ "internalType": "uint256",
1421
+ "name": "",
1422
+ "type": "uint256"
1423
+ },
1424
+ {
1425
+ "internalType": "address",
1426
+ "name": "",
1427
+ "type": "address"
1428
+ }
1429
+ ],
1430
+ "name": "participantIndex",
1431
+ "outputs": [
1432
+ {
1433
+ "internalType": "uint256",
1434
+ "name": "",
1435
+ "type": "uint256"
1436
+ }
1437
+ ],
1438
+ "stateMutability": "view",
1439
+ "type": "function"
1440
+ },
1441
+ {
1442
+ "inputs": [
1443
+ {
1444
+ "internalType": "uint256",
1445
+ "name": "impactId",
1446
+ "type": "uint256"
1447
+ },
1448
+ {
1449
+ "internalType": "uint256",
1450
+ "name": "index",
1451
+ "type": "uint256"
1452
+ }
1453
+ ],
1454
+ "name": "participants",
1455
+ "outputs": [
1456
+ {
1457
+ "components": [
1458
+ {
1459
+ "internalType": "address",
1460
+ "name": "participantAddress",
1461
+ "type": "address"
1462
+ },
1463
+ {
1464
+ "internalType": "enum IImpact.ParticipantStatus",
1465
+ "name": "status",
1466
+ "type": "uint8"
1467
+ },
1468
+ {
1469
+ "internalType": "uint256",
1470
+ "name": "appliedAt",
1471
+ "type": "uint256"
1472
+ }
1473
+ ],
1474
+ "internalType": "struct IImpact.Participant",
1475
+ "name": "participant",
1476
+ "type": "tuple"
1477
+ }
1478
+ ],
1479
+ "stateMutability": "view",
1480
+ "type": "function"
1481
+ },
1482
+ {
1483
+ "inputs": [
1484
+ {
1485
+ "internalType": "uint256",
1486
+ "name": "impactId",
1487
+ "type": "uint256"
1488
+ },
1489
+ {
1490
+ "internalType": "address",
1491
+ "name": "participant",
1492
+ "type": "address"
1493
+ }
1494
+ ],
1495
+ "name": "rejectParticipant",
1496
+ "outputs": [],
1497
+ "stateMutability": "nonpayable",
1498
+ "type": "function"
1499
+ },
1500
+ {
1501
+ "inputs": [
1502
+ {
1503
+ "internalType": "bytes32",
1504
+ "name": "role",
1505
+ "type": "bytes32"
1506
+ },
1507
+ {
1508
+ "internalType": "address",
1509
+ "name": "callerConfirmation",
1510
+ "type": "address"
1511
+ }
1512
+ ],
1513
+ "name": "renounceRole",
1514
+ "outputs": [],
1515
+ "stateMutability": "nonpayable",
1516
+ "type": "function"
1517
+ },
1518
+ {
1519
+ "inputs": [
1520
+ {
1521
+ "internalType": "bytes32",
1522
+ "name": "role",
1523
+ "type": "bytes32"
1524
+ },
1525
+ {
1526
+ "internalType": "address",
1527
+ "name": "account",
1528
+ "type": "address"
1529
+ }
1530
+ ],
1531
+ "name": "revokeRole",
1532
+ "outputs": [],
1533
+ "stateMutability": "nonpayable",
1534
+ "type": "function"
1535
+ },
1536
+ {
1537
+ "inputs": [
1538
+ {
1539
+ "internalType": "address",
1540
+ "name": "newAddressesProvider",
1541
+ "type": "address"
1542
+ }
1543
+ ],
1544
+ "name": "setAddressesProvider",
1545
+ "outputs": [],
1546
+ "stateMutability": "nonpayable",
1547
+ "type": "function"
1548
+ },
1549
+ {
1550
+ "inputs": [
1551
+ {
1552
+ "internalType": "uint256",
1553
+ "name": "impactId",
1554
+ "type": "uint256"
1555
+ },
1556
+ {
1557
+ "internalType": "enum IImpact.ImpactStatus",
1558
+ "name": "newStatus",
1559
+ "type": "uint8"
1560
+ }
1561
+ ],
1562
+ "name": "setImpactStatus",
1563
+ "outputs": [],
1564
+ "stateMutability": "nonpayable",
1565
+ "type": "function"
1566
+ },
1567
+ {
1568
+ "inputs": [
1569
+ {
1570
+ "internalType": "uint256",
1571
+ "name": "newMinIpfsHashes",
1572
+ "type": "uint256"
1573
+ }
1574
+ ],
1575
+ "name": "setMinIpfsHashes",
1576
+ "outputs": [],
1577
+ "stateMutability": "nonpayable",
1578
+ "type": "function"
1579
+ },
1580
+ {
1581
+ "inputs": [
1582
+ {
1583
+ "internalType": "uint256",
1584
+ "name": "impactId",
1585
+ "type": "uint256"
1586
+ },
1587
+ {
1588
+ "components": [
1589
+ {
1590
+ "internalType": "string[]",
1591
+ "name": "ipfsHashes",
1592
+ "type": "string[]"
1593
+ },
1594
+ {
1595
+ "internalType": "string[]",
1596
+ "name": "mimetypes",
1597
+ "type": "string[]"
1598
+ }
1599
+ ],
1600
+ "internalType": "struct Params.SubmitProofOfWorkParams",
1601
+ "name": "params",
1602
+ "type": "tuple"
1603
+ }
1604
+ ],
1605
+ "name": "submitProofOfWork",
1606
+ "outputs": [],
1607
+ "stateMutability": "nonpayable",
1608
+ "type": "function"
1609
+ },
1610
+ {
1611
+ "inputs": [
1612
+ {
1613
+ "internalType": "uint256",
1614
+ "name": "impactId",
1615
+ "type": "uint256"
1616
+ },
1617
+ {
1618
+ "components": [
1619
+ {
1620
+ "internalType": "string[]",
1621
+ "name": "ipfsHashes",
1622
+ "type": "string[]"
1623
+ },
1624
+ {
1625
+ "internalType": "string[]",
1626
+ "name": "mimetypes",
1627
+ "type": "string[]"
1628
+ }
1629
+ ],
1630
+ "internalType": "struct Params.SubmitProofOfWorkParams",
1631
+ "name": "params",
1632
+ "type": "tuple"
1633
+ },
1634
+ {
1635
+ "internalType": "address",
1636
+ "name": "user",
1637
+ "type": "address"
1638
+ },
1639
+ {
1640
+ "internalType": "address",
1641
+ "name": "embeddedAddress",
1642
+ "type": "address"
1643
+ },
1644
+ {
1645
+ "internalType": "uint256",
1646
+ "name": "deadline",
1647
+ "type": "uint256"
1648
+ },
1649
+ {
1650
+ "internalType": "uint8",
1651
+ "name": "v",
1652
+ "type": "uint8"
1653
+ },
1654
+ {
1655
+ "internalType": "bytes32",
1656
+ "name": "r",
1657
+ "type": "bytes32"
1658
+ },
1659
+ {
1660
+ "internalType": "bytes32",
1661
+ "name": "s",
1662
+ "type": "bytes32"
1663
+ }
1664
+ ],
1665
+ "name": "submitProofOfWorkWithPermit",
1666
+ "outputs": [],
1667
+ "stateMutability": "nonpayable",
1668
+ "type": "function"
1669
+ },
1670
+ {
1671
+ "inputs": [
1672
+ {
1673
+ "internalType": "bytes4",
1674
+ "name": "interfaceId",
1675
+ "type": "bytes4"
1676
+ }
1677
+ ],
1678
+ "name": "supportsInterface",
1679
+ "outputs": [
1680
+ {
1681
+ "internalType": "bool",
1682
+ "name": "",
1683
+ "type": "bool"
1684
+ }
1685
+ ],
1686
+ "stateMutability": "view",
1687
+ "type": "function"
1688
+ },
1689
+ {
1690
+ "inputs": [
1691
+ {
1692
+ "internalType": "uint256",
1693
+ "name": "impactId",
1694
+ "type": "uint256"
1695
+ },
1696
+ {
1697
+ "internalType": "enum IImpact.ImpactStatus",
1698
+ "name": "newStatus",
1699
+ "type": "uint8"
1700
+ }
1701
+ ],
1702
+ "name": "updateImpactStatus",
1703
+ "outputs": [],
1704
+ "stateMutability": "nonpayable",
1705
+ "type": "function"
1706
+ },
1707
+ {
1708
+ "inputs": [],
1709
+ "name": "userRegistry",
1710
+ "outputs": [
1711
+ {
1712
+ "internalType": "address",
1713
+ "name": "registry",
1714
+ "type": "address"
1715
+ }
1716
+ ],
1717
+ "stateMutability": "view",
1718
+ "type": "function"
1719
+ }
1720
+ ];
1721
+ //# sourceMappingURL=Impact.js.map