@cashie/core-lib 1.3.0 → 1.5.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.
package/dist/abi/abi.d.ts CHANGED
@@ -444,10 +444,6 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
444
444
  readonly name: "_allowance";
445
445
  readonly type: "uint256";
446
446
  readonly internalType: "uint256";
447
- }, {
448
- readonly name: "_feeBeneficiaryAddress";
449
- readonly type: "address";
450
- readonly internalType: "address";
451
447
  }, {
452
448
  readonly name: "_receiptBadgeRouterMintPayload";
453
449
  readonly type: "tuple";
@@ -487,10 +483,6 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
487
483
  readonly name: "_allowance";
488
484
  readonly type: "uint256";
489
485
  readonly internalType: "uint256";
490
- }, {
491
- readonly name: "_feeBeneficiaryAddress";
492
- readonly type: "address";
493
- readonly internalType: "address";
494
486
  }, {
495
487
  readonly name: "_receiptBadgeRouterMintPayload";
496
488
  readonly type: "tuple";
@@ -530,10 +522,6 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
530
522
  readonly name: "_allowance";
531
523
  readonly type: "uint256";
532
524
  readonly internalType: "uint256";
533
- }, {
534
- readonly name: "_feeBeneficiaryAddress";
535
- readonly type: "address";
536
- readonly internalType: "address";
537
525
  }, {
538
526
  readonly name: "_receiptBadgeRouterMintPayload";
539
527
  readonly type: "tuple";
@@ -598,6 +586,16 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
598
586
  readonly internalType: "uint256";
599
587
  }];
600
588
  readonly stateMutability: "view";
589
+ }, {
590
+ readonly type: "function";
591
+ readonly name: "reactivateAccount";
592
+ readonly inputs: readonly [{
593
+ readonly name: "accountAddress";
594
+ readonly type: "address";
595
+ readonly internalType: "address";
596
+ }];
597
+ readonly outputs: readonly [];
598
+ readonly stateMutability: "nonpayable";
601
599
  }, {
602
600
  readonly type: "function";
603
601
  readonly name: "receiptBadge";
@@ -760,10 +758,6 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
760
758
  readonly name: "_allowance";
761
759
  readonly type: "uint256";
762
760
  readonly internalType: "uint256";
763
- }, {
764
- readonly name: "_feeBeneficiaryAddress";
765
- readonly type: "address";
766
- readonly internalType: "address";
767
761
  }];
768
762
  readonly outputs: readonly [];
769
763
  readonly stateMutability: "nonpayable";
@@ -775,11 +769,6 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
775
769
  readonly type: "address";
776
770
  readonly indexed: true;
777
771
  readonly internalType: "address";
778
- }, {
779
- readonly name: "processor";
780
- readonly type: "address";
781
- readonly indexed: true;
782
- readonly internalType: "address";
783
772
  }, {
784
773
  readonly name: "salt";
785
774
  readonly type: "bytes32";
@@ -802,6 +791,16 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
802
791
  readonly internalType: "uint256";
803
792
  }];
804
793
  readonly anonymous: false;
