@gearbox-protocol/sdk 14.12.0-next.17 → 14.12.0-next.18

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.
Files changed (104) hide show
  1. package/dist/cjs/abi/{IWithdrawalCompressorV312.js → IWithdrawalCompressorV313.js} +49 -6
  2. package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +45 -1
  3. package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +45 -1
  4. package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +45 -1
  5. package/dist/cjs/abi/compressors/withdrawalCompressor.js +45 -1
  6. package/dist/cjs/dev/index.js +3 -1
  7. package/dist/cjs/dev/withdrawalAbi.js +2105 -0
  8. package/dist/cjs/dev/withdrawalUtils.js +271 -0
  9. package/dist/cjs/permissionless/bindings/factory/rate-keeper-factory.js +35 -0
  10. package/dist/cjs/permissionless/bindings/market-configurator.js +11 -0
  11. package/dist/cjs/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +1015 -0
  12. package/dist/cjs/plugins/adapters/abi/adapters/{iMidasIssuanceVaultAdapter.js → iMidasIssuanceVaultAdapterV310.js} +6 -6
  13. package/dist/cjs/plugins/adapters/abi/adapters/{iMidasRedemptionVault.js → iMidasRedemptionVaultAdapterV310.js} +9 -9
  14. package/dist/cjs/plugins/adapters/abi/adapters/index.js +6 -4
  15. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +3 -0
  16. package/dist/cjs/plugins/adapters/abi/targetContractAbi.js +3 -3
  17. package/dist/cjs/plugins/adapters/contracts/MidasGatewayAdapterContract.js +121 -0
  18. package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -2
  19. package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -2
  20. package/dist/cjs/plugins/adapters/contracts/index.js +2 -0
  21. package/dist/cjs/plugins/adapters/createAdapter.js +2 -0
  22. package/dist/cjs/plugins/adapters/types.js +1 -0
  23. package/dist/cjs/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.js +20 -37
  24. package/dist/cjs/sdk/OnchainSDK.js +11 -0
  25. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +9 -55
  26. package/dist/cjs/sdk/accounts/index.js +3 -1
  27. package/dist/cjs/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +229 -0
  28. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +40 -0
  29. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +40 -0
  30. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +40 -0
  31. package/dist/cjs/sdk/accounts/withdrawal-compressor/addresses.js +52 -0
  32. package/dist/cjs/sdk/accounts/withdrawal-compressor/createWithdrawalCompressor.js +53 -0
  33. package/dist/cjs/sdk/accounts/withdrawal-compressor/index.js +36 -0
  34. package/dist/cjs/sdk/accounts/withdrawal-compressor/intent.js +172 -0
  35. package/dist/cjs/sdk/accounts/withdrawal-compressor/types.js +16 -0
  36. package/dist/esm/abi/{IWithdrawalCompressorV312.js → IWithdrawalCompressorV313.js} +45 -2
  37. package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +45 -1
  38. package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +45 -1
  39. package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +45 -1
  40. package/dist/esm/abi/compressors/withdrawalCompressor.js +45 -1
  41. package/dist/esm/dev/index.js +1 -0
  42. package/dist/esm/dev/withdrawalAbi.js +2074 -0
  43. package/dist/esm/dev/withdrawalUtils.js +259 -0
  44. package/dist/esm/permissionless/bindings/factory/rate-keeper-factory.js +11 -0
  45. package/dist/esm/permissionless/bindings/market-configurator.js +11 -0
  46. package/dist/esm/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +990 -0
  47. package/dist/esm/plugins/adapters/abi/adapters/{iMidasIssuanceVaultAdapter.js → iMidasIssuanceVaultAdapterV310.js} +2 -2
  48. package/dist/esm/plugins/adapters/abi/adapters/{iMidasRedemptionVault.js → iMidasRedemptionVaultAdapterV310.js} +4 -4
  49. package/dist/esm/plugins/adapters/abi/adapters/index.js +3 -2
  50. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +3 -0
  51. package/dist/esm/plugins/adapters/abi/targetContractAbi.js +2 -2
  52. package/dist/esm/plugins/adapters/contracts/MidasGatewayAdapterContract.js +104 -0
  53. package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +4 -4
  54. package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +4 -4
  55. package/dist/esm/plugins/adapters/contracts/index.js +1 -0
  56. package/dist/esm/plugins/adapters/createAdapter.js +3 -0
  57. package/dist/esm/plugins/adapters/types.js +1 -0
  58. package/dist/esm/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.js +21 -39
  59. package/dist/esm/sdk/OnchainSDK.js +13 -1
  60. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +8 -53
  61. package/dist/esm/sdk/accounts/index.js +1 -0
  62. package/dist/esm/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +205 -0
  63. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +16 -0
  64. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +16 -0
  65. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +16 -0
  66. package/dist/esm/sdk/accounts/withdrawal-compressor/addresses.js +28 -0
  67. package/dist/esm/sdk/accounts/withdrawal-compressor/createWithdrawalCompressor.js +29 -0
  68. package/dist/esm/sdk/accounts/withdrawal-compressor/index.js +8 -0
  69. package/dist/esm/sdk/accounts/withdrawal-compressor/intent.js +137 -0
  70. package/dist/esm/sdk/accounts/withdrawal-compressor/types.js +0 -0
  71. package/dist/types/abi/{IWithdrawalCompressorV312.d.ts → IWithdrawalCompressorV313.d.ts} +74 -1
  72. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +77 -0
  73. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +77 -0
  74. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +77 -0
  75. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +77 -0
  76. package/dist/types/dev/index.d.ts +1 -0
  77. package/dist/types/dev/withdrawalAbi.d.ts +1584 -0
  78. package/dist/types/dev/withdrawalUtils.d.ts +19 -0
  79. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +77 -0
  80. package/dist/types/permissionless/bindings/factory/rate-keeper-factory.d.ts +179 -0
  81. package/dist/types/permissionless/bindings/market-configurator.d.ts +2 -0
  82. package/dist/types/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.d.ts +754 -0
  83. package/dist/types/plugins/adapters/abi/adapters/{iMidasIssuanceVaultAdapter.d.ts → iMidasIssuanceVaultAdapterV310.d.ts} +1 -1
  84. package/dist/types/plugins/adapters/abi/adapters/{iMidasRedemptionVault.d.ts → iMidasRedemptionVaultAdapterV310.d.ts} +2 -2
  85. package/dist/types/plugins/adapters/abi/adapters/index.d.ts +3 -2
  86. package/dist/types/plugins/adapters/abi/targetContractAbi.d.ts +1 -1
  87. package/dist/types/plugins/adapters/contracts/MidasGatewayAdapterContract.d.ts +790 -0
  88. package/dist/types/plugins/adapters/contracts/index.d.ts +1 -0
  89. package/dist/types/plugins/adapters/types.d.ts +2 -1
  90. package/dist/types/plugins/delayed-withdrawal/types.d.ts +4 -17
  91. package/dist/types/sdk/OnchainSDK.d.ts +10 -1
  92. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +3 -11
  93. package/dist/types/sdk/accounts/index.d.ts +1 -0
  94. package/dist/types/sdk/accounts/types.d.ts +4 -18
  95. package/dist/types/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +35 -0
  96. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.ts +334 -0
  97. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.ts +338 -0
  98. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +300 -0
  99. package/dist/types/sdk/accounts/withdrawal-compressor/addresses.d.ts +21 -0
  100. package/dist/types/sdk/accounts/withdrawal-compressor/createWithdrawalCompressor.d.ts +11 -0
  101. package/dist/types/sdk/accounts/withdrawal-compressor/index.d.ts +8 -0
  102. package/dist/types/sdk/accounts/withdrawal-compressor/intent.d.ts +106 -0
  103. package/dist/types/sdk/accounts/withdrawal-compressor/types.d.ts +122 -0
  104. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { iWithdrawalCompressorV310Abi } from "../../../abi/IWithdrawalCompressorV310.js";
