@keep-network/tbtc-v2 1.0.0-dev.1 → 1.0.0-dev.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 (130) hide show
  1. package/artifacts/BLS.json +1 -1
  2. package/artifacts/Bank.json +3 -3
  3. package/artifacts/BeaconAuthorization.json +1 -1
  4. package/artifacts/BeaconDkg.json +1 -1
  5. package/artifacts/BeaconDkgValidator.json +1 -1
  6. package/artifacts/BeaconInactivity.json +1 -1
  7. package/artifacts/BeaconSortitionPool.json +3 -3
  8. package/artifacts/Bridge.json +39 -13
  9. package/artifacts/BridgeGovernance.json +63 -11
  10. package/artifacts/BridgeGovernanceParameters.json +56 -9
  11. package/artifacts/Deposit.json +7 -7
  12. package/artifacts/DepositSweep.json +9 -9
  13. package/artifacts/EcdsaDkgValidator.json +1 -1
  14. package/artifacts/EcdsaInactivity.json +1 -1
  15. package/artifacts/EcdsaSortitionPool.json +3 -3
  16. package/artifacts/Fraud.json +9 -9
  17. package/artifacts/KeepRegistry.json +1 -1
  18. package/artifacts/KeepStake.json +2 -2
  19. package/artifacts/KeepToken.json +2 -2
  20. package/artifacts/KeepTokenStaking.json +1 -1
  21. package/artifacts/LightRelay.json +647 -31
  22. package/artifacts/MaintainerProxy.json +27 -27
  23. package/artifacts/MovingFunds.json +7 -7
  24. package/artifacts/NuCypherStakingEscrow.json +1 -1
  25. package/artifacts/NuCypherToken.json +2 -2
  26. package/artifacts/RandomBeacon.json +2 -2
  27. package/artifacts/RandomBeaconChaosnet.json +2 -2
  28. package/artifacts/RandomBeaconGovernance.json +2 -2
  29. package/artifacts/Redemption.json +7 -7
  30. package/artifacts/ReimbursementPool.json +2 -2
  31. package/artifacts/T.json +2 -2
  32. package/artifacts/TBTC.json +3 -3
  33. package/artifacts/TBTCToken.json +3 -3
  34. package/artifacts/TBTCVault.json +29 -29
  35. package/artifacts/TokenStaking.json +1 -1
  36. package/artifacts/TokenholderGovernor.json +9 -9
  37. package/artifacts/TokenholderTimelock.json +8 -8
  38. package/artifacts/VendingMachine.json +10 -10
  39. package/artifacts/VendingMachineKeep.json +1 -1
  40. package/artifacts/VendingMachineNuCypher.json +1 -1
  41. package/artifacts/WalletRegistry.json +5 -5
  42. package/artifacts/WalletRegistryGovernance.json +2 -2
  43. package/artifacts/Wallets.json +7 -7
  44. package/artifacts/solcInputs/{c4a8321fae385b22f3b9afb8b7fa6c22.json → b448960fd13167193eb1e0994f1c8e1c.json} +4 -4
  45. package/artifacts/solcInputs/{601573cb2697bb9512dba002bb727262.json → e28c3bed541f57346a362a67f66ae471.json} +6 -6
  46. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  47. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  48. package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
  49. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  50. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +2 -2
  51. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  52. package/build/contracts/bridge/Bridge.sol/Bridge.json +70 -44
  53. package/build/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.dbg.json +1 -1
  54. package/build/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.json +206 -138
  55. package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
  56. package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.json +34 -2
  57. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  58. package/build/contracts/bridge/BridgeState.sol/BridgeState.json +15 -2
  59. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  60. package/build/contracts/bridge/Deposit.sol/Deposit.json +2 -2
  61. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
  62. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.json +2 -2
  63. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  64. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  65. package/build/contracts/bridge/Fraud.sol/Fraud.json +2 -2
  66. package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
  67. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  68. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  69. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +2 -2
  70. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  71. package/build/contracts/bridge/Redemption.sol/OutboundTx.json +2 -2
  72. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  73. package/build/contracts/bridge/Redemption.sol/Redemption.json +2 -2
  74. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  75. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  76. package/build/contracts/bridge/Wallets.sol/Wallets.json +2 -2
  77. package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
  78. package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2 -2
  79. package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
  80. package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
  81. package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
  82. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  83. package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
  84. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  85. package/build/contracts/vault/TBTCOptimisticMinting.sol/TBTCOptimisticMinting.dbg.json +1 -1
  86. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  87. package/build/contracts/vault/TBTCVault.sol/TBTCVault.json +2 -2
  88. package/contracts/bridge/Bridge.sol +10 -0
  89. package/contracts/bridge/BridgeGovernance.sol +22 -0
  90. package/contracts/bridge/BridgeGovernanceParameters.sol +37 -0
  91. package/contracts/bridge/BridgeState.sol +12 -0
  92. package/deploy/01_deploy_light_relay.ts +5 -9
  93. package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +3054 -2820
  94. package/export/artifacts/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.json +1126 -680
  95. package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +67 -67
  96. package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +103 -103
  97. package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +57 -57
  98. package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +2 -2
  99. package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +3287 -3053
  100. package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +57 -57
  101. package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +4 -4
  102. package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +59 -59
  103. package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +7 -7
  104. package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +3407 -0
  105. package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +8 -8
  106. package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +10 -10
  107. package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +6 -6
  108. package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2 -2
  109. package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +11 -11
  110. package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +140 -140
  111. package/export/deploy/01_deploy_light_relay.js +5 -16
  112. package/export/hardhat.config.js +4 -0
  113. package/export/typechain/{TestRelay.js → SystemTestRelay.js} +0 -0
  114. package/export/typechain/factories/BridgeGovernanceParameters__factory.js +33 -1
  115. package/export/typechain/factories/BridgeGovernance__factory.js +53 -1
  116. package/export/typechain/factories/BridgeState__factory.js +14 -1
  117. package/export/typechain/factories/BridgeStub__factory.js +27 -1
  118. package/export/typechain/factories/Bridge__factory.js +27 -1
  119. package/export/typechain/factories/DepositSweep__factory.js +1 -1
  120. package/export/typechain/factories/Deposit__factory.js +1 -1
  121. package/export/typechain/factories/Fraud__factory.js +1 -1
  122. package/export/typechain/factories/MaintainerProxy__factory.js +1 -1
  123. package/export/typechain/factories/MovingFunds__factory.js +1 -1
  124. package/export/typechain/factories/Redemption__factory.js +1 -1
  125. package/export/typechain/factories/{TestRelay__factory.js → SystemTestRelay__factory.js} +15 -15
  126. package/export/typechain/factories/TBTCVault__factory.js +1 -1
  127. package/export/typechain/factories/Wallets__factory.js +1 -1
  128. package/export/typechain/index.js +3 -3
  129. package/package.json +1 -1
  130. package/export/artifacts/contracts/test/TestRelay.sol/TestRelay.json +0 -3406
