import { getRandomBytes } from '@liskhq/lisk-cryptography' ; export const existingDelegate = { address : '16936666638951007157L' , publicKey : 'c0ebb5ae59f498718ac5038b6b83fd822b4d1def918c66c05f1709a418a5cf70' , passphrase : 'slight wire team gravity finger soul reopen anchor evolve genius charge sing' , balance : '0' , delegateName : 'genesis_100' , } ; export const genesis = { address : '5059876081639179984L' , publicKey : '0fe9a3f1a21b5530f27f87a414b549e79a940bf24fdf2b2f05e7f22aeeecc86a' , passphrase : 'peanut hundred pen hawk invite exclude brain chunk gadget wait wrong ready' , balance : '10000000000000000' , encryptedPassphrase : 'iterations=10&cipherText=6541c04d7a46eacd666c07fbf030fef32c5db324466e3422e59818317ac5d15cfffb80c5f1e2589eaa6da4f8d611a94cba92eee86722fc0a4015a37cff43a5a699601121fbfec11ea022&iv=141edfe6da3a9917a42004be&salt=f523bba8316c45246c6ffa848b806188&tag=4ffb5c753d4a1dc96364c4a54865521a&version=1' , password : 'elephant tree paris dragon chair galaxy' , } ; export const createFakeDefaultAccount = ( account ? ) => ( { address : account ?. address ?? getRandomBytes ( 20 ) , token : { balance : account ?. token ?. balance ?? BigInt ( 0 ) , } , sequence : { nonce : account ?. sequence ?. nonce ?? BigInt ( 0 ) , } , keys : { mandatoryKeys : account ?. keys ?. mandatoryKeys ?? [ ] , optionalKeys : account ?. keys ?. optionalKeys ?? [ ] , numberOfSignatures : account ?. keys ?. numberOfSignatures ?? 0 , } , dpos : { delegate : { username : account ?. dpos ?. delegate ?. username ?? '' , pomHeights : account ?. dpos ?. delegate ?. pomHeights ?? [ ] , consecutiveMissedBlocks : account ?. dpos ?. delegate ?. consecutiveMissedBlocks ?? 0 , lastForgedHeight : account ?. dpos ?. delegate ?. lastForgedHeight ?? 0 , isBanned : account ?. dpos ?. delegate ?. isBanned ?? false , totalVotesReceived : account ?. dpos ?. delegate ?. totalVotesReceived ?? BigInt ( 0 ) , } , sentVotes : account ?. dpos ?. sentVotes ?? [ ] , unlocking : account ?. dpos ?. unlocking ?? [ ] , } , } ) ;