2
+ import { AbstractWithdrawalCompressorContract } from "./AbstractWithdrawalCompressorContract.js";
3
+ const abi = iWithdrawalCompressorV310Abi;
4
+ class WithdrawalCompressorV310Contract extends AbstractWithdrawalCompressorContract {
5
+ constructor(sdk, address) {
6
+ super(sdk, {
7
+ addr: address,
8
+ name: "WithdrawalCompressorV310",
9
+ abi,
10
+ version: 310
11
+ });
12
+ }
13
+ }
14
+ export {
15
+ WithdrawalCompressorV310Contract
16
+ };
@@ -0,0 +1,16 @@
1
+ import { iWithdrawalCompressorV311Abi } from "../../../abi/IWithdrawalCompressorV311.js";
2
+ import { AbstractWithdrawalCompressorContract } from "./AbstractWithdrawalCompressorContract.js";
3
+ const abi = iWithdrawalCompressorV311Abi;
4
+ class WithdrawalCompressorV311Contract extends AbstractWithdrawalCompressorContract {
5
+ constructor(sdk, address) {
6
+ super(sdk, {
7
+ addr: address,
8
+ name: "WithdrawalCompressorV311",
9
+ abi,
10
+ version: 311
11
+ });
12
+ }
13
+ }
14
+ export {
15
+ WithdrawalCompressorV311Contract
16
+ };
@@ -0,0 +1,16 @@
1
+ import { iWithdrawalCompressorV313Abi } from "../../../abi/IWithdrawalCompressorV313.js";
2
+ import { AbstractWithdrawalCompressorContract } from "./AbstractWithdrawalCompressorContract.js";
3
+ const abi = iWithdrawalCompressorV313Abi;
4
+ class WithdrawalCompressorV313Contract extends AbstractWithdrawalCompressorContract {
5
+ constructor(sdk, address) {
6
+ super(sdk, {
7
+ addr: address,
8
+ name: "WithdrawalCompressorV313",
9
+ abi,
10
+ version: 313
11
+ });
12
+ }
13
+ }
14
+ export {
15
+ WithdrawalCompressorV313Contract
16
+ };
@@ -0,0 +1,28 @@
1
+ const WITHDRAWAL_COMPRESSORS = {
2
+ Mainnet: {
3
+ 310: "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023",
4
+ 313: "0x9605D59E40963ADce8a6895Aa3Fa497320Ef3F3b"
5
+ },
6
+ Monad: {
7
+ 310: "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023"
8
+ }
9
+ };
10
+ function getWithdrawalCompressorAddress(network, version) {
11
+ const deployments = WITHDRAWAL_COMPRESSORS[network];
12
+ if (!deployments) {
13
+ return void 0;
14
+ }
15
+ if (version !== void 0) {
16
+ const address2 = deployments[version];
17
+ return address2 ? { address: address2, version } : void 0;
18
+ }
19
+ const latest = Object.keys(deployments).map(Number).sort((a, b) => b - a)[0];
20
+ if (latest === void 0) {
21
+ return void 0;
22
+ }
23
+ const address = deployments[latest];
24
+ return address ? { address, version: latest } : void 0;
25
+ }
26
+ export {
27
+ getWithdrawalCompressorAddress
28
+ };
@@ -0,0 +1,29 @@
1
+ import { getWithdrawalCompressorAddress } from "./addresses.js";
2
+ import { WithdrawalCompressorV310Contract } from "./WithdrawalCompressorV310Contract.js";
3
+ import { WithdrawalCompressorV311Contract } from "./WithdrawalCompressorV311Contract.js";
4
+ import { WithdrawalCompressorV313Contract } from "./WithdrawalCompressorV313Contract.js";
5
+ function createWithdrawalCompressor(sdk, version) {
6
+ const location = getWithdrawalCompressorAddress(sdk.networkType, version);
7
+ if (!location) {
8
+ throw new Error(
9
+ `no withdrawal compressor${version ? ` v${version}` : ""} on ${sdk.networkType}`
10
+ );
11
+ }
12
+ const cached = sdk.getContract(
13
+ location.address
14
+ );
15
+ if (cached) {
16
+ return cached;
17
+ }
18
+ switch (location.version) {
19
+ case 310:
20
+ return new WithdrawalCompressorV310Contract(sdk, location.address);
21
+ case 311:
22
+ return new WithdrawalCompressorV311Contract(sdk, location.address);
23
+ case 313:
24
+ return new WithdrawalCompressorV313Contract(sdk, location.address);
25
+ }
26
+ }
27
+ export {
28
+ createWithdrawalCompressor
29
+ };
@@ -0,0 +1,8 @@
1
+ export * from "./AbstractWithdrawalCompressorContract.js";
2
+ export * from "./addresses.js";
3
+ export * from "./createWithdrawalCompressor.js";
4
+ export * from "./intent.js";
5
+ export * from "./types.js";
6
+ export * from "./WithdrawalCompressorV310Contract.js";
7
+ export * from "./WithdrawalCompressorV311Contract.js";
8
+ export * from "./WithdrawalCompressorV313Contract.js";
@@ -0,0 +1,137 @@
1
+ import { decodeAbiParameters, encodeAbiParameters } from "viem";
2
+ import { z } from "zod/v4";
3
+ import { ZodAddress } from "../../utils/index.js";
4
+ const delayedIncreaseLeverageIntentSchema = z.object({
5
+ type: z.literal("INCREASE_LEVERAGE"),
6
+ to: ZodAddress()
7
+ });
8
+ const delayedDepositIntentSchema = z.object({
9
+ type: z.literal("DEPOSIT")
10
+ });
11
+ const delayedDepositAndIncreaseLeverageIntentSchema = z.object({
12
+ type: z.literal("DEPOSIT_AND_INCREASE_LEVERAGE")
13
+ });
14
+ const delayedWithdrawCollateralIntentSchema = z.object({
15
+ type: z.literal("WITHDRAW_COLLATERAL"),
16
+ to: ZodAddress(),
17
+ withdrawToken: ZodAddress(),
18
+ withdrawAmount: z.bigint()
19
+ });
20
+ const delayedCloseAccountIntentSchema = z.object({
21
+ type: z.literal("CLOSE_ACCOUNT"),
22
+ to: ZodAddress()
23
+ });
24
+ const delayedAddCollateralIntentSchema = z.object({
25
+ type: z.literal("ADD_COLLATERAL")
26
+ });
27
+ const delayedDecreaseLeverageIntentSchema = z.object({
28
+ type: z.literal("DECREASE_LEVERAGE")
29
+ });
30
+ const delayedIntentSchema = z.discriminatedUnion("type", [
31
+ delayedIncreaseLeverageIntentSchema,
32
+ delayedDepositIntentSchema,
33
+ delayedDepositAndIncreaseLeverageIntentSchema,
34
+ delayedWithdrawCollateralIntentSchema,
35
+ delayedCloseAccountIntentSchema,
36
+ delayedAddCollateralIntentSchema,
37
+ delayedDecreaseLeverageIntentSchema
38
+ ]);
39
+ const DELAYED_INTENT_VERSION = 1;
40
+ const DELAYED_INTENT_TYPES = {
41
+ INCREASE_LEVERAGE: 1,
42
+ DEPOSIT: 2,
43
+ DEPOSIT_AND_INCREASE_LEVERAGE: 3,
44
+ WITHDRAW_COLLATERAL: 4,
45
+ CLOSE_ACCOUNT: 5,
46
+ ADD_COLLATERAL: 6,
47
+ DECREASE_LEVERAGE: 7
48
+ };
49
+ const HEADER_PARAMS = [
50
+ { type: "uint8", name: "version" },
51
+ { type: "uint8", name: "intentType" }
52
+ ];
53
+ const TO_PARAMS = [...HEADER_PARAMS, { type: "address", name: "to" }];
54
+ const WITHDRAW_COLLATERAL_PARAMS = [
55
+ ...TO_PARAMS,
56
+ { type: "address", name: "withdrawToken" },
57
+ { type: "uint256", name: "withdrawAmount" }
58
+ ];
59
+ function encodeDelayedIntent(intent) {
60
+ const parsed = delayedIntentSchema.parse(intent);
61
+ const version = DELAYED_INTENT_VERSION;
62
+ const intentType = DELAYED_INTENT_TYPES[parsed.type];
63
+ switch (parsed.type) {
64
+ case "INCREASE_LEVERAGE":
65
+ case "CLOSE_ACCOUNT":
66
+ return encodeAbiParameters(TO_PARAMS, [version, intentType, parsed.to]);
67
+ case "WITHDRAW_COLLATERAL":
68
+ return encodeAbiParameters(WITHDRAW_COLLATERAL_PARAMS, [
69
+ version,
70
+ intentType,
71
+ parsed.to,
72
+ parsed.withdrawToken,
73
+ parsed.withdrawAmount
74
+ ]);
75
+ case "DEPOSIT":
76
+ case "DEPOSIT_AND_INCREASE_LEVERAGE":
77
+ case "ADD_COLLATERAL":
78
+ case "DECREASE_LEVERAGE":
79
+ return encodeAbiParameters(HEADER_PARAMS, [version, intentType]);
80
+ default: {
81
+ const t = parsed;
82
+ throw new Error(`unknown delayed intent: ${JSON.stringify(t)}`);
83
+ }
84
+ }
85
+ }
86
+ function decodeDelayedIntent(data) {
87
+ const [version, intentType] = decodeAbiParameters(HEADER_PARAMS, data);
88
+ if (version !== DELAYED_INTENT_VERSION) {
89
+ throw new Error(`unsupported delayed intent version: ${version}`);
90
+ }
91
+ switch (intentType) {
92
+ case DELAYED_INTENT_TYPES.INCREASE_LEVERAGE: {
93
+ const [, , to] = decodeAbiParameters(TO_PARAMS, data);
94
+ return delayedIntentSchema.parse({ type: "INCREASE_LEVERAGE", to });
95
+ }
96
+ case DELAYED_INTENT_TYPES.DEPOSIT:
97
+ return { type: "DEPOSIT" };
98
+ case DELAYED_INTENT_TYPES.DEPOSIT_AND_INCREASE_LEVERAGE:
99
+ return { type: "DEPOSIT_AND_INCREASE_LEVERAGE" };
100
+ case DELAYED_INTENT_TYPES.WITHDRAW_COLLATERAL: {
101
+ const [, , to, withdrawToken, withdrawAmount] = decodeAbiParameters(
102
+ WITHDRAW_COLLATERAL_PARAMS,
103
+ data
104
+ );
105
+ return delayedIntentSchema.parse({
106
+ type: "WITHDRAW_COLLATERAL",
107
+ to,
108
+ withdrawToken,
109
+ withdrawAmount
110
+ });
111
+ }
112
+ case DELAYED_INTENT_TYPES.CLOSE_ACCOUNT: {
113
+ const [, , to] = decodeAbiParameters(TO_PARAMS, data);
114
+ return delayedIntentSchema.parse({ type: "CLOSE_ACCOUNT", to });
115
+ }
116
+ case DELAYED_INTENT_TYPES.ADD_COLLATERAL:
117
+ return { type: "ADD_COLLATERAL" };
118
+ case DELAYED_INTENT_TYPES.DECREASE_LEVERAGE:
119
+ return { type: "DECREASE_LEVERAGE" };
120
+ default:
121
+ throw new Error(`unknown delayed intent type: ${intentType}`);
122
+ }
123
+ }
124
+ export {
125
+ DELAYED_INTENT_TYPES,
126
+ DELAYED_INTENT_VERSION,
127
+ decodeDelayedIntent,
128
+ delayedAddCollateralIntentSchema,
129
+ delayedCloseAccountIntentSchema,
130
+ delayedDecreaseLeverageIntentSchema,
131
+ delayedDepositAndIncreaseLeverageIntentSchema,
132
+ delayedDepositIntentSchema,
133
+ delayedIncreaseLeverageIntentSchema,
134
+ delayedIntentSchema,
135
+ delayedWithdrawCollateralIntentSchema,
136
+ encodeDelayedIntent
137
+ };
@@ -1,4 +1,4 @@
1
- export declare const iWithdrawalCompressorV312Abi: readonly [{
1
+ export declare const iWithdrawalCompressorV313Abi: readonly [{
2
2
  readonly type: "function";
3
3
  readonly name: "contractType";
4
4
  readonly inputs: readonly [];
@@ -138,6 +138,79 @@ export declare const iWithdrawalCompressorV312Abi: readonly [{
138
138
  }];
139
139
  }];
140
140
  readonly stateMutability: "view";
141
+ }, {
142
+ readonly type: "function";
143
+ readonly name: "getWithdrawalRequestResult";
144
+ readonly inputs: readonly [{
145
+ readonly name: "creditAccount";
146
+ readonly type: "address";
147
+ readonly internalType: "address";
148
+ }, {
149
+ readonly name: "token";
150
+ readonly type: "address";
151
+ readonly internalType: "address";
152
+ }, {
153
+ readonly name: "withdrawalToken";
154
+ readonly type: "address";
155
+ readonly internalType: "address";
156
+ }, {
157
+ readonly name: "amount";
158
+ readonly type: "uint256";
159
+ readonly internalType: "uint256";
160
+ }, {
161
+ readonly name: "extraData";
162
+ readonly type: "bytes";
163
+ readonly internalType: "bytes";
164
+ }];
165
+ readonly outputs: readonly [{
166
+ readonly name: "";
167
+ readonly type: "tuple";
168
+ readonly internalType: "struct RequestableWithdrawal";
169
+ readonly components: readonly [{
170
+ readonly name: "token";
171
+ readonly type: "address";
172
+ readonly internalType: "address";
173
+ }, {
174
+ readonly name: "amountIn";
175
+ readonly type: "uint256";
176
+ readonly internalType: "uint256";
177
+ }, {
178
+ readonly name: "outputs";
179
+ readonly type: "tuple[]";
180
+ readonly internalType: "struct WithdrawalOutput[]";
181
+ readonly components: readonly [{
182
+ readonly name: "token";
183
+ readonly type: "address";
184
+ readonly internalType: "address";
185
+ }, {
186
+ readonly name: "isDelayed";
187
+ readonly type: "bool";
188
+ readonly internalType: "bool";
189
+ }, {
190
+ readonly name: "amount";
191
+ readonly type: "uint256";
192
+ readonly internalType: "uint256";
193
+ }];
194
+ }, {
195
+ readonly name: "requestCalls";
196
+ readonly type: "tuple[]";
197
+ readonly internalType: "struct MultiCall[]";
198
+ readonly components: readonly [{
199
+ readonly name: "target";
200
+ readonly type: "address";
201
+ readonly internalType: "address";
202
+ }, {
203
+ readonly name: "callData";
204
+ readonly type: "bytes";
205
+ readonly internalType: "bytes";
206
+ }];
207
+ }, {
208
+ readonly name: "claimableAt";
209
+ readonly type: "uint256";
210
+ readonly internalType: "uint256";
211
+ }];
212
+ }];
213
+ readonly stateMutability: "view";
141
214
  }, {
142
215
  readonly type: "function";
143
216
  readonly name: "getWithdrawalRequestResult";
@@ -66,6 +66,10 @@ export declare const mellowWithdrawalSubcompressorAbi: readonly [{
66
66
  readonly type: "bytes";
67
67
  readonly internalType: "bytes";
68
68
  }];
69
+ }, {
70
+ readonly name: "extraData";
71
+ readonly type: "bytes";
72
+ readonly internalType: "bytes";
69
73
  }];
