Skip to content

Commit

Permalink
Merge pull request #2 from danforbes/docs/readme/update
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
avkos authored Feb 12, 2024
2 parents a140ff6 + 6e0c447 commit 8e5f312
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
web3-plugin-zksync
===========
# zkSync Plugin for Web3.js

This is a template for creating a repository for web3.js plugin.
Use [Web3.js](https://web3js.org/) to interact with [zkSync](https://zksync.io/) networks.

How to use
------------
## Plugin Components

1. Create your project out of this template.
The plugin exposes the [zkSync JSON-RPC API](https://docs.zksync.io/build/api.html), implemented in
[src/rpc.methods.ts](src/rpc.methods.ts), as well as the [types](src/types.ts) that are used to send
and receive data using the JSON-RPC API. Smart contract definitions are located in the
[src/contracts](src/contracts) folder. The plugin is implemented in [src/plugin.ts](src/plugin.ts).

You can do so by pressing on `Use this template` on the above right corner and then select `Create new Repositor`. Please, use the convention `web3-plugin-<name>` for your repo name.
2. Update the `name` and `description` fileds at your `package.json`.
## Contributing

Chose a name like: `@<organization>/web3-plugin-<name>` (or the less better `web3-plugin-<name>`).
3. Update the code inside `src` folder.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would
like to change.

4. Modify and add tests inside `test` folder.
Please make sure to update [tests](test) as appropriate.

5. Publish to the npm registry.
## Template

You can publish with something like: `yarn build && npm publish --access public`.
This plugin was created using the
[Web3.js Plugin Template](https://github.com/web3/web3.js-plugin-template).

Contributing
------------

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------
## License

[MIT](https://choosealicense.com/licenses/mit/)

0 comments on commit 8e5f312

Please sign in to comment.