Files
xahaud/include
tequ d04fa60d87 HookFeeV3: gate per-API costs and HookGasPrice behind a HookFeeV3 amendment
HookFeeV2 keeps the flat model (100 units per API call, 10 units per drop,
rounded up). HookFeeV3 layers on top of it:

- features.macro: add HookFeeV3 (Supported::yes, DefaultNo)
- getImportWhitelist: every API defaults to hook_api::api_call_cost;
  HOOK_API_COST overrides only when HookFeeV3 is enabled, and uses find()
  so a cost line can never whitelist an API whose definition is gated off
- hookCostToFee: flat V2 pricing unless HookFeeV3 is enabled, then the
  ledger's HookGasPrice applies
- sfHookGasPrice on FeeSettings / SetFee / validations, fee voting,
  genesis FeeSettings and server_info / ledger stream output are gated
  on HookFeeV3 instead of HookFeeV2
- tests that only avoid the amendment because genesis FeeSettings changes
  now subtract HookFeeV3; SetHook cost expectations remain the V3 values
2026-09-07 20:23:14 +09:00
..