go-ethereum/simulations/token_test
2018-05-29 14:14:16 -04:00
..
call_greeter_fns.js add tests for greeter contracts 2018-05-29 14:14:16 -04:00
calltx.js add test cases for tokens 2018-05-23 16:32:49 -04:00
deploy.js add test cases for tokens 2018-05-23 16:32:49 -04:00
deploy_greeter_contracts.js add tests for greeter contracts 2018-05-29 14:14:16 -04:00
package.json add test cases for tokens 2018-05-23 16:32:49 -04:00
README.md add tests for greeter contracts 2018-05-29 14:14:16 -04:00
token.sol add test cases for tokens 2018-05-23 16:32:49 -04:00

npm install run node deploy.js to deploy the contract.

this will log out a contract in the geth logs.

set the ADDR environment variable to this contract address.
ie export ADDR=<contract_addr>

then run node calltx.js

TEST GREETERS / contract to contract txes

First run deploy_greeter_contracts.js

this will log the address of the greeter and proxygreeter contracts. You'll need to set the env variables:

export GREETER=<greeter_address>
export PROXYGREETER=<proxy_greeter_address>

Then we can run:

node call_greeter_fns.js

This will run several write transactions, the hash will be logged to the geth logs.

To run trace transaction on these txes, run ./build/bin/geth attach http://127.0.0.1:8545, which will open an admin consile (similar to a node console). Then run debug.traceTransaction("<tx_hash>", {tracer: "callTracer"}), or debug.traceTransaction("<tx_hash>")