Skip to content

Instantly share code, notes, and snippets.

View LiorRabin's full-sized avatar
💻

Lior Rabin LiorRabin

💻
  • monday.com
  • Israel
View GitHub Profile
@LiorRabin
LiorRabin / .create-ubuntu-pod.sh
Created November 9, 2023 04:14
create-ubuntu-pod
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
@LiorRabin
LiorRabin / fuse-consensus-details.js
Last active December 22, 2019 09:35
read fuse consensus contract
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