client

command module
v0.0.0-...-0f47a2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: ISC Imports: 19 Imported by: 0

README

client

  • Defines the client implementation that will interact with sapphire paratime

How to generate solidity contract bindings

Pre-requisites
  1. Install Solidity compiler solc compatible with your platform. On Ubuntu run
sudo apt-get solc
  1. Check installed solidity compiler version using.
$ solc --version 
solc, the solidity compiler commandline interface
Version: 0.8.21+commit.d9974bed.Linux.g++
  1. Download the abigen tool from official releases or build it from go-ethereum
Generate Go Bindings

From the project root folder run the following commands:

  1. Generate abi files by running the following command:
$ solc --abi contracts/chat.sol -o build
Compiler run successful. Artifact(s) can be found in directory "build".
  1. Generate the go bindings by running the following command:
$ abigen --abi ./build/ChatContract.abi --pkg contracts --type Chat --out client/contracts/chat.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
deployment
utils module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL