immutability-io / vault-ethereum

A plugin that turns Vault into an Ethereum wallet.
244 stars 66 forks source link

exemplify contract deployment using ref erc20 implementation #84

Closed cypherhat closed 3 years ago

cypherhat commented 3 years ago

Description

Added scripting to exemplify the deployment of smart contracts. Deployed reference implementation of ERC20.

Motivation and Context

Questions from the community

How Has This Been Tested?

In one terminal...


$ cd $GOPATH/src/github.com/immutability-io/vault-ethereum
$ make docker-build
$ make run

Then, open a different terminal...


$ cd $GOPATH/src/github.com/immutability-io/vault-ethereum/docker

# Authenticate
$ source ./local-test.sh auth
$ ./demo.sh > README.md
cypherhat commented 3 years ago

DEPLOY CONTRACT FixedSupplyToken

Using the Vault CLI

vault write -format=json vault-ethereum/accounts/bob/deploy abi=@/Users/immutability/projects/go/src/github.com/immutability-io/vault-ethereum/docker/erc20/build/FixedSupplyToken.abi bin=@/Users/immutability/projects/go/src/github.com/immutability-io/vault-ethereum/docker/erc20/build/FixedSupplyToken.bin