@gearbox-protocol/sdk 3.0.0-next.265 → 3.0.0-next.267
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/contracts/index.sol +1 -0
- package/lib/apy/index.d.ts +1 -6
- package/lib/apy/index.js +0 -20
- package/lib/core/creditAccount.d.ts +1 -1
- package/lib/core/endpoint.d.ts +1 -0
- package/lib/core/endpoint.js +4 -1
- package/lib/pathfinder/pathfinder.d.ts +13 -1
- package/lib/pathfinder/pathfinder.js +74 -11
- package/lib/types/IPToken.d.ts +21 -0
- package/lib/types/{IPendleSY.js → IPToken.js} +11 -4
- package/lib/types/IPendleMarket.d.ts +3 -27
- package/lib/types/IPendleMarket.js +3 -19
- package/lib/types/IPendleRouter.d.ts +536 -0
- package/lib/types/IPendleRouter.js +370 -0
- package/lib/types/IPendleRouterAdapter.d.ts +831 -0
- package/lib/types/IPendleRouterAdapter.js +572 -0
- package/lib/types/IPendleRouterAdapterEvents.d.ts +26 -0
- package/lib/types/IPendleRouterAdapterEvents.js +39 -0
- package/lib/types/IPendleRouterAdapterExceptions.d.ts +9 -0
- package/lib/types/IPendleRouterAdapterExceptions.js +10 -0
- package/lib/types/{IPendleYT.d.ts → IRouterComponent.d.ts} +8 -8
- package/lib/types/{IPendleYT.js → IRouterComponent.js} +8 -8
- package/lib/types/IRouterStatic.d.ts +128 -0
- package/lib/types/IRouterStatic.js +68 -0
- package/lib/types/ISwapper.d.ts +100 -0
- package/lib/types/ISwapper.js +75 -0
- package/lib/types/IYToken.d.ts +21 -0
- package/lib/types/IYToken.js +22 -0
- package/lib/types/PendleSwapper.d.ts +182 -0
- package/lib/types/PendleSwapper.js +130 -0
- package/lib/types/RouterComponentConfigurator.d.ts +61 -0
- package/lib/types/RouterComponentConfigurator.js +48 -0
- package/lib/types/index.d.ts +11 -2
- package/lib/types/index.js +11 -2
- package/package.json +5 -5
- package/lib/apy/curveAPY.d.ts +0 -61
- package/lib/apy/curveAPY.js +0 -143
- package/lib/apy/defiLamaAPY.d.ts +0 -3
- package/lib/apy/defiLamaAPY.js +0 -85
- package/lib/apy/lidoAPY.d.ts +0 -4
- package/lib/apy/lidoAPY.js +0 -19
- package/lib/apy/pendleAPY.d.ts +0 -5
- package/lib/apy/pendleAPY.js +0 -26
- package/lib/apy/skyAPY.d.ts +0 -5
- package/lib/apy/skyAPY.js +0 -28
- package/lib/apy/yearnAPY.d.ts +0 -3
- package/lib/apy/yearnAPY.js +0 -38
- package/lib/types/IPendleSY.d.ts +0 -11
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
export declare const pendleSwapperAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "_router";
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "_pendleRouterStatic";
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}];
|
|
12
|
+
readonly stateMutability: "nonpayable";
|
|
13
|
+
}, {
|
|
14
|
+
readonly type: "function";
|
|
15
|
+
readonly inputs: readonly [{
|
|
16
|
+
readonly name: "swapTask";
|
|
17
|
+
readonly internalType: "struct SwapTask";
|
|
18
|
+
readonly type: "tuple";
|
|
19
|
+
readonly components: readonly [{
|
|
20
|
+
readonly name: "swapOperation";
|
|
21
|
+
readonly internalType: "enum SwapOperation";
|
|
22
|
+
readonly type: "uint8";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "creditAccount";
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "tokenIn";
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "tokenOut";
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "connectors";
|
|
37
|
+
readonly internalType: "address[]";
|
|
38
|
+
readonly type: "address[]";
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "amount";
|
|
41
|
+
readonly internalType: "uint256";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "leftoverAmount";
|
|
45
|
+
readonly internalType: "uint256";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
}];
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "adapter";
|
|
50
|
+
readonly internalType: "address";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
}];
|
|
53
|
+
readonly name: "getBestDirectPairSwap";
|
|
54
|
+
readonly outputs: readonly [{
|
|
55
|
+
readonly name: "quote";
|
|
56
|
+
readonly internalType: "struct SwapQuote";
|
|
57
|
+
readonly type: "tuple";
|
|
58
|
+
readonly components: readonly [{
|
|
59
|
+
readonly name: "multiCall";
|
|
60
|
+
readonly internalType: "struct MultiCall";
|
|
61
|
+
readonly type: "tuple";
|
|
62
|
+
readonly components: readonly [{
|
|
63
|
+
readonly name: "target";
|
|
64
|
+
readonly internalType: "address";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "callData";
|
|
68
|
+
readonly internalType: "bytes";
|
|
69
|
+
readonly type: "bytes";
|
|
70
|
+
}];
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "amount";
|
|
73
|
+
readonly internalType: "uint256";
|
|
74
|
+
readonly type: "uint256";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "found";
|
|
77
|
+
readonly internalType: "bool";
|
|
78
|
+
readonly type: "bool";
|
|
79
|
+
}];
|
|
80
|
+
}];
|
|
81
|
+
readonly stateMutability: "nonpayable";
|
|
82
|
+
}, {
|
|
83
|
+
readonly type: "function";
|
|
84
|
+
readonly inputs: readonly [];
|
|
85
|
+
readonly name: "getComponentId";
|
|
86
|
+
readonly outputs: readonly [{
|
|
87
|
+
readonly name: "";
|
|
88
|
+
readonly internalType: "uint8";
|
|
89
|
+
readonly type: "uint8";
|
|
90
|
+
}];
|
|
91
|
+
readonly stateMutability: "view";
|
|
92
|
+
}, {
|
|
93
|
+
readonly type: "function";
|
|
94
|
+
readonly inputs: readonly [];
|
|
95
|
+
readonly name: "migrate";
|
|
96
|
+
readonly outputs: readonly [];
|
|
97
|
+
readonly stateMutability: "nonpayable";
|
|
98
|
+
}, {
|
|
99
|
+
readonly type: "function";
|
|
100
|
+
readonly inputs: readonly [];
|
|
101
|
+
readonly name: "needsComponentUpdate";
|
|
102
|
+
readonly outputs: readonly [{
|
|
103
|
+
readonly name: "";
|
|
104
|
+
readonly internalType: "bool";
|
|
105
|
+
readonly type: "bool";
|
|
106
|
+
}];
|
|
107
|
+
readonly stateMutability: "view";
|
|
108
|
+
}, {
|
|
109
|
+
readonly type: "function";
|
|
110
|
+
readonly inputs: readonly [];
|
|
111
|
+
readonly name: "router";
|
|
112
|
+
readonly outputs: readonly [{
|
|
113
|
+
readonly name: "";
|
|
114
|
+
readonly internalType: "contract IRouterV3";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
}];
|
|
117
|
+
readonly stateMutability: "view";
|
|
118
|
+
}, {
|
|
119
|
+
readonly type: "function";
|
|
120
|
+
readonly inputs: readonly [];
|
|
121
|
+
readonly name: "routerStatic";
|
|
122
|
+
readonly outputs: readonly [{
|
|
123
|
+
readonly name: "";
|
|
124
|
+
readonly internalType: "address";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}];
|
|
127
|
+
readonly stateMutability: "view";
|
|
128
|
+
}, {
|
|
129
|
+
readonly type: "function";
|
|
130
|
+
readonly inputs: readonly [{
|
|
131
|
+
readonly name: "newRouter";
|
|
132
|
+
readonly internalType: "address";
|
|
133
|
+
readonly type: "address";
|
|
134
|
+
}];
|
|
135
|
+
readonly name: "updateRouter";
|
|
136
|
+
readonly outputs: readonly [];
|
|
137
|
+
readonly stateMutability: "nonpayable";
|
|
138
|
+
}, {
|
|
139
|
+
readonly type: "function";
|
|
140
|
+
readonly inputs: readonly [];
|
|
141
|
+
readonly name: "version";
|
|
142
|
+
readonly outputs: readonly [{
|
|
143
|
+
readonly name: "";
|
|
144
|
+
readonly internalType: "uint256";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}];
|
|
147
|
+
readonly stateMutability: "view";
|
|
148
|
+
}, {
|
|
149
|
+
readonly type: "event";
|
|
150
|
+
readonly anonymous: false;
|
|
151
|
+
readonly inputs: readonly [{
|
|
152
|
+
readonly name: "";
|
|
153
|
+
readonly internalType: "address";
|
|
154
|
+
readonly type: "address";
|
|
155
|
+
readonly indexed: true;
|
|
156
|
+
}];
|
|
157
|
+
readonly name: "NewRouter";
|
|
158
|
+
}, {
|
|
159
|
+
readonly type: "error";
|
|
160
|
+
readonly inputs: readonly [];
|
|
161
|
+
readonly name: "FutureRouterOnlyException";
|
|
162
|
+
}, {
|
|
163
|
+
readonly type: "error";
|
|
164
|
+
readonly inputs: readonly [];
|
|
165
|
+
readonly name: "MigrationErrorException";
|
|
166
|
+
}, {
|
|
167
|
+
readonly type: "error";
|
|
168
|
+
readonly inputs: readonly [];
|
|
169
|
+
readonly name: "RouterOnlyException";
|
|
170
|
+
}, {
|
|
171
|
+
readonly type: "error";
|
|
172
|
+
readonly inputs: readonly [];
|
|
173
|
+
readonly name: "RouterOwnerOnlyException";
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "error";
|
|
176
|
+
readonly inputs: readonly [{
|
|
177
|
+
readonly name: "";
|
|
178
|
+
readonly internalType: "enum SwapOperation";
|
|
179
|
+
readonly type: "uint8";
|
|
180
|
+
}];
|
|
181
|
+
readonly name: "UnsupportedSwapOperation";
|
|
182
|
+
}];
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3
|
+
// PendleSwapper
|
|
4
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.pendleSwapperAbi = void 0;
|
|
7
|
+
exports.pendleSwapperAbi = [
|
|
8
|
+
{
|
|
9
|
+
type: "constructor",
|
|
10
|
+
inputs: [
|
|
11
|
+
{ name: "_router", internalType: "address", type: "address" },
|
|
12
|
+
{ name: "_pendleRouterStatic", internalType: "address", type: "address" },
|
|
13
|
+
],
|
|
14
|
+
stateMutability: "nonpayable",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
type: "function",
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
name: "swapTask",
|
|
21
|
+
internalType: "struct SwapTask",
|
|
22
|
+
type: "tuple",
|
|
23
|
+
components: [
|
|
24
|
+
{
|
|
25
|
+
name: "swapOperation",
|
|
26
|
+
internalType: "enum SwapOperation",
|
|
27
|
+
type: "uint8",
|
|
28
|
+
},
|
|
29
|
+
{ name: "creditAccount", internalType: "address", type: "address" },
|
|
30
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
31
|
+
{ name: "tokenOut", internalType: "address", type: "address" },
|
|
32
|
+
{ name: "connectors", internalType: "address[]", type: "address[]" },
|
|
33
|
+
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
34
|
+
{ name: "leftoverAmount", internalType: "uint256", type: "uint256" },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
{ name: "adapter", internalType: "address", type: "address" },
|
|
38
|
+
],
|
|
39
|
+
name: "getBestDirectPairSwap",
|
|
40
|
+
outputs: [
|
|
41
|
+
{
|
|
42
|
+
name: "quote",
|
|
43
|
+
internalType: "struct SwapQuote",
|
|
44
|
+
type: "tuple",
|
|
45
|
+
components: [
|
|
46
|
+
{
|
|
47
|
+
name: "multiCall",
|
|
48
|
+
internalType: "struct MultiCall",
|
|
49
|
+
type: "tuple",
|
|
50
|
+
components: [
|
|
51
|
+
{ name: "target", internalType: "address", type: "address" },
|
|
52
|
+
{ name: "callData", internalType: "bytes", type: "bytes" },
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
{ name: "amount", internalType: "uint256", type: "uint256" },
|
|
56
|
+
{ name: "found", internalType: "bool", type: "bool" },
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
stateMutability: "nonpayable",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: "function",
|
|
64
|
+
inputs: [],
|
|
65
|
+
name: "getComponentId",
|
|
66
|
+
outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
|
|
67
|
+
stateMutability: "view",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
type: "function",
|
|
71
|
+
inputs: [],
|
|
72
|
+
name: "migrate",
|
|
73
|
+
outputs: [],
|
|
74
|
+
stateMutability: "nonpayable",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: "function",
|
|
78
|
+
inputs: [],
|
|
79
|
+
name: "needsComponentUpdate",
|
|
80
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
81
|
+
stateMutability: "view",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: "function",
|
|
85
|
+
inputs: [],
|
|
86
|
+
name: "router",
|
|
87
|
+
outputs: [
|
|
88
|
+
{ name: "", internalType: "contract IRouterV3", type: "address" },
|
|
89
|
+
],
|
|
90
|
+
stateMutability: "view",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: "function",
|
|
94
|
+
inputs: [],
|
|
95
|
+
name: "routerStatic",
|
|
96
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
97
|
+
stateMutability: "view",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "function",
|
|
101
|
+
inputs: [{ name: "newRouter", internalType: "address", type: "address" }],
|
|
102
|
+
name: "updateRouter",
|
|
103
|
+
outputs: [],
|
|
104
|
+
stateMutability: "nonpayable",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: "function",
|
|
108
|
+
inputs: [],
|
|
109
|
+
name: "version",
|
|
110
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
111
|
+
stateMutability: "view",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: "event",
|
|
115
|
+
anonymous: false,
|
|
116
|
+
inputs: [
|
|
117
|
+
{ name: "", internalType: "address", type: "address", indexed: true },
|
|
118
|
+
],
|
|
119
|
+
name: "NewRouter",
|
|
120
|
+
},
|
|
121
|
+
{ type: "error", inputs: [], name: "FutureRouterOnlyException" },
|
|
122
|
+
{ type: "error", inputs: [], name: "MigrationErrorException" },
|
|
123
|
+
{ type: "error", inputs: [], name: "RouterOnlyException" },
|
|
124
|
+
{ type: "error", inputs: [], name: "RouterOwnerOnlyException" },
|
|
125
|
+
{
|
|
126
|
+
type: "error",
|
|
127
|
+
inputs: [{ name: "", internalType: "enum SwapOperation", type: "uint8" }],
|
|
128
|
+
name: "UnsupportedSwapOperation",
|
|
129
|
+
},
|
|
130
|
+
];
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const routerComponentConfiguratorAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "_router";
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
}];
|
|
8
|
+
readonly stateMutability: "nonpayable";
|
|
9
|
+
}, {
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
readonly inputs: readonly [];
|
|
12
|
+
readonly name: "migrate";
|
|
13
|
+
readonly outputs: readonly [];
|
|
14
|
+
readonly stateMutability: "nonpayable";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly name: "router";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly internalType: "contract IRouterV3";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly name: "newRouter";
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}];
|
|
32
|
+
readonly name: "updateRouter";
|
|
33
|
+
readonly outputs: readonly [];
|
|
34
|
+
readonly stateMutability: "nonpayable";
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "event";
|
|
37
|
+
readonly anonymous: false;
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly internalType: "address";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
readonly indexed: true;
|
|
43
|
+
}];
|
|
44
|
+
readonly name: "NewRouter";
|
|
45
|
+
}, {
|
|
46
|
+
readonly type: "error";
|
|
47
|
+
readonly inputs: readonly [];
|
|
48
|
+
readonly name: "FutureRouterOnlyException";
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "error";
|
|
51
|
+
readonly inputs: readonly [];
|
|
52
|
+
readonly name: "MigrationErrorException";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "error";
|
|
55
|
+
readonly inputs: readonly [];
|
|
56
|
+
readonly name: "RouterOnlyException";
|
|
57
|
+
}, {
|
|
58
|
+
readonly type: "error";
|
|
59
|
+
readonly inputs: readonly [];
|
|
60
|
+
readonly name: "RouterOwnerOnlyException";
|
|
61
|
+
}];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3
|
+
// RouterComponentConfigurator
|
|
4
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.routerComponentConfiguratorAbi = void 0;
|
|
7
|
+
exports.routerComponentConfiguratorAbi = [
|
|
8
|
+
{
|
|
9
|
+
type: "constructor",
|
|
10
|
+
inputs: [{ name: "_router", internalType: "address", type: "address" }],
|
|
11
|
+
stateMutability: "nonpayable",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: "function",
|
|
15
|
+
inputs: [],
|
|
16
|
+
name: "migrate",
|
|
17
|
+
outputs: [],
|
|
18
|
+
stateMutability: "nonpayable",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
type: "function",
|
|
22
|
+
inputs: [],
|
|
23
|
+
name: "router",
|
|
24
|
+
outputs: [
|
|
25
|
+
{ name: "", internalType: "contract IRouterV3", type: "address" },
|
|
26
|
+
],
|
|
27
|
+
stateMutability: "view",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: "function",
|
|
31
|
+
inputs: [{ name: "newRouter", internalType: "address", type: "address" }],
|
|
32
|
+
name: "updateRouter",
|
|
33
|
+
outputs: [],
|
|
34
|
+
stateMutability: "nonpayable",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: "event",
|
|
38
|
+
anonymous: false,
|
|
39
|
+
inputs: [
|
|
40
|
+
{ name: "", internalType: "address", type: "address", indexed: true },
|
|
41
|
+
],
|
|
42
|
+
name: "NewRouter",
|
|
43
|
+
},
|
|
44
|
+
{ type: "error", inputs: [], name: "FutureRouterOnlyException" },
|
|
45
|
+
{ type: "error", inputs: [], name: "MigrationErrorException" },
|
|
46
|
+
{ type: "error", inputs: [], name: "RouterOnlyException" },
|
|
47
|
+
{ type: "error", inputs: [], name: "RouterOwnerOnlyException" },
|
|
48
|
+
];
|
package/lib/types/index.d.ts
CHANGED
|
@@ -35,22 +35,31 @@ export * from "./IMulticall3";
|
|
|
35
35
|
export * from "./IOffchainOracle";
|
|
36
36
|
export * from "./IPartialLiquidationBotV3";
|
|
37
37
|
export * from "./IPendleMarket";
|
|
38
|
-
export * from "./
|
|
39
|
-
export * from "./
|
|
38
|
+
export * from "./IPendleRouter";
|
|
39
|
+
export * from "./IPendleRouterAdapter";
|
|
40
|
+
export * from "./IPendleRouterAdapterEvents";
|
|
41
|
+
export * from "./IPendleRouterAdapterExceptions";
|
|
40
42
|
export * from "./IPoolV3";
|
|
41
43
|
export * from "./IPriceFeed";
|
|
42
44
|
export * from "./IPriceOracleBase";
|
|
43
45
|
export * from "./IPriceOracleV3";
|
|
46
|
+
export * from "./IPToken";
|
|
47
|
+
export * from "./IRouterComponent";
|
|
48
|
+
export * from "./IRouterStatic";
|
|
44
49
|
export * from "./IRouterV3";
|
|
45
50
|
export * from "./IStakingRewardsAdapter";
|
|
46
51
|
export * from "./IstETH";
|
|
52
|
+
export * from "./ISwapper";
|
|
47
53
|
export * from "./IUniswapV2Adapter";
|
|
48
54
|
export * from "./IUniswapV3Adapter";
|
|
49
55
|
export * from "./IUpdatablePriceFeed";
|
|
50
56
|
export * from "./IwstETH";
|
|
51
57
|
export * from "./IwstETHV1Adapter";
|
|
52
58
|
export * from "./IYearnV2Adapter";
|
|
59
|
+
export * from "./IYToken";
|
|
53
60
|
export * from "./IZapper";
|
|
54
61
|
export * from "./PendleTWAPPTPriceFeed";
|
|
62
|
+
export * from "./PendleSwapper";
|
|
55
63
|
export * from "./RedstonePriceFeed";
|
|
64
|
+
export * from "./RouterComponentConfigurator";
|
|
56
65
|
export * from "./SignUpRepository";
|
package/lib/types/index.js
CHANGED
|
@@ -51,22 +51,31 @@ __exportStar(require("./IMulticall3"), exports);
|
|
|
51
51
|
__exportStar(require("./IOffchainOracle"), exports);
|
|
52
52
|
__exportStar(require("./IPartialLiquidationBotV3"), exports);
|
|
53
53
|
__exportStar(require("./IPendleMarket"), exports);
|
|
54
|
-
__exportStar(require("./
|
|
55
|
-
__exportStar(require("./
|
|
54
|
+
__exportStar(require("./IPendleRouter"), exports);
|
|
55
|
+
__exportStar(require("./IPendleRouterAdapter"), exports);
|
|
56
|
+
__exportStar(require("./IPendleRouterAdapterEvents"), exports);
|
|
57
|
+
__exportStar(require("./IPendleRouterAdapterExceptions"), exports);
|
|
56
58
|
__exportStar(require("./IPoolV3"), exports);
|
|
57
59
|
__exportStar(require("./IPriceFeed"), exports);
|
|
58
60
|
__exportStar(require("./IPriceOracleBase"), exports);
|
|
59
61
|
__exportStar(require("./IPriceOracleV3"), exports);
|
|
62
|
+
__exportStar(require("./IPToken"), exports);
|
|
63
|
+
__exportStar(require("./IRouterComponent"), exports);
|
|
64
|
+
__exportStar(require("./IRouterStatic"), exports);
|
|
60
65
|
__exportStar(require("./IRouterV3"), exports);
|
|
61
66
|
__exportStar(require("./IStakingRewardsAdapter"), exports);
|
|
62
67
|
__exportStar(require("./IstETH"), exports);
|
|
68
|
+
__exportStar(require("./ISwapper"), exports);
|
|
63
69
|
__exportStar(require("./IUniswapV2Adapter"), exports);
|
|
64
70
|
__exportStar(require("./IUniswapV3Adapter"), exports);
|
|
65
71
|
__exportStar(require("./IUpdatablePriceFeed"), exports);
|
|
66
72
|
__exportStar(require("./IwstETH"), exports);
|
|
67
73
|
__exportStar(require("./IwstETHV1Adapter"), exports);
|
|
68
74
|
__exportStar(require("./IYearnV2Adapter"), exports);
|
|
75
|
+
__exportStar(require("./IYToken"), exports);
|
|
69
76
|
__exportStar(require("./IZapper"), exports);
|
|
70
77
|
__exportStar(require("./PendleTWAPPTPriceFeed"), exports);
|
|
78
|
+
__exportStar(require("./PendleSwapper"), exports);
|
|
71
79
|
__exportStar(require("./RedstonePriceFeed"), exports);
|
|
80
|
+
__exportStar(require("./RouterComponentConfigurator"), exports);
|
|
72
81
|
__exportStar(require("./SignUpRepository"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.267",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@commitlint/config-conventional": "^17.0.3",
|
|
43
43
|
"@gearbox-protocol/bots-v3": "^1.5.1",
|
|
44
44
|
"@gearbox-protocol/core-v2": "1.19.0-base.17",
|
|
45
|
-
"@gearbox-protocol/core-v3": "^1.
|
|
45
|
+
"@gearbox-protocol/core-v3": "^1.51.0",
|
|
46
46
|
"@gearbox-protocol/eslint-config": "^1.4.1",
|
|
47
|
-
"@gearbox-protocol/integrations-v3": "^1.
|
|
48
|
-
"@gearbox-protocol/oracles-v3": "^1.
|
|
47
|
+
"@gearbox-protocol/integrations-v3": "^1.44.0",
|
|
48
|
+
"@gearbox-protocol/oracles-v3": "^1.13.0",
|
|
49
49
|
"@gearbox-protocol/periphery-v3": "^1.6.1",
|
|
50
50
|
"@gearbox-protocol/prettier-config": "^1.4.1",
|
|
51
51
|
"@gearbox-protocol/router": "^1.5.5",
|
|
52
|
-
"@gearbox-protocol/router-v3": "^1.
|
|
52
|
+
"@gearbox-protocol/router-v3": "^1.41.0",
|
|
53
53
|
"@openzeppelin/contracts": "^4.9.3",
|
|
54
54
|
"@redstone-finance/evm-connector": "^0.7.3",
|
|
55
55
|
"@types/chai": "^4.3.3",
|
package/lib/apy/curveAPY.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { NetworkType, PartialRecord } from "@gearbox-protocol/sdk-gov";
|
|
2
|
-
import { CurveLPToken } from "@gearbox-protocol/sdk-gov/lib/tokens/curveLP";
|
|
3
|
-
import { GearboxToken } from "@gearbox-protocol/sdk-gov/lib/tokens/gear";
|
|
4
|
-
import { Address } from "viem";
|
|
5
|
-
interface CurvePoolData {
|
|
6
|
-
address: Address;
|
|
7
|
-
amplificationCoefficient: string;
|
|
8
|
-
assetType?: string;
|
|
9
|
-
assetTypeName: string;
|
|
10
|
-
coins: Array<{
|
|
11
|
-
address: Address;
|
|
12
|
-
decimals: string;
|
|
13
|
-
isBasePoolLpToken: boolean;
|
|
14
|
-
poolBalance: string;
|
|
15
|
-
symbol: string;
|
|
16
|
-
usdPrice: number;
|
|
17
|
-
}>;
|
|
18
|
-
coinsAddresses: Array<Address>;
|
|
19
|
-
decimals: Array<string>;
|
|
20
|
-
gaugeAddress: Address;
|
|
21
|
-
gaugeCrvApy: Array<number>;
|
|
22
|
-
gaugeRewards: Array<{
|
|
23
|
-
apy: number;
|
|
24
|
-
decimals: string;
|
|
25
|
-
gaugeAddress: Address;
|
|
26
|
-
name: string;
|
|
27
|
-
symbol: string;
|
|
28
|
-
tokenAddress: Address;
|
|
29
|
-
tokenPrice: number;
|
|
30
|
-
}>;
|
|
31
|
-
id: string;
|
|
32
|
-
implementation: string;
|
|
33
|
-
implementationAddress: Address;
|
|
34
|
-
isMetaPool: boolean;
|
|
35
|
-
lpTokenAddress: Address;
|
|
36
|
-
name: string;
|
|
37
|
-
poolUrls: {
|
|
38
|
-
deposit: Array<string>;
|
|
39
|
-
swap: Array<string>;
|
|
40
|
-
withdraw: Array<string>;
|
|
41
|
-
};
|
|
42
|
-
priceOracle: number;
|
|
43
|
-
symbol: string;
|
|
44
|
-
totalSupply: string;
|
|
45
|
-
usdTotal: number;
|
|
46
|
-
usdTotalExcludingBasePool: number;
|
|
47
|
-
virtualPrice: string;
|
|
48
|
-
}
|
|
49
|
-
type CurveAPYTokens = CurveLPToken | GearboxToken;
|
|
50
|
-
interface CurveAPY {
|
|
51
|
-
base: number;
|
|
52
|
-
crv: number;
|
|
53
|
-
gauge: Array<[string, number]>;
|
|
54
|
-
}
|
|
55
|
-
export type CurveAPYResult = PartialRecord<CurveAPYTokens, CurveAPY>;
|
|
56
|
-
export declare function getCurveAPY(network: NetworkType): Promise<{
|
|
57
|
-
curveAPY: CurveAPYResult;
|
|
58
|
-
gearAPY: CurveAPY;
|
|
59
|
-
}>;
|
|
60
|
-
export declare function getCurveGearPool(): Promise<CurvePoolData | undefined>;
|
|
61
|
-
export {};
|