@keep-network/tbtc-v2 1.1.0 → 1.2.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 (103) 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 +19 -19
  44. package/artifacts/VendingMachineV3.json +19 -19
  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/{fccb130292c8c7cc958ab4fa31a3e180.json → cc4433405642a987910ddb374547d19a.json} +15 -12
  49. package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +11975 -0
  50. package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +51806 -0
  51. package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +11988 -0
  52. package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +822 -0
  53. package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +12729 -0
  54. package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +2160 -0
  55. package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +3407 -0
  56. package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +14263 -0
  57. package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +10644 -0
  58. package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +1160 -0
  59. package/export/test/integration/data/bls.js +12 -0
  60. package/export/test/integration/data/integration.js +133 -0
  61. package/export/test/integration/utils/ecdsa-wallet-registry.js +370 -0
  62. package/export/test/integration/utils/random-beacon.js +193 -0
  63. package/export/{deploy/08_deploy_maintainer_proxy.js → test/integration/utils/staking.js} +35 -32
  64. package/package.json +5 -5
  65. package/artifacts/solcInputs/7cc3eda3cb3ff2522d18b5e7b31ea228.json +0 -102
  66. package/artifacts/solcInputs/802132f7da69a8a4226cb9424480847b.json +0 -218
  67. package/artifacts/solcInputs/887fad6b16575ba42183543c324eeb0e.json +0 -335
  68. package/export/deploy/00_resolve_relay.js +0 -83
  69. package/export/deploy/01_deploy_tbtc_v2_token.js +0 -70
  70. package/export/deploy/02_deploy_vending_machine.js +0 -84
  71. package/export/deploy/03_transfer_vending_machine_roles.js +0 -69
  72. package/export/deploy/04_deploy_bank.js +0 -73
  73. package/export/deploy/05_deploy_bridge.js +0 -178
  74. package/export/deploy/06_deploy_tbtc_vault.js +0 -80
  75. package/export/deploy/07_deploy_bridge_governance.js +0 -87
  76. package/export/deploy/09_bank_update_bridge.js +0 -63
  77. package/export/deploy/10_authorize_spv_maintainer_in_bridge.js +0 -61
  78. package/export/deploy/11_transfer_bank_ownership.js +0 -60
  79. package/export/deploy/12_transfer_bridge_governance.js +0 -63
  80. package/export/deploy/13_transfer_bridge_governance_ownership.js +0 -60
  81. package/export/deploy/14_transfer_tbtc_vault_ownership.js +0 -60
  82. package/export/deploy/15_transfer_maintainer_proxy_ownership.js +0 -60
  83. package/export/deploy/16_initialize_wallet_owner.js +0 -63
  84. package/export/deploy/16_transfer_proxy_admin_ownership.js +0 -73
  85. package/export/deploy/17_authorize_maintainer_proxy_in_bridge.js +0 -63
  86. package/export/deploy/17_transfer_proxy_admin_ownership.js +0 -73
  87. package/export/deploy/18_authorize_maintainer_proxy_in_bridge.js +0 -63
  88. package/export/deploy/18_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
  89. package/export/deploy/19_authorize_bridge_in_reimbursement_pool.js +0 -63
  90. package/export/deploy/19_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
  91. package/export/deploy/20_authorize_bridge_in_reimbursement_pool.js +0 -63
  92. package/export/deploy/20_deploy_proxy_admin_with_deputy.js +0 -80
  93. package/export/deploy/21_transfer_reimbursement_pool_ownership.js +0 -60
  94. package/export/deploy/22_deploy_proxy_admin_with_deputy.js +0 -80
  95. package/export/deploy/24_transfer_maintainer_proxy_ownership.js +0 -60
  96. package/export/deploy/25_transfer_proxy_admin_ownership.js +0 -73
  97. package/export/deploy/26_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -70
  98. package/export/deploy/27_authorize_bridge_in_reimbursement_pool.js +0 -70
  99. package/export/deploy/28_deploy_proxy_admin_with_deputy.js +0 -80
  100. package/export/typechain/RelayStub.js +0 -2
  101. package/export/typechain/TestRelay.js +0 -2
  102. package/export/typechain/factories/RelayStub__factory.js +0 -546
  103. package/export/typechain/factories/TestRelay__factory.js +0 -168
