Skip to content

Commit a56ceec

Browse files
committed
chore: bump types
1 parent b18e5b7 commit a56ceec

File tree

4 files changed

+248
-215
lines changed

4 files changed

+248
-215
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"dependencies": {
7777
"@ethersproject/abi": "^5.7.0",
7878
"@ethersproject/contracts": "^5.7.0",
79-
"@lifi/types": "^1.10.1",
79+
"@lifi/types": "^1.11.1",
8080
"axios": "^1.1.3",
8181
"bignumber.js": "^9.1.0",
8282
"eth-rpc-errors": "^4.0.3",
@@ -89,13 +89,13 @@
8989
"@types/hdkey": "^2.0.0",
9090
"@types/jest": "^29.2.0",
9191
"@types/websocket": "^1.0.4",
92-
"@typescript-eslint/eslint-plugin": "^5.40.1",
93-
"@typescript-eslint/parser": "^5.40.1",
92+
"@typescript-eslint/eslint-plugin": "^5.41.0",
93+
"@typescript-eslint/parser": "^5.41.0",
9494
"eslint": "^8.26.0",
9595
"eslint-config-prettier": "^8.3.0",
9696
"eslint-plugin-prettier": "^4.2.1",
9797
"husky": "^8.0.1",
98-
"jest": "^29.2.1",
98+
"jest": "^29.2.2",
9999
"lint-staged": "^13.0.3",
100100
"npm-run-all": "^4.1.5",
101101
"pinst": "^3.0.0",

src/services/ApiService.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import {
99
import axios from 'axios'
1010
import { isRoutesRequest, isStep } from '../typeguards'
1111
import {
12-
Chain,
1312
ChainId,
1413
ChainKey,
1514
ChainsResponse,
15+
ExtendedChain,
1616
PossibilitiesRequest,
1717
PossibilitiesResponse,
1818
RoutesRequest,
@@ -245,7 +245,9 @@ const getStatus = async (
245245
}
246246
}
247247

248-
const getChains = async (options?: RequestOptions): Promise<Chain[]> => {
248+
const getChains = async (
249+
options?: RequestOptions
250+
): Promise<ExtendedChain[]> => {
249251
const configService = ConfigService.getInstance()
250252
const config = configService.getConfig()
251253

src/services/ChainsService.unit.spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import {
22
AddEthereumChainParameter,
3-
Chain,
43
ChainKey,
54
ChainType,
65
CoinKey,
6+
ExtendedChain,
7+
Token,
78
} from '../types'
89
import { ValidationError } from '../utils/errors'
910
import ApiService from './ApiService'
@@ -14,24 +15,26 @@ const mockedApiService = ApiService as jest.Mocked<typeof ApiService>
1415

1516
let chainsService: ChainsService
1617

17-
const chain1: Chain = {
18+
const chain1: ExtendedChain = {
1819
chainType: ChainType.EVM,
1920
key: ChainKey.ETH,
2021
name: 'Ethereum',
2122
coin: CoinKey.ETH,
2223
id: 1,
2324
mainnet: true,
2425
metamask: {} as AddEthereumChainParameter,
26+
nativeToken: {} as Token,
2527
}
2628

27-
const chain2: Chain = {
29+
const chain2: ExtendedChain = {
2830
chainType: ChainType.EVM,
2931
key: ChainKey.POL,
3032
name: 'Polygon',
3133
coin: CoinKey.MATIC,
3234
id: 137,
3335
mainnet: true,
3436
metamask: {} as AddEthereumChainParameter,
37+
nativeToken: {} as Token,
3538
}
3639

3740
describe('ChainsService', () => {

0 commit comments

Comments
 (0)