@gearbox-protocol/sdk 9.11.1 → 9.12.1
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/cjs/plugins/adapters/AdaptersPlugin.js +127 -0
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +95 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +154 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +99 -0
- package/dist/cjs/plugins/adapters/abi/index.js +26 -0
- package/dist/cjs/plugins/adapters/abi/utils.js +86 -0
- package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +39 -0
- package/dist/cjs/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +51 -0
- package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/CamelotV3AdapterContract.js +56 -0
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +66 -0
- package/dist/cjs/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +66 -0
- package/dist/cjs/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +66 -0
- package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterDeposit.js +69 -0
- package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +61 -0
- package/dist/cjs/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +69 -0
- package/dist/cjs/plugins/adapters/contracts/DaiUsdsAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/ERC4626AdapterContract.js +63 -0
- package/dist/cjs/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +58 -0
- package/dist/cjs/plugins/adapters/contracts/FluidDexAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/InfraredVaultAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +56 -0
- package/dist/cjs/plugins/adapters/contracts/LidoV1AdapterContract.js +52 -0
- package/dist/cjs/plugins/adapters/contracts/MellowClaimerAdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/MellowDVVAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +78 -0
- package/dist/cjs/plugins/adapters/contracts/MellowVaultAdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/MellowWrapperAdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/StakingRewardsAdapterContract.js +73 -0
- package/dist/cjs/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/UniswapV2AdapterContract.js +77 -0
- package/dist/cjs/plugins/adapters/contracts/UniswapV3AdapterContract.js +177 -0
- package/dist/cjs/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +52 -0
- package/dist/cjs/plugins/adapters/contracts/VelodromeV2AdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/WstETHV1AdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/YearnV2AdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/index.js +90 -0
- package/dist/cjs/plugins/adapters/contracts/types.js +60 -0
- package/dist/cjs/plugins/adapters/index.js +28 -0
- package/dist/cjs/plugins/adapters/package.json +1 -0
- package/dist/cjs/plugins/adapters/types.js +63 -0
- package/dist/cjs/sdk/sdk-legacy/core/transactions.js +1 -1
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +137 -0
- package/dist/esm/plugins/adapters/abi/actionAbi.js +69 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +141 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +66 -0
- package/dist/esm/plugins/adapters/abi/index.js +3 -0
- package/dist/esm/plugins/adapters/abi/utils.js +64 -0
- package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +15 -0
- package/dist/esm/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +27 -0
- package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/CamelotV3AdapterContract.js +32 -0
- package/dist/esm/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +42 -0
- package/dist/esm/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +42 -0
- package/dist/esm/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +42 -0
- package/dist/esm/plugins/adapters/contracts/CurveV1AdapterDeposit.js +45 -0
- package/dist/esm/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +37 -0
- package/dist/esm/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +45 -0
- package/dist/esm/plugins/adapters/contracts/DaiUsdsAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +39 -0
- package/dist/esm/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +34 -0
- package/dist/esm/plugins/adapters/contracts/FluidDexAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/InfraredVaultAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +32 -0
- package/dist/esm/plugins/adapters/contracts/LidoV1AdapterContract.js +28 -0
- package/dist/esm/plugins/adapters/contracts/MellowClaimerAdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/MellowDVVAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +54 -0
- package/dist/esm/plugins/adapters/contracts/MellowVaultAdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/MellowWrapperAdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/StakingRewardsAdapterContract.js +49 -0
- package/dist/esm/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/UniswapV2AdapterContract.js +55 -0
- package/dist/esm/plugins/adapters/contracts/UniswapV3AdapterContract.js +155 -0
- package/dist/esm/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +28 -0
- package/dist/esm/plugins/adapters/contracts/VelodromeV2AdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/WstETHV1AdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/YearnV2AdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/index.js +35 -0
- package/dist/esm/plugins/adapters/contracts/types.js +33 -0
- package/dist/esm/plugins/adapters/index.js +4 -0
- package/dist/esm/plugins/adapters/package.json +1 -0
- package/dist/esm/plugins/adapters/types.js +39 -0
- package/dist/esm/sdk/sdk-legacy/core/transactions.js +1 -1
- package/dist/types/plugins/adapters/AdaptersPlugin.d.ts +11 -0
- package/dist/types/plugins/adapters/abi/actionAbi.d.ts +21 -0
- package/dist/types/plugins/adapters/abi/conctructorAbi.d.ts +7 -0
- package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +112 -0
- package/dist/types/plugins/adapters/abi/index.d.ts +3 -0
- package/dist/types/plugins/adapters/abi/utils.d.ts +30 -0
- package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +13 -0
- package/dist/types/plugins/adapters/contracts/BalancerV2VaultAdapterContract.d.ts +482 -0
- package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +198 -0
- package/dist/types/plugins/adapters/contracts/CamelotV3AdapterContract.d.ts +441 -0
- package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +284 -0
- package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +208 -0
- package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +534 -0
- package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +534 -0
- package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +534 -0
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterDeposit.d.ts +481 -0
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterStETHContract.d.ts +534 -0
- package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +535 -0
- package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +146 -0
- package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +190 -0
- package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +242 -0
- package/dist/types/plugins/adapters/contracts/EqualizerRouterAdapterContract.d.ts +225 -0
- package/dist/types/plugins/adapters/contracts/FluidDexAdapterContract.d.ts +130 -0
- package/dist/types/plugins/adapters/contracts/InfraredVaultAdapterContract.d.ts +198 -0
- package/dist/types/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.d.ts +396 -0
- package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +121 -0
- package/dist/types/plugins/adapters/contracts/MellowClaimerAdapterContract.d.ts +257 -0
- package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +232 -0
- package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +195 -0
- package/dist/types/plugins/adapters/contracts/MellowVaultAdapterContract.d.ts +203 -0
- package/dist/types/plugins/adapters/contracts/MellowWrapperAdapterContract.d.ts +161 -0
- package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +823 -0
- package/dist/types/plugins/adapters/contracts/StakingRewardsAdapterContract.d.ts +210 -0
- package/dist/types/plugins/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +349 -0
- package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +216 -0
- package/dist/types/plugins/adapters/contracts/UniswapV3AdapterContract.d.ts +384 -0
- package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +269 -0
- package/dist/types/plugins/adapters/contracts/VelodromeV2AdapterContract.d.ts +247 -0
- package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +127 -0
- package/dist/types/plugins/adapters/contracts/YearnV2AdapterContract.d.ts +185 -0
- package/dist/types/plugins/adapters/contracts/index.d.ts +35 -0
- package/dist/types/plugins/adapters/contracts/types.d.ts +23 -0
- package/dist/types/plugins/adapters/index.d.ts +4 -0
- package/dist/types/plugins/adapters/types.d.ts +39 -0
- package/package.json +2 -1
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
+
declare const abi: readonly [{
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly name: "contractType";
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly internalType: "bytes32";
|
|
12
|
+
readonly type: "bytes32";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly name: "creditManager";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly name: "token";
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "amount";
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}];
|
|
36
|
+
readonly name: "depositPhantomToken";
|
|
37
|
+
readonly outputs: readonly [{
|
|
38
|
+
readonly name: "";
|
|
39
|
+
readonly internalType: "bool";
|
|
40
|
+
readonly type: "bool";
|
|
41
|
+
}];
|
|
42
|
+
readonly stateMutability: "nonpayable";
|
|
43
|
+
}, {
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
readonly inputs: readonly [];
|
|
46
|
+
readonly name: "getReward";
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "useSafePrices";
|
|
49
|
+
readonly internalType: "bool";
|
|
50
|
+
readonly type: "bool";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "nonpayable";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly inputs: readonly [];
|
|
56
|
+
readonly name: "referral";
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly name: "";
|
|
59
|
+
readonly internalType: "uint16";
|
|
60
|
+
readonly type: "uint16";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "view";
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly inputs: readonly [];
|
|
66
|
+
readonly name: "rewardsToken";
|
|
67
|
+
readonly outputs: readonly [{
|
|
68
|
+
readonly name: "";
|
|
69
|
+
readonly internalType: "address";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
}];
|
|
72
|
+
readonly stateMutability: "view";
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
readonly inputs: readonly [];
|
|
76
|
+
readonly name: "serialize";
|
|
77
|
+
readonly outputs: readonly [{
|
|
78
|
+
readonly name: "serializedData";
|
|
79
|
+
readonly internalType: "bytes";
|
|
80
|
+
readonly type: "bytes";
|
|
81
|
+
}];
|
|
82
|
+
readonly stateMutability: "view";
|
|
83
|
+
}, {
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
readonly inputs: readonly [{
|
|
86
|
+
readonly name: "amount";
|
|
87
|
+
readonly internalType: "uint256";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}];
|
|
90
|
+
readonly name: "stake";
|
|
91
|
+
readonly outputs: readonly [{
|
|
92
|
+
readonly name: "useSafePrices";
|
|
93
|
+
readonly internalType: "bool";
|
|
94
|
+
readonly type: "bool";
|
|
95
|
+
}];
|
|
96
|
+
readonly stateMutability: "nonpayable";
|
|
97
|
+
}, {
|
|
98
|
+
readonly type: "function";
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly name: "leftoverAmount";
|
|
101
|
+
readonly internalType: "uint256";
|
|
102
|
+
readonly type: "uint256";
|
|
103
|
+
}];
|
|
104
|
+
readonly name: "stakeDiff";
|
|
105
|
+
readonly outputs: readonly [{
|
|
106
|
+
readonly name: "useSafePrices";
|
|
107
|
+
readonly internalType: "bool";
|
|
108
|
+
readonly type: "bool";
|
|
109
|
+
}];
|
|
110
|
+
readonly stateMutability: "nonpayable";
|
|
111
|
+
}, {
|
|
112
|
+
readonly type: "function";
|
|
113
|
+
readonly inputs: readonly [];
|
|
114
|
+
readonly name: "stakedPhantomToken";
|
|
115
|
+
readonly outputs: readonly [{
|
|
116
|
+
readonly name: "";
|
|
117
|
+
readonly internalType: "address";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
}];
|
|
120
|
+
readonly stateMutability: "view";
|
|
121
|
+
}, {
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
readonly name: "stakingToken";
|
|
125
|
+
readonly outputs: readonly [{
|
|
126
|
+
readonly name: "";
|
|
127
|
+
readonly internalType: "address";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
}];
|
|
130
|
+
readonly stateMutability: "view";
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
readonly inputs: readonly [];
|
|
134
|
+
readonly name: "targetContract";
|
|
135
|
+
readonly outputs: readonly [{
|
|
136
|
+
readonly name: "";
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
}];
|
|
140
|
+
readonly stateMutability: "view";
|
|
141
|
+
}, {
|
|
142
|
+
readonly type: "function";
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly name: "version";
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly internalType: "uint256";
|
|
148
|
+
readonly type: "uint256";
|
|
149
|
+
}];
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
}, {
|
|
152
|
+
readonly type: "function";
|
|
153
|
+
readonly inputs: readonly [{
|
|
154
|
+
readonly name: "amount";
|
|
155
|
+
readonly internalType: "uint256";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}];
|
|
158
|
+
readonly name: "withdraw";
|
|
159
|
+
readonly outputs: readonly [{
|
|
160
|
+
readonly name: "useSafePrices";
|
|
161
|
+
readonly internalType: "bool";
|
|
162
|
+
readonly type: "bool";
|
|
163
|
+
}];
|
|
164
|
+
readonly stateMutability: "nonpayable";
|
|
165
|
+
}, {
|
|
166
|
+
readonly type: "function";
|
|
167
|
+
readonly inputs: readonly [{
|
|
168
|
+
readonly name: "leftoverAmount";
|
|
169
|
+
readonly internalType: "uint256";
|
|
170
|
+
readonly type: "uint256";
|
|
171
|
+
}];
|
|
172
|
+
readonly name: "withdrawDiff";
|
|
173
|
+
readonly outputs: readonly [{
|
|
174
|
+
readonly name: "useSafePrices";
|
|
175
|
+
readonly internalType: "bool";
|
|
176
|
+
readonly type: "bool";
|
|
177
|
+
}];
|
|
178
|
+
readonly stateMutability: "nonpayable";
|
|
179
|
+
}, {
|
|
180
|
+
readonly type: "function";
|
|
181
|
+
readonly inputs: readonly [{
|
|
182
|
+
readonly name: "token";
|
|
183
|
+
readonly internalType: "address";
|
|
184
|
+
readonly type: "address";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "amount";
|
|
187
|
+
readonly internalType: "uint256";
|
|
188
|
+
readonly type: "uint256";
|
|
189
|
+
}];
|
|
190
|
+
readonly name: "withdrawPhantomToken";
|
|
191
|
+
readonly outputs: readonly [{
|
|
192
|
+
readonly name: "useSafePrices";
|
|
193
|
+
readonly internalType: "bool";
|
|
194
|
+
readonly type: "bool";
|
|
195
|
+
}];
|
|
196
|
+
readonly stateMutability: "nonpayable";
|
|
197
|
+
}, {
|
|
198
|
+
readonly type: "error";
|
|
199
|
+
readonly inputs: readonly [];
|
|
200
|
+
readonly name: "IncorrectStakedPhantomTokenException";
|
|
201
|
+
}];
|
|
202
|
+
type abi = typeof abi;
|
|
203
|
+
export declare class StakingRewardsAdapterContract extends AbstractAdapterContract<typeof abi> {
|
|
204
|
+
readonly stakingToken: Address;
|
|
205
|
+
readonly rewardsToken: Address;
|
|
206
|
+
readonly stakedPhantomToken: Address;
|
|
207
|
+
readonly referral: number;
|
|
208
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
209
|
+
}
|
|
210
|
+
export {};
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
+
import type { TraderJoePoolVersion } from "./types.js";
|
|
6
|
+
declare const abi: readonly [{
|
|
7
|
+
readonly type: "function";
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly name: "contractType";
|
|
10
|
+
readonly outputs: readonly [{
|
|
11
|
+
readonly name: "";
|
|
12
|
+
readonly internalType: "bytes32";
|
|
13
|
+
readonly type: "bytes32";
|
|
14
|
+
}];
|
|
15
|
+
readonly stateMutability: "view";
|
|
16
|
+
}, {
|
|
17
|
+
readonly type: "function";
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly name: "creditManager";
|
|
20
|
+
readonly outputs: readonly [{
|
|
21
|
+
readonly name: "";
|
|
22
|
+
readonly internalType: "address";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}];
|
|
25
|
+
readonly stateMutability: "view";
|
|
26
|
+
}, {
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
readonly inputs: readonly [{
|
|
29
|
+
readonly name: "token0";
|
|
30
|
+
readonly internalType: "address";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "token1";
|
|
34
|
+
readonly internalType: "address";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "binStep";
|
|
38
|
+
readonly internalType: "uint256";
|
|
39
|
+
readonly type: "uint256";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "poolVersion";
|
|
42
|
+
readonly internalType: "enum Version";
|
|
43
|
+
readonly type: "uint8";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "isPoolAllowed";
|
|
46
|
+
readonly outputs: readonly [{
|
|
47
|
+
readonly name: "";
|
|
48
|
+
readonly internalType: "bool";
|
|
49
|
+
readonly type: "bool";
|
|
50
|
+
}];
|
|
51
|
+
readonly stateMutability: "view";
|
|
52
|
+
}, {
|
|
53
|
+
readonly type: "function";
|
|
54
|
+
readonly inputs: readonly [];
|
|
55
|
+
readonly name: "serialize";
|
|
56
|
+
readonly outputs: readonly [{
|
|
57
|
+
readonly name: "serializedData";
|
|
58
|
+
readonly internalType: "bytes";
|
|
59
|
+
readonly type: "bytes";
|
|
60
|
+
}];
|
|
61
|
+
readonly stateMutability: "view";
|
|
62
|
+
}, {
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly name: "pools";
|
|
66
|
+
readonly internalType: "struct TraderJoePoolStatus[]";
|
|
67
|
+
readonly type: "tuple[]";
|
|
68
|
+
readonly components: readonly [{
|
|
69
|
+
readonly name: "token0";
|
|
70
|
+
readonly internalType: "address";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "token1";
|
|
74
|
+
readonly internalType: "address";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "binStep";
|
|
78
|
+
readonly internalType: "uint256";
|
|
79
|
+
readonly type: "uint256";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "poolVersion";
|
|
82
|
+
readonly internalType: "enum Version";
|
|
83
|
+
readonly type: "uint8";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "allowed";
|
|
86
|
+
readonly internalType: "bool";
|
|
87
|
+
readonly type: "bool";
|
|
88
|
+
}];
|
|
89
|
+
}];
|
|
90
|
+
readonly name: "setPoolStatusBatch";
|
|
91
|
+
readonly outputs: readonly [];
|
|
92
|
+
readonly stateMutability: "nonpayable";
|
|
93
|
+
}, {
|
|
94
|
+
readonly type: "function";
|
|
95
|
+
readonly inputs: readonly [];
|
|
96
|
+
readonly name: "supportedPools";
|
|
97
|
+
readonly outputs: readonly [{
|
|
98
|
+
readonly name: "pools";
|
|
99
|
+
readonly internalType: "struct TraderJoePool[]";
|
|
100
|
+
readonly type: "tuple[]";
|
|
101
|
+
readonly components: readonly [{
|
|
102
|
+
readonly name: "token0";
|
|
103
|
+
readonly internalType: "address";
|
|
104
|
+
readonly type: "address";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "token1";
|
|
107
|
+
readonly internalType: "address";
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "binStep";
|
|
111
|
+
readonly internalType: "uint256";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "poolVersion";
|
|
115
|
+
readonly internalType: "enum Version";
|
|
116
|
+
readonly type: "uint8";
|
|
117
|
+
}];
|
|
118
|
+
}];
|
|
119
|
+
readonly stateMutability: "view";
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "function";
|
|
122
|
+
readonly inputs: readonly [{
|
|
123
|
+
readonly name: "leftoverAmount";
|
|
124
|
+
readonly internalType: "uint256";
|
|
125
|
+
readonly type: "uint256";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "rateMinRAY";
|
|
128
|
+
readonly internalType: "uint256";
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "path";
|
|
132
|
+
readonly internalType: "struct Path";
|
|
133
|
+
readonly type: "tuple";
|
|
134
|
+
readonly components: readonly [{
|
|
135
|
+
readonly name: "pairBinSteps";
|
|
136
|
+
readonly internalType: "uint256[]";
|
|
137
|
+
readonly type: "uint256[]";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "versions";
|
|
140
|
+
readonly internalType: "enum Version[]";
|
|
141
|
+
readonly type: "uint8[]";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "tokenPath";
|
|
144
|
+
readonly internalType: "contract IERC20[]";
|
|
145
|
+
readonly type: "address[]";
|
|
146
|
+
}];
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "deadline";
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
readonly type: "uint256";
|
|
151
|
+
}];
|
|
152
|
+
readonly name: "swapDiffTokensForTokens";
|
|
153
|
+
readonly outputs: readonly [{
|
|
154
|
+
readonly name: "useSafePrices";
|
|
155
|
+
readonly internalType: "bool";
|
|
156
|
+
readonly type: "bool";
|
|
157
|
+
}];
|
|
158
|
+
readonly stateMutability: "nonpayable";
|
|
159
|
+
}, {
|
|
160
|
+
readonly type: "function";
|
|
161
|
+
readonly inputs: readonly [{
|
|
162
|
+
readonly name: "leftoverAmount";
|
|
163
|
+
readonly internalType: "uint256";
|
|
164
|
+
readonly type: "uint256";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "rateMinRAY";
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "path";
|
|
171
|
+
readonly internalType: "struct Path";
|
|
172
|
+
readonly type: "tuple";
|
|
173
|
+
readonly components: readonly [{
|
|
174
|
+
readonly name: "pairBinSteps";
|
|
175
|
+
readonly internalType: "uint256[]";
|
|
176
|
+
readonly type: "uint256[]";
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "versions";
|
|
179
|
+
readonly internalType: "enum Version[]";
|
|
180
|
+
readonly type: "uint8[]";
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "tokenPath";
|
|
183
|
+
readonly internalType: "contract IERC20[]";
|
|
184
|
+
readonly type: "address[]";
|
|
185
|
+
}];
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "deadline";
|
|
188
|
+
readonly internalType: "uint256";
|
|
189
|
+
readonly type: "uint256";
|
|
190
|
+
}];
|
|
191
|
+
readonly name: "swapDiffTokensForTokensSupportingFeeOnTransferTokens";
|
|
192
|
+
readonly outputs: readonly [{
|
|
193
|
+
readonly name: "useSafePrices";
|
|
194
|
+
readonly internalType: "bool";
|
|
195
|
+
readonly type: "bool";
|
|
196
|
+
}];
|
|
197
|
+
readonly stateMutability: "nonpayable";
|
|
198
|
+
}, {
|
|
199
|
+
readonly type: "function";
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly name: "amountIn";
|
|
202
|
+
readonly internalType: "uint256";
|
|
203
|
+
readonly type: "uint256";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "amountOutMin";
|
|
206
|
+
readonly internalType: "uint256";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
}, {
|
|
209
|
+
readonly name: "path";
|
|
210
|
+
readonly internalType: "struct Path";
|
|
211
|
+
readonly type: "tuple";
|
|
212
|
+
readonly components: readonly [{
|
|
213
|
+
readonly name: "pairBinSteps";
|
|
214
|
+
readonly internalType: "uint256[]";
|
|
215
|
+
readonly type: "uint256[]";
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "versions";
|
|
218
|
+
readonly internalType: "enum Version[]";
|
|
219
|
+
readonly type: "uint8[]";
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "tokenPath";
|
|
222
|
+
readonly internalType: "contract IERC20[]";
|
|
223
|
+
readonly type: "address[]";
|
|
224
|
+
}];
|
|
225
|
+
}, {
|
|
226
|
+
readonly name: "_to";
|
|
227
|
+
readonly internalType: "address";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "deadline";
|
|
231
|
+
readonly internalType: "uint256";
|
|
232
|
+
readonly type: "uint256";
|
|
233
|
+
}];
|
|
234
|
+
readonly name: "swapExactTokensForTokens";
|
|
235
|
+
readonly outputs: readonly [{
|
|
236
|
+
readonly name: "useSafePrices";
|
|
237
|
+
readonly internalType: "bool";
|
|
238
|
+
readonly type: "bool";
|
|
239
|
+
}];
|
|
240
|
+
readonly stateMutability: "nonpayable";
|
|
241
|
+
}, {
|
|
242
|
+
readonly type: "function";
|
|
243
|
+
readonly inputs: readonly [{
|
|
244
|
+
readonly name: "amountIn";
|
|
245
|
+
readonly internalType: "uint256";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
}, {
|
|
248
|
+
readonly name: "amountOutMin";
|
|
249
|
+
readonly internalType: "uint256";
|
|
250
|
+
readonly type: "uint256";
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "path";
|
|
253
|
+
readonly internalType: "struct Path";
|
|
254
|
+
readonly type: "tuple";
|
|
255
|
+
readonly components: readonly [{
|
|
256
|
+
readonly name: "pairBinSteps";
|
|
257
|
+
readonly internalType: "uint256[]";
|
|
258
|
+
readonly type: "uint256[]";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "versions";
|
|
261
|
+
readonly internalType: "enum Version[]";
|
|
262
|
+
readonly type: "uint8[]";
|
|
263
|
+
}, {
|
|
264
|
+
readonly name: "tokenPath";
|
|
265
|
+
readonly internalType: "contract IERC20[]";
|
|
266
|
+
readonly type: "address[]";
|
|
267
|
+
}];
|
|
268
|
+
}, {
|
|
269
|
+
readonly name: "_to";
|
|
270
|
+
readonly internalType: "address";
|
|
271
|
+
readonly type: "address";
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "deadline";
|
|
274
|
+
readonly internalType: "uint256";
|
|
275
|
+
readonly type: "uint256";
|
|
276
|
+
}];
|
|
277
|
+
readonly name: "swapExactTokensForTokensSupportingFeeOnTransferTokens";
|
|
278
|
+
readonly outputs: readonly [{
|
|
279
|
+
readonly name: "useSafePrices";
|
|
280
|
+
readonly internalType: "bool";
|
|
281
|
+
readonly type: "bool";
|
|
282
|
+
}];
|
|
283
|
+
readonly stateMutability: "nonpayable";
|
|
284
|
+
}, {
|
|
285
|
+
readonly type: "function";
|
|
286
|
+
readonly inputs: readonly [];
|
|
287
|
+
readonly name: "targetContract";
|
|
288
|
+
readonly outputs: readonly [{
|
|
289
|
+
readonly name: "";
|
|
290
|
+
readonly internalType: "address";
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
}];
|
|
293
|
+
readonly stateMutability: "view";
|
|
294
|
+
}, {
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
readonly inputs: readonly [];
|
|
297
|
+
readonly name: "version";
|
|
298
|
+
readonly outputs: readonly [{
|
|
299
|
+
readonly name: "";
|
|
300
|
+
readonly internalType: "uint256";
|
|
301
|
+
readonly type: "uint256";
|
|
302
|
+
}];
|
|
303
|
+
readonly stateMutability: "view";
|
|
304
|
+
}, {
|
|
305
|
+
readonly type: "event";
|
|
306
|
+
readonly anonymous: false;
|
|
307
|
+
readonly inputs: readonly [{
|
|
308
|
+
readonly name: "token0";
|
|
309
|
+
readonly internalType: "address";
|
|
310
|
+
readonly type: "address";
|
|
311
|
+
readonly indexed: true;
|
|
312
|
+
}, {
|
|
313
|
+
readonly name: "token1";
|
|
314
|
+
readonly internalType: "address";
|
|
315
|
+
readonly type: "address";
|
|
316
|
+
readonly indexed: true;
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "binStep";
|
|
319
|
+
readonly internalType: "uint256";
|
|
320
|
+
readonly type: "uint256";
|
|
321
|
+
readonly indexed: false;
|
|
322
|
+
}, {
|
|
323
|
+
readonly name: "poolVersion";
|
|
324
|
+
readonly internalType: "enum Version";
|
|
325
|
+
readonly type: "uint8";
|
|
326
|
+
readonly indexed: false;
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "allowed";
|
|
329
|
+
readonly internalType: "bool";
|
|
330
|
+
readonly type: "bool";
|
|
331
|
+
readonly indexed: false;
|
|
332
|
+
}];
|
|
333
|
+
readonly name: "SetPoolStatus";
|
|
334
|
+
}, {
|
|
335
|
+
readonly type: "error";
|
|
336
|
+
readonly inputs: readonly [];
|
|
337
|
+
readonly name: "InvalidPathException";
|
|
338
|
+
}];
|
|
339
|
+
type abi = typeof abi;
|
|
340
|
+
export declare class TraderJoeRouterAdapterContract extends AbstractAdapterContract<abi> {
|
|
341
|
+
readonly supportedPools: {
|
|
342
|
+
token0: Address;
|
|
343
|
+
token1: Address;
|
|
344
|
+
binStep: number;
|
|
345
|
+
poolVersion: TraderJoePoolVersion;
|
|
346
|
+
}[];
|
|
347
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
348
|
+
}
|
|
349
|
+
export {};
|