-
Notifications
You must be signed in to change notification settings - Fork 5
docs: fix typo and other observations #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c91e68d
e3872f6
d233c6f
408dea0
7c8ef6a
f755d6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,23 +18,6 @@ curl -X POST http://127.0.0.1:8645 \ | |
| -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266","latest"],"id":1}' | ||
| ``` | ||
|
|
||
| **Send a transaction:** | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't work in the testnet setup, as it requires the sender's private keys to be available in the EVM client. |
||
| ```bash | ||
| curl -X POST http://127.0.0.1:8645 \ | ||
| -H "Content-Type: application/json" \ | ||
| -d '{ | ||
| "jsonrpc":"2.0", | ||
| "method":"eth_sendTransaction", | ||
| "params":[{ | ||
| "from":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
| "to":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8", | ||
| "value":"0x1000000000000000000", | ||
| "gas":"0x5208" | ||
| }], | ||
| "id":1 | ||
| }' | ||
| ``` | ||
|
|
||
| ## Using `cast` (Foundry) | ||
|
|
||
| **Prerequisite:** [Foundry](https://getfoundry.sh/introduction/installation/) | ||
|
|
@@ -63,7 +46,7 @@ Configure your Web3 library to connect to `http://127.0.0.1:8645`: | |
|
|
||
| **ethers.js (JavaScript):** | ||
| ```javascript | ||
| const { ethers } = require('ethers'); | ||
| import { ethers } from 'ethers'; | ||
|
|
||
| const provider = new ethers.JsonRpcProvider('http://127.0.0.1:8645'); | ||
| const wallet = new ethers.Wallet('0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80', provider); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,12 +10,14 @@ Before starting, ensure you have: | |
| - Docker Compose (usually included with Docker Desktop) | ||
| - Make (typically pre-installed on Linux/macOS; Windows users can use WSL) | ||
| - Git (for cloning the repository) | ||
| - [Protobuf](https://protobuf.dev/installation) (to compile Emerald `.proto` files) | ||
|
|
||
| **Verify installations:** | ||
| ```bash | ||
| rustc --version # Should show rustc 1.85+ | ||
| rustc --version # Should show rustc 1.88+ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which crates requires 1.88+?
We should also update https://github.com/informalsystems/emerald/blob/main/Cargo.toml#L18 accordingly
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh and I see we are missing
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| docker --version # Should show Docker 20.10+ | ||
| make --version # Should show GNU Make | ||
| make --version # Should show GNU Make 3.81+ | ||
| protoc --version # Should show libprotoc 33.1+ | ||
| ``` | ||
|
|
||
| ## Installation | ||
|
|
||
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.
At least I was consistent :)