-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-withdrawal-approval-check
- Loading branch information
Showing
50 changed files
with
1,800 additions
and
713 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
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
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,59 @@ | ||
# RPC Configuration | ||
|
||
This document outlines how configuring RPCs works, either through [RPC providers](#rpc-providers), or [custom RPCs](#custom-rpcs). | ||
|
||
## RPC Providers | ||
|
||
Two RPC providers are currently supported: [Infura](#infura) and [Alchemy](#alchemy). | ||
|
||
Selecting which one to use is done via the following environment variable: | ||
|
||
- `NEXT_PUBLIC_RPC_PROVIDER` | ||
|
||
The accepted values (case insensitive) are `infura` and `alchemy`. The default is `infura`. | ||
|
||
### Infura | ||
|
||
The Infura key is provided through the following environment variable: | ||
|
||
- `NEXT_PUBLIC_INFURA_KEY` | ||
|
||
The key will be used for all chains. However, if you need to have different keys for each chain, you can do so through the following environment variables: | ||
|
||
- `NEXT_PUBLIC_INFURA_KEY_ETHEREUM` | ||
- `NEXT_PUBLIC_INFURA_KEY_SEPOLIA` | ||
- `NEXT_PUBLIC_INFURA_KEY_HOLESKY` | ||
- `NEXT_PUBLIC_INFURA_KEY_ARBITRUM_ONE` | ||
- `NEXT_PUBLIC_INFURA_KEY_BASE` | ||
- `NEXT_PUBLIC_INFURA_KEY_ARBITRUM_SEPOLIA` | ||
- `NEXT_PUBLIC_INFURA_KEY_BASE_SEPOLIA` | ||
|
||
> [!NOTE] | ||
> Arbitrum Nova is currently not supported on Infura, so the [public RPC](https://nova.arbitrum.io/rpc) will be used instead. | ||
### Alchemy | ||
|
||
The Alchemy key is provided through the following environment variable: | ||
|
||
- `NEXT_PUBLIC_ALCHEMY_KEY` | ||
|
||
The key will be used for all chains. | ||
|
||
## Custom RPCs | ||
|
||
If you need to override the RPC for a chain, you can do so through the following environment variables: | ||
|
||
- `NEXT_PUBLIC_RPC_URL_ETHEREUM` | ||
- `NEXT_PUBLIC_RPC_URL_SEPOLIA` | ||
- `NEXT_PUBLIC_RPC_URL_HOLESKY` | ||
- `NEXT_PUBLIC_RPC_URL_ARBITRUM_ONE` | ||
- `NEXT_PUBLIC_RPC_URL_ARBITRUM_NOVA` | ||
- `NEXT_PUBLIC_RPC_URL_BASE` | ||
- `NEXT_PUBLIC_RPC_URL_ARBITRUM_SEPOLIA` | ||
- `NEXT_PUBLIC_RPC_URL_BASE_SEPOLIA` | ||
|
||
For [Nitro Testnode](https://github.com/OffchainLabs/nitro-testnode) chains: | ||
|
||
- `NEXT_PUBLIC_RPC_URL_NITRO_TESTNODE_L1` | ||
- `NEXT_PUBLIC_RPC_URL_NITRO_TESTNODE_L2` | ||
- `NEXT_PUBLIC_RPC_URL_NITRO_TESTNODE_L3` |
13 changes: 13 additions & 0 deletions
13
packages/arb-token-bridge-ui/public/images/bridge/deBridge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
...ges/arb-token-bridge-ui/src/components/TransactionHistory/TransactionHistorySearchBar.tsx
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
85 changes: 85 additions & 0 deletions
85
...ken-bridge-ui/src/components/TransferPanel/CustomDestinationAddressConfirmationDialog.tsx
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,85 @@ | ||
import { useState } from 'react' | ||
|
||
import { Dialog, UseDialogProps } from '../common/Dialog' | ||
import { ExternalLink } from '../common/ExternalLink' | ||
import { useNetworks } from '../../hooks/useNetworks' | ||
import { getExplorerUrl, getNetworkName } from '../../util/networks' | ||
import { shortenAddress } from '../../util/CommonUtils' | ||
import { useArbQueryParams } from '../../hooks/useArbQueryParams' | ||
import { Checkbox } from '../common/Checkbox' | ||
|
||
export function CustomDestinationAddressConfirmationDialog( | ||
props: UseDialogProps | ||
) { | ||
const [{ destinationAddress = '' }] = useArbQueryParams() | ||
|
||
const [networks] = useNetworks() | ||
|
||
const networkName = getNetworkName(networks.destinationChain.id) | ||
|
||
const [checkboxChecked, setCheckboxChecked] = useState(false) | ||
|
||
function closeWithReset(confirmed: boolean) { | ||
props.onClose(confirmed) | ||
setCheckboxChecked(false) | ||
} | ||
|
||
return ( | ||
<Dialog | ||
{...props} | ||
title="Confirm Destination Address" | ||
className="flex flex-col gap-4" | ||
onClose={closeWithReset} | ||
actionButtonProps={{ | ||
disabled: !checkboxChecked | ||
}} | ||
> | ||
<div className="mb-4"> | ||
<p className="pb-2"> | ||
You are attempting to deposit funds to the same address{' '} | ||
<ExternalLink | ||
className="arb-hover underline" | ||
href={`${getExplorerUrl( | ||
networks.destinationChain.id | ||
)}/address/${destinationAddress}`} | ||
> | ||
{shortenAddress(destinationAddress)} | ||
</ExternalLink>{' '} | ||
on {networkName}. | ||
</p> | ||
<p className="pb-2"> | ||
This is an uncommon action since it's not guaranteed that you | ||
have a smart contract wallet at the same address on the destination | ||
chain. | ||
</p> | ||
</div> | ||
|
||
<p className="mb-8 rounded-md bg-orange/10 p-4"> | ||
<Checkbox | ||
label={ | ||
<span className="font-light"> | ||
I confirm that I have full control over the entered destination | ||
address on {networkName} and understand that proceeding without | ||
control may result in an{' '} | ||
<span className="font-bold">irrecoverable loss of funds</span>. | ||
</span> | ||
} | ||
checked={checkboxChecked} | ||
onChange={setCheckboxChecked} | ||
/> | ||
</p> | ||
|
||
<p> | ||
If not sure, please reach out to us on our{' '} | ||
<ExternalLink | ||
className="arb-hover underline" | ||
href="https://discord.gg/ZpZuw7p" | ||
target="_blank" | ||
> | ||
<span className="font-medium">support channel</span> | ||
</ExternalLink>{' '} | ||
for assistance. | ||
</p> | ||
</Dialog> | ||
) | ||
} |
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
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
Oops, something went wrong.