@gearbox-protocol/sdk 14.12.0-test.1 → 14.12.0-test.3

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 (48) hide show
  1. package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  2. package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  3. package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  4. package/dist/cjs/abi/compressors/withdrawalCompressor.js +197 -1
  5. package/dist/cjs/abi/helpers/redemptionLogger.js +160 -0
  6. package/dist/cjs/abi/router/midasWorker.js +4 -4
  7. package/dist/cjs/dev/AccountOpener.js +2 -2
  8. package/dist/cjs/plugins/adapters/abi/actionAbi.js +13 -5
  9. package/dist/cjs/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  10. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +2 -1
  11. package/dist/cjs/preview/preview/buildDelayedPreview.js +38 -16
  12. package/dist/cjs/sdk/accounts/liquidations/LiquidationsService.js +21 -0
  13. package/dist/cjs/sdk/accounts/liquidations/MultichainLiquidationsService.js +26 -0
  14. package/dist/cjs/sdk/accounts/liquidations/helpers.js +29 -2
  15. package/dist/cjs/sdk/accounts/withdrawal-compressor/intent-codec.js +4 -6
  16. package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  17. package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  18. package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  19. package/dist/esm/abi/compressors/withdrawalCompressor.js +197 -1
  20. package/dist/esm/abi/helpers/redemptionLogger.js +136 -0
  21. package/dist/esm/abi/router/midasWorker.js +4 -4
  22. package/dist/esm/dev/AccountOpener.js +2 -2
  23. package/dist/esm/plugins/adapters/abi/actionAbi.js +13 -5
  24. package/dist/esm/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  25. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +2 -1
  26. package/dist/esm/preview/preview/buildDelayedPreview.js +41 -17
  27. package/dist/esm/sdk/accounts/liquidations/LiquidationsService.js +23 -1
  28. package/dist/esm/sdk/accounts/liquidations/MultichainLiquidationsService.js +26 -0
  29. package/dist/esm/sdk/accounts/liquidations/helpers.js +27 -1
  30. package/dist/esm/sdk/accounts/withdrawal-compressor/intent-codec.js +4 -6
  31. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +121 -0
  32. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +121 -0
  33. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +121 -0
  34. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +274 -0
  35. package/dist/types/abi/helpers/redemptionLogger.d.ts +167 -0
  36. package/dist/types/abi/router/midasWorker.d.ts +4 -4
  37. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +274 -0
  38. package/dist/types/plugins/adapters/abi/actionAbi.d.ts +1 -1
  39. package/dist/types/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +37 -7
  40. package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +37 -7
  41. package/dist/types/preview/preview/buildDelayedPreview.d.ts +8 -26
  42. package/dist/types/sdk/accounts/liquidations/LiquidationsService.d.ts +5 -1
  43. package/dist/types/sdk/accounts/liquidations/MultichainLiquidationsService.d.ts +5 -1
  44. package/dist/types/sdk/accounts/liquidations/helpers.d.ts +12 -0
  45. package/dist/types/sdk/accounts/liquidations/types.d.ts +55 -0
  46. package/dist/types/sdk/accounts/withdrawal-compressor/intent-codec.d.ts +1 -1
  47. package/dist/types/sdk/accounts/withdrawal-compressor/types.d.ts +4 -9
  48. package/package.json +1 -1
@@ -96,12 +96,87 @@ const mellowWithdrawalSubcompressorAbi = [
96
96
  { name: "amount", type: "uint256", internalType: "uint256" }
97
97
  ]
98
98
  },
99
- { name: "claimableAt", type: "uint256", internalType: "uint256" }
99
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
100
+ { name: "extraData", type: "bytes", internalType: "bytes" }
100
101
  ]
101
102
  }
102
103
  ],
103
104
  stateMutability: "view"
104
105
  },