794
+ }, {
795
+ readonly type: "event";
796
+ readonly name: "AccountReactivated";
797
+ readonly inputs: readonly [{
798
+ readonly name: "account";
799
+ readonly type: "address";
800
+ readonly indexed: true;
801
+ readonly internalType: "address";
802
+ }];
803
+ readonly anonymous: false;
805
804
  }, {
806
805
  readonly type: "event";
807
806
  readonly name: "Deposited";
@@ -911,7 +910,7 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
911
910
  readonly indexed: true;
912
911
  readonly internalType: "address";
913
912
  }, {
914
- readonly name: "feeBeneficiaryAddress";
913
+ readonly name: "beneficiaryAddress";
915
914
  readonly type: "address";
916
915
  readonly indexed: true;
917
916
  readonly internalType: "address";
@@ -1089,6 +1088,22 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
1089
1088
  readonly type: "error";
1090
1089
  readonly name: "MembershipBadgeNotActive";
1091
1090
  readonly inputs: readonly [];
1091
+ }, {
1092
+ readonly type: "error";
1093
+ readonly name: "MembershipBadgeNotMinted";
1094
+ readonly inputs: readonly [];
1095
+ }, {
1096
+ readonly type: "error";
1097
+ readonly name: "NotAccountOwner";
1098
+ readonly inputs: readonly [{
1099
+ readonly name: "account";
1100
+ readonly type: "address";
1101
+ readonly internalType: "address";
1102
+ }, {
1103
+ readonly name: "caller";
1104
+ readonly type: "address";
1105
+ readonly internalType: "address";
1106
+ }];
1092
1107
  }, {
1093
1108
  readonly type: "error";
1094
1109
  readonly name: "OwnableInvalidOwner";
@@ -1343,11 +1358,11 @@ export declare const CASHIE_IDENTITY_SOUL_CONTRACT_ABI: readonly [{
1343
1358
  readonly type: "function";
1344
1359
  readonly name: "approve";
1345
1360
  readonly inputs: readonly [{
1346
- readonly name: "to";
1361
+ readonly name: "";
1347
1362
  readonly type: "address";
1348
1363
  readonly internalType: "address";
1349
1364
  }, {
1350
- readonly name: "tokenId";
1365
+ readonly name: "";
1351
1366
  readonly type: "uint256";
1352
1367
  readonly internalType: "uint256";
1353
1368
  }];
@@ -1608,26 +1623,26 @@ export declare const CASHIE_IDENTITY_SOUL_CONTRACT_ABI: readonly [{
1608
1623
  readonly type: "uint256";
1609
1624
  readonly internalType: "uint256";
1610
1625
  }, {
1611
- readonly name: "_data";
1626
+ readonly name: "data";
1612
1627
  readonly type: "bytes";
1613
1628
  readonly internalType: "bytes";
1614
1629
  }];
1615
1630
  readonly outputs: readonly [];
1616
- readonly stateMutability: "pure";
1631
+ readonly stateMutability: "nonpayable";
1617
1632
  }, {
1618
1633
  readonly type: "function";
1619
1634
  readonly name: "setApprovalForAll";
1620
1635
  readonly inputs: readonly [{
1621
- readonly name: "operator";
1636
+ readonly name: "";
1622
1637
  readonly type: "address";
1623
1638
  readonly internalType: "address";
1624
1639
  }, {
1625
- readonly name: "approved";
1640
+ readonly name: "";
1626
1641
  readonly type: "bool";
1627
1642
  readonly internalType: "bool";
1628
1643
  }];
1629
1644
  readonly outputs: readonly [];
1630
- readonly stateMutability: "nonpayable";
1645
+ readonly stateMutability: "pure";
1631
1646
  }, {
1632
1647
  readonly type: "function";
1633
1648
  readonly name: "setRouter";
@@ -1707,7 +1722,7 @@ export declare const CASHIE_IDENTITY_SOUL_CONTRACT_ABI: readonly [{
1707
1722
  readonly internalType: "uint256";
1708
1723
  }];
1709
1724
  readonly outputs: readonly [];
1710
- readonly stateMutability: "pure";
1725
+ readonly stateMutability: "nonpayable";
1711
1726
  }, {
1712
1727
  readonly type: "function";
1713
1728
  readonly name: "transferOwnership";
@@ -2997,6 +3012,26 @@ export declare const CASHIE_MEMBERSHIP_BADGE_CONTRACT_ABI: readonly [{
2997
3012
  }];
2998
3013
  readonly outputs: readonly [];
2999
3014
  readonly stateMutability: "nonpayable";
3015
+ }, {
3016
+ readonly type: "function";
3017
+ readonly name: "enableByBadgeId";
3018
+ readonly inputs: readonly [{
3019
+ readonly name: "badgeId";
3020
+ readonly type: "uint256";
3021
+ readonly internalType: "uint256";
3022
+ }];
3023
+ readonly outputs: readonly [];
3024
+ readonly stateMutability: "nonpayable";
3025
+ }, {
3026
+ readonly type: "function";
3027
+ readonly name: "enableByIdentityTokenId";
3028
+ readonly inputs: readonly [{
3029
+ readonly name: "identityTokenId";
3030
+ readonly type: "uint256";
3031
+ readonly internalType: "uint256";
3032
+ }];
3033
+ readonly outputs: readonly [];
3034
+ readonly stateMutability: "nonpayable";
3000
3035
  }, {
3001
3036
  readonly type: "function";
3002
3037
  readonly name: "identityContract";
@@ -3200,6 +3235,16 @@ export declare const CASHIE_MEMBERSHIP_BADGE_CONTRACT_ABI: readonly [{
3200
3235
  readonly internalType: "uint256";
3201
3236
  }];
3202
3237
  readonly anonymous: false;
3238
+ }, {
3239
+ readonly type: "event";
3240
+ readonly name: "Enable";
3241
+ readonly inputs: readonly [{
3242
+ readonly name: "badgeId";
3243
+ readonly type: "uint256";
3244
+ readonly indexed: true;
3245
+ readonly internalType: "uint256";
3246
+ }];
3247
+ readonly anonymous: false;
3203
3248
  }, {
3204
3249
  readonly type: "event";
3205
3250
  readonly name: "Mint";
@@ -3304,6 +3349,14 @@ export declare const CASHIE_MEMBERSHIP_BADGE_CONTRACT_ABI: readonly [{
3304
3349
  readonly type: "uint256";
3305
3350
  readonly internalType: "uint256";
3306
3351
  }];
3352
+ }, {
3353
+ readonly type: "error";
3354
+ readonly name: "MembershipBadgeAlreadyEnabled";
3355
+ readonly inputs: readonly [{
3356
+ readonly name: "badgeId";
3357
+ readonly type: "uint256";
3358
+ readonly internalType: "uint256";
3359
+ }];
3307
3360
  }, {
3308
3361
  readonly type: "error";
3309
3362
  readonly name: "MembershipBadgeAlreadyMinted";
@@ -23,6 +23,15 @@ export type StablecoinTokenDetailsByChainIdItem = {
23
23
  * @param symbol - The symbol of the token
24
24
  */
25
25
  export type StablecoinTokenDetailsByChainId = Record<Hex, Record<Address, StablecoinTokenDetailsByChainIdItem>>;
26
+ /**
27
+ * The details of an ERC-20 token account
28
+ *
29
+ * @param chainId - The chain id
30
+ * @param balance - The balance of the token
31
+ * @param decimals - The decimals of the token
32
+ * @param symbol - The symbol of the token
33
+ * @param contractAddress - The address of the token contract
34
+ */
26
35
  export type Erc20TokenAccountDetails = {
27
36
  chainId: Hex;
28
37
  balance: Hex;
@@ -74,6 +74,7 @@ export declare const erc20TokenPaymentPermissionSchema: z.ZodObject<{
74
74
  annually: "annually";
75
75
  }>;
76
76
  }, z.core.$strict>], "type">;
77
+ salt: z.ZodCustom<`0x${string}`, `0x${string}`>;
77
78
  }, z.core.$strict>;
78
79
  }, z.core.$strict>;
79
80
  export declare const permissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -99,6 +100,7 @@ export declare const permissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
99
100
  annually: "annually";
100
101
  }>;
