Skip to content

Commit

Permalink
Merge branch 'master' into remove-goerli-from-example-app-multichain-…
Browse files Browse the repository at this point in the history
…section
  • Loading branch information
nezouse authored May 14, 2024
2 parents 4af787a + 999b916 commit e0f62db
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 9 deletions.
7 changes: 7 additions & 0 deletions packages/coingecko/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @usedapp/coingecko

## 1.1.21

### Patch Changes

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

## 1.1.20

### 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.20",
"version": "1.1.21",
"main": "dist/cjs/src/index.js",
"module": "dist/esm/src/index.js",
"types": "dist/esm/src/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @usedapp/core

## 1.2.15

### Patch Changes

- c688928: 🌝 Add optimism sepolia to chain ids

## 1.2.14

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@usedapp/core",
"version": "1.2.14",
"version": "1.2.15",
"repository": "git@github.com:TrueFiEng/useDApp.git",
"author": "Ethworks",
"license": "MIT",
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 @@ -68,6 +68,7 @@ import {
MantleTestnet,
KromaSepoliaTestnet,
KromaMainnet,
OptimismSepolia,
} from '../model'

// rough alphabet order (put network from the same chain together)
Expand Down Expand Up @@ -121,6 +122,7 @@ export const DEFAULT_SUPPORTED_CHAINS = [
ThunderCoreTestnet,
OptimismGoerli,
OptimismKovan,
OptimismSepolia,
Optimism,
Velas,
VelasTestnet,
Expand Down Expand Up @@ -187,6 +189,7 @@ export enum ChainId {
Andromeda = 1088,
OptimismGoerli = 420,
OptimismKovan = 69,
OptimismSepolia = 11155420,
Optimism = 10,
Arbitrum = 42161,
ArbitrumRinkeby = 421611,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/hooks/useConfig.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('useConfig', () => {
const { result, waitForCurrent } = await renderDAppHook(() => useConfig(), { config: setup.config })
await waitForCurrent((val) => val !== undefined)
expect(result.error).to.be.undefined
expect(result.current.networks?.length).to.eq(68)
expect(result.current.networks?.length).to.eq(69)
expect(result.current.notifications?.checkInterval).to.eq(500)
expect(result.current.notifications?.expirationPeriod).to.eq(5000)
})
Expand Down
6 changes: 1 addition & 5 deletions packages/docs/playwright/with-metamask.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,8 @@ describe(`Browser: ${browserType.name()} with Metamask`, () => {
const popupPage = await popupPromise

await sleep(2000) // Wait for the popup to be fully loaded.
expect(
// if this link is visible, then the network does not match metamask records
await popupPage.isVisible(`//a[@href='https://metamask.zendesk.com/hc/en-us/articles/360057142392']`)
).to.be.false

await popupPage.click(XPath.text('a', 'View all'))
await popupPage.click(XPath.text('a', 'View all details'))
await waitForExpect(async () => {
expect(await popupPage.isVisible(`//*[text()='${Optimism.chainName}']`)).to.be.true
expect(await popupPage.isVisible(`//*[text()='${Optimism.rpcUrl}']`)).to.be.true
Expand Down
7 changes: 7 additions & 0 deletions packages/testing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @usedapp/testing

## 1.1.21

### Patch Changes

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

## 1.1.20

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@usedapp/testing",
"version": "1.1.20",
"version": "1.1.21",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"repository": "git@github.com:TrueFiEng/useDApp.git",
Expand Down

0 comments on commit e0f62db

Please sign in to comment.