Repository navigation
Conversation
Adds transparent Axelar (paid/self-relay, Solana executable envelope, strict base58/StrKey identities) and LayerZero V2 oracles with constructor-only bounded chain mappings, plus Stellar transport tests. MessageEncodingLib now rejects trailing message bytes.
…eat/axelar-oracle
reednaa
force-pushed
the
feat/layerzero-oracle
branch
from
October 5, 2026 06:01
828c74a to
33e561c
Compare
Drop MappedOracle/BoundedOracle. The oracle now inherits ChainMap with the key being the ASCII-lowercased Axelar name packed left-aligned into a uint256, so reverseChainIdMap yields the name. - submit takes the destination OIF chain ID and the recipient's Axelar address string; a nonzero destinationConfig selects the Solana envelope. - execute infers the sender format (0x hex, Stellar StrKey, Solana base58) and records proofs like HyperlaneOracle. - Names are 1-32 bytes without NUL, no character set imposed; packing lives in the AxelarChainName library (word-at-a-time lowercasing). - No Stellar message limits on EVM; destinations enforce their own. - ChainMap.setChainMap is public virtual so the oracle can validate keys. - OracleAddress moves to axelar/ and is decode-only. - Chain-map script takes (oracle, name, chainId); README updated. - Axelar tests move to test/oracle/axelar, with exhaustive key tests.
Bring in b8a4178 (AxelarOracle on shared ChainMap; MappedOracle/BoundedOracle removed). LayerZero tests move from test/oracle/transport to test/oracle/layerzero.
Drop MappedOracle/BoundedOracle (removed in b8a4178). The oracle now inherits BaseInputOracle and ChainMap with key = uint256(eid). - setChainMap(uint256 eid, uint256 chainId, Security) is the only way to add a route: it validates the EID fits uint32 and the Security config, maps through ChainMap.setChainMap (ZeroValue/AlreadySet/ChainMapConfigured) and pins libraries, executor and ULN config in the same call. The plain ChainMap.setChainMap(uint256,uint256) is overridden to revert SecurityRequired so no route can open on endpoint defaults. - Security gains maxMessageSize (nonzero), pinned in the executor config, replacing BoundedOracle's fixed 2,778-byte MAX_MESSAGE. - No Stellar count/size admission checks; destinations enforce their own. - submit/lzReceive inline export/record like HyperlaneOracle (NotAllPayloadsValid; OutputProven on every record). Unmapped destinations and origins revert ZeroValue; route(eid), UnknownChain and the uint32 ChainMapConfigured event are removed (use chainIdMap). - Tests cover the disabled 2-arg setter, uint32 bound, security validation, unmapped send/receive, and malformed-message rollback.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EVM side of the cross-VM proof transport (counterparts: lifi-intent-svm #129, intent-soroban #1). Branched from
main.LayerZero half of the former combined #133 (now Axelar only).
LayerZeroOracle: pinned libraries, DVNs, confirmations, executor; single Type-3 gas option; at most 16 constructor-only bijective chain mappings, no owner, upgrade, pause or withdrawal.common/(shared, identical in both PRs, merges cleanly in either order):BoundedOracle, strict EVM / Stellar StrKey / Solana base58 identities (OracleAddress).MessageEncodingLib: reject trailing message bytes (TrailingMessageBytes).Tests:
test/oracle/transport/{LayerZeroOracle.t.sol,EndpointFixture.sol,OracleAddress.t.sol,BoundAttester.sol}.Verification (local):
forge test498 passed, 0 failed.Not done: deployment, live provider delivery. Not audited.