Skip to content

Commit

Permalink
Support RING transfer from Arbitrum to Ethereum (#538)
Browse files Browse the repository at this point in the history
* support ring transfer from arbitrum to ethereum

* update deploy-dev.yml

* update dev domain

* enable production relayer navigation

* fix footer testnet label

* improve bridge-select dropdown content text style
  • Loading branch information
JayJay1024 authored Oct 19, 2023
1 parent 39992fa commit 3b097db
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
alias_domain: "helix-dev"
alias_domain: "helix-dev-main"
project_name: "helix-apps"
script_run: false
dist_path: .
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

### Development

- mainnet: https://helix-dev.vercel.app/
- mainnet: https://helix-dev-main.vercel.app/
- testnet: https://helix-dev-test.vercel.app/
4 changes: 2 additions & 2 deletions packages/apps/src/bridges/lnbridge-opposite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export class LnBridgeOpposite extends LnBridgeBase {
private initContract() {
if (this.sourceChain?.id === ChainID.ARBITRUM && this.targetChain?.id === ChainID.ETHEREUM) {
this.contract = {
sourceAddress: "0xD1B10B114f1975d8BCc6cb6FC43519160e2AA978",
targetAddress: "0xeAb1F01a8f4A2687023B159c2063639Adad5304E",
sourceAddress: "0x9e523234D36973f9e38642886197D023C88e307e",
targetAddress: "0x9469D013805bFfB7D3DEBe5E7839237e535ec483",
};
} else {
this.contract = {
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/src/components/bridge-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function BridgeSelect({ options, value, onChange = () => undefine
onClick={() => {
onChange(c);
}}
className="px-middle py-small text-start text-sm font-light text-white transition-colors hover:bg-white/10"
className="px-middle py-small text-start text-sm text-white transition-colors hover:bg-white/10"
>
{b?.getName() || "-"}
</button>
Expand Down
6 changes: 3 additions & 3 deletions packages/apps/src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ export default function Footer() {
setMainnetOrTestnet({ label: "Testnet", link: "https://helix-stg-test.vercel.app" });
} else if (window.location.hostname === "helix-stg-test.vercel.app") {
setMainnetOrTestnet({ label: "Mainnet", link: "https://helix-stg.vercel.app" });
} else if (window.location.hostname === "helix-dev.vercel.app") {
setMainnetOrTestnet({ label: "Mainnet", link: "https://helix-dev-test.vercel.app" });
} else if (window.location.hostname === "helix-dev-main.vercel.app") {
setMainnetOrTestnet({ label: "Testnet", link: "https://helix-dev-test.vercel.app" });
} else if (window.location.hostname === "helix-dev-test.vercel.app") {
setMainnetOrTestnet({ label: "Mainnet", link: "https://helix-dev.vercel.app" });
setMainnetOrTestnet({ label: "Mainnet", link: "https://helix-dev-main.vercel.app" });
}
}, []);

Expand Down
2 changes: 1 addition & 1 deletion packages/apps/src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Header() {
return [
{ href: "/", label: "Transfer" },
{ href: "/records", label: "Explorer" },
{ href: "/relayer/overview", label: "Relayer", soon: isProduction() },
{ href: "/relayer/overview", label: "Relayer" },
{ href: "https://docs.helixbridge.app/", label: "Docs", external: true },
];
}
Expand Down
4 changes: 1 addition & 3 deletions packages/apps/src/config/chains/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ export const arbitrumChain: ChainConfig = {
type: "erc20",
address: "0x9e523234D36973f9e38642886197D023C88e307e",
logo: "ring.svg",
cross: [
{ target: { network: "ethereum", symbol: "RING" }, bridge: { category: "lnbridgev20-opposite" }, hidden: true },
],
cross: [{ target: { network: "ethereum", symbol: "RING" }, bridge: { category: "lnbridgev20-opposite" } }],
},
],
};

0 comments on commit 3b097db

Please sign in to comment.