Skip to content

Commit

Permalink
Merge branch 'master' into Live
Browse files Browse the repository at this point in the history
  • Loading branch information
inso- authored Jun 10, 2024
2 parents 3d0df01 + e0c8437 commit 00a20e8
Show file tree
Hide file tree
Showing 30 changed files with 984 additions and 536 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
},
"dependencies": {
"@changesets/cli": "^2.14.1",
"ethers": "5.6.9",
"ethers": "5.7.2",
"prettier": "2.1.2"
},
"resolutions": {
"ethers": "5.6.9"
"ethers": "5.7.2"
},
"devDependencies": {
"eslint-plugin-no-only-tests": "^2.6.0"
Expand Down
21 changes: 21 additions & 0 deletions packages/coingecko/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @usedapp/coingecko

## 1.1.22

### Patch Changes

- Updated dependencies [fb44f98]
- @usedapp/core@1.2.16

## 1.1.21

### Patch Changes

- Updated dependencies [c688928]
- @usedapp/core@1.2.15

## 1.1.20

### Patch Changes

- Updated dependencies [1ae0bcb]
- @usedapp/core@1.2.14

## 1.1.19

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/coingecko/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@usedapp/coingecko",
"version": "1.1.19",
"version": "1.1.22",
"main": "dist/cjs/src/index.js",
"module": "dist/esm/src/index.js",
"types": "dist/esm/src/index.d.ts",
Expand Down
8 changes: 2 additions & 6 deletions packages/coingecko/src/hooks/useCoingeckoTokenPrices.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import { renderHook } from '@testing-library/react-hooks'
import { useCoingeckoTokenPrices } from './useCoingeckoPrices'
import { expect } from 'chai'

const ADDRESSES = [
'0x0d8775f648430679a709e98d2b0cb6250d2887ef',
'0xe41d2489571d322189246dafa5ebde1f4699f498',
'0xf5dce57282a584d2746faf1593d3121fcac444dc',
]
const ADDRESSES = ['0x0d8775f648430679a709e98d2b0cb6250d2887ef']

describe('useCoingeckoTokenPrices', () => {
it('works', async () => {
Expand All @@ -15,7 +11,7 @@ describe('useCoingeckoTokenPrices', () => {
await waitForNextUpdate()
expect(result.error).to.be.undefined
expect(result.current).to.be.an('array')
expect(result.current?.length).to.eq(3)
expect(result.current?.length).to.eq(1)
expect(result.current![0]).to.be.a('number')
})
})
18 changes: 18 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @usedapp/core

## 1.2.16

### Patch Changes

- fb44f98: 🔬 Make useRawLogs more efficient and responsive

## 1.2.15

### Patch Changes

- c688928: 🌝 Add optimism sepolia to chain ids

## 1.2.14

### Patch Changes

- 1ae0bcb: Added 'Optimism Sepolia' testnet

## 1.2.13

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@usedapp/core",
"version": "1.2.13",
"version": "1.2.16",
"repository": "git@github.com:TrueFiEng/useDApp.git",
"author": "Ethworks",
"license": "MIT",
Expand Down Expand Up @@ -29,9 +29,9 @@
"react": "*"
},
"devDependencies": {
"@ethersproject/abi": "5.6.1",
"@ethersproject/abstract-provider": "^5.6.1",
"@ethersproject/providers": "5.6.2",
"@ethersproject/abi": "5.7.0",
"@ethersproject/abstract-provider": "^5.7.0",
"@ethersproject/providers": "5.7.2",
"@swc-node/register": "^1.4.2",
"@testing-library/react-hooks": "^5.0.3",
"@types/chai": "^4.2.14",
Expand All @@ -48,7 +48,7 @@
"chai-as-promised": "^7.1.1",
"eslint": "7.22.0",
"eslint-plugin-react-hooks": "^4.3.0",
"ethers": "5.6.9",
"ethers": "5.7.2",
"ganache": "7.9.0",
"jsdom": "^16.4.0",
"jsdom-global": "^3.0.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/constants/chainId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import {
MantleTestnet,
KromaSepoliaTestnet,
KromaMainnet,
OptimismSepolia,
} from '../model'

// rough alphabet order (put network from the same chain together)
Expand Down Expand Up @@ -122,6 +123,7 @@ export const DEFAULT_SUPPORTED_CHAINS = [
ThunderCoreTestnet,
OptimismGoerli,
OptimismKovan,
OptimismSepolia,
Optimism,
Velas,
VelasTestnet,
Expand Down Expand Up @@ -189,6 +191,7 @@ export enum ChainId {
Andromeda = 1088,
OptimismGoerli = 420,
OptimismKovan = 69,
OptimismSepolia = 11155420,
Optimism = 10,
Arbitrum = 42161,
ArbitrumRinkeby = 421611,
Expand Down
Loading

0 comments on commit 00a20e8

Please sign in to comment.