UNPKG

@dydxfoundation/governance

Version:
18 lines (17 loc) 708 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getUserKeys = void 0; const lodash_1 = __importDefault(require("lodash")); const hre_1 = __importDefault(require("../hre")); const HARDHAT_MNEMONIC = 'test test test test test test test test test test test junk'; function getUserKeys() { return lodash_1.default.range(1, 10).map(getKey); } exports.getUserKeys = getUserKeys; function getKey(i) { const wallet = hre_1.default.ethers.Wallet.fromMnemonic(HARDHAT_MNEMONIC, `m/44'/60'/0'/0/${i}`); return wallet.privateKey; }