This commit is contained in:
2026-05-01 01:30:02 +08:00
parent aabad6407f
commit 2e9d0f4640
92 changed files with 4548 additions and 248 deletions

View File

@@ -262,6 +262,7 @@ pub enum RuntimeProfileWalletLedgerSourceType {
AssetOperationConsume,
AssetOperationRefund,
RedeemCodeReward,
PuzzleAuthorIncentiveClaim,
}
#[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))]
@@ -1709,6 +1710,7 @@ impl RuntimeProfileWalletLedgerSourceType {
Self::AssetOperationConsume => "asset_operation_consume",
Self::AssetOperationRefund => "asset_operation_refund",
Self::RedeemCodeReward => "redeem_code_reward",
Self::PuzzleAuthorIncentiveClaim => "puzzle_author_incentive_claim",
}
}
}
@@ -2233,6 +2235,10 @@ mod tests {
RuntimeProfileWalletLedgerSourceType::AssetOperationRefund.as_str(),
"asset_operation_refund"
);
assert_eq!(
RuntimeProfileWalletLedgerSourceType::PuzzleAuthorIncentiveClaim.as_str(),
"puzzle_author_incentive_claim"
);
}
#[test]