-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(int-on-eos): <- adds test for prev block submissions
- Loading branch information
Showing
6 changed files
with
153 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...dges/int_on_eos/src/test_utils/multi_incremerkle_submission/incremerkle-update-block.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
v2_bridges/int_on_eos/src/test_utils/multi_incremerkle_submission/init-block.json
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
v2_bridges/int_on_eos/src/test_utils/multi_incremerkle_submission/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#![cfg(test)] | ||
use std::fs::read_to_string; | ||
|
||
use common::dictionaries::eos_eth::{ | ||
EosEthTokenDictionary, | ||
EosEthTokenDictionaryEntry, | ||
EosEthTokenDictionaryEntryJson, | ||
}; | ||
|
||
pub fn get_init_block() -> String { | ||
read_to_string("src/test_utils/multi_incremerkle_submission/init-block.json").unwrap() | ||
} | ||
|
||
pub fn get_submission_block() -> String { | ||
read_to_string("src/test_utils/multi_incremerkle_submission/submission-material.json").unwrap() | ||
} | ||
|
||
pub fn get_incremekle_update_block() -> String { | ||
read_to_string("src/test_utils/multi_incremerkle_submission/incremerkle-update-block.json").unwrap() | ||
} | ||
|
||
pub fn get_sample_dictionary() -> EosEthTokenDictionary { | ||
EosEthTokenDictionary::new(vec![EosEthTokenDictionaryEntry::from_json( | ||
&EosEthTokenDictionaryEntryJson { | ||
eth_token_decimals: 18, | ||
eos_token_decimals: 4, | ||
eth_symbol: "PWOMBAT".to_string(), | ||
eos_symbol: "PWOMBAT".to_string(), | ||
eth_address: "0xb048a1f2d0c839002ee7f7bdc2049c2142f264d6".to_string(), | ||
eos_address: "wmbt.ptokens".to_string(), | ||
eth_fee_basis_points: None, | ||
eos_fee_basis_points: None, | ||
accrued_fees: None, | ||
last_withdrawal: None, | ||
}, | ||
) | ||
.unwrap()]) | ||
} |
1 change: 1 addition & 0 deletions
1
v2_bridges/int_on_eos/src/test_utils/multi_incremerkle_submission/submission-material.json
Large diffs are not rendered by default.
Oops, something went wrong.