70
74
  }, {
71
75
  readonly name: "";
@@ -142,6 +146,79 @@ export declare const mellowWithdrawalSubcompressorAbi: readonly [{
142
146
  }];
143
147
  }];
144
148
  readonly stateMutability: "view";
149
+ }, {
150
+ readonly type: "function";
151
+ readonly name: "getWithdrawalRequestResult";
152
+ readonly inputs: readonly [{
153
+ readonly name: "creditAccount";
154
+ readonly type: "address";
155
+ readonly internalType: "address";
156
+ }, {
157
+ readonly name: "token";
158
+ readonly type: "address";
159
+ readonly internalType: "address";
160
+ }, {
161
+ readonly name: "withdrawalToken";
162
+ readonly type: "address";
163
+ readonly internalType: "address";
164
+ }, {
165
+ readonly name: "amount";
166
+ readonly type: "uint256";
167
+ readonly internalType: "uint256";
168
+ }, {
169
+ readonly name: "";
170
+ readonly type: "bytes";
171
+ readonly internalType: "bytes";
172
+ }];
173
+ readonly outputs: readonly [{
174
+ readonly name: "requestableWithdrawal";
175
+ readonly type: "tuple";
176
+ readonly internalType: "struct RequestableWithdrawal";
177
+ readonly components: readonly [{
178
+ readonly name: "token";
179
+ readonly type: "address";
180
+ readonly internalType: "address";
181
+ }, {
182
+ readonly name: "amountIn";
183
+ readonly type: "uint256";
184
+ readonly internalType: "uint256";
185
+ }, {
186
+ readonly name: "outputs";
187
+ readonly type: "tuple[]";
188
+ readonly internalType: "struct WithdrawalOutput[]";
189
+ readonly components: readonly [{
190
+ readonly name: "token";
191
+ readonly type: "address";
192
+ readonly internalType: "address";
193
+ }, {
194
+ readonly name: "isDelayed";
195
+ readonly type: "bool";
196
+ readonly internalType: "bool";
197
+ }, {
198
+ readonly name: "amount";
199
+ readonly type: "uint256";
200
+ readonly internalType: "uint256";
201
+ }];
202
+ }, {
203
+ readonly name: "requestCalls";
204
+ readonly type: "tuple[]";
205
+ readonly internalType: "struct MultiCall[]";
206
+ readonly components: readonly [{
207
+ readonly name: "target";
208
+ readonly type: "address";
209
+ readonly internalType: "address";
210
+ }, {
211
+ readonly name: "callData";
212
+ readonly type: "bytes";
213
+ readonly internalType: "bytes";
214
+ }];
215
+ }, {
216
+ readonly name: "claimableAt";
217
+ readonly type: "uint256";
218
+ readonly internalType: "uint256";
219
+ }];
220
+ }];
221
+ readonly stateMutability: "view";
145
222
  }, {
146
223
  readonly type: "function";
147
224
  readonly name: "getWithdrawalRequestResult";
@@ -66,6 +66,10 @@ export declare const midasWithdrawalSubcompressorAbi: readonly [{
66
66
  readonly type: "bytes";
67
67
  readonly internalType: "bytes";
68
68
  }];
69
+ }, {
70
+ readonly name: "extraData";
71
+ readonly type: "bytes";
72
+ readonly internalType: "bytes";
69
73
  }];
