-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bridge-ui-v2): allow bridging to all layers (#14525)
Co-authored-by: Francisco Ramos <[email protected]> Co-authored-by: Daniel Wang <[email protected]>
- Loading branch information
1 parent
19f35f7
commit e25e0cd
Showing
97 changed files
with
6,399 additions
and
6,997 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,84 +1,23 @@ | ||
# Chain Names | ||
export PUBLIC_L1_CHAIN_NAME="" | ||
export PUBLIC_L2_CHAIN_NAME="" | ||
export PUBLIC_L3_CHAIN_NAME="" | ||
|
||
|
||
# Chain Ids | ||
export PUBLIC_L1_CHAIN_ID= | ||
export PUBLIC_L2_CHAIN_ID= | ||
export PUBLIC_L3_CHAIN_ID= | ||
|
||
|
||
# RPC Urls | ||
export PUBLIC_L1_RPC_URL=https:// | ||
export PUBLIC_L2_RPC_URL=https:// | ||
export PUBLIC_L3_RPC_URL=https:// | ||
|
||
|
||
# Explorer Urls | ||
export PUBLIC_L1_EXPLORER_URL=https:// | ||
export PUBLIC_L2_EXPLORER_URL=https:// | ||
export PUBLIC_L3_EXPLORER_URL=https:// | ||
|
||
|
||
# Relayer API | ||
export PUBLIC_RELAYER_URL=https:// | ||
|
||
# Default explorer as fallback for the sidebar | ||
export PUBLIC_DEFAULT_EXPLORER=https:// | ||
|
||
# Use the bridge guide Urls | ||
export PUBLIC_GUIDE_URL=https:// | ||
|
||
|
||
# Cross Chain (Taiko) Contract address | ||
export PUBLIC_L1_CROSS_CHAIN_SYNC_ADDRESS=0x | ||
export PUBLIC_L2_CROSS_CHAIN_SYNC_ADDRESS=0x | ||
export PUBLIC_L3_CROSS_CHAIN_SYNC_ADDRESS=0x | ||
|
||
|
||
# Token Vault Contract address | ||
export PUBLIC_L1_TOKEN_VAULT_ADDRESS=0x | ||
export PUBLIC_L2_TOKEN_VAULT_ADDRESS=0x | ||
export PUBLIC_L3_TOKEN_VAULT_ADDRESS=0x | ||
|
||
# ERC721 Token Vault Contract address | ||
export PUBLIC_L1_ERC721_VAULT_ADDRESS= | ||
export PUBLIC_L2_ERC721_VAULT_ADDRESS= | ||
export PUBLIC_L3_ERC721_VAULT_ADDRESS= | ||
|
||
|
||
# ERC1155 Token Vault Contract address | ||
export PUBLIC_L1_ERC1155_VAULT_ADDRESS= | ||
export PUBLIC_L2_ERC1155_VAULT_ADDRESS= | ||
export PUBLIC_L3_ERC1155_VAULT_ADDRESS= | ||
|
||
|
||
# Bridge Contract address | ||
export PUBLIC_L1_BRIDGE_ADDRESS=0x | ||
export PUBLIC_L2_BRIDGE_ADDRESS=0x | ||
export PUBLIC_L3_BRIDGE_ADDRESS=0x | ||
|
||
|
||
# Signal Service Contract address | ||
export PUBLIC_L1_SIGNAL_SERVICE_ADDRESS=0x | ||
export PUBLIC_L2_SIGNAL_SERVICE_ADDRESS=0x | ||
export PUBLIC_L3_SIGNAL_SERVICE_ADDRESS=0x | ||
|
||
|
||
# Test token List | ||
export PUBLIC_TEST_ERC20=[] | ||
|
||
|
||
# WalletConnect Project ID | ||
export PUBLIC_WALLETCONNECT_PROJECT_ID="" | ||
|
||
# Enable NFT Bridge ("true" or "false") | ||
export PUBLIC_NFT_BRIDGE_ENABLED="" | ||
|
||
|
||
# Sentry | ||
export PUBLIC_SENTRY_DSN=https:// | ||
|
||
export SENTRY_ORG= | ||
export SENTRY_PROJECT= | ||
export SENTRY_AUTH_TOKEN= | ||
|
||
# Config jsons in base64 (see ReadMe, these are generated via a script) | ||
export CONFIGURED_BRIDGES= | ||
export CONFIGURED_CHAINS= | ||
export CONFIGURED_CUSTOM_TOKEN= | ||
export CONFIGURED_RELAYER= |
This file contains 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 |
---|---|---|
|
@@ -16,3 +16,5 @@ CHANGELOG.md | |
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock | ||
|
||
src/generated/* |
This file contains 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 |
---|---|---|
|
@@ -14,4 +14,4 @@ vite.config.ts.timestamp-* | |
!/config/sample/ | ||
!/config/schemas/ | ||
|
||
src/generated/* | ||
src/generated/* |
This file contains 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
52 changes: 52 additions & 0 deletions
52
packages/bridge-ui-v2/config/sample/configuredBridges.example
This file contains 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,52 @@ | ||
{ | ||
"configuredBridges": [ | ||
{ | ||
"source": "", | ||
"destination": "", | ||
"addresses": { | ||
"bridgeAddress": "", | ||
"erc20VaultAddress": "", | ||
"erc721VaultAddress": "", | ||
"erc1155VaultAddress": "", | ||
"crossChainSyncAddress": "", | ||
"signalServiceAddress": "" | ||
} | ||
}, | ||
{ | ||
"source": "", | ||
"destination": "", | ||
"addresses": { | ||
"bridgeAddress": "", | ||
"erc20VaultAddress": "", | ||
"erc721VaultAddress": "", | ||
"erc1155VaultAddress": "", | ||
"crossChainSyncAddress": "", | ||
"signalServiceAddress": "" | ||
} | ||
}, | ||
{ | ||
"source": "", | ||
"destination": "", | ||
"addresses": { | ||
"bridgeAddress": "", | ||
"erc20VaultAddress": "", | ||
"erc721VaultAddress": "", | ||
"erc1155VaultAddress": "", | ||
"crossChainSyncAddress": "", | ||
"signalServiceAddress": "" | ||
} | ||
}, | ||
{ | ||
"source": "", | ||
"destination": "", | ||
"addresses": { | ||
"bridgeAddress": "", | ||
"erc20VaultAddress": "", | ||
"erc721VaultAddress": "", | ||
"erc1155VaultAddress": "", | ||
"crossChainSyncAddress": "", | ||
"signalServiceAddress": "" | ||
} | ||
} | ||
] | ||
} |
37 changes: 37 additions & 0 deletions
37
packages/bridge-ui-v2/config/sample/configuredChains.example
This file contains 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,37 @@ | ||
{ | ||
"configuredChains": [ | ||
{ | ||
"123456": { | ||
"name": "", | ||
"type": "L1", | ||
"icon": "path/or/url/to/icon", | ||
"urls": { | ||
"rpc": "", | ||
"explorer": "" | ||
} | ||
} | ||
}, | ||
{ | ||
"78910": { | ||
"name": "", | ||
"type": "L2", | ||
"icon": "path/or/url/to/icon", | ||
"urls": { | ||
"rpc": "", | ||
"explorer": "" | ||
} | ||
} | ||
}, | ||
{ | ||
"98765": { | ||
"name": "", | ||
"type": "L3", | ||
"icon": "path/or/url/to/icon", | ||
"urls": { | ||
"rpc": "", | ||
"explorer": "" | ||
} | ||
} | ||
} | ||
] | ||
} |
26 changes: 26 additions & 0 deletions
26
packages/bridge-ui-v2/config/sample/configuredCustomToken.example
This file contains 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,26 @@ | ||
[ | ||
{ | ||
"name": "Bull Token", | ||
"addresses": { | ||
"1234": "0x00...", | ||
"4567": "0x00...", | ||
"8910": "0x00..." | ||
}, | ||
"symbol": "BLL", | ||
"decimals": 18, | ||
"type": "ERC20", | ||
"logoURI": "http://example.com/logo.png" | ||
}, | ||
{ | ||
"name": "Horse Token", | ||
"addresses": { | ||
"1234": "0x00...", | ||
"4567": "0x00...", | ||
"8910": "0x00..." | ||
}, | ||
"symbol": "HORSE", | ||
"decimals": 18, | ||
"type": "ERC20", | ||
"logoURI": "http://example.com/logo.png" | ||
} | ||
] |
12 changes: 12 additions & 0 deletions
12
packages/bridge-ui-v2/config/sample/configuredRelayer.example
This file contains 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,12 @@ | ||
{ | ||
"configuredRelayer": [ | ||
{ | ||
"chainIds": [123456, 654321], | ||
"url": "https://some/url.example" | ||
}, | ||
{ | ||
"chainIds": [1, 11155111], | ||
"url": "https://some/other/url.example" | ||
} | ||
] | ||
} |
Oops, something went wrong.