(outpoint: OutPoint, operator_public_key: PublicKey)
| 8 | }; |
| 9 | |
| 10 | pub fn get_mock_chain_service(outpoint: OutPoint, operator_public_key: PublicKey) -> Chain { |
| 11 | let mock_adaptor_config = MockAdaptorConfig { |
| 12 | peg_out_init_events: Some(vec![PegOutEvent { |
| 13 | source_outpoint: outpoint, |
| 14 | amount: Amount::from_sat(0), |
| 15 | timestamp: 1722328130u32, |
| 16 | withdrawer_chain_address: "0x0000000000000000000000000000000000000000".to_string(), |
| 17 | withdrawer_destination_address: "0x0000000000000000000000000000000000000000" |
| 18 | .to_string(), |
| 19 | withdrawer_public_key_hash: PubkeyHash::from_raw_hash( |
| 20 | Hash::from_str("0e6719ac074b0e3cac76d057643506faa1c266b3").unwrap(), |
| 21 | ), |
| 22 | operator_public_key: operator_public_key, |
| 23 | tx_hash: [0u8; 32].into(), |
| 24 | }]), |
| 25 | peg_out_burnt_events: None, |
| 26 | peg_out_minted_events: None, |
| 27 | }; |
| 28 | let mock_adaptor = MockAdaptor::new(Some(mock_adaptor_config)); |
| 29 | Chain::new(Box::new(mock_adaptor)) |
| 30 | } |
no outgoing calls
no test coverage detected