import { ethers } from 'hardhat' ; import { DeployTestRelay , Genesis } from './contracts' ; const testnet = { header : '0x0000002026f83590aa5ae1f3ec4f7b87ee2ef78ea27ca62130b96dc5e1000000000000008d6cbb517c561f53efa451193c692f5d863475be0811f8ec7fa038e5206814af5bb1855fa494021afab33009' , height : 1862781 } ; async function main ( genesis ) { const signers = await ethers . getSigners ( ) ; const contract = await DeployTestRelay ( signers [ 0 ] , genesis ) ; console . log ( `Genesis height: ${ genesis . height }` ) ; console . log ( `Contract address: ${ contract . address }` ) ; } main ( testnet ) . then ( ( ) => process . exit ( 0 ) ) . catch ( ( error ) => { console . error ( error ) ; process . exit ( 1 ) ; } ) ;