Skip to content

Commit

Permalink
Version Packages (next) (#801)
Browse files Browse the repository at this point in the history
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @tevm/[email protected]

### Major Changes

- [#828](#828)
[`3b5f6729`](3b5f672)
Thanks [@roninjin10](https://github.com/roninjin10)! - - Changed name of
`TevmContract` to `Contract`

    -   Changed name of `createTevmContract` to `createContract`
    -   Added `Script` to be a Contract with bytecode
    -   Removed bytecode from `Contract`
- Added a new `withAddress` method for adding an address to a contract
    -   Removed need to explicitly pass in undefined for optional params

    ## withAddress

    Before we had to spred contracts like this:

    ```typescript
    client.readContract({
      address: contractAddress,
      ...Erc20Contract.read.balanceOf(userAddress),
    });
    ```

    Now Tevm can create a contract with an address attatched

    ```typescript
    client.readContract(
Erc20Contract.withAddress(contractAddress).read.balanceOf(userAddress)
    );
    ```

## @tevm/[email protected]

### Minor Changes

- [#822](#822)
[`39a5b5e5`](39a5b5e)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added eth methods
such as chainId getCode and getStorageAt to Tevm.eth.

### Patch Changes

- [#804](#804)
[`d514d111`](d514d11)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with
viem extension not decoding rawData into data

- Updated dependencies
\[[`8b3218b1`](8b3218b),
[`39a5b5e5`](39a5b5e),
[`98d76506`](98d7650)]:
    -   @tevm/[email protected]

## [email protected]

### Minor Changes

- [#822](#822)
[`39a5b5e5`](39a5b5e)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added eth methods
such as chainId getCode and getStorageAt to Tevm.eth.

### Patch Changes

- [#804](#804)
[`d514d111`](d514d11)
Thanks [@roninjin10](https://github.com/roninjin10)! - Update tevm
package to export all of tevm. Now users only need to `npm install tevm`
to use all of tevm

- Updated dependencies
\[[`87427f30`](87427f3),
[`8b3218b1`](8b3218b),
[`cae17b7d`](cae17b7),
[`39a5b5e5`](39a5b5e),
[`3b5f6729`](3b5f672),
[`0ee22d0a`](0ee22d0),
[`0ee22d0a`](0ee22d0),
[`d514d111`](d514d11),
[`941a630a`](941a630),
[`98d76506`](98d7650)]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Minor Changes

- [#820](#820)
[`cae17b7d`](cae17b7)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added all eth_\*
debug_\_ and anvil\_\_ JSON-rpc methods and handlers to API.

- [#822](#822)
[`39a5b5e5`](39a5b5e)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added eth methods
such as chainId getCode and getStorageAt to Tevm.eth.

### Patch Changes

- [#811](#811)
[`87427f30`](87427f3)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with
EVM errors requiring importing ethereumjs enum to typematch

- [#800](#800)
[`0ee22d0a`](0ee22d0)
Thanks [@roninjin10](https://github.com/roninjin10)! - Renamed
TevmClient type to Tevm

- [#800](#800)
[`0ee22d0a`](0ee22d0)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added JSDOC to
@tevm/api

- [#808](#808)
[`941a630a`](941a630)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with
'to' and 'error' properties not quite working correctly for tevm. To was
listed as require instead of only existing when no errors.

## @tevm/[email protected]

### Minor Changes

- [#805](#805)
[`8b3218b1`](8b3218b)
Thanks [@0xNonCents](https://github.com/0xNonCents)! - Enable State Load
and Dump actions

- [#822](#822)
[`39a5b5e5`](39a5b5e)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added eth methods
such as chainId getCode and getStorageAt to Tevm.eth.

- [#823](#823)
[`f7865314`](f786531)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added support for
debug_traceCall handler

### Patch Changes

- [#804](#804)
[`d514d111`](d514d11)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with
tevm account not updating code hash when deployedBytecode is put into
state

- Updated dependencies
\[[`3b4a347d`](3b4a347),
[`39a5b5e5`](39a5b5e),
[`d514d111`](d514d11),
[`d514d111`](d514d11),
[`aec294ba`](aec294b)]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Minor Changes

- [#805](#805)
[`8b3218b1`](8b3218b)
Thanks [@0xNonCents](https://github.com/0xNonCents)! - Enable State Load
and Dump actions

## @tevm/[email protected]

### Minor Changes

- [#805](#805)
[`8b3218b1`](8b3218b)
Thanks [@0xNonCents](https://github.com/0xNonCents)! - Enable State Load
and Dump actions

- [#822](#822)
[`39a5b5e5`](39a5b5e)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added eth methods
such as chainId getCode and getStorageAt to Tevm.eth.

- [#818](#818)
[`98d76506`](98d7650)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added blockchain
to the Tevm VM so anvil, hardhat, and eth_json_rpc requests can be
handled

### Patch Changes

- Updated dependencies
\[[`87427f30`](87427f3),
[`d514d111`](d514d11),
[`39a5b5e5`](39a5b5e),
[`8b3218b1`](8b3218b),
[`d514d111`](d514d11),
[`cae17b7d`](cae17b7),
[`39a5b5e5`](39a5b5e),
[`3b5f6729`](3b5f672),
[`0ee22d0a`](0ee22d0),
[`0ee22d0a`](0ee22d0),
[`941a630a`](941a630),
[`f7865314`](f786531)]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- Updated dependencies
\[[`3b5f6729`](3b5f672)]:
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- [#822](#822)
[`39a5b5e5`](39a5b5e)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with
swallowing errors that didn't return text

- [#804](#804)
[`d514d111`](d514d11)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with
checking method falsely

## @tevm/[email protected]

### Patch Changes

- Updated dependencies
\[[`8b3218b1`](8b3218b),
[`39a5b5e5`](39a5b5e),
[`3b5f6729`](3b5f672),
[`d514d111`](d514d11),
[`98d76506`](98d7650)]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- Updated dependencies
\[[`3b5f6729`](3b5f672)]:
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- [#809](#809)
[`0efe3b03`](0efe3b0)
Thanks [@roninjin10](https://github.com/roninjin10)! - Added jsdoc to
createHttpHandler

- Updated dependencies
\[[`3b4a347d`](3b4a347),
[`d514d111`](d514d11),
[`aec294ba`](aec294b)]:
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- [#807](#807)
[`3b4a347d`](3b4a347)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with
zod validator swallowing missing `to` parameter errors

- [#804](#804)
[`d514d111`](d514d11)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with
JsonRpcRequest throwing for requests with no params

- [#806](#806)
[`aec294ba`](aec294b)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug in zod
validators for contract params which falsely listed `to` as optional

- Updated dependencies
\[[`87427f30`](87427f3),
[`cae17b7d`](cae17b7),
[`39a5b5e5`](39a5b5e),
[`0ee22d0a`](0ee22d0),
[`0ee22d0a`](0ee22d0),
[`941a630a`](941a630)]:
    -   @tevm/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jan 17, 2024
1 parent 3b5f672 commit 64a7076
Show file tree
Hide file tree
Showing 30 changed files with 246 additions and 37 deletions.
24 changes: 23 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@
"@tevm/api": "1.0.0-next.11",
"@tevm/predeploys": "1.0.0-next.11",
"@tevm/procedures": "1.0.0-next.11",
"@tevm/zod": "1.0.0-next.11"
"@tevm/zod": "1.0.0-next.11",
"@tevm/tevm": "0.0.1",
"tevm": "1.0.0-next.12",
"@tevm/client": "1.0.0-next.21"
},
"changesets": [
"afraid-crabs-exist",
"afraid-socks-work",
"angry-foxes-report",
"brave-owls-explain",
"breezy-dryers-burn",
"bright-llamas-promise",
Expand All @@ -58,43 +63,54 @@
"chilled-lions-relate",
"chilly-rocks-yawn",
"chilly-trees-explain",
"clean-jobs-work",
"cold-masks-itch",
"curly-singers-sing",
"early-pears-exist",
"eleven-masks-sin",
"empty-turkeys-impress",
"fair-bats-count",
"fair-boats-call",
"fair-students-complain",
"famous-bats-exist",
"famous-masks-compete",
"fifty-insects-rest",
"fifty-squids-suffer",
"five-comics-cross",
"five-singers-bake",
"flat-peaches-battle",
"fluffy-dolphins-type",
"friendly-mangos-beam",
"gold-baboons-sniff",
"gold-trainers-act",
"good-chairs-applaud",
"good-deers-grin",
"great-grapes-lay",
"happy-rocks-jump",
"honest-goats-count",
"honest-humans-guess",
"hungry-llamas-kiss",
"large-tips-dance",
"lemon-worms-bathe",
"lovely-carrots-tie",
"lucky-dolphins-grin",
"metal-turkeys-call",
"mighty-tips-smash",
"moody-bananas-develop",
"neat-impalas-dream",
"neat-sloths-film",
"nine-poets-bow",
"pink-keys-add",
"plenty-books-roll",
"plenty-numbers-hear",
"plenty-suns-drum",
"popular-moles-change",
"proud-panthers-build",
"proud-pumpkins-breathe",
"purple-donkeys-smile",
"purple-drinks-beg",
"quiet-cats-rest",
"quiet-eagles-sniff",
"rare-dodos-melt",
"real-seahorses-fail",
"rich-ants-clean",
Expand All @@ -107,18 +123,24 @@
"serious-peaches-jump",
"seven-bees-film",
"shaggy-shoes-attend",
"shy-clouds-teach",
"silver-queens-juggle",
"slow-bobcats-build",
"small-taxis-camp",
"smart-radios-peel",
"smooth-fishes-study",
"smooth-kiwis-bathe",
"soft-trains-unite",
"spicy-paws-refuse",
"spicy-phones-impress",
"stale-avocados-fail",
"strange-chicken-return",
"stupid-mangos-poke",
"sweet-fishes-leave",
"sweet-ladybugs-add",
"tasty-dancers-deny",
"tasty-toes-cough",
"ten-sloths-lick",
"thin-ligers-complain",
"thirty-pears-battle",
"tricky-dryers-teach",
Expand Down
2 changes: 1 addition & 1 deletion examples/bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test": "bun run test"
},
"dependencies": {
"@tevm/contract": "^1.0.0-next.21",
"@tevm/contract": "^1.0.0-next.22",
"bun-types": "^1.0.7",
"viem": "^2.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test:run": "bun test"
},
"dependencies": {
"@tevm/contract": "^1.0.0-next.21",
"@tevm/contract": "^1.0.0-next.22",
"viem": "^2.0.0",
"zod": "^3.22.4"
},
Expand Down
7 changes: 7 additions & 0 deletions experimental/solc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tevm/contract

## 1.0.0-next.22

### Patch Changes

- Updated dependencies [[`3b5f6729`](https://github.com/evmts/tevm-monorepo/commit/3b5f67291550b590dda16471059a05bd10fe324d)]:
- @tevm/contract@1.0.0-next.22

## 1.0.0-next.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion experimental/solc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tevm/experimental-solc",
"version": "1.0.0-next.21",
"version": "1.0.0-next.22",
"private": false,
"description": "Experimental wrapper around solc",
"keywords": [
Expand Down
13 changes: 13 additions & 0 deletions extensions/viem/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @tevm/viem

## 1.0.0-next.22

### Minor Changes

- [#822](https://github.com/evmts/tevm-monorepo/pull/822) [`39a5b5e5`](https://github.com/evmts/tevm-monorepo/commit/39a5b5e52c704d1661b235b271e68129e7dc2a80) Thanks [@roninjin10](https://github.com/roninjin10)! - Added eth methods such as chainId getCode and getStorageAt to Tevm.eth.

### Patch Changes

- [#804](https://github.com/evmts/tevm-monorepo/pull/804) [`d514d111`](https://github.com/evmts/tevm-monorepo/commit/d514d111ff6b479fbbac07083477d59d70de1290) Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with viem extension not decoding rawData into data

- Updated dependencies [[`8b3218b1`](https://github.com/evmts/tevm-monorepo/commit/8b3218b129ed43cf173a369cbe6b636365748e77), [`39a5b5e5`](https://github.com/evmts/tevm-monorepo/commit/39a5b5e52c704d1661b235b271e68129e7dc2a80), [`98d76506`](https://github.com/evmts/tevm-monorepo/commit/98d76506e5947678eb34127dcc6e4da7fa13cb68)]:
- @tevm/vm@1.0.0-next.22

## 1.0.0-next.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion extensions/viem/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tevm/viem",
"version": "1.0.0-next.21",
"version": "1.0.0-next.22",
"private": false,
"description": "A typesafe library for writing forge scripts in typescript",
"keywords": [
Expand Down
31 changes: 31 additions & 0 deletions packages/contract/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @tevm/contract

## 1.0.0-next.22

### Major Changes

- [#828](https://github.com/evmts/tevm-monorepo/pull/828) [`3b5f6729`](https://github.com/evmts/tevm-monorepo/commit/3b5f67291550b590dda16471059a05bd10fe324d) Thanks [@roninjin10](https://github.com/roninjin10)! - - Changed name of `TevmContract` to `Contract`

- Changed name of `createTevmContract` to `createContract`
- Added `Script` to be a Contract with bytecode
- Removed bytecode from `Contract`
- Added a new `withAddress` method for adding an address to a contract
- Removed need to explicitly pass in undefined for optional params

## withAddress

Before we had to spred contracts like this:

```typescript
client.readContract({
address: contractAddress,
...Erc20Contract.read.balanceOf(userAddress),
});
```

Now Tevm can create a contract with an address attatched

```typescript
client.readContract(
Erc20Contract.withAddress(contractAddress).read.balanceOf(userAddress)
);
```

## 1.0.0-next.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tevm/contract",
"version": "1.0.0-next.21",
"version": "1.0.0-next.22",
"private": false,
"description": "A typesafe library for writing forge scripts in typescript",
"keywords": [
Expand Down
8 changes: 8 additions & 0 deletions packages/jsonrpc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tevm/jsonrpc

## 1.0.0-next.22

### Patch Changes

- [#822](https://github.com/evmts/tevm-monorepo/pull/822) [`39a5b5e5`](https://github.com/evmts/tevm-monorepo/commit/39a5b5e52c704d1661b235b271e68129e7dc2a80) Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with swallowing errors that didn't return text

- [#804](https://github.com/evmts/tevm-monorepo/pull/804) [`d514d111`](https://github.com/evmts/tevm-monorepo/commit/d514d111ff6b479fbbac07083477d59d70de1290) Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with checking method falsely

## 1.0.0-next.21

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/jsonrpc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tevm/jsonrpc",
"version": "1.0.0-next.21",
"version": "1.0.0-next.22",
"private": false,
"description": "A typesafe library for writing forge scripts in typescript",
"keywords": [
Expand Down
50 changes: 30 additions & 20 deletions pnpm-lock.yaml

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

17 changes: 17 additions & 0 deletions tevm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @tevm/contract

## 1.0.0-next.13

### Minor Changes

- [#822](https://github.com/evmts/tevm-monorepo/pull/822) [`39a5b5e5`](https://github.com/evmts/tevm-monorepo/commit/39a5b5e52c704d1661b235b271e68129e7dc2a80) Thanks [@roninjin10](https://github.com/roninjin10)! - Added eth methods such as chainId getCode and getStorageAt to Tevm.eth.

### Patch Changes

- [#804](https://github.com/evmts/tevm-monorepo/pull/804) [`d514d111`](https://github.com/evmts/tevm-monorepo/commit/d514d111ff6b479fbbac07083477d59d70de1290) Thanks [@roninjin10](https://github.com/roninjin10)! - Update tevm package to export all of tevm. Now users only need to `npm install tevm` to use all of tevm

- Updated dependencies [[`87427f30`](https://github.com/evmts/tevm-monorepo/commit/87427f30aeaba4c191d432e23a58d589d02e269b), [`8b3218b1`](https://github.com/evmts/tevm-monorepo/commit/8b3218b129ed43cf173a369cbe6b636365748e77), [`cae17b7d`](https://github.com/evmts/tevm-monorepo/commit/cae17b7d9e4c65a28649a37fcf541d400c951127), [`39a5b5e5`](https://github.com/evmts/tevm-monorepo/commit/39a5b5e52c704d1661b235b271e68129e7dc2a80), [`3b5f6729`](https://github.com/evmts/tevm-monorepo/commit/3b5f67291550b590dda16471059a05bd10fe324d), [`0ee22d0a`](https://github.com/evmts/tevm-monorepo/commit/0ee22d0a2f39b140f0670525959bb6fe8d5dcf57), [`0ee22d0a`](https://github.com/evmts/tevm-monorepo/commit/0ee22d0a2f39b140f0670525959bb6fe8d5dcf57), [`d514d111`](https://github.com/evmts/tevm-monorepo/commit/d514d111ff6b479fbbac07083477d59d70de1290), [`941a630a`](https://github.com/evmts/tevm-monorepo/commit/941a630ada850220d62f55719f202f33e216de7f), [`98d76506`](https://github.com/evmts/tevm-monorepo/commit/98d76506e5947678eb34127dcc6e4da7fa13cb68)]:
- @tevm/api@1.0.0-next.22
- @tevm/vm@1.0.0-next.22
- @tevm/viem@1.0.0-next.22
- @tevm/contract@1.0.0-next.22
- @tevm/client@1.0.0-next.22

## 1.0.0-next.12

### Patch Changes
Expand Down
Loading

1 comment on commit 64a7076

@vercel
Copy link

@vercel vercel bot commented on 64a7076 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

evmts-docs – ./

evmts.dev
evmts-docs-evmts.vercel.app
evmts-docs-git-main-evmts.vercel.app

Please sign in to comment.