mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
clarify contract generation bindings.
Former-commit-id: 1958eba734a8f17050a9ad90b2ff922a732dd30e [formerly 22c585568d5f74c86acb4da4ef5e1cbe462bd9d3] Former-commit-id: 6fa71862e0c3efeba6b754ee7f1ccc4fd2a8a10a
This commit is contained in:
@@ -38,6 +38,14 @@ The project consists of the following parts, with each of them requiring compreh
|
||||
|
||||
The VMC is built in Solidity and deployed to the geth node upon launch of the client if it does not exist in the network at a specified address. If the contract already exists, the client simply sets up an interface to programmatically call the internal contract functions and listens to transactions broadcasted to the geth node to begin the sharding system.
|
||||
|
||||
#### Generating Contract Bindings
|
||||
|
||||
To generate the go bindings run the following command from this package:
|
||||
|
||||
```bash
|
||||
go generate
|
||||
```
|
||||
|
||||
### VMC Wrapper & Sharding Client
|
||||
|
||||
As we will be interacting with a geth node, we will create a Golang interface that wraps over the VMC and a client that connects to the local geth node upon launch via JSON-RPC.
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
# Sharding contracts
|
||||
|
||||
Generate contract bindings from the sharding package with go generate:
|
||||
|
||||
```bash
|
||||
|
||||
cd ..
|
||||
go generate
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user