@lit-protocol/vincent-ability-aave 0.0.7-mma

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.
Files changed (33) hide show
  1. package/CONTRIBUTING.md +90 -0
  2. package/README.md +113 -0
  3. package/dist/CONTRIBUTING.md +90 -0
  4. package/dist/README.md +113 -0
  5. package/dist/package.json +31 -0
  6. package/dist/src/generated/lit-action.js +9 -0
  7. package/dist/src/generated/vincent-ability-metadata.json +3 -0
  8. package/dist/src/generated/vincent-bundled-ability.d.ts +92 -0
  9. package/dist/src/generated/vincent-bundled-ability.d.ts.map +1 -0
  10. package/dist/src/generated/vincent-bundled-ability.js +15 -0
  11. package/dist/src/generated/vincent-bundled-ability.js.map +1 -0
  12. package/dist/src/generated/vincent-bundled-ability.ts +13 -0
  13. package/dist/src/index.d.ts +2 -0
  14. package/dist/src/index.d.ts.map +1 -0
  15. package/dist/src/index.js +6 -0
  16. package/dist/src/index.js.map +1 -0
  17. package/dist/src/lib/helpers/index.d.ts +71 -0
  18. package/dist/src/lib/helpers/index.d.ts.map +1 -0
  19. package/dist/src/lib/helpers/index.js +345 -0
  20. package/dist/src/lib/helpers/index.js.map +1 -0
  21. package/dist/src/lib/lit-action.d.ts +2 -0
  22. package/dist/src/lib/lit-action.d.ts.map +1 -0
  23. package/dist/src/lib/lit-action.js +15 -0
  24. package/dist/src/lib/lit-action.js.map +1 -0
  25. package/dist/src/lib/schemas.d.ts +118 -0
  26. package/dist/src/lib/schemas.d.ts.map +1 -0
  27. package/dist/src/lib/schemas.js +115 -0
  28. package/dist/src/lib/schemas.js.map +1 -0
  29. package/dist/src/lib/vincent-ability.d.ts +90 -0
  30. package/dist/src/lib/vincent-ability.d.ts.map +1 -0
  31. package/dist/src/lib/vincent-ability.js +352 -0
  32. package/dist/src/lib/vincent-ability.js.map +1 -0
  33. package/package.json +30 -0
