Skip to content

Commit

Permalink
Merge branch 'wevm:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-bozin-txfusion authored Jul 23, 2024
2 parents 6257b0c + 8e3c9ec commit a28402d
Show file tree
Hide file tree
Showing 337 changed files with 4,634 additions and 14,765 deletions.
5 changes: 5 additions & 0 deletions .changeset/.lucky-actors-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Crab and Koi chain
1 change: 0 additions & 1 deletion .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ runs:

- name: Set up pnpm
uses: wevm/actions/.github/actions/pnpm@main

2 changes: 1 addition & 1 deletion .github/workflows/test-rpc-providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

- name: Set up Bun
if: ${{ matrix.runtime == 'bun' }}
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.0.30

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:

- name: Check for unused files, dependencies, and exports
run: pnpm knip --production

- name: Check size
run: pnpm size

types:
name: Types
Expand Down Expand Up @@ -171,7 +174,7 @@ jobs:

- name: Set up Bun
if: ${{ matrix.runtime == 'bun' }}
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.0.30

Expand Down
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "contracts/lib/forge-std"]
path = contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "test/contracts/lib/solady"]
path = test/contracts/lib/solady
url = git@github.com:foundry-rs/forge-std.git
[submodule "contracts/lib/solady"]
path = contracts/lib/solady
url = [email protected]:Vectorized/solady.git
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { join } from 'node:path'
import { Glob } from 'bun'

const generatedPath = join(import.meta.dir, '../test/contracts/generated.ts')
const generatedPath = join(import.meta.dir, '../contracts/generated.ts')
Bun.write(generatedPath, '')

const generated = Bun.file(generatedPath)
const writer = generated.writer()

const fileNames = []

