View Blockstack gist
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
Verifying my Blockstack ID is secured with the address 1CVTf4DmBL5Jfki3qRZiBsGmhRnAZCKJEA https://explorer.blockstack.org/address/1CVTf4DmBL5Jfki3qRZiBsGmhRnAZCKJEA |
View OpcodeChecker.sol
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
/** | |
* @dev OpcodeChecker processes contract code to generate a bitmap of used opcodes. | |
* | |
* The generated bitmap can be used to enforce whitelisting and blacklisting on contract code. | |
* Bit n of the bitmap is set iff opcode n is used. For instance, the presence of the STOP opcode | |
* will result in bit 0 of the bitmap being set. | |
* | |
* A best-effort attempt is made to skip over unreachable data, but there may be false positives. | |
* To the extent the checker is written correctly, there are no false negatives. | |
* |
View ExampleToken.sol
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.24; | |
import "openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; | |
import "openzeppelin-solidity/contracts/token/ERC20/MintableToken.sol"; | |
/** | |
* @title DetailedERC20 token | |
* @dev The decimals are only for visualization purposes. |
View ExampleTokenCrowdsale.sol
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.24; | |
import "openzeppelin-solidity/contracts/crowdsale/Crowdsale.sol"; | |
import "openzeppelin-solidity/contracts/crowdsale/emission/MintedCrowdsale.sol"; | |
import "openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol"; | |
contract ExampleTokenCrowdsale is Crowdsale, MintedCrowdsale, CappedCrowdsale{ | |
//minimum investor Contribution - 20000000000000000000 |
View ExampleTokenCrowdsale.sol
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.24; | |
import "openzeppelin-solidity/contracts/crowdsale/Crowdsale.sol"; | |
import "openzeppelin-solidity/contracts/crowdsale/emission/MintedCrowdsale.sol"; | |
import "openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol"; | |
import "openzeppelin-solidity/contracts/crowdsale/validation/TimedCrowdsale.sol"; | |
contract ExampleTokenCrowdsale is MintedCrowdsale, CappedCrowdsale, TimedCrowdsale{ |
View DividendToken.sol
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.24; | |
import "openzeppelin-solidity/contracts/math/SafeMath.sol"; | |
contract DividendToken{ | |
using SafeMath for uint256; | |
string public name = "Dividend Token"; | |
string public symbol = "DIV"; |
View Escrow.sol
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.24; | |
import "../../math/SafeMath.sol"; | |
import "../../ownership/Secondary.sol"; | |
/** | |
* @title Escrow | |
* @dev Base escrow contract, holds funds designated for a payee until they | |
* withdraw them. | |
* @dev Intended usage: This contract (and derived escrow contracts) should be a |
View Secondary.sol
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.24; | |
import "../../math/SafeMath.sol"; | |
import "../../ownership/Secondary.sol"; | |
contract Escrow is Secondary { | |
using SafeMath for uint256; | |
event Deposited(address indexed payee, uint256 weiAmount); | |
event Withdrawn(address indexed payee, uint256 weiAmount); |
View Dice.sol
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.24; | |
contract Dice{ | |
struct Bet{ | |
uint8 currentBet; | |
bool isBetSet; //default value is false | |
uint8 destiny; | |
} |
View token.json
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
[ | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_interfaceID", | |
"type": "bytes4" | |
} | |
], | |
"name": "supportsInterface", |
OlderNewer