@lit-protocol/vincent-ability-erc20-transfer 0.0.11-mma → 0.1.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/CHANGELOG.md +23 -0
- package/dist/CHANGELOG.md +23 -0
- package/dist/package.json +2 -2
- package/dist/src/generated/lit-action.js +2 -2
- package/dist/src/generated/vincent-ability-metadata.json +1 -1
- package/dist/src/generated/vincent-bundled-ability.d.ts +72 -72
- package/dist/src/lib/helpers/index.d.ts +0 -19
- package/dist/src/lib/helpers/index.d.ts.map +1 -1
- package/dist/src/lib/helpers/index.js +0 -36
- package/dist/src/lib/helpers/index.js.map +1 -1
- package/dist/src/lib/vincent-ability.d.ts +72 -72
- package/dist/src/lib/vincent-ability.d.ts.map +1 -1
- package/dist/src/lib/vincent-ability.js +16 -43
- package/dist/src/lib/vincent-ability.js.map +1 -1
- package/package.json +5 -5
|
@@ -39,14 +39,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
39
39
|
to: string;
|
|
40
40
|
amount: string;
|
|
41
41
|
}>, import("zod").ZodObject<{
|
|
42
|
-
maxSends: import("zod").
|
|
43
|
-
timeWindowSeconds: import("zod").
|
|
42
|
+
maxSends: import("zod").ZodNumber;
|
|
43
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
44
44
|
}, "strip", import("zod").ZodTypeAny, {
|
|
45
|
-
maxSends:
|
|
46
|
-
timeWindowSeconds:
|
|
45
|
+
maxSends: number;
|
|
46
|
+
timeWindowSeconds: number;
|
|
47
47
|
}, {
|
|
48
|
-
maxSends
|
|
49
|
-
timeWindowSeconds
|
|
48
|
+
maxSends: number;
|
|
49
|
+
timeWindowSeconds: number;
|
|
50
50
|
}>, import("zod").ZodObject<{
|
|
51
51
|
currentCount: import("zod").ZodNumber;
|
|
52
52
|
maxSends: import("zod").ZodNumber;
|
|
@@ -153,14 +153,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
153
153
|
to: string;
|
|
154
154
|
amount: string;
|
|
155
155
|
}>, import("zod").ZodObject<{
|
|
156
|
-
maxSends: import("zod").
|
|
157
|
-
timeWindowSeconds: import("zod").
|
|
156
|
+
maxSends: import("zod").ZodNumber;
|
|
157
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
158
158
|
}, "strip", import("zod").ZodTypeAny, {
|
|
159
|
-
maxSends:
|
|
160
|
-
timeWindowSeconds:
|
|
159
|
+
maxSends: number;
|
|
160
|
+
timeWindowSeconds: number;
|
|
161
161
|
}, {
|
|
162
|
-
maxSends
|
|
163
|
-
timeWindowSeconds
|
|
162
|
+
maxSends: number;
|
|
163
|
+
timeWindowSeconds: number;
|
|
164
164
|
}>, import("zod").ZodObject<{
|
|
165
165
|
currentCount: import("zod").ZodNumber;
|
|
166
166
|
maxSends: import("zod").ZodNumber;
|
|
@@ -204,14 +204,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
204
204
|
to: string;
|
|
205
205
|
amount: string;
|
|
206
206
|
}>, import("zod").ZodObject<{
|
|
207
|
-
maxSends: import("zod").
|
|
208
|
-
timeWindowSeconds: import("zod").
|
|
207
|
+
maxSends: import("zod").ZodNumber;
|
|
208
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
209
209
|
}, "strip", import("zod").ZodTypeAny, {
|
|
210
|
-
maxSends:
|
|
211
|
-
timeWindowSeconds:
|
|
210
|
+
maxSends: number;
|
|
211
|
+
timeWindowSeconds: number;
|
|
212
212
|
}, {
|
|
213
|
-
maxSends
|
|
214
|
-
timeWindowSeconds
|
|
213
|
+
maxSends: number;
|
|
214
|
+
timeWindowSeconds: number;
|
|
215
215
|
}>, import("zod").ZodObject<{
|
|
216
216
|
currentCount: import("zod").ZodNumber;
|
|
217
217
|
maxSends: import("zod").ZodNumber;
|
|
@@ -300,14 +300,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
300
300
|
amount: string;
|
|
301
301
|
}>;
|
|
302
302
|
userParamsSchema: import("zod").ZodObject<{
|
|
303
|
-
maxSends: import("zod").
|
|
304
|
-
timeWindowSeconds: import("zod").
|
|
303
|
+
maxSends: import("zod").ZodNumber;
|
|
304
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
305
305
|
}, "strip", import("zod").ZodTypeAny, {
|
|
306
|
-
maxSends:
|
|
307
|
-
timeWindowSeconds:
|
|
306
|
+
maxSends: number;
|
|
307
|
+
timeWindowSeconds: number;
|
|
308
308
|
}, {
|
|
309
|
-
maxSends
|
|
310
|
-
timeWindowSeconds
|
|
309
|
+
maxSends: number;
|
|
310
|
+
timeWindowSeconds: number;
|
|
311
311
|
}>;
|
|
312
312
|
evalAllowResultSchema: import("zod").ZodObject<{
|
|
313
313
|
currentCount: import("zod").ZodNumber;
|
|
@@ -422,14 +422,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
422
422
|
to: string;
|
|
423
423
|
amount: string;
|
|
424
424
|
}>, import("zod").ZodObject<{
|
|
425
|
-
maxSends: import("zod").
|
|
426
|
-
timeWindowSeconds: import("zod").
|
|
425
|
+
maxSends: import("zod").ZodNumber;
|
|
426
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
427
427
|
}, "strip", import("zod").ZodTypeAny, {
|
|
428
|
-
maxSends:
|
|
429
|
-
timeWindowSeconds:
|
|
428
|
+
maxSends: number;
|
|
429
|
+
timeWindowSeconds: number;
|
|
430
430
|
}, {
|
|
431
|
-
maxSends
|
|
432
|
-
timeWindowSeconds
|
|
431
|
+
maxSends: number;
|
|
432
|
+
timeWindowSeconds: number;
|
|
433
433
|
}>, import("zod").ZodObject<{
|
|
434
434
|
currentCount: import("zod").ZodNumber;
|
|
435
435
|
maxSends: import("zod").ZodNumber;
|
|
@@ -474,14 +474,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
474
474
|
to: string;
|
|
475
475
|
amount: string;
|
|
476
476
|
}>, import("zod").ZodObject<{
|
|
477
|
-
maxSends: import("zod").
|
|
478
|
-
timeWindowSeconds: import("zod").
|
|
477
|
+
maxSends: import("zod").ZodNumber;
|
|
478
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
479
479
|
}, "strip", import("zod").ZodTypeAny, {
|
|
480
|
-
maxSends:
|
|
481
|
-
timeWindowSeconds:
|
|
480
|
+
maxSends: number;
|
|
481
|
+
timeWindowSeconds: number;
|
|
482
482
|
}, {
|
|
483
|
-
maxSends
|
|
484
|
-
timeWindowSeconds
|
|
483
|
+
maxSends: number;
|
|
484
|
+
timeWindowSeconds: number;
|
|
485
485
|
}>, import("zod").ZodObject<{
|
|
486
486
|
currentCount: import("zod").ZodNumber;
|
|
487
487
|
maxSends: import("zod").ZodNumber;
|
|
@@ -560,14 +560,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
560
560
|
to: string;
|
|
561
561
|
amount: string;
|
|
562
562
|
}>, import("zod").ZodObject<{
|
|
563
|
-
maxSends: import("zod").
|
|
564
|
-
timeWindowSeconds: import("zod").
|
|
563
|
+
maxSends: import("zod").ZodNumber;
|
|
564
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
565
565
|
}, "strip", import("zod").ZodTypeAny, {
|
|
566
|
-
maxSends:
|
|
567
|
-
timeWindowSeconds:
|
|
566
|
+
maxSends: number;
|
|
567
|
+
timeWindowSeconds: number;
|
|
568
568
|
}, {
|
|
569
|
-
maxSends
|
|
570
|
-
timeWindowSeconds
|
|
569
|
+
maxSends: number;
|
|
570
|
+
timeWindowSeconds: number;
|
|
571
571
|
}>, import("zod").ZodObject<{
|
|
572
572
|
currentCount: import("zod").ZodNumber;
|
|
573
573
|
maxSends: import("zod").ZodNumber;
|
|
@@ -674,14 +674,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
674
674
|
to: string;
|
|
675
675
|
amount: string;
|
|
676
676
|
}>, import("zod").ZodObject<{
|
|
677
|
-
maxSends: import("zod").
|
|
678
|
-
timeWindowSeconds: import("zod").
|
|
677
|
+
maxSends: import("zod").ZodNumber;
|
|
678
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
679
679
|
}, "strip", import("zod").ZodTypeAny, {
|
|
680
|
-
maxSends:
|
|
681
|
-
timeWindowSeconds:
|
|
680
|
+
maxSends: number;
|
|
681
|
+
timeWindowSeconds: number;
|
|
682
682
|
}, {
|
|
683
|
-
maxSends
|
|
684
|
-
timeWindowSeconds
|
|
683
|
+
maxSends: number;
|
|
684
|
+
timeWindowSeconds: number;
|
|
685
685
|
}>, import("zod").ZodObject<{
|
|
686
686
|
currentCount: import("zod").ZodNumber;
|
|
687
687
|
maxSends: import("zod").ZodNumber;
|
|
@@ -725,14 +725,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
725
725
|
to: string;
|
|
726
726
|
amount: string;
|
|
727
727
|
}>, import("zod").ZodObject<{
|
|
728
|
-
maxSends: import("zod").
|
|
729
|
-
timeWindowSeconds: import("zod").
|
|
728
|
+
maxSends: import("zod").ZodNumber;
|
|
729
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
730
730
|
}, "strip", import("zod").ZodTypeAny, {
|
|
731
|
-
maxSends:
|
|
732
|
-
timeWindowSeconds:
|
|
731
|
+
maxSends: number;
|
|
732
|
+
timeWindowSeconds: number;
|
|
733
733
|
}, {
|
|
734
|
-
maxSends
|
|
735
|
-
timeWindowSeconds
|
|
734
|
+
maxSends: number;
|
|
735
|
+
timeWindowSeconds: number;
|
|
736
736
|
}>, import("zod").ZodObject<{
|
|
737
737
|
currentCount: import("zod").ZodNumber;
|
|
738
738
|
maxSends: import("zod").ZodNumber;
|
|
@@ -821,14 +821,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
821
821
|
amount: string;
|
|
822
822
|
}>;
|
|
823
823
|
userParamsSchema: import("zod").ZodObject<{
|
|
824
|
-
maxSends: import("zod").
|
|
825
|
-
timeWindowSeconds: import("zod").
|
|
824
|
+
maxSends: import("zod").ZodNumber;
|
|
825
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
826
826
|
}, "strip", import("zod").ZodTypeAny, {
|
|
827
|
-
maxSends:
|
|
828
|
-
timeWindowSeconds:
|
|
827
|
+
maxSends: number;
|
|
828
|
+
timeWindowSeconds: number;
|
|
829
829
|
}, {
|
|
830
|
-
maxSends
|
|
831
|
-
timeWindowSeconds
|
|
830
|
+
maxSends: number;
|
|
831
|
+
timeWindowSeconds: number;
|
|
832
832
|
}>;
|
|
833
833
|
evalAllowResultSchema: import("zod").ZodObject<{
|
|
834
834
|
currentCount: import("zod").ZodNumber;
|
|
@@ -943,14 +943,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
943
943
|
to: string;
|
|
944
944
|
amount: string;
|
|
945
945
|
}>, import("zod").ZodObject<{
|
|
946
|
-
maxSends: import("zod").
|
|
947
|
-
timeWindowSeconds: import("zod").
|
|
946
|
+
maxSends: import("zod").ZodNumber;
|
|
947
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
948
948
|
}, "strip", import("zod").ZodTypeAny, {
|
|
949
|
-
maxSends:
|
|
950
|
-
timeWindowSeconds:
|
|
949
|
+
maxSends: number;
|
|
950
|
+
timeWindowSeconds: number;
|
|
951
951
|
}, {
|
|
952
|
-
maxSends
|
|
953
|
-
timeWindowSeconds
|
|
952
|
+
maxSends: number;
|
|
953
|
+
timeWindowSeconds: number;
|
|
954
954
|
}>, import("zod").ZodObject<{
|
|
955
955
|
currentCount: import("zod").ZodNumber;
|
|
956
956
|
maxSends: import("zod").ZodNumber;
|
|
@@ -995,14 +995,14 @@ export declare const bundledVincentAbility: import("@lit-protocol/vincent-abilit
|
|
|
995
995
|
to: string;
|
|
996
996
|
amount: string;
|
|
997
997
|
}>, import("zod").ZodObject<{
|
|
998
|
-
maxSends: import("zod").
|
|
999
|
-
timeWindowSeconds: import("zod").
|
|
998
|
+
maxSends: import("zod").ZodNumber;
|
|
999
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
1000
1000
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1001
|
-
maxSends:
|
|
1002
|
-
timeWindowSeconds:
|
|
1001
|
+
maxSends: number;
|
|
1002
|
+
timeWindowSeconds: number;
|
|
1003
1003
|
}, {
|
|
1004
|
-
maxSends
|
|
1005
|
-
timeWindowSeconds
|
|
1004
|
+
maxSends: number;
|
|
1005
|
+
timeWindowSeconds: number;
|
|
1006
1006
|
}>, import("zod").ZodObject<{
|
|
1007
1007
|
currentCount: import("zod").ZodNumber;
|
|
1008
1008
|
maxSends: import("zod").ZodNumber;
|
|
@@ -28,23 +28,4 @@ export declare const ERC20_ABI: {
|
|
|
28
28
|
* @return An instance of the ethers.js Contract representing the ERC-20 token contract.
|
|
29
29
|
*/
|
|
30
30
|
export declare function getErc20Contract(provider: ethers.providers.JsonRpcProvider, address: string): ethers.Contract;
|
|
31
|
-
/**
|
|
32
|
-
* Parse amount string to wei units for ERC-20 tokens
|
|
33
|
-
* @param amount - Amount as string (e.g., "1.5")
|
|
34
|
-
* @param decimals - Token decimals (default 18)
|
|
35
|
-
* @returns Amount in wei as string
|
|
36
|
-
*/
|
|
37
|
-
export declare function parseTokenAmount(amount: string, decimals?: number): string;
|
|
38
|
-
/**
|
|
39
|
-
* Validate Ethereum address format
|
|
40
|
-
* @param address - Address to validate
|
|
41
|
-
* @returns True if valid, false otherwise
|
|
42
|
-
*/
|
|
43
|
-
export declare function isValidAddress(address: string): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Validate amount format and ensure it's positive
|
|
46
|
-
* @param amount - Amount string to validate
|
|
47
|
-
* @returns True if valid, false otherwise
|
|
48
|
-
*/
|
|
49
|
-
export declare function isValidAmount(amount: string): boolean;
|
|
50
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;GAyDrB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,eAAe,EAAE,OAAO,EAAE,MAAM,mBAE3F
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;GAyDrB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,eAAe,EAAE,OAAO,EAAE,MAAM,mBAE3F"}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ERC20_ABI = void 0;
|
|
4
4
|
exports.getErc20Contract = getErc20Contract;
|
|
5
|
-
exports.parseTokenAmount = parseTokenAmount;
|
|
6
|
-
exports.isValidAddress = isValidAddress;
|
|
7
|
-
exports.isValidAmount = isValidAmount;
|
|
8
5
|
const ethers_1 = require("ethers");
|
|
9
6
|
/**
|
|
10
7
|
* ERC-20 helper functions and ABI definitions
|
|
@@ -80,37 +77,4 @@ exports.ERC20_ABI = [
|
|
|
80
77
|
function getErc20Contract(provider, address) {
|
|
81
78
|
return new ethers_1.ethers.Contract(address, exports.ERC20_ABI, provider);
|
|
82
79
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Parse amount string to wei units for ERC-20 tokens
|
|
85
|
-
* @param amount - Amount as string (e.g., "1.5")
|
|
86
|
-
* @param decimals - Token decimals (default 18)
|
|
87
|
-
* @returns Amount in wei as string
|
|
88
|
-
*/
|
|
89
|
-
function parseTokenAmount(amount, decimals = 18) {
|
|
90
|
-
const amountFloat = parseFloat(amount);
|
|
91
|
-
const multiplier = Math.pow(10, decimals);
|
|
92
|
-
const weiAmount = Math.floor(amountFloat * multiplier);
|
|
93
|
-
return weiAmount.toString();
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Validate Ethereum address format
|
|
97
|
-
* @param address - Address to validate
|
|
98
|
-
* @returns True if valid, false otherwise
|
|
99
|
-
*/
|
|
100
|
-
function isValidAddress(address) {
|
|
101
|
-
return /^0x[a-fA-F0-9]{40}$/.test(address);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Validate amount format and ensure it's positive
|
|
105
|
-
* @param amount - Amount string to validate
|
|
106
|
-
* @returns True if valid, false otherwise
|
|
107
|
-
*/
|
|
108
|
-
function isValidAmount(amount) {
|
|
109
|
-
if (!amount || typeof amount !== 'string')
|
|
110
|
-
return false;
|
|
111
|
-
if (!/^\d*\.?\d+$/.test(amount))
|
|
112
|
-
return false;
|
|
113
|
-
const parsed = parseFloat(amount);
|
|
114
|
-
return !isNaN(parsed) && parsed > 0;
|
|
115
|
-
}
|
|
116
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/helpers/index.ts"],"names":[],"mappings":";;;AA2EA,4CAEC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/helpers/index.ts"],"names":[],"mappings":";;;AA2EA,4CAEC;AA7ED,mCAAgC;AAEhC;;GAEG;AAEH;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB;QACE,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,MAAM;aACb;SACF;QACD,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,OAAO;aACd;SACF;QACD,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAEF;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAAC,QAA0C,EAAE,OAAe;IAC1F,OAAO,IAAI,eAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAS,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -36,14 +36,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
36
36
|
to: string;
|
|
37
37
|
amount: string;
|
|
38
38
|
}>, import("zod").ZodObject<{
|
|
39
|
-
maxSends: import("zod").
|
|
40
|
-
timeWindowSeconds: import("zod").
|
|
39
|
+
maxSends: import("zod").ZodNumber;
|
|
40
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
41
41
|
}, "strip", import("zod").ZodTypeAny, {
|
|
42
|
-
maxSends:
|
|
43
|
-
timeWindowSeconds:
|
|
42
|
+
maxSends: number;
|
|
43
|
+
timeWindowSeconds: number;
|
|
44
44
|
}, {
|
|
45
|
-
maxSends
|
|
46
|
-
timeWindowSeconds
|
|
45
|
+
maxSends: number;
|
|
46
|
+
timeWindowSeconds: number;
|
|
47
47
|
}>, import("zod").ZodObject<{
|
|
48
48
|
currentCount: import("zod").ZodNumber;
|
|
49
49
|
maxSends: import("zod").ZodNumber;
|
|
@@ -150,14 +150,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
150
150
|
to: string;
|
|
151
151
|
amount: string;
|
|
152
152
|
}>, import("zod").ZodObject<{
|
|
153
|
-
maxSends: import("zod").
|
|
154
|
-
timeWindowSeconds: import("zod").
|
|
153
|
+
maxSends: import("zod").ZodNumber;
|
|
154
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
155
155
|
}, "strip", import("zod").ZodTypeAny, {
|
|
156
|
-
maxSends:
|
|
157
|
-
timeWindowSeconds:
|
|
156
|
+
maxSends: number;
|
|
157
|
+
timeWindowSeconds: number;
|
|
158
158
|
}, {
|
|
159
|
-
maxSends
|
|
160
|
-
timeWindowSeconds
|
|
159
|
+
maxSends: number;
|
|
160
|
+
timeWindowSeconds: number;
|
|
161
161
|
}>, import("zod").ZodObject<{
|
|
162
162
|
currentCount: import("zod").ZodNumber;
|
|
163
163
|
maxSends: import("zod").ZodNumber;
|
|
@@ -201,14 +201,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
201
201
|
to: string;
|
|
202
202
|
amount: string;
|
|
203
203
|
}>, import("zod").ZodObject<{
|
|
204
|
-
maxSends: import("zod").
|
|
205
|
-
timeWindowSeconds: import("zod").
|
|
204
|
+
maxSends: import("zod").ZodNumber;
|
|
205
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
206
206
|
}, "strip", import("zod").ZodTypeAny, {
|
|
207
|
-
maxSends:
|
|
208
|
-
timeWindowSeconds:
|
|
207
|
+
maxSends: number;
|
|
208
|
+
timeWindowSeconds: number;
|
|
209
209
|
}, {
|
|
210
|
-
maxSends
|
|
211
|
-
timeWindowSeconds
|
|
210
|
+
maxSends: number;
|
|
211
|
+
timeWindowSeconds: number;
|
|
212
212
|
}>, import("zod").ZodObject<{
|
|
213
213
|
currentCount: import("zod").ZodNumber;
|
|
214
214
|
maxSends: import("zod").ZodNumber;
|
|
@@ -297,14 +297,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
297
297
|
amount: string;
|
|
298
298
|
}>;
|
|
299
299
|
userParamsSchema: import("zod").ZodObject<{
|
|
300
|
-
maxSends: import("zod").
|
|
301
|
-
timeWindowSeconds: import("zod").
|
|
300
|
+
maxSends: import("zod").ZodNumber;
|
|
301
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
302
302
|
}, "strip", import("zod").ZodTypeAny, {
|
|
303
|
-
maxSends:
|
|
304
|
-
timeWindowSeconds:
|
|
303
|
+
maxSends: number;
|
|
304
|
+
timeWindowSeconds: number;
|
|
305
305
|
}, {
|
|
306
|
-
maxSends
|
|
307
|
-
timeWindowSeconds
|
|
306
|
+
maxSends: number;
|
|
307
|
+
timeWindowSeconds: number;
|
|
308
308
|
}>;
|
|
309
309
|
evalAllowResultSchema: import("zod").ZodObject<{
|
|
310
310
|
currentCount: import("zod").ZodNumber;
|
|
@@ -419,14 +419,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
419
419
|
to: string;
|
|
420
420
|
amount: string;
|
|
421
421
|
}>, import("zod").ZodObject<{
|
|
422
|
-
maxSends: import("zod").
|
|
423
|
-
timeWindowSeconds: import("zod").
|
|
422
|
+
maxSends: import("zod").ZodNumber;
|
|
423
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
424
424
|
}, "strip", import("zod").ZodTypeAny, {
|
|
425
|
-
maxSends:
|
|
426
|
-
timeWindowSeconds:
|
|
425
|
+
maxSends: number;
|
|
426
|
+
timeWindowSeconds: number;
|
|
427
427
|
}, {
|
|
428
|
-
maxSends
|
|
429
|
-
timeWindowSeconds
|
|
428
|
+
maxSends: number;
|
|
429
|
+
timeWindowSeconds: number;
|
|
430
430
|
}>, import("zod").ZodObject<{
|
|
431
431
|
currentCount: import("zod").ZodNumber;
|
|
432
432
|
maxSends: import("zod").ZodNumber;
|
|
@@ -471,14 +471,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
471
471
|
to: string;
|
|
472
472
|
amount: string;
|
|
473
473
|
}>, import("zod").ZodObject<{
|
|
474
|
-
maxSends: import("zod").
|
|
475
|
-
timeWindowSeconds: import("zod").
|
|
474
|
+
maxSends: import("zod").ZodNumber;
|
|
475
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
476
476
|
}, "strip", import("zod").ZodTypeAny, {
|
|
477
|
-
maxSends:
|
|
478
|
-
timeWindowSeconds:
|
|
477
|
+
maxSends: number;
|
|
478
|
+
timeWindowSeconds: number;
|
|
479
479
|
}, {
|
|
480
|
-
maxSends
|
|
481
|
-
timeWindowSeconds
|
|
480
|
+
maxSends: number;
|
|
481
|
+
timeWindowSeconds: number;
|
|
482
482
|
}>, import("zod").ZodObject<{
|
|
483
483
|
currentCount: import("zod").ZodNumber;
|
|
484
484
|
maxSends: import("zod").ZodNumber;
|
|
@@ -557,14 +557,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
557
557
|
to: string;
|
|
558
558
|
amount: string;
|
|
559
559
|
}>, import("zod").ZodObject<{
|
|
560
|
-
maxSends: import("zod").
|
|
561
|
-
timeWindowSeconds: import("zod").
|
|
560
|
+
maxSends: import("zod").ZodNumber;
|
|
561
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
562
562
|
}, "strip", import("zod").ZodTypeAny, {
|
|
563
|
-
maxSends:
|
|
564
|
-
timeWindowSeconds:
|
|
563
|
+
maxSends: number;
|
|
564
|
+
timeWindowSeconds: number;
|
|
565
565
|
}, {
|
|
566
|
-
maxSends
|
|
567
|
-
timeWindowSeconds
|
|
566
|
+
maxSends: number;
|
|
567
|
+
timeWindowSeconds: number;
|
|
568
568
|
}>, import("zod").ZodObject<{
|
|
569
569
|
currentCount: import("zod").ZodNumber;
|
|
570
570
|
maxSends: import("zod").ZodNumber;
|
|
@@ -671,14 +671,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
671
671
|
to: string;
|
|
672
672
|
amount: string;
|
|
673
673
|
}>, import("zod").ZodObject<{
|
|
674
|
-
maxSends: import("zod").
|
|
675
|
-
timeWindowSeconds: import("zod").
|
|
674
|
+
maxSends: import("zod").ZodNumber;
|
|
675
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
676
676
|
}, "strip", import("zod").ZodTypeAny, {
|
|
677
|
-
maxSends:
|
|
678
|
-
timeWindowSeconds:
|
|
677
|
+
maxSends: number;
|
|
678
|
+
timeWindowSeconds: number;
|
|
679
679
|
}, {
|
|
680
|
-
maxSends
|
|
681
|
-
timeWindowSeconds
|
|
680
|
+
maxSends: number;
|
|
681
|
+
timeWindowSeconds: number;
|
|
682
682
|
}>, import("zod").ZodObject<{
|
|
683
683
|
currentCount: import("zod").ZodNumber;
|
|
684
684
|
maxSends: import("zod").ZodNumber;
|
|
@@ -722,14 +722,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
722
722
|
to: string;
|
|
723
723
|
amount: string;
|
|
724
724
|
}>, import("zod").ZodObject<{
|
|
725
|
-
maxSends: import("zod").
|
|
726
|
-
timeWindowSeconds: import("zod").
|
|
725
|
+
maxSends: import("zod").ZodNumber;
|
|
726
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
727
727
|
}, "strip", import("zod").ZodTypeAny, {
|
|
728
|
-
maxSends:
|
|
729
|
-
timeWindowSeconds:
|
|
728
|
+
maxSends: number;
|
|
729
|
+
timeWindowSeconds: number;
|
|
730
730
|
}, {
|
|
731
|
-
maxSends
|
|
732
|
-
timeWindowSeconds
|
|
731
|
+
maxSends: number;
|
|
732
|
+
timeWindowSeconds: number;
|
|
733
733
|
}>, import("zod").ZodObject<{
|
|
734
734
|
currentCount: import("zod").ZodNumber;
|
|
735
735
|
maxSends: import("zod").ZodNumber;
|
|
@@ -818,14 +818,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
818
818
|
amount: string;
|
|
819
819
|
}>;
|
|
820
820
|
userParamsSchema: import("zod").ZodObject<{
|
|
821
|
-
maxSends: import("zod").
|
|
822
|
-
timeWindowSeconds: import("zod").
|
|
821
|
+
maxSends: import("zod").ZodNumber;
|
|
822
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
823
823
|
}, "strip", import("zod").ZodTypeAny, {
|
|
824
|
-
maxSends:
|
|
825
|
-
timeWindowSeconds:
|
|
824
|
+
maxSends: number;
|
|
825
|
+
timeWindowSeconds: number;
|
|
826
826
|
}, {
|
|
827
|
-
maxSends
|
|
828
|
-
timeWindowSeconds
|
|
827
|
+
maxSends: number;
|
|
828
|
+
timeWindowSeconds: number;
|
|
829
829
|
}>;
|
|
830
830
|
evalAllowResultSchema: import("zod").ZodObject<{
|
|
831
831
|
currentCount: import("zod").ZodNumber;
|
|
@@ -940,14 +940,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
940
940
|
to: string;
|
|
941
941
|
amount: string;
|
|
942
942
|
}>, import("zod").ZodObject<{
|
|
943
|
-
maxSends: import("zod").
|
|
944
|
-
timeWindowSeconds: import("zod").
|
|
943
|
+
maxSends: import("zod").ZodNumber;
|
|
944
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
945
945
|
}, "strip", import("zod").ZodTypeAny, {
|
|
946
|
-
maxSends:
|
|
947
|
-
timeWindowSeconds:
|
|
946
|
+
maxSends: number;
|
|
947
|
+
timeWindowSeconds: number;
|
|
948
948
|
}, {
|
|
949
|
-
maxSends
|
|
950
|
-
timeWindowSeconds
|
|
949
|
+
maxSends: number;
|
|
950
|
+
timeWindowSeconds: number;
|
|
951
951
|
}>, import("zod").ZodObject<{
|
|
952
952
|
currentCount: import("zod").ZodNumber;
|
|
953
953
|
maxSends: import("zod").ZodNumber;
|
|
@@ -992,14 +992,14 @@ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk")
|
|
|
992
992
|
to: string;
|
|
993
993
|
amount: string;
|
|
994
994
|
}>, import("zod").ZodObject<{
|
|
995
|
-
maxSends: import("zod").
|
|
996
|
-
timeWindowSeconds: import("zod").
|
|
995
|
+
maxSends: import("zod").ZodNumber;
|
|
996
|
+
timeWindowSeconds: import("zod").ZodNumber;
|
|
997
997
|
}, "strip", import("zod").ZodTypeAny, {
|
|
998
|
-
maxSends:
|
|
999
|
-
timeWindowSeconds:
|
|
998
|
+
maxSends: number;
|
|
999
|
+
timeWindowSeconds: number;
|
|
1000
1000
|
}, {
|
|
1001
|
-
maxSends
|
|
1002
|
-
timeWindowSeconds
|
|
1001
|
+
maxSends: number;
|
|
1002
|
+
timeWindowSeconds: number;
|
|
1003
1003
|
}>, import("zod").ZodObject<{
|
|
1004
1004
|
currentCount: import("zod").ZodNumber;
|
|
1005
1005
|
maxSends: import("zod").ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vincent-ability.d.ts","sourceRoot":"","sources":["../../../src/lib/vincent-ability.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vincent-ability.d.ts","sourceRoot":"","sources":["../../../src/lib/vincent-ability.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsPzB,CAAC"}
|