utils#CHAINS_SELECTION TypeScript Examples

The following examples show how to use utils#CHAINS_SELECTION. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: send.ts    From frontend-v1 with GNU Affero General Public License v3.0 6 votes vote down vote up
initialState: State = {
  token: ethers.constants.AddressZero,
  amount: ethers.constants.Zero,
  toChain: DEFAULT_TO_CHAIN_ID,
  fromChain: DEFAULT_FROM_CHAIN_ID,
  // Default to ethereum, which should be end of this array.
  currentlySelectedToChain: CHAINS_SELECTION[CHAINS_SELECTION.length - 1],
  currentlySelectedFromChain: CHAINS_SELECTION[0],
}