diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-09-24 23:47:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 23:47:59 +0800 |
commit | b830c28d83a33c0170d4f150ee287ea97ccf7865 (patch) | |
tree | 34aa214865e941723a66b34fd45c59036015ae53 /packages/website/ts | |
parent | 4a316571ff9b539a540f0503b5753eb03509fea8 (diff) | |
parent | d8d1c98a40f5cc895329f73af4d8d000c6a5195b (diff) | |
download | dexon-0x-contracts-b830c28d83a33c0170d4f150ee287ea97ccf7865.tar.gz dexon-0x-contracts-b830c28d83a33c0170d4f150ee287ea97ccf7865.tar.zst dexon-0x-contracts-b830c28d83a33c0170d4f150ee287ea97ccf7865.zip |
Merge pull request #1037 from 0xProject/feature/forwarder-helper/sra-and-rpc
[asset-buyer] Create new AssetBuyer class
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/types.ts | 6 | ||||
-rw-r--r-- | packages/website/ts/utils/analytics.ts | 3 | ||||
-rw-r--r-- | packages/website/ts/utils/token_address_overrides.ts | 2 |
3 files changed, 4 insertions, 7 deletions
diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts index 5fe9eef99..3c6d3df4d 100644 --- a/packages/website/ts/types.ts +++ b/packages/website/ts/types.ts @@ -1,4 +1,4 @@ -import { SignedOrder } from '@0xproject/types'; +import { ObjectMap, SignedOrder } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import { Provider } from 'ethereum-types'; import * as React from 'react'; @@ -519,10 +519,6 @@ export interface OutdatedWrappedEtherByNetworkId { export type ItemByAddress<T> = ObjectMap<T>; -export interface ObjectMap<T> { - [key: string]: T; -} - export type TokenStateByAddress = ItemByAddress<TokenState>; export interface TokenState { diff --git a/packages/website/ts/utils/analytics.ts b/packages/website/ts/utils/analytics.ts index 62dbff2b9..3aae317b0 100644 --- a/packages/website/ts/utils/analytics.ts +++ b/packages/website/ts/utils/analytics.ts @@ -1,6 +1,7 @@ import { assetDataUtils } from '@0xproject/order-utils'; +import { ObjectMap } from '@0xproject/types'; import * as _ from 'lodash'; -import { ObjectMap, PortalOrder } from 'ts/types'; +import { PortalOrder } from 'ts/types'; import { utils } from 'ts/utils/utils'; export interface HeapAnalytics { diff --git a/packages/website/ts/utils/token_address_overrides.ts b/packages/website/ts/utils/token_address_overrides.ts index 8353358bc..e7e916273 100644 --- a/packages/website/ts/utils/token_address_overrides.ts +++ b/packages/website/ts/utils/token_address_overrides.ts @@ -1,4 +1,4 @@ -import { ObjectMap } from 'ts/types'; +import { ObjectMap } from '@0xproject/types'; import { constants } from 'ts/utils/constants'; // Map of networkId -> tokenSymbol -> tokenAddress |