Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

fix: unbreak lib build #588

Merged
merged 2 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/asset-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"devDependencies": {
"@ethersproject/providers": "^5.5.2",
"@shapeshiftoss/caip": "^2.0.0",
"@shapeshiftoss/types": "^2.1.0",
"@shapeshiftoss/types": "^3.0.0",
"@types/lodash": "^4.14.172",
"@yfi/sdk": "^1.0.30",
"dotenv": "^14.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/chain-adapters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@shapeshiftoss/caip": "^2.1.2",
"@shapeshiftoss/hdwallet-core": "^1.20.0",
"@shapeshiftoss/hdwallet-native": "^1.20.0",
"@shapeshiftoss/types": "^2.1.0",
"@shapeshiftoss/types": "^3.0.0",
"@shapeshiftoss/unchained-client": "^6.6.0",
"@types/bs58check": "^2.1.0",
"@types/multicoin-address-validator": "^0.5.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const transformValidator = (
address: validator.address,
moniker: validator.moniker,
commission: validator.commission.rate,
apr: validator.apr
apr: validator.apr,
tokens: validator.tokens
})

export abstract class CosmosSdkBaseAdapter<T extends CosmosChainTypes> implements IChainAdapter<T> {
Expand Down
2 changes: 1 addition & 1 deletion packages/investor-foxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"@shapeshiftoss/caip": "^2.1.2",
"@shapeshiftoss/chain-adapters": "^2.13.0",
"@shapeshiftoss/hdwallet-core": "^1.20.0",
"@shapeshiftoss/types": "^2.1.0"
"@shapeshiftoss/types": "^3.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/investor-foxy/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import {
export * from './foxy-types'

export type ConstructorArgs = {
adapter: ChainAdapter<ChainTypes>
adapter: ChainAdapter<ChainTypes.Ethereum>
providerUrl: string
foxyAddresses: FoxyAddressesType
network?:
Expand All @@ -82,7 +82,7 @@ export const transformData = ({ tvl, apy, expired, ...contractData }: FoxyOpport
const TOKE_IPFS_URL = 'https://ipfs.tokemaklabs.xyz/ipfs'

export class FoxyApi {
public adapter: ChainAdapter<ChainTypes>
public adapter: ChainAdapter<ChainTypes.Ethereum>
public provider: HttpProvider
private providerUrl: string
public jsonRpcProvider: JsonRpcProvider
Expand Down
6 changes: 3 additions & 3 deletions packages/investor-foxy/src/foxycli.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { caip2 } from '@shapeshiftoss/caip'
import { ChainAdapterManager } from '@shapeshiftoss/chain-adapters'
import { ChainAdapter, ChainAdapterManager } from '@shapeshiftoss/chain-adapters'
import { NativeAdapterArgs, NativeHDWallet } from '@shapeshiftoss/hdwallet-native'
import { ChainTypes, NetworkTypes, WithdrawType } from '@shapeshiftoss/types'
import dotenv from 'dotenv'
Expand Down Expand Up @@ -44,9 +44,9 @@ const main = async (): Promise<void> => {
const liquidityReserveContractAddress = foxyAddresses[0].liquidityReserve

const api = new FoxyApi({
adapter: await adapterManager.byChainId(
adapter: (await adapterManager.byChainId(
caip2.toCAIP2({ chain: ChainTypes.Ethereum, network: NetworkTypes.MAINNET })
),
)) as ChainAdapter<ChainTypes.Ethereum>,
providerUrl: process.env.ARCHIVE_NODE || 'http://127.0.0.1:8545/',
foxyAddresses: foxyAddresses
})
Expand Down
4 changes: 2 additions & 2 deletions packages/investor-yearn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"@shapeshiftoss/types": "^2.1.0"
},
"devDependencies": {
"@shapeshiftoss/chain-adapters": "^2.0.0",
"@shapeshiftoss/chain-adapters": "^2.13.0",
"@shapeshiftoss/hdwallet-core": "^1.20.0",
"@shapeshiftoss/types": "^2.1.0"
"@shapeshiftoss/types": "^3.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/market-service/src/market-service-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PriceHistoryArgs,
PriceHistoryType
} from '@shapeshiftoss/types'
import { FindAllMarketArgs } from '@shapeshiftoss/types/src'
import { FindAllMarketArgs } from '@shapeshiftoss/types'

import { MarketProviders } from './market-providers'

Expand Down
2 changes: 1 addition & 1 deletion packages/swapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@shapeshiftoss/caip": "^2.0.0",
"@shapeshiftoss/chain-adapters": "^2.0.0",
"@shapeshiftoss/hdwallet-core": "^1.20.0",
"@shapeshiftoss/types": "^2.1.0",
"@shapeshiftoss/types": "^3.0.0",
"@types/readline-sync": "^1.4.4",
"readline-sync": "^1.4.10",
"web3-utils": "^1.5.2"
Expand Down