Skip to content

Commit

Permalink
feat: merge into single deployment (#9)
Browse files Browse the repository at this point in the history
* feat: mainnet config

* fix: networks config

* fix: use defined L1 network for hyperchain

* chore: config

* chore: config

* chore: update custom bridge tokens

* chore: disable usdt bridging

* chore: update to quicknode

* chore: update config

* Update third party bridges URL (#5)

* feat: multi-chain

* feat: vercel.json redirect

* feat: update for testnet

* lint

---------

Co-authored-by: Jarrod Watts <[email protected]>
  • Loading branch information
coffeexcoin and jarrodwatts authored Feb 3, 2025
1 parent eb6630d commit cd3bbfa
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 4 deletions.
17 changes: 17 additions & 0 deletions data/customBridgeTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,19 @@ export const customBridgeTokens: CustomBridgeToken[] = [
withdrawUrl:
"https://stargate.finance/bridge?srcChain=abstract&srcToken=0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4&dstChain=ethereum&dstToken=0xdAC17F958D2ee523a2206206994597C13D831ec7",
},
{
label: "Jumper",
iconUrl: "/img/jumper.svg",
depositUrl:
"https://jumper.exchange/?fromChain=1&fromToken=0xdAC17F958D2ee523a2206206994597C13D831ec7&toChain=2741&toToken=0x703b52F2b28fEbcB60E1372858AF5b18849FE867",
withdrawUrl:
"https://jumper.exchange/?fromChain=2741&fromToken=0x703b52F2b28fEbcB60E1372858AF5b18849FE867&toChain=1&toToken=0xdAC17F958D2ee523a2206206994597C13D831ec7",
},
],
symbol: "USDT",
bridgedSymbol: "USDT",
name: "Tether",
bridgingDisabled: true,
},
{
chainId: 1,
Expand All @@ -47,6 +56,14 @@ export const customBridgeTokens: CustomBridgeToken[] = [
withdrawUrl:
"https://stargate.finance/bridge?srcChain=abstract&srcToken=0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1&dstChain=ethereum&dstToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
},
{
label: "Jumper",
iconUrl: "/img/jumper.svg",
depositUrl:
"https://jumper.exchange/?fromChain=1&fromToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB4&toChain=2741&toToken=0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1",
withdrawUrl:
"https://jumper.exchange/?fromChain=2741&fromToken=0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1&toChain=1&toToken0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB4",
},
],
symbol: "USDC",
bridgedSymbol: "USDC.e",
Expand Down
13 changes: 13 additions & 0 deletions data/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const l1Networks = {
},
},
} as const;

export type L1Network = Chain;

export type ZkSyncNetwork = {
Expand Down Expand Up @@ -83,6 +84,18 @@ export const dockerizedNode: ZkSyncNetwork = {
};

const publicChains: ZkSyncNetwork[] = [
{
id: 2741,
key: "abstract",
name: "Abstract Mainnet",
rpcUrl: "https://solitary-ultra-emerald.abstract-mainnet.quiknode.pro/7e6af119737a70a9b3d9128931ecf0b72e5658c4/",
blockExplorerUrl: "https://explorer.mainnet.abs.xyz",
blockExplorerApi: "https://block-explorer-api.mainnet.abs.xyz",
displaySettings: {
showPartnerLinks: true,
},
l1Network: l1Networks.mainnet,
},
{
id: 11124,
key: "abstract-testnet",
Expand Down
21 changes: 21 additions & 0 deletions hyperchains/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
[
{
"network": {
"id": 2741,
"name": "Abstract",
"key": "abstract",
"rpcUrl": "https://api.mainnet.abs.xyz/",
"blockExplorerUrl": "https://abscan.org",
"blockExplorerApi": "https://block-explorer-api.mainnet.abs.xyz/",
"publicL1NetworkId": 1
},
"tokens": [
{
"address": "0x000000000000000000000000000000000000800A",
"l1Address": "0x0000000000000000000000000000000000000000",
"symbol": "ETH",
"name": "Ether",
"decimals": 18,
"iconUrl": "/img/eth.svg"
}
]
},
{
"network": {
"id": 11124,
Expand Down
12 changes: 12 additions & 0 deletions public/img/jumper.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"redirects": [
{
"source": "/(.*)",
"has": [
{
"type": "header",
"key": "host",
"value": "portal.mainnet.abs.xyz"
}
],
"destination": "https://native-bridge.abs.xyz/bridge?network=abstract",
"permanent": false
},
{
"source": "/(.*)",
"has": [
{
"type": "header",
"key": "host",
"value": "portal.testnet.abs.xyz"
}
],
"destination": "https://native-bridge.abs.xyz/bridge?network=abstract-testnet",
"permanent": false
}
]
}
5 changes: 1 addition & 4 deletions views/transactions/Transfer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@
>24-hour withdrawal delay</a
>, you will need to manually claim your funds which requires paying another transaction fee on
{{ eraNetwork.l1Network?.name }}. Alternatively you can use
<a
href="https://docs.abs.xyz/ecosystem/bridges"
target="_blank"
class="underline underline-offset-2"
<a href="https://docs.abs.xyz/ecosystem/bridges" target="_blank" class="underline underline-offset-2"
>third-party bridges</a
>.
</p>
Expand Down

0 comments on commit cd3bbfa

Please sign in to comment.