@keep-network/tbtc-v2 1.7.0 → 1.8.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 (213) 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 +22 -22
  11. package/artifacts/BridgeGovernanceParameters.json +10 -10
  12. package/artifacts/Deposit.json +12 -12
  13. package/artifacts/DepositSweep.json +12 -12
  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 +12 -12
  19. package/artifacts/LightRelay.json +38 -38
  20. package/artifacts/LightRelayMaintainerProxy.json +31 -31
  21. package/artifacts/MaintainerProxy.json +48 -48
  22. package/artifacts/MovingFunds.json +12 -12
  23. package/artifacts/NuCypherToken.json +711 -0
  24. package/artifacts/RandomBeacon.json +3271 -0
  25. package/artifacts/RandomBeaconChaosnet.json +252 -0
  26. package/artifacts/RandomBeaconGovernance.json +3499 -0
  27. package/artifacts/Redemption.json +12 -12
  28. package/artifacts/RedemptionWatchtower.json +39 -39
  29. package/artifacts/ReimbursementPool.json +509 -0
  30. package/artifacts/T.json +1148 -0
  31. package/artifacts/TBTC.json +37 -36
  32. package/artifacts/TBTCToken.json +738 -0
  33. package/artifacts/TBTCVault.json +47 -47
  34. package/artifacts/Timelock.json +148 -148
  35. package/artifacts/TokenStaking.json +2117 -0
  36. package/artifacts/TokenholderGovernor.json +1795 -0
  37. package/artifacts/TokenholderTimelock.json +1058 -0
  38. package/artifacts/VendingMachine.json +35 -34
  39. package/artifacts/VendingMachineNuCypher.json +400 -0
  40. package/artifacts/VendingMachineV2.json +21 -21
  41. package/artifacts/VendingMachineV3.json +21 -21
  42. package/artifacts/WalletProposalValidator.json +12 -12
  43. package/artifacts/WalletRegistry.json +1962 -0
  44. package/artifacts/WalletRegistryGovernance.json +2863 -0
  45. package/artifacts/Wallets.json +12 -12
  46. package/artifacts/solcInputs/{be146ce112252bdda3a03de3614fbbf1.json → fe0eebcebee1dc423b54e929e5519304.json} +31 -7
  47. package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
  48. package/build/contracts/Timelock.sol/Timelock.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/IRedemptionWatchtower.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/RedemptionWatchtower.sol/RedemptionWatchtower.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/WalletProposalValidator.sol/WalletProposalValidator.dbg.json +1 -1
  70. package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
  71. package/build/contracts/integrator/AbstractTBTCDepositor.sol/AbstractTBTCDepositor.dbg.json +1 -1
  72. package/build/contracts/integrator/IBridge.sol/IBridge.dbg.json +1 -1
  73. package/build/contracts/integrator/IBridge.sol/IBridgeTypes.dbg.json +1 -1
  74. package/build/contracts/integrator/ITBTCVault.sol/ITBTCVault.dbg.json +1 -1
  75. package/build/contracts/l2/L1BitcoinDepositor.sol/L1BitcoinDepositor.dbg.json +1 -1
  76. package/build/contracts/l2/L1BitcoinDepositor.sol/L1BitcoinDepositor.json +41 -2
  77. package/build/contracts/l2/L2BitcoinDepositor.sol/IL2WormholeGateway.dbg.json +1 -1
  78. package/build/contracts/l2/L2BitcoinDepositor.sol/L2BitcoinDepositor.dbg.json +1 -1
  79. package/build/contracts/l2/L2TBTC.sol/L2TBTC.dbg.json +1 -1
  80. package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +1 -1
  81. package/build/contracts/l2/Wormhole.sol/IWormhole.dbg.json +1 -1
  82. package/build/contracts/l2/Wormhole.sol/IWormholeReceiver.dbg.json +1 -1
  83. package/build/contracts/l2/Wormhole.sol/IWormholeRelayer.dbg.json +1 -1
  84. package/build/contracts/l2/Wormhole.sol/IWormholeTokenBridge.dbg.json +1 -1
  85. package/build/contracts/l2/Wormhole.sol/WormholeTypes.dbg.json +1 -1
  86. package/build/contracts/l2/Wormhole.sol/WormholeUtils.dbg.json +1 -1
  87. package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
  88. package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
  89. package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
  90. package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
  91. package/build/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.dbg.json +1 -1
  92. package/build/contracts/test/BankStub.sol/BankStub.dbg.json +1 -1
  93. package/build/contracts/test/BridgeStub.sol/BridgeStub.dbg.json +1 -1
  94. package/build/contracts/test/HeartbeatStub.sol/HeartbeatStub.dbg.json +1 -1
  95. package/build/contracts/test/LightRelayStub.sol/LightRelayStub.dbg.json +1 -1
  96. package/build/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.dbg.json +1 -1
  97. package/build/contracts/test/SepoliaLightRelay.sol/SepoliaLightRelay.dbg.json +1 -1
  98. package/build/contracts/test/SystemTestRelay.sol/SystemTestRelay.dbg.json +1 -1
  99. package/build/contracts/test/TestBitcoinTx.sol/TestBitcoinTx.dbg.json +1 -1
  100. package/build/contracts/test/TestERC20.sol/TestERC20.dbg.json +1 -1
  101. package/build/contracts/test/TestERC721.sol/TestERC721.dbg.json +1 -1
  102. package/build/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.dbg.json +1 -1
  103. package/build/contracts/test/TestTBTCDepositor.sol/MockBridge.dbg.json +1 -1
  104. package/build/contracts/test/TestTBTCDepositor.sol/MockTBTCVault.dbg.json +1 -1
  105. package/build/contracts/test/TestTBTCDepositor.sol/TestTBTCDepositor.dbg.json +1 -1
  106. package/build/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.dbg.json +1 -1
  107. package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
  108. package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
  109. package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
  110. package/build/contracts/vault/TBTCOptimisticMinting.sol/TBTCOptimisticMinting.dbg.json +1 -1
  111. package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
  112. package/contracts/l2/L1BitcoinDepositor.sol +31 -0
  113. package/export/artifacts/@keep-network/ecdsa/contracts/WalletRegistry.sol/WalletRegistry.json +4999 -4814
  114. package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +6 -6
  115. package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +6 -6
  116. package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +6 -6
  117. package/export/artifacts/contracts/l2/L1BitcoinDepositor.sol/L1BitcoinDepositor.json +4288 -4028
  118. package/export/artifacts/contracts/l2/L2BitcoinDepositor.sol/L2BitcoinDepositor.json +33 -33
  119. package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +40 -40
  120. package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +51 -51
  121. package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +88 -88
  122. package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +57 -57
  123. package/export/artifacts/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.json +31 -31
  124. package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +2 -2
  125. package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +30 -30
  126. package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +2 -2
  127. package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +59 -59
  128. package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +7 -7
  129. package/export/artifacts/contracts/test/SepoliaLightRelay.sol/SepoliaLightRelay.json +59 -59
  130. package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +14 -14
  131. package/export/artifacts/contracts/test/TestBitcoinTx.sol/TestBitcoinTx.json +5 -5
  132. package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +6 -6
  133. package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +8 -8
  134. package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +2 -2
  135. package/export/artifacts/contracts/test/TestTBTCDepositor.sol/MockBridge.json +18 -18
  136. package/export/artifacts/contracts/test/TestTBTCDepositor.sol/MockTBTCVault.json +20 -20
  137. package/export/artifacts/contracts/test/TestTBTCDepositor.sol/TestTBTCDepositor.json +10 -10
  138. package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +37 -37
  139. package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2 -2
  140. package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +11 -11
  141. package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +135 -135
  142. package/export/typechain/factories/EcdsaAuthorization__factory.js +1 -1
  143. package/export/typechain/factories/IStaking__factory.js +24 -103
  144. package/export/typechain/factories/L1BitcoinDepositor__factory.js +40 -1
  145. package/export/typechain/factories/WalletRegistry__factory.js +1 -1
  146. package/package.json +4 -4
  147. package/artifacts/solcInputs/7c1f8f1dbded4c787d87a982d1fc8349.json +0 -410
  148. package/artifacts/solcInputs/7cc3eda3cb3ff2522d18b5e7b31ea228.json +0 -102
  149. package/artifacts/solcInputs/802132f7da69a8a4226cb9424480847b.json +0 -218
  150. package/artifacts/solcInputs/887fad6b16575ba42183543c324eeb0e.json +0 -335
  151. package/artifacts/solcInputs/98e272e2fbf178ec895387b6c503f9de.json +0 -68
  152. package/artifacts/solcInputs/b0025f1f7efe4824592ac0c9793776c3.json +0 -392
  153. package/artifacts/solcInputs/b7c5f3550cc22e16e6b6ea9582ccbee3.json +0 -341
  154. package/artifacts/solcInputs/d71d4b4434e6669852eaf643ebd2a7bc.json +0 -209
  155. package/artifacts/solcInputs/fccb130292c8c7cc958ab4fa31a3e180.json +0 -187
  156. package/export/deploy/00_resolve_relay.js +0 -83
  157. package/export/deploy/01_deploy_tbtc_v2_token.js +0 -70
  158. package/export/deploy/02_deploy_vending_machine.js +0 -84
  159. package/export/deploy/03_transfer_vending_machine_roles.js +0 -69
  160. package/export/deploy/04_deploy_bank.js +0 -73
  161. package/export/deploy/05_deploy_bridge.js +0 -178
  162. package/export/deploy/06_deploy_tbtc_vault.js +0 -80
  163. package/export/deploy/07_deploy_bridge_governance.js +0 -87
  164. package/export/deploy/08_deploy_maintainer_proxy.js +0 -80
  165. package/export/deploy/09_bank_update_bridge.js +0 -63
  166. package/export/deploy/10_authorize_spv_maintainer_in_bridge.js +0 -61
  167. package/export/deploy/11_transfer_bank_ownership.js +0 -60
  168. package/export/deploy/12_transfer_bridge_governance.js +0 -63
  169. package/export/deploy/13_transfer_bridge_governance_ownership.js +0 -60
  170. package/export/deploy/14_transfer_tbtc_vault_ownership.js +0 -60
  171. package/export/deploy/15_transfer_maintainer_proxy_ownership.js +0 -60
  172. package/export/deploy/16_initialize_wallet_owner.js +0 -63
  173. package/export/deploy/16_transfer_proxy_admin_ownership.js +0 -73
  174. package/export/deploy/17_authorize_maintainer_proxy_in_bridge.js +0 -63
  175. package/export/deploy/17_transfer_proxy_admin_ownership.js +0 -73
  176. package/export/deploy/18_authorize_maintainer_proxy_in_bridge.js +0 -63
  177. package/export/deploy/18_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
  178. package/export/deploy/19_authorize_bridge_in_reimbursement_pool.js +0 -63
  179. package/export/deploy/19_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
  180. package/export/deploy/20_authorize_bridge_in_reimbursement_pool.js +0 -63
  181. package/export/deploy/20_deploy_proxy_admin_with_deputy.js +0 -80
  182. package/export/deploy/21_transfer_reimbursement_pool_ownership.js +0 -60
  183. package/export/deploy/22_deploy_proxy_admin_with_deputy.js +0 -80
  184. package/export/deploy/24_transfer_maintainer_proxy_ownership.js +0 -60
  185. package/export/deploy/25_transfer_proxy_admin_ownership.js +0 -73
  186. package/export/deploy/26_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -70
  187. package/export/deploy/27_authorize_bridge_in_reimbursement_pool.js +0 -70
  188. package/export/deploy/28_deploy_proxy_admin_with_deputy.js +0 -80
  189. package/export/deploy/34_deploy_wallet_coordinator.js +0 -115
  190. package/export/deploy/35_add_coordinator_address.js +0 -60
  191. package/export/deploy/35_transfer_wallet_coordinator_ownership.js +0 -60
  192. package/export/deploy/36_deploy_light_relay_maintainer_proxy.js +0 -86
  193. package/export/deploy/36_transfer_wallet_coordinator_ownership.js +0 -60
  194. package/export/deploy/37_authorize_maintainer_in_light_relay_maintainer_proxy.js +0 -65
  195. package/export/deploy/37_deploy_light_relay_maintainer_proxy.js +0 -86
  196. package/export/deploy/37_transfer_light_relay_maintainer_proxy_ownership.js +0 -60
  197. package/export/deploy/38_authorize_light_relay_maintainer_proxy_in_reimbursement_pool.js +0 -70
  198. package/export/deploy/38_authorize_maintainer_in_light_relay_maintainer_proxy.js +0 -65
  199. package/export/deploy/38_transfer_light_relay_maintainer_proxy_ownership.js +0 -60
  200. package/export/deploy/39_authorize_light_relay_maintainer_proxy_in_light_relay.js +0 -63
  201. package/export/deploy/39_authorize_light_relay_maintainer_proxy_in_reimbursement_pool.js +0 -70
  202. package/export/deploy/39_transfer_light_relay_maintainer_proxy_ownership.js +0 -60
  203. package/export/deploy/40_authorize_light_relay_maintainer_proxy_in_light_relay.js +0 -66
  204. package/export/deploy/40_authorize_light_relay_maintainer_proxy_in_reimbursement_pool.js +0 -70
  205. package/export/deploy/41_authorize_light_relay_maintainer_proxy_in_light_relay.js +0 -66
  206. package/export/typechain/GoerliLightRelay.js +0 -2
  207. package/export/typechain/RelayStub.js +0 -2
  208. package/export/typechain/TestRelay.js +0 -2
  209. package/export/typechain/WalletCoordinator.js +0 -2
  210. package/export/typechain/factories/GoerliLightRelay__factory.js +0 -535
  211. package/export/typechain/factories/RelayStub__factory.js +0 -546
  212. package/export/typechain/factories/TestRelay__factory.js +0 -168
  213. package/export/typechain/factories/WalletCoordinator__factory.js +0 -1121
