Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loomnetwork/go-loom
Go package for building plugins and Go Smart Contracts for Loom DAppChains
https://github.com/loomnetwork/go-loom
Last synced: about 1 month ago
JSON representation
Go package for building plugins and Go Smart Contracts for Loom DAppChains
- Host: GitHub
- URL: https://github.com/loomnetwork/go-loom
- Owner: loomnetwork
- License: bsd-3-clause
- Created: 2018-04-13T07:18:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T10:51:24.000Z (over 3 years ago)
- Last Synced: 2024-06-18T21:46:42.650Z (6 months ago)
- Language: Go
- Homepage: https://loomx.io/
- Size: 7.37 MB
- Stars: 188
- Watchers: 29
- Forks: 43
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# go-loom [![Build Status](https://travis-ci.org/loomnetwork/go-loom.svg?branch=master)](https://travis-ci.org/loomnetwork/go-loom)
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
```bash
go get github.com/loomnetwork/go-loom
```## Examples
The example smart contracts can be built with:
```shell
make deps
make
```
If you want the ethereum examples, use
```shell
make evm
```
instead of `make`. However you need the
[go-ethereum package](https://github.com/ethereum/go-ethereum).To run the blockchain with the Samples
*Note Loom binary is only available to beta testers right now*
```shell
# 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
```shell
make deps
```### Generating protobufs
```shell
make proto
```### running tests
```shell
make test
```