From a9488e39f2bf5a1de6cc8d36a40fb7f2839172ee Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Thu, 17 Sep 2026 17:15:16 +0700 Subject: [PATCH] fix(hooks): generate xport callback fee documentation --- hook/generate_extern.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hook/generate_extern.sh b/hook/generate_extern.sh index 51f7b96c53..228696752c 100755 --- a/hook/generate_extern.sh +++ b/hook/generate_extern.sh @@ -42,6 +42,11 @@ APPLY_HOOK="$SCRIPT_DIR/../include/xrpl/hook/hook_api.macro" sub(/[[:space:]]+_g/, " __attribute__((noduplicate)) _g", line); } + if (line ~ /[[:space:]]+xport[[:space:]]*\(/) { + print "// callback_fee_drops: 0 omits third-party delivery permission; otherwise the"; + print "// exact Import fee authorized by the emitted Export intent, in native drops."; + } + if (line ~ /[[:space:]]+entropy_cr_dice[[:space:]]*\(/) { print "/*"; print " Consensus entropy APIs.";