@cashie/core-lib 1.3.0 → 1.4.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 +83 -10
- package/dist/backend/contracts/balance.types.d.ts +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/dist/intent/types.d.ts +24 -9
- package/package.json +7 -4
package/dist/abi/abi.d.ts
CHANGED
|
@@ -191,6 +191,10 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
191
191
|
readonly type: "bytes";
|
|
192
192
|
readonly internalType: "bytes";
|
|
193
193
|
}];
|
|
194
|
+
}, {
|
|
195
|
+
readonly name: "beneficiaryAddress";
|
|
196
|
+
readonly type: "address";
|
|
197
|
+
readonly internalType: "address";
|
|
194
198
|
}, {
|
|
195
199
|
readonly name: "salt";
|
|
196
200
|
readonly type: "bytes32";
|
|
@@ -445,7 +449,7 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
445
449
|
readonly type: "uint256";
|
|
446
450
|
readonly internalType: "uint256";
|
|
447
451
|
}, {
|
|
448
|
-
readonly name: "
|
|
452
|
+
readonly name: "beneficiaryAddress";
|
|
449
453
|
readonly type: "address";
|
|
450
454
|
readonly internalType: "address";
|
|
451
455
|
}, {
|
|
@@ -488,7 +492,7 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
488
492
|
readonly type: "uint256";
|
|
489
493
|
readonly internalType: "uint256";
|
|
490
494
|
}, {
|
|
491
|
-
readonly name: "
|
|
495
|
+
readonly name: "beneficiaryAddress";
|
|
492
496
|
readonly type: "address";
|
|
493
497
|
readonly internalType: "address";
|
|
494
498
|
}, {
|
|
@@ -531,7 +535,7 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
531
535
|
readonly type: "uint256";
|
|
532
536
|
readonly internalType: "uint256";
|
|
533
537
|
}, {
|
|
534
|
-
readonly name: "
|
|
538
|
+
readonly name: "beneficiaryAddress";
|
|
535
539
|
readonly type: "address";
|
|
536
540
|
readonly internalType: "address";
|
|
537
541
|
}, {
|
|
@@ -598,6 +602,20 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
598
602
|
readonly internalType: "uint256";
|
|
599
603
|
}];
|
|
600
604
|
readonly stateMutability: "view";
|
|
605
|
+
}, {
|
|
606
|
+
readonly type: "function";
|
|
607
|
+
readonly name: "reactivateAccount";
|
|
608
|
+
readonly inputs: readonly [{
|
|
609
|
+
readonly name: "accountAddress";
|
|
610
|
+
readonly type: "address";
|
|
611
|
+
readonly internalType: "address";
|
|
612
|
+
}, {
|
|
613
|
+
readonly name: "beneficiaryAddress";
|
|
614
|
+
readonly type: "address";
|
|
615
|
+
readonly internalType: "address";
|
|
616
|
+
}];
|
|
617
|
+
readonly outputs: readonly [];
|
|
618
|
+
readonly stateMutability: "nonpayable";
|
|
601
619
|
}, {
|
|
602
620
|
readonly type: "function";
|
|
603
621
|
readonly name: "receiptBadge";
|
|
@@ -761,7 +779,7 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
761
779
|
readonly type: "uint256";
|
|
762
780
|
readonly internalType: "uint256";
|
|
763
781
|
}, {
|
|
764
|
-
readonly name: "
|
|
782
|
+
readonly name: "beneficiaryAddress";
|
|
765
783
|
readonly type: "address";
|
|
766
784
|
readonly internalType: "address";
|
|
767
785
|
}];
|
|
@@ -775,11 +793,6 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
775
793
|
readonly type: "address";
|
|
776
794
|
readonly indexed: true;
|
|
777
795
|
readonly internalType: "address";
|
|
778
|
-
}, {
|
|
779
|
-
readonly name: "processor";
|
|
780
|
-
readonly type: "address";
|
|
781
|
-
readonly indexed: true;
|
|
782
|
-
readonly internalType: "address";
|
|
783
796
|
}, {
|
|
784
797
|
readonly name: "salt";
|
|
785
798
|
readonly type: "bytes32";
|
|
@@ -802,6 +815,16 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
802
815
|
readonly internalType: "uint256";
|
|
803
816
|
}];
|
|
804
817
|
readonly anonymous: false;
|
|
818
|
+
}, {
|
|
819
|
+
readonly type: "event";
|
|
820
|
+
readonly name: "AccountReactivated";
|
|
821
|
+
readonly inputs: readonly [{
|
|
822
|
+
readonly name: "account";
|
|
823
|
+
readonly type: "address";
|
|
824
|
+
readonly indexed: true;
|
|
825
|
+
readonly internalType: "address";
|
|
826
|
+
}];
|
|
827
|
+
readonly anonymous: false;
|
|
805
828
|
}, {
|
|
806
829
|
readonly type: "event";
|
|
807
830
|
readonly name: "Deposited";
|
|
@@ -911,7 +934,7 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
911
934
|
readonly indexed: true;
|
|
912
935
|
readonly internalType: "address";
|
|
913
936
|
}, {
|
|
914
|
-
readonly name: "
|
|
937
|
+
readonly name: "beneficiaryAddress";
|
|
915
938
|
readonly type: "address";
|
|
916
939
|
readonly indexed: true;
|
|
917
940
|
readonly internalType: "address";
|
|
@@ -1089,6 +1112,18 @@ export declare const CASHIE_ROUTER_V1_CONTRACT_ABI: readonly [{
|
|
|
1089
1112
|
readonly type: "error";
|
|
1090
1113
|
readonly name: "MembershipBadgeNotActive";
|
|
1091
1114
|
readonly inputs: readonly [];
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly type: "error";
|
|
1117
|
+
readonly name: "NotAccountOwner";
|
|
1118
|
+
readonly inputs: readonly [{
|
|
1119
|
+
readonly name: "account";
|
|
1120
|
+
readonly type: "address";
|
|
1121
|
+
readonly internalType: "address";
|
|
1122
|
+
}, {
|
|
1123
|
+
readonly name: "caller";
|
|
1124
|
+
readonly type: "address";
|
|
1125
|
+
readonly internalType: "address";
|
|
1126
|
+
}];
|
|
1092
1127
|
}, {
|
|
1093
1128
|
readonly type: "error";
|
|
1094
1129
|
readonly name: "OwnableInvalidOwner";
|
|
@@ -2997,6 +3032,26 @@ export declare const CASHIE_MEMBERSHIP_BADGE_CONTRACT_ABI: readonly [{
|
|
|
2997
3032
|
}];
|
|
2998
3033
|
readonly outputs: readonly [];
|
|
2999
3034
|
readonly stateMutability: "nonpayable";
|
|
3035
|
+
}, {
|
|
3036
|
+
readonly type: "function";
|
|
3037
|
+
readonly name: "enableByBadgeId";
|
|
3038
|
+
readonly inputs: readonly [{
|
|
3039
|
+
readonly name: "badgeId";
|
|
3040
|
+
readonly type: "uint256";
|
|
3041
|
+
readonly internalType: "uint256";
|
|
3042
|
+
}];
|
|
3043
|
+
readonly outputs: readonly [];
|
|
3044
|
+
readonly stateMutability: "nonpayable";
|
|
3045
|
+
}, {
|
|
3046
|
+
readonly type: "function";
|
|
3047
|
+
readonly name: "enableByIdentityTokenId";
|
|
3048
|
+
readonly inputs: readonly [{
|
|
3049
|
+
readonly name: "identityTokenId";
|
|
3050
|
+
readonly type: "uint256";
|
|
3051
|
+
readonly internalType: "uint256";
|
|
3052
|
+
}];
|
|
3053
|
+
readonly outputs: readonly [];
|
|
3054
|
+
readonly stateMutability: "nonpayable";
|
|
3000
3055
|
}, {
|
|
3001
3056
|
readonly type: "function";
|
|
3002
3057
|
readonly name: "identityContract";
|
|
@@ -3200,6 +3255,16 @@ export declare const CASHIE_MEMBERSHIP_BADGE_CONTRACT_ABI: readonly [{
|
|
|
3200
3255
|
readonly internalType: "uint256";
|
|
3201
3256
|
}];
|
|
3202
3257
|
readonly anonymous: false;
|
|
3258
|
+
}, {
|
|
3259
|
+
readonly type: "event";
|
|
3260
|
+
readonly name: "Enable";
|
|
3261
|
+
readonly inputs: readonly [{
|
|
3262
|
+
readonly name: "badgeId";
|
|
3263
|
+
readonly type: "uint256";
|
|
3264
|
+
readonly indexed: true;
|
|
3265
|
+
readonly internalType: "uint256";
|
|
3266
|
+
}];
|
|
3267
|
+
readonly anonymous: false;
|
|
3203
3268
|
}, {
|
|
3204
3269
|
readonly type: "event";
|
|
3205
3270
|
readonly name: "Mint";
|
|
@@ -3304,6 +3369,14 @@ export declare const CASHIE_MEMBERSHIP_BADGE_CONTRACT_ABI: readonly [{
|
|
|
3304
3369
|
readonly type: "uint256";
|
|
3305
3370
|
readonly internalType: "uint256";
|
|
3306
3371
|
}];
|
|
3372
|
+
}, {
|
|
3373
|
+
readonly type: "error";
|
|
3374
|
+
readonly name: "MembershipBadgeAlreadyEnabled";
|
|
3375
|
+
readonly inputs: readonly [{
|
|
3376
|
+
readonly name: "badgeId";
|
|
3377
|
+
readonly type: "uint256";
|
|
3378
|
+
readonly internalType: "uint256";
|
|
3379
|
+
}];
|
|
3307
3380
|
}, {
|
|
3308
3381
|
readonly type: "error";
|
|
3309
3382
|
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;
|