UNPKG

@nodeset/contracts

Version:

Protocol for accessing NodeSet's Constellation Ethereum staking network

16 lines (11 loc) 548 B
import { RocketNodeManager } from '../_utils/artifacts'; // Register a node export async function setSmoothingPoolRegistrationState(state, txOptions) { // Load contracts const rocketNodeManager = await RocketNodeManager.deployed(); // Register await rocketNodeManager.setSmoothingPoolRegistrationState(state, txOptions); // Check details const newState = await rocketNodeManager.getSmoothingPoolRegistrationState(txOptions.from); assert.strictEqual(newState, state, 'Incorrect smoothing pool registration state'); }