Skip to content
Verified contractPartial

ResourcesBlockchain

Address0xcd035443d7edd84df98283714d3ab192a6bb0bab
Balance

0 ETH

 

Transactions

1,309

 

Compiler

solc 0.5.10

 

Same code

Only this contract

 

Details

Compiler
solc 0.5.10+commit.5a6ea5b1
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
8,263,316
Creation transaction
0x36f16ab574…09b506885f

ResourcesBlockchain.sol

/**
 *Submitted for verification at Etherscan.io on 2019-08-01
*/

pragma solidity 0.5.10;

contract ResourcesBlockchain {
    mapping (address => uint256) public balanceOf;

    string public name = "Resources Blockchain";
    string public symbol = "RSC";
    uint8 public decimals = 18;
    uint256 public totalSupply = 166000000 * (uint256(10) ** decimals);

    event Transfer(address indexed from, address indexed to, uint256 value);

    constructor() public {
        balanceOf[msg.sender] = totalSupply;
        emit Transfer(address(0), msg.sender, totalSupply);
    }

    function transfer(address to, uint256 value) public returns (bool success) {
        require(balanceOf[msg.sender] >= value);
        balanceOf[msg.sender] -= value;
        balanceOf[to] += value;
        emit Transfer(msg.sender, to, value);
        return true;
    }

    event Approval(address indexed owner, address indexed spender, uint256 value);

    mapping(address => mapping(address => uint256)) public allowance;

    function approve(address spender, uint256 value)
        public
        returns (bool success)
    {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    function transferFrom(address from, address to, uint256 value)
        public
        returns (bool success)
    {
        require(value <= balanceOf[from]);
        require(value <= allowance[from][msg.sender]);

        balanceOf[from] -= value;
        balanceOf[to] += value;
        allowance[from][msg.sender] -= value;
        emit Transfer(from, to, value);
        return true;
    }
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.