101
102
  }, z.core.$strict>], "type">;
103
+ salt: z.ZodCustom<`0x${string}`, `0x${string}`>;
102
104
  }, z.core.$strict>;
103
105
  }, z.core.$strict>], "type">;
104
106
  export declare const permissionSchemas: {
@@ -125,6 +127,7 @@ export declare const permissionSchemas: {
125
127
  annually: "annually";
126
128
  }>;
127
129
  }, z.core.$strict>], "type">;
130
+ salt: z.ZodCustom<`0x${string}`, `0x${string}`>;
128
131
  }, z.core.$strict>;
129
132
  }, z.core.$strict>;
130
133
  };
@@ -31,6 +31,7 @@ export declare const permissionRequestSchema: z.ZodObject<{
31
31
  annually: "annually";
32
32
  }>;
33
33
  }, z.core.$strict>], "type">;
34
+ salt: z.ZodCustom<`0x${string}`, `0x${string}`>;
34
35
  }, z.core.$strict>;
35
36
  }, z.core.$strict>], "type">;
36
37
  rules: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -76,6 +77,7 @@ export declare const permissionsRequestSchema: z.ZodArray<z.ZodObject<{
76
77
  annually: "annually";
77
78
  }>;
78
79
  }, z.core.$strict>], "type">;
80
+ salt: z.ZodCustom<`0x${string}`, `0x${string}`>;
79
81
  }, z.core.$strict>;
80
82
  }, z.core.$strict>], "type">;
81
83
  rules: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -120,6 +122,7 @@ export declare const permissionResponseSchema: z.ZodObject<{
120
122
  annually: "annually";
121
123
  }>;
122
124
  }, z.core.$strict>], "type">;
125
+ salt: z.ZodCustom<`0x${string}`, `0x${string}`>;
123
126
  }, z.core.$strict>;
124
127
  }, z.core.$strict>], "type">;
125
128
  rules: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -171,6 +174,7 @@ export declare const permissionsResponseSchema: z.ZodArray<z.ZodObject<{
171
174
  annually: "annually";
172
175
  }>;
173
176
  }, z.core.$strict>], "type">;
177
+ salt: z.ZodCustom<`0x${string}`, `0x${string}`>;
174
178
  }, z.core.$strict>;
175
179
  }, z.core.$strict>], "type">;
176
180
  rules: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{