@@ -576,15 +576,15 @@
576
576
  "parameterSlots": 1,
577
577
  "returnSlots": 0
578
578
  },
579
- "@authorizationRequired_31661": {
579
+ "@authorizationRequired_31793": {
580
580
  "entryPoint": null,
581
- "id": 31661,
581
+ "id": 31793,
582
582
  "parameterSlots": 0,
583
583
  "returnSlots": 0
584
584
  },
585
- "@authorize_31874": {
585
+ "@authorize_32006": {
586
586
  "entryPoint": 5633,
587
- "id": 31874,
587
+ "id": 32006,
588
588
  "parameterSlots": 1,
589
589
  "returnSlots": 0
590
590
  },
@@ -594,15 +594,15 @@
594
594
  "parameterSlots": 1,
595
595
  "returnSlots": 1
596
596
  },
597
- "@currentEpoch_31667": {
597
+ "@currentEpoch_31799": {
598
598
  "entryPoint": null,
599
- "id": 31667,
599
+ "id": 31799,
600
600
  "parameterSlots": 0,
601
601
  "returnSlots": 0
602
602
  },
603
- "@deauthorize_31893": {
603
+ "@deauthorize_32025": {
604
604
  "entryPoint": 2599,
605
- "id": 31893,
605
+ "id": 32025,
606
606
  "parameterSlots": 1,
607
607
  "returnSlots": 0
608
608
  },
@@ -630,9 +630,9 @@
630
630
  "parameterSlots": 1,
631
631
  "returnSlots": 1
632
632
  },
633
- "@extractTimestampAt_31639": {
633
+ "@extractTimestampAt_31771": {
634
634
  "entryPoint": 6495,
635
- "id": 31639,
635
+ "id": 31771,
636
636
  "parameterSlots": 2,
637
637
  "returnSlots": 1
638
638
  },
@@ -648,51 +648,51 @@
648
648
  "parameterSlots": 1,
649
649
  "returnSlots": 1
650
650
  },
651
- "@genesisEpoch_31665": {
651
+ "@genesisEpoch_31797": {
652
652
  "entryPoint": null,
653
- "id": 31665,
653
+ "id": 31797,
654
654
  "parameterSlots": 0,
655
655
  "returnSlots": 0
656
656
  },
657
- "@genesis_31798": {
657
+ "@genesis_31930": {
658
658
  "entryPoint": 2770,
659
- "id": 31798,
659
+ "id": 31930,
660
660
  "parameterSlots": 4,
661
661
  "returnSlots": 0
662
662
  },
663
- "@getBlockDifficulty_32369": {
663
+ "@getBlockDifficulty_32501": {
664
664
  "entryPoint": 883,
665
- "id": 32369,
665
+ "id": 32501,
666
666
  "parameterSlots": 1,
667
667
  "returnSlots": 1
668
668
  },
669
- "@getCurrentAndPrevEpochDifficulty_32423": {
669
+ "@getCurrentAndPrevEpochDifficulty_32555": {
670
670
  "entryPoint": null,
671
- "id": 32423,
671
+ "id": 32555,
672
672
  "parameterSlots": 0,
673
673
  "returnSlots": 2
674
674
  },
675
- "@getCurrentEpochDifficulty_32402": {
675
+ "@getCurrentEpochDifficulty_32534": {
676
676
  "entryPoint": null,
677
- "id": 32402,
677
+ "id": 32534,
678
678
  "parameterSlots": 0,
679
679
  "returnSlots": 1
680
680
  },
681
- "@getEpochDifficulty_32454": {
681
+ "@getEpochDifficulty_32586": {
682
682
  "entryPoint": 3821,
683
- "id": 32454,
683
+ "id": 32586,
684
684
  "parameterSlots": 1,
685
685
  "returnSlots": 1
686
686
  },
687
- "@getPrevEpochDifficulty_32411": {
687
+ "@getPrevEpochDifficulty_32543": {
688
688
  "entryPoint": null,
689
- "id": 32411,
689
+ "id": 32543,
690
690
  "parameterSlots": 0,
691
691
  "returnSlots": 1
692
692
  },
693
- "@getRelayRange_32393": {
693
+ "@getRelayRange_32525": {
694
694
  "entryPoint": 906,
695
- "id": 32393,
695
+ "id": 32525,
696
696
  "parameterSlots": 0,
697
697
  "returnSlots": 2
698
698
  },
@@ -702,9 +702,9 @@
702
702
  "parameterSlots": 3,
703
703
  "returnSlots": 1
704
704
  },
705
- "@isAuthorized_31680": {
705
+ "@isAuthorized_31812": {
706
706
  "entryPoint": null,
707
- "id": 31680,
707
+ "id": 31812,
708
708
  "parameterSlots": 0,
709
709
  "returnSlots": 0
710
710
  },
@@ -720,15 +720,15 @@
720
720
  "parameterSlots": 0,
721
721
  "returnSlots": 1
722
722
  },
723
- "@proofLength_31663": {
723
+ "@proofLength_31795": {
724
724
  "entryPoint": null,
725
- "id": 31663,
725
+ "id": 31795,
726
726
  "parameterSlots": 0,
727
727
  "returnSlots": 0
728
728
  },
729
- "@ready_31659": {
729
+ "@ready_31791": {
730
730
  "entryPoint": null,
731
- "id": 31659,
731
+ "id": 31791,
732
732
  "parameterSlots": 0,
733
733
  "returnSlots": 0
734
734
  },
@@ -744,9 +744,9 @@
744
744
  "parameterSlots": 3,
745
745
  "returnSlots": 1
746
746
  },
747
- "@retarget_32125": {
747
+ "@retarget_32257": {
748
748
  "entryPoint": 4195,
749
- "id": 32125,
749
+ "id": 32257,
750
750
  "parameterSlots": 1,
751
751
  "returnSlots": 0
752
752
  },
@@ -768,15 +768,15 @@
768
768
  "parameterSlots": 1,
769
769
  "returnSlots": 1
770
770
  },
771
- "@setAuthorizationStatus_31855": {
771
+ "@setAuthorizationStatus_31987": {
772
772
  "entryPoint": 5807,
773
- "id": 31855,
773
+ "id": 31987,
774
774
  "parameterSlots": 1,
775
775
  "returnSlots": 0
776
776
  },
777
- "@setProofLength_31838": {
777
+ "@setProofLength_31970": {
778
778
  "entryPoint": 2018,
779
- "id": 31838,
779
+ "id": 31970,
780
780
  "parameterSlots": 1,
781
781
  "returnSlots": 0
782
782
  },
@@ -810,9 +810,9 @@
810
810
  "parameterSlots": 1,
811
811
  "returnSlots": 0
812
812
  },
813
- "@validateChain_32354": {
813
+ "@validateChain_32486": {
814
814
  "entryPoint": 1002,
815
- "id": 32354,
815
+ "id": 32486,
816
816
  "parameterSlots": 1,
817
817
  "returnSlots": 2
818
818
  },
@@ -828,9 +828,9 @@
828
828
  "parameterSlots": 2,
829
829
  "returnSlots": 1
830
830
  },
831
- "@validateHeader_32514": {
831
+ "@validateHeader_32646": {
832
832
  "entryPoint": 6279,
833
- "id": 32514,
833
+ "id": 32646,
834
834
  "parameterSlots": 3,
835
835
  "returnSlots": 2
836
836
  },
@@ -11808,7 +11808,7 @@
11808
11808
  "type": "t_address"
11809
11809
  },
11810
11810
  {
11811
- "astId": 31659,
11811
+ "astId": 31791,
11812
11812
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11813
11813
  "label": "ready",
11814
11814
  "offset": 20,
@@ -11816,7 +11816,7 @@
11816
11816
  "type": "t_bool"
11817
11817
  },
11818
11818
  {
11819
- "astId": 31661,
11819
+ "astId": 31793,
11820
11820
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11821
11821
  "label": "authorizationRequired",
11822
11822
  "offset": 21,
@@ -11824,7 +11824,7 @@
11824
11824
  "type": "t_bool"
11825
11825
  },
11826
11826
  {
11827
- "astId": 31663,
11827
+ "astId": 31795,
11828
11828
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11829
11829
  "label": "proofLength",
11830
11830
  "offset": 22,
@@ -11832,7 +11832,7 @@
11832
11832
  "type": "t_uint64"
11833
11833
  },
11834
11834
  {
11835
- "astId": 31665,
11835
+ "astId": 31797,
11836
11836
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11837
11837
  "label": "genesisEpoch",
11838
11838
  "offset": 0,
@@ -11840,7 +11840,7 @@
11840
11840
  "type": "t_uint64"
11841
11841
  },
11842
11842
  {
11843
- "astId": 31667,
11843
+ "astId": 31799,
11844
11844
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11845
11845
  "label": "currentEpoch",
11846
11846
  "offset": 8,
@@ -11848,7 +11848,7 @@
11848
11848
  "type": "t_uint64"
11849
11849
  },
11850
11850
  {
11851
- "astId": 31669,
11851
+ "astId": 31801,
11852
11852
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11853
11853
  "label": "currentEpochDifficulty",
11854
11854
  "offset": 0,
@@ -11856,7 +11856,7 @@
11856
11856
  "type": "t_uint256"
11857
11857
  },
11858
11858
  {
11859
- "astId": 31671,
11859
+ "astId": 31803,
11860
11860
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11861
11861
  "label": "prevEpochDifficulty",
11862
11862
  "offset": 0,
@@ -11864,15 +11864,15 @@
11864
11864
  "type": "t_uint256"
11865
11865
  },
11866
11866
  {
11867
- "astId": 31676,
11867
+ "astId": 31808,
11868
11868
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11869
11869
  "label": "epochs",
11870
11870
  "offset": 0,
11871
11871
  "slot": "4",
11872
- "type": "t_mapping(t_uint256,t_struct(Epoch)31548_storage)"
11872
+ "type": "t_mapping(t_uint256,t_struct(Epoch)31680_storage)"
11873
11873
  },
11874
11874
  {
11875
- "astId": 31680,
11875
+ "astId": 31812,
11876
11876
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11877
11877
  "label": "isAuthorized",
11878
11878
  "offset": 0,
@@ -11898,19 +11898,19 @@
11898
11898
  "numberOfBytes": "32",
11899
11899
  "value": "t_bool"
11900
11900
  },
11901
- "t_mapping(t_uint256,t_struct(Epoch)31548_storage)": {
11901
+ "t_mapping(t_uint256,t_struct(Epoch)31680_storage)": {
11902
11902
  "encoding": "mapping",
11903
11903
  "key": "t_uint256",
11904
11904
  "label": "mapping(uint256 => struct Epoch)",
11905
11905
  "numberOfBytes": "32",
11906
- "value": "t_struct(Epoch)31548_storage"
11906
+ "value": "t_struct(Epoch)31680_storage"
11907
11907
  },
11908
- "t_struct(Epoch)31548_storage": {
11908
+ "t_struct(Epoch)31680_storage": {
11909
11909
  "encoding": "inplace",
11910
11910
  "label": "struct Epoch",
11911
11911
  "members": [
11912
11912
  {
11913
- "astId": 31545,
11913
+ "astId": 31677,
11914
11914
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11915
11915
  "label": "timestamp",
11916
11916
  "offset": 0,
@@ -11918,7 +11918,7 @@
11918
11918
  "type": "t_uint32"
11919
11919
  },
11920
11920
  {
11921
- "astId": 31547,
11921
+ "astId": 31679,
11922
11922
  "contract": "contracts/relay/LightRelay.sol:LightRelay",
11923
11923
  "label": "target",
11924
11924
  "offset": 4,
@@ -1212,9 +1212,9 @@
1212
1212
  "parameterSlots": 0,
1213
1213
  "returnSlots": 0
1214
1214
  },
1215
- "@setBalance_32534": {
1215
+ "@setBalance_32666": {
1216
1216
  "entryPoint": null,
1217
- "id": 32534,
1217
+ "id": 32666,
1218
1218
  "parameterSlots": 2,
1219
1219
  "returnSlots": 0
1220
1220
  },