-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: new structure * fix: codecov rust
- Loading branch information
Showing
8 changed files
with
148 additions
and
169 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
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,29 @@ | ||
#[derive(Debug, Clone)] | ||
pub struct InputRuneBalance { | ||
/// Previous owner of this balance. If this is `None`, it means the balance was just minted or premined. | ||
pub address: Option<String>, | ||
/// How much balance was input to this transaction. | ||
pub amount: u128, | ||
} | ||
|
||
#[cfg(test)] | ||
impl InputRuneBalance { | ||
pub fn dummy() -> Self { | ||
InputRuneBalance { | ||
address: Some( | ||
"bc1p8zxlhgdsq6dmkzk4ammzcx55c3hfrg69ftx0gzlnfwq0wh38prds0nzqwf".to_string(), | ||
), | ||
amount: 1000, | ||
} | ||
} | ||
|
||
pub fn amount(&mut self, amount: u128) -> &mut Self { | ||
self.amount = amount; | ||
return self; | ||
} | ||
|
||
pub fn address(&mut self, address: Option<String>) -> &mut Self { | ||
self.address = address; | ||
return self; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
pub mod db_cache; | ||
pub mod index_cache; | ||
pub mod input_rune_balance; | ||
pub mod transaction_cache; | ||
pub mod transaction_location; | ||
pub mod utils; |
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
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
Oops, something went wrong.