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
// 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) |
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
# evaluate the equation y=x^3+x+5 for x | |
def qeval(x): | |
return x^3+x+5 |
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
0x87252ea7D298b1c822e791931AFeFb2a6DDD00f7 |
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
0x0092781f6397a37ed76038503741aa6CaCEFf90D |
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
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 |
NewerOlder