106
+ {
107
+ type: "function",
108
+ name: "getExternalAccountCurrentWithdrawals",
109
+ inputs: [
110
+ { name: "", type: "address", internalType: "address" },
111
+ { name: "", type: "address", internalType: "address" }
112
+ ],
113
+ outputs: [
114
+ {
115
+ name: "claimableWithdrawals",
116
+ type: "tuple[]",
117
+ internalType: "struct ClaimableWithdrawal[]",
118
+ components: [
119
+ { name: "token", type: "address", internalType: "address" },
120
+ {
121
+ name: "withdrawalPhantomToken",
122
+ type: "address",
123
+ internalType: "address"
124
+ },
125
+ {
126
+ name: "withdrawalTokenSpent",
127
+ type: "uint256",
128
+ internalType: "uint256"
129
+ },
130
+ {
131
+ name: "outputs",
132
+ type: "tuple[]",
133
+ internalType: "struct WithdrawalOutput[]",
134
+ components: [
135
+ { name: "token", type: "address", internalType: "address" },
136
+ { name: "isDelayed", type: "bool", internalType: "bool" },
137
+ { name: "amount", type: "uint256", internalType: "uint256" }
138
+ ]
139
+ },
140
+ {
141
+ name: "claimCalls",
142
+ type: "tuple[]",
143
+ internalType: "struct MultiCall[]",
144
+ components: [
145
+ { name: "target", type: "address", internalType: "address" },
146
+ { name: "callData", type: "bytes", internalType: "bytes" }
147
+ ]
148
+ },
149
+ { name: "extraData", type: "bytes", internalType: "bytes" }
150
+ ]
151
+ },
152
+ {
153
+ name: "pendingWithdrawals",
154
+ type: "tuple[]",
155
+ internalType: "struct PendingWithdrawal[]",
156
+ components: [
157
+ { name: "token", type: "address", internalType: "address" },
158
+ {
159
+ name: "withdrawalPhantomToken",
160
+ type: "address",
161
+ internalType: "address"
162
+ },
163
+ {
164
+ name: "expectedOutputs",
165
+ type: "tuple[]",
166
+ internalType: "struct WithdrawalOutput[]",
167
+ components: [
168
+ { name: "token", type: "address", internalType: "address" },
169
+ { name: "isDelayed", type: "bool", internalType: "bool" },
170
+ { name: "amount", type: "uint256", internalType: "uint256" }
171
+ ]
172
+ },
173
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
174
+ { name: "extraData", type: "bytes", internalType: "bytes" }
175
+ ]
176
+ }
177
+ ],
178
+ stateMutability: "pure"
179
+ },
105
180
  {
106
181
  type: "function",
107
182
  name: "getWithdrawableAssets",
@@ -218,6 +293,15 @@ const mellowWithdrawalSubcompressorAbi = [
218
293
  ],
219
294
  stateMutability: "view"
220
295
  },
296
+ {
297
+ type: "function",
298
+ name: "getWithdrawalStatus",
299
+ inputs: [{ name: "", type: "address", internalType: "address" }],
300
+ outputs: [
301
+ { name: "", type: "uint8", internalType: "enum WithdrawalStatus" }
302
+ ],
303
+ stateMutability: "pure"
304
+ },
221
305
  {
222
306
  type: "function",
223
307
  name: "version",
@@ -96,7 +96,82 @@ const midasWithdrawalSubcompressorAbi = [
96
96
  { name: "amount", type: "uint256", internalType: "uint256" }
97
97
  ]
98
98
  },
