Skip to content

Commit

Permalink
chore: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Aug 6, 2024
2 parents 6882b55 + 5455a77 commit d6b2367
Show file tree
Hide file tree
Showing 267 changed files with 6,245 additions and 1,232 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-yaks-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added ZKsync config to Abstract Testnet chain.
5 changes: 5 additions & 0 deletions .changeset/metal-points-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": minor
---

**Experimental:** Added EIP-7702 Extension. [See Docs](https://viem.sh/experimental/eip7702)
11 changes: 11 additions & 0 deletions .changeset/new-mails-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"viem": minor
---

Renamed "zkSync" to "ZKsync":
- Context: "zkSync" was officially renamed to "ZKsync" a while ago.
- Variable names: `zkSync` -> `zksync` (for simplicity and consistency between folder/file names and variables).
- Types: `ZkSync` -> `Zksync`.
- Old naming still remains in Viem, however is marked as `@deprecated` and will be removed in the next major release.

Removed deprecated `zkSyncTestnet` chain.
16 changes: 16 additions & 0 deletions .changeset/silver-eggs-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"viem": minor
---

Added ability for consumer (libraries built on top of Viem) to globally configure properties on `BaseError`.

```ts
import { setErrorConfig } from 'viem'

setErrorConfig({
getDocsUrl({ name }) {
return `https://examplelib.com?error=${name}`
}
version: '[email protected]'
})
```
10 changes: 2 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"javascript.preferences.autoImportFileExcludePatterns": [
"**/node_modules/**",
"**/_types/**"
],
"typescript.preferences.autoImportFileExcludePatterns": [
"**/node_modules/**",
"**/_types/**"
],
"javascript.preferences.autoImportFileExcludePatterns": ["**/_types/**"],
"typescript.preferences.autoImportFileExcludePatterns": ["**/_types/**"],
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
Expand Down
23 changes: 23 additions & 0 deletions contracts/src/test/BatchCallInvoker.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.13;

contract BatchCallInvoker {
struct Call {
bytes data;
address to;
uint256 value;
}

event CallEmitted(address indexed to, uint256 value, bytes data);

function execute(Call[] calldata calls) external payable {
for (uint256 i = 0; i < calls.length; i++) {
Call memory call = calls[i];

(bool success, ) = call.to.call{value: call.value}(call.data);
require(success, "call reverted");

emit CallEmitted(call.to, call.value, call.data);
}
}
}
10 changes: 10 additions & 0 deletions contracts/src/test/Event.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.13;

contract Event {
event MessageEmitted(address indexed to, uint256 value, bytes data);

function execute() external payable {
emit MessageEmitted(msg.sender, msg.value, msg.data);
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"ethers": "^6.0.2",
"glob": "^10.4.1",
"knip": "^5.17.4",
"prool": "^0.0.15",
"prool": "^0.0.16",
"publint": "^0.2.8",
"sherif": "^0.8.4",
"simple-git-hooks": "^2.8.1",
Expand Down Expand Up @@ -163,7 +163,7 @@
{
"name": "import * from 'viem/chains'",
"path": "./src/_esm/chains/index.js",
"limit": "31 kB",
"limit": "31.5 kB",
"import": "*"
},
{
Expand All @@ -187,7 +187,7 @@
{
"name": "import { getEnsAvatar } from 'viem/ens'",
"path": "./src/_esm/ens/index.js",
"limit": "22.7 kB",
"limit": "23 kB",
"import": "{ getEnsAvatar }"
},
{
Expand Down
63 changes: 28 additions & 35 deletions pnpm-lock.yaml

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

Loading

0 comments on commit d6b2367

Please sign in to comment.