@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
20 lines (19 loc) • 469 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNodeKey = getNodeKey;
function getNodeKey(node, useStash = true) {
const { sr_stash, sr_account } = node.accounts;
const address = useStash ? sr_stash.address : sr_account.address;
const key = [
address,
address,
{
aura: address,
pools: address,
},
];
return key;
}
exports.default = {
getNodeKey,
};