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

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 +8 -8
  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 +5 -5
  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 +19 -19
  23. package/artifacts/MaintainerProxy.json +22 -22
  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 +10 -10
  34. package/artifacts/TBTCToken.json +10 -10
  35. package/artifacts/TBTCVault.json +24 -24
  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 +11 -11
  40. package/artifacts/VendingMachineKeep.json +1 -1
  41. package/artifacts/VendingMachineNuCypher.json +1 -1
  42. package/artifacts/VendingMachineV2.json +4 -4
  43. package/artifacts/VendingMachineV3.json +4 -4
  44. package/artifacts/WalletRegistry.json +5 -5
  45. package/artifacts/WalletRegistryGovernance.json +2 -2
  46. package/artifacts/Wallets.json +2 -2
  47. package/artifacts/solcInputs/{b0025f1f7efe4824592ac0c9793776c3.json → 8445e3932e9b9683df0e9fb9258d7b11.json} +9 -0
  48. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  49. package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
  50. package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
  51. package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
  52. package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  53. package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
  54. package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
  55. package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
  56. package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
  57. package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
  58. package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
  59. package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
  60. package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
  61. package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
  62. package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
  63. package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
  64. package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
  65. package/build/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.dbg.json +1 -1
  66. package/build/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.dbg.json +1 -1
  67. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  68. package/build/contracts/l2/L2TBTC.sol/L2TBTC.dbg.json +1 -1
  69. package/build/contracts/l2/L2WormholeGateway.sol/IWormholeTokenBridge.dbg.json +4 -0
  70. package/build/contracts/l2/L2WormholeGateway.sol/IWormholeTokenBridge.json +179 -0
  71. package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +4 -0
  72. package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +430 -0
  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/contracts/l2/L2WormholeGateway.sol +389 -0
  83. package/export/artifacts/@keep-network/bitcoin-spv-sol/contracts/BTCUtils.sol/BTCUtils.json +20 -20
  84. package/export/artifacts/@keep-network/ecdsa/contracts/EcdsaDkgValidator.sol/EcdsaDkgValidator.json +1996 -1996
  85. package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaDkg.sol/EcdsaDkg.json +20 -20
  86. package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaInactivity.sol/EcdsaInactivity.json +1846 -1846
  87. package/export/artifacts/@keep-network/random-beacon/contracts/ReimbursementPool.sol/ReimbursementPool.json +571 -571
  88. package/export/artifacts/@keep-network/sortition-pools/contracts/Chaosnet.sol/Chaosnet.json +506 -506
  89. package/export/artifacts/@keep-network/sortition-pools/contracts/Rewards.sol/Rewards.json +23 -23
  90. package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionPool.sol/SortitionPool.json +2481 -2481
  91. package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionTree.sol/SortitionTree.json +465 -465
  92. package/export/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json +614 -614
  93. package/export/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +640 -640
  94. package/export/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +1079 -1079
  95. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +1945 -1945
  96. package/export/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol/ERC20Upgradeable.json +696 -696
  97. package/export/artifacts/@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol/ERC20WithPermit.json +2613 -2613
  98. package/export/artifacts/@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol/MisfundRecovery.json +779 -779
  99. package/export/artifacts/contracts/bank/Bank.sol/Bank.json +1949 -1949
  100. package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +7365 -7365
  101. package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +1359 -1359
  102. package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +1029 -1029
  103. package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +1181 -1181
  104. package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +3122 -3122
  105. package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +15104 -0
  106. package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2442 -2442
  107. package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +1941 -1941
  108. package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +1951 -1951
  109. package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +8406 -8406
  110. package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +1941 -1941
  111. package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +132 -132
  112. package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +2066 -2066
  113. package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +354 -354
  114. package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +568 -568
  115. package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +2370 -2370
  116. package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +1768 -1768
  117. package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +191 -191
  118. package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +8665 -0
  119. package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2949 -2949
  120. package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +866 -866
  121. package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +3525 -3525
  122. package/export/typechain/IWormholeTokenBridge.js +2 -0
  123. package/export/typechain/L2WormholeGateway.js +2 -0
  124. package/export/typechain/ReentrancyGuardUpgradeable.js +2 -0
  125. package/export/typechain/WormholeBridgeStub.js +2 -0
  126. package/export/typechain/factories/IWormholeTokenBridge__factory.js +190 -0
  127. package/export/typechain/factories/L2WormholeGateway__factory.js +509 -0
  128. package/export/typechain/factories/ReentrancyGuardUpgradeable__factory.js +35 -0
  129. package/export/typechain/factories/WormholeBridgeStub__factory.js +451 -0
  130. package/export/typechain/index.js +10 -2
  131. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IWormholeTokenBridge__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "bytes",