99
- { name: "claimableAt", type: "uint256", internalType: "uint256" }
99
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
100
+ { name: "extraData", type: "bytes", internalType: "bytes" }
101
+ ]
102
+ }
103
+ ],
104
+ stateMutability: "view"
105
+ },
106
+ {
107
+ type: "function",
108
+ name: "getExternalAccountCurrentWithdrawals",
109
+ inputs: [
110
+ { name: "account", type: "address", internalType: "address" },
111
+ { name: "token", type: "address", internalType: "address" }
112
+ ],
113
+ outputs: [
114
+ {
115
+ name: "",
116
+ type: "tuple[]",
117
+ internalType: "struct ClaimableWithdrawal[]",
118
+ components: [
119
+ { name: "token", type: "address", internalType: "address" },
120
+ {
121
+ name: "withdrawalPhantomToken",
122
+ type: "address",
123
+ internalType: "address"
124
+ },
125
+ {
126
+ name: "withdrawalTokenSpent",
127
+ type: "uint256",
128
+ internalType: "uint256"
129
+ },
130
+ {
131
+ name: "outputs",
132
+ type: "tuple[]",
133
+ internalType: "struct WithdrawalOutput[]",
134
+ components: [
135
+ { name: "token", type: "address", internalType: "address" },
136
+ { name: "isDelayed", type: "bool", internalType: "bool" },
137
+ { name: "amount", type: "uint256", internalType: "uint256" }
138
+ ]
139
+ },
140
+ {
141
+ name: "claimCalls",
142
+ type: "tuple[]",
143
+ internalType: "struct MultiCall[]",
144
+ components: [
145
+ { name: "target", type: "address", internalType: "address" },
146
+ { name: "callData", type: "bytes", internalType: "bytes" }
147
+ ]
148
+ },
149
+ { name: "extraData", type: "bytes", internalType: "bytes" }
150
+ ]
151
+ },
152
+ {
153
+ name: "",
154
+ type: "tuple[]",
155
+ internalType: "struct PendingWithdrawal[]",
156
+ components: [
157
+ { name: "token", type: "address", internalType: "address" },
158
+ {
159
+ name: "withdrawalPhantomToken",
160
+ type: "address",
161
+ internalType: "address"
162
+ },
163
+ {
164
+ name: "expectedOutputs",
165
+ type: "tuple[]",
166
+ internalType: "struct WithdrawalOutput[]",
167
+ components: [
168
+ { name: "token", type: "address", internalType: "address" },
169
+ { name: "isDelayed", type: "bool", internalType: "bool" },
170
+ { name: "amount", type: "uint256", internalType: "uint256" }
171
+ ]
172
+ },
173
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
174
+ { name: "extraData", type: "bytes", internalType: "bytes" }
100
175
  ]
101
176
  }
102
177
  ],
@@ -218,6 +293,15 @@ const midasWithdrawalSubcompressorAbi = [
218
293
  ],
219
294
  stateMutability: "view"
220
295
  },
296
+ {
297
+ type: "function",
298
+ name: "getWithdrawalStatus",
299
+ inputs: [{ name: "redeemer", type: "address", internalType: "address" }],
300
+ outputs: [
301
+ { name: "", type: "uint8", internalType: "enum WithdrawalStatus" }
302
+ ],
303
+ stateMutability: "view"
304
+ },
221
305
  {
222
306
  type: "function",
223
307
  name: "version",
@@ -96,7 +96,82 @@ const securitizeRedemptionSubcompressorAbi = [
96
96
  { name: "amount", type: "uint256", internalType: "uint256" }
97
97
  ]
98
98
  },
