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
| string public name; | |
| string public symbol; | |
| uint8 public decimals; | |
| string public currency; | |
| address public masterMinter; | |
| bool internal initialized; | |
| mapping(address => uint256) internal balances; | |
| mapping(address => mapping(address => uint256)) internal allowed; | |
| uint256 internal totalSupply_ = 0; |
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
| function transfer(address _to, uint256 _value) whenNotPaused notBlacklisted(msg.sender) notBlacklisted(_to) public returns (bool) { | |
| ... | |
| } | |
| function configureMinter(address minter, uint256 minterAllowedAmount) whenNotPaused onlyMasterMinter public returns (bool) { | |
| ... | |
| } |
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
| function transferFrom(address _from, address _to, uint256 _value) whenNotPaused notBlacklisted(_to) notBlacklisted(msg.sender) notBlacklisted(_from) public returns (bool) { | |
| require(_to != address(0)); | |
| ... | |
| } | |
| function approve(address _spender, uint256 _value) whenNotPaused notBlacklisted(msg.sender) notBlacklisted(_spender) public returns (bool) { | |
| allowed[msg.sender][_spender] = _value; | |
| emit Approval(msg.sender, _spender, _value); | |
| return true; | |
| } |
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
| function changeFeeMake(uint feeMake_) { | |
| if (msg.sender != admin) throw; | |
| if (feeMake_ > feeMake) throw; | |
| feeMake = feeMake_; | |
| } | |
| function changeFeeTake(uint feeTake_) { | |
| if (msg.sender != admin) throw; | |
| if (feeTake_ > feeTake || feeTake_ < feeRebate) throw; | |
| feeTake = feeTake_; |
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
| contract.revise('35707666377435648211887908874984608119992236509074197713628505308453184860938', '0x000000000000000000000000f0083dca53282b299b5e937c209c2615d62474ab', {from:player, gas: 900000}); |
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 'zeppelin-solidity/contracts/ownership/Ownable.sol'; | |
| contract AlienCodex is Ownable { | |
| bool public contact; | |
| bytes32[] public codex; | |
| modifier contacted() { |
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
| data = "0x1d3d4c0b00000000000000000000000000000000000000000000000000000000201000000000000000000000000000000000000000000000000000000000000000" |
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
| contract Calc { | |
| bytes32 public one; | |
| uint public index; | |
| uint public length; | |
| bytes32 public lengthBytes; | |
| function getIndex() { | |
| one = keccak256(bytes32(1)); | |
| index = 2 ** 256 - 1 - uint(one) + 1; |
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.16; | |
| contract Token { | |
| bytes32 public standard; | |
| bytes32 public name; | |
| bytes32 public symbol; | |
| uint256 public totalSupply; | |
| uint8 public decimals; | |
| bool public allowTransactions; | |
| mapping (address => uint256) public balanceOf; |
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
| function setInactivityReleasePeriod(uint256 expiry) onlyAdmin returns (bool success) { | |
| if (expiry > 1000000) throw; | |
| inactivityReleasePeriod = expiry; | |
| return true; | |
| } | |
| function withdraw(address token, uint256 amount) returns (bool success) { | |
| if (safeSub(block.number, lastActiveTransaction[msg.sender]) < inactivityReleasePeriod) throw; | |
| ... | |
| } |