diff --git a/.changeset/angry-squids-rescue.md b/.changeset/angry-squids-rescue.md deleted file mode 100644 index 0a8626dbc2..0000000000 --- a/.changeset/angry-squids-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": minor ---- - -Added experimental named tuple support for contract-related actions and utilities. diff --git a/.changeset/cool-rice-speak.md b/.changeset/cool-rice-speak.md deleted file mode 100644 index 1eb12ff170..0000000000 --- a/.changeset/cool-rice-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": patch ---- - -Added DataHaven Testnet chain. diff --git a/.changeset/curvy-oranges-think.md b/.changeset/curvy-oranges-think.md deleted file mode 100644 index 76dea73146..0000000000 --- a/.changeset/curvy-oranges-think.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": patch ---- - -Added missing /_#**PURE**_/ annotations to chains. diff --git a/.changeset/fair-ways-check.md b/.changeset/fair-ways-check.md deleted file mode 100644 index 5de2361229..0000000000 --- a/.changeset/fair-ways-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": patch ---- - -Added support for EntryPoint 0.9 on `toSimple7702SmartAccount`. diff --git a/.changeset/five-forks-tell.md b/.changeset/five-forks-tell.md deleted file mode 100644 index 156ba1aa94..0000000000 --- a/.changeset/five-forks-tell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": patch ---- - -Added Somnia network. diff --git a/.changeset/fluffy-oranges-hammer.md b/.changeset/fluffy-oranges-hammer.md deleted file mode 100644 index d7d986dd80..0000000000 --- a/.changeset/fluffy-oranges-hammer.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -"viem": minor ---- - -Added first-class support and extension for [Tempo](https://docs.tempo.xyz). - ---- - -Attaching a Tempo chain to your client grants your transaction actions with [Tempo superpowers](https://docs.tempo.xyz/protocol/transactions) like batched calls and external fee payer capabilities. - -```ts -import { createClient, http } from 'viem' -import { privateKeyToAccount } from 'viem/accounts' -import { tempoTestnet } from 'viem/chains' - -const client = createClient({ - account: privateKeyToAccount('0x…'), - chain: tempoTestnet.extend({ feeToken: '0x20c00000000000000000000000000000000000fa' }), - transport: http(), -}) - -const receipt = client.sendTransactionSync({ - calls: [ - { data: '0x…', to: '0x…' }, - { data: '0x…', to: '0x…' }, - { data: '0x…', to: '0x…' }, - ], - feePayer: privateKeyToAccount('0x…'), -}) -``` - -You can also use Tempo Actions to call to enshrined protocol features like the Stablecoin Token Factory: - -```ts -import { createClient, http } from 'viem' -import { privateKeyToAccount } from 'viem/accounts' -import { tempoTestnet } from 'viem/chains' -import { tempoActions } from 'viem/tempo' - -const client = createClient({ - account: privateKeyToAccount('0x…'), - chain: tempoTestnet, - transport: http(), -}) - .extend(tempoActions()) - -const { receipt, token } = await client.token.createSync({ - currency: 'USD', - name: 'My Company USD', - symbol: 'CUSD', -}) -``` \ No newline at end of file diff --git a/.changeset/happy-hoops-sniff.md b/.changeset/happy-hoops-sniff.md deleted file mode 100644 index fd19474032..0000000000 --- a/.changeset/happy-hoops-sniff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": patch ---- - -Added New SKALE Base Chains (Testnet and Mainnet) diff --git a/.changeset/late-papers-return.md b/.changeset/late-papers-return.md deleted file mode 100644 index 16421c9d98..0000000000 --- a/.changeset/late-papers-return.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": patch ---- - -Added `defineChain#verifyHash` for chain-specific signature verification. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8db598976b..f8f3ac457b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -209,7 +209,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -222,7 +222,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -235,7 +235,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -248,7 +248,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -261,7 +261,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -280,7 +280,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: '@types/react': specifier: ^19 @@ -308,7 +308,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: '@types/react': specifier: ^19 @@ -330,7 +330,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -343,7 +343,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -362,7 +362,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: '@types/react': specifier: ^19 @@ -384,7 +384,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -397,7 +397,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -410,7 +410,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -423,7 +423,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -470,7 +470,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: '@types/react': specifier: ^19 @@ -498,7 +498,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: '@types/react': specifier: ^19 @@ -520,7 +520,7 @@ importers: dependencies: viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: typescript: specifier: ^5.0.3 @@ -539,7 +539,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.42.0(typescript@5.6.2)(zod@3.25.76) + version: 2.42.1(typescript@5.6.2)(zod@3.25.76) devDependencies: '@types/react': specifier: ^19 @@ -6875,14 +6875,6 @@ packages: vfile@6.0.3: resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} - viem@2.42.0: - resolution: {integrity: sha512-H0WC6czWi7ITBoHkHJVGyjLOecqh/9XJzl4V9XVIwGs/JC3UAJ44rPvkzuYbhDknLWcnREMY/MnXJY7fc7mpGA==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - viem@2.42.1: resolution: {integrity: sha512-NzT/f54jT+b0Um6pYzN/uAGMLg+3twhricAzXS+XH8pVIREzPEh7P25rlhPQnLYiPWzQd9mrFcvnm73Sc8bx+A==} peerDependencies: @@ -14445,7 +14437,7 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.2 - viem@2.42.0(typescript@5.6.2)(zod@3.25.76): + viem@2.42.1(typescript@5.6.2)(zod@3.25.76): dependencies: '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index b036a6b2f3..e52619bf0f 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,75 @@ # viem +## 2.43.0 + +### Minor Changes + +- [#4107](https://github.com/wevm/viem/pull/4107) [`b423fc17eba4f9f0648f72f5358a8e5ed9d5f092`](https://github.com/wevm/viem/commit/b423fc17eba4f9f0648f72f5358a8e5ed9d5f092) Thanks [@tmm](https://github.com/tmm)! - Added experimental named tuple support for contract-related actions and utilities. + +- [#4147](https://github.com/wevm/viem/pull/4147) [`734d99d9da4b76f9aa985a800213b4ba581607df`](https://github.com/wevm/viem/commit/734d99d9da4b76f9aa985a800213b4ba581607df) Thanks [@jxom](https://github.com/jxom)! - Added first-class support and extension for [Tempo](https://docs.tempo.xyz). + + *** + + Attaching a Tempo chain to your client grants your transaction actions with [Tempo superpowers](https://docs.tempo.xyz/protocol/transactions) like batched calls and external fee payer capabilities. + + ```ts + import { createClient, http } from "viem"; + import { privateKeyToAccount } from "viem/accounts"; + import { tempoTestnet } from "viem/chains"; + + const client = createClient({ + account: privateKeyToAccount("0x…"), + chain: tempoTestnet.extend({ + feeToken: "0x20c00000000000000000000000000000000000fa", + }), + transport: http(), + }); + + const receipt = client.sendTransactionSync({ + calls: [ + { data: "0x…", to: "0x…" }, + { data: "0x…", to: "0x…" }, + { data: "0x…", to: "0x…" }, + ], + feePayer: privateKeyToAccount("0x…"), + }); + ``` + + You can also use Tempo Actions to call to enshrined protocol features like the Stablecoin Token Factory: + + ```ts + import { createClient, http } from "viem"; + import { privateKeyToAccount } from "viem/accounts"; + import { tempoTestnet } from "viem/chains"; + import { tempoActions } from "viem/tempo"; + + const client = createClient({ + account: privateKeyToAccount("0x…"), + chain: tempoTestnet, + transport: http(), + }).extend(tempoActions()); + + const { receipt, token } = await client.token.createSync({ + currency: "USD", + name: "My Company USD", + symbol: "CUSD", + }); + ``` + +### Patch Changes + +- [#4168](https://github.com/wevm/viem/pull/4168) [`3ff6c2f19350dcbe49017e2b3d5a2cf761ab9070`](https://github.com/wevm/viem/commit/3ff6c2f19350dcbe49017e2b3d5a2cf761ab9070) Thanks [@albertov19](https://github.com/albertov19)! - Added DataHaven Testnet chain. + +- [`aa19d02951f5af26bdcfb472901d940ba446672b`](https://github.com/wevm/viem/commit/aa19d02951f5af26bdcfb472901d940ba446672b) Thanks [@jxom](https://github.com/jxom)! - Added missing /_#**PURE**_/ annotations to chains. + +- [`e0ccf5ba210a14ee17df49db90da2b37aa592222`](https://github.com/wevm/viem/commit/e0ccf5ba210a14ee17df49db90da2b37aa592222) Thanks [@jxom](https://github.com/jxom)! - Added support for EntryPoint 0.9 on `toSimple7702SmartAccount`. + +- [#4172](https://github.com/wevm/viem/pull/4172) [`9b7d6734c2ac4b6b26f7284842eb685c92a85e8e`](https://github.com/wevm/viem/commit/9b7d6734c2ac4b6b26f7284842eb685c92a85e8e) Thanks [@richiedunk](https://github.com/richiedunk)! - Added Somnia network. + +- [#4167](https://github.com/wevm/viem/pull/4167) [`bf53fd1d78de1f5b5658e6d9242a348d1667c565`](https://github.com/wevm/viem/commit/bf53fd1d78de1f5b5658e6d9242a348d1667c565) Thanks [@manuelbarbas](https://github.com/manuelbarbas)! - Added New SKALE Base Chains (Testnet and Mainnet) + +- [`4f7db6a9e9eacd4152ddf89c84f019e4b93b70f0`](https://github.com/wevm/viem/commit/4f7db6a9e9eacd4152ddf89c84f019e4b93b70f0) Thanks [@jxom](https://github.com/jxom)! - Added `defineChain#verifyHash` for chain-specific signature verification. + ## 2.42.1 ### Patch Changes diff --git a/src/errors/version.ts b/src/errors/version.ts index 6a887fcf02..db6aff71ff 100644 --- a/src/errors/version.ts +++ b/src/errors/version.ts @@ -1 +1 @@ -export const version = '2.42.1' +export const version = '2.43.0' diff --git a/src/jsr.json b/src/jsr.json index bfd61c9324..9a3148ec08 100644 --- a/src/jsr.json +++ b/src/jsr.json @@ -1,6 +1,6 @@ { "name": "@wevm/viem", - "version": "2.42.1", + "version": "2.43.0", "exports": { ".": "./index.ts", "./accounts-abstraction": "./account-abstraction/index.ts", diff --git a/src/package.json b/src/package.json index 0c9441aa95..a7951e6802 100644 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "viem", "description": "TypeScript Interface for Ethereum", - "version": "2.42.1", + "version": "2.43.0", "type": "module", "main": "./_cjs/index.js", "module": "./_esm/index.js",