@keep-network/tbtc-v2 0.1.1-dev.36 → 0.1.1-dev.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.
- package/artifacts/TBTC.json +3 -3
- package/artifacts/TBTCToken.json +3 -3
- package/artifacts/VendingMachine.json +10 -10
- package/artifacts/solcInputs/{4718d6e944ad9d1fc247efda870cf51a.json → 518efc6faeb6612766a5b3fef24e13ad.json} +10 -4
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +3 -89
- package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/bridge/Bridge.sol/Bridge.json +165 -157
- 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/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
- package/build/contracts/bridge/Frauds.sol/Frauds.dbg.json +1 -1
- package/build/contracts/bridge/Frauds.sol/Frauds.json +2 -2
- package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +4 -0
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +48 -0
- package/build/contracts/bridge/Redeem.sol/OutboundTx.dbg.json +4 -0
- package/build/contracts/bridge/Redeem.sol/OutboundTx.json +10 -0
- package/build/contracts/bridge/Redeem.sol/Redeem.dbg.json +4 -0
- package/build/contracts/bridge/Redeem.sol/Redeem.json +110 -0
- package/build/contracts/bridge/Sweep.sol/Sweep.dbg.json +1 -1
- package/build/contracts/bridge/Sweep.sol/Sweep.json +4 -22
- 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/IVault.sol/IVault.dbg.json +1 -1
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
- package/contracts/bridge/BitcoinTx.sol +3 -3
- package/contracts/bridge/Bridge.sol +131 -910
- package/contracts/bridge/BridgeState.sol +68 -0
- package/contracts/bridge/MovingFunds.sol +280 -0
- package/contracts/bridge/Redeem.sol +849 -0
- package/package.json +1 -1
|
@@ -161,8 +161,8 @@ library BitcoinTx {
|
|
|
161
161
|
function validateProof(
|
|
162
162
|
Info calldata txInfo,
|
|
163
163
|
Proof calldata proof,
|
|
164
|
-
ProofDifficulty
|
|
165
|
-
)
|
|
164
|
+
ProofDifficulty memory proofDifficulty
|
|
165
|
+
) internal view returns (bytes32 txHash) {
|
|
166
166
|
require(
|
|
167
167
|
txInfo.inputVector.validateVin(),
|
|
168
168
|
"Invalid input vector provided"
|
|
@@ -203,7 +203,7 @@ library BitcoinTx {
|
|
|
203
203
|
/// @param proofDifficulty Bitcoin proof difficulty context.
|
|
204
204
|
function evaluateProofDifficulty(
|
|
205
205
|
bytes memory bitcoinHeaders,
|
|
206
|
-
ProofDifficulty
|
|
206
|
+
ProofDifficulty memory proofDifficulty
|
|
207
207
|
) internal view {
|
|
208
208
|
uint256 requestedDiff = 0;
|
|
209
209
|
uint256 firstHeaderDiff = bitcoinHeaders
|