@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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "ipfsCid": "Qmbh1Hx84bigGniZqSX5vM6B6gPtMHZtLUi5xB8AivhpB2"
2
+ "ipfsCid": "Qmb3X4zktQbQgPT5eeTeNp8J2957Z1ts4byK9NmiLTTeJG"
3
3
  }
@@ -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").ZodDefault<import("zod").ZodBigInt>;
43
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
42
+ maxSends: import("zod").ZodNumber;
43
+ timeWindowSeconds: import("zod").ZodNumber;
44
44
  }, "strip", import("zod").ZodTypeAny, {
45
- maxSends: bigint;
46
- timeWindowSeconds: bigint;
45
+ maxSends: number;
46
+ timeWindowSeconds: number;
47
47
  }, {
48
- maxSends?: bigint | undefined;
49
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
157
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
156
+ maxSends: import("zod").ZodNumber;
157
+ timeWindowSeconds: import("zod").ZodNumber;
158
158
  }, "strip", import("zod").ZodTypeAny, {
159
- maxSends: bigint;
160
- timeWindowSeconds: bigint;
159
+ maxSends: number;
160
+ timeWindowSeconds: number;
161
161
  }, {
162
- maxSends?: bigint | undefined;
163
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
208
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
207
+ maxSends: import("zod").ZodNumber;
208
+ timeWindowSeconds: import("zod").ZodNumber;
209
209
  }, "strip", import("zod").ZodTypeAny, {
210
- maxSends: bigint;
211
- timeWindowSeconds: bigint;
210
+ maxSends: number;
211
+ timeWindowSeconds: number;
212
212
  }, {
213
- maxSends?: bigint | undefined;
214
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
304
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
303
+ maxSends: import("zod").ZodNumber;
304
+ timeWindowSeconds: import("zod").ZodNumber;
305
305
  }, "strip", import("zod").ZodTypeAny, {
306
- maxSends: bigint;
307
- timeWindowSeconds: bigint;
306
+ maxSends: number;
307
+ timeWindowSeconds: number;
308
308
  }, {
309
- maxSends?: bigint | undefined;
310
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
426
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
425
+ maxSends: import("zod").ZodNumber;
426
+ timeWindowSeconds: import("zod").ZodNumber;
427
427
  }, "strip", import("zod").ZodTypeAny, {
428
- maxSends: bigint;
429
- timeWindowSeconds: bigint;
428
+ maxSends: number;
429
+ timeWindowSeconds: number;
430
430
  }, {
431
- maxSends?: bigint | undefined;
432
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
478
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
477
+ maxSends: import("zod").ZodNumber;
478
+ timeWindowSeconds: import("zod").ZodNumber;
479
479
  }, "strip", import("zod").ZodTypeAny, {
480
- maxSends: bigint;
481
- timeWindowSeconds: bigint;
480
+ maxSends: number;
481
+ timeWindowSeconds: number;
482
482
  }, {
483
- maxSends?: bigint | undefined;
484
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
564
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
563
+ maxSends: import("zod").ZodNumber;
564
+ timeWindowSeconds: import("zod").ZodNumber;
565
565
  }, "strip", import("zod").ZodTypeAny, {
566
- maxSends: bigint;
567
- timeWindowSeconds: bigint;
566
+ maxSends: number;
567
+ timeWindowSeconds: number;
568
568
  }, {
569
- maxSends?: bigint | undefined;
570
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
678
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
677
+ maxSends: import("zod").ZodNumber;
678
+ timeWindowSeconds: import("zod").ZodNumber;
679
679
  }, "strip", import("zod").ZodTypeAny, {
680
- maxSends: bigint;
681
- timeWindowSeconds: bigint;
680
+ maxSends: number;
681
+ timeWindowSeconds: number;
682
682
  }, {
683
- maxSends?: bigint | undefined;
684
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
729
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
728
+ maxSends: import("zod").ZodNumber;
729
+ timeWindowSeconds: import("zod").ZodNumber;
730
730
  }, "strip", import("zod").ZodTypeAny, {
731
- maxSends: bigint;
732
- timeWindowSeconds: bigint;
731
+ maxSends: number;
732
+ timeWindowSeconds: number;
733
733
  }, {
734
- maxSends?: bigint | undefined;
735
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
825
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
824
+ maxSends: import("zod").ZodNumber;
825
+ timeWindowSeconds: import("zod").ZodNumber;
826
826
  }, "strip", import("zod").ZodTypeAny, {
827
- maxSends: bigint;
828
- timeWindowSeconds: bigint;
827
+ maxSends: number;
828
+ timeWindowSeconds: number;
829
829
  }, {
830
- maxSends?: bigint | undefined;
831
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
947
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
946
+ maxSends: import("zod").ZodNumber;
947
+ timeWindowSeconds: import("zod").ZodNumber;
948
948
  }, "strip", import("zod").ZodTypeAny, {
949
- maxSends: bigint;
950
- timeWindowSeconds: bigint;
949
+ maxSends: number;
950
+ timeWindowSeconds: number;
951
951
  }, {
952
- maxSends?: bigint | undefined;
953
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
999
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
998
+ maxSends: import("zod").ZodNumber;
999
+ timeWindowSeconds: import("zod").ZodNumber;
1000
1000
  }, "strip", import("zod").ZodTypeAny, {
1001
- maxSends: bigint;
1002
- timeWindowSeconds: bigint;
1001
+ maxSends: number;
1002
+ timeWindowSeconds: number;
1003
1003
  }, {
1004
- maxSends?: bigint | undefined;
1005
- timeWindowSeconds?: bigint | undefined;
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;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAK,GAAG,MAAM,CAKtE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAKrD"}
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;AAQD,4CAKC;AAOD,wCAEC;AAOD,sCAKC;AA/GD,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,EAA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K,CAAC;IACxD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9C,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC;AACtC,CAAC"}
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").ZodDefault<import("zod").ZodBigInt>;
40
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
39
+ maxSends: import("zod").ZodNumber;
40
+ timeWindowSeconds: import("zod").ZodNumber;
41
41
  }, "strip", import("zod").ZodTypeAny, {
42
- maxSends: bigint;
43
- timeWindowSeconds: bigint;
42
+ maxSends: number;
43
+ timeWindowSeconds: number;
44
44
  }, {
45
- maxSends?: bigint | undefined;
46
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
154
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
153
+ maxSends: import("zod").ZodNumber;
154
+ timeWindowSeconds: import("zod").ZodNumber;
155
155
  }, "strip", import("zod").ZodTypeAny, {
156
- maxSends: bigint;
157
- timeWindowSeconds: bigint;
156
+ maxSends: number;
157
+ timeWindowSeconds: number;
158
158
  }, {
159
- maxSends?: bigint | undefined;
160
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
205
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
204
+ maxSends: import("zod").ZodNumber;
205
+ timeWindowSeconds: import("zod").ZodNumber;
206
206
  }, "strip", import("zod").ZodTypeAny, {
207
- maxSends: bigint;
208
- timeWindowSeconds: bigint;
207
+ maxSends: number;
208
+ timeWindowSeconds: number;
209
209
  }, {
210
- maxSends?: bigint | undefined;
211
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
301
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
300
+ maxSends: import("zod").ZodNumber;
301
+ timeWindowSeconds: import("zod").ZodNumber;
302
302
  }, "strip", import("zod").ZodTypeAny, {
303
- maxSends: bigint;
304
- timeWindowSeconds: bigint;
303
+ maxSends: number;
304
+ timeWindowSeconds: number;
305
305
  }, {
306
- maxSends?: bigint | undefined;
307
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
423
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
422
+ maxSends: import("zod").ZodNumber;
423
+ timeWindowSeconds: import("zod").ZodNumber;
424
424
  }, "strip", import("zod").ZodTypeAny, {
425
- maxSends: bigint;
426
- timeWindowSeconds: bigint;
425
+ maxSends: number;
426
+ timeWindowSeconds: number;
427
427
  }, {
428
- maxSends?: bigint | undefined;
429
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
475
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
474
+ maxSends: import("zod").ZodNumber;
475
+ timeWindowSeconds: import("zod").ZodNumber;
476
476
  }, "strip", import("zod").ZodTypeAny, {
477
- maxSends: bigint;
478
- timeWindowSeconds: bigint;
477
+ maxSends: number;
478
+ timeWindowSeconds: number;
479
479
  }, {
480
- maxSends?: bigint | undefined;
481
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
561
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
560
+ maxSends: import("zod").ZodNumber;
561
+ timeWindowSeconds: import("zod").ZodNumber;
562
562
  }, "strip", import("zod").ZodTypeAny, {
563
- maxSends: bigint;
564
- timeWindowSeconds: bigint;
563
+ maxSends: number;
564
+ timeWindowSeconds: number;
565
565
  }, {
566
- maxSends?: bigint | undefined;
567
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
675
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
674
+ maxSends: import("zod").ZodNumber;
675
+ timeWindowSeconds: import("zod").ZodNumber;
676
676
  }, "strip", import("zod").ZodTypeAny, {
677
- maxSends: bigint;
678
- timeWindowSeconds: bigint;
677
+ maxSends: number;
678
+ timeWindowSeconds: number;
679
679
  }, {
680
- maxSends?: bigint | undefined;
681
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
726
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
725
+ maxSends: import("zod").ZodNumber;
726
+ timeWindowSeconds: import("zod").ZodNumber;
727
727
  }, "strip", import("zod").ZodTypeAny, {
728
- maxSends: bigint;
729
- timeWindowSeconds: bigint;
728
+ maxSends: number;
729
+ timeWindowSeconds: number;
730
730
  }, {
731
- maxSends?: bigint | undefined;
732
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
822
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
821
+ maxSends: import("zod").ZodNumber;
822
+ timeWindowSeconds: import("zod").ZodNumber;
823
823
  }, "strip", import("zod").ZodTypeAny, {
824
- maxSends: bigint;
825
- timeWindowSeconds: bigint;
824
+ maxSends: number;
825
+ timeWindowSeconds: number;
826
826
  }, {
827
- maxSends?: bigint | undefined;
828
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
944
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
943
+ maxSends: import("zod").ZodNumber;
944
+ timeWindowSeconds: import("zod").ZodNumber;
945
945
  }, "strip", import("zod").ZodTypeAny, {
946
- maxSends: bigint;
947
- timeWindowSeconds: bigint;
946
+ maxSends: number;
947
+ timeWindowSeconds: number;
948
948
  }, {
949
- maxSends?: bigint | undefined;
950
- timeWindowSeconds?: bigint | undefined;
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").ZodDefault<import("zod").ZodBigInt>;
996
- timeWindowSeconds: import("zod").ZodDefault<import("zod").ZodBigInt>;
995
+ maxSends: import("zod").ZodNumber;
996
+ timeWindowSeconds: import("zod").ZodNumber;
997
997
  }, "strip", import("zod").ZodTypeAny, {
998
- maxSends: bigint;
999
- timeWindowSeconds: bigint;
998
+ maxSends: number;
999
+ timeWindowSeconds: number;
1000
1000
  }, {
1001
- maxSends?: bigint | undefined;
1002
- timeWindowSeconds?: bigint | undefined;
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":"AAkCA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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