70
74
  }, {
71
75
  readonly name: "";
@@ -142,6 +146,79 @@ export declare const midasWithdrawalSubcompressorAbi: readonly [{
142
146
  }];
143
147
  }];
144
148
  readonly stateMutability: "view";
149
+ }, {
150
+ readonly type: "function";
151
+ readonly name: "getWithdrawalRequestResult";
152
+ readonly inputs: readonly [{
153
+ readonly name: "creditAccount";
154
+ readonly type: "address";
155
+ readonly internalType: "address";
156
+ }, {
157
+ readonly name: "token";
158
+ readonly type: "address";
159
+ readonly internalType: "address";
160
+ }, {
161
+ readonly name: "withdrawalToken";
162
+ readonly type: "address";
163
+ readonly internalType: "address";
164
+ }, {
165
+ readonly name: "amount";
166
+ readonly type: "uint256";
167
+ readonly internalType: "uint256";
168
+ }, {
169
+ readonly name: "extraData";
170
+ readonly type: "bytes";
171
+ readonly internalType: "bytes";
172
+ }];
173
+ readonly outputs: readonly [{
174
+ readonly name: "requestableWithdrawal";
175
+ readonly type: "tuple";
176
+ readonly internalType: "struct RequestableWithdrawal";
177
+ readonly components: readonly [{
178
+ readonly name: "token";
179
+ readonly type: "address";
180
+ readonly internalType: "address";
181
+ }, {
182
+ readonly name: "amountIn";
183
+ readonly type: "uint256";
184
+ readonly internalType: "uint256";
185
+ }, {
186
+ readonly name: "outputs";
187
+ readonly type: "tuple[]";
188
+ readonly internalType: "struct WithdrawalOutput[]";
189
+ readonly components: readonly [{
190
+ readonly name: "token";
191
+ readonly type: "address";
192
+ readonly internalType: "address";
193
+ }, {
194
+ readonly name: "isDelayed";
195
+ readonly type: "bool";
196
+ readonly internalType: "bool";
197
+ }, {
198
+ readonly name: "amount";
199
+ readonly type: "uint256";
200
+ readonly internalType: "uint256";
201
+ }];
202
+ }, {
203
+ readonly name: "requestCalls";
204
+ readonly type: "tuple[]";
205
+ readonly internalType: "struct MultiCall[]";
206
+ readonly components: readonly [{
207
+ readonly name: "target";
208
+ readonly type: "address";
209
+ readonly internalType: "address";
210
+ }, {
211
+ readonly name: "callData";
212
+ readonly type: "bytes";
213
+ readonly internalType: "bytes";
214
+ }];
215
+ }, {
216
+ readonly name: "claimableAt";
217
+ readonly type: "uint256";
218
+ readonly internalType: "uint256";
219
+ }];
220
+ }];
221
+ readonly stateMutability: "view";
145
222
  }, {
146
223
  readonly type: "function";
147
224
  readonly name: "getWithdrawalRequestResult";
@@ -66,6 +66,10 @@ export declare const securitizeRedemptionSubcompressorAbi: readonly [{
66
66
  readonly type: "bytes";
67
67
  readonly internalType: "bytes";
68
68
  }];
69
+ }, {
70
+ readonly name: "extraData";
71
+ readonly type: "bytes";
72
+ readonly internalType: "bytes";
69
73
  }];