13
+ name: "encodedVm",
14
+ type: "bytes",
15
+ },
16
+ ],
17
+ name: "completeTransferWithPayload",
18
+ outputs: [
19
+ {
20
+ internalType: "bytes",
21
+ name: "",
22
+ type: "bytes",
23
+ },
24
+ ],
25
+ stateMutability: "nonpayable",
26
+ type: "function",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "bytes",
32
+ name: "encoded",
33
+ type: "bytes",
34
+ },
35
+ ],
36
+ name: "parseTransferWithPayload",
37
+ outputs: [
38
+ {
39
+ components: [
40
+ {
41
+ internalType: "uint8",
42
+ name: "payloadID",
43
+ type: "uint8",
44
+ },
45
+ {
46
+ internalType: "uint256",
47
+ name: "amount",
48
+ type: "uint256",
49
+ },
50
+ {
51
+ internalType: "bytes32",
52
+ name: "tokenAddress",
53
+ type: "bytes32",
54
+ },
55
+ {
56
+ internalType: "uint16",
57
+ name: "tokenChain",
58
+ type: "uint16",
59
+ },
60
+ {
61
+ internalType: "bytes32",
62
+ name: "to",
63
+ type: "bytes32",
64
+ },
65
+ {
66
+ internalType: "uint16",
67
+ name: "toChain",
68
+ type: "uint16",
69
+ },
70
+ {
71
+ internalType: "bytes32",
72
+ name: "fromAddress",
73
+ type: "bytes32",
74
+ },
75
+ {
76
+ internalType: "bytes",
77
+ name: "payload",
78
+ type: "bytes",
79
+ },
80
+ ],
81
+ internalType: "struct IWormholeTokenBridge.TransferWithPayload",
82
+ name: "transfer",
83
+ type: "tuple",
84
+ },
85
+ ],
86
+ stateMutability: "pure",
87
+ type: "function",
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: "address",
93
+ name: "token",
94
+ type: "address",
95
+ },
96
+ {
97
+ internalType: "uint256",
98
+ name: "amount",
99
+ type: "uint256",
100
+ },
101
+ {
102
+ internalType: "uint16",
103
+ name: "recipientChain",
104
+ type: "uint16",
105
+ },
106
+ {
107
+ internalType: "bytes32",
108
+ name: "recipient",
109
+ type: "bytes32",
110
+ },
111
+ {
112
+ internalType: "uint256",
113
+ name: "arbiterFee",
114
+ type: "uint256",
115
+ },
116
+ {
117
+ internalType: "uint32",
118
+ name: "nonce",
119
+ type: "uint32",
120
+ },
121
+ ],
122
+ name: "transferTokens",
123
+ outputs: [
124
+ {
125
+ internalType: "uint64",
126
+ name: "sequence",
127
+ type: "uint64",
128
+ },
129
+ ],
130
+ stateMutability: "payable",
131
+ type: "function",
132
+ },
133
+ {
134
+ inputs: [
135
+ {
136
+ internalType: "address",
137
+ name: "token",
138
+ type: "address",
139
+ },
140
+ {
141
+ internalType: "uint256",
142
+ name: "amount",
143
+ type: "uint256",
144
+ },
145
+ {
146
+ internalType: "uint16",
147
+ name: "recipientChain",
148
+ type: "uint16",
149
+ },
150
+ {
151
+ internalType: "bytes32",
152
+ name: "recipient",
153
+ type: "bytes32",
154
+ },
155
+ {
156
+ internalType: "uint32",
157
+ name: "nonce",
158
+ type: "uint32",
159
+ },
160
+ {
161
+ internalType: "bytes",
162
+ name: "payload",
163
+ type: "bytes",
164
+ },
165
+ ],
166
+ name: "transferTokensWithPayload",
167
+ outputs: [
168
+ {
169
+ internalType: "uint64",
170
+ name: "sequence",
171
+ type: "uint64",
172
+ },
173
+ ],
174
+ stateMutability: "payable",
175
+ type: "function",
176
+ },
177
+ ];
178
+ var IWormholeTokenBridge__factory = /** @class */ (function () {
179
+ function IWormholeTokenBridge__factory() {
180
+ }
181
+ IWormholeTokenBridge__factory.createInterface = function () {
182
+ return new ethers_1.utils.Interface(_abi);
183
+ };
184
+ IWormholeTokenBridge__factory.connect = function (address, signerOrProvider) {
185
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
186
+ };
187
+ IWormholeTokenBridge__factory.abi = _abi;
188
+ return IWormholeTokenBridge__factory;
189
+ }());
190
+ exports.IWormholeTokenBridge__factory = IWormholeTokenBridge__factory;