-
Notifications
You must be signed in to change notification settings - Fork 80
Add parameter validation to allbridge lf 14440 #1275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
0xDEnYO
merged 12 commits into
main
from
add-parameter-validation-to-allbridge-lf-14440
Jul 16, 2025
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7a36dc6
added parameter validation to AllBridgeFacet
0xDEnYO 0f41c4a
Merge branch 'main' of github.com:lifinance/contracts into add-parame…
0xDEnYO b59562b
finalized test file
0xDEnYO c765a1c
Merge branch 'main' of github.com:lifinance/contracts into add-parame…
0xDEnYO 450419e
added Tron and Aptos custom chainIds
0xDEnYO 5b30f65
Merge branch 'main' of github.com:lifinance/contracts into add-parame…
0xDEnYO d280bdf
minor fixes
0xDEnYO a379ba4
restore deleted file
0xDEnYO 10c4c81
formatting
0xDEnYO 5ee1d14
move NON_EVM_ADDRESS to LiFiData
0xDEnYO 954d42f
Merge branch 'main' of github.com:lifinance/contracts into add-parame…
0xDEnYO 28c96f5
add parameter validation for RelayFacet
0xDEnYO File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| // SPDX-License-Identifier: LGPL-3.0-only | ||
|
|
||
0xDEnYO marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| pragma solidity ^0.8.17; | ||
|
|
||
| /// @title LiFiData | ||
mirooon marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| /// @author Li.Finance (https://li.finance) | ||
0xDEnYO marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| /// @notice A storage for LI.FI-internal config data (addresses, chainIDs, etc.) | ||
| /// @custom:version 1.0.0 | ||
| contract LiFiData { | ||
| address internal constant NON_EVM_ADDRESS = | ||
0xDEnYO marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 0x11f111f111f111F111f111f111F111f111f111F1; | ||
|
|
||
| // LI.FI non-EVM Custom Chain IDs (IDs are made up by the LI.FI team) | ||
| uint256 internal constant LIFI_CHAIN_ID_APTOS = 9271000000000010; | ||
| uint256 internal constant LIFI_CHAIN_ID_BCH = 20000000000002; | ||
| uint256 internal constant LIFI_CHAIN_ID_BTC = 20000000000001; | ||
| uint256 internal constant LIFI_CHAIN_ID_DGE = 20000000000004; | ||
| uint256 internal constant LIFI_CHAIN_ID_LTC = 20000000000003; | ||
| uint256 internal constant LIFI_CHAIN_ID_SOLANA = 1151111081099710; | ||
| uint256 internal constant LIFI_CHAIN_ID_SUI = 9270000000000000; | ||
| uint256 internal constant LIFI_CHAIN_ID_TRON = 1885080386571452; | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.