@@ -0,0 +1,118 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * AAVE operation types
4
+ */
5
+ export declare enum AaveOperation {
6
+ SUPPLY = "supply",
7
+ WITHDRAW = "withdraw",
8
+ BORROW = "borrow",
9
+ REPAY = "repay"
10
+ }
11
+ /**
12
+ * Ability parameters schema - defines the input parameters for the AAVE ability
13
+ */
14
+ export declare const abilityParamsSchema: z.ZodObject<{
15
+ operation: z.ZodNativeEnum<typeof AaveOperation>;
16
+ asset: z.ZodString;
17
+ amount: z.ZodEffects<z.ZodString, string, string>;
18
+ interestRateMode: z.ZodOptional<z.ZodNumber>;
19
+ onBehalfOf: z.ZodOptional<z.ZodString>;
20
+ chain: z.ZodEffects<z.ZodString, string, string>;
21
+ rpcUrl: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ asset: string;
24
+ amount: string;
25
+ operation: AaveOperation;
26
+ chain: string;
27
+ onBehalfOf?: string | undefined;
28
+ interestRateMode?: number | undefined;
29
+ rpcUrl?: string | undefined;
30
+ }, {
31
+ asset: string;
32
+ amount: string;
33
+ operation: AaveOperation;
34
+ chain: string;
35
+ onBehalfOf?: string | undefined;
36
+ interestRateMode?: number | undefined;
37
+ rpcUrl?: string | undefined;
38
+ }>;
39
+ /**
40
+ * Precheck success result schema
41
+ */
42
+ export declare const precheckSuccessSchema: z.ZodObject<{
43
+ operationValid: z.ZodBoolean;
44
+ assetValid: z.ZodBoolean;
45
+ amountValid: z.ZodBoolean;
46
+ userBalance: z.ZodOptional<z.ZodString>;
47
+ allowance: z.ZodOptional<z.ZodString>;
48
+ borrowCapacity: z.ZodOptional<z.ZodString>;
49
+ estimatedGas: z.ZodOptional<z.ZodNumber>;
50
+ availableMarkets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51
+ supportedChains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ operationValid: boolean;
54
+ assetValid: boolean;
55
+ amountValid: boolean;
56
+ allowance?: string | undefined;
57
+ userBalance?: string | undefined;
58
+ borrowCapacity?: string | undefined;
59
+ estimatedGas?: number | undefined;
60
+ availableMarkets?: Record<string, string> | undefined;
61
+ supportedChains?: string[] | undefined;
62
+ }, {
63
+ operationValid: boolean;
64
+ assetValid: boolean;
65
+ amountValid: boolean;
66
+ allowance?: string | undefined;
67
+ userBalance?: string | undefined;
68
+ borrowCapacity?: string | undefined;
69
+ estimatedGas?: number | undefined;
70
+ availableMarkets?: Record<string, string> | undefined;
71
+ supportedChains?: string[] | undefined;
72
+ }>;
73
+ /**
74
+ * Precheck failure result schema
75
+ */
76
+ export declare const precheckFailSchema: z.ZodObject<{
77
+ error: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ error: string;
80
+ }, {
81
+ error: string;
82
+ }>;
83
+ /**
84
+ * Execute success result schema
85
+ */
86
+ export declare const executeSuccessSchema: z.ZodObject<{
87
+ txHash: z.ZodString;
88
+ operation: z.ZodNativeEnum<typeof AaveOperation>;
89
+ asset: z.ZodString;
90
+ amount: z.ZodString;
91
+ timestamp: z.ZodNumber;
92
+ interestRateMode: z.ZodOptional<z.ZodNumber>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ asset: string;
95
+ amount: string;
96
+ operation: AaveOperation;
97
+ txHash: string;
98
+ timestamp: number;
99
+ interestRateMode?: number | undefined;
100
+ }, {
101
+ asset: string;
102
+ amount: string;
103
+ operation: AaveOperation;
104
+ txHash: string;
105
+ timestamp: number;
106
+ interestRateMode?: number | undefined;
107
+ }>;
108
+ /**
109
+ * Execute failure result schema
110
+ */
111
+ export declare const executeFailSchema: z.ZodObject<{
112
+ error: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ error: string;
115
+ }, {
116
+ error: string;
117
+ }>;
118
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/lib/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AA6BD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;EAiC9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAU/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.executeFailSchema = exports.executeSuccessSchema = exports.precheckFailSchema = exports.precheckSuccessSchema = exports.abilityParamsSchema = exports.AaveOperation = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * AAVE operation types
7
+ */
8
+ var AaveOperation;
9
+ (function (AaveOperation) {
10
+ AaveOperation["SUPPLY"] = "supply";
11
+ AaveOperation["WITHDRAW"] = "withdraw";
12
+ AaveOperation["BORROW"] = "borrow";
13
+ AaveOperation["REPAY"] = "repay";
14
+ })(AaveOperation || (exports.AaveOperation = AaveOperation = {}));
15
+ /**
16
+ * Supported chains for validation
17
+ */
18
+ const SUPPORTED_CHAINS = [
19
+ // Mainnets
20
+ 'ethereum',
21
+ 'polygon',
22
+ 'avalanche',
23
+ 'arbitrum',
24
+ 'optimism',
25
+ 'base',
26
+ 'fantom',
27
+ 'bnb',
28
+ 'gnosis',
29
+ 'scroll',
30
+ 'metis',
31
+ 'linea',
32
+ 'zksync',
33
+ // Testnets
34
+ 'sepolia',
35
+ 'basesepolia',
36
+ 'arbitrumsepolia',
37
+ 'optimismsepolia',
38
+ 'avalanchefuji',
39
+ 'scrollsepolia',
40
+ ];
41
+ /**
42
+ * Ability parameters schema - defines the input parameters for the AAVE ability
43
+ */
44
+ exports.abilityParamsSchema = zod_1.z.object({
45
+ operation: zod_1.z
46
+ .nativeEnum(AaveOperation)
47
+ .describe('The AAVE operation to perform (supply, withdraw, borrow, repay)'),
48
+ asset: zod_1.z
49
+ .string()
50
+ .regex(/^0x[a-fA-F0-9]{40}$/, 'Invalid token address')
51
+ .describe('The token contract address for the operation'),
52
+ amount: zod_1.z
53
+ .string()
54
+ .regex(/^\d*\.?\d+$/, 'Invalid amount format')
55
+ .refine((val) => parseFloat(val) > 0, 'Amount must be greater than 0')
56
+ .describe('The amount of tokens to use in the operation, as a string'),
57
+ interestRateMode: zod_1.z
58
+ .number()
59
+ .int()
60
+ .min(1)
61
+ .max(2)
62
+ .optional()
63
+ .describe('Interest rate mode: 1 for Stable, 2 for Variable (only for borrow operations)'),
64
+ onBehalfOf: zod_1.z
65
+ .string()
66
+ .regex(/^0x[a-fA-F0-9]{40}$/, 'Invalid address')
67
+ .optional()
68
+ .describe('The address that will receive the aTokens (optional)'),
69
+ chain: zod_1.z
70
+ .string()
71
+ .refine((val) => SUPPORTED_CHAINS.includes(val.toLowerCase()), `Chain must be one of: ${SUPPORTED_CHAINS.join(', ')}`)
72
+ .describe('The blockchain network to perform the operation on'),
73
+ rpcUrl: zod_1.z.string().optional().describe('Custom RPC URL (optional, uses default if not provided)'),
74
+ });
75
+ /**
76
+ * Precheck success result schema
77
+ */
78
+ exports.precheckSuccessSchema = zod_1.z.object({
79
+ operationValid: zod_1.z.boolean().describe('Whether the requested operation is valid'),
80
+ assetValid: zod_1.z.boolean().describe('Whether the specified asset is valid for the operation'),
81
+ amountValid: zod_1.z.boolean().describe('Whether the specified amount is valid'),
82
+ userBalance: zod_1.z.string().optional().describe("The user's current balance of the specified asset"),
83
+ allowance: zod_1.z.string().optional().describe('The current allowance approved for the AAVE contract'),
84
+ borrowCapacity: zod_1.z.string().optional().describe("The user's current borrow capacity in USD"),
85
+ estimatedGas: zod_1.z.number().optional().describe('Estimated gas cost for the operation'),
86
+ availableMarkets: zod_1.z.record(zod_1.z.string()).optional().describe('Available markets and their status'),
87
+ supportedChains: zod_1.z.array(zod_1.z.string()).optional().describe('List of supported blockchain networks'),
88
+ });
89
+ /**
90
+ * Precheck failure result schema
91
+ */
92
+ exports.precheckFailSchema = zod_1.z.object({
93
+ error: zod_1.z.string().describe('A string containing the error message if the precheck failed.'),
94
+ });
95
+ /**
96
+ * Execute success result schema
97
+ */
98
+ exports.executeSuccessSchema = zod_1.z.object({
99
+ txHash: zod_1.z.string().describe('The transaction hash of the executed operation'),
100
+ operation: zod_1.z.nativeEnum(AaveOperation).describe('The type of AAVE operation that was executed'),
101
+ asset: zod_1.z.string().describe('The token address involved in the operation'),
102
+ amount: zod_1.z.string().describe('The amount of tokens involved in the operation'),
103
+ timestamp: zod_1.z.number().describe('The Unix timestamp when the operation was executed'),
104
+ interestRateMode: zod_1.z
105
+ .number()
106
+ .optional()
107
+ .describe('The interest rate mode used (1 for Stable, 2 for Variable)'),
108
+ });
109
+ /**
110
+ * Execute failure result schema
111
+ */
112
+ exports.executeFailSchema = zod_1.z.object({
113
+ error: zod_1.z.string().describe('A string containing the error message if the execution failed.'),
114
+ });
115
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACH,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;AACjB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED;;GAEG;AACH,MAAM,gBAAgB,GAAG;IACvB,WAAW;IACX,UAAU;IACV,SAAS;IACT,WAAW;IACX,UAAU;IACV,UAAU;IACV,MAAM;IACN,QAAQ;IACR,KAAK;IACL,QAAQ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,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;IAC7E,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IAC/F,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;IACzE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;IAC7E,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;IACpF,gBAAgB,EAAE,OAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4DAA4D,CAAC;CAC1E,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gEAAgE,CAAC;CAC7F,CAAC,CAAC"}
@@ -0,0 +1,90 @@
1
+ import { AaveOperation } from './schemas';
2
+ export declare const vincentAbility: import("@lit-protocol/vincent-ability-sdk").VincentAbility<import("zod").ZodObject<{
3
+ operation: import("zod").ZodNativeEnum<typeof AaveOperation>;
4
+ asset: import("zod").ZodString;
5
+ amount: import("zod").ZodEffects<import("zod").ZodString, string, string>;
6
+ interestRateMode: import("zod").ZodOptional<import("zod").ZodNumber>;
7
+ onBehalfOf: import("zod").ZodOptional<import("zod").ZodString>;
8
+ chain: import("zod").ZodEffects<import("zod").ZodString, string, string>;
9
+ rpcUrl: import("zod").ZodOptional<import("zod").ZodString>;
10
+ }, "strip", import("zod").ZodTypeAny, {
11
+ asset: string;
12
+ amount: string;
13
+ operation: AaveOperation;
14
+ chain: string;
15
+ onBehalfOf?: string | undefined;
16
+ interestRateMode?: number | undefined;
17
+ rpcUrl?: string | undefined;
18
+ }, {
19
+ asset: string;
20
+ amount: string;
21
+ operation: AaveOperation;
22
+ chain: string;
23
+ onBehalfOf?: string | undefined;
24
+ interestRateMode?: number | undefined;
25
+ rpcUrl?: string | undefined;
26
+ }>, string, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/abilityCore/helpers").AbilityPolicyMap<readonly [], never>, {}, import("zod").ZodObject<{
27
+ txHash: import("zod").ZodString;
28
+ operation: import("zod").ZodNativeEnum<typeof AaveOperation>;
29
+ asset: import("zod").ZodString;
30
+ amount: import("zod").ZodString;
31
+ timestamp: import("zod").ZodNumber;
32
+ interestRateMode: import("zod").ZodOptional<import("zod").ZodNumber>;
33
+ }, "strip", import("zod").ZodTypeAny, {
34
+ asset: string;
35
+ amount: string;
36
+ operation: AaveOperation;
37
+ txHash: string;
38
+ timestamp: number;
39
+ interestRateMode?: number | undefined;
40
+ }, {
41
+ asset: string;
42
+ amount: string;
43
+ operation: AaveOperation;
44
+ txHash: string;
45
+ timestamp: number;
46
+ interestRateMode?: number | undefined;
47
+ }>, import("zod").ZodObject<{
48
+ error: import("zod").ZodString;
49
+ }, "strip", import("zod").ZodTypeAny, {
50
+ error: string;
51
+ }, {
52
+ error: string;
53
+ }>, import("zod").ZodObject<{
54
+ operationValid: import("zod").ZodBoolean;
55
+ assetValid: import("zod").ZodBoolean;
56
+ amountValid: import("zod").ZodBoolean;
57
+ userBalance: import("zod").ZodOptional<import("zod").ZodString>;
58
+ allowance: import("zod").ZodOptional<import("zod").ZodString>;
59
+ borrowCapacity: import("zod").ZodOptional<import("zod").ZodString>;
60
+ estimatedGas: import("zod").ZodOptional<import("zod").ZodNumber>;
61
+ availableMarkets: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
62
+ supportedChains: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
63
+ }, "strip", import("zod").ZodTypeAny, {
64
+ operationValid: boolean;
65
+ assetValid: boolean;
66
+ amountValid: boolean;
67
+ allowance?: string | undefined;
68
+ userBalance?: string | undefined;
69
+ borrowCapacity?: string | undefined;
70
+ estimatedGas?: number | undefined;
71
+ availableMarkets?: Record<string, string> | undefined;
72
+ supportedChains?: string[] | undefined;
73
+ }, {
74
+ operationValid: boolean;
75
+ assetValid: boolean;
76
+ amountValid: boolean;
77
+ allowance?: string | undefined;
78
+ userBalance?: string | undefined;
79
+ borrowCapacity?: string | undefined;
80
+ estimatedGas?: number | undefined;
81
+ availableMarkets?: Record<string, string> | undefined;
82
+ supportedChains?: string[] | undefined;
83
+ }>, import("zod").ZodObject<{
84
+ error: import("zod").ZodString;
85
+ }, "strip", import("zod").ZodTypeAny, {
86
+ error: string;
87
+ }, {
88
+ error: string;
89
+ }>>;
90
+ //# sourceMappingURL=vincent-ability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vincent-ability.d.ts","sourceRoot":"","sources":["../../../src/lib/vincent-ability.ts"],"names":[],"mappings":"AAkBA,OAAO,EAML,aAAa,EACd,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4XzB,CAAC"}