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

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 (131) 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 +5 -5
  9. package/artifacts/BridgeGovernance.json +2 -2
  10. package/artifacts/BridgeGovernanceParameters.json +2 -2
  11. package/artifacts/Deposit.json +2 -2
  12. package/artifacts/DepositSweep.json +2 -2
  13. package/artifacts/DonationVault.json +3 -3
  14. package/artifacts/EcdsaDkgValidator.json +1 -1
  15. package/artifacts/EcdsaInactivity.json +1 -1
  16. package/artifacts/EcdsaSortitionPool.json +3 -3
  17. package/artifacts/Fraud.json +2 -2
  18. package/artifacts/KeepRegistry.json +1 -1
  19. package/artifacts/KeepStake.json +2 -2
  20. package/artifacts/KeepToken.json +2 -2
  21. package/artifacts/KeepTokenStaking.json +1 -1
  22. package/artifacts/LightRelay.json +18 -18
  23. package/artifacts/MaintainerProxy.json +19 -19
  24. package/artifacts/MovingFunds.json +2 -2
  25. package/artifacts/NuCypherStakingEscrow.json +1 -1
  26. package/artifacts/NuCypherToken.json +2 -2
  27. package/artifacts/RandomBeacon.json +2 -2
  28. package/artifacts/RandomBeaconChaosnet.json +2 -2
  29. package/artifacts/RandomBeaconGovernance.json +2 -2
  30. package/artifacts/Redemption.json +2 -2
  31. package/artifacts/ReimbursementPool.json +2 -2
  32. package/artifacts/T.json +2 -2
  33. package/artifacts/TBTC.json +3 -3
  34. package/artifacts/TBTCToken.json +3 -3
  35. package/artifacts/TBTCVault.json +23 -23
  36. package/artifacts/TokenStaking.json +1 -1
  37. package/artifacts/TokenholderGovernor.json +9 -9
  38. package/artifacts/TokenholderTimelock.json +8 -8
  39. package/artifacts/VendingMachine.json +3 -3
  40. package/artifacts/VendingMachineKeep.json +1 -1
  41. package/artifacts/VendingMachineNuCypher.json +1 -1
  42. package/artifacts/VendingMachineV2.json +3 -3
  43. package/artifacts/VendingMachineV3.json +3 -3
  44. package/artifacts/WalletCoordinator.json +792 -0
  45. package/artifacts/WalletRegistry.json +5 -5
  46. package/artifacts/WalletRegistryGovernance.json +2 -2
  47. package/artifacts/Wallets.json +2 -2
  48. package/artifacts/solcInputs/{8445e3932e9b9683df0e9fb9258d7b11.json → eaed73ec5af35f1b3d40df457dd99d0b.json} +3 -0
  49. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  50. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  51. package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
  52. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  53. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  54. package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
  55. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  56. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  57. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
  58. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  59. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  60. package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
  61. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  62. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  63. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  64. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  65. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  66. package/build/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.dbg.json +1 -1
  67. package/build/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.dbg.json +1 -1
  68. package/build/contracts/bridge/WalletCoordinator.sol/WalletCoordinator.dbg.json +4 -0
  69. package/build/contracts/bridge/WalletCoordinator.sol/WalletCoordinator.json +727 -0
  70. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  71. package/build/contracts/l2/L2TBTC.sol/L2TBTC.dbg.json +1 -1
  72. package/build/contracts/l2/L2WormholeGateway.sol/IWormholeTokenBridge.dbg.json +1 -1
  73. package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +1 -1
  74. package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
  75. package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
  76. package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
  77. package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
  78. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  79. package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
  80. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  81. package/build/contracts/vault/TBTCOptimisticMinting.sol/TBTCOptimisticMinting.dbg.json +1 -1
  82. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  83. package/contracts/bridge/WalletCoordinator.sol +648 -0
  84. package/deploy/34_deploy_wallet_coordinator.ts +43 -0
  85. package/deploy/35_transfer_wallet_coordinator_ownership.ts +19 -0
  86. package/export/artifacts/@keep-network/bitcoin-spv-sol/contracts/BTCUtils.sol/BTCUtils.json +20 -20
  87. package/export/artifacts/@keep-network/ecdsa/contracts/EcdsaDkgValidator.sol/EcdsaDkgValidator.json +1986 -1986
  88. package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaDkg.sol/EcdsaDkg.json +20 -20
  89. package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaInactivity.sol/EcdsaInactivity.json +1836 -1836
  90. package/export/artifacts/@keep-network/random-beacon/contracts/ReimbursementPool.sol/ReimbursementPool.json +545 -545
  91. package/export/artifacts/@keep-network/sortition-pools/contracts/Chaosnet.sol/Chaosnet.json +506 -506
  92. package/export/artifacts/@keep-network/sortition-pools/contracts/Rewards.sol/Rewards.json +23 -23
  93. package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionPool.sol/SortitionPool.json +2456 -2456
  94. package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionTree.sol/SortitionTree.json +465 -465
  95. package/export/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json +568 -568
  96. package/export/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +603 -603
  97. package/export/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +1001 -1001
  98. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +1877 -1877
  99. package/export/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol/ERC20Upgradeable.json +654 -654
  100. package/export/artifacts/@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol/ERC20WithPermit.json +2534 -2534
  101. package/export/artifacts/@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol/MisfundRecovery.json +736 -736
  102. package/export/artifacts/contracts/bank/Bank.sol/Bank.json +1872 -1872
  103. package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +7083 -7083
  104. package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +1257 -1257
  105. package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +972 -972
  106. package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +1122 -1122
  107. package/export/artifacts/contracts/bridge/WalletCoordinator.sol/WalletCoordinator.json +25433 -0
  108. package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +3002 -3002
  109. package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +2472 -2472
  110. package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2393 -2393
  111. package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +1922 -1922
  112. package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +1874 -1874
  113. package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +8122 -8122
  114. package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +1922 -1922
  115. package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +130 -130
  116. package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +2047 -2047
  117. package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +354 -354
  118. package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +568 -568
  119. package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +2291 -2291
  120. package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +1698 -1698
  121. package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +189 -189
  122. package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +1447 -1447
  123. package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2847 -2847
  124. package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +858 -858
  125. package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +3476 -3476
  126. package/export/deploy/34_deploy_wallet_coordinator.js +115 -0
  127. package/export/deploy/35_transfer_wallet_coordinator_ownership.js +60 -0
  128. package/export/typechain/WalletCoordinator.js +2 -0
  129. package/export/typechain/factories/WalletCoordinator__factory.js +806 -0
  130. package/export/typechain/index.js +3 -1
  131. package/package.json +1 -1
