@gearbox-protocol/sdk 14.12.0-next.37 → 14.12.0-next.39

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 (47) hide show
  1. package/dist/cjs/abi/IWithdrawalCompressorV313.js +78 -0
  2. package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  3. package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  4. package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  5. package/dist/cjs/abi/compressors/withdrawalCompressor.js +197 -1
  6. package/dist/cjs/abi/helpers/redemptionLogger.js +160 -0
  7. package/dist/cjs/abi/router/midasWorker.js +4 -4
  8. package/dist/cjs/dev/AccountOpener.js +2 -2
  9. package/dist/cjs/plugins/adapters/abi/actionAbi.js +13 -5
  10. package/dist/cjs/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  11. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +2 -1
  12. package/dist/cjs/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +354 -0
  13. package/dist/cjs/plugins/adapters/abi/securitize/index.js +2 -0
  14. package/dist/cjs/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +1 -1
  15. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +90 -5
  16. package/dist/esm/abi/IWithdrawalCompressorV313.js +78 -0
  17. package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  18. package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  19. package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  20. package/dist/esm/abi/compressors/withdrawalCompressor.js +197 -1
  21. package/dist/esm/abi/helpers/redemptionLogger.js +136 -0
  22. package/dist/esm/abi/router/midasWorker.js +4 -4
  23. package/dist/esm/dev/AccountOpener.js +2 -2
  24. package/dist/esm/plugins/adapters/abi/actionAbi.js +13 -5
  25. package/dist/esm/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  26. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +2 -1
  27. package/dist/esm/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +330 -0
  28. package/dist/esm/plugins/adapters/abi/securitize/index.js +1 -0
  29. package/dist/esm/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +1 -1
  30. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +90 -5
  31. package/dist/types/abi/IWithdrawalCompressorV313.d.ts +103 -0
  32. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +121 -0
  33. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +121 -0
  34. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +121 -0
  35. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +274 -0
  36. package/dist/types/abi/helpers/redemptionLogger.d.ts +167 -0
  37. package/dist/types/abi/router/midasWorker.d.ts +4 -4
  38. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +274 -0
  39. package/dist/types/plugins/adapters/abi/actionAbi.d.ts +1 -1
  40. package/dist/types/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +37 -7
  41. package/dist/types/plugins/adapters/abi/securitize/iMidasGatewayAdapter.d.ts +555 -0
  42. package/dist/types/plugins/adapters/abi/securitize/index.d.ts +1 -0
  43. package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +37 -7
  44. package/dist/types/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +1 -1
  45. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +104 -1
  46. package/dist/types/sdk/accounts/withdrawal-compressor/types.d.ts +3 -2
  47. package/package.json +1 -1
@@ -104,9 +104,116 @@ export declare const mellowWithdrawalSubcompressorAbi: readonly [{
104
104
  readonly name: "claimableAt";
105
105
  readonly type: "uint256";
106
106
  readonly internalType: "uint256";
107
+ }, {
108
+ readonly name: "extraData";
109
+ readonly type: "bytes";
110
+ readonly internalType: "bytes";
107
111
  }];
108
112
  }];
109
113
  readonly stateMutability: "view";
