This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl run lior-pod --image=ubuntu --restart=Never -- /bin/bash -c "apt-get update && apt-get install -y curl telnet && while true; do sleep 10000; done" && kubectl exec -it lior-pod -- bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Web3 = require('web3') // ^2.0.0-alpha.1 | |
const CONSENSUS_ABI = [{"constant":true,"inputs":[],"name":"getLastSnapshotTakenAtBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_p","type":"uint256"}],"name":"pendingValidatorsAtPosition","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_snapshotId","type":"uint256"}],"name":"getSnapshotAddresses","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newAddress","type":"address"}],"name":"setProxyStorage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"},{"name":"_validator","type":"address"}],"name":"delegatedAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","typ |