Deploy a contract and call it on Kovan using web3v1, etherscan.io and infura.io
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Readme.md
SimpleStorage.sol
call-contract.js
contract.abi.json
contract.bin.json
create-account.js
index.js
package-lock.json
package.json

Readme.md

deploy-kovan

Setup

Run:

npm install

Create account

Run:

node create-account.js

Deploy contract

Run:

node .

Test contract (setter + getter)

Run:

node call-contract.js

Note

I used Remix to create the binary and abi of the contract, I just compiled with it and saved those in contract.(abi|bin).json files. This script should work with all contracts with small modifications but it's set up to work with SimpleStorage.sol by default, which should give you a smooth start.

Enjoy!

@makevoid