Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Use SupportedChainId type from sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
matextrem committed Apr 29, 2022
1 parent a534959 commit 91a4d81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@ import { TransactionReceipt } from 'web3-core'
import { PendingFlux } from 'api/deposit/DepositApi'
import { TokenOverride } from './config'
import { TokenDex } from '@gnosis.pm/dex-js'
import { SupportedChainId } from '@cowprotocol/cow-sdk'

export type Command = () => void
export type AnyFunction = (...args: unknown[]) => unknown
export type Mutation<T> = (original: T) => T
export type Unpromise<T> = T extends Promise<infer U> ? U : T

//This Enum here is temporary until SupportedChainId is exported
/*
export enum Network {
MAINNET = 1,
RINKEBY = 4,
GNOSIS_CHAIN = 100,
}
*/

/*
export const Network = SupportedChainId
export type Network = SupportedChainId
*/

export interface TokenDetails extends TokenDex {
label: string
Expand Down

0 comments on commit 91a4d81

Please sign in to comment.