Categorygithub.com/monetha/go-ethereum
modulepackage
0.0.0-20190419125020-9e984db77e93
Repository: https://github.com/monetha/go-ethereum.git
Documentation: pkg.go.dev

# README

go-ethereum GoDoc Build Status Go Report Card Coverage Status

Packages to simplify work with the Ethereum blockchain

Contributing

If you'd like to add new exported APIs, please open an issue describing your proposal — discussing API changes ahead of time makes pull request review much smoother. In your issue, pull request, and any other communications, please remember to treat your fellow contributors with respect!

Setup

Fork, then clone the repository:

mkdir -p $GOPATH/src/github.com/monetha
cd $GOPATH/src/github.com/monetha
git clone [email protected]:your_github_username/go-ethereum.git
cd go-ethereum
git remote add upstream https://github.com/monetha/go-ethereum.git
git fetch upstream

Install dependencies:

make dependencies

Make sure that the tests and the linters pass:

make test
make lint

Making Changes

Start by creating a new branch for your changes:

cd $GOPATH/src/github.com/monetha/go-ethereum
git checkout master
git fetch upstream
git rebase upstream/master
git checkout -b cool_new_feature

Make your changes, then ensure that make lint and make test still pass. If you're satisfied with your changes, push them to your fork.

git push origin cool_new_feature

Then use the GitHub UI to open a pull request.

At this point, you're waiting on us to review your changes. We try to respond to issues and pull requests within a few business days, and we may suggest some improvements or alternatives. Once your changes are approved, one of the project maintainers will merge them.

We're much more likely to approve your changes if you:

  • Add tests for new functionality.
  • Write a good commit message.
  • Maintain backward compatibility.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

New creates new instance of Eth.
NewAddressFromHex parses hex string and returns address.
NewContractLogFilterer creates a instance of ContractLogFilterer.
NewKey generates a random Key.
NewKeyFromPrivateKey creates Key from hex-string representation of private key.

# Constants

TransactionFailed is the status code of a transaction if execution failed.
TransactionSuccessful is the status code of a transaction if execution succeeded.

# Variables

ErrNotFound is returned by API methods if the requested item does not exist.

# Structs

Block holds information about Ethereum block.
ContractLogFilterer extends FilterLogs method of bind.BoundContract struct to allow filter multiple events.
Eth simplifies some operations with the Ethereum network.
Key is combination of public address and private key.
Session provides holds basic pre-configured parameters like backend, authorization, logging.
Transaction holds information about Ethereum transaction.
Transferer allows to make ethers transfer between accounts.

# Type aliases

SliceLogFilterer implements ethereum.SliceLogFilterer for log event slice.
Transactions slice type.
TransactionStatus is receipt status of transaction.