@cleanmate/cip-sdk 1.1.0 → 1.1.3
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.
- package/dist/abis/GasMeter.d.ts +432 -0
- package/dist/abis/GasMeter.d.ts.map +1 -0
- package/dist/abis/GasMeter.js +569 -0
- package/dist/abis/GasMeter.js.map +1 -0
- package/dist/abis/RewardsManager.d.ts +183 -109
- package/dist/abis/RewardsManager.d.ts.map +1 -1
- package/dist/abis/RewardsManager.js +227 -135
- package/dist/abis/RewardsManager.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/subgraph/queries.d.ts +7 -7
- package/dist/subgraph/queries.d.ts.map +1 -1
- package/dist/subgraph/queries.js +22 -15
- package/dist/subgraph/queries.js.map +1 -1
- package/dist/subgraph/types.d.ts +47 -29
- package/dist/subgraph/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -58,18 +58,6 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
58
58
|
}];
|
|
59
59
|
readonly name: "ECDSAInvalidSignatureS";
|
|
60
60
|
readonly type: "error";
|
|
61
|
-
}, {
|
|
62
|
-
readonly inputs: readonly [];
|
|
63
|
-
readonly name: "EmailNotVerified";
|
|
64
|
-
readonly type: "error";
|
|
65
|
-
}, {
|
|
66
|
-
readonly inputs: readonly [];
|
|
67
|
-
readonly name: "EnforcedPause";
|
|
68
|
-
readonly type: "error";
|
|
69
|
-
}, {
|
|
70
|
-
readonly inputs: readonly [];
|
|
71
|
-
readonly name: "ExpectedPause";
|
|
72
|
-
readonly type: "error";
|
|
73
61
|
}, {
|
|
74
62
|
readonly inputs: readonly [];
|
|
75
63
|
readonly name: "InsufficientPendingRewards";
|
|
@@ -114,18 +102,6 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
114
102
|
readonly inputs: readonly [];
|
|
115
103
|
readonly name: "RewardsExceedLimit";
|
|
116
104
|
readonly type: "error";
|
|
117
|
-
}, {
|
|
118
|
-
readonly inputs: readonly [{
|
|
119
|
-
readonly internalType: "uint256";
|
|
120
|
-
readonly name: "value";
|
|
121
|
-
readonly type: "uint256";
|
|
122
|
-
}, {
|
|
123
|
-
readonly internalType: "uint256";
|
|
124
|
-
readonly name: "length";
|
|
125
|
-
readonly type: "uint256";
|
|
126
|
-
}];
|
|
127
|
-
readonly name: "StringsInsufficientHexLength";
|
|
128
|
-
readonly type: "error";
|
|
129
105
|
}, {
|
|
130
106
|
readonly inputs: readonly [{
|
|
131
107
|
readonly internalType: "address";
|
|
@@ -179,12 +155,32 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
179
155
|
}, {
|
|
180
156
|
readonly anonymous: false;
|
|
181
157
|
readonly inputs: readonly [{
|
|
182
|
-
readonly indexed:
|
|
158
|
+
readonly indexed: true;
|
|
183
159
|
readonly internalType: "address";
|
|
184
|
-
readonly name: "
|
|
160
|
+
readonly name: "oldToken";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly indexed: true;
|
|
164
|
+
readonly internalType: "address";
|
|
165
|
+
readonly name: "newToken";
|
|
185
166
|
readonly type: "address";
|
|
186
167
|
}];
|
|
187
|
-
readonly name: "
|
|
168
|
+
readonly name: "OffRampTokenUpdated";
|
|
169
|
+
readonly type: "event";
|
|
170
|
+
}, {
|
|
171
|
+
readonly anonymous: false;
|
|
172
|
+
readonly inputs: readonly [{
|
|
173
|
+
readonly indexed: true;
|
|
174
|
+
readonly internalType: "address";
|
|
175
|
+
readonly name: "oldTreasury";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
}, {
|
|
178
|
+
readonly indexed: true;
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "newTreasury";
|
|
181
|
+
readonly type: "address";
|
|
182
|
+
}];
|
|
183
|
+
readonly name: "OffRampTreasuryUpdated";
|
|
188
184
|
readonly type: "event";
|
|
189
185
|
}, {
|
|
190
186
|
readonly anonymous: false;
|
|
@@ -216,21 +212,6 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
216
212
|
}];
|
|
217
213
|
readonly name: "RewardEarned";
|
|
218
214
|
readonly type: "event";
|
|
219
|
-
}, {
|
|
220
|
-
readonly anonymous: false;
|
|
221
|
-
readonly inputs: readonly [{
|
|
222
|
-
readonly indexed: true;
|
|
223
|
-
readonly internalType: "address";
|
|
224
|
-
readonly name: "user";
|
|
225
|
-
readonly type: "address";
|
|
226
|
-
}, {
|
|
227
|
-
readonly indexed: false;
|
|
228
|
-
readonly internalType: "uint256";
|
|
229
|
-
readonly name: "amount";
|
|
230
|
-
readonly type: "uint256";
|
|
231
|
-
}];
|
|
232
|
-
readonly name: "RewardsClaimed";
|
|
233
|
-
readonly type: "event";
|
|
234
215
|
}, {
|
|
235
216
|
readonly anonymous: false;
|
|
236
217
|
readonly inputs: readonly [{
|
|
@@ -354,12 +335,22 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
354
335
|
}, {
|
|
355
336
|
readonly anonymous: false;
|
|
356
337
|
readonly inputs: readonly [{
|
|
357
|
-
readonly indexed:
|
|
338
|
+
readonly indexed: true;
|
|
358
339
|
readonly internalType: "address";
|
|
359
|
-
readonly name: "
|
|
340
|
+
readonly name: "user";
|
|
360
341
|
readonly type: "address";
|
|
342
|
+
}, {
|
|
343
|
+
readonly indexed: true;
|
|
344
|
+
readonly internalType: "address";
|
|
345
|
+
readonly name: "recipient";
|
|
346
|
+
readonly type: "address";
|
|
347
|
+
}, {
|
|
348
|
+
readonly indexed: false;
|
|
349
|
+
readonly internalType: "uint256";
|
|
350
|
+
readonly name: "amount";
|
|
351
|
+
readonly type: "uint256";
|
|
361
352
|
}];
|
|
362
|
-
readonly name: "
|
|
353
|
+
readonly name: "TokenTransferred";
|
|
363
354
|
readonly type: "event";
|
|
364
355
|
}, {
|
|
365
356
|
readonly inputs: readonly [];
|
|
@@ -421,60 +412,6 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
421
412
|
}];
|
|
422
413
|
readonly stateMutability: "view";
|
|
423
414
|
readonly type: "function";
|
|
424
|
-
}, {
|
|
425
|
-
readonly inputs: readonly [{
|
|
426
|
-
readonly components: readonly [{
|
|
427
|
-
readonly internalType: "uint256";
|
|
428
|
-
readonly name: "amount";
|
|
429
|
-
readonly type: "uint256";
|
|
430
|
-
}];
|
|
431
|
-
readonly internalType: "struct Params.ClaimRewardsParams";
|
|
432
|
-
readonly name: "params";
|
|
433
|
-
readonly type: "tuple";
|
|
434
|
-
}];
|
|
435
|
-
readonly name: "claimRewards";
|
|
436
|
-
readonly outputs: readonly [];
|
|
437
|
-
readonly stateMutability: "nonpayable";
|
|
438
|
-
readonly type: "function";
|
|
439
|
-
}, {
|
|
440
|
-
readonly inputs: readonly [{
|
|
441
|
-
readonly components: readonly [{
|
|
442
|
-
readonly internalType: "address";
|
|
443
|
-
readonly name: "user";
|
|
444
|
-
readonly type: "address";
|
|
445
|
-
}, {
|
|
446
|
-
readonly internalType: "uint256";
|
|
447
|
-
readonly name: "amount";
|
|
448
|
-
readonly type: "uint256";
|
|
449
|
-
}];
|
|
450
|
-
readonly internalType: "struct Params.ClaimRewardsWithPermitParams";
|
|
451
|
-
readonly name: "params";
|
|
452
|
-
readonly type: "tuple";
|
|
453
|
-
}, {
|
|
454
|
-
readonly internalType: "address";
|
|
455
|
-
readonly name: "embeddedAddress";
|
|
456
|
-
readonly type: "address";
|
|
457
|
-
}, {
|
|
458
|
-
readonly internalType: "uint256";
|
|
459
|
-
readonly name: "deadline";
|
|
460
|
-
readonly type: "uint256";
|
|
461
|
-
}, {
|
|
462
|
-
readonly internalType: "uint8";
|
|
463
|
-
readonly name: "v";
|
|
464
|
-
readonly type: "uint8";
|
|
465
|
-
}, {
|
|
466
|
-
readonly internalType: "bytes32";
|
|
467
|
-
readonly name: "r";
|
|
468
|
-
readonly type: "bytes32";
|
|
469
|
-
}, {
|
|
470
|
-
readonly internalType: "bytes32";
|
|
471
|
-
readonly name: "s";
|
|
472
|
-
readonly type: "bytes32";
|
|
473
|
-
}];
|
|
474
|
-
readonly name: "claimRewardsWithPermit";
|
|
475
|
-
readonly outputs: readonly [];
|
|
476
|
-
readonly stateMutability: "nonpayable";
|
|
477
|
-
readonly type: "function";
|
|
478
415
|
}, {
|
|
479
416
|
readonly inputs: readonly [{
|
|
480
417
|
readonly components: readonly [{
|
|
@@ -489,6 +426,30 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
489
426
|
readonly internalType: "uint256[]";
|
|
490
427
|
readonly name: "amounts";
|
|
491
428
|
readonly type: "uint256[]";
|
|
429
|
+
}, {
|
|
430
|
+
readonly internalType: "string[]";
|
|
431
|
+
readonly name: "proofTypes";
|
|
432
|
+
readonly type: "string[]";
|
|
433
|
+
}, {
|
|
434
|
+
readonly internalType: "string[]";
|
|
435
|
+
readonly name: "proofValues";
|
|
436
|
+
readonly type: "string[]";
|
|
437
|
+
}, {
|
|
438
|
+
readonly internalType: "string[]";
|
|
439
|
+
readonly name: "impactCodes";
|
|
440
|
+
readonly type: "string[]";
|
|
441
|
+
}, {
|
|
442
|
+
readonly internalType: "uint256[]";
|
|
443
|
+
readonly name: "impactValues";
|
|
444
|
+
readonly type: "uint256[]";
|
|
445
|
+
}, {
|
|
446
|
+
readonly internalType: "string";
|
|
447
|
+
readonly name: "description";
|
|
448
|
+
readonly type: "string";
|
|
449
|
+
}, {
|
|
450
|
+
readonly internalType: "string";
|
|
451
|
+
readonly name: "metadata";
|
|
452
|
+
readonly type: "string";
|
|
492
453
|
}];
|
|
493
454
|
readonly internalType: "struct Params.DistributeRewardsParams";
|
|
494
455
|
readonly name: "params";
|
|
@@ -508,6 +469,30 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
508
469
|
readonly internalType: "uint256[]";
|
|
509
470
|
readonly name: "amounts";
|
|
510
471
|
readonly type: "uint256[]";
|
|
472
|
+
}, {
|
|
473
|
+
readonly internalType: "string[]";
|
|
474
|
+
readonly name: "proofTypes";
|
|
475
|
+
readonly type: "string[]";
|
|
476
|
+
}, {
|
|
477
|
+
readonly internalType: "string[]";
|
|
478
|
+
readonly name: "proofValues";
|
|
479
|
+
readonly type: "string[]";
|
|
480
|
+
}, {
|
|
481
|
+
readonly internalType: "string[]";
|
|
482
|
+
readonly name: "impactCodes";
|
|
483
|
+
readonly type: "string[]";
|
|
484
|
+
}, {
|
|
485
|
+
readonly internalType: "uint256[]";
|
|
486
|
+
readonly name: "impactValues";
|
|
487
|
+
readonly type: "uint256[]";
|
|
488
|
+
}, {
|
|
489
|
+
readonly internalType: "string";
|
|
490
|
+
readonly name: "description";
|
|
491
|
+
readonly type: "string";
|
|
492
|
+
}, {
|
|
493
|
+
readonly internalType: "string";
|
|
494
|
+
readonly name: "metadata";
|
|
495
|
+
readonly type: "string";
|
|
511
496
|
}];
|
|
512
497
|
readonly internalType: "struct Params.DistributeStreaksRewardParams";
|
|
513
498
|
readonly name: "params";
|
|
@@ -599,17 +584,21 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
599
584
|
readonly type: "function";
|
|
600
585
|
}, {
|
|
601
586
|
readonly inputs: readonly [];
|
|
602
|
-
readonly name: "
|
|
603
|
-
readonly outputs: readonly [
|
|
604
|
-
|
|
587
|
+
readonly name: "offRampToken";
|
|
588
|
+
readonly outputs: readonly [{
|
|
589
|
+
readonly internalType: "address";
|
|
590
|
+
readonly name: "";
|
|
591
|
+
readonly type: "address";
|
|
592
|
+
}];
|
|
593
|
+
readonly stateMutability: "view";
|
|
605
594
|
readonly type: "function";
|
|
606
595
|
}, {
|
|
607
596
|
readonly inputs: readonly [];
|
|
608
|
-
readonly name: "
|
|
597
|
+
readonly name: "offRampTreasury";
|
|
609
598
|
readonly outputs: readonly [{
|
|
610
|
-
readonly internalType: "
|
|
599
|
+
readonly internalType: "address";
|
|
611
600
|
readonly name: "";
|
|
612
|
-
readonly type: "
|
|
601
|
+
readonly type: "address";
|
|
613
602
|
}];
|
|
614
603
|
readonly stateMutability: "view";
|
|
615
604
|
readonly type: "function";
|
|
@@ -650,11 +639,19 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
650
639
|
readonly name: "rewards";
|
|
651
640
|
readonly outputs: readonly [{
|
|
652
641
|
readonly internalType: "uint256";
|
|
653
|
-
readonly name: "
|
|
642
|
+
readonly name: "bonus";
|
|
654
643
|
readonly type: "uint256";
|
|
655
644
|
}, {
|
|
656
645
|
readonly internalType: "uint256";
|
|
657
|
-
readonly name: "
|
|
646
|
+
readonly name: "referral";
|
|
647
|
+
readonly type: "uint256";
|
|
648
|
+
}, {
|
|
649
|
+
readonly internalType: "uint256";
|
|
650
|
+
readonly name: "others";
|
|
651
|
+
readonly type: "uint256";
|
|
652
|
+
}, {
|
|
653
|
+
readonly internalType: "uint256";
|
|
654
|
+
readonly name: "received";
|
|
658
655
|
readonly type: "uint256";
|
|
659
656
|
}];
|
|
660
657
|
readonly stateMutability: "view";
|
|
@@ -687,6 +684,30 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
687
684
|
readonly internalType: "enum Params.RewardType[]";
|
|
688
685
|
readonly name: "rewardTypes";
|
|
689
686
|
readonly type: "uint8[]";
|
|
687
|
+
}, {
|
|
688
|
+
readonly internalType: "string[]";
|
|
689
|
+
readonly name: "proofTypes";
|
|
690
|
+
readonly type: "string[]";
|
|
691
|
+
}, {
|
|
692
|
+
readonly internalType: "string[]";
|
|
693
|
+
readonly name: "proofValues";
|
|
694
|
+
readonly type: "string[]";
|
|
695
|
+
}, {
|
|
696
|
+
readonly internalType: "string[]";
|
|
697
|
+
readonly name: "impactCodes";
|
|
698
|
+
readonly type: "string[]";
|
|
699
|
+
}, {
|
|
700
|
+
readonly internalType: "uint256[]";
|
|
701
|
+
readonly name: "impactValues";
|
|
702
|
+
readonly type: "uint256[]";
|
|
703
|
+
}, {
|
|
704
|
+
readonly internalType: "string";
|
|
705
|
+
readonly name: "description";
|
|
706
|
+
readonly type: "string";
|
|
707
|
+
}, {
|
|
708
|
+
readonly internalType: "string";
|
|
709
|
+
readonly name: "metadata";
|
|
710
|
+
readonly type: "string";
|
|
690
711
|
}];
|
|
691
712
|
readonly internalType: "struct Params.SendRewardsParams";
|
|
692
713
|
readonly name: "params";
|
|
@@ -716,6 +737,26 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
716
737
|
readonly outputs: readonly [];
|
|
717
738
|
readonly stateMutability: "nonpayable";
|
|
718
739
|
readonly type: "function";
|
|
740
|
+
}, {
|
|
741
|
+
readonly inputs: readonly [{
|
|
742
|
+
readonly internalType: "address";
|
|
743
|
+
readonly name: "newToken";
|
|
744
|
+
readonly type: "address";
|
|
745
|
+
}];
|
|
746
|
+
readonly name: "setToken";
|
|
747
|
+
readonly outputs: readonly [];
|
|
748
|
+
readonly stateMutability: "nonpayable";
|
|
749
|
+
readonly type: "function";
|
|
750
|
+
}, {
|
|
751
|
+
readonly inputs: readonly [{
|
|
752
|
+
readonly internalType: "address";
|
|
753
|
+
readonly name: "newTreasury";
|
|
754
|
+
readonly type: "address";
|
|
755
|
+
}];
|
|
756
|
+
readonly name: "setTreasury";
|
|
757
|
+
readonly outputs: readonly [];
|
|
758
|
+
readonly stateMutability: "nonpayable";
|
|
759
|
+
readonly type: "function";
|
|
719
760
|
}, {
|
|
720
761
|
readonly inputs: readonly [{
|
|
721
762
|
readonly internalType: "uint256";
|
|
@@ -755,8 +796,41 @@ export declare const RewardsManagerABI: readonly [{
|
|
|
755
796
|
readonly stateMutability: "view";
|
|
756
797
|
readonly type: "function";
|
|
757
798
|
}, {
|
|
758
|
-
readonly inputs: readonly [
|
|
759
|
-
|
|
799
|
+
readonly inputs: readonly [{
|
|
800
|
+
readonly components: readonly [{
|
|
801
|
+
readonly internalType: "address";
|
|
802
|
+
readonly name: "user";
|
|
803
|
+
readonly type: "address";
|
|
804
|
+
}, {
|
|
805
|
+
readonly internalType: "uint256";
|
|
806
|
+
readonly name: "amount";
|
|
807
|
+
readonly type: "uint256";
|
|
808
|
+
}];
|
|
809
|
+
readonly internalType: "struct Params.TransferWithPermitParams";
|
|
810
|
+
readonly name: "params";
|
|
811
|
+
readonly type: "tuple";
|
|
812
|
+
}, {
|
|
813
|
+
readonly internalType: "address";
|
|
814
|
+
readonly name: "embeddedAddress";
|
|
815
|
+
readonly type: "address";
|
|
816
|
+
}, {
|
|
817
|
+
readonly internalType: "uint256";
|
|
818
|
+
readonly name: "deadline";
|
|
819
|
+
readonly type: "uint256";
|
|
820
|
+
}, {
|
|
821
|
+
readonly internalType: "uint8";
|
|
822
|
+
readonly name: "v";
|
|
823
|
+
readonly type: "uint8";
|
|
824
|
+
}, {
|
|
825
|
+
readonly internalType: "bytes32";
|
|
826
|
+
readonly name: "r";
|
|
827
|
+
readonly type: "bytes32";
|
|
828
|
+
}, {
|
|
829
|
+
readonly internalType: "bytes32";
|
|
830
|
+
readonly name: "s";
|
|
831
|
+
readonly type: "bytes32";
|
|
832
|
+
}];
|
|
833
|
+
readonly name: "transferWithPermit";
|
|
760
834
|
readonly outputs: readonly [];
|
|
761
835
|
readonly stateMutability: "nonpayable";
|
|
762
836
|
readonly type: "function";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RewardsManager.d.ts","sourceRoot":"","sources":["../../src/abis/RewardsManager.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"RewardsManager.d.ts","sourceRoot":"","sources":["../../src/abis/RewardsManager.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAojCpB,CAAC"}
|