@gearbox-protocol/sdk 14.12.0-next.55 → 14.12.0-next.57
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/liquidationCompressor.js +43 -1
- package/dist/cjs/abi/compressors/rwaCompressor.js +4 -4
- package/dist/cjs/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +43 -1
- package/dist/cjs/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +43 -1
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +20 -0
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +20 -0
- package/dist/cjs/abi/compressors/withdrawalCompressor.js +30 -0
- package/dist/cjs/abi/iPhantomToken.js +19 -0
- package/dist/cjs/abi/rwa/iRWAGateway.js +19 -0
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +8 -2
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +8 -2
- package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +67 -36
- package/dist/cjs/sdk/accounts/liquidations/LiquidationsService.js +65 -0
- package/dist/cjs/sdk/accounts/liquidations/MultichainLiquidationsService.js +10 -0
- package/dist/cjs/sdk/base/token-types.js +1 -0
- package/dist/cjs/sdk/index.js +6 -4
- package/dist/cjs/sdk/market/index.js +6 -4
- package/dist/cjs/sdk/market/rwa/index.js +6 -4
- package/dist/cjs/sdk/market/rwa/midas/{MidasLiquidator.js → MidasLiquidatorContract.js} +3 -3
- package/dist/cjs/sdk/market/rwa/midas/constants.js +2 -0
- package/dist/cjs/sdk/market/rwa/midas/index.js +3 -2
- package/dist/cjs/sdk/market/rwa/securitize/{SecuritizeLiquidator.js → SecuritizeLiquidatorContract.js} +3 -3
- package/dist/cjs/sdk/market/rwa/securitize/constants.js +2 -0
- package/dist/cjs/sdk/market/rwa/securitize/index.js +3 -2
- package/dist/esm/abi/compressors/liquidationCompressor.js +43 -1
- package/dist/esm/abi/compressors/rwaCompressor.js +4 -4
- package/dist/esm/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +43 -1
- package/dist/esm/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +43 -1
- package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +20 -0
- package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +20 -0
- package/dist/esm/abi/compressors/withdrawalCompressor.js +30 -0
- package/dist/esm/abi/iPhantomToken.js +18 -0
- package/dist/esm/abi/rwa/iRWAGateway.js +18 -0
- package/dist/esm/plugins/adapters/abi/actionAbi.js +8 -2
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +8 -2
- package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +67 -36
- package/dist/esm/sdk/accounts/liquidations/LiquidationsService.js +65 -0
- package/dist/esm/sdk/accounts/liquidations/MultichainLiquidationsService.js +10 -0
- package/dist/esm/sdk/base/token-types.js +1 -0
- package/dist/esm/sdk/index.js +5 -5
- package/dist/esm/sdk/market/index.js +5 -5
- package/dist/esm/sdk/market/rwa/index.js +5 -5
- package/dist/esm/sdk/market/rwa/midas/{MidasLiquidator.js → MidasLiquidatorContract.js} +3 -3
- package/dist/esm/sdk/market/rwa/midas/constants.js +2 -1
- package/dist/esm/sdk/market/rwa/midas/index.js +3 -3
- package/dist/esm/sdk/market/rwa/securitize/{SecuritizeLiquidator.js → SecuritizeLiquidatorContract.js} +3 -3
- package/dist/esm/sdk/market/rwa/securitize/constants.js +2 -1
- package/dist/esm/sdk/market/rwa/securitize/index.js +3 -3
- package/dist/types/abi/compressors/liquidationCompressor.d.ts +36 -1
- package/dist/types/abi/compressors/rwaCompressor.d.ts +4 -4
- package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts +36 -1
- package/dist/types/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.d.ts +36 -1
- package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +16 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +16 -0
- package/dist/types/abi/compressors/withdrawalCompressor.d.ts +24 -0
- package/dist/types/abi/iPhantomToken.d.ts +18 -0
- package/dist/types/abi/rwa/iRWAGateway.d.ts +18 -0
- package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +24 -0
- package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +8 -5
- package/dist/types/sdk/accounts/index.d.ts +2 -2
- package/dist/types/sdk/accounts/liquidations/LiquidationsService.d.ts +4 -0
- package/dist/types/sdk/accounts/liquidations/MultichainLiquidationsService.d.ts +5 -1
- package/dist/types/sdk/accounts/liquidations/index.d.ts +2 -2
- package/dist/types/sdk/accounts/liquidations/types.d.ts +13 -1
- package/dist/types/sdk/base/token-types.d.ts +1 -1
- package/dist/types/sdk/index.d.ts +6 -6
- package/dist/types/sdk/market/index.d.ts +5 -5
- package/dist/types/sdk/market/rwa/index.d.ts +5 -5
- package/dist/types/sdk/market/rwa/midas/{MidasLiquidator.d.ts → MidasLiquidatorContract.d.ts} +3 -3
- package/dist/types/sdk/market/rwa/midas/constants.d.ts +2 -1
- package/dist/types/sdk/market/rwa/midas/index.d.ts +3 -3
- package/dist/types/sdk/market/rwa/securitize/{SecuritizeLiquidator.d.ts → SecuritizeLiquidatorContract.d.ts} +3 -3
- package/dist/types/sdk/market/rwa/securitize/constants.d.ts +2 -1
- package/dist/types/sdk/market/rwa/securitize/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -19,7 +19,10 @@ const adapterConstructorAbi = {
|
|
|
19
19
|
["INFINIFI_GATEWAY"]: { 310: BASIC_ADAPTER_ABI },
|
|
20
20
|
["LIDO_V1"]: { 310: BASIC_ADAPTER_ABI },
|
|
21
21
|
["LIDO_WSTETH_V1"]: { 310: BASIC_ADAPTER_ABI },
|
|
22
|
-
["MIDAS_REDEMPTION_VAULT"]: {
|
|
22
|
+
["MIDAS_REDEMPTION_VAULT"]: {
|
|
23
|
+
310: BASIC_ADAPTER_ABI,
|
|
24
|
+
311: BASIC_ADAPTER_ABI
|
|
25
|
+
},
|
|
23
26
|
["PENDLE_ROUTER"]: {
|
|
24
27
|
310: BASIC_ADAPTER_ABI,
|
|
25
28
|
311: BASIC_ADAPTER_ABI
|
|
@@ -64,7 +67,10 @@ const adapterConstructorAbi = {
|
|
|
64
67
|
311: PHANTOM_TOKEN_ADAPTER_ABI
|
|
65
68
|
},
|
|
66
69
|
["STAKING_REWARDS"]: { 312: STAKING_REWARDS_ADAPTER_ABI },
|
|
67
|
-
["MIDAS_ISSUANCE_VAULT"]: {
|
|
70
|
+
["MIDAS_ISSUANCE_VAULT"]: {
|
|
71
|
+
310: REFERER_ID_ADAPTER_ABI,
|
|
72
|
+
311: REFERER_ID_ADAPTER_ABI
|
|
73
|
+
},
|
|
68
74
|
["MIDAS_GATEWAY"]: { 311: REFERER_ID_ADAPTER_ABI }
|
|
69
75
|
};
|
|
70
76
|
//#endregion
|
|
@@ -8,6 +8,7 @@ import { decodeAbiParameters } from "viem";
|
|
|
8
8
|
const abi = iMidasRedemptionVaultAdapterV310Abi;
|
|
9
9
|
const protocolAbi = iMidasRedemptionVaultGatewayV310Abi;
|
|
10
10
|
var MidasRedemptionVaultAdapterContract = class extends AbstractAdapterContract {
|
|
11
|
+
#version;
|
|
11
12
|
#gateway;
|
|
12
13
|
#mToken;
|
|
13
14
|
#allowedTokens;
|
|
@@ -18,41 +19,68 @@ var MidasRedemptionVaultAdapterContract = class extends AbstractAdapterContract
|
|
|
18
19
|
protocolAbi
|
|
19
20
|
});
|
|
20
21
|
if (args.baseParams.serializedParams) {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
22
|
+
const version = Number(args.baseParams.version);
|
|
23
|
+
this.#version = version;
|
|
24
|
+
if (version <= 310) {
|
|
25
|
+
const decoded = decodeAbiParameters([
|
|
26
|
+
{
|
|
27
|
+
type: "address",
|
|
28
|
+
name: "creditManager"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: "address",
|
|
32
|
+
name: "targetContract"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "address",
|
|
36
|
+
name: "gateway"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: "address",
|
|
40
|
+
name: "mToken"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: "address[]",
|
|
44
|
+
name: "allowedTokens"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: "address[]",
|
|
48
|
+
name: "allowedPhantomTokens"
|
|
49
|
+
}
|
|
50
|
+
], args.baseParams.serializedParams);
|
|
51
|
+
this.#gateway = decoded[2];
|
|
52
|
+
this.#mToken = decoded[3];
|
|
53
|
+
this.#allowedTokens = decoded[4].map((token, index) => ({
|
|
54
|
+
token,
|
|
55
|
+
phantomToken: decoded[5][index]
|
|
56
|
+
}));
|
|
57
|
+
} else {
|
|
58
|
+
const decoded = decodeAbiParameters([
|
|
59
|
+
{
|
|
60
|
+
type: "address",
|
|
61
|
+
name: "creditManager"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: "address",
|
|
65
|
+
name: "targetContract"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "address",
|
|
69
|
+
name: "mToken"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "address[]",
|
|
73
|
+
name: "supportedInputTokens"
|
|
74
|
+
}
|
|
75
|
+
], args.baseParams.serializedParams);
|
|
76
|
+
this.#mToken = decoded[2];
|
|
77
|
+
this.#allowedTokens = [...decoded[3]];
|
|
78
|
+
}
|
|
53
79
|
}
|
|
54
80
|
}
|
|
55
81
|
get gateway() {
|
|
82
|
+
if (!this.#version) throw new MissingSerializedParamsError("version");
|
|
83
|
+
if (this.#version > 310) return void 0;
|
|
56
84
|
if (!this.#gateway) throw new MissingSerializedParamsError("gateway");
|
|
57
85
|
return this.#gateway;
|
|
58
86
|
}
|
|
@@ -69,10 +97,13 @@ var MidasRedemptionVaultAdapterContract = class extends AbstractAdapterContract
|
|
|
69
97
|
...super.stateHuman(raw),
|
|
70
98
|
gateway: this.#gateway ? this.labelAddress(this.#gateway) : void 0,
|
|
71
99
|
mToken: this.#mToken ? this.labelAddress(this.#mToken) : void 0,
|
|
72
|
-
allowedTokens: this.#allowedTokens?.map((t) =>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
100
|
+
allowedTokens: this.#allowedTokens?.map((t) => {
|
|
101
|
+
if (typeof t === "object") return {
|
|
102
|
+
token: this.labelAddress(t.token),
|
|
103
|
+
phantomToken: this.labelAddress(t.phantomToken)
|
|
104
|
+
};
|
|
105
|
+
return { token: this.labelAddress(t) };
|
|
106
|
+
})
|
|
76
107
|
};
|
|
77
108
|
}
|
|
78
109
|
async applyBalanceChanges(balances, decoded) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { iLiquidationCompressorV313Abi } from "../../../abi/ILiquidationCompressorV313.js";
|
|
2
|
+
import { iPhantomTokenAbi } from "../../../abi/iPhantomToken.js";
|
|
2
3
|
import { AddressSet } from "../../utils/AddressSet.js";
|
|
3
4
|
import { ADDRESS_0X0 } from "../../constants/addresses.js";
|
|
4
5
|
import { WAD } from "../../constants/math.js";
|
|
@@ -7,7 +8,14 @@ import { hexEq } from "../../utils/hex.js";
|
|
|
7
8
|
import "../../utils/index.js";
|
|
8
9
|
import { SDKConstruct } from "../../base/SDKConstruct.js";
|
|
9
10
|
import "../../base/index.js";
|
|
11
|
+
import { PHANTOM_TOKEN_MIDAS_REDEMPTION } from "../../market/rwa/midas/constants.js";
|
|
12
|
+
import { MidasLiquidatorContract } from "../../market/rwa/midas/MidasLiquidatorContract.js";
|
|
13
|
+
import "../../market/rwa/midas/index.js";
|
|
14
|
+
import { PHANTOM_TOKEN_SECURITIZE_REDEMPTION } from "../../market/rwa/securitize/constants.js";
|
|
15
|
+
import { SecuritizeLiquidatorContract } from "../../market/rwa/securitize/SecuritizeLiquidatorContract.js";
|
|
16
|
+
import "../../market/rwa/securitize/index.js";
|
|
10
17
|
import { LIQUIDATION_COMPRESSOR_V313_ADDRESS } from "./constants.js";
|
|
18
|
+
import { iRWAGatewayAbi } from "../../../abi/rwa/iRWAGateway.js";
|
|
11
19
|
import { calcEstimatedProfit, calcRepaymentAmount, liquidationCallToRawTx, pickMainAsset, toLiquidationApproval, toLiquidatorWithdrawals, toReceivedAssets } from "./helpers.js";
|
|
12
20
|
//#region src/sdk/accounts/liquidations/LiquidationsService.ts
|
|
13
21
|
/**
|
|
@@ -94,6 +102,63 @@ var LiquidationsService = class extends SDKConstruct {
|
|
|
94
102
|
const current = await compressor.getExternalAccountCurrentWithdrawals(props.liquidator, ...phantomTokens.asArray());
|
|
95
103
|
return toLiquidatorWithdrawals(current, this.sdk.networkType);
|
|
96
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* {@inheritDoc ILiquidationsService.loadRWALiquidators}
|
|
107
|
+
**/
|
|
108
|
+
async loadRWALiquidators() {
|
|
109
|
+
await this.sdk.tokensMeta.loadTokenData();
|
|
110
|
+
const phantomTokens = [];
|
|
111
|
+
for (const meta of this.sdk.tokensMeta.phantomTokens.values()) switch (meta.contractType) {
|
|
112
|
+
case PHANTOM_TOKEN_SECURITIZE_REDEMPTION:
|
|
113
|
+
case PHANTOM_TOKEN_MIDAS_REDEMPTION: phantomTokens.push(meta);
|
|
114
|
+
}
|
|
115
|
+
if (phantomTokens.length === 0) return;
|
|
116
|
+
const ptResp = await this.client.multicall({
|
|
117
|
+
contracts: phantomTokens.map(({ addr }) => ({
|
|
118
|
+
address: addr,
|
|
119
|
+
abi: iPhantomTokenAbi,
|
|
120
|
+
functionName: "getPhantomTokenInfo"
|
|
121
|
+
})),
|
|
122
|
+
allowFailure: false,
|
|
123
|
+
batchSize: 0
|
|
124
|
+
});
|
|
125
|
+
const gateways = phantomTokens.map(({ contractType }, i) => ({
|
|
126
|
+
gateway: ptResp[i][0],
|
|
127
|
+
contractType
|
|
128
|
+
}));
|
|
129
|
+
const gwResp = await this.client.multicall({
|
|
130
|
+
contracts: gateways.map(({ gateway }) => ({
|
|
131
|
+
address: gateway,
|
|
132
|
+
abi: iRWAGatewayAbi,
|
|
133
|
+
functionName: "transferMaster"
|
|
134
|
+
})),
|
|
135
|
+
allowFailure: false,
|
|
136
|
+
batchSize: 0
|
|
137
|
+
});
|
|
138
|
+
const refs = gateways.map(({ contractType }, i) => ({
|
|
139
|
+
liquidator: gwResp[i],
|
|
140
|
+
contractType
|
|
141
|
+
}));
|
|
142
|
+
for (const ref of refs) this.#createRWALiquidator(ref);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Instantiates the liquidator contract, which registers it and labels its
|
|
146
|
+
* address (see `BaseContract`).
|
|
147
|
+
*
|
|
148
|
+
* @param ref - Discovered liquidator address and its phantom token type
|
|
149
|
+
**/
|
|
150
|
+
#createRWALiquidator(ref) {
|
|
151
|
+
const { liquidator, contractType } = ref;
|
|
152
|
+
if (this.sdk.getContract(liquidator)) return;
|
|
153
|
+
switch (contractType) {
|
|
154
|
+
case PHANTOM_TOKEN_SECURITIZE_REDEMPTION:
|
|
155
|
+
new SecuritizeLiquidatorContract(this.sdk, liquidator);
|
|
156
|
+
return;
|
|
157
|
+
case PHANTOM_TOKEN_MIDAS_REDEMPTION:
|
|
158
|
+
new MidasLiquidatorContract(this.sdk, liquidator);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
97
162
|
async #getCreditAccountData(creditAccount) {
|
|
98
163
|
const ca = await this.sdk.accounts.getCreditAccountData(creditAccount);
|
|
99
164
|
if (!ca) throw new Error(`credit account ${creditAccount} not found`);
|
|
@@ -52,6 +52,16 @@ var MultichainLiquidationsService = class {
|
|
|
52
52
|
});
|
|
53
53
|
return withdrawals;
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* {@inheritDoc ILiquidationsService.loadRWALiquidators}
|
|
57
|
+
**/
|
|
58
|
+
async loadRWALiquidators(props) {
|
|
59
|
+
const chains = [...this.#sdk.chains.entries()].filter(([network]) => !props?.networks || props.networks.includes(network));
|
|
60
|
+
(await Promise.allSettled(chains.map(([, chainSdk]) => chainSdk.liquidations.loadRWALiquidators()))).forEach((result, i) => {
|
|
61
|
+
const [network, chainSdk] = chains[i];
|
|
62
|
+
if (result.status === "rejected") chainSdk.logger?.warn(result.reason, `failed to load RWA liquidators on ${network}`);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
55
65
|
};
|
|
56
66
|
//#endregion
|
|
57
67
|
export { MultichainLiquidationsService };
|
package/dist/esm/sdk/index.js
CHANGED
|
@@ -89,10 +89,10 @@ import { IERC20ZapperContract } from "./market/zapper/IERC20ZapperContract.js";
|
|
|
89
89
|
import { IETHZapperContract } from "./market/zapper/IETHZapperContract.js";
|
|
90
90
|
import { createZapper } from "./market/zapper/createZapper.js";
|
|
91
91
|
import { MarketRegister } from "./market/MarketRegister.js";
|
|
92
|
-
import { RWA_LIQUIDATOR_MIDAS } from "./market/rwa/midas/constants.js";
|
|
93
|
-
import {
|
|
94
|
-
import { RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE } from "./market/rwa/securitize/constants.js";
|
|
95
|
-
import {
|
|
92
|
+
import { PHANTOM_TOKEN_MIDAS_REDEMPTION, RWA_LIQUIDATOR_MIDAS } from "./market/rwa/midas/constants.js";
|
|
93
|
+
import { MidasLiquidatorContract } from "./market/rwa/midas/MidasLiquidatorContract.js";
|
|
94
|
+
import { PHANTOM_TOKEN_SECURITIZE_REDEMPTION, RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE } from "./market/rwa/securitize/constants.js";
|
|
95
|
+
import { SecuritizeLiquidatorContract } from "./market/rwa/securitize/SecuritizeLiquidatorContract.js";
|
|
96
96
|
import { SECURITIZE_REGISTER_VAULT_TYPES } from "./market/rwa/securitize/types.js";
|
|
97
97
|
import { SecuritizeRWAFactory } from "./market/rwa/securitize/SecuritizeRWAFactory.js";
|
|
98
98
|
import { RWARegistry } from "./market/rwa/RWARegistry.js";
|
|
@@ -131,4 +131,4 @@ import { OnchainSDK, STATE_VERSION } from "./OnchainSDK.js";
|
|
|
131
131
|
import { MultichainSDK } from "./MultichainSDK.js";
|
|
132
132
|
import { attachOptionsSchema, onchainSDKOptionsSchema } from "./options.js";
|
|
133
133
|
import "./types/index.js";
|
|
134
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_RWA_COMPRESSOR, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AddressMap, AddressProviderV310Contract, AddressSet, AssetsMap, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BaseContract, BasePlugin, BotPermissions, BoundedPriceFeedContract, ChainContractsRegister, CompositePriceFeedContract, Construct, ContractParseError, CreditAccountsServiceV310, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, Erc4626PriceFeedContract, ExternalPriceFeedContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, InvalidDelayedIntentError, LEVERAGE_DECIMALS, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LinearInterestRateModelContract, LiquidationsService, MAX_INT, MAX_UINT16, MAX_UINT256, MIN_INT96, MULTICALL_ADDRESS, MarketRegister, MarketSuite, MellowLRTPriceFeedContract,
|
|
134
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_RWA_COMPRESSOR, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AddressMap, AddressProviderV310Contract, AddressSet, AssetsMap, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BaseContract, BasePlugin, BotPermissions, BoundedPriceFeedContract, ChainContractsRegister, CompositePriceFeedContract, Construct, ContractParseError, CreditAccountsServiceV310, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, Erc4626PriceFeedContract, ExternalPriceFeedContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, InvalidDelayedIntentError, LEVERAGE_DECIMALS, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LinearInterestRateModelContract, LiquidationsService, MAX_INT, MAX_UINT16, MAX_UINT256, MIN_INT96, MULTICALL_ADDRESS, MarketRegister, MarketSuite, MellowLRTPriceFeedContract, MidasLiquidatorContract, MissingSerializedParamsError, MultichainLiquidationsService, MultichainSDK, NATIVE_ADDRESS, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainSDK, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, PartialPriceFeedInitError, PendleTWAPPTPriceFeed, PlaceholderAdapterContract, PlaceholderContract, PluginStateVersionError, PoolService, PoolSuite, PoolV310Contract, PriceFeedRef, PriceFeedRegister, PriceOracleV310Contract, PythPriceFeed, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWARegistry, RWA_FACTORY_SECURITIZE, RWA_FACTORY_TYPES, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RedemptionLoggerV310Contract, RedstonePriceFeedContract, RouterV310Contract, SDKConstruct, SECONDS_PER_YEAR, SECURITIZE_REGISTER_VAULT_TYPES, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeLiquidatorContract, SecuritizeRWAFactory, SimulateWithPriceUpdatesError, SimulationError, TokensMeta, TypedObjectUtils, UnsupportedZapperFunctionError, VERSION_RANGE_310, VotingContractStatus, WAD, WAD_DECIMALS_POW, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WstETHPriceFeedContract, YearnPriceFeedContract, ZapperContract, ZeroPriceFeedContract, ZodAddress, assetsMap, attachOptionsSchema, botPermissionsToString, bytes32ToString, chains, childLogger, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, abi as creditFacadeV310Abi, decodeDelayedIntent, detectNetwork, encodeDelayedIntent, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, fetchPythPayloads, fetchRedstonePayloads, filterDust, filterDustUSD, findCuratorMarketConfigurator, fmtBinaryMask, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getCastTraceArgs, getChain, getCuratorName, getFunctionSignature, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hexEq, hydrateAddressProvider, iCreditAccountAbi, isDust, isLPPriceFeed, isPublicNetwork, isRWAFactory, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, json_parse, json_stringify, numberWithCommas, onchainSDKOptionsSchema, percentFmt, rayToNumber, retry, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, toAddress, toBN, toBigInt, toClaimableWithdrawal, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toWithdrawalStatus, watchBlocksAsync };
|
|
@@ -48,14 +48,14 @@ import { IETHZapperContract } from "./zapper/IETHZapperContract.js";
|
|
|
48
48
|
import { createZapper } from "./zapper/createZapper.js";
|
|
49
49
|
import "./zapper/index.js";
|
|
50
50
|
import { MarketRegister } from "./MarketRegister.js";
|
|
51
|
-
import { RWA_LIQUIDATOR_MIDAS } from "./rwa/midas/constants.js";
|
|
52
|
-
import {
|
|
53
|
-
import { RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE } from "./rwa/securitize/constants.js";
|
|
54
|
-
import {
|
|
51
|
+
import { PHANTOM_TOKEN_MIDAS_REDEMPTION, RWA_LIQUIDATOR_MIDAS } from "./rwa/midas/constants.js";
|
|
52
|
+
import { MidasLiquidatorContract } from "./rwa/midas/MidasLiquidatorContract.js";
|
|
53
|
+
import { PHANTOM_TOKEN_SECURITIZE_REDEMPTION, RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE } from "./rwa/securitize/constants.js";
|
|
54
|
+
import { SecuritizeLiquidatorContract } from "./rwa/securitize/SecuritizeLiquidatorContract.js";
|
|
55
55
|
import { SECURITIZE_REGISTER_VAULT_TYPES } from "./rwa/securitize/types.js";
|
|
56
56
|
import { SecuritizeRWAFactory } from "./rwa/securitize/SecuritizeRWAFactory.js";
|
|
57
57
|
import { RWARegistry } from "./rwa/RWARegistry.js";
|
|
58
58
|
import { RWA_FACTORY_TYPES, isRWAFactory } from "./rwa/types.js";
|
|
59
59
|
import "./rwa/index.js";
|
|
60
60
|
import "./types.js";
|
|
61
|
-
export { AbstractLPPriceFeedContract, AbstractPriceFeedContract, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CompositePriceFeedContract, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, LinearInterestRateModelContract, MarketRegister, MarketSuite, MellowLRTPriceFeedContract,
|
|
61
|
+
export { AbstractLPPriceFeedContract, AbstractPriceFeedContract, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CompositePriceFeedContract, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, LinearInterestRateModelContract, MarketRegister, MarketSuite, MellowLRTPriceFeedContract, MidasLiquidatorContract, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PartialPriceFeedInitError, PendleTWAPPTPriceFeed, PlaceholderAdapterContract, PoolSuite, PoolV310Contract, PriceFeedRef, PriceFeedRegister, PriceOracleV310Contract, PythPriceFeed, RWARegistry, RWA_FACTORY_SECURITIZE, RWA_FACTORY_TYPES, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RedstonePriceFeedContract, SECURITIZE_REGISTER_VAULT_TYPES, SecuritizeLiquidatorContract, SecuritizeRWAFactory, UnsupportedZapperFunctionError, WstETHPriceFeedContract, YearnPriceFeedContract, ZapperContract, ZeroPriceFeedContract, createAdapter, createPriceOracle, createZapper, abi as creditFacadeV310Abi, fetchPythPayloads, fetchRedstonePayloads, getRawPriceUpdates, isLPPriceFeed, isRWAFactory, isUpdatablePriceFeed };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RWA_LIQUIDATOR_MIDAS } from "./midas/constants.js";
|
|
2
|
-
import {
|
|
1
|
+
import { PHANTOM_TOKEN_MIDAS_REDEMPTION, RWA_LIQUIDATOR_MIDAS } from "./midas/constants.js";
|
|
2
|
+
import { MidasLiquidatorContract } from "./midas/MidasLiquidatorContract.js";
|
|
3
3
|
import "./midas/index.js";
|
|
4
|
-
import { RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE } from "./securitize/constants.js";
|
|
5
|
-
import {
|
|
4
|
+
import { PHANTOM_TOKEN_SECURITIZE_REDEMPTION, RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE } from "./securitize/constants.js";
|
|
5
|
+
import { SecuritizeLiquidatorContract } from "./securitize/SecuritizeLiquidatorContract.js";
|
|
6
6
|
import { SECURITIZE_REGISTER_VAULT_TYPES } from "./securitize/types.js";
|
|
7
7
|
import { SecuritizeRWAFactory } from "./securitize/SecuritizeRWAFactory.js";
|
|
8
8
|
import "./securitize/index.js";
|
|
9
9
|
import { RWARegistry } from "./RWARegistry.js";
|
|
10
10
|
import { RWA_FACTORY_TYPES, isRWAFactory } from "./types.js";
|
|
11
|
-
export {
|
|
11
|
+
export { MidasLiquidatorContract, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, RWARegistry, RWA_FACTORY_SECURITIZE, RWA_FACTORY_TYPES, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, SECURITIZE_REGISTER_VAULT_TYPES, SecuritizeLiquidatorContract, SecuritizeRWAFactory, isRWAFactory };
|
|
@@ -2,9 +2,9 @@ import { BaseContract } from "../../../base/BaseContract.js";
|
|
|
2
2
|
import "../../../base/index.js";
|
|
3
3
|
import { RWA_LIQUIDATOR_MIDAS } from "./constants.js";
|
|
4
4
|
import { iMidasLiquidatorV311Abi } from "../../../../abi/rwa/iMidasLiquidatorV311.js";
|
|
5
|
-
//#region src/sdk/market/rwa/midas/
|
|
5
|
+
//#region src/sdk/market/rwa/midas/MidasLiquidatorContract.ts
|
|
6
6
|
const abi = iMidasLiquidatorV311Abi;
|
|
7
|
-
var
|
|
7
|
+
var MidasLiquidatorContract = class extends BaseContract {
|
|
8
8
|
constructor(options, address) {
|
|
9
9
|
super(options, {
|
|
10
10
|
addr: address,
|
|
@@ -40,4 +40,4 @@ var MidasLiquidator = class extends BaseContract {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
//#endregion
|
|
43
|
-
export {
|
|
43
|
+
export { MidasLiquidatorContract };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//#region src/sdk/market/rwa/midas/constants.ts
|
|
2
2
|
const RWA_LIQUIDATOR_MIDAS = "RWA_LIQUIDATOR::MIDAS";
|
|
3
|
+
const PHANTOM_TOKEN_MIDAS_REDEMPTION = "PHANTOM_TOKEN::MIDAS_REDEMPTION";
|
|
3
4
|
//#endregion
|
|
4
|
-
export { RWA_LIQUIDATOR_MIDAS };
|
|
5
|
+
export { PHANTOM_TOKEN_MIDAS_REDEMPTION, RWA_LIQUIDATOR_MIDAS };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RWA_LIQUIDATOR_MIDAS } from "./constants.js";
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { PHANTOM_TOKEN_MIDAS_REDEMPTION, RWA_LIQUIDATOR_MIDAS } from "./constants.js";
|
|
2
|
+
import { MidasLiquidatorContract } from "./MidasLiquidatorContract.js";
|
|
3
|
+
export { MidasLiquidatorContract, PHANTOM_TOKEN_MIDAS_REDEMPTION, RWA_LIQUIDATOR_MIDAS };
|
|
@@ -2,9 +2,9 @@ import { BaseContract } from "../../../base/BaseContract.js";
|
|
|
2
2
|
import "../../../base/index.js";
|
|
3
3
|
import { RWA_LIQUIDATOR_SECURITIZE } from "./constants.js";
|
|
4
4
|
import { iSecuritizeLiquidatorV311Abi } from "../../../../abi/rwa/iSecuritizeLiquidatorV311.js";
|
|
5
|
-
//#region src/sdk/market/rwa/securitize/
|
|
5
|
+
//#region src/sdk/market/rwa/securitize/SecuritizeLiquidatorContract.ts
|
|
6
6
|
const abi = iSecuritizeLiquidatorV311Abi;
|
|
7
|
-
var
|
|
7
|
+
var SecuritizeLiquidatorContract = class extends BaseContract {
|
|
8
8
|
constructor(options, address) {
|
|
9
9
|
super(options, {
|
|
10
10
|
addr: address,
|
|
@@ -28,4 +28,4 @@ var SecuritizeLiquidator = class extends BaseContract {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
31
|
-
export {
|
|
31
|
+
export { SecuritizeLiquidatorContract };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region src/sdk/market/rwa/securitize/constants.ts
|
|
2
2
|
const RWA_FACTORY_SECURITIZE = "RWA_FACTORY::SECURITIZE";
|
|
3
3
|
const RWA_LIQUIDATOR_SECURITIZE = "RWA_LIQUIDATOR::SECURITIZE";
|
|
4
|
+
const PHANTOM_TOKEN_SECURITIZE_REDEMPTION = "PHANTOM_TOKEN::SECURITIZE_RD";
|
|
4
5
|
//#endregion
|
|
5
|
-
export { RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE };
|
|
6
|
+
export { PHANTOM_TOKEN_SECURITIZE_REDEMPTION, RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE } from "./constants.js";
|
|
2
|
-
import {
|
|
1
|
+
import { PHANTOM_TOKEN_SECURITIZE_REDEMPTION, RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE } from "./constants.js";
|
|
2
|
+
import { SecuritizeLiquidatorContract } from "./SecuritizeLiquidatorContract.js";
|
|
3
3
|
import { SECURITIZE_REGISTER_VAULT_TYPES } from "./types.js";
|
|
4
4
|
import { SecuritizeRWAFactory } from "./SecuritizeRWAFactory.js";
|
|
5
|
-
export { RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE, SECURITIZE_REGISTER_VAULT_TYPES,
|
|
5
|
+
export { PHANTOM_TOKEN_SECURITIZE_REDEMPTION, RWA_FACTORY_SECURITIZE, RWA_LIQUIDATOR_SECURITIZE, SECURITIZE_REGISTER_VAULT_TYPES, SecuritizeLiquidatorContract, SecuritizeRWAFactory };
|
|
@@ -79,7 +79,11 @@ declare const liquidationCompressorAbi: readonly [{
|
|
|
79
79
|
readonly type: "tuple";
|
|
80
80
|
readonly internalType: "struct LiquidationData";
|
|
81
81
|
readonly components: readonly [{
|
|
82
|
-
readonly name: "
|
|
82
|
+
readonly name: "requiredToken";
|
|
83
|
+
readonly type: "address";
|
|
84
|
+
readonly internalType: "address";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "requiredAmount";
|
|
83
87
|
readonly type: "uint256";
|
|
84
88
|
readonly internalType: "uint256";
|
|
85
89
|
}, {
|
|
@@ -124,6 +128,10 @@ declare const liquidationCompressorAbi: readonly [{
|
|
|
124
128
|
readonly name: "isLiquidatorEligible";
|
|
125
129
|
readonly type: "bool";
|
|
126
130
|
readonly internalType: "bool";
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "isCreditAccountFrozen";
|
|
133
|
+
readonly type: "bool";
|
|
134
|
+
readonly internalType: "bool";
|
|
127
135
|
}, {
|
|
128
136
|
readonly name: "kycProtocol";
|
|
129
137
|
readonly type: "string";
|
|
@@ -135,6 +143,33 @@ declare const liquidationCompressorAbi: readonly [{
|
|
|
135
143
|
}];
|
|
136
144
|
}];
|
|
137
145
|
readonly stateMutability: "nonpayable";
|
|
146
|
+
}, {
|
|
147
|
+
readonly type: "function";
|
|
148
|
+
readonly name: "getRWALiquidators";
|
|
149
|
+
readonly inputs: readonly [{
|
|
150
|
+
readonly name: "marketConfigurator";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
}];
|
|
154
|
+
readonly outputs: readonly [{
|
|
155
|
+
readonly name: "liquidators";
|
|
156
|
+
readonly type: "tuple[]";
|
|
157
|
+
readonly internalType: "struct RWALiquidatorInfo[]";
|
|
158
|
+
readonly components: readonly [{
|
|
159
|
+
readonly name: "gateway";
|
|
160
|
+
readonly type: "address";
|
|
161
|
+
readonly internalType: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "liquidatorAddress";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
readonly internalType: "address";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "contractType";
|
|
168
|
+
readonly type: "bytes32";
|
|
169
|
+
readonly internalType: "bytes32";
|
|
170
|
+
}];
|
|
171
|
+
}];
|
|
172
|
+
readonly stateMutability: "view";
|
|
138
173
|
}, {
|
|
139
174
|
readonly type: "function";
|
|
140
175
|
readonly name: "liquidatableTypeToCompressorType";
|
|
@@ -220,17 +220,17 @@ declare const rwaCompressorAbi: readonly [{
|
|
|
220
220
|
}];
|
|
221
221
|
}, {
|
|
222
222
|
readonly type: "error";
|
|
223
|
-
readonly name: "
|
|
223
|
+
readonly name: "InvalidMarketConfiguratorException";
|
|
224
224
|
readonly inputs: readonly [{
|
|
225
|
-
readonly name: "
|
|
225
|
+
readonly name: "marketConfigurator";
|
|
226
226
|
readonly type: "address";
|
|
227
227
|
readonly internalType: "address";
|
|
228
228
|
}];
|
|
229
229
|
}, {
|
|
230
230
|
readonly type: "error";
|
|
231
|
-
readonly name: "
|
|
231
|
+
readonly name: "InvalidRWAFactoryException";
|
|
232
232
|
readonly inputs: readonly [{
|
|
233
|
-
readonly name: "
|
|
233
|
+
readonly name: "factory";
|
|
234
234
|
readonly type: "address";
|
|
235
235
|
readonly internalType: "address";
|
|
236
236
|
}];
|
package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts
CHANGED
|
@@ -43,7 +43,11 @@ declare const midasLiquidationSubcompressorAbi: readonly [{
|
|
|
43
43
|
readonly type: "tuple";
|
|
44
44
|
readonly internalType: "struct LiquidationData";
|
|
45
45
|
readonly components: readonly [{
|
|
46
|
-
readonly name: "
|
|
46
|
+
readonly name: "requiredToken";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "requiredAmount";
|
|
47
51
|
readonly type: "uint256";
|
|
48
52
|
readonly internalType: "uint256";
|
|
49
53
|
}, {
|
|
@@ -88,6 +92,10 @@ declare const midasLiquidationSubcompressorAbi: readonly [{
|
|
|
88
92
|
readonly name: "isLiquidatorEligible";
|
|
89
93
|
readonly type: "bool";
|
|
90
94
|
readonly internalType: "bool";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "isCreditAccountFrozen";
|
|
97
|
+
readonly type: "bool";
|
|
98
|
+
readonly internalType: "bool";
|
|
91
99
|
}, {
|
|
92
100
|
readonly name: "kycProtocol";
|
|
93
101
|
readonly type: "string";
|
|
@@ -99,6 +107,33 @@ declare const midasLiquidationSubcompressorAbi: readonly [{
|
|
|
99
107
|
}];
|
|
100
108
|
}];
|
|
101
109
|
readonly stateMutability: "nonpayable";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
readonly name: "getRWALiquidatorInfo";
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly name: "token";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
}];
|
|
118
|
+
readonly outputs: readonly [{
|
|
119
|
+
readonly name: "info";
|
|
120
|
+
readonly type: "tuple";
|
|
121
|
+
readonly internalType: "struct RWALiquidatorInfo";
|
|
122
|
+
readonly components: readonly [{
|
|
123
|
+
readonly name: "gateway";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "liquidatorAddress";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
readonly internalType: "address";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "contractType";
|
|
132
|
+
readonly type: "bytes32";
|
|
133
|
+
readonly internalType: "bytes32";
|
|
134
|
+
}];
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "view";
|
|
102
137
|
}, {
|
|
103
138
|
readonly type: "function";
|
|
104
139
|
readonly name: "version";
|
|
@@ -43,7 +43,11 @@ declare const securitizeLiquidationSubcompressorAbi: readonly [{
|
|
|
43
43
|
readonly type: "tuple";
|
|
44
44
|
readonly internalType: "struct LiquidationData";
|
|
45
45
|
readonly components: readonly [{
|
|
46
|
-
readonly name: "
|
|
46
|
+
readonly name: "requiredToken";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "requiredAmount";
|
|
47
51
|
readonly type: "uint256";
|
|
48
52
|
readonly internalType: "uint256";
|
|
49
53
|
}, {
|
|
@@ -88,6 +92,10 @@ declare const securitizeLiquidationSubcompressorAbi: readonly [{
|
|
|
88
92
|
readonly name: "isLiquidatorEligible";
|
|
89
93
|
readonly type: "bool";
|
|
90
94
|
readonly internalType: "bool";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "isCreditAccountFrozen";
|
|
97
|
+
readonly type: "bool";
|
|
98
|
+
readonly internalType: "bool";
|
|
91
99
|
}, {
|
|
92
100
|
readonly name: "kycProtocol";
|
|
93
101
|
readonly type: "string";
|
|
@@ -99,6 +107,33 @@ declare const securitizeLiquidationSubcompressorAbi: readonly [{
|
|
|
99
107
|
}];
|
|
100
108
|
}];
|
|
101
109
|
readonly stateMutability: "nonpayable";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
readonly name: "getRWALiquidatorInfo";
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly name: "token";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
}];
|
|
118
|
+
readonly outputs: readonly [{
|
|
119
|
+
readonly name: "info";
|
|
120
|
+
readonly type: "tuple";
|
|
121
|
+
readonly internalType: "struct RWALiquidatorInfo";
|
|
122
|
+
readonly components: readonly [{
|
|
123
|
+
readonly name: "gateway";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "liquidatorAddress";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
readonly internalType: "address";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "contractType";
|
|
132
|
+
readonly type: "bytes32";
|
|
133
|
+
readonly internalType: "bytes32";
|
|
134
|
+
}];
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "view";
|
|
102
137
|
}, {
|
|
103
138
|
readonly type: "function";
|
|
104
139
|
readonly name: "version";
|