tx introspection

This commit is contained in:
Hardhat Chad
2024-04-30 20:44:00 +00:00
parent aa27fc6f13
commit 38deb27995
7 changed files with 433 additions and 365 deletions

View File

@@ -13,12 +13,12 @@ pub enum OreError {
HashTooEasy = 2,
#[error("The claim amount cannot be greater than the claimable rewards")]
ClaimTooLarge = 3,
#[error("The stake amount cannot exceed u64 size")]
StakeTooLarge = 4,
#[error("The clock time is invalid")]
ClockInvalid = 5,
ClockInvalid = 4,
#[error("Only one hash may be validated per transaction")]
TransactionInvalid = 5,
#[error("The tolerance cannot exceed i64 max value")]
ToleranceInvalid = 6,
ToleranceOverflow = 6,
}
impl From<OreError> for ProgramError {