@1delta/margin-fetcher 0.0.93 → 0.0.95
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/abis/compound-v2/VenusLensLegacy.d.ts +109 -0
- package/dist/abis/compound-v2/VenusLensLegacy.d.ts.map +1 -0
- package/dist/ccip-3LVCRM55.js +5 -0
- package/dist/{ccip-V63HKYUC.js.map → ccip-3LVCRM55.js.map} +1 -1
- package/dist/ccip-DSCWXCSY-VX4V5RCB.js +4 -0
- package/dist/{ccip-DSCWXCSY-ZTHOXJV6.js.map → ccip-DSCWXCSY-VX4V5RCB.js.map} +1 -1
- package/dist/{chunk-O4JCFUFK.js → chunk-5AK7VEID.js} +5 -5
- package/dist/{chunk-O4JCFUFK.js.map → chunk-5AK7VEID.js.map} +1 -1
- package/dist/{chunk-5R4LXFCO.js → chunk-5KOR6CTI.js} +76 -76
- package/dist/{chunk-5R4LXFCO.js.map → chunk-5KOR6CTI.js.map} +1 -1
- package/dist/index.js +436 -29
- package/dist/index.js.map +1 -1
- package/dist/lending/addresses/compoundV2.d.ts +1 -0
- package/dist/lending/addresses/compoundV2.d.ts.map +1 -1
- package/dist/lending/compound-v2/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/compound-v2/publicCallParse.d.ts.map +1 -1
- package/dist/lending/fetchLender.d.ts.map +1 -1
- package/dist/prices/main-prices/fetchOracleData.d.ts.map +1 -1
- package/dist/utils/parsing.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ccip-DSCWXCSY-ZTHOXJV6.js +0 -4
- package/dist/ccip-V63HKYUC.js +0 -5
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const VenusLensLegacyAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "contract VToken";
|
|
4
|
+
readonly name: "vToken";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly name: "vTokenMetadata";
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly components: readonly [{
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "vToken";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}, {
|
|
14
|
+
readonly internalType: "uint256";
|
|
15
|
+
readonly name: "exchangeRateCurrent";
|
|
16
|
+
readonly type: "uint256";
|
|
17
|
+
}, {
|
|
18
|
+
readonly internalType: "uint256";
|
|
19
|
+
readonly name: "supplyRatePerBlock";
|
|
20
|
+
readonly type: "uint256";
|
|
21
|
+
}, {
|
|
22
|
+
readonly internalType: "uint256";
|
|
23
|
+
readonly name: "borrowRatePerBlock";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
}, {
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
readonly name: "reserveFactorMantissa";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}, {
|
|
30
|
+
readonly internalType: "uint256";
|
|
31
|
+
readonly name: "totalBorrows";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
}, {
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly name: "totalReserves";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}, {
|
|
38
|
+
readonly internalType: "uint256";
|
|
39
|
+
readonly name: "totalSupply";
|
|
40
|
+
readonly type: "uint256";
|
|
41
|
+
}, {
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly name: "totalCash";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}, {
|
|
46
|
+
readonly internalType: "bool";
|
|
47
|
+
readonly name: "isListed";
|
|
48
|
+
readonly type: "bool";
|
|
49
|
+
}, {
|
|
50
|
+
readonly internalType: "uint256";
|
|
51
|
+
readonly name: "collateralFactorMantissa";
|
|
52
|
+
readonly type: "uint256";
|
|
53
|
+
}, {
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
readonly name: "underlyingAssetAddress";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
}, {
|
|
58
|
+
readonly internalType: "uint256";
|
|
59
|
+
readonly name: "vTokenDecimals";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly internalType: "uint256";
|
|
63
|
+
readonly name: "underlyingDecimals";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}, {
|
|
66
|
+
readonly internalType: "uint256";
|
|
67
|
+
readonly name: "venusSupplySpeed";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}, {
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
readonly name: "venusBorrowSpeed";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly internalType: "uint256";
|
|
75
|
+
readonly name: "dailySupplyXvs";
|
|
76
|
+
readonly type: "uint256";
|
|
77
|
+
}, {
|
|
78
|
+
readonly internalType: "uint256";
|
|
79
|
+
readonly name: "dailyBorrowXvs";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}, {
|
|
82
|
+
readonly internalType: "uint256";
|
|
83
|
+
readonly name: "pausedActions";
|
|
84
|
+
readonly type: "uint256";
|
|
85
|
+
}, {
|
|
86
|
+
readonly internalType: "uint256";
|
|
87
|
+
readonly name: "liquidationThresholdMantissa";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}, {
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
readonly name: "liquidationIncentiveMantissa";
|
|
92
|
+
readonly type: "uint256";
|
|
93
|
+
}, {
|
|
94
|
+
readonly internalType: "bool";
|
|
95
|
+
readonly name: "isBorrowAllowed";
|
|
96
|
+
readonly type: "bool";
|
|
97
|
+
}, {
|
|
98
|
+
readonly internalType: "uint96";
|
|
99
|
+
readonly name: "poolId";
|
|
100
|
+
readonly type: "uint96";
|
|
101
|
+
}];
|
|
102
|
+
readonly internalType: "struct VenusLens.VTokenMetadata";
|
|
103
|
+
readonly name: "";
|
|
104
|
+
readonly type: "tuple";
|
|
105
|
+
}];
|
|
106
|
+
readonly stateMutability: "nonpayable";
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
}];
|
|
109
|
+
//# sourceMappingURL=VenusLensLegacy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VenusLensLegacy.d.ts","sourceRoot":"","sources":["../../../src/abis/compound-v2/VenusLensLegacy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyIrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-3LVCRM55.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-DSCWXCSY-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ccip-DSCWXCSY-VX4V5RCB.js"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'crypto';
|
|
2
2
|
|
|
3
|
-
// ../../node_modules/.pnpm/@1delta+dex-registry@0.0.
|
|
3
|
+
// ../../node_modules/.pnpm/@1delta+dex-registry@0.0.88/node_modules/@1delta/dex-registry/dist/chunk-KVV7WODB.mjs
|
|
4
4
|
function isBytes(a) {
|
|
5
5
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
6
6
|
}
|
|
@@ -89,7 +89,7 @@ var rotlSL = (h, l, s) => l << s | h >>> 32 - s;
|
|
|
89
89
|
var rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
|
|
90
90
|
var rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
|
|
91
91
|
|
|
92
|
-
// ../../node_modules/.pnpm/@1delta+dex-registry@0.0.
|
|
92
|
+
// ../../node_modules/.pnpm/@1delta+dex-registry@0.0.88/node_modules/@1delta/dex-registry/dist/chunk-LZE4VNTI.mjs
|
|
93
93
|
var version = "1.0.8";
|
|
94
94
|
var BaseError = class _BaseError extends Error {
|
|
95
95
|
constructor(shortMessage, args = {}) {
|
|
@@ -3590,7 +3590,7 @@ async function call(client, args) {
|
|
|
3590
3590
|
return { data: response };
|
|
3591
3591
|
} catch (err) {
|
|
3592
3592
|
const data2 = getRevertErrorData(err);
|
|
3593
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-DSCWXCSY-
|
|
3593
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-DSCWXCSY-VX4V5RCB.js');
|
|
3594
3594
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
3595
3595
|
return { data: await offchainLookup2(client, { data: data2, to }) };
|
|
3596
3596
|
if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
|
|
@@ -3970,5 +3970,5 @@ async function ccipRequest({ data, sender, urls }) {
|
|
|
3970
3970
|
*/
|
|
3971
3971
|
|
|
3972
3972
|
export { ccipRequest, offchainLookup, offchainLookupAbiItem, offchainLookupSignature };
|
|
3973
|
-
//# sourceMappingURL=chunk-
|
|
3974
|
-
//# sourceMappingURL=chunk-
|
|
3973
|
+
//# sourceMappingURL=chunk-5AK7VEID.js.map
|
|
3974
|
+
//# sourceMappingURL=chunk-5AK7VEID.js.map
|