@keep-network/tbtc-v2 1.2.0 → 1.3.0-dev.0

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 (166) hide show
  1. package/artifacts/.chainId +1 -1
  2. package/artifacts/BLS.json +223 -0
  3. package/artifacts/Bank.json +50 -40
  4. package/artifacts/BeaconAuthorization.json +273 -0
  5. package/artifacts/BeaconDkg.json +241 -0
  6. package/artifacts/BeaconDkgValidator.json +501 -0
  7. package/artifacts/BeaconInactivity.json +151 -0
  8. package/artifacts/BeaconSortitionPool.json +1187 -0
  9. package/artifacts/Bridge.json +449 -32
  10. package/artifacts/BridgeGovernance.json +24 -24
  11. package/artifacts/BridgeGovernanceParameters.json +10 -10
  12. package/artifacts/Deposit.json +13 -13
  13. package/artifacts/DepositSweep.json +13 -13
  14. package/artifacts/DonationVault.json +17 -17
  15. package/artifacts/EcdsaDkgValidator.json +517 -0
  16. package/artifacts/EcdsaInactivity.json +156 -0
  17. package/artifacts/EcdsaSortitionPool.json +1187 -0
  18. package/artifacts/Fraud.json +14 -14
  19. package/artifacts/KeepRegistry.json +99 -0
  20. package/artifacts/KeepStake.json +286 -0
  21. package/artifacts/KeepToken.json +711 -0
  22. package/artifacts/KeepTokenStaking.json +483 -0
  23. package/artifacts/LightRelay.json +38 -38
  24. package/artifacts/MaintainerProxy.json +47 -47
  25. package/artifacts/MovingFunds.json +14 -14
  26. package/artifacts/NuCypherStakingEscrow.json +287 -0
  27. package/artifacts/NuCypherToken.json +711 -0
  28. package/artifacts/RandomBeacon.json +3271 -0
  29. package/artifacts/RandomBeaconChaosnet.json +252 -0
  30. package/artifacts/RandomBeaconGovernance.json +3499 -0
  31. package/artifacts/Redemption.json +13 -13
  32. package/artifacts/ReimbursementPool.json +509 -0
  33. package/artifacts/T.json +1148 -0
  34. package/artifacts/TBTC.json +37 -36
  35. package/artifacts/TBTCToken.json +738 -0
  36. package/artifacts/TBTCVault.json +47 -47
  37. package/artifacts/TokenStaking.json +2288 -0
  38. package/artifacts/TokenholderGovernor.json +1795 -0
  39. package/artifacts/TokenholderTimelock.json +1058 -0
  40. package/artifacts/VendingMachine.json +35 -34
  41. package/artifacts/VendingMachineKeep.json +400 -0
  42. package/artifacts/VendingMachineNuCypher.json +400 -0
  43. package/artifacts/VendingMachineV2.json +21 -21
  44. package/artifacts/VendingMachineV3.json +21 -21
  45. package/artifacts/WalletRegistry.json +1962 -0
  46. package/artifacts/WalletRegistryGovernance.json +2863 -0
  47. package/artifacts/Wallets.json +13 -13
  48. package/artifacts/solcInputs/{b0025f1f7efe4824592ac0c9793776c3.json → 8445e3932e9b9683df0e9fb9258d7b11.json} +9 -0
  49. package/artifacts/solcInputs/{fccb130292c8c7cc958ab4fa31a3e180.json → cc4433405642a987910ddb374547d19a.json} +15 -12
  50. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  51. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  52. package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
  53. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  54. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  55. package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
  56. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  57. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  58. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
  59. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  60. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  61. package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
  62. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  63. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  64. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  65. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  66. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  67. package/build/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.dbg.json +1 -1
  68. package/build/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.dbg.json +1 -1
  69. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  70. package/build/contracts/l2/L2TBTC.sol/L2TBTC.dbg.json +1 -1
  71. package/build/contracts/l2/L2WormholeGateway.sol/IWormholeTokenBridge.dbg.json +1 -1
  72. package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +1 -1
  73. package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
  74. package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
  75. package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
  76. package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
  77. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  78. package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
  79. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  80. package/build/contracts/vault/TBTCOptimisticMinting.sol/TBTCOptimisticMinting.dbg.json +1 -1
  81. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  82. package/export/artifacts/@keep-network/ecdsa/contracts/EcdsaDkgValidator.sol/EcdsaDkgValidator.json +24 -24
  83. package/export/artifacts/@keep-network/ecdsa/contracts/WalletRegistry.sol/WalletRegistry.json +245 -245
  84. package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaDkg.sol/EcdsaDkg.json +2 -2
  85. package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaInactivity.sol/EcdsaInactivity.json +23 -23
  86. package/export/artifacts/@keep-network/random-beacon/contracts/ReimbursementPool.sol/ReimbursementPool.json +53 -53
  87. package/export/artifacts/@keep-network/sortition-pools/contracts/Chaosnet.sol/Chaosnet.json +21 -21
  88. package/export/artifacts/@keep-network/sortition-pools/contracts/Rewards.sol/Rewards.json +16 -16
  89. package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionPool.sol/SortitionPool.json +206 -206
  90. package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionTree.sol/SortitionTree.json +26 -26
  91. package/export/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json +46 -46
  92. package/export/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +36 -36
  93. package/export/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +78 -78
  94. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +68 -68
  95. package/export/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol/ERC20Upgradeable.json +43 -43
  96. package/export/artifacts/@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol/ERC20WithPermit.json +79 -79
  97. package/export/artifacts/@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol/MisfundRecovery.json +42 -42
  98. package/export/artifacts/contracts/bank/Bank.sol/Bank.json +77 -77
  99. package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +320 -320
  100. package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +108 -108
  101. package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +63 -63
  102. package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +65 -65
  103. package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +194 -194
  104. package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +100 -100
  105. package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +149 -149
  106. package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +76 -76
  107. package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +11975 -0
  108. package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +51806 -0
  109. package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +11988 -0
  110. package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +822 -0
  111. package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +12729 -0
  112. package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +2160 -0
  113. package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +3407 -0
  114. package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +14263 -0
  115. package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +10644 -0
  116. package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +1160 -0
  117. package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +8665 -0
  118. package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +104 -104
  119. package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +19 -19
  120. package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +184 -184
  121. package/export/test/integration/data/bls.js +12 -0
  122. package/export/test/integration/data/integration.js +133 -0
  123. package/export/test/integration/utils/ecdsa-wallet-registry.js +370 -0
  124. package/export/test/integration/utils/random-beacon.js +193 -0
  125. package/export/{deploy/08_deploy_maintainer_proxy.js → test/integration/utils/staking.js} +35 -32
  126. package/export/typechain/factories/WalletRegistry__factory.js +1 -1
  127. package/package.json +5 -5
  128. package/artifacts/solcInputs/7cc3eda3cb3ff2522d18b5e7b31ea228.json +0 -102
  129. package/artifacts/solcInputs/802132f7da69a8a4226cb9424480847b.json +0 -218
  130. package/artifacts/solcInputs/887fad6b16575ba42183543c324eeb0e.json +0 -335
  131. package/export/deploy/00_resolve_relay.js +0 -83
  132. package/export/deploy/01_deploy_tbtc_v2_token.js +0 -70
  133. package/export/deploy/02_deploy_vending_machine.js +0 -84
  134. package/export/deploy/03_transfer_vending_machine_roles.js +0 -69
  135. package/export/deploy/04_deploy_bank.js +0 -73
  136. package/export/deploy/05_deploy_bridge.js +0 -178
  137. package/export/deploy/06_deploy_tbtc_vault.js +0 -80
  138. package/export/deploy/07_deploy_bridge_governance.js +0 -87
  139. package/export/deploy/09_bank_update_bridge.js +0 -63
  140. package/export/deploy/10_authorize_spv_maintainer_in_bridge.js +0 -61
  141. package/export/deploy/11_transfer_bank_ownership.js +0 -60
  142. package/export/deploy/12_transfer_bridge_governance.js +0 -63
  143. package/export/deploy/13_transfer_bridge_governance_ownership.js +0 -60
  144. package/export/deploy/14_transfer_tbtc_vault_ownership.js +0 -60
  145. package/export/deploy/15_transfer_maintainer_proxy_ownership.js +0 -60
  146. package/export/deploy/16_initialize_wallet_owner.js +0 -63
  147. package/export/deploy/16_transfer_proxy_admin_ownership.js +0 -73
  148. package/export/deploy/17_authorize_maintainer_proxy_in_bridge.js +0 -63
  149. package/export/deploy/17_transfer_proxy_admin_ownership.js +0 -73
  150. package/export/deploy/18_authorize_maintainer_proxy_in_bridge.js +0 -63
  151. package/export/deploy/18_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
  152. package/export/deploy/19_authorize_bridge_in_reimbursement_pool.js +0 -63
  153. package/export/deploy/19_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
  154. package/export/deploy/20_authorize_bridge_in_reimbursement_pool.js +0 -63
  155. package/export/deploy/20_deploy_proxy_admin_with_deputy.js +0 -80
  156. package/export/deploy/21_transfer_reimbursement_pool_ownership.js +0 -60
  157. package/export/deploy/22_deploy_proxy_admin_with_deputy.js +0 -80
  158. package/export/deploy/24_transfer_maintainer_proxy_ownership.js +0 -60
  159. package/export/deploy/25_transfer_proxy_admin_ownership.js +0 -73
  160. package/export/deploy/26_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -70
  161. package/export/deploy/27_authorize_bridge_in_reimbursement_pool.js +0 -70
  162. package/export/deploy/28_deploy_proxy_admin_with_deputy.js +0 -80
  163. package/export/typechain/RelayStub.js +0 -2
  164. package/export/typechain/TestRelay.js +0 -2
  165. package/export/typechain/factories/RelayStub__factory.js +0 -546
  166. package/export/typechain/factories/TestRelay__factory.js +0 -168
