Skip to content
Go package for building plugins and Go Smart Contracts for Loom DAppChains
Branch: master
Clone or download
Latest commit fd9278c Jul 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
auth add hash of tx message May 16, 2019
builtin Add `inactive` field to deployer state in UserDeployerWhitelist contr… Jul 19, 2019
cli Rename utility funcs for clarity & add comments May 27, 2019
client Add DAppChainGateway.GetContractMapping (#429) Jul 19, 2019
common Allow signing with TRON keys & update TG protobufs for TRX/TRC20 (#367) May 16, 2019
crypto Switch back to certusone/yubihsm-go (#418) Jul 4, 2019
examples fix test errors related to hsm changes Dec 11, 2018
plugin Add EnabledFeatures to static contract context (#424) Jul 10, 2019
testdata protobuf update Dec 3, 2018
types Add a referrer field on delegations Mar 21, 2019
util Revert "Merge pull request #397 from loomnetwork/nil-prefix" Jul 2, 2019
vm add customname Apr 1, 2019
.gitignore Added command line for yubihsm_key_util Jan 9, 2019
.golangci.yml Add linter & fix some linter errors (#336) May 7, 2019
.travis.yml Add linter & fix some linter errors (#336) May 7, 2019
.travis_before_install.sh Build in Travis (#19) May 16, 2018
.travis_trigger_build.sh Fix trigger API url (#40) Jun 6, 2018
Gopkg.lock remove vendored package Feb 25, 2019
Gopkg.toml Add go-solidity-sha3 to deps Jul 29, 2018
License.md add BSD 3 clause license Apr 30, 2018
Makefile Switch back to certusone/yubihsm-go (#418) Jul 4, 2019
README.md Corrected Misspelling Jun 22, 2018
address.go Add linter & fix some linter errors (#336) May 7, 2019
genesis.example.json Fix the helloworld example contract May 18, 2018
get_lint.sh Add linter & fix some linter errors (#336) May 7, 2019
log.go default logging to info when nothing is specified Nov 13, 2018
loom.go creating utility function for creating types.BigUInt zero value Dec 20, 2018
parselintreport.sh Add linter & fix some linter errors (#336) May 7, 2019
prefix.go Skip karam commands in example-cli for the moment. Oct 2, 2018
validator.go mock validator set May 16, 2018

README.md

go-loom Build Status

Go package for building Go Smart Contracts for the Loom SDK

This package is also used for building Clients to DAppChains in the Loom SDK.

The code that runs the actual DAppChain(sidechain) is in a different repository.

Requirements

  • Go 1.9+
  • Mac or Linux (Windows support coming in June)

Installation

go get github.com/loomnetwork/go-loom

Examples

The example smart contracts can be built with:

make deps
make

If you want the ethereum examples, use

make evm

instead of make. However you need the go-ethereum package.

To run the blockchain with the Samples

Note Loom binary is only available to beta testers right now

# init the blockchain
./loom init
# Copy over example genesis
cp genesis.example.json genesis.json
# run the node
./loom run

Development

  1. go get or clone the repo into your desired GOPATH.
  2. Install deps
    make deps

Generating protobufs

make proto

running tests

make test
You can’t perform that action at this time.