@gearbox-protocol/sdk 11.2.1 → 11.3.0
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/abi/router/infinifiWorker.js +541 -0
- package/dist/cjs/abi/router/uniswapV4Worker.js +574 -0
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +9 -0
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +9 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +17 -8
- package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +4 -4
- package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +2 -1
- package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +58 -0
- package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -1
- package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -1
- package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +62 -0
- package/dist/cjs/plugins/adapters/types.js +3 -0
- package/dist/esm/abi/router/infinifiWorker.js +517 -0
- package/dist/esm/abi/router/uniswapV4Worker.js +550 -0
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +9 -0
- package/dist/esm/plugins/adapters/abi/actionAbi.js +9 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +18 -9
- package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +3 -3
- package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +2 -1
- package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +34 -0
- package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -1
- package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -1
- package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +38 -0
- package/dist/esm/plugins/adapters/types.js +3 -0
- package/dist/types/abi/router/infinifiWorker.d.ts +726 -0
- package/dist/types/abi/router/uniswapV4Worker.d.ts +774 -0
- package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +2 -2
- package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +139 -13
- package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +117 -1
- package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +351 -0
- package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +208 -0
- package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +180 -1
- package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +276 -1
- package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +559 -0
- package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +320 -0
- package/dist/types/plugins/adapters/types.d.ts +4 -1
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ export declare const BASIC_ADAPTER_ABI: readonly [{
|
|
|
5
5
|
readonly type: "address";
|
|
6
6
|
readonly name: "target";
|
|
7
7
|
}];
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const PHANTOM_TOKEN_ADAPTER_ABI: readonly [{
|
|
9
9
|
readonly type: "address";
|
|
10
10
|
readonly name: "creditManager";
|
|
11
11
|
}, {
|
|
@@ -13,7 +13,7 @@ export declare const STAKED_TOKEN_ADAPTER_ABI: readonly [{
|
|
|
13
13
|
readonly name: "target";
|
|
14
14
|
}, {
|
|
15
15
|
readonly type: "address";
|
|
16
|
-
readonly name: "
|
|
16
|
+
readonly name: "phantomToken";
|
|
17
17
|
}];
|
|
18
18
|
export declare const LP_ADAPTER_ABI: readonly [{
|
|
19
19
|
readonly type: "address";
|
|
@@ -4,6 +4,58 @@ import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
|
4
4
|
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
5
|
import type { BalancerV3PoolStatus } from "./types.js";
|
|
6
6
|
declare const abi: readonly [{
|
|
7
|
+
readonly type: "function";
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly name: "pool";
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly name: "exactAmountsIn";
|
|
14
|
+
readonly internalType: "uint256[]";
|
|
15
|
+
readonly type: "uint256[]";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "minBptAmountOut";
|
|
18
|
+
readonly internalType: "uint256";
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "";
|
|
22
|
+
readonly internalType: "bool";
|
|
23
|
+
readonly type: "bool";
|
|
24
|
+
}, {
|
|
25
|
+
readonly name: "";
|
|
26
|
+
readonly internalType: "bytes";
|
|
27
|
+
readonly type: "bytes";
|
|
28
|
+
}];
|
|
29
|
+
readonly name: "addLiquidityUnbalanced";
|
|
30
|
+
readonly outputs: readonly [{
|
|
31
|
+
readonly name: "";
|
|
32
|
+
readonly internalType: "bool";
|
|
33
|
+
readonly type: "bool";
|
|
34
|
+
}];
|
|
35
|
+
readonly stateMutability: "nonpayable";
|
|
36
|
+
}, {
|
|
37
|
+
readonly type: "function";
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly name: "pool";
|
|
40
|
+
readonly internalType: "address";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "leftoverAmounts";
|
|
44
|
+
readonly internalType: "uint256[]";
|
|
45
|
+
readonly type: "uint256[]";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "minRatesRAY";
|
|
48
|
+
readonly internalType: "uint256[]";
|
|
49
|
+
readonly type: "uint256[]";
|
|
50
|
+
}];
|
|
51
|
+
readonly name: "addLiquidityUnbalancedDiff";
|
|
52
|
+
readonly outputs: readonly [{
|
|
53
|
+
readonly name: "";
|
|
54
|
+
readonly internalType: "bool";
|
|
55
|
+
readonly type: "bool";
|
|
56
|
+
}];
|
|
57
|
+
readonly stateMutability: "nonpayable";
|
|
58
|
+
}, {
|
|
7
59
|
readonly type: "function";
|
|
8
60
|
readonly inputs: readonly [];
|
|
9
61
|
readonly name: "contractType";
|
|
@@ -29,8 +81,31 @@ declare const abi: readonly [{
|
|
|
29
81
|
readonly name: "getAllowedPools";
|
|
30
82
|
readonly outputs: readonly [{
|
|
31
83
|
readonly name: "pools";
|
|
32
|
-
readonly internalType: "
|
|
33
|
-
readonly type: "
|
|
84
|
+
readonly internalType: "struct BalancerV3PoolStatus[]";
|
|
85
|
+
readonly type: "tuple[]";
|
|
86
|
+
readonly components: readonly [{
|
|
87
|
+
readonly name: "pool";
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
readonly type: "address";
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "status";
|
|
92
|
+
readonly internalType: "enum PoolStatus";
|
|
93
|
+
readonly type: "uint8";
|
|
94
|
+
}];
|
|
95
|
+
}];
|
|
96
|
+
readonly stateMutability: "view";
|
|
97
|
+
}, {
|
|
98
|
+
readonly type: "function";
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly name: "pool";
|
|
101
|
+
readonly internalType: "address";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}];
|
|
104
|
+
readonly name: "poolStatus";
|
|
105
|
+
readonly outputs: readonly [{
|
|
106
|
+
readonly name: "";
|
|
107
|
+
readonly internalType: "enum PoolStatus";
|
|
108
|
+
readonly type: "uint8";
|
|
34
109
|
}];
|
|
35
110
|
readonly stateMutability: "view";
|
|
36
111
|
}, {
|
|
@@ -39,14 +114,60 @@ declare const abi: readonly [{
|
|
|
39
114
|
readonly name: "pool";
|
|
40
115
|
readonly internalType: "address";
|
|
41
116
|
readonly type: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "leftoverAmount";
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "tokenOut";
|
|
123
|
+
readonly internalType: "contract IERC20";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "minRateRAY";
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
readonly type: "uint256";
|
|
42
129
|
}];
|
|
43
|
-
readonly name: "
|
|
130
|
+
readonly name: "removeLiquiditySingleTokenDiff";
|
|
44
131
|
readonly outputs: readonly [{
|
|
45
132
|
readonly name: "";
|
|
46
133
|
readonly internalType: "bool";
|
|
47
134
|
readonly type: "bool";
|
|
48
135
|
}];
|
|
49
|
-
readonly stateMutability: "
|
|
136
|
+
readonly stateMutability: "nonpayable";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
readonly inputs: readonly [{
|
|
140
|
+
readonly name: "pool";
|
|
141
|
+
readonly internalType: "address";
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "exactBptAmountIn";
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "tokenOut";
|
|
149
|
+
readonly internalType: "contract IERC20";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "minAmountOut";
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
readonly type: "uint256";
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "";
|
|
157
|
+
readonly internalType: "bool";
|
|
158
|
+
readonly type: "bool";
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "";
|
|
161
|
+
readonly internalType: "bytes";
|
|
162
|
+
readonly type: "bytes";
|
|
163
|
+
}];
|
|
164
|
+
readonly name: "removeLiquiditySingleTokenExactIn";
|
|
165
|
+
readonly outputs: readonly [{
|
|
166
|
+
readonly name: "";
|
|
167
|
+
readonly internalType: "bool";
|
|
168
|
+
readonly type: "bool";
|
|
169
|
+
}];
|
|
170
|
+
readonly stateMutability: "nonpayable";
|
|
50
171
|
}, {
|
|
51
172
|
readonly type: "function";
|
|
52
173
|
readonly inputs: readonly [];
|
|
@@ -60,13 +181,18 @@ declare const abi: readonly [{
|
|
|
60
181
|
}, {
|
|
61
182
|
readonly type: "function";
|
|
62
183
|
readonly inputs: readonly [{
|
|
63
|
-
readonly name: "pools";
|
|
64
|
-
readonly internalType: "address[]";
|
|
65
|
-
readonly type: "address[]";
|
|
66
|
-
}, {
|
|
67
184
|
readonly name: "statuses";
|
|
68
|
-
readonly internalType: "
|
|
69
|
-
readonly type: "
|
|
185
|
+
readonly internalType: "struct BalancerV3PoolStatus[]";
|
|
186
|
+
readonly type: "tuple[]";
|
|
187
|
+
readonly components: readonly [{
|
|
188
|
+
readonly name: "pool";
|
|
189
|
+
readonly internalType: "address";
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "status";
|
|
193
|
+
readonly internalType: "enum PoolStatus";
|
|
194
|
+
readonly type: "uint8";
|
|
195
|
+
}];
|
|
70
196
|
}];
|
|
71
197
|
readonly name: "setPoolStatusBatch";
|
|
72
198
|
readonly outputs: readonly [];
|
|
@@ -176,9 +302,9 @@ declare const abi: readonly [{
|
|
|
176
302
|
readonly type: "address";
|
|
177
303
|
readonly indexed: true;
|
|
178
304
|
}, {
|
|
179
|
-
readonly name: "
|
|
180
|
-
readonly internalType: "
|
|
181
|
-
readonly type: "
|
|
305
|
+
readonly name: "status";
|
|
306
|
+
readonly internalType: "enum PoolStatus";
|
|
307
|
+
readonly type: "uint8";
|
|
182
308
|
readonly indexed: false;
|
|
183
309
|
}];
|
|
184
310
|
readonly name: "SetPoolStatus";
|
|
@@ -2,7 +2,123 @@ import { type Address } from "viem";
|
|
|
2
2
|
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
3
|
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
4
|
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
-
declare const abi: readonly [
|
|
5
|
+
declare const abi: readonly [{
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly name: "balancerPoolToken";
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly inputs: readonly [{
|
|
18
|
+
readonly name: "amount";
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly type: "uint256";
|
|
21
|
+
}];
|
|
22
|
+
readonly name: "burn";
|
|
23
|
+
readonly outputs: readonly [{
|
|
24
|
+
readonly name: "useSafePrices";
|
|
25
|
+
readonly internalType: "bool";
|
|
26
|
+
readonly type: "bool";
|
|
27
|
+
}];
|
|
28
|
+
readonly stateMutability: "nonpayable";
|
|
29
|
+
}, {
|
|
30
|
+
readonly type: "function";
|
|
31
|
+
readonly inputs: readonly [{
|
|
32
|
+
readonly name: "leftoverAmount";
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}];
|
|
36
|
+
readonly name: "burnDiff";
|
|
37
|
+
readonly outputs: readonly [{
|
|
38
|
+
readonly name: "useSafePrices";
|
|
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: "contractType";
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly internalType: "bytes32";
|
|
50
|
+
readonly type: "bytes32";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "view";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly inputs: readonly [];
|
|
56
|
+
readonly name: "creditManager";
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly name: "";
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "view";
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly inputs: readonly [{
|
|
66
|
+
readonly name: "amount";
|
|
67
|
+
readonly internalType: "uint256";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}];
|
|
70
|
+
readonly name: "mint";
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly name: "useSafePrices";
|
|
73
|
+
readonly internalType: "bool";
|
|
74
|
+
readonly type: "bool";
|
|
75
|
+
}];
|
|
76
|
+
readonly stateMutability: "nonpayable";
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "function";
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly name: "leftoverAmount";
|
|
81
|
+
readonly internalType: "uint256";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "mintDiff";
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly name: "useSafePrices";
|
|
87
|
+
readonly internalType: "bool";
|
|
88
|
+
readonly type: "bool";
|
|
89
|
+
}];
|
|
90
|
+
readonly stateMutability: "nonpayable";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly inputs: readonly [];
|
|
94
|
+
readonly name: "serialize";
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly name: "serializedData";
|
|
97
|
+
readonly internalType: "bytes";
|
|
98
|
+
readonly type: "bytes";
|
|
99
|
+
}];
|
|
100
|
+
readonly stateMutability: "view";
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "function";
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly name: "targetContract";
|
|
105
|
+
readonly outputs: readonly [{
|
|
106
|
+
readonly name: "";
|
|
107
|
+
readonly internalType: "address";
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
}];
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
}, {
|
|
112
|
+
readonly type: "function";
|
|
113
|
+
readonly inputs: readonly [];
|
|
114
|
+
readonly name: "version";
|
|
115
|
+
readonly outputs: readonly [{
|
|
116
|
+
readonly name: "";
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
}];
|
|
120
|
+
readonly stateMutability: "view";
|
|
121
|
+
}];
|
|
6
122
|
type abi = typeof abi;
|
|
7
123
|
export declare class BalancerV3WrapperAdapterContract extends AbstractAdapterContract<abi> {
|
|
8
124
|
readonly balancerPoolToken: Address;
|
|
@@ -0,0 +1,351 @@
|
|
|
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: "claimRedemption";
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "useSafePrices";
|
|
11
|
+
readonly internalType: "bool";
|
|
12
|
+
readonly type: "bool";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "nonpayable";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly name: "contractType";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly internalType: "bytes32";
|
|
22
|
+
readonly type: "bytes32";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly name: "amount";
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
readonly type: "uint256";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "unwindingEpochs";
|
|
33
|
+
readonly internalType: "uint32";
|
|
34
|
+
readonly type: "uint32";
|
|
35
|
+
}];
|
|
36
|
+
readonly name: "createPosition";
|
|
37
|
+
readonly outputs: readonly [{
|
|
38
|
+
readonly name: "useSafePrices";
|
|
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: "leftoverAmount";
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
readonly type: "uint256";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "unwindingEpochs";
|
|
51
|
+
readonly internalType: "uint32";
|
|
52
|
+
readonly type: "uint32";
|
|
53
|
+
}];
|
|
54
|
+
readonly name: "createPositionDiff";
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly name: "useSafePrices";
|
|
57
|
+
readonly internalType: "bool";
|
|
58
|
+
readonly type: "bool";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "nonpayable";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "creditManager";
|
|
65
|
+
readonly outputs: readonly [{
|
|
66
|
+
readonly name: "";
|
|
67
|
+
readonly internalType: "address";
|
|
68
|
+
readonly type: "address";
|
|
69
|
+
}];
|
|
70
|
+
readonly stateMutability: "view";
|
|
71
|
+
}, {
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
readonly inputs: readonly [];
|
|
74
|
+
readonly name: "getAllowedLockedTokens";
|
|
75
|
+
readonly outputs: readonly [{
|
|
76
|
+
readonly name: "";
|
|
77
|
+
readonly internalType: "address[]";
|
|
78
|
+
readonly type: "address[]";
|
|
79
|
+
}];
|
|
80
|
+
readonly stateMutability: "view";
|
|
81
|
+
}, {
|
|
82
|
+
readonly type: "function";
|
|
83
|
+
readonly inputs: readonly [];
|
|
84
|
+
readonly name: "iusd";
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly name: "";
|
|
87
|
+
readonly internalType: "address";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
}];
|
|
90
|
+
readonly stateMutability: "view";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly name: "lockedToken";
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
readonly type: "address";
|
|
97
|
+
}];
|
|
98
|
+
readonly name: "lockedTokenToUnwindingEpoch";
|
|
99
|
+
readonly outputs: readonly [{
|
|
100
|
+
readonly name: "";
|
|
101
|
+
readonly internalType: "uint32";
|
|
102
|
+
readonly type: "uint32";
|
|
103
|
+
}];
|
|
104
|
+
readonly stateMutability: "view";
|
|
105
|
+
}, {
|
|
106
|
+
readonly type: "function";
|
|
107
|
+
readonly inputs: readonly [{
|
|
108
|
+
readonly name: "to";
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "amount";
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
readonly type: "uint256";
|
|
115
|
+
}];
|
|
116
|
+
readonly name: "mint";
|
|
117
|
+
readonly outputs: readonly [{
|
|
118
|
+
readonly name: "useSafePrices";
|
|
119
|
+
readonly internalType: "bool";
|
|
120
|
+
readonly type: "bool";
|
|
121
|
+
}];
|
|
122
|
+
readonly stateMutability: "nonpayable";
|
|
123
|
+
}, {
|
|
124
|
+
readonly type: "function";
|
|
125
|
+
readonly inputs: readonly [{
|
|
126
|
+
readonly name: "leftoverAmount";
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
}];
|
|
130
|
+
readonly name: "mintDiff";
|
|
131
|
+
readonly outputs: readonly [{
|
|
132
|
+
readonly name: "useSafePrices";
|
|
133
|
+
readonly internalType: "bool";
|
|
134
|
+
readonly type: "bool";
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "nonpayable";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
readonly inputs: readonly [{
|
|
140
|
+
readonly name: "to";
|
|
141
|
+
readonly internalType: "address";
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "amount";
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "minAssetsOut";
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
readonly type: "uint256";
|
|
151
|
+
}];
|
|
152
|
+
readonly name: "redeem";
|
|
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: "minRateRAY";
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
}];
|
|
170
|
+
readonly name: "redeemDiff";
|
|
171
|
+
readonly outputs: readonly [{
|
|
172
|
+
readonly name: "useSafePrices";
|
|
173
|
+
readonly internalType: "bool";
|
|
174
|
+
readonly type: "bool";
|
|
175
|
+
}];
|
|
176
|
+
readonly stateMutability: "nonpayable";
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "function";
|
|
179
|
+
readonly inputs: readonly [];
|
|
180
|
+
readonly name: "serialize";
|
|
181
|
+
readonly outputs: readonly [{
|
|
182
|
+
readonly name: "serializedData";
|
|
183
|
+
readonly internalType: "bytes";
|
|
184
|
+
readonly type: "bytes";
|
|
185
|
+
}];
|
|
186
|
+
readonly stateMutability: "view";
|
|
187
|
+
}, {
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
readonly inputs: readonly [{
|
|
190
|
+
readonly name: "lockedTokens";
|
|
191
|
+
readonly internalType: "struct LockedTokenStatus[]";
|
|
192
|
+
readonly type: "tuple[]";
|
|
193
|
+
readonly components: readonly [{
|
|
194
|
+
readonly name: "lockedToken";
|
|
195
|
+
readonly internalType: "address";
|
|
196
|
+
readonly type: "address";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "unwindingEpochs";
|
|
199
|
+
readonly internalType: "uint32";
|
|
200
|
+
readonly type: "uint32";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "allowed";
|
|
203
|
+
readonly internalType: "bool";
|
|
204
|
+
readonly type: "bool";
|
|
205
|
+
}];
|
|
206
|
+
}];
|
|
207
|
+
readonly name: "setLockedTokenBatchStatus";
|
|
208
|
+
readonly outputs: readonly [];
|
|
209
|
+
readonly stateMutability: "nonpayable";
|
|
210
|
+
}, {
|
|
211
|
+
readonly type: "function";
|
|
212
|
+
readonly inputs: readonly [];
|
|
213
|
+
readonly name: "siusd";
|
|
214
|
+
readonly outputs: readonly [{
|
|
215
|
+
readonly name: "";
|
|
216
|
+
readonly internalType: "address";
|
|
217
|
+
readonly type: "address";
|
|
218
|
+
}];
|
|
219
|
+
readonly stateMutability: "view";
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
readonly inputs: readonly [{
|
|
223
|
+
readonly name: "to";
|
|
224
|
+
readonly internalType: "address";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "amount";
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
readonly type: "uint256";
|
|
230
|
+
}];
|
|
231
|
+
readonly name: "stake";
|
|
232
|
+
readonly outputs: readonly [{
|
|
233
|
+
readonly name: "useSafePrices";
|
|
234
|
+
readonly internalType: "bool";
|
|
235
|
+
readonly type: "bool";
|
|
236
|
+
}];
|
|
237
|
+
readonly stateMutability: "nonpayable";
|
|
238
|
+
}, {
|
|
239
|
+
readonly type: "function";
|
|
240
|
+
readonly inputs: readonly [{
|
|
241
|
+
readonly name: "leftoverAmount";
|
|
242
|
+
readonly internalType: "uint256";
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
}];
|
|
245
|
+
readonly name: "stakeDiff";
|
|
246
|
+
readonly outputs: readonly [{
|
|
247
|
+
readonly name: "useSafePrices";
|
|
248
|
+
readonly internalType: "bool";
|
|
249
|
+
readonly type: "bool";
|
|
250
|
+
}];
|
|
251
|
+
readonly stateMutability: "nonpayable";
|
|
252
|
+
}, {
|
|
253
|
+
readonly type: "function";
|
|
254
|
+
readonly inputs: readonly [];
|
|
255
|
+
readonly name: "targetContract";
|
|
256
|
+
readonly outputs: readonly [{
|
|
257
|
+
readonly name: "";
|
|
258
|
+
readonly internalType: "address";
|
|
259
|
+
readonly type: "address";
|
|
260
|
+
}];
|
|
261
|
+
readonly stateMutability: "view";
|
|
262
|
+
}, {
|
|
263
|
+
readonly type: "function";
|
|
264
|
+
readonly inputs: readonly [{
|
|
265
|
+
readonly name: "to";
|
|
266
|
+
readonly internalType: "address";
|
|
267
|
+
readonly type: "address";
|
|
268
|
+
}, {
|
|
269
|
+
readonly name: "amount";
|
|
270
|
+
readonly internalType: "uint256";
|
|
271
|
+
readonly type: "uint256";
|
|
272
|
+
}];
|
|
273
|
+
readonly name: "unstake";
|
|
274
|
+
readonly outputs: readonly [{
|
|
275
|
+
readonly name: "useSafePrices";
|
|
276
|
+
readonly internalType: "bool";
|
|
277
|
+
readonly type: "bool";
|
|
278
|
+
}];
|
|
279
|
+
readonly stateMutability: "nonpayable";
|
|
280
|
+
}, {
|
|
281
|
+
readonly type: "function";
|
|
282
|
+
readonly inputs: readonly [{
|
|
283
|
+
readonly name: "leftoverAmount";
|
|
284
|
+
readonly internalType: "uint256";
|
|
285
|
+
readonly type: "uint256";
|
|
286
|
+
}];
|
|
287
|
+
readonly name: "unstakeDiff";
|
|
288
|
+
readonly outputs: readonly [{
|
|
289
|
+
readonly name: "useSafePrices";
|
|
290
|
+
readonly internalType: "bool";
|
|
291
|
+
readonly type: "bool";
|
|
292
|
+
}];
|
|
293
|
+
readonly stateMutability: "nonpayable";
|
|
294
|
+
}, {
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
readonly inputs: readonly [];
|
|
297
|
+
readonly name: "usdc";
|
|
298
|
+
readonly outputs: readonly [{
|
|
299
|
+
readonly name: "";
|
|
300
|
+
readonly internalType: "address";
|
|
301
|
+
readonly type: "address";
|
|
302
|
+
}];
|
|
303
|
+
readonly stateMutability: "view";
|
|
304
|
+
}, {
|
|
305
|
+
readonly type: "function";
|
|
306
|
+
readonly inputs: readonly [];
|
|
307
|
+
readonly name: "version";
|
|
308
|
+
readonly outputs: readonly [{
|
|
309
|
+
readonly name: "";
|
|
310
|
+
readonly internalType: "uint256";
|
|
311
|
+
readonly type: "uint256";
|
|
312
|
+
}];
|
|
313
|
+
readonly stateMutability: "view";
|
|
314
|
+
}, {
|
|
315
|
+
readonly type: "event";
|
|
316
|
+
readonly anonymous: false;
|
|
317
|
+
readonly inputs: readonly [{
|
|
318
|
+
readonly name: "lockedToken";
|
|
319
|
+
readonly internalType: "address";
|
|
320
|
+
readonly type: "address";
|
|
321
|
+
readonly indexed: false;
|
|
322
|
+
}, {
|
|
323
|
+
readonly name: "unwindingEpochs";
|
|
324
|
+
readonly internalType: "uint32";
|
|
325
|
+
readonly type: "uint32";
|
|
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: "SetLockedTokenStatus";
|
|
334
|
+
}, {
|
|
335
|
+
readonly type: "error";
|
|
336
|
+
readonly inputs: readonly [];
|
|
337
|
+
readonly name: "LockedTokenNotAllowedException";
|
|
338
|
+
}, {
|
|
339
|
+
readonly type: "error";
|
|
340
|
+
readonly inputs: readonly [];
|
|
341
|
+
readonly name: "LockedTokenUnwindingEpochsMismatchException";
|
|
342
|
+
}];
|
|
343
|
+
type abi = typeof abi;
|
|
344
|
+
export declare class InfinifiGatewayAdapterContract extends AbstractAdapterContract<abi> {
|
|
345
|
+
readonly usdc: Address;
|
|
346
|
+
readonly iusd: Address;
|
|
347
|
+
readonly siusd: Address;
|
|
348
|
+
readonly allowedLockedTokens: Address[];
|
|
349
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
350
|
+
}
|
|
351
|
+
export {};
|