@zombienet/orchestrator
Version:
ZombieNet aim to be a testing framework for substrate based blockchains, providing a simple cli tool that allow users to spawn and test ephemeral Substrate based networks
23 lines (22 loc) • 638 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNodeKey = getNodeKey;
function getNodeKey(node, useStash = true) {
const { sr_stash, sr_account, ed_account } = node.accounts;
const address = useStash ? sr_stash.address : sr_account.address;
const key = [
address,
address,
{
aura: sr_account.address,
grandpa: ed_account.address,
authority_discovery: sr_account.address,
im_online: sr_account.address,
avn: sr_account.address,
},
];
return key;
}
exports.default = {
getNodeKey,
};