@keep-network/tbtc-v2 0.1.1-dev.80 → 0.1.1-dev.83
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/artifacts/Bank.json +94 -34
- package/artifacts/Bridge.json +33 -11
- package/artifacts/Deposit.json +7 -7
- package/artifacts/DepositSweep.json +7 -7
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/EcdsaSortitionPool.json +2 -2
- package/artifacts/Fraud.json +7 -7
- package/artifacts/KeepRegistry.json +1 -1
- package/artifacts/KeepStake.json +2 -2
- package/artifacts/KeepToken.json +2 -2
- package/artifacts/KeepTokenStaking.json +1 -1
- package/artifacts/MovingFunds.json +9 -9
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeaconStub.json +1 -1
- package/artifacts/Redemption.json +26 -14
- package/artifacts/ReimbursementPool.json +2 -2
- package/artifacts/Relay.json +9 -9
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +10 -10
- package/artifacts/TBTCToken.json +10 -10
- package/artifacts/TBTCVault.json +40 -40
- package/artifacts/TokenStaking.json +1 -1
- package/artifacts/TokenholderGovernor.json +9 -9
- package/artifacts/TokenholderTimelock.json +8 -8
- package/artifacts/VendingMachine.json +11 -11
- package/artifacts/VendingMachineKeep.json +1 -1
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/WalletRegistry.json +5 -5
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +7 -7
- package/artifacts/solcInputs/{4f6d4f5cd1e3d835e20ed55926a445cd.json → 21fcfd91cc383ddf1b3799814408151d.json} +11 -8
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
- package/build/contracts/bank/Bank.sol/Bank.json +4 -4
- package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +2 -2
- package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/bridge/Bridge.sol/Bridge.json +73 -42
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
- package/build/contracts/bridge/BridgeState.sol/BridgeState.json +2 -2
- package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
- package/build/contracts/bridge/Deposit.sol/Deposit.json +2 -2
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.json +2 -2
- package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
- package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
- package/build/contracts/bridge/Fraud.sol/Fraud.json +2 -2
- package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
- package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +2 -2
- package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/OutboundTx.json +2 -2
- package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/Redemption.json +2 -2
- package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
- package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
- package/build/contracts/bridge/Wallets.sol/Wallets.json +2 -2
- package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
- package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
- package/build/contracts/vault/DonationVault.sol/DonationVault.json +2 -2
- package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.json +16 -16
- package/contracts/bank/Bank.sol +76 -39
- package/contracts/bridge/BitcoinTx.sol +1 -1
- package/contracts/bridge/Bridge.sol +85 -6
- package/contracts/bridge/Redemption.sol +160 -6
- package/contracts/vault/TBTCVault.sol +14 -14
- package/export.json +38 -16
- package/package.json +1 -1
|
@@ -233,15 +233,21 @@ library Redemption {
|
|
|
233
233
|
|
|
234
234
|
/// @notice Requests redemption of the given amount from the specified
|
|
235
235
|
/// wallet to the redeemer Bitcoin output script.
|
|
236
|
+
/// This function handles the simplest case, where balance owner is
|
|
237
|
+
/// the redeemer.
|
|
236
238
|
/// @param walletPubKeyHash The 20-byte wallet public key hash (computed
|
|
237
239
|
/// using Bitcoin HASH160 over the compressed ECDSA public key).
|
|
238
240
|
/// @param mainUtxo Data of the wallet's main UTXO, as currently known on
|
|
239
241
|
/// the Ethereum chain.
|
|
242
|
+
/// @param balanceOwner The address of the Bank balance owner whose balance
|
|
243
|
+
/// is getting redeemed. Balance owner address is stored as
|
|
244
|
+
/// a redemeer address who will be able co claim back the Bank
|
|
245
|
+
/// balance if anything goes wrong during the redemption.
|
|
240
246
|
/// @param redeemerOutputScript The redeemer's length-prefixed output
|
|
241
247
|
/// script (P2PKH, P2WPKH, P2SH or P2WSH) that will be used to lock
|
|
242
248
|
/// redeemed BTC.
|
|
243
|
-
/// @param amount Requested amount in satoshi. This is also the
|
|
244
|
-
/// that is taken from
|
|
249
|
+
/// @param amount Requested amount in satoshi. This is also the Bank balance
|
|
250
|
+
/// that is taken from the `balanceOwner` upon request.
|
|
245
251
|
/// Once the request is handled, the actual amount of BTC locked
|
|
246
252
|
/// on the redeemer output script will be always lower than this value
|
|
247
253
|
/// since the treasury and Bitcoin transaction fees must be incurred.
|
|
@@ -258,15 +264,163 @@ library Redemption {
|
|
|
258
264
|
/// - Given `walletPubKeyHash` and `redeemerOutputScript` pair can be
|
|
259
265
|
/// used for only one pending request at the same time,
|
|
260
266
|
/// - Wallet must have enough Bitcoin balance to proceed the request,
|
|
261
|
-
/// -
|
|
267
|
+
/// - Balance owner must make an allowance in the Bank that the Bridge
|
|
262
268
|
/// contract can spend the given `amount`.
|
|
263
269
|
function requestRedemption(
|
|
264
270
|
BridgeState.Storage storage self,
|
|
265
271
|
bytes20 walletPubKeyHash,
|
|
266
272
|
BitcoinTx.UTXO calldata mainUtxo,
|
|
273
|
+
address balanceOwner,
|
|
267
274
|
bytes calldata redeemerOutputScript,
|
|
268
275
|
uint64 amount
|
|
269
276
|
) external {
|
|
277
|
+
requestRedemption(
|
|
278
|
+
self,
|
|
279
|
+
walletPubKeyHash,
|
|
280
|
+
mainUtxo,
|
|
281
|
+
balanceOwner,
|
|
282
|
+
balanceOwner,
|
|
283
|
+
redeemerOutputScript,
|
|
284
|
+
amount
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/// @notice Requests redemption of the given amount from the specified
|
|
289
|
+
/// wallet to the redeemer Bitcoin output script. Used by
|
|
290
|
+
/// `Bridge.receiveBalanceApproval`. Can handle more complex cases
|
|
291
|
+
/// where balance owner may be someone else than the redeemer.
|
|
292
|
+
/// @param balanceOwner The address of the Bank balance owner whose balance
|
|
293
|
+
/// is getting redeemed.
|
|
294
|
+
/// @param amount Requested amount in satoshi. This is also the Bank balance
|
|
295
|
+
/// that is taken from the `balanceOwner` upon request.
|
|
296
|
+
/// Once the request is handled, the actual amount of BTC locked
|
|
297
|
+
/// on the redeemer output script will be always lower than this value
|
|
298
|
+
/// since the treasury and Bitcoin transaction fees must be incurred.
|
|
299
|
+
/// The minimal amount satisfying the request can be computed as:
|
|
300
|
+
/// `amount - (amount / redemptionTreasuryFeeDivisor) - redemptionTxMaxFee`.
|
|
301
|
+
/// Fees values are taken at the moment of request creation.
|
|
302
|
+
/// @param redemptionData ABI-encoded redemption data:
|
|
303
|
+
/// [
|
|
304
|
+
/// address redeemer,
|
|
305
|
+
/// bytes20 walletPubKeyHash,
|
|
306
|
+
/// bytes32 mainUtxoTxHash,
|
|
307
|
+
/// uint32 mainUtxoTxOutputIndex,
|
|
308
|
+
/// uint64 mainUtxoTxOutputValue,
|
|
309
|
+
/// bytes redeemerOutputScript
|
|
310
|
+
/// ]
|
|
311
|
+
///
|
|
312
|
+
/// - redeemer: The Ethereum address of the redeemer who will be able
|
|
313
|
+
/// to claim Bank balance if anything goes wrong during the redemption.
|
|
314
|
+
/// In the most basic case, when someone redeems their Bitcoin
|
|
315
|
+
/// balance from the Bank, `balanceOwner` is the same as `redemeer`.
|
|
316
|
+
/// However, when a Vault is redeeming part of its balance for some
|
|
317
|
+
/// redeemer address (for example, someone who has earlier deposited
|
|
318
|
+
/// into that Vault), `balanceOwner` is the Vault, and `redemeer` is
|
|
319
|
+
/// the address for which the vault is redeeming its balance to,
|
|
320
|
+
/// - walletPubKeyHash: The 20-byte wallet public key hash (computed
|
|
321
|
+
/// using Bitcoin HASH160 over the compressed ECDSA public key),
|
|
322
|
+
/// - mainUtxoTxHash: Data of the wallet's main UTXO TX hash, as
|
|
323
|
+
/// currently known on the Ethereum chain,
|
|
324
|
+
/// - mainUtxoTxOutputIndex: Data of the wallet's main UTXO output
|
|
325
|
+
/// index, as currently known on Ethereum chain,
|
|
326
|
+
/// - mainUtxoTxOutputValue: Data of the wallet's main UTXO output
|
|
327
|
+
/// value, as currently known on Ethereum chain,
|
|
328
|
+
/// - redeemerOutputScript The redeemer's length-prefixed output
|
|
329
|
+
/// script (P2PKH, P2WPKH, P2SH or P2WSH) that will be used to lock
|
|
330
|
+
/// redeemed BTC.
|
|
331
|
+
/// @dev Requirements:
|
|
332
|
+
/// - Wallet behind `walletPubKeyHash` must be live,
|
|
333
|
+
/// - `mainUtxo*` components must point to the recent main UTXO
|
|
334
|
+
/// of the given wallet, as currently known on the Ethereum chain,
|
|
335
|
+
/// - `redeemerOutputScript` must be a proper Bitcoin script,
|
|
336
|
+
/// - `redeemerOutputScript` cannot have wallet PKH as payload,
|
|
337
|
+
/// - `amount` must be above or equal the `redemptionDustThreshold`,
|
|
338
|
+
/// - Given `walletPubKeyHash` and `redeemerOutputScript` pair can be
|
|
339
|
+
/// used for only one pending request at the same time,
|
|
340
|
+
/// - Wallet must have enough Bitcoin balance to proceed the request,
|
|
341
|
+
/// - Balance owner must make an allowance in the Bank that the Bridge
|
|
342
|
+
/// contract can spend the given `amount`.
|
|
343
|
+
function requestRedemption(
|
|
344
|
+
BridgeState.Storage storage self,
|
|
345
|
+
address balanceOwner,
|
|
346
|
+
uint64 amount,
|
|
347
|
+
bytes calldata redemptionData
|
|
348
|
+
) external {
|
|
349
|
+
(
|
|
350
|
+
address redeemer,
|
|
351
|
+
bytes20 walletPubKeyHash,
|
|
352
|
+
bytes32 mainUtxoTxHash,
|
|
353
|
+
uint32 mainUtxoTxOutputIndex,
|
|
354
|
+
uint64 mainUtxoTxOutputValue,
|
|
355
|
+
bytes memory redeemerOutputScript
|
|
356
|
+
) = abi.decode(
|
|
357
|
+
redemptionData,
|
|
358
|
+
(address, bytes20, bytes32, uint32, uint64, bytes)
|
|
359
|
+
);
|
|
360
|
+
|
|
361
|
+
requestRedemption(
|
|
362
|
+
self,
|
|
363
|
+
walletPubKeyHash,
|
|
364
|
+
BitcoinTx.UTXO(
|
|
365
|
+
mainUtxoTxHash,
|
|
366
|
+
mainUtxoTxOutputIndex,
|
|
367
|
+
mainUtxoTxOutputValue
|
|
368
|
+
),
|
|
369
|
+
balanceOwner,
|
|
370
|
+
redeemer,
|
|
371
|
+
redeemerOutputScript,
|
|
372
|
+
amount
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/// @notice Requests redemption of the given amount from the specified
|
|
377
|
+
/// wallet to the redeemer Bitcoin output script.
|
|
378
|
+
/// @param walletPubKeyHash The 20-byte wallet public key hash (computed
|
|
379
|
+
/// using Bitcoin HASH160 over the compressed ECDSA public key).
|
|
380
|
+
/// @param mainUtxo Data of the wallet's main UTXO, as currently known on
|
|
381
|
+
/// the Ethereum chain.
|
|
382
|
+
/// @param balanceOwner The address of the Bank balance owner whose balance
|
|
383
|
+
/// is getting redeemed.
|
|
384
|
+
/// @param redeemer The Ethereum address of the redeemer who will be able to
|
|
385
|
+
/// claim Bank balance if anything goes wrong during the redemption.
|
|
386
|
+
/// In the most basic case, when someone redeems their Bitcoin
|
|
387
|
+
/// balance from the Bank, `balanceOwner` is the same as `redemeer`.
|
|
388
|
+
/// However, when a Vault is redeeming part of its balance for some
|
|
389
|
+
/// redeemer address (for example, someone who has earlier deposited
|
|
390
|
+
/// into that Vault), `balanceOwner` is the Vault, and `redemeer` is
|
|
391
|
+
/// the address for which the vault is redeeming its balance to.
|
|
392
|
+
/// @param redeemerOutputScript The redeemer's length-prefixed output
|
|
393
|
+
/// script (P2PKH, P2WPKH, P2SH or P2WSH) that will be used to lock
|
|
394
|
+
/// redeemed BTC.
|
|
395
|
+
/// @param amount Requested amount in satoshi. This is also the Bank balance
|
|
396
|
+
/// that is taken from the `balanceOwner` upon request.
|
|
397
|
+
/// Once the request is handled, the actual amount of BTC locked
|
|
398
|
+
/// on the redeemer output script will be always lower than this value
|
|
399
|
+
/// since the treasury and Bitcoin transaction fees must be incurred.
|
|
400
|
+
/// The minimal amount satisfying the request can be computed as:
|
|
401
|
+
/// `amount - (amount / redemptionTreasuryFeeDivisor) - redemptionTxMaxFee`.
|
|
402
|
+
/// Fees values are taken at the moment of request creation.
|
|
403
|
+
/// @dev Requirements:
|
|
404
|
+
/// - Wallet behind `walletPubKeyHash` must be live,
|
|
405
|
+
/// - `mainUtxo` components must point to the recent main UTXO
|
|
406
|
+
/// of the given wallet, as currently known on the Ethereum chain,
|
|
407
|
+
/// - `redeemerOutputScript` must be a proper Bitcoin script,
|
|
408
|
+
/// - `redeemerOutputScript` cannot have wallet PKH as payload,
|
|
409
|
+
/// - `amount` must be above or equal the `redemptionDustThreshold`,
|
|
410
|
+
/// - Given `walletPubKeyHash` and `redeemerOutputScript` pair can be
|
|
411
|
+
/// used for only one pending request at the same time,
|
|
412
|
+
/// - Wallet must have enough Bitcoin balance to proceed the request,
|
|
413
|
+
/// - Balance owner must make an allowance in the Bank that the Bridge
|
|
414
|
+
/// contract can spend the given `amount`.
|
|
415
|
+
function requestRedemption(
|
|
416
|
+
BridgeState.Storage storage self,
|
|
417
|
+
bytes20 walletPubKeyHash,
|
|
418
|
+
BitcoinTx.UTXO memory mainUtxo,
|
|
419
|
+
address balanceOwner,
|
|
420
|
+
address redeemer,
|
|
421
|
+
bytes memory redeemerOutputScript,
|
|
422
|
+
uint64 amount
|
|
423
|
+
) internal {
|
|
270
424
|
Wallets.Wallet storage wallet = self.registeredWallets[
|
|
271
425
|
walletPubKeyHash
|
|
272
426
|
];
|
|
@@ -358,7 +512,7 @@ library Redemption {
|
|
|
358
512
|
);
|
|
359
513
|
|
|
360
514
|
self.pendingRedemptions[redemptionKey] = RedemptionRequest(
|
|
361
|
-
|
|
515
|
+
redeemer,
|
|
362
516
|
amount,
|
|
363
517
|
treasuryFee,
|
|
364
518
|
txMaxFee,
|
|
@@ -369,13 +523,13 @@ library Redemption {
|
|
|
369
523
|
emit RedemptionRequested(
|
|
370
524
|
walletPubKeyHash,
|
|
371
525
|
redeemerOutputScript,
|
|
372
|
-
|
|
526
|
+
redeemer,
|
|
373
527
|
amount,
|
|
374
528
|
treasuryFee,
|
|
375
529
|
txMaxFee
|
|
376
530
|
);
|
|
377
531
|
|
|
378
|
-
self.bank.transferBalanceFrom(
|
|
532
|
+
self.bank.transferBalanceFrom(balanceOwner, address(this), amount);
|
|
379
533
|
}
|
|
380
534
|
|
|
381
535
|
/// @notice Used by the wallet to prove the BTC redemption transaction
|
|
@@ -25,7 +25,7 @@ import "../token/TBTC.sol";
|
|
|
25
25
|
/// @notice TBTC is a fully Bitcoin-backed ERC-20 token pegged to the price of
|
|
26
26
|
/// Bitcoin. It facilitates Bitcoin holders to act on the Ethereum
|
|
27
27
|
/// blockchain and access the decentralized finance (DeFi) ecosystem.
|
|
28
|
-
/// TBTC Vault mints and
|
|
28
|
+
/// TBTC Vault mints and unmints TBTC based on Bitcoin balances in the
|
|
29
29
|
/// Bank.
|
|
30
30
|
/// @dev TBTC Vault is the owner of TBTC token contract and is the only contract
|
|
31
31
|
/// minting the token.
|
|
@@ -35,7 +35,7 @@ contract TBTCVault is IVault, Governable {
|
|
|
35
35
|
|
|
36
36
|
event Minted(address indexed to, uint256 amount);
|
|
37
37
|
|
|
38
|
-
event
|
|
38
|
+
event Unminted(address indexed from, uint256 amount);
|
|
39
39
|
|
|
40
40
|
modifier onlyBank() {
|
|
41
41
|
require(msg.sender == address(bank), "Caller is not the Bank");
|
|
@@ -140,18 +140,18 @@ contract TBTCVault is IVault, Governable {
|
|
|
140
140
|
/// `amount` back to the caller's balance in the Bank.
|
|
141
141
|
/// @dev Caller must have at least `amount` of TBTC approved to
|
|
142
142
|
/// TBTC Vault.
|
|
143
|
-
/// @param amount Amount of TBTC to
|
|
144
|
-
function
|
|
145
|
-
|
|
143
|
+
/// @param amount Amount of TBTC to unmint.
|
|
144
|
+
function unmint(uint256 amount) external {
|
|
145
|
+
_unmint(msg.sender, amount);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/// @notice Burns `amount` of TBTC from the caller's account and transfers
|
|
149
149
|
/// `amount` back to the caller's balance in the Bank.
|
|
150
|
-
/// @dev This function is doing the same as `
|
|
151
|
-
/// execute
|
|
150
|
+
/// @dev This function is doing the same as `unmint` but it allows to
|
|
151
|
+
/// execute unminting without an additional approval transaction.
|
|
152
152
|
/// The function can be called only via `approveAndCall` of TBTC token.
|
|
153
|
-
/// @param from TBTC token holder executing
|
|
154
|
-
/// @param amount Amount of TBTC to
|
|
153
|
+
/// @param from TBTC token holder executing unminting.
|
|
154
|
+
/// @param amount Amount of TBTC to unmint.
|
|
155
155
|
/// @param token TBTC token address.
|
|
156
156
|
function receiveApproval(
|
|
157
157
|
address from,
|
|
@@ -161,7 +161,7 @@ contract TBTCVault is IVault, Governable {
|
|
|
161
161
|
) external {
|
|
162
162
|
require(token == address(tbtcToken), "Token is not TBTC");
|
|
163
163
|
require(msg.sender == token, "Only TBTC caller allowed");
|
|
164
|
-
|
|
164
|
+
_unmint(from, amount);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
// slither-disable-next-line calls-loop
|
|
@@ -170,9 +170,9 @@ contract TBTCVault is IVault, Governable {
|
|
|
170
170
|
tbtcToken.mint(minter, amount);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
function
|
|
174
|
-
emit
|
|
175
|
-
tbtcToken.burnFrom(
|
|
176
|
-
bank.transferBalance(
|
|
173
|
+
function _unmint(address unminter, uint256 amount) internal {
|
|
174
|
+
emit Unminted(unminter, amount);
|
|
175
|
+
tbtcToken.burnFrom(unminter, amount);
|
|
176
|
+
bank.transferBalance(unminter, amount);
|
|
177
177
|
}
|
|
178
178
|
}
|
package/export.json
CHANGED
|
@@ -13523,12 +13523,12 @@
|
|
|
13523
13523
|
},
|
|
13524
13524
|
{
|
|
13525
13525
|
"internalType": "address[]",
|
|
13526
|
-
"name": "
|
|
13526
|
+
"name": "recipients",
|
|
13527
13527
|
"type": "address[]"
|
|
13528
13528
|
},
|
|
13529
13529
|
{
|
|
13530
13530
|
"internalType": "uint256[]",
|
|
13531
|
-
"name": "
|
|
13531
|
+
"name": "amounts",
|
|
13532
13532
|
"type": "uint256[]"
|
|
13533
13533
|
}
|
|
13534
13534
|
],
|
|
@@ -15515,6 +15515,28 @@
|
|
|
15515
15515
|
],
|
|
15516
15516
|
"outputs": []
|
|
15517
15517
|
},
|
|
15518
|
+
{
|
|
15519
|
+
"type": "function",
|
|
15520
|
+
"name": "receiveBalanceApproval",
|
|
15521
|
+
"constant": false,
|
|
15522
|
+
"payable": false,
|
|
15523
|
+
"gas": 29000000,
|
|
15524
|
+
"inputs": [
|
|
15525
|
+
{
|
|
15526
|
+
"type": "address",
|
|
15527
|
+
"name": "balanceOwner"
|
|
15528
|
+
},
|
|
15529
|
+
{
|
|
15530
|
+
"type": "uint256",
|
|
15531
|
+
"name": "amount"
|
|
15532
|
+
},
|
|
15533
|
+
{
|
|
15534
|
+
"type": "bytes",
|
|
15535
|
+
"name": "redemptionData"
|
|
15536
|
+
}
|
|
15537
|
+
],
|
|
15538
|
+
"outputs": []
|
|
15539
|
+
},
|
|
15518
15540
|
{
|
|
15519
15541
|
"type": "function",
|
|
15520
15542
|
"name": "redemptionParameters",
|
|
@@ -16858,7 +16880,7 @@
|
|
|
16858
16880
|
"type": "uint256"
|
|
16859
16881
|
}
|
|
16860
16882
|
],
|
|
16861
|
-
"name": "
|
|
16883
|
+
"name": "Unminted",
|
|
16862
16884
|
"type": "event"
|
|
16863
16885
|
},
|
|
16864
16886
|
{
|
|
@@ -17020,19 +17042,6 @@
|
|
|
17020
17042
|
"stateMutability": "nonpayable",
|
|
17021
17043
|
"type": "function"
|
|
17022
17044
|
},
|
|
17023
|
-
{
|
|
17024
|
-
"inputs": [
|
|
17025
|
-
{
|
|
17026
|
-
"internalType": "uint256",
|
|
17027
|
-
"name": "amount",
|
|
17028
|
-
"type": "uint256"
|
|
17029
|
-
}
|
|
17030
|
-
],
|
|
17031
|
-
"name": "redeem",
|
|
17032
|
-
"outputs": [],
|
|
17033
|
-
"stateMutability": "nonpayable",
|
|
17034
|
-
"type": "function"
|
|
17035
|
-
},
|
|
17036
17045
|
{
|
|
17037
17046
|
"inputs": [],
|
|
17038
17047
|
"name": "tbtcToken",
|
|
@@ -17058,6 +17067,19 @@
|
|
|
17058
17067
|
"outputs": [],
|
|
17059
17068
|
"stateMutability": "nonpayable",
|
|
17060
17069
|
"type": "function"
|
|
17070
|
+
},
|
|
17071
|
+
{
|
|
17072
|
+
"inputs": [
|
|
17073
|
+
{
|
|
17074
|
+
"internalType": "uint256",
|
|
17075
|
+
"name": "amount",
|
|
17076
|
+
"type": "uint256"
|
|
17077
|
+
}
|
|
17078
|
+
],
|
|
17079
|
+
"name": "unmint",
|
|
17080
|
+
"outputs": [],
|
|
17081
|
+
"stateMutability": "nonpayable",
|
|
17082
|
+
"type": "function"
|
|
17061
17083
|
}
|
|
17062
17084
|
]
|
|
17063
17085
|
}
|