@venusprotocol/governance-contracts 1.4.0-dev.6 → 1.4.0-dev.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"deploymentUtils.d.ts","sourceRoot":"","sources":["../../../helpers/deploy/deploymentUtils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,eAAO,MAAM,kBAAkB,YAAmB,kBAAkB,KAAG,QAAQ,MAAM,CASpF,CAAC;;AAGF,wBAAwB"}
1
+ {"version":3,"file":"deploymentUtils.d.ts","sourceRoot":"","sources":["../../../helpers/deploy/deploymentUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,eAAO,MAAM,kBAAkB,YAAmB,kBAAkB,KAAG,QAAQ,MAAM,CAWpF,CAAC;;AAGF,wBAAwB"}
@@ -8,23 +8,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  exports.getAcmAdminAccount = void 0;
16
- const mainnet_json_1 = __importDefault(require("@venusprotocol/venus-protocol/networks/mainnet.json"));
17
- const testnet_json_1 = __importDefault(require("@venusprotocol/venus-protocol/networks/testnet.json"));
18
13
  const hardhat_1 = require("hardhat");
19
14
  const getAcmAdminAccount = (network) => __awaiter(void 0, void 0, void 0, function* () {
20
15
  const { deployer } = yield (0, hardhat_1.getNamedAccounts)();
21
- return {
22
- bsctestnet: testnet_json_1.default.Contracts.Timelock,
23
- bscmainnet: mainnet_json_1.default.Contracts.Timelock,
24
- sepolia: "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb",
25
- ethereum: "0x285960C5B22fD66A736C7136967A3eB15e93CC67",
26
- hardhat: deployer,
27
- }[network];
16
+ if (network === "hardhat") {
17
+ return deployer;
18
+ }
19
+ else if (network === "sepolia") {
20
+ return "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
21
+ }
22
+ else if (network === "ethereum") {
23
+ return "0x285960C5B22fD66A736C7136967A3eB15e93CC67";
24
+ }
25
+ const normalTimelock = yield hardhat_1.ethers.getContract("NormalTimeLock");
26
+ return normalTimelock.address;
28
27
  });
29
28
  exports.getAcmAdminAccount = getAcmAdminAccount;
30
29
  exports.default = () => { };
@@ -1 +1 @@
1
- {"version":3,"file":"deploymentUtils.js","sourceRoot":"","sources":["../../../helpers/deploy/deploymentUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uGAAwF;AACxF,uGAAwF;AACxF,qCAA2C;AAIpC,MAAM,kBAAkB,GAAG,CAAO,OAA2B,EAAmB,EAAE;IACvF,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAA,0BAAgB,GAAE,CAAC;IAC9C,OAAO;QACL,UAAU,EAAE,sBAAqB,CAAC,SAAS,CAAC,QAAQ;QACpD,UAAU,EAAE,sBAAqB,CAAC,SAAS,CAAC,QAAQ;QACpD,OAAO,EAAE,4CAA4C;QACrD,QAAQ,EAAE,4CAA4C;QACtD,OAAO,EAAE,QAAQ;KAClB,CAAC,OAAO,CAAC,CAAC;AACb,CAAC,CAAA,CAAC;AATW,QAAA,kBAAkB,sBAS7B;AAGF,kBAAe,GAAG,EAAE,GAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"deploymentUtils.js","sourceRoot":"","sources":["../../../helpers/deploy/deploymentUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmD;AAI5C,MAAM,kBAAkB,GAAG,CAAO,OAA2B,EAAmB,EAAE;IACvF,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAA,0BAAgB,GAAE,CAAC;IAC9C,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,OAAO,QAAQ,CAAC;KACjB;SAAM,IAAI,OAAO,KAAK,SAAS,EAAE;QAChC,OAAO,4CAA4C,CAAC;KACrD;SAAM,IAAI,OAAO,KAAK,UAAU,EAAE;QACjC,OAAO,4CAA4C,CAAC;KACrD;IACD,MAAM,cAAc,GAAG,MAAM,gBAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAClE,OAAO,cAAc,CAAC,OAAO,CAAC;AAChC,CAAC,CAAA,CAAC;AAXW,QAAA,kBAAkB,sBAW7B;AAGF,kBAAe,GAAG,EAAE,GAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@venusprotocol/governance-contracts",
3
3
  "description": "",
4
- "version": "1.4.0-dev.6",
4
+ "version": "1.4.0-dev.7",
5
5
  "author": "",
6
6
  "files": [
7
7
  "artifacts",