114
+ }, {
115
+ readonly type: "function";
116
+ readonly name: "getExternalAccountCurrentWithdrawals";
117
+ readonly inputs: readonly [{
118
+ readonly name: "";
119
+ readonly type: "address";
120
+ readonly internalType: "address";
121
+ }, {
122
+ readonly name: "";
123
+ readonly type: "address";
124
+ readonly internalType: "address";
125
+ }];
126
+ readonly outputs: readonly [{
127
+ readonly name: "claimableWithdrawals";
128
+ readonly type: "tuple[]";
129
+ readonly internalType: "struct ClaimableWithdrawal[]";
130
+ readonly components: readonly [{
131
+ readonly name: "token";
132
+ readonly type: "address";
133
+ readonly internalType: "address";
134
+ }, {
135
+ readonly name: "withdrawalPhantomToken";
136
+ readonly type: "address";
137
+ readonly internalType: "address";
138
+ }, {
139
+ readonly name: "withdrawalTokenSpent";
140
+ readonly type: "uint256";
141
+ readonly internalType: "uint256";
142
+ }, {
143
+ readonly name: "outputs";
144
+ readonly type: "tuple[]";
145
+ readonly internalType: "struct WithdrawalOutput[]";
146
+ readonly components: readonly [{
147
+ readonly name: "token";
148
+ readonly type: "address";
149
+ readonly internalType: "address";
150
+ }, {
151
+ readonly name: "isDelayed";
152
+ readonly type: "bool";
153
+ readonly internalType: "bool";
154
+ }, {
155
+ readonly name: "amount";
156
+ readonly type: "uint256";
157
+ readonly internalType: "uint256";
158
+ }];
159
+ }, {
160
+ readonly name: "claimCalls";
161
+ readonly type: "tuple[]";
162
+ readonly internalType: "struct MultiCall[]";
163
+ readonly components: readonly [{
164
+ readonly name: "target";
165
+ readonly type: "address";
166
+ readonly internalType: "address";
167
+ }, {
168
+ readonly name: "callData";
169
+ readonly type: "bytes";
170
+ readonly internalType: "bytes";
171
+ }];
172
+ }, {
173
+ readonly name: "extraData";
174
+ readonly type: "bytes";
175
+ readonly internalType: "bytes";
176
+ }];
177
+ }, {
178
+ readonly name: "pendingWithdrawals";
179
+ readonly type: "tuple[]";
180
+ readonly internalType: "struct PendingWithdrawal[]";
181
+ readonly components: readonly [{
182
+ readonly name: "token";
183
+ readonly type: "address";
184
+ readonly internalType: "address";
185
+ }, {
186
+ readonly name: "withdrawalPhantomToken";
187
+ readonly type: "address";
188
+ readonly internalType: "address";
189
+ }, {
190
+ readonly name: "expectedOutputs";
191
+ readonly type: "tuple[]";
192
+ readonly internalType: "struct WithdrawalOutput[]";
193
+ readonly components: readonly [{
194
+ readonly name: "token";
195
+ readonly type: "address";
196
+ readonly internalType: "address";
197
+ }, {
198
+ readonly name: "isDelayed";
199
+ readonly type: "bool";
200
+ readonly internalType: "bool";
201
+ }, {
202
+ readonly name: "amount";
203
+ readonly type: "uint256";
204
+ readonly internalType: "uint256";
205
+ }];
206
+ }, {
207
+ readonly name: "claimableAt";
208
+ readonly type: "uint256";
209
+ readonly internalType: "uint256";
210
+ }, {
211
+ readonly name: "extraData";
212
+ readonly type: "bytes";
213
+ readonly internalType: "bytes";
214
+ }];
215
+ }];
216
+ readonly stateMutability: "pure";
110
217
  }, {
111
218
  readonly type: "function";
112
219
  readonly name: "getWithdrawableAssets";
@@ -288,6 +395,20 @@ export declare const mellowWithdrawalSubcompressorAbi: readonly [{
288
395
  }];
289
396
  }];
290
397
  readonly stateMutability: "view";
