@lit-protocol/vincent-ability-morpho 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.
- package/CONTRIBUTING.md +90 -0
- package/README.md +136 -0
- package/dist/CONTRIBUTING.md +90 -0
- package/dist/README.md +136 -0
- package/dist/package.json +34 -0
- package/dist/src/generated/lit-action.js +9 -0
- package/dist/src/generated/vincent-ability-metadata.json +3 -0
- package/dist/src/generated/vincent-bundled-ability.d.ts +98 -0
- package/dist/src/generated/vincent-bundled-ability.d.ts.map +1 -0
- package/dist/src/generated/vincent-bundled-ability.js +15 -0
- package/dist/src/generated/vincent-bundled-ability.js.map +1 -0
- package/dist/src/generated/vincent-bundled-ability.ts +13 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +8 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lib/helpers/index.d.ts +561 -0
- package/dist/src/lib/helpers/index.d.ts.map +1 -0
- package/dist/src/lib/helpers/index.js +1123 -0
- package/dist/src/lib/helpers/index.js.map +1 -0
- package/dist/src/lib/lit-action.d.ts +2 -0
- package/dist/src/lib/lit-action.d.ts.map +1 -0
- package/dist/src/lib/lit-action.js +16 -0
- package/dist/src/lib/lit-action.js.map +1 -0
- package/dist/src/lib/schemas.d.ts +125 -0
- package/dist/src/lib/schemas.d.ts.map +1 -0
- package/dist/src/lib/schemas.js +109 -0
- package/dist/src/lib/schemas.js.map +1 -0
- package/dist/src/lib/vincent-ability.d.ts +96 -0
- package/dist/src/lib/vincent-ability.d.ts.map +1 -0
- package/dist/src/lib/vincent-ability.js +378 -0
- package/dist/src/lib/vincent-ability.js.map +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DO NOT EDIT THIS FILE. IT IS GENERATED ON BUILD.
|
|
3
|
+
*/
|
|
4
|
+
export declare const bundledVincentAbility: import("@lit-protocol/vincent-ability-sdk").BundledVincentAbility<import("@lit-protocol/vincent-ability-sdk").VincentAbility<import("zod").ZodObject<{
|
|
5
|
+
operation: import("zod").ZodNativeEnum<typeof import("..").MorphoOperation>;
|
|
6
|
+
contractAddress: import("zod").ZodString;
|
|
7
|
+
marketId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
amount: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
9
|
+
onBehalfOf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
chain: import("zod").ZodString;
|
|
11
|
+
rpcUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
alchemyGasSponsor: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
13
|
+
alchemyGasSponsorApiKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
alchemyGasSponsorPolicyId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
16
|
+
operation: import("..").MorphoOperation;
|
|
17
|
+
contractAddress: string;
|
|
18
|
+
amount: string;
|
|
19
|
+
chain: string;
|
|
20
|
+
alchemyGasSponsor: boolean;
|
|
21
|
+
marketId?: string | undefined;
|
|
22
|
+
onBehalfOf?: string | undefined;
|
|
23
|
+
rpcUrl?: string | undefined;
|
|
24
|
+
alchemyGasSponsorApiKey?: string | undefined;
|
|
25
|
+
alchemyGasSponsorPolicyId?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
operation: import("..").MorphoOperation;
|
|
28
|
+
contractAddress: string;
|
|
29
|
+
amount: string;
|
|
30
|
+
chain: string;
|
|
31
|
+
marketId?: string | undefined;
|
|
32
|
+
onBehalfOf?: string | undefined;
|
|
33
|
+
rpcUrl?: string | undefined;
|
|
34
|
+
alchemyGasSponsor?: boolean | undefined;
|
|
35
|
+
alchemyGasSponsorApiKey?: string | undefined;
|
|
36
|
+
alchemyGasSponsorPolicyId?: string | undefined;
|
|
37
|
+
}>, string, import("node_modules/@lit-protocol/vincent-ability-sdk/dist/src/lib/abilityCore/helpers").AbilityPolicyMap<readonly [], never>, {}, import("zod").ZodObject<{
|
|
38
|
+
txHash: import("zod").ZodString;
|
|
39
|
+
operation: import("zod").ZodNativeEnum<typeof import("..").MorphoOperation>;
|
|
40
|
+
contractAddress: import("zod").ZodString;
|
|
41
|
+
marketId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
+
amount: import("zod").ZodString;
|
|
43
|
+
timestamp: import("zod").ZodNumber;
|
|
44
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
45
|
+
operation: import("..").MorphoOperation;
|
|
46
|
+
contractAddress: string;
|
|
47
|
+
amount: string;
|
|
48
|
+
txHash: string;
|
|
49
|
+
timestamp: number;
|
|
50
|
+
marketId?: string | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
operation: import("..").MorphoOperation;
|
|
53
|
+
contractAddress: string;
|
|
54
|
+
amount: string;
|
|
55
|
+
txHash: string;
|
|
56
|
+
timestamp: number;
|
|
57
|
+
marketId?: string | undefined;
|
|
58
|
+
}>, import("zod").ZodObject<{
|
|
59
|
+
error: import("zod").ZodString;
|
|
60
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
61
|
+
error: string;
|
|
62
|
+
}, {
|
|
63
|
+
error: string;
|
|
64
|
+
}>, import("zod").ZodObject<{
|
|
65
|
+
operationValid: import("zod").ZodBoolean;
|
|
66
|
+
contractValid: import("zod").ZodBoolean;
|
|
67
|
+
amountValid: import("zod").ZodBoolean;
|
|
68
|
+
userBalance: import("zod").ZodOptional<import("zod").ZodString>;
|
|
69
|
+
allowance: import("zod").ZodOptional<import("zod").ZodString>;
|
|
70
|
+
vaultShares: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
|
+
collateralBalance: import("zod").ZodOptional<import("zod").ZodString>;
|
|
72
|
+
estimatedGas: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
73
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
74
|
+
operationValid: boolean;
|
|
75
|
+
contractValid: boolean;
|
|
76
|
+
amountValid: boolean;
|
|
77
|
+
userBalance?: string | undefined;
|
|
78
|
+
allowance?: string | undefined;
|
|
79
|
+
vaultShares?: string | undefined;
|
|
80
|
+
collateralBalance?: string | undefined;
|
|
81
|
+
estimatedGas?: number | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
operationValid: boolean;
|
|
84
|
+
contractValid: boolean;
|
|
85
|
+
amountValid: boolean;
|
|
86
|
+
userBalance?: string | undefined;
|
|
87
|
+
allowance?: string | undefined;
|
|
88
|
+
vaultShares?: string | undefined;
|
|
89
|
+
collateralBalance?: string | undefined;
|
|
90
|
+
estimatedGas?: number | undefined;
|
|
91
|
+
}>, import("zod").ZodObject<{
|
|
92
|
+
error: import("zod").ZodString;
|
|
93
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
94
|
+
error: string;
|
|
95
|
+
}, {
|
|
96
|
+
error: string;
|
|
97
|
+
}>>, string>;
|
|
98
|
+
//# sourceMappingURL=vincent-bundled-ability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vincent-bundled-ability.d.ts","sourceRoot":"","sources":["../../../src/generated/vincent-bundled-ability.ts"],"names":[],"mappings":"AAAA;;GAEG;AAUH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA4D,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DO NOT EDIT THIS FILE. IT IS GENERATED ON BUILD.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.bundledVincentAbility = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
const vincent_ability_sdk_1 = require("@lit-protocol/vincent-ability-sdk");
|
|
9
|
+
const vincent_ability_1 = require("../lib/vincent-ability");
|
|
10
|
+
const vincent_ability_metadata_json_1 = tslib_1.__importDefault(require("./vincent-ability-metadata.json"));
|
|
11
|
+
if (!vincent_ability_metadata_json_1.default.ipfsCid) {
|
|
12
|
+
throw new Error('ipfsCid is not defined in metadata JSON file');
|
|
13
|
+
}
|
|
14
|
+
exports.bundledVincentAbility = (0, vincent_ability_sdk_1.asBundledVincentAbility)(vincent_ability_1.vincentAbility, vincent_ability_metadata_json_1.default.ipfsCid);
|
|
15
|
+
//# sourceMappingURL=vincent-bundled-ability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vincent-bundled-ability.js","sourceRoot":"","sources":["../../../src/generated/vincent-bundled-ability.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,2EAA4E;AAC5E,4DAAwD;AACxD,4GAAuD;AAEvD,IAAG,CAAC,uCAAQ,CAAC,OAAO,EAAE,CAAC;IACrB,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;AAClE,CAAC;AAEY,QAAA,qBAAqB,GAAG,IAAA,6CAAuB,EAAC,gCAAc,EAAE,uCAAQ,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DO NOT EDIT THIS FILE. IT IS GENERATED ON BUILD.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { asBundledVincentAbility } from '@lit-protocol/vincent-ability-sdk';
|
|
6
|
+
import { vincentAbility } from '../lib/vincent-ability';
|
|
7
|
+
import metadata from './vincent-ability-metadata.json';
|
|
8
|
+
|
|
9
|
+
if(!metadata.ipfsCid) {
|
|
10
|
+
throw new Error('ipfsCid is not defined in metadata JSON file');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const bundledVincentAbility = asBundledVincentAbility(vincentAbility, metadata.ipfsCid);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MorphoOperation = exports.bundledVincentAbility = void 0;
|
|
4
|
+
var vincent_bundled_ability_1 = require("./generated/vincent-bundled-ability");
|
|
5
|
+
Object.defineProperty(exports, "bundledVincentAbility", { enumerable: true, get: function () { return vincent_bundled_ability_1.bundledVincentAbility; } });
|
|
6
|
+
var schemas_1 = require("./lib/schemas");
|
|
7
|
+
Object.defineProperty(exports, "MorphoOperation", { enumerable: true, get: function () { return schemas_1.MorphoOperation; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,+EAA4E;AAAnE,gIAAA,qBAAqB,OAAA;AAC9B,yCAAgD;AAAvC,0GAAA,eAAe,OAAA"}
|