Skip to content

Commit

Permalink
chore: bump viem (#3273)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Oct 9, 2024
1 parent 3d8db6f commit ea18f27
Show file tree
Hide file tree
Showing 22 changed files with 175 additions and 173 deletions.
25 changes: 25 additions & 0 deletions .changeset/hip-jokes-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
"@latticexyz/block-logs-stream": patch
"@latticexyz/cli": patch
"@latticexyz/common": patch
"@latticexyz/config": patch
"@latticexyz/dev-tools": patch
"@latticexyz/explorer": patch
"@latticexyz/faucet": patch
"@latticexyz/protocol-parser": patch
"@latticexyz/schema-type": patch
"@latticexyz/stash": patch
"@latticexyz/store-indexer": patch
"@latticexyz/store-sync": patch
"@latticexyz/store": patch
"@latticexyz/world": patch
"create-mud": patch
---

Bumped viem to v2.21.19.

MUD projects using these packages should do the same to ensure no type errors due to mismatched versions:

```
pnpm recursive up [email protected]
```
2 changes: 1 addition & 1 deletion e2e/packages/client-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"react": "^18.2.0",
"rxjs": "7.5.5",
"threads": "^1.7.0",
"viem": "2.21.6"
"viem": "2.21.19"
},
"devDependencies": {
"vite": "^4.2.1",
Expand Down
2 changes: 1 addition & 1 deletion e2e/packages/sync-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"happy-dom": "^12.10.3",
"postgres": "3.3.5",
"typescript": "5.4.2",
"viem": "2.21.6",
"viem": "2.21.19",
"vite": "^4.2.1",
"vitest": "0.34.6",
"zod": "3.23.8"
Expand Down
2 changes: 1 addition & 1 deletion e2e/packages/test-data/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 43 additions & 69 deletions e2e/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/local-explorer/packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rxjs": "7.5.5",
"viem": "2.21.6"
"viem": "2.21.19"
},
"devDependencies": {
"@types/react": "18.2.22",
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/packages/client-phaser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"styled-components": "^5.3.10",
"threads": "^1.7.0",
"use-resize-observer": "^9.1.0",
"viem": "2.21.6",
"viem": "2.21.19",
"vite": "^4.2.1",
"zustand": "^4.3.8"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/packages/client-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"react-dom": "^18.2.0",
"rxjs": "7.5.5",
"threads": "^1.7.0",
"viem": "2.21.6"
"viem": "2.21.19"
},
"devDependencies": {
"@types/react": "18.2.22",
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/packages/client-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"react": "^18.2.0",
"rxjs": "7.5.5",
"threads": "^1.7.0",
"viem": "2.21.6"
"viem": "2.21.19"
},
"devDependencies": {
"vite": "^4.2.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple-accounts/packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rxjs": "7.5.5",
"viem": "2.21.6"
"viem": "2.21.19"
},
"devDependencies": {
"@types/react": "18.2.22",
Expand Down
1 change: 0 additions & 1 deletion packages/explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"@rainbow-me/rainbowkit": "^2.1.5",
"@tanstack/react-query": "^5.51.3",
"@tanstack/react-table": "^8.19.3",
"@wagmi/core": "catalog:",
"better-sqlite3": "^8.6.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useParams } from "next/navigation";
import { toast } from "sonner";
import { Hex } from "viem";
import { useAccount, useConfig } from "wagmi";
import { waitForTransactionReceipt, writeContract } from "wagmi/actions";
import { ChangeEvent, useState } from "react";
import { Table } from "@latticexyz/config";
import {
Expand All @@ -15,7 +16,6 @@ import {
import IBaseWorldAbi from "@latticexyz/world/out/IBaseWorld.sol/IBaseWorld.abi.json";
import { useConnectModal } from "@rainbow-me/rainbowkit";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { waitForTransactionReceipt, writeContract } from "@wagmi/core";
import { Checkbox } from "../../../../../../components/ui/Checkbox";
import { cn } from "../../../../../../utils";
import { useChain } from "../../../../hooks/useChain";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useParams } from "next/navigation";
import { toast } from "sonner";
import { Abi, AbiFunction, Hex } from "viem";
import { useAccount, useConfig } from "wagmi";
import { readContract, waitForTransactionReceipt, writeContract } from "wagmi/actions";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { readContract, waitForTransactionReceipt, writeContract } from "@wagmi/core";
import { useChain } from "../../../../hooks/useChain";
import { FunctionType } from "./FunctionField";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
parseEventLogs,
} from "viem";
import { useConfig, useWatchBlocks } from "wagmi";
import { getTransaction, simulateContract, waitForTransactionReceipt } from "wagmi/actions";
import { useStore } from "zustand";
import { useCallback, useEffect, useMemo, useState } from "react";
import { getTransaction, simulateContract, waitForTransactionReceipt } from "@wagmi/core";
import { Message } from "../../../../../../observer/messages";
import { Write, store } from "../../../../../../observer/store";
import { useChain } from "../../../../hooks/useChain";
Expand Down
Loading

0 comments on commit ea18f27

Please sign in to comment.