GithubHelp home page GithubHelp logo

isabella232 / leth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yuvrender-gill/leth

0.0 0.0 0.0 7.55 MB

golang tools for compiling, deploying, testing, and interacting with smart contracts

License: GNU General Public License v3.0

Go 100.00%

leth's Introduction

leth

golang tools for compiling, deploying, testing, and interacting with smart contracts

work in progress ~

currently compiles + deploys; testing is under development.

dependencies

solc

sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc

go-ethereum

go get github.com/ethereum/go-ethereum

abigen

cd $GOPATH/src/github.com/ethereum/go-ethereum
godep go install ./cmd/abigen

get

go get github.com/ChainSafe/leth

usage

cd $GOPATH/src/github.com/ChainSafe/leth
go build
go install

keystore setup: if you have an existing geth keystore, copy the keystore/ directory into this directory.

leth init to initialize setup

leth compile to compile all contracts in contracts/ directory

leth deploy to deploy contracts to network

leth test to run the tests as specified in the project main.go

the default network to connect to is default. if you wish to connect to another network (as specified in config.json), use leth deploy --network network_name

see config.json for example network configurations.

example

for an example please see this repo using leth to write tests for a simple token contract.

leth's People

Contributors

chainsafesystems avatar gregthegreek avatar noot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.