@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.
Files changed (38) hide show
  1. package/artifacts/TBTC.json +3 -3
  2. package/artifacts/TBTCToken.json +3 -3
  3. package/artifacts/VendingMachine.json +10 -10
  4. package/artifacts/solcInputs/{4718d6e944ad9d1fc247efda870cf51a.json → 518efc6faeb6612766a5b3fef24e13ad.json} +10 -4
  5. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  6. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  7. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  8. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +3 -89
  9. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  10. package/build/contracts/bridge/Bridge.sol/Bridge.json +165 -157
  11. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  12. package/build/contracts/bridge/BridgeState.sol/BridgeState.json +2 -2
  13. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  14. package/build/contracts/bridge/Deposit.sol/Deposit.json +2 -2
  15. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  16. package/build/contracts/bridge/Frauds.sol/Frauds.dbg.json +1 -1
  17. package/build/contracts/bridge/Frauds.sol/Frauds.json +2 -2
  18. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  19. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +4 -0
  20. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +48 -0
  21. package/build/contracts/bridge/Redeem.sol/OutboundTx.dbg.json +4 -0
  22. package/build/contracts/bridge/Redeem.sol/OutboundTx.json +10 -0
  23. package/build/contracts/bridge/Redeem.sol/Redeem.dbg.json +4 -0
  24. package/build/contracts/bridge/Redeem.sol/Redeem.json +110 -0
  25. package/build/contracts/bridge/Sweep.sol/Sweep.dbg.json +1 -1
  26. package/build/contracts/bridge/Sweep.sol/Sweep.json +4 -22
  27. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  28. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  29. package/build/contracts/bridge/Wallets.sol/Wallets.json +2 -2
  30. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  31. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  32. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  33. package/contracts/bridge/BitcoinTx.sol +3 -3
  34. package/contracts/bridge/Bridge.sol +131 -910
  35. package/contracts/bridge/BridgeState.sol +68 -0
  36. package/contracts/bridge/MovingFunds.sol +280 -0
  37. package/contracts/bridge/Redeem.sol +849 -0
  38. 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 calldata proofDifficulty
165
- ) external view returns (bytes32 txHash) {
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 calldata proofDifficulty
206
+ ProofDifficulty memory proofDifficulty
207
207
  ) internal view {
208
208
  uint256 requestedDiff = 0;
209
209
  uint256 firstHeaderDiff = bitcoinHeaders