-
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.
- Loading branch information
Showing
11 changed files
with
2,850 additions
and
2,435 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
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 |
---|---|---|
@@ -1,22 +1,7 @@ | ||
use crate::{Validation, Validations}; | ||
use pallas::{ | ||
applying::babbage::check_ins_not_empty, | ||
ledger::primitives::babbage::{MintedTransactionBody, MintedTx as BabbageMintedTx}, | ||
}; | ||
use crate::Validations; | ||
use pallas::ledger::primitives::babbage::MintedTx as BabbageMintedTx; | ||
|
||
use super::validate::set_description; | ||
|
||
fn validate_babbage_ins_not_empty(mtx: &BabbageMintedTx) -> Validation { | ||
let tx_body: &MintedTransactionBody = &mtx.transaction_body.clone(); | ||
let res = check_ins_not_empty(tx_body); | ||
let description = set_description(&res, "Inputs are not empty".to_string()); | ||
return Validation::new() | ||
.with_name("Non empty inputs".to_string()) | ||
.with_value(res.is_ok()) | ||
.with_description(description); | ||
} | ||
|
||
pub fn validate_babbage(mtx_b: &BabbageMintedTx) -> Validations { | ||
let out = Validations::new().add_new_validation(validate_babbage_ins_not_empty(&mtx_b)); | ||
pub fn validate_babbage(_mtx_b: &BabbageMintedTx) -> Validations { | ||
let out = Validations::new(); | ||
out | ||
} |
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,6 +1,6 @@ | ||
use crate::Validations; | ||
use pallas::ledger::primitives::byron::MintedTxPayload; | ||
pub fn validate_byron(mtxp: &MintedTxPayload) -> Validations { | ||
pub fn validate_byron(_mtxp: &MintedTxPayload) -> Validations { | ||
let out = Validations::new(); | ||
out | ||
} |
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,7 +1,7 @@ | ||
use pallas::ledger::primitives::conway::MintedTx; | ||
|
||
use crate::Validations; | ||
pub fn validate_conway(mtx_c: &MintedTx) -> Validations { | ||
pub fn validate_conway(_mtx_c: &MintedTx) -> Validations { | ||
let out = Validations::new(); | ||
out | ||
} |
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.