Skip to content

curtys/ev3-chain-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examples for implementing applications with chain interactions for the EV3

Compiling Go for ARM

Compile for EV3 or BrickPi3

GOOS=linux GOARCH=arm GOARM=5 go build

Copy the compiled binaries to the device, i.e., you don't have to compile on the device.

Execute a program

./{binaryName}

Alternatively, if you are using the EV3, you may start the program from the File Browser.

Ethereum smart contract interaction

Compile go-ethereum devtools

go get -u github.com/ethereum/go-ethereum
cd $GOPATH/src/github.com/ethereum/go-ethereum/
make
make devtools

Compile contracts

solc --abi --bin --overwrite -o bin solidity/*

Generate Go contract file

abigen --bin=bin/{ContractName}.bin --abi=bin/{ContractName}.abi --pkg=contract --type={ContractName} --out=chain/contract/{contractFile}.go

All in one

abigen --sol=solidity/{contractFile}.sol --pkg=contract --type={ContractName} --out=chain/contract/{contractFile}.go

Resources:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages