first version of URIToken amendment

This commit is contained in:
Richard Holland
2023-01-26 13:46:19 +00:00
parent 49207d007d
commit fbafb72262
16 changed files with 868 additions and 3 deletions

View File

@@ -156,6 +156,8 @@ invoke_preflight(PreflightContext const& ctx)
return invoke_preflight_helper<ClaimReward>(ctx);
case ttINVOKE:
return invoke_preflight_helper<Invoke>(ctx);
case ttURI_TOKEN:
return invoke_preflight_helper<URIToken>(ctx);
default:
assert(false);
return {temUNKNOWN, TxConsequences{temUNKNOWN}};
@@ -265,6 +267,8 @@ invoke_preclaim(PreclaimContext const& ctx)
return invoke_preclaim<ClaimReward>(ctx);
case ttINVOKE:
return invoke_preclaim<Invoke>(ctx);
case ttURI_TOKEN:
return invoke_preclaim<URIToken>(ctx);
default:
assert(false);
return temUNKNOWN;
@@ -335,6 +339,8 @@ invoke_calculateBaseFee(ReadView const& view, STTx const& tx)
return ClaimReward::calculateBaseFee(view, tx);
case ttINVOKE:
return Invoke::calculateBaseFee(view, tx);
case ttURI_TOKEN:
return URIToken::calculateBaseFee(view, tx);
default:
assert(false);
return FeeUnit64{0};
@@ -501,6 +507,10 @@ invoke_apply(ApplyContext& ctx)
Invoke p(ctx);
return p();
}
case ttURI_TOKEN: {
URIToken p(ctx);
return p();
}
default:
assert(false);
return {temUNKNOWN, false};