@1delta/abis 0.0.11 → 0.0.13

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.
@@ -0,0 +1,91 @@
1
+ export declare const FluidLendingResolverAbi: readonly [{
2
+ readonly inputs: readonly [];
3
+ readonly name: "getFTokensEntireData";
4
+ readonly outputs: readonly [{
5
+ readonly components: readonly [{
6
+ readonly name: "tokenAddress";
7
+ readonly type: "address";
8
+ }, {
9
+ readonly name: "eip2612Deposits";
10
+ readonly type: "bool";
11
+ }, {
12
+ readonly name: "isNativeUnderlying";
13
+ readonly type: "bool";
14
+ }, {
15
+ readonly name: "name";
16
+ readonly type: "string";
17
+ }, {
18
+ readonly name: "symbol";
19
+ readonly type: "string";
20
+ }, {
21
+ readonly name: "decimals";
22
+ readonly type: "uint256";
23
+ }, {
24
+ readonly name: "asset";
25
+ readonly type: "address";
26
+ }, {
27
+ readonly name: "totalAssets";
28
+ readonly type: "uint256";
29
+ }, {
30
+ readonly name: "totalSupply";
31
+ readonly type: "uint256";
32
+ }, {
33
+ readonly name: "convertToShares";
34
+ readonly type: "uint256";
35
+ }, {
36
+ readonly name: "convertToAssets";
37
+ readonly type: "uint256";
38
+ }, {
39
+ readonly name: "rewardsRate";
40
+ readonly type: "uint256";
41
+ }, {
42
+ readonly name: "supplyRate";
43
+ readonly type: "uint256";
44
+ }, {
45
+ readonly name: "rebalanceDifference";
46
+ readonly type: "int256";
47
+ }, {
48
+ readonly components: readonly [{
49
+ readonly name: "modeWithInterest";
50
+ readonly type: "bool";
51
+ }, {
52
+ readonly name: "supply";
53
+ readonly type: "uint256";
54
+ }, {
55
+ readonly name: "withdrawalLimit";
56
+ readonly type: "uint256";
57
+ }, {
58
+ readonly name: "lastUpdateTimestamp";
59
+ readonly type: "uint256";
60
+ }, {
61
+ readonly name: "expandPercent";
62
+ readonly type: "uint256";
63
+ }, {
64
+ readonly name: "expandDuration";
65
+ readonly type: "uint256";
66
+ }, {
67
+ readonly name: "baseWithdrawalLimit";
68
+ readonly type: "uint256";
69
+ }, {
70
+ readonly name: "withdrawableUntilLimit";
71
+ readonly type: "uint256";
72
+ }, {
73
+ readonly name: "withdrawable";
74
+ readonly type: "uint256";
75
+ }, {
76
+ readonly name: "decayEndTimestamp";
77
+ readonly type: "uint256";
78
+ }, {
79
+ readonly name: "decayAmount";
80
+ readonly type: "uint256";
81
+ }];
82
+ readonly name: "liquidityUserSupplyData";
83
+ readonly type: "tuple";
84
+ }];
85
+ readonly name: "";
86
+ readonly type: "tuple[]";
87
+ }];
88
+ readonly stateMutability: "view";
89
+ readonly type: "function";
90
+ }];
91
+ //# sourceMappingURL=lendingResolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lendingResolver.d.ts","sourceRoot":"","sources":["../../src/fluid/lendingResolver.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8C1B,CAAA"}
@@ -0,0 +1,55 @@
1
+ // Fluid LendingResolver ABI (deployed at 0x48D32f49aFeAEC7AE66ad7B9264f446fc11a1569
2
+ // on every supported chain — same bytecode).
3
+ //
4
+ // Only the function actually consumed by the fetcher is kept:
5
+ // - getFTokensEntireData() → FTokenDetails[]
6
+ //
7
+ // Struct fields match the verified contract byte-for-byte — reordering or
8
+ // dropping any field will break viem's tuple decoding.
9
+ export const FluidLendingResolverAbi = [
10
+ {
11
+ inputs: [],
12
+ name: 'getFTokensEntireData',
13
+ outputs: [
14
+ {
15
+ components: [
16
+ { name: 'tokenAddress', type: 'address' },
17
+ { name: 'eip2612Deposits', type: 'bool' },
18
+ { name: 'isNativeUnderlying', type: 'bool' },
19
+ { name: 'name', type: 'string' },
20
+ { name: 'symbol', type: 'string' },
21
+ { name: 'decimals', type: 'uint256' },
22
+ { name: 'asset', type: 'address' },
23
+ { name: 'totalAssets', type: 'uint256' },
24
+ { name: 'totalSupply', type: 'uint256' },
25
+ { name: 'convertToShares', type: 'uint256' },
26
+ { name: 'convertToAssets', type: 'uint256' },
27
+ { name: 'rewardsRate', type: 'uint256' },
28
+ { name: 'supplyRate', type: 'uint256' },
29
+ { name: 'rebalanceDifference', type: 'int256' },
30
+ {
31
+ components: [
32
+ { name: 'modeWithInterest', type: 'bool' },
33
+ { name: 'supply', type: 'uint256' },
34
+ { name: 'withdrawalLimit', type: 'uint256' },
35
+ { name: 'lastUpdateTimestamp', type: 'uint256' },
36
+ { name: 'expandPercent', type: 'uint256' },
37
+ { name: 'expandDuration', type: 'uint256' },
38
+ { name: 'baseWithdrawalLimit', type: 'uint256' },
39
+ { name: 'withdrawableUntilLimit', type: 'uint256' },
40
+ { name: 'withdrawable', type: 'uint256' },
41
+ { name: 'decayEndTimestamp', type: 'uint256' },
42
+ { name: 'decayAmount', type: 'uint256' },
43
+ ],
44
+ name: 'liquidityUserSupplyData',
45
+ type: 'tuple',
46
+ },
47
+ ],
48
+ name: '',
49
+ type: 'tuple[]',
50
+ },
51
+ ],
52
+ stateMutability: 'view',
53
+ type: 'function',
54
+ },
55
+ ];
@@ -0,0 +1,3 @@
1
+ export { FluidLendingResolverAbi } from './lendingResolver.js';
2
+ export { FluidVaultResolverAbi } from './vaultResolver.js';
3
+ //# sourceMappingURL=resolvers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../src/fluid/resolvers.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,12 @@
1
+ // Fluid resolver ABIs — inlined as TypeScript `as const` constants. No JSON
2
+ // imports, no `import assertions` / `with { type: 'json' }`, so the package
3
+ // builds cleanly in every bundler target (tsup, tsc, webpack, rspack, etc.)
4
+ // regardless of `resolveJsonModule` or import-attribute support.
5
+ //
6
+ // Source of truth: each resolver file is generated from the Blockscout-
7
+ // verified contract ABI. Refresh with:
8
+ // curl -sL 'https://eth.blockscout.com/api/v2/smart-contracts/<addr>' \
9
+ // | jq '.abi | map(select(.name == "<fn>"))' > /tmp/abi.json
10
+ // then regenerate the TS literal.
11
+ export { FluidLendingResolverAbi } from './lendingResolver.js';
12
+ export { FluidVaultResolverAbi } from './vaultResolver.js';