@@ -1,115 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __read = (this && this.__read) || function (o, n) {
39
- var m = typeof Symbol === "function" && o[Symbol.iterator];
40
- if (!m) return o;
41
- var i = m.call(o), r, ar = [], e;
42
- try {
43
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
44
- }
45
- catch (error) { e = { error: error }; }
46
- finally {
47
- try {
48
- if (r && !r.done && (m = i["return"])) m.call(i);
49
- }
50
- finally { if (e) throw e.error; }
51
- }
52
- return ar;
53
- };
54
- Object.defineProperty(exports, "__esModule", { value: true });
55
- var func = function (hre) {
56
- return __awaiter(this, void 0, void 0, function () {
57
- var deployments, ethers, getNamedAccounts, helpers, deployer, Bridge, _a, walletCoordinator, proxyDeployment, _b, _c, _d;
58
- var _e, _f;
59
- return __generator(this, function (_g) {
60
- switch (_g.label) {
61
- case 0:
62
- deployments = hre.deployments, ethers = hre.ethers, getNamedAccounts = hre.getNamedAccounts, helpers = hre.helpers;
63
- return [4 /*yield*/, getNamedAccounts()];
64
- case 1:
65
- deployer = (_g.sent()).deployer;
66
- return [4 /*yield*/, deployments.get("Bridge")];
67
- case 2:
68
- Bridge = _g.sent();
69
- _c = (_b = helpers.upgrades).deployProxy;
70
- _d = ["WalletCoordinator"];
71
- _e = {
72
- contractName: "WalletCoordinator",
73
- initializerArgs: [Bridge.address]
74
- };
75
- _f = {};
76
- return [4 /*yield*/, ethers.getSigner(deployer)];
77
- case 3: return [4 /*yield*/, _c.apply(_b, _d.concat([(_e.factoryOpts = (_f.signer = _g.sent(),
78
- _f),
79
- _e.proxyOpts = {
80
- kind: "transparent",
81
- },
82
- _e)]))];
83
- case 4:
84
- _a = __read.apply(void 0, [_g.sent(), 2]), walletCoordinator = _a[0], proxyDeployment = _a[1];
85
- if (!hre.network.tags.etherscan) return [3 /*break*/, 6];
86
- // We use `verify` instead of `verify:verify` as the `verify` task is defined
87
- // in "@openzeppelin/hardhat-upgrades" to perform Etherscan verification
88
- // of Proxy and Implementation contracts.
89
- return [4 /*yield*/, hre.run("verify", {
90
- address: proxyDeployment.address,
91
- constructorArgsParams: proxyDeployment.args,
92
- })];
93
- case 5:
94
- // We use `verify` instead of `verify:verify` as the `verify` task is defined
95
- // in "@openzeppelin/hardhat-upgrades" to perform Etherscan verification
96
- // of Proxy and Implementation contracts.
97
- _g.sent();
98
- _g.label = 6;
99
- case 6:
100
- if (!hre.network.tags.tenderly) return [3 /*break*/, 8];
101
- return [4 /*yield*/, hre.tenderly.verify({
102
- name: "WalletCoordinator",
103
- address: walletCoordinator.address,
104
- })];
105
- case 7:
106
- _g.sent();
107
- _g.label = 8;
108
- case 8: return [2 /*return*/];
109
- }
110
- });
111
- });
112
- };
113
- exports.default = func;
114
- func.tags = ["WalletCoordinator"];
115
- func.dependencies = ["Bridge"];
@@ -1,60 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var func = function (hre) {
40
- return __awaiter(this, void 0, void 0, function () {
41
- var getNamedAccounts, deployments, execute, _a, deployer, coordinator;
42
- return __generator(this, function (_b) {
43
- switch (_b.label) {
44
- case 0:
45
- getNamedAccounts = hre.getNamedAccounts, deployments = hre.deployments;
46
- execute = deployments.execute;
47
- return [4 /*yield*/, getNamedAccounts()];
48
- case 1:
49
- _a = _b.sent(), deployer = _a.deployer, coordinator = _a.coordinator;
50
- return [4 /*yield*/, execute("WalletCoordinator", { from: deployer, log: true, waitConfirmations: 1 }, "addCoordinator", coordinator)];
51
- case 2:
52
- _b.sent();
53
- return [2 /*return*/];
54
- }
55
- });
56
- });
57
- };
58
- exports.default = func;
59
- func.tags = ["AddCoordinatorAddress"];
60
- func.dependencies = ["WalletCoordinator"];
@@ -1,60 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var func = function (hre) {
40
- return __awaiter(this, void 0, void 0, function () {
41
- var getNamedAccounts, helpers, _a, deployer, governance;
42
- return __generator(this, function (_b) {
43
- switch (_b.label) {
44
- case 0:
45
- getNamedAccounts = hre.getNamedAccounts, helpers = hre.helpers;
46
- return [4 /*yield*/, getNamedAccounts()];
47
- case 1:
48
- _a = _b.sent(), deployer = _a.deployer, governance = _a.governance;
49
- return [4 /*yield*/, helpers.ownable.transferOwnership("WalletCoordinator", governance, deployer)];
50
- case 2:
51
- _b.sent();
52
- return [2 /*return*/];
53
- }
54
- });
55
- });
56
- };
57
- exports.default = func;
58
- func.tags = ["TransferWalletCoordinatorOwnership"];
59
- func.dependencies = ["WalletCoordinator"];
60
- func.runAtTheEnd = true;
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var func = function (hre) {
40
- return __awaiter(this, void 0, void 0, function () {
41
- var deployments, getNamedAccounts, helpers, deploy, deployer, ReimbursementPool, LightRelay, lightRelayMaintainerProxy;
42
- return __generator(this, function (_a) {
43
- switch (_a.label) {
44
- case 0:
45
- deployments = hre.deployments, getNamedAccounts = hre.getNamedAccounts, helpers = hre.helpers;
46
- deploy = deployments.deploy;
47
- return [4 /*yield*/, getNamedAccounts()];
48
- case 1:
49
- deployer = (_a.sent()).deployer;
50
- return [4 /*yield*/, deployments.get("ReimbursementPool")];
51
- case 2:
52
- ReimbursementPool = _a.sent();
53
- return [4 /*yield*/, deployments.get("LightRelay")];
54
- case 3:
55
- LightRelay = _a.sent();
56
- return [4 /*yield*/, deploy("LightRelayMaintainerProxy", {
57
- contract: "LightRelayMaintainerProxy",
58
- from: deployer,
59
- args: [LightRelay.address, ReimbursementPool.address],
60
- log: true,
61
- waitConfirmations: 1,
62
- })];
63
- case 4:
64
- lightRelayMaintainerProxy = _a.sent();
65
- if (!hre.network.tags.etherscan) return [3 /*break*/, 6];
66
- return [4 /*yield*/, helpers.etherscan.verify(lightRelayMaintainerProxy)];
67
- case 5:
68
- _a.sent();
69
- _a.label = 6;
70
- case 6:
71
- if (!hre.network.tags.tenderly) return [3 /*break*/, 8];
72
- return [4 /*yield*/, hre.tenderly.verify({
73
- name: "LightRelayMaintainerProxy",
74
- address: lightRelayMaintainerProxy.address,
75
- })];
76
- case 7:
77
- _a.sent();
78
- _a.label = 8;
79
- case 8: return [2 /*return*/];
80
- }
81
- });
82
- });
83
- };
84
- exports.default = func;
85
- func.tags = ["LightRelayMaintainerProxy"];
86
- func.dependencies = ["LightRelay", "ReimbursementPool"];
@@ -1,60 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var func = function (hre) {
40
- return __awaiter(this, void 0, void 0, function () {
41
- var getNamedAccounts, helpers, _a, deployer, governance;
42
- return __generator(this, function (_b) {
43
- switch (_b.label) {
44
- case 0:
45
- getNamedAccounts = hre.getNamedAccounts, helpers = hre.helpers;
46
- return [4 /*yield*/, getNamedAccounts()];
47
- case 1:
48
- _a = _b.sent(), deployer = _a.deployer, governance = _a.governance;
49
- return [4 /*yield*/, helpers.ownable.transferOwnership("WalletCoordinator", governance, deployer)];
50
- case 2:
51
- _b.sent();
52
- return [2 /*return*/];
53
- }
54
- });
55
- });
56
- };
57
- exports.default = func;
58
- func.tags = ["TransferWalletCoordinatorOwnership"];
59
- func.dependencies = ["AddCoordinatorAddress"];
60
- func.runAtTheEnd = true;
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var hardhat_1 = require("hardhat");
40
- var func = function (hre) {
41
- return __awaiter(this, void 0, void 0, function () {
42
- var getNamedAccounts, deployments, execute, deployer, relayMaintainerMainnet;
43
- return __generator(this, function (_a) {
44
- switch (_a.label) {
45
- case 0:
46
- getNamedAccounts = hre.getNamedAccounts, deployments = hre.deployments;
47
- execute = deployments.execute;
48
- return [4 /*yield*/, getNamedAccounts()];
49
- case 1:
50
- deployer = (_a.sent()).deployer;
51
- relayMaintainerMainnet = hardhat_1.ethers.utils.getAddress("0xCb6Ed7E78d27FDff28127F9CbD61d861F09a2324");
52
- return [4 /*yield*/, execute("LightRelayMaintainerProxy", { from: deployer, log: true, waitConfirmations: 1 }, "authorize", relayMaintainerMainnet)];
53
- case 2:
54
- _a.sent();
55
- return [2 /*return*/];
56
- }
57
- });
58
- });
59
- };
60
- exports.default = func;
61
- func.tags = ["LightRelayMaintainerProxyAuthorizeMaintainer"];
62
- func.dependencies = ["LightRelayMaintainerProxy"];
63
- func.skip = function (hre) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
64
- return [2 /*return*/, hre.network.name !== "mainnet"];
65
- }); }); };
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var func = function (hre) {
40
- return __awaiter(this, void 0, void 0, function () {
41
- var deployments, getNamedAccounts, helpers, deploy, deployer, ReimbursementPool, LightRelay, lightRelayMaintainerProxy;
42
- return __generator(this, function (_a) {
43
- switch (_a.label) {
44
- case 0:
45
- deployments = hre.deployments, getNamedAccounts = hre.getNamedAccounts, helpers = hre.helpers;
46
- deploy = deployments.deploy;
47
- return [4 /*yield*/, getNamedAccounts()];
48
- case 1:
49
- deployer = (_a.sent()).deployer;
50
- return [4 /*yield*/, deployments.get("ReimbursementPool")];
51
- case 2:
52
- ReimbursementPool = _a.sent();
53
- return [4 /*yield*/, deployments.get("LightRelay")];
54
- case 3:
55
- LightRelay = _a.sent();
56
- return [4 /*yield*/, deploy("LightRelayMaintainerProxy", {
57
- contract: "LightRelayMaintainerProxy",
58
- from: deployer,
59
- args: [LightRelay.address, ReimbursementPool.address],
60
- log: true,
61
- waitConfirmations: 1,
62
- })];
63
- case 4:
64
- lightRelayMaintainerProxy = _a.sent();
65
- if (!hre.network.tags.etherscan) return [3 /*break*/, 6];
66
- return [4 /*yield*/, helpers.etherscan.verify(lightRelayMaintainerProxy)];
67
- case 5:
68
- _a.sent();
69
- _a.label = 6;
70
- case 6:
71
- if (!hre.network.tags.tenderly) return [3 /*break*/, 8];
72
- return [4 /*yield*/, hre.tenderly.verify({
73
- name: "LightRelayMaintainerProxy",
74
- address: lightRelayMaintainerProxy.address,
75
- })];
76
- case 7:
77
- _a.sent();
78
- _a.label = 8;
79
- case 8: return [2 /*return*/];
80
- }
81
- });
82
- });
83
- };
84
- exports.default = func;
85
- func.tags = ["LightRelayMaintainerProxy"];
86
- func.dependencies = ["LightRelay", "ReimbursementPool"];
@@ -1,60 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var func = function (hre) {
40
- return __awaiter(this, void 0, void 0, function () {
41
- var getNamedAccounts, helpers, _a, deployer, governance;
42
- return __generator(this, function (_b) {
43
- switch (_b.label) {
44
- case 0:
45
- getNamedAccounts = hre.getNamedAccounts, helpers = hre.helpers;
46
- return [4 /*yield*/, getNamedAccounts()];
47
- case 1:
48
- _a = _b.sent(), deployer = _a.deployer, governance = _a.governance;
49
- return [4 /*yield*/, helpers.ownable.transferOwnership("LightRelayMaintainerProxy", governance, deployer)];
50
- case 2:
51
- _b.sent();
52
- return [2 /*return*/];
53
- }
54
- });
55
- });
56
- };
57
- exports.default = func;
58
- func.tags = ["TransferLightRelayMaintainerProxyOwnership"];
59
- func.dependencies = ["LightRelayMaintainerProxy"];
60
- func.runAtTheEnd = true;