Skip to content

Conversation

@tequdev
Copy link
Member

@tequdev tequdev commented Oct 26, 2025

High Level Overview of Change

Context of Change

require: #622

  1. Allow custom costs to be set for each HookAPI, enabling more appropriate execution costs to be billed.
    (Currently, calling HookAPI incurs no additional cost and has the same cost as general Wasm instructions (1 drop))

  2. HookDefinitionUpdate transaction added, allowing guard-checkers to be run on already deployed HookDefinitions.

  3. Change the Hook execution fee format from sfFee/sfHookCallbackFee (STAmount) to sfHookCost/sfHookCallbackCost (uint64), allowing a more flexible and precise drop-based cost model instead of the previous fixed 1-drop-per-instruction structure.

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

@tequdev tequdev added Amendment New feature or fix amendment feature Feature Request labels Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Amendment New feature or fix amendment feature Feature Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant