pub fn output_signed_failure_notifications() {
        let t = async {
            let signer: ethers::signers::LocalWallet =
                "1111111111111111111111111111111111111111111111111111111111111111"
                    .parse()
                    .unwrap();

            let updater: ethers::signers::LocalWallet =
                "2222222222222222222222222222222222222222222222222222222222222222"
                    .parse()
                    .unwrap();

            // `home_domain` MUST BE 2000 to match home_domain domain of
            // XAppConnectionManager test suite
            let signed_failure = FailureNotification {
                home_domain: 2000,
                updater: updater.address().into(),
            }
            .sign_with(&signer)
            .await
            .expect("!sign_with");

            let signed_json = json!({
                "domain": signed_failure.notification.home_domain,
                "updater": signed_failure.notification.updater.as_ethereum_address(),
                "signature": signed_failure.signature,
                "signer": signer.address()
            });

            let json = json!(vec!(signed_json)).to_string();

            let mut file = OpenOptions::new()
                .write(true)
                .create(true)
                .truncate(true)
                .open(find_vector("signedFailure.json"))
                .expect("Failed to open/create file");

            file.write_all(json.as_bytes())
                .expect("Failed to write to file");
        };

        tokio::runtime::Builder::new_current_thread()
            .enable_all()
            .build()
            .unwrap()
            .block_on(t)
    }
/// Outputs signed update test cases in /vector/signedFailure.json
Outputs signed update test cases in /vector/signedFailure.json
Outputs signed update test cases in / vector / signedFailure . json
pub fn output_signed_failure_notifications() {
        let t = async {
            let signer: ethers::signers::LocalWallet =
                "1111111111111111111111111111111111111111111111111111111111111111"
                    .parse()
                    .unwrap();
            let updater: ethers::signers::LocalWallet =
                "2222222222222222222222222222222222222222222222222222222222222222"
                    .parse()
                    .unwrap();
            // `home_domain` MUST BE 2000 to match home_domain domain of
            // XAppConnectionManager test suite
            let signed_failure = FailureNotification {
                home_domain: 2000,
                updater: updater.address().into(),
            }
            .sign_with(&signer)
            .await
            .expect("!sign_with");
            let signed_json = json!({
                "domain": signed_failure.notification.home_domain,
                "updater": signed_failure.notification.updater.as_ethereum_address(),
                "signature": signed_failure.signature,
                "signer": signer.address()
            });
            let json = json!(vec!(signed_json)).to_string();
            let mut file = OpenOptions::new()
                .write(true)
                .create(true)
                .truncate(true)
                .open(find_vector("signedFailure.json"))
                .expect("Failed to open/create file");
            file.write_all(json.as_bytes())
                .expect("Failed to write to file");
        };
        tokio::runtime::Builder::new_current_thread()
            .enable_all()
            .build()
            .unwrap()
            .block_on(t)
    }
pub fn output_signed_failure_notifications ( ) { let t = async { let signer : ethers :: signers :: LocalWallet = " " . parse ( ) . unwrap ( ) ; let updater : ethers :: signers :: LocalWallet = " " . parse ( ) . unwrap ( ) ; // `home_domain` MUST BE 2000 to match home_domain domain of // XAppConnectionManager test suite let signed_failure = FailureNotification { home_domain : 2000 , updater : updater . address ( ) . into ( ) , } . sign_with ( & signer ) . await . expect ( " " ) ; let signed_json = json ! ( { " " signed_failure notification home_domain " " signed_failure notification updater as_ethereum_address ( ) " " signed_failure signature " " signer address ( ) } ) ; let json = json ! ( vec ( signed_json ) ) . to_string ( ) ; let mut file = OpenOptions :: new ( ) . write ( true ) . create ( true ) . truncate ( true ) . open ( find_vector ( " " ) ) . expect ( " " ) ; file . write_all ( json . as_bytes ( ) ) . expect ( " " ) ; } ; tokio :: runtime :: Builder :: new_current_thread ( ) . enable_all ( ) . build ( ) . unwrap ( ) . block_on ( t ) }
Outputs signed update test cases in /vector/signedFailure.json
Outputs signed update test cases in / vector / signedFailure . json