ERC-20
Overview
Max Total Supply
28,700,000
Holders
168
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x38513Db8...7Eb03b561 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
CSCResource
Compiler Version
v0.4.21+commit.dfe3193c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-05-12 */ pragma solidity ^0.4.21; library strings { struct slice { uint _len; uint _ptr; } /* * @dev Returns a slice containing the entire string. * @param self The string to make a slice from. * @return A newly allocated slice containing the entire string. */ function toSlice(string self) internal pure returns (slice) { uint ptr; assembly { ptr := add(self, 0x20) } return slice(bytes(self).length, ptr); } function memcpy(uint dest, uint src, uint len) private pure { // Copy word-length chunks while possible for(; len >= 32; len -= 32) { assembly { mstore(dest, mload(src)) } dest += 32; src += 32; } // Copy remaining bytes uint mask = 256 ** (32 - len) - 1; assembly { let srcpart := and(mload(src), not(mask)) let destpart := and(mload(dest), mask) mstore(dest, or(destpart, srcpart)) } } function concat(slice self, slice other) internal returns (string) { var ret = new string(self._len + other._len); uint retptr; assembly { retptr := add(ret, 32) } memcpy(retptr, self._ptr, self._len); memcpy(retptr + self._len, other._ptr, other._len); return ret; } /* * @dev Counts the number of nonoverlapping occurrences of `needle` in `self`. * @param self The slice to search. * @param needle The text to search for in `self`. * @return The number of occurrences of `needle` found in `self`. */ function count(slice self, slice needle) internal returns (uint cnt) { uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len; while (ptr <= self._ptr + self._len) { cnt++; ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._len, needle._ptr) + needle._len; } } // Returns the memory address of the first byte of the first occurrence of // `needle` in `self`, or the first byte after `self` if not found. function findPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private returns (uint) { uint ptr; uint idx; if (needlelen <= selflen) { if (needlelen <= 32) { // Optimized assembly for 68 gas per byte on short strings assembly { let mask := not(sub(exp(2, mul(8, sub(32, needlelen))), 1)) let needledata := and(mload(needleptr), mask) let end := add(selfptr, sub(selflen, needlelen)) ptr := selfptr loop: jumpi(exit, eq(and(mload(ptr), mask), needledata)) ptr := add(ptr, 1) jumpi(loop, lt(sub(ptr, 1), end)) ptr := add(selfptr, selflen) exit: } return ptr; } else { // For long needles, use hashing bytes32 hash; assembly { hash := sha3(needleptr, needlelen) } ptr = selfptr; for (idx = 0; idx <= selflen - needlelen; idx++) { bytes32 testHash; assembly { testHash := sha3(ptr, needlelen) } if (hash == testHash) return ptr; ptr += 1; } } } return selfptr + selflen; } /* * @dev Splits the slice, setting `self` to everything after the first * occurrence of `needle`, and `token` to everything before it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and `token` is set to the entirety of `self`. * @param self The slice to split. * @param needle The text to search for in `self`. * @param token An output parameter to which the first token is written. * @return `token`. */ function split(slice self, slice needle, slice token) internal returns (slice) { uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr); token._ptr = self._ptr; token._len = ptr - self._ptr; if (ptr == self._ptr + self._len) { // Not found self._len = 0; } else { self._len -= token._len + needle._len; self._ptr = ptr + needle._len; } return token; } /* * @dev Splits the slice, setting `self` to everything after the first * occurrence of `needle`, and returning everything before it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and the entirety of `self` is returned. * @param self The slice to split. * @param needle The text to search for in `self`. * @return The part of `self` up to the first occurrence of `delim`. */ function split(slice self, slice needle) internal returns (slice token) { split(self, needle, token); } /* * @dev Copies a slice to a new string. * @param self The slice to copy. * @return A newly allocated string containing the slice's text. */ function toString(slice self) internal pure returns (string) { var ret = new string(self._len); uint retptr; assembly { retptr := add(ret, 32) } memcpy(retptr, self._ptr, self._len); return ret; } } /* Helper String Functions for Game Manager Contract * @title String Healpers * @author Fazri Zubair & Farhan Khwaja (Lucid Sight, Inc.) */ contract StringHelpers { using strings for *; function stringToBytes32(string memory source) internal returns (bytes32 result) { bytes memory tempEmptyStringTest = bytes(source); if (tempEmptyStringTest.length == 0) { return 0x0; } assembly { result := mload(add(source, 32)) } } function bytes32ToString(bytes32 x) constant internal returns (string) { bytes memory bytesString = new bytes(32); uint charCount = 0; for (uint j = 0; j < 32; j++) { byte char = byte(bytes32(uint(x) * 2 ** (8 * j))); if (char != 0) { bytesString[charCount] = char; charCount++; } } bytes memory bytesStringTrimmed = new bytes(charCount); for (j = 0; j < charCount; j++) { bytesStringTrimmed[j] = bytesString[j]; } return string(bytesStringTrimmed); } } /* Controls state and access rights for contract functions * @title Operational Control * @author Fazri Zubair & Farhan Khwaja (Lucid Sight, Inc.) * Inspired and adapted from contract created by OpenZeppelin * Ref: https://github.com/OpenZeppelin/zeppelin-solidity/ */ contract OperationalControl { // Facilitates access & control for the game. // Roles: // -The Managers (Primary/Secondary): Has universal control of all elements (No ability to withdraw) // -The Banker: The Bank can withdraw funds and adjust fees / prices. // -otherManagers: Contracts that need access to functions for gameplay /// @dev Emited when contract is upgraded event ContractUpgrade(address newContract); // The addresses of the accounts (or contracts) that can execute actions within each roles. address public managerPrimary; address public managerSecondary; address public bankManager; // Contracts that require access for gameplay mapping(address => uint8) public otherManagers; // @dev Keeps track whether the contract is paused. When that is true, most actions are blocked bool public paused = false; // @dev Keeps track whether the contract erroredOut. When that is true, most actions are blocked & refund can be claimed bool public error = false; /// @dev Operation modifiers for limiting access modifier onlyManager() { require(msg.sender == managerPrimary || msg.sender == managerSecondary); _; } modifier onlyBanker() { require(msg.sender == bankManager); _; } modifier onlyOtherManagers() { require(otherManagers[msg.sender] == 1); _; } modifier anyOperator() { require( msg.sender == managerPrimary || msg.sender == managerSecondary || msg.sender == bankManager || otherManagers[msg.sender] == 1 ); _; } /// @dev Assigns a new address to act as the Other Manager. (State = 1 is active, 0 is disabled) function setOtherManager(address _newOp, uint8 _state) external onlyManager { require(_newOp != address(0)); otherManagers[_newOp] = _state; } /// @dev Assigns a new address to act as the Primary Manager. function setPrimaryManager(address _newGM) external onlyManager { require(_newGM != address(0)); managerPrimary = _newGM; } /// @dev Assigns a new address to act as the Secondary Manager. function setSecondaryManager(address _newGM) external onlyManager { require(_newGM != address(0)); managerSecondary = _newGM; } /// @dev Assigns a new address to act as the Banker. function setBanker(address _newBK) external onlyManager { require(_newBK != address(0)); bankManager = _newBK; } /*** Pausable functionality adapted from OpenZeppelin ***/ /// @dev Modifier to allow actions only when the contract IS NOT paused modifier whenNotPaused() { require(!paused); _; } /// @dev Modifier to allow actions only when the contract IS paused modifier whenPaused { require(paused); _; } /// @dev Modifier to allow actions only when the contract has Error modifier whenError { require(error); _; } /// @dev Called by any Operator role to pause the contract. /// Used only if a bug or exploit is discovered (Here to limit losses / damage) function pause() external onlyManager whenNotPaused { paused = true; } /// @dev Unpauses the smart contract. Can only be called by the Game Master /// @notice This is public rather than external so it can be called by derived contracts. function unpause() public onlyManager whenPaused { // can't unpause if contract was upgraded paused = false; } /// @dev Unpauses the smart contract. Can only be called by the Game Master /// @notice This is public rather than external so it can be called by derived contracts. function hasError() public onlyManager whenPaused { error = true; } /// @dev Unpauses the smart contract. Can only be called by the Game Master /// @notice This is public rather than external so it can be called by derived contracts. function noError() public onlyManager whenPaused { error = false; } } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; } /** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; } } /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } /** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */ contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; } /** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */ function balanceOf(address _owner) public view returns (uint256) { return balances[_owner]; } } /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @title ERC827 interface, an extension of ERC20 token standard * * @dev Interface of a ERC827 token, following the ERC20 standard with extra * @dev methods to transfer value and data and execute calls in transfers and * @dev approvals. */ contract ERC827 is ERC20 { function approveAndCall( address _spender, uint256 _value, bytes _data) public payable returns (bool); function transferAndCall( address _to, uint256 _value, bytes _data) public payable returns (bool); function transferFromAndCall( address _from, address _to, uint256 _value, bytes _data ) public payable returns (bool); } /** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */ contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); emit Transfer(_from, _to, _value); return true; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */ function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } /** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */ function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; } /** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spender The address which will spend the funds. * @param _addedValue The amount of tokens to increase the allowance by. */ function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } /** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spender The address which will spend the funds. * @param _subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } } /* solium-disable security/no-low-level-calls */ /** * @title ERC827, an extension of ERC20 token standard * * @dev Implementation the ERC827, following the ERC20 standard with extra * @dev methods to transfer value and data and execute calls in transfers and * @dev approvals. * * @dev Uses OpenZeppelin StandardToken. */ contract ERC827Token is ERC827, StandardToken { /** * @dev Addition to ERC20 token methods. It allows to * @dev approve the transfer of value and execute a call with the sent data. * * @dev Beware that changing an allowance with this method brings the risk that * @dev someone may use both the old and the new allowance by unfortunate * @dev transaction ordering. One possible solution to mitigate this race condition * @dev is to first reduce the spender's allowance to 0 and set the desired value * @dev afterwards: * @dev https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * @param _spender The address that will spend the funds. * @param _value The amount of tokens to be spent. * @param _data ABI-encoded contract call to call `_to` address. * * @return true if the call function was executed successfully */ function approveAndCall(address _spender, uint256 _value, bytes _data) public payable returns (bool) { require(_spender != address(this)); super.approve(_spender, _value); // solium-disable-next-line security/no-call-value require(_spender.call.value(msg.value)(_data)); return true; } /** * @dev Addition to ERC20 token methods. Transfer tokens to a specified * @dev address and execute a call with the sent data on the same transaction * * @param _to address The address which you want to transfer to * @param _value uint256 the amout of tokens to be transfered * @param _data ABI-encoded contract call to call `_to` address. * * @return true if the call function was executed successfully */ function transferAndCall(address _to, uint256 _value, bytes _data) public payable returns (bool) { require(_to != address(this)); super.transfer(_to, _value); // solium-disable-next-line security/no-call-value require(_to.call.value(msg.value)(_data)); return true; } /** * @dev Addition to ERC20 token methods. Transfer tokens from one address to * @dev another and make a contract call on the same transaction * * @param _from The address which you want to send tokens from * @param _to The address which you want to transfer to * @param _value The amout of tokens to be transferred * @param _data ABI-encoded contract call to call `_to` address. * * @return true if the call function was executed successfully */ function transferFromAndCall( address _from, address _to, uint256 _value, bytes _data ) public payable returns (bool) { require(_to != address(this)); super.transferFrom(_from, _to, _value); // solium-disable-next-line security/no-call-value require(_to.call.value(msg.value)(_data)); return true; } /** * @dev Addition to StandardToken methods. Increase the amount of tokens that * @dev an owner allowed to a spender and execute a call with the sent data. * * @dev approve should be called when allowed[_spender] == 0. To increment * @dev allowed value is better to use this function to avoid 2 calls (and wait until * @dev the first transaction is mined) * @dev From MonolithDAO Token.sol * * @param _spender The address which will spend the funds. * @param _addedValue The amount of tokens to increase the allowance by. * @param _data ABI-encoded contract call to call `_spender` address. */ function increaseApprovalAndCall(address _spender, uint _addedValue, bytes _data) public payable returns (bool) { require(_spender != address(this)); super.increaseApproval(_spender, _addedValue); // solium-disable-next-line security/no-call-value require(_spender.call.value(msg.value)(_data)); return true; } /** * @dev Addition to StandardToken methods. Decrease the amount of tokens that * @dev an owner allowed to a spender and execute a call with the sent data. * * @dev approve should be called when allowed[_spender] == 0. To decrement * @dev allowed value is better to use this function to avoid 2 calls (and wait until * @dev the first transaction is mined) * @dev From MonolithDAO Token.sol * * @param _spender The address which will spend the funds. * @param _subtractedValue The amount of tokens to decrease the allowance by. * @param _data ABI-encoded contract call to call `_spender` address. */ function decreaseApprovalAndCall(address _spender, uint _subtractedValue, bytes _data) public payable returns (bool) { require(_spender != address(this)); super.decreaseApproval(_spender, _subtractedValue); // solium-disable-next-line security/no-call-value require(_spender.call.value(msg.value)(_data)); return true; } } /** * @title Mintable token * @title Burnable Token * @dev Token that can be irreversibly burned (destroyed). * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/openzeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */ contract CSCResource is ERC827Token, OperationalControl { event Burn(address indexed burner, uint256 value); event Mint(address indexed to, uint256 amount); // Token Name string public NAME; // Token Symbol string public SYMBOL; // Token decimals uint public constant DECIMALS = 0; /** * Construct the token. * * This token must be created through a team multisig wallet, so that it is owned by that wallet. * */ function CSCResource(string _name, string _symbol, uint _initialSupply) public { // Create any address, can be transferred managerPrimary = msg.sender; managerSecondary = msg.sender; bankManager = msg.sender; NAME = _name; SYMBOL = _symbol; // Create initial supply totalSupply_ = totalSupply_.add(_initialSupply); balances[msg.sender] = balances[msg.sender].add(_initialSupply); emit Mint(msg.sender, _initialSupply); emit Transfer(address(0), msg.sender, _initialSupply); } /** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */ function burn(uint256 _value) public { _burn(msg.sender, _value); } function _burn(address _who, uint256 _value) internal { require(_value <= balances[_who]); // no need to require value <= totalSupply, since that would imply the // sender's balance is greater than the totalSupply, which *should* be an assertion failure balances[_who] = balances[_who].sub(_value); totalSupply_ = totalSupply_.sub(_value); emit Burn(_who, _value); emit Transfer(_who, address(0), _value); } /** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */ function mint(address _to, uint256 _amount) public anyOperator returns (bool) { totalSupply_ = totalSupply_.add(_amount); balances[_to] = balances[_to].add(_amount); emit Mint(_to, _amount); emit Transfer(address(0), _to, _amount); return true; } } contract CSCResourceFactory is OperationalControl, StringHelpers { event CSCResourceCreated(string resourceContract, address contractAddress, uint256 amount); mapping(uint16 => address) public resourceIdToAddress; mapping(bytes32 => address) public resourceNameToAddress; mapping(uint16 => bytes32) public resourceIdToName; uint16 resourceTypeCount; function CSCResourceFactory() public { managerPrimary = msg.sender; managerSecondary = msg.sender; bankManager = msg.sender; } function createNewCSCResource(string _name, string _symbol, uint _initialSupply) public anyOperator { require(resourceNameToAddress[stringToBytes32(_name)] == 0x0); address resourceContract = new CSCResource(_name, _symbol, _initialSupply); resourceIdToAddress[resourceTypeCount] = resourceContract; resourceNameToAddress[stringToBytes32(_name)] = resourceContract; resourceIdToName[resourceTypeCount] = stringToBytes32(_name); emit CSCResourceCreated(_name, resourceContract, _initialSupply); //Inc. for next resource resourceTypeCount += 1; } function setResourcesPrimaryManager(address _op) public onlyManager { require(_op != address(0)); uint16 totalResources = getResourceCount(); for(uint16 i = 0; i < totalResources; i++) { CSCResource resContract = CSCResource(resourceIdToAddress[i]); resContract.setPrimaryManager(_op); } } function setResourcesSecondaryManager(address _op) public onlyManager { require(_op != address(0)); uint16 totalResources = getResourceCount(); for(uint16 i = 0; i < totalResources; i++) { CSCResource resContract = CSCResource(resourceIdToAddress[i]); resContract.setSecondaryManager(_op); } } function setResourcesBanker(address _op) public onlyManager { require(_op != address(0)); uint16 totalResources = getResourceCount(); for(uint16 i = 0; i < totalResources; i++) { CSCResource resContract = CSCResource(resourceIdToAddress[i]); resContract.setBanker(_op); } } function setResourcesOtherManager(address _op, uint8 _state) public anyOperator { require(_op != address(0)); uint16 totalResources = getResourceCount(); for(uint16 i = 0; i < totalResources; i++) { CSCResource resContract = CSCResource(resourceIdToAddress[i]); resContract.setOtherManager(_op, _state); } } function withdrawFactoryResourceBalance(uint16 _resId) public onlyBanker { require(resourceIdToAddress[_resId] != 0); CSCResource resContract = CSCResource(resourceIdToAddress[_resId]); uint256 resBalance = resContract.balanceOf(this); resContract.transfer(bankManager, resBalance); } function transferFactoryResourceAmount(uint16 _resId, address _to, uint256 _amount) public onlyBanker { require(resourceIdToAddress[_resId] != 0); require(_to != address(0)); CSCResource resContract = CSCResource(resourceIdToAddress[_resId]); uint256 resBalance = resContract.balanceOf(this); require(resBalance >= _amount); resContract.transfer(_to, _amount); } function mintResource(uint16 _resId, uint256 _amount) public onlyBanker { require(resourceIdToAddress[_resId] != 0); CSCResource resContract = CSCResource(resourceIdToAddress[_resId]); resContract.mint(this, _amount); } function burnResource(uint16 _resId, uint256 _amount) public onlyBanker { require(resourceIdToAddress[_resId] != 0); CSCResource resContract = CSCResource(resourceIdToAddress[_resId]); resContract.burn(_amount); } function getResourceName(uint16 _resId) public view returns (bytes32 name) { return resourceIdToName[_resId]; } function getResourceCount() public view returns (uint16 resourceTotal) { return resourceTypeCount; } function getResourceBalance(uint16 _resId, address _wallet) public view returns (uint256 amt) { require(resourceIdToAddress[_resId] != 0); CSCResource resContract = CSCResource(resourceIdToAddress[_resId]); return resContract.balanceOf(_wallet); } /** * @dev helps in fetching the wallet resouce balance * @param _wallet The wallet address */ function getWalletResourceBalance(address _wallet) external view returns(uint256[] resourceBalance){ require(_wallet != address(0)); uint16 totalResources = getResourceCount(); uint256[] memory result = new uint256[](totalResources); for(uint16 i = 0; i < totalResources; i++) { CSCResource resContract = CSCResource(resourceIdToAddress[i]); result[i] = resContract.balanceOf(_wallet); } return result; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"otherManagers","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DECIMALS","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"transferAndCall","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newGM","type":"address"}],"name":"setSecondaryManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"noError","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"increaseApprovalAndCall","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"NAME","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"hasError","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"managerPrimary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOp","type":"address"},{"name":"_state","type":"uint8"}],"name":"setOtherManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newGM","type":"address"}],"name":"setPrimaryManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"transferFromAndCall","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"error","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"decreaseApprovalAndCall","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"bankManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"managerSecondary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newBK","type":"address"}],"name":"setBanker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"SYMBOL","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_initialSupply","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newContract","type":"address"}],"name":"ContractUpgrade","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
60606040526007805461ffff1916905534156200001b57600080fd5b60405162001764380380620017648339810160405280805182019190602001805182019190602001805160038054600160a060020a033316600160a060020a031991821681179092556004805482168317905560058054909116909117905591506008905083805162000093929160200190620001ab565b506009828051620000a9929160200190620001ab565b50600154620000c79082640100000000620013ba6200019782021704565b600155600160a060020a033316600090815260208190526040902054620000fd9082640100000000620013ba6200019782021704565b600160a060020a0333166000818152602081905260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859083905190815260200160405180910390a2600160a060020a03331660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a350505062000250565b81810182811015620001a557fe5b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001ee57805160ff19168380011785556200021e565b828001600101855582156200021e579182015b828111156200021e57825182559160200191906001019062000201565b506200022c92915062000230565b5090565b6200024d91905b808211156200022c576000815560010162000237565b90565b61150480620002606000396000f3006060604052600436106101955763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b3811461019a57806318160ddd146101d057806323b872dd146101f557806323d7af241461021d5780632e0f2625146102525780633f4ba83a146102655780634000aea01461027a57806340c10f19146102d457806342966c68146102f65780635c975abb1461030c578063661884631461031f57806370a0823114610341578063825bdb74146103605780638456cb591461037f5780638a53f2301461039257806390db623f146103a5578063a3f4df7e146103ff578063a9059cbb14610489578063ad5e46cb146104ab578063b777cad7146104be578063bb1d45fc146104ed578063c0619c7014610512578063c1d34b8914610531578063c79f8b6214610592578063cae9ca51146105a5578063cb3993be146105ff578063d73dd62314610659578063dd62ed3e1461067b578063e9e2990e146106a0578063ee70f392146106b3578063f1ff732b146106c6578063f76f8d78146106e5575b600080fd5b34156101a557600080fd5b6101bc600160a060020a03600435166024356106f8565b604051901515815260200160405180910390f35b34156101db57600080fd5b6101e3610764565b60405190815260200160405180910390f35b341561020057600080fd5b6101bc600160a060020a036004358116906024351660443561076a565b341561022857600080fd5b61023c600160a060020a03600435166108d8565b60405160ff909116815260200160405180910390f35b341561025d57600080fd5b6101e36108ed565b341561027057600080fd5b6102786108f2565b005b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061094595505050505050565b34156102df57600080fd5b6101bc600160a060020a0360043516602435610a00565b341561030157600080fd5b610278600435610b3f565b341561031757600080fd5b6101bc610b4c565b341561032a57600080fd5b6101bc600160a060020a0360043516602435610b55565b341561034c57600080fd5b6101e3600160a060020a0360043516610c4f565b341561036b57600080fd5b610278600160a060020a0360043516610c6a565b341561038a57600080fd5b610278610ce4565b341561039d57600080fd5b610278610d39565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610d8d95505050505050565b341561040a57600080fd5b610412610dba565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561044e578082015183820152602001610436565b50505050905090810190601f16801561047b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561049457600080fd5b6101bc600160a060020a0360043516602435610e58565b34156104b657600080fd5b610278610f58565b34156104c957600080fd5b6104d1610fb0565b604051600160a060020a03909116815260200160405180910390f35b34156104f857600080fd5b610278600160a060020a036004351660ff60243516610fbf565b341561051d57600080fd5b610278600160a060020a0360043516611037565b6101bc600160a060020a036004803582169160248035909116916044359160849060643590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506110b195505050505050565b341561059d57600080fd5b6101bc61116e565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061117c95505050505050565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506111a995505050505050565b341561066457600080fd5b6101bc600160a060020a03600435166024356111d6565b341561068657600080fd5b6101e3600160a060020a036004358116906024351661127a565b34156106ab57600080fd5b6104d16112a5565b34156106be57600080fd5b6104d16112b4565b34156106d157600080fd5b610278600160a060020a03600435166112c3565b34156106f057600080fd5b61041261133d565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60015490565b6000600160a060020a038316151561078157600080fd5b600160a060020a0384166000908152602081905260409020548211156107a657600080fd5b600160a060020a03808516600090815260026020908152604080832033909416835292905220548211156107d957600080fd5b600160a060020a038416600090815260208190526040902054610802908363ffffffff6113a816565b600160a060020a038086166000908152602081905260408082209390935590851681522054610837908363ffffffff6113ba16565b600160a060020a038085166000908152602081815260408083209490945587831682526002815283822033909316825291909152205461087d908363ffffffff6113a816565b600160a060020a03808616600081815260026020908152604080832033861684529091529081902093909355908516916000805160206114b98339815191529085905190815260200160405180910390a35060019392505050565b60066020526000908152604090205460ff1681565b600081565b60035433600160a060020a039081169116148061091d575060045433600160a060020a039081169116145b151561092857600080fd5b60075460ff16151561093957600080fd5b6007805460ff19169055565b600030600160a060020a031684600160a060020a03161415151561096857600080fd5b6109728484610e58565b5083600160a060020a0316348360405180828051906020019080838360005b838110156109a9578082015183820152602001610991565b50505050905090810190601f1680156109d65780820380516001836020036101000a031916815260200191505b5091505060006040518083038185875af19250505015156109f657600080fd5b5060019392505050565b60035460009033600160a060020a0390811691161480610a2e575060045433600160a060020a039081169116145b80610a47575060055433600160a060020a039081169116145b80610a6d5750600160a060020a03331660009081526006602052604090205460ff166001145b1515610a7857600080fd5b600154610a8b908363ffffffff6113ba16565b600155600160a060020a038316600090815260208190526040902054610ab7908363ffffffff6113ba16565b600160a060020a0384166000818152602081905260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a2600160a060020a03831660006000805160206114b98339815191528460405190815260200160405180910390a350600192915050565b610b4933826113cd565b50565b60075460ff1681565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205480831115610bb257600160a060020a033381166000908152600260209081526040808320938816835292905290812055610be9565b610bc2818463ffffffff6113a816565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526020819052604090205490565b60035433600160a060020a0390811691161480610c95575060045433600160a060020a039081169116145b1515610ca057600080fd5b600160a060020a0381161515610cb557600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60035433600160a060020a0390811691161480610d0f575060045433600160a060020a039081169116145b1515610d1a57600080fd5b60075460ff1615610d2a57600080fd5b6007805460ff19166001179055565b60035433600160a060020a0390811691161480610d64575060045433600160a060020a039081169116145b1515610d6f57600080fd5b60075460ff161515610d8057600080fd5b6007805461ff0019169055565b600030600160a060020a031684600160a060020a031614151515610db057600080fd5b61097284846111d6565b60088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e505780601f10610e2557610100808354040283529160200191610e50565b820191906000526020600020905b815481529060010190602001808311610e3357829003601f168201915b505050505081565b6000600160a060020a0383161515610e6f57600080fd5b600160a060020a033316600090815260208190526040902054821115610e9457600080fd5b600160a060020a033316600090815260208190526040902054610ebd908363ffffffff6113a816565b600160a060020a033381166000908152602081905260408082209390935590851681522054610ef2908363ffffffff6113ba16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a03166000805160206114b98339815191528460405190815260200160405180910390a350600192915050565b60035433600160a060020a0390811691161480610f83575060045433600160a060020a039081169116145b1515610f8e57600080fd5b60075460ff161515610f9f57600080fd5b6007805461ff001916610100179055565b600354600160a060020a031681565b60035433600160a060020a0390811691161480610fea575060045433600160a060020a039081169116145b1515610ff557600080fd5b600160a060020a038216151561100a57600080fd5b600160a060020a03919091166000908152600660205260409020805460ff191660ff909216919091179055565b60035433600160a060020a0390811691161480611062575060045433600160a060020a039081169116145b151561106d57600080fd5b600160a060020a038116151561108257600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600030600160a060020a031684600160a060020a0316141515156110d457600080fd5b6110df85858561076a565b5083600160a060020a0316348360405180828051906020019080838360005b838110156111165780820151838201526020016110fe565b50505050905090810190601f1680156111435780820380516001836020036101000a031916815260200191505b5091505060006040518083038185875af192505050151561116357600080fd5b506001949350505050565b600754610100900460ff1681565b600030600160a060020a031684600160a060020a03161415151561119f57600080fd5b61097284846106f8565b600030600160a060020a031684600160a060020a0316141515156111cc57600080fd5b6109728484610b55565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205461120e908363ffffffff6113ba16565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600554600160a060020a031681565b600454600160a060020a031681565b60035433600160a060020a03908116911614806112ee575060045433600160a060020a039081169116145b15156112f957600080fd5b600160a060020a038116151561130e57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60098054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e505780601f10610e2557610100808354040283529160200191610e50565b6000828211156113b457fe5b50900390565b818101828110156113c757fe5b92915050565b600160a060020a0382166000908152602081905260409020548111156113f257600080fd5b600160a060020a03821660009081526020819052604090205461141b908263ffffffff6113a816565b600160a060020a038316600090815260208190526040902055600154611447908263ffffffff6113a816565b600155600160a060020a0382167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405190815260200160405180910390a26000600160a060020a0383166000805160206114b98339815191528360405190815260200160405180910390a350505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820817ec102c5e476fd238656600cb6c88534196ae894806746d6b59682322f4dd50029000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000026bf961000000000000000000000000000000000000000000000000000000000000000449726f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064353432d49520000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6060604052600436106101955763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b3811461019a57806318160ddd146101d057806323b872dd146101f557806323d7af241461021d5780632e0f2625146102525780633f4ba83a146102655780634000aea01461027a57806340c10f19146102d457806342966c68146102f65780635c975abb1461030c578063661884631461031f57806370a0823114610341578063825bdb74146103605780638456cb591461037f5780638a53f2301461039257806390db623f146103a5578063a3f4df7e146103ff578063a9059cbb14610489578063ad5e46cb146104ab578063b777cad7146104be578063bb1d45fc146104ed578063c0619c7014610512578063c1d34b8914610531578063c79f8b6214610592578063cae9ca51146105a5578063cb3993be146105ff578063d73dd62314610659578063dd62ed3e1461067b578063e9e2990e146106a0578063ee70f392146106b3578063f1ff732b146106c6578063f76f8d78146106e5575b600080fd5b34156101a557600080fd5b6101bc600160a060020a03600435166024356106f8565b604051901515815260200160405180910390f35b34156101db57600080fd5b6101e3610764565b60405190815260200160405180910390f35b341561020057600080fd5b6101bc600160a060020a036004358116906024351660443561076a565b341561022857600080fd5b61023c600160a060020a03600435166108d8565b60405160ff909116815260200160405180910390f35b341561025d57600080fd5b6101e36108ed565b341561027057600080fd5b6102786108f2565b005b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061094595505050505050565b34156102df57600080fd5b6101bc600160a060020a0360043516602435610a00565b341561030157600080fd5b610278600435610b3f565b341561031757600080fd5b6101bc610b4c565b341561032a57600080fd5b6101bc600160a060020a0360043516602435610b55565b341561034c57600080fd5b6101e3600160a060020a0360043516610c4f565b341561036b57600080fd5b610278600160a060020a0360043516610c6a565b341561038a57600080fd5b610278610ce4565b341561039d57600080fd5b610278610d39565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610d8d95505050505050565b341561040a57600080fd5b610412610dba565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561044e578082015183820152602001610436565b50505050905090810190601f16801561047b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561049457600080fd5b6101bc600160a060020a0360043516602435610e58565b34156104b657600080fd5b610278610f58565b34156104c957600080fd5b6104d1610fb0565b604051600160a060020a03909116815260200160405180910390f35b34156104f857600080fd5b610278600160a060020a036004351660ff60243516610fbf565b341561051d57600080fd5b610278600160a060020a0360043516611037565b6101bc600160a060020a036004803582169160248035909116916044359160849060643590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506110b195505050505050565b341561059d57600080fd5b6101bc61116e565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061117c95505050505050565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506111a995505050505050565b341561066457600080fd5b6101bc600160a060020a03600435166024356111d6565b341561068657600080fd5b6101e3600160a060020a036004358116906024351661127a565b34156106ab57600080fd5b6104d16112a5565b34156106be57600080fd5b6104d16112b4565b34156106d157600080fd5b610278600160a060020a03600435166112c3565b34156106f057600080fd5b61041261133d565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60015490565b6000600160a060020a038316151561078157600080fd5b600160a060020a0384166000908152602081905260409020548211156107a657600080fd5b600160a060020a03808516600090815260026020908152604080832033909416835292905220548211156107d957600080fd5b600160a060020a038416600090815260208190526040902054610802908363ffffffff6113a816565b600160a060020a038086166000908152602081905260408082209390935590851681522054610837908363ffffffff6113ba16565b600160a060020a038085166000908152602081815260408083209490945587831682526002815283822033909316825291909152205461087d908363ffffffff6113a816565b600160a060020a03808616600081815260026020908152604080832033861684529091529081902093909355908516916000805160206114b98339815191529085905190815260200160405180910390a35060019392505050565b60066020526000908152604090205460ff1681565b600081565b60035433600160a060020a039081169116148061091d575060045433600160a060020a039081169116145b151561092857600080fd5b60075460ff16151561093957600080fd5b6007805460ff19169055565b600030600160a060020a031684600160a060020a03161415151561096857600080fd5b6109728484610e58565b5083600160a060020a0316348360405180828051906020019080838360005b838110156109a9578082015183820152602001610991565b50505050905090810190601f1680156109d65780820380516001836020036101000a031916815260200191505b5091505060006040518083038185875af19250505015156109f657600080fd5b5060019392505050565b60035460009033600160a060020a0390811691161480610a2e575060045433600160a060020a039081169116145b80610a47575060055433600160a060020a039081169116145b80610a6d5750600160a060020a03331660009081526006602052604090205460ff166001145b1515610a7857600080fd5b600154610a8b908363ffffffff6113ba16565b600155600160a060020a038316600090815260208190526040902054610ab7908363ffffffff6113ba16565b600160a060020a0384166000818152602081905260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a2600160a060020a03831660006000805160206114b98339815191528460405190815260200160405180910390a350600192915050565b610b4933826113cd565b50565b60075460ff1681565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205480831115610bb257600160a060020a033381166000908152600260209081526040808320938816835292905290812055610be9565b610bc2818463ffffffff6113a816565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526020819052604090205490565b60035433600160a060020a0390811691161480610c95575060045433600160a060020a039081169116145b1515610ca057600080fd5b600160a060020a0381161515610cb557600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60035433600160a060020a0390811691161480610d0f575060045433600160a060020a039081169116145b1515610d1a57600080fd5b60075460ff1615610d2a57600080fd5b6007805460ff19166001179055565b60035433600160a060020a0390811691161480610d64575060045433600160a060020a039081169116145b1515610d6f57600080fd5b60075460ff161515610d8057600080fd5b6007805461ff0019169055565b600030600160a060020a031684600160a060020a031614151515610db057600080fd5b61097284846111d6565b60088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e505780601f10610e2557610100808354040283529160200191610e50565b820191906000526020600020905b815481529060010190602001808311610e3357829003601f168201915b505050505081565b6000600160a060020a0383161515610e6f57600080fd5b600160a060020a033316600090815260208190526040902054821115610e9457600080fd5b600160a060020a033316600090815260208190526040902054610ebd908363ffffffff6113a816565b600160a060020a033381166000908152602081905260408082209390935590851681522054610ef2908363ffffffff6113ba16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a03166000805160206114b98339815191528460405190815260200160405180910390a350600192915050565b60035433600160a060020a0390811691161480610f83575060045433600160a060020a039081169116145b1515610f8e57600080fd5b60075460ff161515610f9f57600080fd5b6007805461ff001916610100179055565b600354600160a060020a031681565b60035433600160a060020a0390811691161480610fea575060045433600160a060020a039081169116145b1515610ff557600080fd5b600160a060020a038216151561100a57600080fd5b600160a060020a03919091166000908152600660205260409020805460ff191660ff909216919091179055565b60035433600160a060020a0390811691161480611062575060045433600160a060020a039081169116145b151561106d57600080fd5b600160a060020a038116151561108257600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600030600160a060020a031684600160a060020a0316141515156110d457600080fd5b6110df85858561076a565b5083600160a060020a0316348360405180828051906020019080838360005b838110156111165780820151838201526020016110fe565b50505050905090810190601f1680156111435780820380516001836020036101000a031916815260200191505b5091505060006040518083038185875af192505050151561116357600080fd5b506001949350505050565b600754610100900460ff1681565b600030600160a060020a031684600160a060020a03161415151561119f57600080fd5b61097284846106f8565b600030600160a060020a031684600160a060020a0316141515156111cc57600080fd5b6109728484610b55565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205461120e908363ffffffff6113ba16565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600554600160a060020a031681565b600454600160a060020a031681565b60035433600160a060020a03908116911614806112ee575060045433600160a060020a039081169116145b15156112f957600080fd5b600160a060020a038116151561130e57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60098054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e505780601f10610e2557610100808354040283529160200191610e50565b6000828211156113b457fe5b50900390565b818101828110156113c757fe5b92915050565b600160a060020a0382166000908152602081905260409020548111156113f257600080fd5b600160a060020a03821660009081526020819052604090205461141b908263ffffffff6113a816565b600160a060020a038316600090815260208190526040902055600154611447908263ffffffff6113a816565b600155600160a060020a0382167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405190815260200160405180910390a26000600160a060020a0383166000805160206114b98339815191528360405190815260200160405180910390a350505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820817ec102c5e476fd238656600cb6c88534196ae894806746d6b59682322f4dd50029
Swarm Source
bzzr://817ec102c5e476fd238656600cb6c88534196ae894806746d6b59682322f4dd5
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.