Skip to content

feat: add rate limited hook implementation for cosmosnative#169

Open
damiannolan wants to merge 3 commits intodamian/aggregation-hookfrom
damian/rate-limiting-hook
Open

feat: add rate limited hook implementation for cosmosnative#169
damiannolan wants to merge 3 commits intodamian/aggregation-hookfrom
damian/rate-limiting-hook

Conversation

@damiannolan
Copy link
Copy Markdown
Collaborator

Description

The following PR adds RateLimitedHook, a soft circuit-breaker hook for outbound x/warp token transfers. The hook enforces per-token transfer capacity using a token-bucket model with a fixed one-day refill window, limiting blast radius while still allowing controlled throughput.

Builds on AggregationHook (#168) so rate limiting can be composed into a non-bypassable outbound policy path. Includes token rate-limit state, owner-managed configuration, effective capacity queries, dispatch-time consumption, events, CLI support, genesis handling, and keeper tests.

NOTE: The following implementation is adapted from the original solidity implementation. That is the motivation behind this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant