UNPKG

@kubiklabs/wasmkit

Version:

Wasmkit is a development environment to compile, deploy, test, run cosmwasm contracts on different networks.

19 lines (18 loc) 564 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createAccounts = void 0; const secretjs_1 = require("secretjs"); async function createAccounts(n) { const accounts = []; for (let i = 0; i < n; ++i) { // Create random address and mnemonic const wallet = new secretjs_1.Wallet(); accounts.push({ name: "account_" + i.toString(), address: wallet.address, mnemonic: wallet.mnemonic }); } return accounts; } exports.createAccounts = createAccounts;