Example using parity locally to deploy and use a simple-storage (hello world) Ethereum contract.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Readme.md
SimpleStorage.json
SimpleStorage.sol
compile.sh
deploy.js
index.js
package-lock.json
package.json
setup.md

Readme.md

eth-parity-simplestorage

Example using parity locally to deploy and use a simple-storage (hello world) Ethereum contract.

Prerequisite

Parity installed and running on your system, example for OSX for parity setup & run:

mkdir -p ~/bin
echo 'export PATH=$PATH:~/bin' >>  ~/.bash_profile
source ~/.bash_profile
ln -s "/Applications/Parity Ethereum.app/Contents/MacOS/parity" ~/bin/parity
mkdir -p ~/tmp
parity --chain kovan account new
# use foo as a password
echo "foo" > ~/tmp/pass  && parity --chain kovan --password ~/tmp/pass --unlock $(parity --chain kovan account list | head -n 1)

Setup

Run:

npm install

Compile

Run:

./compile.sh

Deploy contract

Run:

node deploy.js

Test contract (setter + getter)

Run:

node .

Enjoy!

@makevoid