70
74
  }, {
71
75
  readonly name: "";
@@ -142,6 +146,79 @@ export declare const securitizeRedemptionSubcompressorAbi: readonly [{
142
146
  }];
143
147
  }];
144
148
  readonly stateMutability: "view";
149
+ }, {
150
+ readonly type: "function";
151
+ readonly name: "getWithdrawalRequestResult";
152
+ readonly inputs: readonly [{
153
+ readonly name: "creditAccount";
154
+ readonly type: "address";
155
+ readonly internalType: "address";
156
+ }, {
157
+ readonly name: "token";
158
+ readonly type: "address";
159
+ readonly internalType: "address";
160
+ }, {
161
+ readonly name: "withdrawalToken";
162
+ readonly type: "address";
163
+ readonly internalType: "address";
164
+ }, {
165
+ readonly name: "amount";
166
+ readonly type: "uint256";
167
+ readonly internalType: "uint256";
168
+ }, {
169
+ readonly name: "extraData";
170
+ readonly type: "bytes";
171
+ readonly internalType: "bytes";
172
+ }];
173
+ readonly outputs: readonly [{
174
+ readonly name: "requestableWithdrawal";
175
+ readonly type: "tuple";
176
+ readonly internalType: "struct RequestableWithdrawal";
177
+ readonly components: readonly [{
178
+ readonly name: "token";
179
+ readonly type: "address";
180
+ readonly internalType: "address";
181
+ }, {
182
+ readonly name: "amountIn";
183
+ readonly type: "uint256";
184
+ readonly internalType: "uint256";
185
+ }, {
186
+ readonly name: "outputs";
187
+ readonly type: "tuple[]";
188
+ readonly internalType: "struct WithdrawalOutput[]";
189
+ readonly components: readonly [{
190
+ readonly name: "token";
191
+ readonly type: "address";
192
+ readonly internalType: "address";
193
+ }, {
194
+ readonly name: "isDelayed";
195
+ readonly type: "bool";
196
+ readonly internalType: "bool";
197
+ }, {
198
+ readonly name: "amount";
199
+ readonly type: "uint256";
200
+ readonly internalType: "uint256";
201
+ }];
202
+ }, {
203
+ readonly name: "requestCalls";
204
+ readonly type: "tuple[]";
205
+ readonly internalType: "struct MultiCall[]";
206
+ readonly components: readonly [{
207
+ readonly name: "target";
208
+ readonly type: "address";
209
+ readonly internalType: "address";
210
+ }, {
211
+ readonly name: "callData";
212
+ readonly type: "bytes";
213
+ readonly internalType: "bytes";
214
+ }];
215
+ }, {
216
+ readonly name: "claimableAt";
217
+ readonly type: "uint256";
218
+ readonly internalType: "uint256";
219
+ }];
220
+ }];
221
+ readonly stateMutability: "view";
145
222
  }, {
146
223
  readonly type: "function";
147
224
  readonly name: "getWithdrawalRequestResult";