@1delta/abis 0.0.13 → 0.0.15
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/fluid/vaultResolver.d.ts +388 -0
- package/dist/fluid/vaultResolver.d.ts.map +1 -1
- package/dist/fluid/vaultResolver.js +532 -5
- package/dist/gearbox/addressProviderV310.d.ts +17 -0
- package/dist/gearbox/addressProviderV310.d.ts.map +1 -0
- package/dist/gearbox/addressProviderV310.js +24 -0
- package/dist/gearbox/creditAccountCompressorV310.d.ts +203 -0
- package/dist/gearbox/creditAccountCompressorV310.d.ts.map +1 -0
- package/dist/gearbox/creditAccountCompressorV310.js +140 -0
- package/dist/gearbox/creditFacadeV3.d.ts +59 -0
- package/dist/gearbox/creditFacadeV3.d.ts.map +1 -0
- package/dist/gearbox/creditFacadeV3.js +59 -0
- package/dist/gearbox/creditManagerV3.d.ts +156 -0
- package/dist/gearbox/creditManagerV3.d.ts.map +1 -0
- package/dist/gearbox/creditManagerV3.js +108 -0
- package/dist/gearbox/index.d.ts +9 -0
- package/dist/gearbox/index.d.ts.map +1 -0
- package/dist/gearbox/index.js +11 -0
- package/dist/gearbox/marketCompressorV310.d.ts +555 -0
- package/dist/gearbox/marketCompressorV310.d.ts.map +1 -0
- package/dist/gearbox/marketCompressorV310.js +619 -0
- package/dist/gearbox/poolQuotaKeeperV3.d.ts +65 -0
- package/dist/gearbox/poolQuotaKeeperV3.d.ts.map +1 -0
- package/dist/gearbox/poolQuotaKeeperV3.js +52 -0
- package/dist/gearbox/poolV3.d.ts +152 -0
- package/dist/gearbox/poolV3.d.ts.map +1 -0
- package/dist/gearbox/poolV3.js +133 -0
- package/dist/gearbox/priceOracleV3.d.ts +35 -0
- package/dist/gearbox/priceOracleV3.d.ts.map +1 -0
- package/dist/gearbox/priceOracleV3.js +28 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const GearboxPoolQuotaKeeperV3Abi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "quotedTokens";
|
|
4
|
+
readonly outputs: readonly [{
|
|
5
|
+
readonly name: "";
|
|
6
|
+
readonly type: "address[]";
|
|
7
|
+
}];
|
|
8
|
+
readonly stateMutability: "view";
|
|
9
|
+
readonly type: "function";
|
|
10
|
+
}, {
|
|
11
|
+
readonly inputs: readonly [{
|
|
12
|
+
readonly name: "creditAccount";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "token";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}];
|
|
18
|
+
readonly name: "getQuota";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "quota";
|
|
21
|
+
readonly type: "uint96";
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "cumulativeIndexLU";
|
|
24
|
+
readonly type: "uint192";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "view";
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
}, {
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly name: "token";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}];
|
|
33
|
+
readonly name: "getTokenQuotaParams";
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly name: "rate";
|
|
36
|
+
readonly type: "uint16";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "cumulativeIndexLU";
|
|
39
|
+
readonly type: "uint192";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "quotaIncreaseFee";
|
|
42
|
+
readonly type: "uint96";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "totalQuoted";
|
|
45
|
+
readonly type: "uint96";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "limit";
|
|
48
|
+
readonly type: "uint96";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "isActive";
|
|
51
|
+
readonly type: "bool";
|
|
52
|
+
}];
|
|
53
|
+
readonly stateMutability: "view";
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
}, {
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly name: "pool";
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly name: "";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "view";
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
}];
|
|
65
|
+
//# sourceMappingURL=poolQuotaKeeperV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poolQuotaKeeperV3.d.ts","sourceRoot":"","sources":["../../src/gearbox/poolQuotaKeeperV3.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0C9B,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Gearbox PoolQuotaKeeperV3 ABI — per-pool debt ceilings and quota management.
|
|
2
|
+
//
|
|
3
|
+
// Functions kept:
|
|
4
|
+
// - quotedTokens() -> address[]
|
|
5
|
+
// - getQuota(address, address) -> (uint96 quota, uint192 cumulativeIndexLU)
|
|
6
|
+
// - getTokenQuotaParams(address) -> (uint16 rate, uint192 cumulativeIndexLU, uint96 quotaIncreaseFee, uint96 totalQuoted, uint96 limit, bool isActive)
|
|
7
|
+
// - pool() -> address
|
|
8
|
+
//
|
|
9
|
+
// Source: Etherscan verified PoolQuotaKeeperV3 on Ethereum mainnet.
|
|
10
|
+
export const GearboxPoolQuotaKeeperV3Abi = [
|
|
11
|
+
{
|
|
12
|
+
inputs: [],
|
|
13
|
+
name: 'quotedTokens',
|
|
14
|
+
outputs: [{ name: '', type: 'address[]' }],
|
|
15
|
+
stateMutability: 'view',
|
|
16
|
+
type: 'function',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [
|
|
20
|
+
{ name: 'creditAccount', type: 'address' },
|
|
21
|
+
{ name: 'token', type: 'address' },
|
|
22
|
+
],
|
|
23
|
+
name: 'getQuota',
|
|
24
|
+
outputs: [
|
|
25
|
+
{ name: 'quota', type: 'uint96' },
|
|
26
|
+
{ name: 'cumulativeIndexLU', type: 'uint192' },
|
|
27
|
+
],
|
|
28
|
+
stateMutability: 'view',
|
|
29
|
+
type: 'function',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
inputs: [{ name: 'token', type: 'address' }],
|
|
33
|
+
name: 'getTokenQuotaParams',
|
|
34
|
+
outputs: [
|
|
35
|
+
{ name: 'rate', type: 'uint16' },
|
|
36
|
+
{ name: 'cumulativeIndexLU', type: 'uint192' },
|
|
37
|
+
{ name: 'quotaIncreaseFee', type: 'uint96' },
|
|
38
|
+
{ name: 'totalQuoted', type: 'uint96' },
|
|
39
|
+
{ name: 'limit', type: 'uint96' },
|
|
40
|
+
{ name: 'isActive', type: 'bool' },
|
|
41
|
+
],
|
|
42
|
+
stateMutability: 'view',
|
|
43
|
+
type: 'function',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [],
|
|
47
|
+
name: 'pool',
|
|
48
|
+
outputs: [{ name: '', type: 'address' }],
|
|
49
|
+
stateMutability: 'view',
|
|
50
|
+
type: 'function',
|
|
51
|
+
},
|
|
52
|
+
];
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export declare const GearboxPoolV3Abi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "totalAssets";
|
|
4
|
+
readonly outputs: readonly [{
|
|
5
|
+
readonly name: "";
|
|
6
|
+
readonly type: "uint256";
|
|
7
|
+
}];
|
|
8
|
+
readonly stateMutability: "view";
|
|
9
|
+
readonly type: "function";
|
|
10
|
+
}, {
|
|
11
|
+
readonly inputs: readonly [];
|
|
12
|
+
readonly name: "totalBorrowed";
|
|
13
|
+
readonly outputs: readonly [{
|
|
14
|
+
readonly name: "";
|
|
15
|
+
readonly type: "uint256";
|
|
16
|
+
}];
|
|
17
|
+
readonly stateMutability: "view";
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
}, {
|
|
20
|
+
readonly inputs: readonly [];
|
|
21
|
+
readonly name: "availableLiquidity";
|
|
22
|
+
readonly outputs: readonly [{
|
|
23
|
+
readonly name: "";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "view";
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
}, {
|
|
29
|
+
readonly inputs: readonly [];
|
|
30
|
+
readonly name: "expectedLiquidity";
|
|
31
|
+
readonly outputs: readonly [{
|
|
32
|
+
readonly name: "";
|
|
33
|
+
readonly type: "uint256";
|
|
34
|
+
}];
|
|
35
|
+
readonly stateMutability: "view";
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly name: "supplyRate";
|
|
40
|
+
readonly outputs: readonly [{
|
|
41
|
+
readonly name: "";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}];
|
|
44
|
+
readonly stateMutability: "view";
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
}, {
|
|
47
|
+
readonly inputs: readonly [];
|
|
48
|
+
readonly name: "baseInterestRate";
|
|
49
|
+
readonly outputs: readonly [{
|
|
50
|
+
readonly name: "";
|
|
51
|
+
readonly type: "uint256";
|
|
52
|
+
}];
|
|
53
|
+
readonly stateMutability: "view";
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
}, {
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly name: "underlyingToken";
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly name: "";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "view";
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
}, {
|
|
65
|
+
readonly inputs: readonly [];
|
|
66
|
+
readonly name: "creditManagers";
|
|
67
|
+
readonly outputs: readonly [{
|
|
68
|
+
readonly name: "";
|
|
69
|
+
readonly type: "address[]";
|
|
70
|
+
}];
|
|
71
|
+
readonly stateMutability: "view";
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
}, {
|
|
74
|
+
readonly inputs: readonly [];
|
|
75
|
+
readonly name: "poolQuotaKeeper";
|
|
76
|
+
readonly outputs: readonly [{
|
|
77
|
+
readonly name: "";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
}];
|
|
80
|
+
readonly stateMutability: "view";
|
|
81
|
+
readonly type: "function";
|
|
82
|
+
}, {
|
|
83
|
+
readonly inputs: readonly [];
|
|
84
|
+
readonly name: "withdrawFee";
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly name: "";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "view";
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
}, {
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly name: "symbol";
|
|
94
|
+
readonly outputs: readonly [{
|
|
95
|
+
readonly name: "";
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
}];
|
|
98
|
+
readonly stateMutability: "view";
|
|
99
|
+
readonly type: "function";
|
|
100
|
+
}, {
|
|
101
|
+
readonly inputs: readonly [];
|
|
102
|
+
readonly name: "name";
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
}];
|
|
107
|
+
readonly stateMutability: "view";
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
}, {
|
|
110
|
+
readonly inputs: readonly [];
|
|
111
|
+
readonly name: "decimals";
|
|
112
|
+
readonly outputs: readonly [{
|
|
113
|
+
readonly name: "";
|
|
114
|
+
readonly type: "uint8";
|
|
115
|
+
}];
|
|
116
|
+
readonly stateMutability: "view";
|
|
117
|
+
readonly type: "function";
|
|
118
|
+
}, {
|
|
119
|
+
readonly inputs: readonly [];
|
|
120
|
+
readonly name: "totalSupply";
|
|
121
|
+
readonly outputs: readonly [{
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}];
|
|
125
|
+
readonly stateMutability: "view";
|
|
126
|
+
readonly type: "function";
|
|
127
|
+
}, {
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly name: "owner";
|
|
130
|
+
readonly type: "address";
|
|
131
|
+
}];
|
|
132
|
+
readonly name: "maxWithdraw";
|
|
133
|
+
readonly outputs: readonly [{
|
|
134
|
+
readonly name: "";
|
|
135
|
+
readonly type: "uint256";
|
|
136
|
+
}];
|
|
137
|
+
readonly stateMutability: "view";
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
}, {
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly name: "owner";
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
}];
|
|
144
|
+
readonly name: "maxRedeem";
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "uint256";
|
|
148
|
+
}];
|
|
149
|
+
readonly stateMutability: "view";
|
|
150
|
+
readonly type: "function";
|
|
151
|
+
}];
|
|
152
|
+
//# sourceMappingURL=poolV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poolV3.d.ts","sourceRoot":"","sources":["../../src/gearbox/poolV3.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiHnB,CAAA"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// Gearbox PoolV3 ABI — ERC-4626 vault for passive lenders.
|
|
2
|
+
//
|
|
3
|
+
// Functions kept:
|
|
4
|
+
// - totalAssets() -> uint256
|
|
5
|
+
// - totalBorrowed() -> uint256
|
|
6
|
+
// - availableLiquidity() -> uint256
|
|
7
|
+
// - expectedLiquidity() -> uint256
|
|
8
|
+
// - supplyRate() -> uint256 (RAY, 1e27)
|
|
9
|
+
// - baseInterestRate() -> uint256 (RAY, 1e27)
|
|
10
|
+
// - underlyingToken() -> address
|
|
11
|
+
// - creditManagers() -> address[]
|
|
12
|
+
// - poolQuotaKeeper() -> address
|
|
13
|
+
// - withdrawFee() -> uint256
|
|
14
|
+
// - symbol() -> string
|
|
15
|
+
// - name() -> string
|
|
16
|
+
// - decimals() -> uint8
|
|
17
|
+
// - totalSupply() -> uint256
|
|
18
|
+
//
|
|
19
|
+
// Source: Etherscan verified PoolV3 on Ethereum mainnet.
|
|
20
|
+
export const GearboxPoolV3Abi = [
|
|
21
|
+
{
|
|
22
|
+
inputs: [],
|
|
23
|
+
name: 'totalAssets',
|
|
24
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
25
|
+
stateMutability: 'view',
|
|
26
|
+
type: 'function',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [],
|
|
30
|
+
name: 'totalBorrowed',
|
|
31
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
32
|
+
stateMutability: 'view',
|
|
33
|
+
type: 'function',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
inputs: [],
|
|
37
|
+
name: 'availableLiquidity',
|
|
38
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
39
|
+
stateMutability: 'view',
|
|
40
|
+
type: 'function',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
inputs: [],
|
|
44
|
+
name: 'expectedLiquidity',
|
|
45
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
46
|
+
stateMutability: 'view',
|
|
47
|
+
type: 'function',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [],
|
|
51
|
+
name: 'supplyRate',
|
|
52
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
53
|
+
stateMutability: 'view',
|
|
54
|
+
type: 'function',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
inputs: [],
|
|
58
|
+
name: 'baseInterestRate',
|
|
59
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
60
|
+
stateMutability: 'view',
|
|
61
|
+
type: 'function',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
inputs: [],
|
|
65
|
+
name: 'underlyingToken',
|
|
66
|
+
outputs: [{ name: '', type: 'address' }],
|
|
67
|
+
stateMutability: 'view',
|
|
68
|
+
type: 'function',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
inputs: [],
|
|
72
|
+
name: 'creditManagers',
|
|
73
|
+
outputs: [{ name: '', type: 'address[]' }],
|
|
74
|
+
stateMutability: 'view',
|
|
75
|
+
type: 'function',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
inputs: [],
|
|
79
|
+
name: 'poolQuotaKeeper',
|
|
80
|
+
outputs: [{ name: '', type: 'address' }],
|
|
81
|
+
stateMutability: 'view',
|
|
82
|
+
type: 'function',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
inputs: [],
|
|
86
|
+
name: 'withdrawFee',
|
|
87
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
88
|
+
stateMutability: 'view',
|
|
89
|
+
type: 'function',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
inputs: [],
|
|
93
|
+
name: 'symbol',
|
|
94
|
+
outputs: [{ name: '', type: 'string' }],
|
|
95
|
+
stateMutability: 'view',
|
|
96
|
+
type: 'function',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [],
|
|
100
|
+
name: 'name',
|
|
101
|
+
outputs: [{ name: '', type: 'string' }],
|
|
102
|
+
stateMutability: 'view',
|
|
103
|
+
type: 'function',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [],
|
|
107
|
+
name: 'decimals',
|
|
108
|
+
outputs: [{ name: '', type: 'uint8' }],
|
|
109
|
+
stateMutability: 'view',
|
|
110
|
+
type: 'function',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
inputs: [],
|
|
114
|
+
name: 'totalSupply',
|
|
115
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
116
|
+
stateMutability: 'view',
|
|
117
|
+
type: 'function',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
inputs: [{ name: 'owner', type: 'address' }],
|
|
121
|
+
name: 'maxWithdraw',
|
|
122
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
123
|
+
stateMutability: 'view',
|
|
124
|
+
type: 'function',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
inputs: [{ name: 'owner', type: 'address' }],
|
|
128
|
+
name: 'maxRedeem',
|
|
129
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
130
|
+
stateMutability: 'view',
|
|
131
|
+
type: 'function',
|
|
132
|
+
},
|
|
133
|
+
];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const GearboxPriceOracleV3Abi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly name: "token";
|
|
4
|
+
readonly type: "address";
|
|
5
|
+
}];
|
|
6
|
+
readonly name: "getPrice";
|
|
7
|
+
readonly outputs: readonly [{
|
|
8
|
+
readonly name: "";
|
|
9
|
+
readonly type: "uint256";
|
|
10
|
+
}];
|
|
11
|
+
readonly stateMutability: "view";
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly name: "token";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}];
|
|
18
|
+
readonly name: "priceFeedParams";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "priceFeed";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "stalenessPeriod";
|
|
24
|
+
readonly type: "uint32";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "skipCheck";
|
|
27
|
+
readonly type: "bool";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "decimals";
|
|
30
|
+
readonly type: "uint8";
|
|
31
|
+
}];
|
|
32
|
+
readonly stateMutability: "view";
|
|
33
|
+
readonly type: "function";
|
|
34
|
+
}];
|
|
35
|
+
//# sourceMappingURL=priceOracleV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"priceOracleV3.d.ts","sourceRoot":"","sources":["../../src/gearbox/priceOracleV3.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB1B,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Gearbox PriceOracleV3 ABI — pricing for collateral / debt math.
|
|
2
|
+
//
|
|
3
|
+
// Functions kept:
|
|
4
|
+
// - getPrice(address) -> uint256 (USD with 8 decimals)
|
|
5
|
+
// - priceFeedParams(address) -> (address priceFeed, uint32 stalenessPeriod, bool skipCheck, uint8 decimals)
|
|
6
|
+
//
|
|
7
|
+
// Source: Etherscan verified PriceOracleV3 on Ethereum mainnet.
|
|
8
|
+
export const GearboxPriceOracleV3Abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [{ name: 'token', type: 'address' }],
|
|
11
|
+
name: 'getPrice',
|
|
12
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
13
|
+
stateMutability: 'view',
|
|
14
|
+
type: 'function',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
inputs: [{ name: 'token', type: 'address' }],
|
|
18
|
+
name: 'priceFeedParams',
|
|
19
|
+
outputs: [
|
|
20
|
+
{ name: 'priceFeed', type: 'address' },
|
|
21
|
+
{ name: 'stalenessPeriod', type: 'uint32' },
|
|
22
|
+
{ name: 'skipCheck', type: 'bool' },
|
|
23
|
+
{ name: 'decimals', type: 'uint8' },
|
|
24
|
+
],
|
|
25
|
+
stateMutability: 'view',
|
|
26
|
+
type: 'function',
|
|
27
|
+
},
|
|
28
|
+
];
|
package/dist/index.d.ts
CHANGED
|
@@ -8,5 +8,6 @@ export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
|
|
|
8
8
|
export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
|
|
9
9
|
export { PosManagerAbi } from './init/index.js';
|
|
10
10
|
export { evcAbi, eVaultAbi, orchestratorAbi, paymentsAbi, } from './euler-v2/index.js';
|
|
11
|
+
export { GearboxPoolV3Abi, GearboxCreditManagerV3Abi, GearboxCreditFacadeV3Abi, GearboxPoolQuotaKeeperV3Abi, GearboxPriceOracleV3Abi, GearboxAddressProviderV310Abi, GearboxMarketCompressorV310Abi, GearboxCreditAccountCompressorV310Abi, } from './gearbox/index.js';
|
|
11
12
|
export { AaveV4HubAbi, AaveV4SpokeAbi, AaveV4SpokeActionsAbi, AaveV4OracleAbi, AaveV4InterestRateStrategyAbi, AaveV4GiverPMAbi, AaveV4TakerPMAbi, AaveV4ConfigPMAbi, AaveV4NativeTokenGatewayAbi, } from './aave-v4/index.js';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,eAAe,GAChB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,WAAW,GACZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,eAAe,GAChB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,WAAW,GACZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,qCAAqC,GACtC,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -8,4 +8,5 @@ export { Erc20Abi, Eip2612Abi } from './erc20/index.js';
|
|
|
8
8
|
export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi, } from './permissions/index.js';
|
|
9
9
|
export { PosManagerAbi } from './init/index.js';
|
|
10
10
|
export { evcAbi, eVaultAbi, orchestratorAbi, paymentsAbi, } from './euler-v2/index.js';
|
|
11
|
+
export { GearboxPoolV3Abi, GearboxCreditManagerV3Abi, GearboxCreditFacadeV3Abi, GearboxPoolQuotaKeeperV3Abi, GearboxPriceOracleV3Abi, GearboxAddressProviderV310Abi, GearboxMarketCompressorV310Abi, GearboxCreditAccountCompressorV310Abi, } from './gearbox/index.js';
|
|
11
12
|
export { AaveV4HubAbi, AaveV4SpokeAbi, AaveV4SpokeActionsAbi, AaveV4OracleAbi, AaveV4InterestRateStrategyAbi, AaveV4GiverPMAbi, AaveV4TakerPMAbi, AaveV4ConfigPMAbi, AaveV4NativeTokenGatewayAbi, } from './aave-v4/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1delta/abis",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "tsc"
|
|
21
|
-
},
|
|
22
19
|
"devDependencies": {
|
|
23
20
|
"typescript": "^5.9.3"
|
|
24
21
|
},
|
|
25
22
|
"engines": {
|
|
26
23
|
"node": ">=20"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|