Skip to content

Instantly share code, notes, and snippets.

View alonmuroch's full-sized avatar

Alon Muroch alonmuroch

View GitHub Profile
// example grpc for fetching minimal slashing data from Prsym's slasher
address := "<slasher_address>:<slasher_port>"
conn, err := grpc.Dial(address, grpc.WithInsecure())
if err != nil {
fmt.Printf("%s", err.Error())
return
}
defer conn.Close()
client := slashpb.NewSlasherClient(conn)
# evaluate the equation y=x^3+x+5 for x
def qeval(x):
return x^3+x+5
0x87252ea7D298b1c822e791931AFeFb2a6DDD00f7
0x0092781f6397a37ed76038503741aa6CaCEFf90D
pragma solidity ^0.4.8;
// import "./StandardToken.sol";
import 'zeppelin-solidity/contracts/token/VestedToken.sol';
import 'zeppelin-solidity/contracts/SafeMath.sol';
contract CDTToken is VestedToken {
using SafeMath for uint;
//FIELDS
//CONSTANTS