-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. # Releases ## @evmts/[email protected] ### Minor Changes - [#460](#460) [`1f80589`](1f80589) Thanks [@roninjin10](https://github.com/roninjin10)! - Added bun support with the new @evmts/bun-plugin package. This enables solidity files to be imported into bun ### Installation Install build dependencies ```typescript bun install -D bun-types @evmts/bun-plugin @evmts/ts-plugin @evmts/core solc ``` ### Setup first create a `plugins.ts` file ```typescript import { evmtsBunPlugin } from "@evmts/bun-plugin"; import { plugin } from "bun"; plugin(evmtsBunPlugin()); ``` Next load your `plugin.ts` file in your `bunfig.toml` ```toml preload = ["./plugins.ts"] # add to [test] to use plugin in bun test too [test] preload = ["./plugins.ts"] ``` ### Usage Once set up you can import solidity files directly from node modules such as `openzepplin/contracts` or your source code. You can use with viem ethersjs or any other library. ```typescript import { http, createPublicClient } from "viem"; import { optimismGoerli } from "viem/chains"; import { ExampleContract } from "./ExampleContract.sol"; export const publicClient = createPublicClient({ chain: optimismGoerli, transport: http("https://goerli.optimism.io"), }); const owner = "0x8f0ebdaa1cf7106be861753b0f9f5c0250fe0819"; publicClient .readContract( ExampleContract.read({ chainId: optimismGoerli.id }).balanceOf(owner) ) .then(console.log); ``` #### Examples A bun example exists in [examples/bun](/examples/bun). This example is very minimal and uses bun with viem in both `bun watch` and `bun test` Source code for `@evmts/bun-plugin` with 100% test coverage exists in [bundlers/bun](/bundlers/bun) ### Patch Changes - Updated dependencies \[[`1f80589`](1f80589)]: - @evmts/[email protected] - @evmts/[email protected] ## @evmts/[email protected] ### Patch Changes - Updated dependencies \[[`1f80589`](1f80589)]: - @evmts/[email protected] ## @evmts/[email protected] ### Patch Changes - Updated dependencies \[]: - @evmts/[email protected] ## @evmts/[email protected] ### Patch Changes - Updated dependencies \[]: - @evmts/[email protected] ## @evmts/[email protected] ### Patch Changes - Updated dependencies \[]: - @evmts/[email protected] ## @evmts/[email protected] ### Patch Changes - Updated dependencies \[]: - @evmts/[email protected] ## @evmts/[email protected] ### Patch Changes - Updated dependencies \[]: - @evmts/[email protected] ## @evmts/[email protected] ### Patch Changes - Updated dependencies \[[`1f80589`](1f80589)]: - @evmts/[email protected] - @evmts/[email protected] ## @evmts/[email protected] ### Patch Changes - [#460](#460) [`1f80589`](1f80589) Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with solc not being correctly listed as a peer dependency ## @evmts/[email protected] ### Patch Changes - Updated dependencies \[]: - @evmts/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1f80589
commit 29869f6
Showing
24 changed files
with
159 additions
and
257 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# @evmts/bun-plugin | ||
|
||
## 0.9.0 | ||
|
||
### Minor Changes | ||
|
||
- [#460](https://github.com/evmts/evmts-monorepo/pull/460) [`1f80589`](https://github.com/evmts/evmts-monorepo/commit/1f8058969e2b0290f5032166928f76cfc74e9d74) Thanks [@roninjin10](https://github.com/roninjin10)! - Added bun support with the new @evmts/bun-plugin package. This enables solidity files to be imported into bun | ||
|
||
### Installation | ||
|
||
Install build dependencies | ||
|
||
```typescript | ||
bun install -D bun-types @evmts/bun-plugin @evmts/ts-plugin @evmts/core solc | ||
``` | ||
|
||
### Setup | ||
|
||
first create a `plugins.ts` file | ||
|
||
```typescript | ||
import { evmtsBunPlugin } from "@evmts/bun-plugin"; | ||
import { plugin } from "bun"; | ||
plugin(evmtsBunPlugin()); | ||
``` | ||
|
||
Next load your `plugin.ts` file in your `bunfig.toml` | ||
|
||
```toml | ||
preload = ["./plugins.ts"] | ||
# add to [test] to use plugin in bun test too | ||
[test] | ||
preload = ["./plugins.ts"] | ||
``` | ||
|
||
### Usage | ||
|
||
Once set up you can import solidity files directly from node modules such as `openzepplin/contracts` or your source code. You can use with viem ethersjs or any other library. | ||
|
||
```typescript | ||
import { http, createPublicClient } from "viem"; | ||
import { optimismGoerli } from "viem/chains"; | ||
import { ExampleContract } from "./ExampleContract.sol"; | ||
export const publicClient = createPublicClient({ | ||
chain: optimismGoerli, | ||
transport: http("https://goerli.optimism.io"), | ||
}); | ||
const owner = "0x8f0ebdaa1cf7106be861753b0f9f5c0250fe0819"; | ||
publicClient | ||
.readContract( | ||
ExampleContract.read({ chainId: optimismGoerli.id }).balanceOf(owner) | ||
) | ||
.then(console.log); | ||
``` | ||
|
||
#### Examples | ||
|
||
A bun example exists in [examples/bun](/examples/bun). This example is very minimal and uses bun with viem in both `bun watch` and `bun test` | ||
Source code for `@evmts/bun-plugin` with 100% test coverage exists in [bundlers/bun](/bundlers/bun) | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [[`1f80589`](https://github.com/evmts/evmts-monorepo/commit/1f8058969e2b0290f5032166928f76cfc74e9d74)]: | ||
- @evmts/config@0.9.0 | ||
- @evmts/bundler@0.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@evmts/esbuild-plugin", | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"contributors": [ | ||
"Will Cory <[email protected]>" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@evmts/rollup-plugin", | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"contributors": [ | ||
"Will Cory <[email protected]>" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@evmts/rspack-plugin", | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"private": false, | ||
"contributors": [ | ||
"Will Cory <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@evmts/vite-plugin", | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"private": false, | ||
"contributors": [ | ||
"Will Cory <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
29869f6
There was a problem hiding this comment.
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-docs-evmts.vercel.app
evmts-docs-git-main-evmts.vercel.app
evmts.dev