@@ -65,32 +65,32 @@
65
65
  {
66
66
  "ast": {
67
67
  "nodeType": "YulBlock",
68
- "src": "0:224:123",
68
+ "src": "0:224:124",
69
69
  "statements": [
70
70
  {
71
71
  "nodeType": "YulBlock",
72
- "src": "6:3:123",
72
+ "src": "6:3:124",
73
73
  "statements": []
74
74
  },
75
75
  {
76
76
  "body": {
77
77
  "nodeType": "YulBlock",
78
- "src": "113:109:123",
78
+ "src": "113:109:124",
79
79
  "statements": [
80
80
  {
81
81
  "nodeType": "YulAssignment",
82
- "src": "123:26:123",
82
+ "src": "123:26:124",
83
83
  "value": {
84
84
  "arguments": [
85
85
  {
86
86
  "name": "headStart",
87
87
  "nodeType": "YulIdentifier",
88
- "src": "135:9:123"
88
+ "src": "135:9:124"
89
89
  },
90
90
  {
91
91
  "kind": "number",
92
92
  "nodeType": "YulLiteral",
93
- "src": "146:2:123",
93
+ "src": "146:2:124",
94
94
  "type": "",
95
95
  "value": "32"
96
96
  }
@@ -98,16 +98,16 @@
98
98
  "functionName": {
99
99
  "name": "add",
100
100
  "nodeType": "YulIdentifier",
101
- "src": "131:3:123"
101
+ "src": "131:3:124"
102
102
  },
103
103
  "nodeType": "YulFunctionCall",
104
- "src": "131:18:123"
104
+ "src": "131:18:124"
105
105
  },
106
106
  "variableNames": [
107
107
  {
108
108
  "name": "tail",
109
109
  "nodeType": "YulIdentifier",
110
- "src": "123:4:123"
110
+ "src": "123:4:124"
111
111
  }
112
112
  ]
113
113
  },
@@ -117,19 +117,19 @@
117
117
  {
118
118
  "name": "headStart",
119
119
  "nodeType": "YulIdentifier",
120
- "src": "165:9:123"
120
+ "src": "165:9:124"
121
121
  },
122
122
  {
123
123
  "arguments": [
124
124
  {
125
125
  "name": "value0",
126
126
  "nodeType": "YulIdentifier",
127
- "src": "180:6:123"
127
+ "src": "180:6:124"
128
128
  },
129
129
  {
130
130
  "kind": "number",
131
131
  "nodeType": "YulLiteral",
132
- "src": "188:26:123",
132
+ "src": "188:26:124",
133
133
  "type": "",
134
134
  "value": "0xffffffffffffffffffffffff"
135
135
  }
@@ -137,22 +137,22 @@
137
137
  "functionName": {
138
138
  "name": "and",
139
139
  "nodeType": "YulIdentifier",
140
- "src": "176:3:123"
140
+ "src": "176:3:124"
141
141
  },
142
142
  "nodeType": "YulFunctionCall",
143
- "src": "176:39:123"
143
+ "src": "176:39:124"
144
144
  }
145
145
  ],
146
146
  "functionName": {
147
147
  "name": "mstore",
148
148
  "nodeType": "YulIdentifier",
149
- "src": "158:6:123"
149
+ "src": "158:6:124"
150
150
  },
151
151
  "nodeType": "YulFunctionCall",
152
- "src": "158:58:123"
152
+ "src": "158:58:124"
153
153
  },
154
154
  "nodeType": "YulExpressionStatement",
155
- "src": "158:58:123"
155
+ "src": "158:58:124"
156
156
  }
157
157
  ]
158
158
  },
@@ -162,13 +162,13 @@
162
162
  {
163
163
  "name": "headStart",
164
164
  "nodeType": "YulTypedName",
165
- "src": "82:9:123",
165
+ "src": "82:9:124",
166
166
  "type": ""
167
167
  },
168
168
  {
169
169
  "name": "value0",
170
170
  "nodeType": "YulTypedName",
171
- "src": "93:6:123",
171
+ "src": "93:6:124",
172
172
  "type": ""
173
173
  }
174
174
  ],
@@ -176,16 +176,16 @@
176
176
  {
177
177
  "name": "tail",
178
178
  "nodeType": "YulTypedName",
179
- "src": "104:4:123",
179
+ "src": "104:4:124",
180
180
  "type": ""
181
181
  }
182
182
  ],
183
- "src": "14:208:123"
183
+ "src": "14:208:124"
184
184
  }