const glob = new Glob('test/contracts/out/**/*.json')
const glob = new Glob('contracts/out/**/*.json')
for await (const file of glob.scan('.')) {
if (file.includes('build-info')) continue

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"CHANGELOG.md",
"bun.lockb",
"cache",
"contracts",
"test/contracts",
"test/kzg/*.json",
"test/kzg/*.txt",
Expand All @@ -21,6 +22,7 @@
"generated.ts",
"vectors/*.json",
"vectors/**/*.test.ts",
"wagmi",
"site/dist"
]
},
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[profile.default]
remappings = [
"solady/=lib/solady/src/",
]
src = "src"
out = "out"
1 change: 1 addition & 0 deletions contracts/lib/forge-std
Submodule forge-std added at 07263d
1 change: 1 addition & 0 deletions contracts/lib/solady
Submodule solady added at 8200a7
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"build:trustedSetups:start": "mv src/node/trustedSetups.ts src/node/trustedSetups_esm.ts && mv src/node/trustedSetups_cjs.ts src/node/trustedSetups.ts",
"build:trustedSetups:end": "mv src/node/trustedSetups.ts src/node/trustedSetups_cjs.ts && mv src/node/trustedSetups_esm.ts src/node/trustedSetups.ts",
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./src/_types --emitDeclarationOnly --declaration --declarationMap",
"changeset:prepublish": "pnpm version:update && bun scripts/prepublishOnly.ts && pnpm build",
"changeset:prepublish": "pnpm version:update && bun .scripts/prepublishOnly.ts && pnpm build",
"changeset:publish": "pnpm changeset:prepublish && changeset publish",
"changeset:version": "changeset version && pnpm install --lockfile-only && pnpm version:update && pnpm format",
"clean": "rm -rf *.tsbuildinfo src/*.tsbuildinfo src/_esm src/_cjs src/_types",
"contracts:build": "forge build --config-path ./test/foundry.toml && bun ./scripts/generateTypedArtifacts.ts",
"contracts:build": "forge build --config-path ./contracts/foundry.toml && bun .scripts/generateTypedArtifacts.ts",
"deps": "pnpx taze -r",
"docs:dev": "pnpm --filter site dev",
"docs:build": "pnpm --filter site build",
Expand All @@ -25,7 +25,7 @@
"postinstall": "git submodule update --init --recursive && pnpm contracts:build",
"preinstall": "pnpx only-allow pnpm",
"prepare": "pnpm simple-git-hooks",
"prepublishOnly": "bun scripts/prepublishOnly.ts",
"prepublishOnly": "bun .scripts/prepublishOnly.ts",
"size": "size-limit",
"test": "vitest -c ./test/vitest.config.ts dev",
"test:build": "publint --strict ./src && attw --pack ./src --ignore-rules false-esm",
Expand All @@ -43,7 +43,7 @@
"typecheck": "tsc --noEmit",
"vectors": "bun test vectors/**/*.test.ts",
"vectors:generate": "bun vectors/generate.ts",
"version:update": "bun scripts/updateVersion.ts"
"version:update": "bun .scripts/updateVersion.ts"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
Expand Down Expand Up @@ -89,7 +89,7 @@
},
"workspaces": {
".": {
"project": "scripts/*.ts"
"project": ".scripts/*.ts"
},
"src": {
"entry": [
Expand All @@ -106,86 +106,86 @@
},
"size-limit": [
{
"name": "viem (esm)",
"name": "import * from 'viem' (esm)",
"path": "./src/_esm/index.js",
"limit": "60.5 kB",
"limit": "61 kB",
"import": "*"
},
{
"name": "viem (cjs)",
"name": "const viem = require('viem') (cjs)",
"path": "./src/_cjs/index.js",
"limit": "78 kB"
},
{
"name": "viem (minimal surface - tree-shaking)",
"name": "import { createClient, http } from 'viem'",
"path": "./src/_esm/index.js",
"limit": "6.3 kB",
"limit": "6.4 kB",
"import": "{ createClient, http }"
},
{
"name": "viem/accounts",
"name": "import * from 'viem/accounts'",
"path": "./src/_esm/accounts/index.js",
"limit": "92 kB",
"import": "*"
},
{
"name": "viem/accounts (tree-shaking)",
"name": "import { privateKeyToAccount } from 'viem/accounts'",
"path": "./src/_esm/accounts/index.js",
"limit": "20 kB",
"import": "{ privateKeyToAccount }"
},
{
"name": "viem/actions",
"path": "./src/_esm/ens/index.js",
"name": "import * from 'viem/actions'",
"path": "./src/_esm/actions/index.js",
"limit": "46.5 kB",
"import": "*"
},
{
"name": "viem/actions (tree-shaking)",
"name": "import { getBlockNumber } from 'viem/actions'",
"path": "./src/_esm/actions/index.js",
"limit": "1 kB",
"import": "{ getBlockNumber }"
},
{
"name": "viem/chains",
"name": "import * from 'viem/chains'",
"path": "./src/_esm/chains/index.js",
"limit": "30 kB",
"limit": "31 kB",
"import": "*"
},
{
"name": "viem/chains (tree-shaking)",
"name": "import { mainnet } from 'viem/chains'",
"path": "./src/_esm/chains/index.js",
"limit": "500 B",
"import": "{ mainnet }"
},
{
"name": "viem/chains/utils",
"name": "import * from 'viem/chains/utils'",
"path": "./src/_esm/chains/utils.js",
"limit": "8 kB",
"import": "*"
},
{
"name": "viem/ens",
"name": "import * from 'viem/ens'",
"path": "./src/_esm/ens/index.js",
"limit": "46.5 kB",
"import": "*"
},
{
"name": "viem/ens (tree-shaking)",
"name": "import { getEnsAvatar } from 'viem/ens'",
"path": "./src/_esm/ens/index.js",
"limit": "22.6 kB",
"import": "{ getEnsAvatar }"
},
{
"name": "viem/siwe",
"name": "import * from 'viem/siwe'",
"path": "./src/_esm/siwe/index.js",
"limit": "30.7 kB",
"limit": "32 kB",
"import": "*"
},
{
"name": "viem/siwe (tree-shaking)",
"name": "import { verifySiweMessage } from 'viem/siwe'",
"path": "./src/_esm/siwe/index.js",
"limit": "29.6 kB",
"limit": "31 kB",
"import": "{ verifySiweMessage }"
}
]
Expand Down
Loading

0 comments on commit a28402d

Please sign in to comment.