Skip to content

feat(axelar): owner-set chain maps following ChainMap - #134

Merged
reednaa merged 1 commit into
feat/axelar-oraclefrom
feat/axelar-owner-routes
Oct 2, 2026
Merged

reednaa merged 1 commit into
feat/axelar-oraclefrom
feat/axelar-owner-routes

Conversation

@reednaa

@reednaa reednaa commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Stacked on #133.

Moves AxelarOracle from 1–16 constructor routes to the mapped-oracle structure used by ChainMap (Wormhole, Polymer, Hyperlane, Broadcaster):

  • Ownable(owner) constructor: (owner, gateway, gasService); standard transfer/renounce (renounce freezes the map set).
  • setChainMap(name, chainId, kind) onlyOwner: set-once and bijective; ZeroValue for zero chain ID, AlreadySet for a mapped name/ID, InvalidConfiguration for non-canonical names; records reverseChainIdMap; emits ChainMapConfigured. No count limit.
  • Names are canonical lowercase Axelar names (1–20 bytes of a-z, 0-9, '-'). Lookups ASCII-lowercase the provider string; submit forwards the stored lowercase name to the gas service and gateway; execute still validates the exact inbound sourceChain.

Tests: forge test --match-path 'test/oracle/transport/*' (10 passed, incl. testAxelarChainMapOwnerSetOnce, testAxelarLowercaseLookupForwardsCanonicalName).

Soroban counterpart: lifinance/intent-soroban#5

@reednaa
reednaa added this pull request to stack #135 September 30, 2026 11:24
@reednaa reednaa closed this Sep 30, 2026
@reednaa
reednaa force-pushed the feat/axelar-owner-routes branch from 2891a9b to bb1cd07 Compare September 30, 2026 13:35
@reednaa reednaa reopened this Oct 2, 2026
@reednaa
reednaa merged commit 43209ca into main Oct 2, 2026
2 checks passed
@reednaa
reednaa deleted the feat/axelar-owner-routes branch October 2, 2026 12:01
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