diff --git a/packages/asset-service/src/service/AssetServiceTestData.ts b/packages/asset-service/src/service/AssetServiceTestData.ts deleted file mode 100644 index e282aad7a..000000000 --- a/packages/asset-service/src/service/AssetServiceTestData.ts +++ /dev/null @@ -1,265 +0,0 @@ -import { Asset } from '@shapeshiftoss/types' - -import { AssetsById } from './AssetService' - -export const ETHMockedAsset: Asset = { - assetId: 'eip155:1/slip44:60', - chainId: 'eip155:1', - symbol: 'ETH', - name: 'Ethereum', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/eth@2x.png', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - // tokens: [ - // { - // assetId: 'eip155:1/erc20:0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9', - // chainId: 'eip155:1', - // name: 'Aave', - // precision: 18, - // color: '#FFFFFF', - // secondaryColor: '#FFFFFF', - // icon: 'https://assets.coingecko.com/coins/images/12645/thumb/AAVE.png?1601374110', - // symbol: 'AAVE' - // }, - // { - // assetId: 'eip155:1/erc20:0xc770eefad204b5180df6a14ee197d99d808ee52d', - // chainId: 'eip155:1', - // name: 'Fox', - // precision: 18, - // color: '#FFFFFF', - // secondaryColor: '#FFFFFF', - // icon: 'https://assets.coincap.io/assets/icons/fox@2x.png', - // symbol: 'FOX' - // } - // ] -} - -export const BTCMockedAsset: Asset = { - assetId: 'bip122:000000000019d6689c085ae165831e93/slip44:0', - chainId: 'bip122:000000000019d6689c085ae165831e93', - symbol: 'BTC', - name: 'Bitcoin', - precision: 8, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/btc@2x.png', - explorer: 'https://live.blockcypher.com', - explorerTxLink: 'https://live.blockcypher.com/btc/tx/', - explorerAddressLink: 'https://live.blockcypher.com/btc/address/' -} - -export const mockBaseAssets: Asset[] = [ - ETHMockedAsset, - { - assetId: 'eip155:3/slip44:60', - chainId: 'eip155:3', - symbol: 'ETH', - name: 'Ethereum', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/eth@2x.png', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - // tokens: [ - // { - // assetId: 'eip155:3/erc20:0xc770eefad204b5180df6a14ee197d99d808ee52d', - // chainId: 'eip155:3', - // name: 'Fox', - // precision: 18, - // color: '#FFFFFF', - // icon: 'https://assets.coincap.io/assets/icons/fox@2x.png', - // symbol: 'FOX' - // } - // ] - }, - BTCMockedAsset, - { - assetId: 'bip122:000000000933ea01ad0ee984209779ba/slip44:0', - chainId: 'bip122:000000000933ea01ad0ee984209779ba', - symbol: 'BTC', - name: 'Bitcoin', - precision: 8, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/btc@2x.png', - explorer: 'https://live.blockcypher.com/btc-testnet/', - explorerTxLink: 'https://live.blockcypher.com/btc-testnet/tx/', - explorerAddressLink: 'https://live.blockcypher.com/btc-testnet/address/' - } -] - -export const mockAssets: Asset[] = [ - { - assetId: 'eip155:1/slip44:60', - chainId: 'eip155:1', - symbol: 'ETH', - name: 'Ethereum', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/eth@2x.png', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - }, - { - assetId: 'eip155:1/erc20:0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9', - chainId: 'eip155:1', - name: 'Aave', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coingecko.com/coins/images/12645/thumb/AAVE.png?1601374110', - symbol: 'AAVE', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - }, - { - assetId: 'eip155:1/erc20:0xc770eefad204b5180df6a14ee197d99d808ee52d', - chainId: 'eip155:1', - name: 'Fox', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/fox@2x.png', - symbol: 'FOX', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - }, - { - assetId: 'eip155:3/slip44:60', - chainId: 'eip155:3', - symbol: 'ETH', - name: 'Ethereum', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/eth@2x.png', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - }, - { - assetId: 'eip155:3/erc20:0xc770eefad204b5180df6a14ee197d99d808ee52d', - chainId: 'eip155:3', - name: 'Fox', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/fox@2x.png', - symbol: 'FOX', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - }, - { - assetId: 'bip122:000000000019d6689c085ae165831e93/slip44:0', - chainId: 'bip122:000000000019d6689c085ae165831e93', - symbol: 'BTC', - name: 'Bitcoin', - precision: 8, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/btc@2x.png', - explorer: 'https://live.blockcypher.com', - explorerTxLink: 'https://live.blockcypher.com/btc/tx/', - explorerAddressLink: 'https://live.blockcypher.com/btc/address/' - }, - { - assetId: 'bip122:000000000933ea01ad0ee984209779ba/slip44:0', - chainId: 'bip122:000000000933ea01ad0ee984209779ba', - symbol: 'BTC', - name: 'Bitcoin', - precision: 8, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/btc@2x.png', - explorer: 'https://live.blockcypher.com/btc-testnet/', - explorerTxLink: 'https://live.blockcypher.com/btc-testnet/tx/', - explorerAddressLink: 'https://live.blockcypher.com/btc-testnet/address/' - } -] - -export const mockIndexedAssetData: AssetsById = { - ethereum_MAINNET: { - assetId: 'eip155:1/slip44:60', - chainId: 'eip155:1', - symbol: 'ETH', - name: 'Ethereum', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/eth@2x.png', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - }, - ethereum_MAINNET_0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9: { - assetId: 'eip155:1/erc20:0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9', - chainId: 'eip155:1', - name: 'Aave', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coingecko.com/coins/images/12645/thumb/AAVE.png?1601374110', - symbol: 'AAVE', - explorer: 'https://etherscan.io', - explorerAddressLink: 'https://etherscan.io/address/', - explorerTxLink: 'https://etherscan.io/tx/' - }, - ethereum_MAINNET_0xc770eefad204b5180df6a14ee197d99d808ee52d: { - assetId: 'eip155:1/erc20:0xc770eefad204b5180df6a14ee197d99d808ee52d', - chainId: 'eip155:1', - name: 'Fox', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/fox@2x.png', - symbol: 'FOX', - explorer: 'https://etherscan.io', - explorerAddressLink: 'https://etherscan.io/address/', - explorerTxLink: 'https://etherscan.io/tx/' - }, - ethereum_ETH_ROPSTEN: { - assetId: 'eip155:3/slip44:60', - chainId: 'eip155:3', - symbol: 'ETH', - name: 'Ethereum', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/eth@2x.png', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - }, - ethereum_ETH_ROPSTEN_0xc770eefad204b5180df6a14ee197d99d808ee52d: { - assetId: 'eip155:3/erc20:0xc770eefad204b5180df6a14ee197d99d808ee52d', - chainId: 'eip155:3', - name: 'Fox', - precision: 18, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/fox@2x.png', - symbol: 'FOX', - explorer: 'https://etherscan.io', - explorerTxLink: 'https://etherscan.io/tx/', - explorerAddressLink: 'https://etherscan.io/address/' - }, - bitcoin_MAINNET: { - assetId: 'bip122:000000000019d6689c085ae165831e93/slip44:0', - chainId: 'bip122:000000000019d6689c085ae165831e93', - symbol: 'BTC', - name: 'Bitcoin', - precision: 8, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/btc@2x.png', - explorer: 'https://live.blockcypher.com', - explorerTxLink: 'https://live.blockcypher.com/btc/tx/', - explorerAddressLink: 'https://live.blockcypher.com/btc/address/' - }, - bitcoin_TESTNET: { - assetId: 'bip122:000000000933ea01ad0ee984209779ba/slip44:0', - chainId: 'bip122:000000000933ea01ad0ee984209779ba', - symbol: 'BTC', - name: 'Bitcoin', - precision: 8, - color: '#FFFFFF', - icon: 'https://assets.coincap.io/assets/icons/btc@2x.png', - explorer: 'https://live.blockcypher.com/btc-testnet/', - explorerTxLink: 'https://live.blockcypher.com/btc-testnet/tx/', - explorerAddressLink: 'https://live.blockcypher.com/btc-testnet/address/' - } -} diff --git a/packages/investor-foxy/src/api/foxy-types.ts b/packages/investor-foxy/src/api/foxy-types.ts index 27b0af73a..d86ac9539 100644 --- a/packages/investor-foxy/src/api/foxy-types.ts +++ b/packages/investor-foxy/src/api/foxy-types.ts @@ -46,11 +46,6 @@ export type TxInput = { export type TxInputWithoutAmount = Pick> -export type TxInputWithoutAmountUnsigned = Pick< - TxInputWithoutAmount, - Exclude -> - export type TxInputWithoutAmountAndWallet = Pick< TxInputWithoutAmount, Exclude @@ -141,13 +136,6 @@ export type Recipient = { amount: string } -export type EstimateClaimFromTokemak = TxInputWithoutAmountAndWallet & { - recipient: Recipient - v: number - r: string - s: string -} - export type RebaseEvent = { epoch: string blockNumber: number diff --git a/packages/investor-foxy/src/constants/enums.ts b/packages/investor-foxy/src/constants/enums.ts index 62b127320..b91dbec8e 100644 --- a/packages/investor-foxy/src/constants/enums.ts +++ b/packages/investor-foxy/src/constants/enums.ts @@ -1,7 +1,3 @@ -export enum DefiProvider { - Foxy = 'foxy' -} - export enum DefiType { TokenStaking = 'token-staking' } diff --git a/packages/market-service/src/coingecko/coingecko-types.ts b/packages/market-service/src/coingecko/coingecko-types.ts index 67a8760aa..7b4421377 100644 --- a/packages/market-service/src/coingecko/coingecko-types.ts +++ b/packages/market-service/src/coingecko/coingecko-types.ts @@ -1,5 +1,3 @@ -export type CoinGeckoMarketCapNoId = Omit - export type CoinGeckoMarketData = { current_price: Record market_cap: Record diff --git a/packages/market-service/src/yearn/yearn-types.ts b/packages/market-service/src/yearn/yearn-types.ts index 0d063b1ea..0b3ff088d 100644 --- a/packages/market-service/src/yearn/yearn-types.ts +++ b/packages/market-service/src/yearn/yearn-types.ts @@ -1,58 +1,3 @@ -type Strategy = { - address: string - name: string -} -export type YearnMarketCap = { - inception: number - address: string - symbol: string - name: string - display_name: string - icon: string - token: { - name: string - symbol: string - address: string - decimals: number - display_name: string - icon: string - } - tvl: { - total_assets: number - price: number - tvl: number - } - apy: { - type: string - gross_apr: number - net_apy: number - fees: { - performance: number | null - withdrawal: number | null - management: number | null - keep_crv: number | null - cvx_keep_crv: number | null - } - points: null | { - week_ago: number | null - month_ago: number | null - inception: number | null - } - composite: null - } - strategies: Strategy[] - endorsed: boolean - version: string - decimals: number - type: string - emergency_shutdown: boolean - updated: number - migration: null | { - available: boolean - address: string - } -} - type VaultDayDatum = { pricePerShare: string timestamp: string diff --git a/packages/swapper/src/api.ts b/packages/swapper/src/api.ts index cf65e8f33..7780714a3 100644 --- a/packages/swapper/src/api.ts +++ b/packages/swapper/src/api.ts @@ -141,11 +141,6 @@ export interface MinMaxOutput { maximum: string } -export type GetMinMaxInput = { - sellAsset: Asset - buyAsset: Asset -} - export type ApprovalNeededOutput = { approvalNeeded: boolean } diff --git a/packages/types/src/market.ts b/packages/types/src/market.ts index 5ffbf21c1..401016372 100644 --- a/packages/types/src/market.ts +++ b/packages/types/src/market.ts @@ -31,7 +31,6 @@ export type MarketDataArgs = { } export type FindAllMarketType = (args: FindAllMarketArgs) => Promise -export type FindByCaip19MarketType = (args: MarketDataArgs) => Promise export type PriceHistoryType = (args: PriceHistoryArgs) => Promise