99
- { name: "claimableAt", type: "uint256", internalType: "uint256" }
99
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
100
+ { name: "extraData", type: "bytes", internalType: "bytes" }
101
+ ]
102
+ }
103
+ ],
104
+ stateMutability: "view"
105
+ },
106
+ {
107
+ type: "function",
108
+ name: "getExternalAccountCurrentWithdrawals",
109
+ inputs: [
110
+ { name: "account", type: "address", internalType: "address" },
111
+ { name: "token", type: "address", internalType: "address" }
112
+ ],
113
+ outputs: [
114
+ {
115
+ name: "",
116
+ type: "tuple[]",
117
+ internalType: "struct ClaimableWithdrawal[]",
118
+ components: [
119
+ { name: "token", type: "address", internalType: "address" },
120
+ {
121
+ name: "withdrawalPhantomToken",
122
+ type: "address",
123
+ internalType: "address"
124
+ },
125
+ {
126
+ name: "withdrawalTokenSpent",
127
+ type: "uint256",
128
+ internalType: "uint256"
129
+ },
130
+ {
131
+ name: "outputs",
132
+ type: "tuple[]",
133
+ internalType: "struct WithdrawalOutput[]",
134
+ components: [
135
+ { name: "token", type: "address", internalType: "address" },
136
+ { name: "isDelayed", type: "bool", internalType: "bool" },
137
+ { name: "amount", type: "uint256", internalType: "uint256" }
138
+ ]
139
+ },
140
+ {
141
+ name: "claimCalls",
142
+ type: "tuple[]",
143
+ internalType: "struct MultiCall[]",
144
+ components: [
145
+ { name: "target", type: "address", internalType: "address" },
146
+ { name: "callData", type: "bytes", internalType: "bytes" }
147
+ ]
148
+ },
149
+ { name: "extraData", type: "bytes", internalType: "bytes" }
150
+ ]
151
+ },
152
+ {
153
+ name: "",
154
+ type: "tuple[]",
155
+ internalType: "struct PendingWithdrawal[]",
156
+ components: [
157
+ { name: "token", type: "address", internalType: "address" },
158
+ {
159
+ name: "withdrawalPhantomToken",
160
+ type: "address",
161
+ internalType: "address"
162
+ },
163
+ {
164
+ name: "expectedOutputs",
165
+ type: "tuple[]",
166
+ internalType: "struct WithdrawalOutput[]",
167
+ components: [
168
+ { name: "token", type: "address", internalType: "address" },
169
+ { name: "isDelayed", type: "bool", internalType: "bool" },
170
+ { name: "amount", type: "uint256", internalType: "uint256" }
171
+ ]
172
+ },
173
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
174
+ { name: "extraData", type: "bytes", internalType: "bytes" }
100
175
  ]
101
176
  }
102
177
  ],
@@ -218,6 +293,15 @@ const securitizeRedemptionSubcompressorAbi = [
218
293
  ],
219
294
  stateMutability: "view"
220
295
  },