398
+ }, {
399
+ readonly type: "function";
400
+ readonly name: "getWithdrawalStatus";
401
+ readonly inputs: readonly [{
402
+ readonly name: "";
403
+ readonly type: "address";
404
+ readonly internalType: "address";
405
+ }];
406
+ readonly outputs: readonly [{
407
+ readonly name: "";
408
+ readonly type: "uint8";
409
+ readonly internalType: "enum WithdrawalStatus";
410
+ }];
411
+ readonly stateMutability: "pure";
291
412
  }, {
292
413
  readonly type: "function";
293
414
  readonly name: "version";
@@ -104,6 +104,113 @@ export declare const midasWithdrawalSubcompressorAbi: readonly [{
104
104
  readonly name: "claimableAt";
105
105
  readonly type: "uint256";
106
106
  readonly internalType: "uint256";
107
+ }, {
108
+ readonly name: "extraData";
109
+ readonly type: "bytes";
110
+ readonly internalType: "bytes";
111
+ }];
112
+ }];
113
+ readonly stateMutability: "view";
114
+ }, {
115
+ readonly type: "function";
116
+ readonly name: "getExternalAccountCurrentWithdrawals";
117
+ readonly inputs: readonly [{
118
+ readonly name: "account";
119
+ readonly type: "address";
120
+ readonly internalType: "address";
121
+ }, {
122
+ readonly name: "token";
123
+ readonly type: "address";
124
+ readonly internalType: "address";
125
+ }];
126
+ readonly outputs: readonly [{
127
+ readonly name: "";
128
+ readonly type: "tuple[]";
129
+ readonly internalType: "struct ClaimableWithdrawal[]";
130
+ readonly components: readonly [{
131
+ readonly name: "token";
132
+ readonly type: "address";
133
+ readonly internalType: "address";
134
+ }, {
135
+ readonly name: "withdrawalPhantomToken";
136
+ readonly type: "address";
137
+ readonly internalType: "address";
138
+ }, {
139
+ readonly name: "withdrawalTokenSpent";
140
+ readonly type: "uint256";
141
+ readonly internalType: "uint256";
142
+ }, {
143
+ readonly name: "outputs";
144
+ readonly type: "tuple[]";
145
+ readonly internalType: "struct WithdrawalOutput[]";
146
+ readonly components: readonly [{
147
+ readonly name: "token";
148
+ readonly type: "address";
149
+ readonly internalType: "address";
150
+ }, {
151
+ readonly name: "isDelayed";
152
+ readonly type: "bool";
153
+ readonly internalType: "bool";
154
+ }, {
155
+ readonly name: "amount";
156
+ readonly type: "uint256";
157
+ readonly internalType: "uint256";
158
+ }];
159
+ }, {
160
+ readonly name: "claimCalls";
161
+ readonly type: "tuple[]";
162
+ readonly internalType: "struct MultiCall[]";
163
+ readonly components: readonly [{
164
+ readonly name: "target";
165
+ readonly type: "address";
166
+ readonly internalType: "address";
167
+ }, {
168
+ readonly name: "callData";
169
+ readonly type: "bytes";
170
+ readonly internalType: "bytes";
171
+ }];
172
+ }, {
173
+ readonly name: "extraData";
174
+ readonly type: "bytes";
175
+ readonly internalType: "bytes";
176
+ }];
177
+ }, {
178
+ readonly name: "";
179
+ readonly type: "tuple[]";
180
+ readonly internalType: "struct PendingWithdrawal[]";
181
+ readonly components: readonly [{
182
+ readonly name: "token";
183
+ readonly type: "address";
184
+ readonly internalType: "address";
185
+ }, {
186
+ readonly name: "withdrawalPhantomToken";
187
+ readonly type: "address";
188
+ readonly internalType: "address";
189
+ }, {
190
+ readonly name: "expectedOutputs";
191
+ readonly type: "tuple[]";
192
+ readonly internalType: "struct WithdrawalOutput[]";
193
+ readonly components: readonly [{
194
+ readonly name: "token";
195
+ readonly type: "address";
196
+ readonly internalType: "address";
197
+ }, {
198
+ readonly name: "isDelayed";
199
+ readonly type: "bool";
200
+ readonly internalType: "bool";
201
+ }, {
202
+ readonly name: "amount";
203
+ readonly type: "uint256";
204
+ readonly internalType: "uint256";
205
+ }];
206
+ }, {
207
+ readonly name: "claimableAt";
208
+ readonly type: "uint256";
209
+ readonly internalType: "uint256";
210
+ }, {
211
+ readonly name: "extraData";
212
+ readonly type: "bytes";
213
+ readonly internalType: "bytes";
107
214
  }];
108
215
  }];
109
216
  readonly stateMutability: "view";
@@ -288,6 +395,20 @@ export declare const midasWithdrawalSubcompressorAbi: readonly [{
288
395
  }];
289
396
  }];
290
397
  readonly stateMutability: "view";
