// Build transaction payload
import { encode } from 'js-base64'
import { Web3 } from 'web3'
const operatorIds = require('./operatorIds.json');
// Initialize the web3 class
// Loop through the operators and encode them as ABI parameters
const operatorsPublicKeys = operators.map((operator) => web3.eth.abi.encodeParameter('string', encode(operator)));
// Get all the public keys from the shares
const sharePublicKeys = shares.map((share) => share.publicKey);
// Get all the private keys from the shares and encode them as ABI parameters
const shareEncrypted = shares.map((share) => web3.eth.abi.encodeParameter('string', share.privateKey));
// Token amount (liquidation collateral and operational runway balance to be funded)
const tokenAmount = web3.utils.toBN(123456789).toString(); /
// Return all the needed params to build a transaction payload
threshold.validatorPublicKey,
`[${operatorIds.join(',')}]`,