296
+ {
297
+ type: "function",
298
+ name: "getWithdrawalStatus",
299
+ inputs: [{ name: "redeemer", type: "address", internalType: "address" }],
300
+ outputs: [
301
+ { name: "", type: "uint8", internalType: "enum WithdrawalStatus" }
302
+ ],
303
+ stateMutability: "view"
304
+ },
221
305
  {
222
306
  type: "function",
223
307
  name: "version",
@@ -40,7 +40,10 @@ const withdrawalCompressorAbi = [
40
40
  {
41
41
  type: "function",
42
42
  name: "compressorTypeToCompressor",
43
- inputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
43
+ inputs: [
44
+ { name: "", type: "bytes32", internalType: "bytes32" },
45
+ { name: "", type: "uint256", internalType: "uint256" }
46
+ ],
44
47
  outputs: [{ name: "", type: "address", internalType: "address" }],
45
48
  stateMutability: "view"
46
49
  },
@@ -124,6 +127,158 @@ const withdrawalCompressorAbi = [
124
127
  ],
125
128
  stateMutability: "view"
126
129
  },
130
+ {
131
+ type: "function",
132
+ name: "getExternalAccountCurrentWithdrawals",
133
+ inputs: [
134
+ {
135
+ name: "withdrawalTokens",
136
+ type: "address[]",
137
+ internalType: "address[]"
138
+ },
139
+ { name: "account", type: "address", internalType: "address" }
140
+ ],
141
+ outputs: [
142
+ {
143
+ name: "",
144
+ type: "tuple[]",
145
+ internalType: "struct ClaimableWithdrawal[]",
146
+ components: [
147
+ { name: "token", type: "address", internalType: "address" },
148
+ {
149
+ name: "withdrawalPhantomToken",
150
+ type: "address",
151
+ internalType: "address"
152
+ },
153
+ {
154
+ name: "withdrawalTokenSpent",
155
+ type: "uint256",
156
+ internalType: "uint256"
157
+ },
158
+ {
159
+ name: "outputs",
160
+ type: "tuple[]",
161
+ internalType: "struct WithdrawalOutput[]",
162
+ components: [
163
+ { name: "token", type: "address", internalType: "address" },
164
+ { name: "isDelayed", type: "bool", internalType: "bool" },
165
+ { name: "amount", type: "uint256", internalType: "uint256" }
166
+ ]
167
+ },
168
+ {
169
+ name: "claimCalls",
170
+ type: "tuple[]",
171
+ internalType: "struct MultiCall[]",
172
+ components: [
173
+ { name: "target", type: "address", internalType: "address" },
174
+ { name: "callData", type: "bytes", internalType: "bytes" }
175
+ ]
176
+ },
177
+ { name: "extraData", type: "bytes", internalType: "bytes" }
178
+ ]
179
+ },
180
+ {
181
+ name: "",
182
+ type: "tuple[]",
183
+ internalType: "struct PendingWithdrawal[]",
184
+ components: [
185
+ { name: "token", type: "address", internalType: "address" },
186
+ {
187
+ name: "withdrawalPhantomToken",
188
+ type: "address",
189
+ internalType: "address"
190
+ },
191
+ {
192
+ name: "expectedOutputs",
193
+ type: "tuple[]",
194
+ internalType: "struct WithdrawalOutput[]",
195
+ components: [
196
+ { name: "token", type: "address", internalType: "address" },
197
+ { name: "isDelayed", type: "bool", internalType: "bool" },
198
+ { name: "amount", type: "uint256", internalType: "uint256" }
199
+ ]
200
+ },
201
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
202
+ { name: "extraData", type: "bytes", internalType: "bytes" }
203
+ ]
204
+ }
205
+ ],
206
+ stateMutability: "view"
207
+ },
208
+ {
209
+ type: "function",
210
+ name: "getExternalAccountCurrentWithdrawals",
211
+ inputs: [
212
+ { name: "withdrawalToken", type: "address", internalType: "address" },
213
+ { name: "account", type: "address", internalType: "address" }
214
+ ],
215
+ outputs: [
216
+ {
217
+ name: "",
218
+ type: "tuple[]",
219
+ internalType: "struct ClaimableWithdrawal[]",
220
+ components: [
221
+ { name: "token", type: "address", internalType: "address" },
222
+ {
223
+ name: "withdrawalPhantomToken",
224
+ type: "address",
225
+ internalType: "address"
226
+ },
227
+ {
228
+ name: "withdrawalTokenSpent",
229
+ type: "uint256",
230
+ internalType: "uint256"
231
+ },
232
+ {
233
+ name: "outputs",
234
+ type: "tuple[]",
235
+ internalType: "struct WithdrawalOutput[]",
236
+ components: [
237
+ { name: "token", type: "address", internalType: "address" },
238
+ { name: "isDelayed", type: "bool", internalType: "bool" },
239
+ { name: "amount", type: "uint256", internalType: "uint256" }
240
+ ]
241
+ },
242
+ {
243
+ name: "claimCalls",
244
+ type: "tuple[]",
245
+ internalType: "struct MultiCall[]",
246
+ components: [
247
+ { name: "target", type: "address", internalType: "address" },
248
+ { name: "callData", type: "bytes", internalType: "bytes" }
249
+ ]
250
+ },
251
+ { name: "extraData", type: "bytes", internalType: "bytes" }
252
+ ]
253
+ },
254
+ {
255
+ name: "",
256
+ type: "tuple[]",
257
+ internalType: "struct PendingWithdrawal[]",
258
+ components: [
259
+ { name: "token", type: "address", internalType: "address" },
260
+ {
261
+ name: "withdrawalPhantomToken",
262
+ type: "address",
263
+ internalType: "address"
264
+ },
265
+ {
266
+ name: "expectedOutputs",
267
+ type: "tuple[]",
268
+ internalType: "struct WithdrawalOutput[]",
269
+ components: [
270
+ { name: "token", type: "address", internalType: "address" },
271
+ { name: "isDelayed", type: "bool", internalType: "bool" },
272
+ { name: "amount", type: "uint256", internalType: "uint256" }
273
+ ]
274
+ },
275
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
276
+ { name: "extraData", type: "bytes", internalType: "bytes" }
277
+ ]
278
+ }
279
+ ],
280
+ stateMutability: "view"
281
+ },
127
282
  {
128
283
  type: "function",
129
284
  name: "getWithdrawableAssets",
@@ -280,6 +435,26 @@ const withdrawalCompressorAbi = [
280
435
  ],
281
436
  stateMutability: "view"
282
437
  },
438
+ {
439
+ type: "function",
440
+ name: "getWithdrawalStatus",
441
+ inputs: [
442
+ { name: "redeemers", type: "address[]", internalType: "address[]" }
443
+ ],
444
+ outputs: [
445
+ { name: "", type: "uint8[]", internalType: "enum WithdrawalStatus[]" }
446
+ ],
447
+ stateMutability: "view"
448
+ },
449
+ {
450
+ type: "function",
451
+ name: "getWithdrawalStatus",
452
+ inputs: [{ name: "redeemer", type: "address", internalType: "address" }],
453
+ outputs: [
454
+ { name: "", type: "uint8", internalType: "enum WithdrawalStatus" }
455
+ ],
456
+ stateMutability: "view"
457
+ },
283
458
  {
284
459
  type: "function",
285
460
  name: "owner",
@@ -313,6 +488,17 @@ const withdrawalCompressorAbi = [
313
488
  outputs: [],
314
489
  stateMutability: "nonpayable"
315
490
  },
491
+ {
492
+ type: "function",
493
+ name: "setWithdrawableVersionToSpecificCompressorVersion",
494
+ inputs: [
495
+ { name: "withdrawableType", type: "bytes32", internalType: "bytes32" },
496
+ { name: "withdrawableVersion", type: "uint256", internalType: "uint256" },
497
+ { name: "compressorVersion", type: "uint256", internalType: "uint256" }
498
+ ],
499
+ outputs: [],
500
+ stateMutability: "nonpayable"
501
+ },
316
502
  {
317
503
  type: "function",
318
504
  name: "transferOwnership",
@@ -334,6 +520,16 @@ const withdrawalCompressorAbi = [
334
520
  outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
335
521
  stateMutability: "view"
336
522
  },
523
+ {
524
+ type: "function",
525
+ name: "withdrawableTypeToSpecificCompressorVersion",
526
+ inputs: [
527
+ { name: "", type: "bytes32", internalType: "bytes32" },
528
+ { name: "", type: "uint256", internalType: "uint256" }
529
+ ],
530
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
531
+ stateMutability: "view"
532
+ },
337
533
  {
338
534
  type: "event",
339
535
  name: "OwnershipTransferred",
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var redemptionLogger_exports = {};
20
+ __export(redemptionLogger_exports, {
21
+ redemptionLoggerAbi: () => redemptionLoggerAbi
22
+ });
23
+ module.exports = __toCommonJS(redemptionLogger_exports);
24
+ const redemptionLoggerAbi = [
25
+ {
26
+ type: "constructor",
27
+ inputs: [{ name: "_owner", type: "address", internalType: "address" }],
28
+ stateMutability: "nonpayable"
29
+ },
30
+ {
31
+ type: "function",
32
+ name: "allowedGateways",
33
+ inputs: [{ name: "", type: "address", internalType: "address" }],
34
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
35
+ stateMutability: "view"
36
+ },
37
+ {
38
+ type: "function",
39
+ name: "contractType",
40
+ inputs: [],
41
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
42
+ stateMutability: "view"
43
+ },
44
+ {
45
+ type: "function",
46
+ name: "logRedemption",
47
+ inputs: [
48
+ { name: "creditAccount", type: "address", internalType: "address" },
49
+ { name: "redeemer", type: "address", internalType: "address" },
50
+ { name: "extraData", type: "bytes", internalType: "bytes" }
51
+ ],
52
+ outputs: [],
53
+ stateMutability: "nonpayable"
54
+ },
55
+ {
56
+ type: "function",
57
+ name: "owner",
58
+ inputs: [],
59
+ outputs: [{ name: "", type: "address", internalType: "address" }],
60
+ stateMutability: "view"
61
+ },
62
+ {
63
+ type: "function",
64
+ name: "redemptionLogs",
65
+ inputs: [{ name: "redeemer", type: "address", internalType: "address" }],
66
+ outputs: [
67
+ {
68
+ name: "",
69
+ type: "tuple",
70
+ internalType: "struct IRedemptionLogger.RedemptionLog",
71
+ components: [
72
+ { name: "creditAccount", type: "address", internalType: "address" },
73
+ { name: "redeemer", type: "address", internalType: "address" },
74
+ { name: "extraData", type: "bytes", internalType: "bytes" }
75
+ ]
76
+ }
77
+ ],
78
+ stateMutability: "view"
79
+ },
80
+ {
81
+ type: "function",
82
+ name: "renounceOwnership",
83
+ inputs: [],
84
+ outputs: [],
85
+ stateMutability: "nonpayable"
86
+ },
87
+ {
88
+ type: "function",
89
+ name: "setGatewayAllowed",
90
+ inputs: [
91
+ { name: "gateway", type: "address", internalType: "address" },
92
+ { name: "allowed", type: "bool", internalType: "bool" }
93
+ ],
94
+ outputs: [],
95
+ stateMutability: "nonpayable"
96
+ },
97
+ {
98
+ type: "function",
99
+ name: "transferOwnership",
100
+ inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
101
+ outputs: [],
102
+ stateMutability: "nonpayable"
103
+ },
104
+ {
105
+ type: "function",
106
+ name: "version",
107
+ inputs: [],
108
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
109
+ stateMutability: "view"
110
+ },
111
+ {
112
+ type: "event",
113
+ name: "OwnershipTransferred",
114
+ inputs: [
115
+ {
116
+ name: "previousOwner",
117
+ type: "address",
118
+ indexed: true,
119
+ internalType: "address"
120
+ },
121
+ {
122
+ name: "newOwner",
123
+ type: "address",
124
+ indexed: true,
125
+ internalType: "address"
126
+ }
127
+ ],
128
+ anonymous: false
129
+ },
130
+ {
131
+ type: "event",
132
+ name: "RedemptionLogged",
133
+ inputs: [
134
+ {
135
+ name: "creditAccount",
136
+ type: "address",
137
+ indexed: true,
138
+ internalType: "address"
139
+ },
140
+ {
141
+ name: "redeemer",
142
+ type: "address",
143
+ indexed: true,
144
+ internalType: "address"
145
+ },
146
+ {
147
+ name: "extraData",
148
+ type: "bytes",
149
+ indexed: false,
150
+ internalType: "bytes"
151
+ }
152
+ ],
153
+ anonymous: false
154
+ },
155
+ { type: "error", name: "GatewayNotAllowedException", inputs: [] }
156
+ ];
157
+ // Annotate the CommonJS export names for ESM import in node:
158
+ 0 && (module.exports = {
159
+ redemptionLoggerAbi
160
+ });