398
+ }, {
399
+ readonly type: "function";
400
+ readonly name: "getWithdrawalStatus";
401
+ readonly inputs: readonly [{
402
+ readonly name: "redeemer";
403
+ readonly type: "address";
404
+ readonly internalType: "address";
405
+ }];
406
+ readonly outputs: readonly [{
407
+ readonly name: "";
408
+ readonly type: "uint8";
409
+ readonly internalType: "enum WithdrawalStatus";
410
+ }];
411
+ readonly stateMutability: "view";
291
412
  }, {
292
413
  readonly type: "function";
293
414
  readonly name: "version";
@@ -104,6 +104,113 @@ export declare const securitizeRedemptionSubcompressorAbi: readonly [{
104
104
  readonly name: "claimableAt";
105
105
  readonly type: "uint256";
106
106
  readonly internalType: "uint256";
107
+ }, {
108
+ readonly name: "extraData";
109
+ readonly type: "bytes";
110
+ readonly internalType: "bytes";
111
+ }];
112
+ }];
113
+ readonly stateMutability: "view";
114
+ }, {
115
+ readonly type: "function";
116
+ readonly name: "getExternalAccountCurrentWithdrawals";
117
+ readonly inputs: readonly [{
118
+ readonly name: "account";
119
+ readonly type: "address";
120
+ readonly internalType: "address";
121
+ }, {
122
+ readonly name: "token";
123
+ readonly type: "address";
124
+ readonly internalType: "address";
125
+ }];
126
+ readonly outputs: readonly [{
127
+ readonly name: "";
128
+ readonly type: "tuple[]";
129
+ readonly internalType: "struct ClaimableWithdrawal[]";
130
+ readonly components: readonly [{
131
+ readonly name: "token";
132
+ readonly type: "address";
133
+ readonly internalType: "address";
134
+ }, {
135
+ readonly name: "withdrawalPhantomToken";
136
+ readonly type: "address";
137
+ readonly internalType: "address";
138
+ }, {
139
+ readonly name: "withdrawalTokenSpent";
140
+ readonly type: "uint256";
141
+ readonly internalType: "uint256";
142
+ }, {
143
+ readonly name: "outputs";
144
+ readonly type: "tuple[]";
145
+ readonly internalType: "struct WithdrawalOutput[]";
146
+ readonly components: readonly [{
147
+ readonly name: "token";
148
+ readonly type: "address";
149
+ readonly internalType: "address";
150
+ }, {
151
+ readonly name: "isDelayed";
152
+ readonly type: "bool";
153
+ readonly internalType: "bool";
154
+ }, {
155
+ readonly name: "amount";
156
+ readonly type: "uint256";
157
+ readonly internalType: "uint256";
158
+ }];
159
+ }, {
160
+ readonly name: "claimCalls";
161
+ readonly type: "tuple[]";
162
+ readonly internalType: "struct MultiCall[]";
163
+ readonly components: readonly [{
164
+ readonly name: "target";
165
+ readonly type: "address";
166
+ readonly internalType: "address";
167
+ }, {
168
+ readonly name: "callData";
169
+ readonly type: "bytes";
170
+ readonly internalType: "bytes";
171
+ }];
172
+ }, {
173
+ readonly name: "extraData";
174
+ readonly type: "bytes";
175
+ readonly internalType: "bytes";
176
+ }];
177
+ }, {
178
+ readonly name: "";
179
+ readonly type: "tuple[]";
180
+ readonly internalType: "struct PendingWithdrawal[]";
181
+ readonly components: readonly [{
182
+ readonly name: "token";
183
+ readonly type: "address";
184
+ readonly internalType: "address";
185
+ }, {
186
+ readonly name: "withdrawalPhantomToken";
187
+ readonly type: "address";
188
+ readonly internalType: "address";
189
+ }, {
190
+ readonly name: "expectedOutputs";
191
+ readonly type: "tuple[]";
192
+ readonly internalType: "struct WithdrawalOutput[]";
193
+ readonly components: readonly [{
194
+ readonly name: "token";
195
+ readonly type: "address";
196
+ readonly internalType: "address";
197
+ }, {
198
+ readonly name: "isDelayed";
199
+ readonly type: "bool";
200
+ readonly internalType: "bool";
201
+ }, {
202
+ readonly name: "amount";
203
+ readonly type: "uint256";
204
+ readonly internalType: "uint256";
205
+ }];
206
+ }, {
207
+ readonly name: "claimableAt";
208
+ readonly type: "uint256";
209
+ readonly internalType: "uint256";
210
+ }, {
211
+ readonly name: "extraData";
212
+ readonly type: "bytes";
213
+ readonly internalType: "bytes";
107
214
  }];
108
215
  }];
109
216
  readonly stateMutability: "view";
@@ -288,6 +395,20 @@ export declare const securitizeRedemptionSubcompressorAbi: readonly [{
288
395
  }];
289
396
  }];
290
397
  readonly stateMutability: "view";
398
+ }, {
399
+ readonly type: "function";
400
+ readonly name: "getWithdrawalStatus";
401
+ readonly inputs: readonly [{
402
+ readonly name: "redeemer";
403
+ readonly type: "address";
404
+ readonly internalType: "address";
405
+ }];
406
+ readonly outputs: readonly [{
407
+ readonly name: "";
408
+ readonly type: "uint8";
409
+ readonly internalType: "enum WithdrawalStatus";
410
+ }];
411
+ readonly stateMutability: "view";
291
412
  }, {
292
413
  readonly type: "function";
293
414
  readonly name: "version";