This file contains hidden or 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 |
This file contains hidden or 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. | |
* |
This file contains hidden or 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.23; | |
contract CrudApp { | |
struct country{ | |
string name; | |
string leader; | |
uint256 population; | |
} | |
This file contains hidden or 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. |
This file contains hidden or 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 |
This file contains hidden or 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{ |
This file contains hidden or 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/BurnableToken.sol"; | |
contract ExampleToken is StandardToken, DetailedERC20, BurnableToken{ | |
//We inherited the DetailedERC20 |
This file contains hidden or 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"; |
This file contains hidden or 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 |
This file contains hidden or 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); |
OlderNewer