github.com/shyftnetwork/go-empyrean@v1.8.3-0.20191127201940-fbfca9338f04/shyft-config/shyft-cli/web3/token_test/README.md (about) 1 `npm install` 2 run `node deploy.js` to deploy the contract. 3 4 this will log out a contract in the geth logs. 5 6 set the ADDR environment variable to this contract address. 7 ie `export ADDR=<contract_addr>` 8 9 then run `node calltx.js` 10 11 (TODO: trigger the `calltx.js` function in the `deploy.js` file immediately) 12 13 ## TEST GREETERS / contract to contract txes 14 15 First run `node deploy_greeter_contracts.js` 16 17 this will log the address of the greeter and proxygreeter contracts and run various transactions on the contracts. 18 19 To re-run transactions on these contracts you'll need to set the env variables, using the addresses logged during the `node deploy_greeter_contracts.js` process: 20 21 ``` 22 export GREETER=<greeter_address> 23 export PROXYGREETER=<proxy_greeter_address> 24 ``` 25 26 Then we can run: 27 28 `node call_greeter_fns.js` 29 30 This will run several write transactions, the hash will be logged to the geth logs. 31 32 To run trace transaction on these txes, run `./build/bin/geth attach http://127.0.0.1:8545`, which will open an admin console (similar to a node console). Then run `debug.traceTransaction("<tx_hash>", {tracer: "callTracer"})`, or `debug.traceTransaction("<tx_hash>")`