185
185
  ]
186
186
  },
187
187
  "contents": "{\n { }\n function abi_encode_tuple_t_uint96__to_t_uint96__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, 0xffffffffffffffffffffffff))\n }\n}",
188
- "id": 123,
188
+ "id": 124,
189
189
  "language": "Yul",
190
190
  "name": "#utility.yul"
191
191
  }
@@ -193,7 +193,7 @@
193
193
  "immutableReferences": {},
194
194
  "linkReferences": {},
195
195
  "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x28 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xA7A7D391 EQ PUSH1 0x2D JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x1 SLOAD PUSH1 0x44 SWAP1 PUSH12 0xFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH12 0xFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xE3 DUP8 DUP15 CREATE CREATE2 0x5E 0xDE DUP4 DUP10 0xA8 DUP8 PUSH21 0x288F3366418FDBA8F7FB3CEC83940FC6FD758AFB64 PUSH20 0x6F6C634300081100330000000000000000000000 ",
196
- "sourceMap": "1356:7354:25:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2782:37;;;;;;;;;;;;188:26:123;176:39;;;158:58;;146:2;131:18;2782:37:25;;;;;;"
196
+ "sourceMap": "1356:7354:25:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2782:37;;;;;;;;;;;;188:26:124;176:39;;;158:58;;146:2;131:18;2782:37:25;;;;;;"
197
197
  },
198
198
  "gasEstimates": {
199
199
  "creation": {