@gearbox-protocol/sdk 14.11.7 → 14.11.9
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/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +2 -1
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +19 -5
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +5 -1
- package/dist/cjs/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +354 -0
- package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayAdapter.js +43 -8
- package/dist/cjs/plugins/adapters/abi/securitize/index.js +2 -0
- package/dist/cjs/plugins/adapters/contracts/MidasGatewayAdapterContract.js +103 -0
- package/dist/cjs/plugins/adapters/createAdapter.js +3 -0
- package/dist/cjs/plugins/adapters/types.js +1 -0
- package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +2 -1
- package/dist/esm/plugins/adapters/abi/actionAbi.js +19 -5
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +5 -1
- package/dist/esm/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +330 -0
- package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayAdapter.js +43 -8
- package/dist/esm/plugins/adapters/abi/securitize/index.js +1 -0
- package/dist/esm/plugins/adapters/contracts/MidasGatewayAdapterContract.js +81 -0
- package/dist/esm/plugins/adapters/createAdapter.js +3 -0
- package/dist/esm/plugins/adapters/types.js +1 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +4 -0
- package/dist/types/plugins/adapters/abi/actionAbi.d.ts +1 -1
- package/dist/types/plugins/adapters/abi/securitize/iMidasGatewayAdapter.d.ts +555 -0
- package/dist/types/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayAdapter.d.ts +73 -7
- package/dist/types/plugins/adapters/abi/securitize/index.d.ts +1 -0
- package/dist/types/plugins/adapters/contracts/MidasGatewayAdapterContract.d.ts +1144 -0
- package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +73 -7
- package/dist/types/plugins/adapters/types.d.ts +2 -1
- package/package.json +1 -1
package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts
CHANGED
|
@@ -3,6 +3,16 @@ import { type ConstructOptions } from "../../../sdk/index.js";
|
|
|
3
3
|
import type { ConcreteAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
4
|
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
5
|
declare const abi: readonly [{
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly name: "acl";
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
readonly internalType: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
}, {
|
|
6
16
|
readonly type: "function";
|
|
7
17
|
readonly name: "claim";
|
|
8
18
|
readonly inputs: readonly [{
|
|
@@ -40,11 +50,11 @@ declare const abi: readonly [{
|
|
|
40
50
|
readonly type: "function";
|
|
41
51
|
readonly name: "depositPhantomToken";
|
|
42
52
|
readonly inputs: readonly [{
|
|
43
|
-
readonly name: "
|
|
53
|
+
readonly name: "";
|
|
44
54
|
readonly type: "address";
|
|
45
55
|
readonly internalType: "address";
|
|
46
56
|
}, {
|
|
47
|
-
readonly name: "
|
|
57
|
+
readonly name: "";
|
|
48
58
|
readonly type: "uint256";
|
|
49
59
|
readonly internalType: "uint256";
|
|
50
60
|
}];
|
|
@@ -53,7 +63,7 @@ declare const abi: readonly [{
|
|
|
53
63
|
readonly type: "bool";
|
|
54
64
|
readonly internalType: "bool";
|
|
55
65
|
}];
|
|
56
|
-
readonly stateMutability: "
|
|
66
|
+
readonly stateMutability: "view";
|
|
57
67
|
}, {
|
|
58
68
|
readonly type: "function";
|
|
59
69
|
readonly name: "dsToken";
|
|
@@ -78,6 +88,42 @@ declare const abi: readonly [{
|
|
|
78
88
|
readonly internalType: "bool";
|
|
79
89
|
}];
|
|
80
90
|
readonly stateMutability: "nonpayable";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly name: "redeem";
|
|
94
|
+
readonly inputs: readonly [{
|
|
95
|
+
readonly name: "dsTokenAmount";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
readonly internalType: "uint256";
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "extraData";
|
|
100
|
+
readonly type: "bytes";
|
|
101
|
+
readonly internalType: "bytes";
|
|
102
|
+
}];
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "bool";
|
|
106
|
+
readonly internalType: "bool";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "nonpayable";
|
|
109
|
+
}, {
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
readonly name: "redeemDiff";
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly name: "leftoverAmount";
|
|
114
|
+
readonly type: "uint256";
|
|
115
|
+
readonly internalType: "uint256";
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "extraData";
|
|
118
|
+
readonly type: "bytes";
|
|
119
|
+
readonly internalType: "bytes";
|
|
120
|
+
}];
|
|
121
|
+
readonly outputs: readonly [{
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "bool";
|
|
124
|
+
readonly internalType: "bool";
|
|
125
|
+
}];
|
|
126
|
+
readonly stateMutability: "nonpayable";
|
|
81
127
|
}, {
|
|
82
128
|
readonly type: "function";
|
|
83
129
|
readonly name: "redeemDiff";
|
|
@@ -164,20 +210,32 @@ declare const abi: readonly [{
|
|
|
164
210
|
readonly type: "function";
|
|
165
211
|
readonly name: "withdrawPhantomToken";
|
|
166
212
|
readonly inputs: readonly [{
|
|
167
|
-
readonly name: "
|
|
213
|
+
readonly name: "";
|
|
168
214
|
readonly type: "address";
|
|
169
215
|
readonly internalType: "address";
|
|
170
216
|
}, {
|
|
171
|
-
readonly name: "
|
|
217
|
+
readonly name: "";
|
|
172
218
|
readonly type: "uint256";
|
|
173
219
|
readonly internalType: "uint256";
|
|
174
220
|
}];
|
|
175
221
|
readonly outputs: readonly [{
|
|
176
|
-
readonly name: "
|
|
222
|
+
readonly name: "";
|
|
177
223
|
readonly type: "bool";
|
|
178
224
|
readonly internalType: "bool";
|
|
179
225
|
}];
|
|
180
|
-
readonly stateMutability: "
|
|
226
|
+
readonly stateMutability: "view";
|
|
227
|
+
}, {
|
|
228
|
+
readonly type: "error";
|
|
229
|
+
readonly name: "AddressIsNotContractException";
|
|
230
|
+
readonly inputs: readonly [{
|
|
231
|
+
readonly name: "";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
}];
|
|
235
|
+
}, {
|
|
236
|
+
readonly type: "error";
|
|
237
|
+
readonly name: "CallerNotCreditFacadeException";
|
|
238
|
+
readonly inputs: readonly [];
|
|
181
239
|
}, {
|
|
182
240
|
readonly type: "error";
|
|
183
241
|
readonly name: "IncorrectStakedPhantomTokenException";
|
|
@@ -186,6 +244,14 @@ declare const abi: readonly [{
|
|
|
186
244
|
readonly type: "error";
|
|
187
245
|
readonly name: "InvalidRedemptionGatewayException";
|
|
188
246
|
readonly inputs: readonly [];
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "error";
|
|
249
|
+
readonly name: "NotImplementedException";
|
|
250
|
+
readonly inputs: readonly [];
|
|
251
|
+
}, {
|
|
252
|
+
readonly type: "error";
|
|
253
|
+
readonly name: "ZeroAddressException";
|
|
254
|
+
readonly inputs: readonly [];
|
|
189
255
|
}];
|
|
190
256
|
type abi = typeof abi;
|
|
191
257
|
declare const protocolAbi: readonly [{
|
|
@@ -2,7 +2,7 @@ import type { AbiParameter, Address } from "viem";
|
|
|
2
2
|
import type { BaseContractStateHuman } from "../../sdk/types/state-human.js";
|
|
3
3
|
import type { LegacyAdapterOperation } from "./legacyAdapterOperations.js";
|
|
4
4
|
export type VersionedAbi = Record<number, readonly AbiParameter[]>;
|
|
5
|
-
export type AdapterContractType = "ADAPTER::ACCOUNT_MIGRATOR" | "ADAPTER::BALANCER_V3_ROUTER" | "ADAPTER::BALANCER_V3_WRAPPER" | "ADAPTER::BALANCER_VAULT" | "ADAPTER::CAMELOT_V3_ROUTER" | "ADAPTER::CURVE_STABLE_NG" | "ADAPTER::CURVE_V1_2ASSETS" | "ADAPTER::CURVE_V1_3ASSETS" | "ADAPTER::CURVE_V1_4ASSETS" | "ADAPTER::CURVE_V1_STECRV_POOL" | "ADAPTER::CURVE_V1_WRAPPER" | "ADAPTER::CVX_V1_BASE_REWARD_POOL" | "ADAPTER::CVX_V1_BOOSTER" | "ADAPTER::DAI_USDS_EXCHANGE" | "ADAPTER::EQUALIZER_ROUTER" | "ADAPTER::ERC4626_VAULT" | "ADAPTER::ERC4626_VAULT_REFERRAL" | "ADAPTER::FLUID_DEX" | "ADAPTER::INFINIFI_GATEWAY" | "ADAPTER::INFINIFI_UNWINDING" | "ADAPTER::INFRARED_VAULT" | "ADAPTER::KELP_DEPOSIT_POOL" | "ADAPTER::KELP_WITHDRAWAL" | "ADAPTER::KODIAK_ISLAND_GATEWAY" | "ADAPTER::LIDO_V1" | "ADAPTER::LIDO_WSTETH_V1" | "ADAPTER::MELLOW_CLAIMER" | "ADAPTER::MELLOW_DVV" | "ADAPTER::MELLOW_ERC4626_VAULT" | "ADAPTER::MELLOW_LRT_VAULT" | "ADAPTER::MELLOW_WRAPPER" | "ADAPTER::MELLOW_DEPOSIT_QUEUE_QUEUE" | "ADAPTER::MELLOW_REDEEM_QUEUE_QUEUE" | "ADAPTER::MIDAS_ISSUANCE_VAULT" | "ADAPTER::MIDAS_REDEMPTION_VAULT" | "ADAPTER::PENDLE_ROUTER" | "ADAPTER::SECURITIZE_ONRAMP" | "ADAPTER::SECURITIZE_REDEMPTION" | "ADAPTER::SECURITIZE_SWAP" | "ADAPTER::STAKING_REWARDS" | "ADAPTER::TRADER_JOE_ROUTER" | "ADAPTER::UNISWAP_V2_ROUTER" | "ADAPTER::UNISWAP_V3_ROUTER" | "ADAPTER::UNISWAP_V4_GATEWAY" | "ADAPTER::UPSHIFT_VAULT" | "ADAPTER::VELODROME_V2_ROUTER" | "ADAPTER::YEARN_V2";
|
|
5
|
+
export type AdapterContractType = "ADAPTER::ACCOUNT_MIGRATOR" | "ADAPTER::BALANCER_V3_ROUTER" | "ADAPTER::BALANCER_V3_WRAPPER" | "ADAPTER::BALANCER_VAULT" | "ADAPTER::CAMELOT_V3_ROUTER" | "ADAPTER::CURVE_STABLE_NG" | "ADAPTER::CURVE_V1_2ASSETS" | "ADAPTER::CURVE_V1_3ASSETS" | "ADAPTER::CURVE_V1_4ASSETS" | "ADAPTER::CURVE_V1_STECRV_POOL" | "ADAPTER::CURVE_V1_WRAPPER" | "ADAPTER::CVX_V1_BASE_REWARD_POOL" | "ADAPTER::CVX_V1_BOOSTER" | "ADAPTER::DAI_USDS_EXCHANGE" | "ADAPTER::EQUALIZER_ROUTER" | "ADAPTER::ERC4626_VAULT" | "ADAPTER::ERC4626_VAULT_REFERRAL" | "ADAPTER::FLUID_DEX" | "ADAPTER::INFINIFI_GATEWAY" | "ADAPTER::INFINIFI_UNWINDING" | "ADAPTER::INFRARED_VAULT" | "ADAPTER::KELP_DEPOSIT_POOL" | "ADAPTER::KELP_WITHDRAWAL" | "ADAPTER::KODIAK_ISLAND_GATEWAY" | "ADAPTER::LIDO_V1" | "ADAPTER::LIDO_WSTETH_V1" | "ADAPTER::MELLOW_CLAIMER" | "ADAPTER::MELLOW_DVV" | "ADAPTER::MELLOW_ERC4626_VAULT" | "ADAPTER::MELLOW_LRT_VAULT" | "ADAPTER::MELLOW_WRAPPER" | "ADAPTER::MELLOW_DEPOSIT_QUEUE_QUEUE" | "ADAPTER::MELLOW_REDEEM_QUEUE_QUEUE" | "ADAPTER::MIDAS_ISSUANCE_VAULT" | "ADAPTER::MIDAS_REDEMPTION_VAULT" | "ADAPTER::MIDAS_GATEWAY" | "ADAPTER::PENDLE_ROUTER" | "ADAPTER::SECURITIZE_ONRAMP" | "ADAPTER::SECURITIZE_REDEMPTION" | "ADAPTER::SECURITIZE_SWAP" | "ADAPTER::STAKING_REWARDS" | "ADAPTER::TRADER_JOE_ROUTER" | "ADAPTER::UNISWAP_V2_ROUTER" | "ADAPTER::UNISWAP_V3_ROUTER" | "ADAPTER::UNISWAP_V4_GATEWAY" | "ADAPTER::UPSHIFT_VAULT" | "ADAPTER::VELODROME_V2_ROUTER" | "ADAPTER::YEARN_V2";
|
|
6
6
|
export declare enum AdapterType {
|
|
7
7
|
ACCOUNT_MIGRATOR = "ACCOUNT_MIGRATOR",
|
|
8
8
|
BALANCER_V3_ROUTER = "BALANCER_V3_ROUTER",
|
|
@@ -39,6 +39,7 @@ export declare enum AdapterType {
|
|
|
39
39
|
MELLOW_REDEEM_QUEUE = "MELLOW_REDEEM_QUEUE",
|
|
40
40
|
MIDAS_ISSUANCE_VAULT = "MIDAS_ISSUANCE_VAULT",
|
|
41
41
|
MIDAS_REDEMPTION_VAULT = "MIDAS_REDEMPTION_VAULT",
|
|
42
|
+
MIDAS_GATEWAY = "MIDAS_GATEWAY",
|
|
42
43
|
PENDLE_ROUTER = "PENDLE_ROUTER",
|
|
43
44
|
SECURITIZE_ONRAMP = "SECURITIZE_ONRAMP",
|
|
44
45
|
SECURITIZE_REDEMPTION = "SECURITIZE_REDEMPTION",
|