@@ -1,168 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __read = (this && this.__read) || function (o, n) {
18
- var m = typeof Symbol === "function" && o[Symbol.iterator];
19
- if (!m) return o;
20
- var i = m.call(o), r, ar = [], e;
21
- try {
22
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
23
- }
24
- catch (error) { e = { error: error }; }
25
- finally {
26
- try {
27
- if (r && !r.done && (m = i["return"])) m.call(i);
28
- }
29
- finally { if (e) throw e.error; }
30
- }
31
- return ar;
32
- };
33
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
34
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
35
- if (ar || !(i in from)) {
36
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
37
- ar[i] = from[i];
38
- }
39
- }
40
- return to.concat(ar || Array.prototype.slice.call(from));
41
- };
42
- Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.TestRelay__factory = void 0;
44
- /* Autogenerated file. Do not edit manually. */
45
- /* tslint:disable */
46
- /* eslint-disable */
47
- var ethers_1 = require("ethers");
48
- var _abi = [
49
- {
50
- inputs: [],
51
- name: "getCurrentEpochDifficulty",
52
- outputs: [
53
- {
54
- internalType: "uint256",
55
- name: "",
56
- type: "uint256",
57
- },
58
- ],
59
- stateMutability: "view",
60
- type: "function",
61
- },
62
- {
63
- inputs: [],
64
- name: "getPrevEpochDifficulty",
65
- outputs: [
66
- {
67
- internalType: "uint256",
68
- name: "",
69
- type: "uint256",
70
- },
71
- ],
72
- stateMutability: "view",
73
- type: "function",
74
- },
75
- {
76
- inputs: [
77
- {
78
- internalType: "uint256",
79
- name: "_difficulty",
80
- type: "uint256",
81
- },
82
- ],
83
- name: "setCurrentEpochDifficulty",
84
- outputs: [],
85
- stateMutability: "nonpayable",
86
- type: "function",
87
- },
88
- {
89
- inputs: [
90
- {
91
- internalType: "bytes",
92
- name: "bitcoinHeaders",
93
- type: "bytes",
94
- },
95
- ],
96
- name: "setCurrentEpochDifficultyFromHeaders",
97
- outputs: [],
98
- stateMutability: "nonpayable",
99
- type: "function",
100
- },
101
- {
102
- inputs: [
103
- {
104
- internalType: "uint256",
105
- name: "_difficulty",
106
- type: "uint256",
107
- },
108
- ],
109
- name: "setPrevEpochDifficulty",
110
- outputs: [],
111
- stateMutability: "nonpayable",
112
- type: "function",
113
- },
114
- {
115
- inputs: [
116
- {
117
- internalType: "bytes",
118
- name: "bitcoinHeaders",
119
- type: "bytes",
120
- },
121
- ],
122
- name: "setPrevEpochDifficultyFromHeaders",
123
- outputs: [],
124
- stateMutability: "nonpayable",
125
- type: "function",
126
- },
127
- ];
128
- var _bytecode = "0x608060405234801561001057600080fd5b506104af806100206000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c80634308f6dc116100505780634308f6dc146100aa5780637d4046fb146100bd578063c3def248146100d057600080fd5b8063113764be146100775780632b97be241461008d5780633c5e875214610095575b600080fd5b6000545b60405190815260200160405180910390f35b60015461007b565b6100a86100a3366004610218565b600155565b005b6100a86100b8366004610247565b6100e3565b6100a86100cb366004610218565b600055565b6100a86100de366004610247565b6100fd565b60006100f66100f183610112565b610125565b6000555050565b600061010b6100f183610112565b6001555050565b600061011f82600061014d565b92915050565b600061011f7bffff0000000000000000000000000000000000000000000000000000836101f6565b60008061016561015e84604861030e565b8590610209565b60e81c905060008461017885604b61030e565b8151811061018857610188610321565b016020015160f81c905060006101bc83600060108262ffffff16901c8261ff001660108462ffffff16901b17179050919050565b62ffffff16905060006101d0600384610337565b60ff1690506101e181610100610434565b6101eb9083610440565b979650505050505050565b60006102028284610457565b9392505050565b60006102028383016020015190565b60006020828403121561022a57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561025957600080fd5b813567ffffffffffffffff8082111561027157600080fd5b818401915084601f83011261028557600080fd5b81358181111561029757610297610231565b604051601f8201601f19908116603f011681019083821181831017156102bf576102bf610231565b816040528281528760208487010111156102d857600080fd5b826020860160208301376000928101602001929092525095945050505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561011f5761011f6102f8565b634e487b7160e01b600052603260045260246000fd5b60ff828116828216039081111561011f5761011f6102f8565b600181815b8085111561038b578160001904821115610371576103716102f8565b8085161561037e57918102915b93841c9390800290610355565b509250929050565b6000826103a25750600161011f565b816103af5750600061011f565b81600181146103c557600281146103cf576103eb565b600191505061011f565b60ff8411156103e0576103e06102f8565b50506001821b61011f565b5060208310610133831016604e8410600b841016171561040e575081810a61011f565b6104188383610350565b806000190482111561042c5761042c6102f8565b029392505050565b60006102028383610393565b808202811582820484141761011f5761011f6102f8565b60008261047457634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220cc8ac2c604f07de26e0cf114f5ef21743184b91cf2ae201189066b52eda809a064736f6c63430008110033";
129
- var isSuperArgs = function (xs) { return xs.length > 1; };
130
- var TestRelay__factory = /** @class */ (function (_super) {
131
- __extends(TestRelay__factory, _super);
132
- function TestRelay__factory() {
133
- var args = [];
134
- for (var _i = 0; _i < arguments.length; _i++) {
135
- args[_i] = arguments[_i];
136
- }
137
- var _this = this;
138
- if (isSuperArgs(args)) {
139
- _this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
140
- }
141
- else {
142
- _this = _super.call(this, _abi, _bytecode, args[0]) || this;
143
- }
144
- return _this;
145
- }
146
- TestRelay__factory.prototype.deploy = function (overrides) {
147
- return _super.prototype.deploy.call(this, overrides || {});
148
- };
149
- TestRelay__factory.prototype.getDeployTransaction = function (overrides) {
150
- return _super.prototype.getDeployTransaction.call(this, overrides || {});
151
- };
152
- TestRelay__factory.prototype.attach = function (address) {
153
- return _super.prototype.attach.call(this, address);
154
- };
155
- TestRelay__factory.prototype.connect = function (signer) {
156
- return _super.prototype.connect.call(this, signer);
157
- };
158
- TestRelay__factory.createInterface = function () {
159
- return new ethers_1.utils.Interface(_abi);
160
- };
161
- TestRelay__factory.connect = function (address, signerOrProvider) {
162
- return new ethers_1.Contract(address, _abi, signerOrProvider);
163
- };
164
- TestRelay__factory.bytecode = _bytecode;
165
- TestRelay__factory.abi = _abi;
166
- return TestRelay__factory;
167
- }(ethers_1.ContractFactory));
168
- exports.TestRelay__factory = TestRelay__factory;