@@ -1,11 +1,6 @@
1
1
  {
2
- "address": "0x5e4861a80B55f035D899f66772117F00FA0E8e7B",
2
+ "address": "0x3c705dB336C81c7FEFC5746e283aB2c0781A4B7b",
3
3
  "abi": [
4
- {
5
- "inputs": [],
6
- "stateMutability": "nonpayable",
7
- "type": "constructor"
8
- },
9
4
  {
10
5
  "anonymous": false,
11
6
  "inputs": [
@@ -1465,6 +1460,41 @@
1465
1460
  "stateMutability": "view",
1466
1461
  "type": "function"
1467
1462
  },
1463
+ {
1464
+ "inputs": [
1465
+ {
1466
+ "internalType": "bytes20",
1467
+ "name": "walletPubKeyHash",
1468
+ "type": "bytes20"
1469
+ },
1470
+ {
1471
+ "components": [
1472
+ {
1473
+ "internalType": "bytes32",
1474
+ "name": "txHash",
1475
+ "type": "bytes32"
1476
+ },
1477
+ {
1478
+ "internalType": "uint32",
1479
+ "name": "txOutputIndex",
1480
+ "type": "uint32"
1481
+ },
1482
+ {
1483
+ "internalType": "uint64",
1484
+ "name": "txOutputValue",
1485
+ "type": "uint64"
1486
+ }
1487
+ ],
1488
+ "internalType": "struct BitcoinTx.UTXO",
1489
+ "name": "utxo",
1490
+ "type": "tuple"
1491
+ }
1492
+ ],
1493
+ "name": "processPendingMovedFundsSweepRequest",
1494
+ "outputs": [],
1495
+ "stateMutability": "nonpayable",
1496
+ "type": "function"
1497
+ },
1468
1498
  {
1469
1499
  "inputs": [
1470
1500
  {
@@ -1691,6 +1721,192 @@
1691
1721
  "stateMutability": "nonpayable",
1692
1722
  "type": "function"
1693
1723
  },
1724
+ {
1725
+ "inputs": [
1726
+ {
1727
+ "internalType": "bytes20",
1728
+ "name": "activeWalletPubKeyHash",
1729
+ "type": "bytes20"
1730
+ }
1731
+ ],
1732
+ "name": "setActiveWallet",
1733
+ "outputs": [],
1734
+ "stateMutability": "nonpayable",
1735
+ "type": "function"
1736
+ },
1737
+ {
1738
+ "inputs": [
1739
+ {
1740
+ "internalType": "uint64",
1741
+ "name": "_depositDustThreshold",
1742
+ "type": "uint64"
1743
+ }
1744
+ ],
1745
+ "name": "setDepositDustThreshold",
1746
+ "outputs": [],
1747
+ "stateMutability": "nonpayable",
1748
+ "type": "function"
1749
+ },
1750
+ {
1751
+ "inputs": [
1752
+ {
1753
+ "internalType": "uint32",
1754
+ "name": "_depositRevealAheadPeriod",
1755
+ "type": "uint32"
1756
+ }
1757
+ ],
1758
+ "name": "setDepositRevealAheadPeriod",
1759
+ "outputs": [],
1760
+ "stateMutability": "nonpayable",
1761
+ "type": "function"
1762
+ },
1763
+ {
1764
+ "inputs": [
1765
+ {
1766
+ "internalType": "uint64",
1767
+ "name": "_depositTxMaxFee",
1768
+ "type": "uint64"
1769
+ }
1770
+ ],
1771
+ "name": "setDepositTxMaxFee",
1772
+ "outputs": [],
1773
+ "stateMutability": "nonpayable",
1774
+ "type": "function"
1775
+ },
1776
+ {
1777
+ "inputs": [
1778
+ {
1779
+ "internalType": "uint64",
1780
+ "name": "_movedFundsSweepTxMaxTotalFee",
1781
+ "type": "uint64"
1782
+ }
1783
+ ],
1784
+ "name": "setMovedFundsSweepTxMaxTotalFee",
1785
+ "outputs": [],
1786
+ "stateMutability": "nonpayable",
1787
+ "type": "function"
1788
+ },
1789
+ {
1790
+ "inputs": [
1791
+ {
1792
+ "internalType": "bytes20",
1793
+ "name": "walletPubKeyHash",
1794
+ "type": "bytes20"
1795
+ },
1796
+ {
1797
+ "components": [
1798
+ {
1799
+ "internalType": "bytes32",
1800
+ "name": "txHash",
1801
+ "type": "bytes32"
1802
+ },
1803
+ {
1804
+ "internalType": "uint32",
1805
+ "name": "txOutputIndex",
1806
+ "type": "uint32"
1807
+ },
1808
+ {
1809
+ "internalType": "uint64",
1810
+ "name": "txOutputValue",
1811
+ "type": "uint64"
1812
+ }
1813
+ ],
1814
+ "internalType": "struct BitcoinTx.UTXO",
1815
+ "name": "utxo",
1816
+ "type": "tuple"
1817
+ }
1818
+ ],
1819
+ "name": "setPendingMovedFundsSweepRequest",
1820
+ "outputs": [],
1821
+ "stateMutability": "nonpayable",
1822
+ "type": "function"
1823
+ },
1824
+ {
1825
+ "inputs": [
1826
+ {
1827
+ "components": [
1828
+ {
1829
+ "internalType": "bytes32",
1830
+ "name": "txHash",
1831
+ "type": "bytes32"
1832
+ },
1833
+ {
1834
+ "internalType": "uint32",
1835
+ "name": "txOutputIndex",
1836
+ "type": "uint32"
1837
+ },
1838
+ {
1839
+ "internalType": "uint64",
1840
+ "name": "txOutputValue",
1841
+ "type": "uint64"
1842
+ }
1843
+ ],
1844
+ "internalType": "struct BitcoinTx.UTXO[]",
1845
+ "name": "utxos",
1846
+ "type": "tuple[]"
1847
+ }
1848
+ ],
1849
+ "name": "setProcessedMovedFundsSweepRequests",
1850
+ "outputs": [],
1851
+ "stateMutability": "nonpayable",
1852
+ "type": "function"
1853
+ },
1854
+ {
1855
+ "inputs": [
1856
+ {
1857
+ "internalType": "uint64",
1858
+ "name": "_redemptionDustThreshold",
1859
+ "type": "uint64"
1860
+ }
1861
+ ],
1862
+ "name": "setRedemptionDustThreshold",
1863
+ "outputs": [],
1864
+ "stateMutability": "nonpayable",
1865
+ "type": "function"
1866
+ },
1867
+ {
1868
+ "inputs": [
1869
+ {
1870
+ "internalType": "uint64",
1871
+ "name": "_redemptionTreasuryFeeDivisor",
1872
+ "type": "uint64"
1873
+ }
1874
+ ],
1875
+ "name": "setRedemptionTreasuryFeeDivisor",
1876
+ "outputs": [],
1877
+ "stateMutability": "nonpayable",
1878
+ "type": "function"
1879
+ },
1880
+ {
1881
+ "inputs": [
1882
+ {
1883
+ "components": [
1884
+ {
1885
+ "internalType": "bytes32",
1886
+ "name": "txHash",
1887
+ "type": "bytes32"
1888
+ },
1889
+ {
1890
+ "internalType": "uint32",
1891
+ "name": "txOutputIndex",
1892
+ "type": "uint32"
1893
+ },
1894
+ {
1895
+ "internalType": "uint64",
1896
+ "name": "txOutputValue",
1897
+ "type": "uint64"
1898
+ }
1899
+ ],
1900
+ "internalType": "struct BitcoinTx.UTXO[]",
1901
+ "name": "utxos",
1902
+ "type": "tuple[]"
1903
+ }
1904
+ ],
1905
+ "name": "setSpentMainUtxos",
1906
+ "outputs": [],
1907
+ "stateMutability": "nonpayable",
1908
+ "type": "function"
1909
+ },
1694
1910
  {
1695
1911
  "inputs": [
1696
1912
  {
@@ -1709,6 +1925,36 @@
1709
1925
  "stateMutability": "nonpayable",
1710
1926
  "type": "function"
1711
1927
  },
1928
+ {
1929
+ "inputs": [
1930
+ {
1931
+ "components": [
1932
+ {
1933
+ "internalType": "bytes32",
1934
+ "name": "txHash",
1935
+ "type": "bytes32"
1936
+ },
1937
+ {
1938
+ "internalType": "uint32",
1939
+ "name": "txOutputIndex",
1940
+ "type": "uint32"
1941
+ },
1942
+ {
1943
+ "internalType": "uint64",
1944
+ "name": "txOutputValue",
1945
+ "type": "uint64"
1946
+ }
1947
+ ],
1948
+ "internalType": "struct BitcoinTx.UTXO[]",
1949
+ "name": "utxos",
1950
+ "type": "tuple[]"
1951
+ }
1952
+ ],
1953
+ "name": "setSweptDeposits",
1954
+ "outputs": [],
1955
+ "stateMutability": "nonpayable",
1956
+ "type": "function"
1957
+ },
1712
1958
  {
1713
1959
  "inputs": [
1714
1960
  {
@@ -1727,6 +1973,106 @@
1727
1973
  "stateMutability": "nonpayable",
1728
1974
  "type": "function"
1729
1975
  },
1976
+ {
1977
+ "inputs": [
1978
+ {
1979
+ "internalType": "bytes20",
1980
+ "name": "walletPubKeyHash",
1981
+ "type": "bytes20"
1982
+ },
1983
+ {
1984
+ "components": [
1985
+ {
1986
+ "internalType": "bytes32",
1987
+ "name": "ecdsaWalletID",
1988
+ "type": "bytes32"
1989
+ },
1990
+ {
1991
+ "internalType": "bytes32",
1992
+ "name": "mainUtxoHash",
1993
+ "type": "bytes32"
1994
+ },
1995
+ {
1996
+ "internalType": "uint64",
1997
+ "name": "pendingRedemptionsValue",
1998
+ "type": "uint64"
1999
+ },
2000
+ {
2001
+ "internalType": "uint32",
2002
+ "name": "createdAt",
2003
+ "type": "uint32"
2004
+ },
2005
+ {
2006
+ "internalType": "uint32",
2007
+ "name": "movingFundsRequestedAt",
2008
+ "type": "uint32"
2009
+ },
2010
+ {
2011
+ "internalType": "uint32",
2012
+ "name": "closingStartedAt",
2013
+ "type": "uint32"
2014
+ },
2015
+ {
2016
+ "internalType": "uint32",
2017
+ "name": "pendingMovedFundsSweepRequestsCount",
2018
+ "type": "uint32"
2019
+ },
2020
+ {
2021
+ "internalType": "enum Wallets.WalletState",
2022
+ "name": "state",
2023
+ "type": "uint8"
2024
+ },
2025
+ {
2026
+ "internalType": "bytes32",
2027
+ "name": "movingFundsTargetWalletsCommitmentHash",
2028
+ "type": "bytes32"
2029
+ }
2030
+ ],
2031
+ "internalType": "struct Wallets.Wallet",
2032
+ "name": "wallet",
2033
+ "type": "tuple"
2034
+ }
2035
+ ],
2036
+ "name": "setWallet",
2037
+ "outputs": [],
2038
+ "stateMutability": "nonpayable",
2039
+ "type": "function"
2040
+ },
2041
+ {
2042
+ "inputs": [
2043
+ {
2044
+ "internalType": "bytes20",
2045
+ "name": "walletPubKeyHash",
2046
+ "type": "bytes20"
2047
+ },
2048
+ {
2049
+ "components": [
2050
+ {
2051
+ "internalType": "bytes32",
2052
+ "name": "txHash",
2053
+ "type": "bytes32"
2054
+ },
2055
+ {
2056
+ "internalType": "uint32",
2057
+ "name": "txOutputIndex",
2058
+ "type": "uint32"
2059
+ },
2060
+ {
2061
+ "internalType": "uint64",
2062
+ "name": "txOutputValue",
2063
+ "type": "uint64"
2064
+ }
2065
+ ],
2066
+ "internalType": "struct BitcoinTx.UTXO",
2067
+ "name": "utxo",
2068
+ "type": "tuple"
2069
+ }
2070
+ ],
2071
+ "name": "setWalletMainUtxo",
2072
+ "outputs": [],
2073
+ "stateMutability": "nonpayable",
2074
+ "type": "function"
2075
+ },
1730
2076
  {
1731
2077
  "inputs": [
1732
2078
  {
@@ -2213,6 +2559,41 @@
2213
2559
  "stateMutability": "view",
2214
2560
  "type": "function"
2215
2561
  },
2562
+ {
2563
+ "inputs": [
2564
+ {
2565
+ "internalType": "bytes20",
2566
+ "name": "walletPubKeyHash",
2567
+ "type": "bytes20"
2568
+ },
2569
+ {
2570
+ "components": [
2571
+ {
2572
+ "internalType": "bytes32",
2573
+ "name": "txHash",
2574
+ "type": "bytes32"
2575
+ },
2576
+ {
2577
+ "internalType": "uint32",
2578
+ "name": "txOutputIndex",
2579
+ "type": "uint32"
2580
+ },
2581
+ {
2582
+ "internalType": "uint64",
2583
+ "name": "txOutputValue",
2584
+ "type": "uint64"
2585
+ }
2586
+ ],
2587
+ "internalType": "struct BitcoinTx.UTXO",
2588
+ "name": "utxo",
2589
+ "type": "tuple"
2590
+ }
2591
+ ],
2592
+ "name": "timeoutPendingMovedFundsSweepRequest",
2593
+ "outputs": [],
2594
+ "stateMutability": "nonpayable",
2595
+ "type": "function"
2596
+ },
2216
2597
  {
2217
2598
  "inputs": [
2218
2599
  {
@@ -2580,45 +2961,81 @@
2580
2961
  "type": "function"
2581
2962
  }
2582
2963
  ],
2583
- "transactionHash": "0xa2980d644ed3713ca5ebd545dbd4daee76745ebaff4aca2e4222b859a8400ced",
2964
+ "transactionHash": "0x03241e0b86d1eea38e662389d63c7e5fa667df53a7a726342360c9f95e538857",
2584
2965
  "receipt": {
2585
- "to": "0x16A76d3cd3C1e3CE843C6680d6B37E9116b5C706",
2586
- "from": "0x123694886DBf5Ac94DDA07135349534536D14cAf",
2587
- "contractAddress": null,
2588
- "transactionIndex": 144,
2589
- "gasUsed": "38748",
2590
- "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000200000000000000000000020000000000000000100000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000001000000000020000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
2591
- "blockHash": "0x3042ecc12f13d8a45f547456da41ee726fc960ab5e430bfe1184823d94439094",
2592
- "transactionHash": "0xa2980d644ed3713ca5ebd545dbd4daee76745ebaff4aca2e4222b859a8400ced",
2966
+ "to": null,
2967
+ "from": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
2968
+ "contractAddress": "0x3c705dB336C81c7FEFC5746e283aB2c0781A4B7b",
2969
+ "transactionIndex": 0,
2970
+ "gasUsed": "972117",
2971
+ "logsBloom": "0x00000000000000000000000000000000400000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000800080000000000000000000000000000000000000000000002000000800000000000000020000000000000008000000000000000000000000000000000000080000000000000800000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000400000000000000000000000000081000000000000800000000000000000000000000000000000000000000",
2972
+ "blockHash": "0x7a9d5b6a0526d2c3a510dd11daed4a8545338075ad699c308f8f1ee36cba341e",
2973
+ "transactionHash": "0x03241e0b86d1eea38e662389d63c7e5fa667df53a7a726342360c9f95e538857",
2593
2974
  "logs": [
2594
2975
  {
2595
- "transactionIndex": 144,
2596
- "blockNumber": 16399102,
2597
- "transactionHash": "0xa2980d644ed3713ca5ebd545dbd4daee76745ebaff4aca2e4222b859a8400ced",
2598
- "address": "0x5e4861a80B55f035D899f66772117F00FA0E8e7B",
2976
+ "transactionIndex": 0,
2977
+ "blockNumber": 66,
2978
+ "transactionHash": "0x03241e0b86d1eea38e662389d63c7e5fa667df53a7a726342360c9f95e538857",
2979
+ "address": "0x3c705dB336C81c7FEFC5746e283aB2c0781A4B7b",
2599
2980
  "topics": [
2600
2981
  "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
2601
- "0x0000000000000000000000008d014903bf7867260584d714e11809fea5293234"
2982
+ "0x000000000000000000000000199c27b10a195ee79e02d50846e59a4afb82cad1"
2602
2983
  ],
2603
2984
  "data": "0x",
2604
- "logIndex": 167,
2605
- "blockHash": "0x3042ecc12f13d8a45f547456da41ee726fc960ab5e430bfe1184823d94439094"
2985
+ "logIndex": 0,
2986
+ "blockHash": "0x7a9d5b6a0526d2c3a510dd11daed4a8545338075ad699c308f8f1ee36cba341e"
2987
+ },
2988
+ {
2989
+ "transactionIndex": 0,
2990
+ "blockNumber": 66,
2991
+ "transactionHash": "0x03241e0b86d1eea38e662389d63c7e5fa667df53a7a726342360c9f95e538857",
2992
+ "address": "0x3c705dB336C81c7FEFC5746e283aB2c0781A4B7b",
2993
+ "topics": [
2994
+ "0x5f56bee8cffbe9a78652a74a60705edede02af10b0bbb888ca44b79a0d42ce80"
2995
+ ],
2996
+ "data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070997970c51812dc3a010c7d01b50e0d17dc79c8",
2997
+ "logIndex": 1,
2998
+ "blockHash": "0x7a9d5b6a0526d2c3a510dd11daed4a8545338075ad699c308f8f1ee36cba341e"
2999
+ },
3000
+ {
3001
+ "transactionIndex": 0,
3002
+ "blockNumber": 66,
3003
+ "transactionHash": "0x03241e0b86d1eea38e662389d63c7e5fa667df53a7a726342360c9f95e538857",
3004
+ "address": "0x3c705dB336C81c7FEFC5746e283aB2c0781A4B7b",
3005
+ "topics": [
3006
+ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"
3007
+ ],
3008
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
3009
+ "logIndex": 2,
3010
+ "blockHash": "0x7a9d5b6a0526d2c3a510dd11daed4a8545338075ad699c308f8f1ee36cba341e"
3011
+ },
3012
+ {
3013
+ "transactionIndex": 0,
3014
+ "blockNumber": 66,
3015
+ "transactionHash": "0x03241e0b86d1eea38e662389d63c7e5fa667df53a7a726342360c9f95e538857",
3016
+ "address": "0x3c705dB336C81c7FEFC5746e283aB2c0781A4B7b",
3017
+ "topics": [
3018
+ "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"
3019
+ ],
3020
+ "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000afdacd509e73115ea1654b1a770f1a807e7c9c0",
3021
+ "logIndex": 3,
3022
+ "blockHash": "0x7a9d5b6a0526d2c3a510dd11daed4a8545338075ad699c308f8f1ee36cba341e"
2606
3023
  }
2607
3024
  ],
2608
- "blockNumber": 16399102,
2609
- "cumulativeGasUsed": "8682572",
3025
+ "blockNumber": 66,
3026
+ "cumulativeGasUsed": "972117",
2610
3027
  "status": 1,
2611
3028
  "byzantium": true
2612
3029
  },
2613
- "numDeployments": 2,
3030
+ "numDeployments": 1,
2614
3031
  "libraries": {
2615
- "Deposit": "0x1Ac1841a47054E070236F1664991e52c30C04dC5",
2616
- "DepositSweep": "0xE6F919e62c370Ef04EDF4cA5E2a901Ea1aa87085",
2617
- "Redemption": "0xfa4FC53BEB5B7721d173342FfC24058e9D47a1Ff",
2618
- "Wallets": "0xC67913137429985416DbCe28D9fa9ec960BA47BF",
2619
- "Fraud": "0xd040Def4bC6372Cd27b433288008aDCe7c9de71C",
2620
- "MovingFunds": "0xB857117ae7639255d7305DdbC7346b4a644CA432"
3032
+ "Deposit": "0xA82ED5224ba72f2f776e09B11DC99E30Ee65Da8d",
3033
+ "DepositSweep": "0x17C8b71E5eE01A726766c99d397D619219C8CAF3",
3034
+ "Redemption": "0x8990C5DAAA40673eF8826990A6Fd8284a0a17d61",
3035
+ "Wallets": "0xE4F89Fb0dBb45378633c05ACAb071eB998F0A736",
3036
+ "Fraud": "0xf69E1dFAc3D43F438Bae80090b8E186B0231CFeb",
3037
+ "MovingFunds": "0xDDEec1224034F4A68A2697eF13379a014fa60261"
2621
3038
  },
2622
- "implementation": "0x8D014903BF7867260584d714e11809fea5293234",
3039
+ "implementation": "0x199c27B10a195ee79e02d50846e59A4aFB82CAD1",
2623
3040
  "devdoc": "Contract deployed as upgradable proxy"
2624
3041
  }