[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: PaymentBounty
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity 0.4.24;

// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
interface IERC20 {
  function totalSupply() external view returns (uint256);

  function balanceOf(address who) external view returns (uint256);

  function allowance(address owner, address spender)
    external view returns (uint256);

  function transfer(address to, uint256 value) external returns (bool);

  function approve(address spender, uint256 value)
    external returns (bool);

  function transferFrom(address from, address to, uint256 value)
    external returns (bool);

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

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

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, reverts on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b);

    return c;
  }

  /**
  * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b > 0); // Solidity only automatically asserts 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 c;
  }

  /**
  * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b <= a);
    uint256 c = a - b;

    return c;
  }

  /**
  * @dev Adds two numbers, reverts on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a);

    return c;
  }

  /**
  * @dev Divides two numbers and returns the remainder (unsigned integer modulo),
  * reverts when dividing by zero.
  */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0);
    return a % b;
  }
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
 * Originally based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract ERC20 is IERC20 {
  using SafeMath for uint256;

  mapping (address => uint256) private _balances;

  mapping (address => mapping (address => uint256)) private _allowed;

  uint256 private _totalSupply;

  /**
  * @dev Total number of tokens in existence
  */
  function totalSupply() public view returns (uint256) {
    return _totalSupply;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param owner The address to query 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];
  }

  /**
   * @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 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) {
    _transfer(msg.sender, 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) {
    require(spender != address(0));

    _allowed[msg.sender][spender] = value;
    emit Approval(msg.sender, spender, value);
    return true;
  }

  /**
   * @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(value <= _allowed[from][msg.sender]);

    _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
    _transfer(from, to, value);
    return true;
  }

  /**
   * @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 increaseAllowance(
    address spender,
    uint256 addedValue
  )
    public
    returns (bool)
  {
    require(spender != address(0));

    _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 decreaseAllowance(
    address spender,
    uint256 subtractedValue
  )
    public
    returns (bool)
  {
    require(spender != address(0));

    _allowed[msg.sender][spender] = (
      _allowed[msg.sender][spender].sub(subtractedValue));
    emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
    return true;
  }

  /**
  * @dev Transfer token for a specified addresses
  * @param from The address to transfer from.
  * @param to The address to transfer to.
  * @param value The amount to be transferred.
  */
  function _transfer(address from, address to, uint256 value) internal {
    require(value <= _balances[from]);
    require(to != address(0));

    _balances[from] = _balances[from].sub(value);
    _balances[to] = _balances[to].add(value);
    emit Transfer(from, to, value);
  }

  /**
   * @dev Internal function that mints an amount of the token and assigns it to
   * an account. This encapsulates the modification of balances such that the
   * proper events are emitted.
   * @param account The account that will receive the created tokens.
   * @param value The amount that will be created.
   */
  function _mint(address account, uint256 value) internal {
    require(account != 0);
    _totalSupply = _totalSupply.add(value);
    _balances[account] = _balances[account].add(value);
    emit Transfer(address(0), account, value);
  }

  /**
   * @dev Internal function that burns an amount of the token of a given
   * account.
   * @param account The account whose tokens will be burnt.
   * @param value The amount that will be burnt.
   */
  function _burn(address account, uint256 value) internal {
    require(account != 0);
    require(value <= _balances[account]);

    _totalSupply = _totalSupply.sub(value);
    _balances[account] = _balances[account].sub(value);
    emit Transfer(account, address(0), value);
  }

  /**
   * @dev Internal function that burns an amount of the token of a given
   * account, deducting from the sender's allowance for said account. Uses the
   * internal burn function.
   * @param account The account whose tokens will be burnt.
   * @param value The amount that will be burnt.
   */
  function _burnFrom(address account, uint256 value) internal {
    require(value <= _allowed[account][msg.sender]);

    // Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
    // this function needs to emit an event with the updated approval.
    _allowed[account][msg.sender] = _allowed[account][msg.sender].sub(
      value);
    _burn(account, value);
  }
}

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address private _owner;

  event OwnershipTransferred(
    address indexed previousOwner,
    address indexed newOwner
  );

  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() internal {
    _owner = msg.sender;
    emit OwnershipTransferred(address(0), _owner);
  }

  /**
   * @return the address of the owner.
   */
  function owner() public view returns(address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(isOwner());
    _;
  }

  /**
   * @return true if `msg.sender` is the owner of the contract.
   */
  function isOwner() public view returns(bool) {
    return msg.sender == _owner;
  }

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   * @notice Renouncing to ownership will leave the contract without an owner.
   * It will not be possible to call the functions with the `onlyOwner`
   * modifier anymore.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipTransferred(_owner, address(0));
    _owner = address(0);
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    _transferOwnership(newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address newOwner) internal {
    require(newOwner != address(0));
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}

// File: openzeppelin-solidity/contracts/access/Roles.sol

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
  struct Role {
    mapping (address => bool) bearer;
  }

  /**
   * @dev give an account access to this role
   */
  function add(Role storage role, address account) internal {
    require(account != address(0));
    require(!has(role, account));

    role.bearer[account] = true;
  }

  /**
   * @dev remove an account's access to this role
   */
  function remove(Role storage role, address account) internal {
    require(account != address(0));
    require(has(role, account));

    role.bearer[account] = false;
  }

  /**
   * @dev check if an account has this role
   * @return bool
   */
  function has(Role storage role, address account)
    internal
    view
    returns (bool)
  {
    require(account != address(0));
    return role.bearer[account];
  }
}

// File: openzeppelin-solidity/contracts/access/roles/PauserRole.sol

contract PauserRole {
  using Roles for Roles.Role;

  event PauserAdded(address indexed account);
  event PauserRemoved(address indexed account);

  Roles.Role private pausers;

  constructor() internal {
    _addPauser(msg.sender);
  }

  modifier onlyPauser() {
    require(isPauser(msg.sender));
    _;
  }

  function isPauser(address account) public view returns (bool) {
    return pausers.has(account);
  }

  function addPauser(address account) public onlyPauser {
    _addPauser(account);
  }

  function renouncePauser() public {
    _removePauser(msg.sender);
  }

  function _addPauser(address account) internal {
    pausers.add(account);
    emit PauserAdded(account);
  }

  function _removePauser(address account) internal {
    pausers.remove(account);
    emit PauserRemoved(account);
  }
}

// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol

/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is PauserRole {
  event Paused(address account);
  event Unpaused(address account);

  bool private _paused;

  constructor() internal {
    _paused = false;
  }

  /**
   * @return true if the contract is paused, false otherwise.
   */
  function paused() public view returns(bool) {
    return _paused;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!_paused);
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(_paused);
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() public onlyPauser whenNotPaused {
    _paused = true;
    emit Paused(msg.sender);
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() public onlyPauser whenPaused {
    _paused = false;
    emit Unpaused(msg.sender);
  }
}

// File: contracts/TokenSubscription.sol

contract TokenSubscription is Ownable, Pausable {
    using SafeMath for uint;

    event Subscribed(uint indexed subscriberId, address indexed subscriber);
    event Unsubscribed(uint subscriberId, address indexed subscriber);
    event Charged(uint indexed subscriberId, address indexed subscriber);

    address public token;
    uint public paymentAmount;
    uint public paymentInterval;

    struct Subscriber {
        address addr;
        uint startTimestamp;
        uint nextPaymentTimestamp;
    }

    /**
    * @dev nonce to keep track of latest subscriber id
    */
    uint public nonce;
    // TODO iterable map for subscribers ?
    mapping(address => uint) public idOf;
    mapping(uint => Subscriber) public subscribers;

    /**
    * @param _token The address of ERC20 token to collect for payment.
    * @param _paymentAmount The amount of token to collect per time period.
    * @param _paymentInterval The interval between payments in seconds.
    */
    constructor(address _token, uint _paymentAmount, uint _paymentInterval) public {
        require(_token != address(0), "Token address cannot be 0");
        require(_paymentAmount > 0, "Amount must be greater than 0");
        require(_paymentInterval > 0, "Payment interval must be greater than 0");

        token = _token;
        paymentAmount =_paymentAmount;
        paymentInterval = _paymentInterval;
    }

    /**
    * @dev Function to check if an address is subscribed or not.
    * @param addr The address to check if subscribed.
    * @return A boolean indicating if the address is subscribed.
    */
    function isSubscribed(address addr) public view returns (bool) {
        return idOf[addr] != 0;
    }

    /**
    * @dev Function to subscribe to this contract
    */
    function subscribe() public whenNotPaused {
        require(!isSubscribed(msg.sender), "Sender is already subscribed");

        nonce = nonce.add(1);

        idOf[msg.sender] = nonce;
        subscribers[nonce] = Subscriber({
            addr: msg.sender,
            startTimestamp: block.timestamp,
            nextPaymentTimestamp: block.timestamp
        });

        emit Subscribed(nonce, msg.sender);
    }

    /**
    * @dev Function to unsubscribe from this contract
    */
    function unsubscribe() public whenNotPaused {
        require(isSubscribed(msg.sender), "Sender is not subscribed");

        uint id = idOf[msg.sender];

        delete idOf[msg.sender];
        delete subscribers[id];

        emit Unsubscribed(id, msg.sender);
    }

    /**
    * @dev Function to check if a subscriber can be charged or not.
    * @param addr The address of the subscriber
    * @return A boolean value that indicates if the subscriber can be charged.
    */
    function canCharge(address addr) public view returns (bool) {
        if (!isSubscribed(addr)) {
            return false;
        }

        Subscriber storage subscriber = subscribers[idOf[addr]];

        uint allowance = ERC20(token).allowance(subscriber.addr, this);
        uint balance = ERC20(token).balanceOf(subscriber.addr);

        return (
            !paused() &&
            block.timestamp >= subscriber.nextPaymentTimestamp &&
            allowance >= paymentAmount &&
            balance >= paymentAmount
        );
    }

    /**
    * @dev Function to transfer token from subscriber to contract owner
    * @param addr The address of the subscriber
    */
    function charge(address addr) public whenNotPaused {
        require(canCharge(addr), "Subscriber is not ready to be charged");

        uint id = idOf[addr];
        Subscriber storage subscriber = subscribers[id];

        // TODO simpler way to calculate next payment ? nextPaymentTimestamp = start - ((block - start) % interval) + interval
        /**
        * @dev numElapsedInterval = (block.timestamp - subscriber.startTimestamp) / paymentInterval
        */
        uint numElapsedIntervals = (
            block.timestamp.sub(subscriber.startTimestamp)
        ).div(paymentInterval);

        /**
        * @dev nextPaymentTimestamp = startTimestamp + (numElapsedInterval + 1) * paymentInterval
        */
        subscriber.nextPaymentTimestamp = subscriber.startTimestamp.add(
            (numElapsedIntervals.add(1)).mul(paymentInterval)
        );

        require(ERC20(token).transferFrom(subscriber.addr, owner(), paymentAmount));

        emit Charged(id, addr);
    }

    /**
    * @dev Function to kill this contract
    */
    function kill() external onlyOwner {
        selfdestruct(owner());
    }
}

// File: contracts/PaymentBounty.sol

contract PaymentBounty {
    using SafeMath for uint;

    event BountyCreated(uint indexed bountyId, address indexed tokenSubscription);
    event BountyRemoved(uint indexed bountyId);
    event PaymentProcessed(uint indexed bountyId, address indexed subscriber);

    struct Bounty {
        address tokenSubscription;
        uint amount;
    }

    /**
    * @dev nonce to keep track of latest bounty id
    */
    uint public nonce;
    mapping(address => uint) public idOf;
    // TODO iterable map for bounties ?
    mapping(uint => Bounty) public bounties;

    /**
    * @dev Function to check if an address of TokenSubscription is registered or not.
    * @param addr The address of TokenSubscription to check if registered.
    * @return A boolean indicating if the address is registered.
    */
    function isRegistered(address addr) public view returns (bool) {
        return idOf[addr] != 0;
    }

    /**
    * @dev Function to create a bounty.
    * @param addr The address of TokenSubscription
    * @param amount The amount of bounty
    * @return A boolean indicating if the address is registered.
    */
    function create(address addr, uint amount) public {
        require(
            !isRegistered(addr),
            "Address of TokenSubscription is already registered"
        );

        TokenSubscription tokenSubscription = TokenSubscription(addr);

        require(
            msg.sender == tokenSubscription.owner(),
            "Only owner can create a bounty"
        );

        require(amount > 0, "Amount must be > 0");
        require(
            amount <= tokenSubscription.paymentAmount(),
            "Amount must be <= tokenSubscription.amount"
        );

        nonce = nonce.add(1);

        idOf[addr] = nonce;
        bounties[nonce] = Bounty({
            tokenSubscription: addr,
            amount: amount
        });

        emit BountyCreated(nonce, addr);
    }

    /**
    * @dev Function to check if a bounty exists.
    * @param id The id of the bounty
    * @return A boolean indicating if the bounty exists.
    */
    function bountyExists(uint id) public view returns (bool) {
        return bounties[id].tokenSubscription != address(0);
    }

    /**
    * @dev Function to remove a bounty.
    * @param bountyId The id of the bounty to remove.
    */
    // TODO how to remove bounty if TokenSubscription is deleted
    function remove(uint bountyId) public {
        require(bountyExists(bountyId), "Bounty does not exist");

        Bounty storage bounty = bounties[bountyId];

        TokenSubscription tokenSubscription = TokenSubscription(
            bounty.tokenSubscription
        );

        require(msg.sender == tokenSubscription.owner(), "Only owner can unregister");

        delete idOf[bounty.tokenSubscription];
        delete bounties[bountyId];

        emit BountyRemoved(bountyId);
    }

    /**
    * @dev Function to check if payment can be processed
    * @param bountyId The id of the bounty.
    * @param subscriber The address of subscriber
    * @return A boolean to indicate if payment can be processed.
    */
    function canProcessPayment(uint bountyId, address subscriber) public view returns (bool) {
        if (!bountyExists(bountyId)) {
            return false;
        }

        Bounty storage bounty = bounties[bountyId];

        TokenSubscription tokenSub = TokenSubscription(
            bounty.tokenSubscription
        );

        // check if contract has been deleted
        if (tokenSub.owner() == address(0)) {
            return false;
        }

        ERC20 token = ERC20(tokenSub.token());

        uint allowance = token.allowance(tokenSub.owner(), this);

        return (
            allowance >= bounty.amount &&
            tokenSub.canCharge(subscriber)
        );
    }

    /**
    * @dev Function to process subscription, msg.sender receives bounty.amount upon successful transaction.
    * @param bountyId The id of the bounty
    * @param subscriber Address of the subscriber
    */
    function processPayment(uint bountyId, address subscriber) public {
        require(
            canProcessPayment(bountyId, subscriber),
            "Cannot process payment"
        );

        Bounty storage bounty = bounties[bountyId];

        TokenSubscription tokenSub = TokenSubscription(
            bounty.tokenSubscription
        );

        ERC20 token = ERC20(tokenSub.token());

        TokenSubscription(tokenSub).charge(subscriber);

        require(
            token.transferFrom(tokenSub.owner(), msg.sender, bounty.amount),
            "token.transfer from tokenSubscription.owner to msg.sender failed"
        );

        emit PaymentProcessed(bountyId, subscriber);
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"amount","type":"uint256"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"uint256"}],"name":"bountyExists","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"bountyId","type":"uint256"},{"name":"subscriber","type":"address"}],"name":"processPayment","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"bountyId","type":"uint256"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nonce","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"isRegistered","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"idOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"bounties","outputs":[{"name":"tokenSubscription","type":"address"},{"name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"bountyId","type":"uint256"},{"name":"subscriber","type":"address"}],"name":"canProcessPayment","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"bountyId","type":"uint256"},{"indexed":true,"name":"tokenSubscription","type":"address"}],"name":"BountyCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"bountyId","type":"uint256"}],"name":"BountyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"bountyId","type":"uint256"},{"indexed":true,"name":"subscriber","type":"address"}],"name":"PaymentProcessed","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b506115a5806100206000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630ecaea731461009e5780633cefb4c0146100eb57806343c597dc146101305780634cc822151461017d578063affed0e0146101aa578063c3c5a547146101d5578063d94fe83214610230578063dc2f874414610287578063e85df61a146102fb575b600080fd5b3480156100aa57600080fd5b506100e9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610360565b005b3480156100f757600080fd5b506101166004803603810190808035906020019092919050505061083e565b604051808215151515815260200191505060405180910390f35b34801561013c57600080fd5b5061017b60048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108ad565b005b34801561018957600080fd5b506101a860048036038101908080359060200190929190505050610d59565b005b3480156101b657600080fd5b506101bf611034565b6040518082815260200191505060405180910390f35b3480156101e157600080fd5b50610216600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061103a565b604051808215151515815260200191505060405180910390f35b34801561023c57600080fd5b50610271600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611086565b6040518082815260200191505060405180910390f35b34801561029357600080fd5b506102b26004803603810190808035906020019092919050505061109e565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b34801561030757600080fd5b5061034660048036038101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110e2565b604051808215151515815260200191505060405180910390f35b600061036b8361103a565b151515610406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001807f41646472657373206f6620546f6b656e537562736372697074696f6e2069732081526020017f616c72656164792072656769737465726564000000000000000000000000000081525060400191505060405180910390fd5b8290508073ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561046d57600080fd5b505af1158015610481573d6000803e3d6000fd5b505050506040513d602081101561049757600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561054a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4f6e6c79206f776e65722063616e20637265617465206120626f756e7479000081525060200191505060405180910390fd5b6000821115156105c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f416d6f756e74206d757374206265203e2030000000000000000000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663c35905c66040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561062657600080fd5b505af115801561063a573d6000803e3d6000fd5b505050506040513d602081101561065057600080fd5b810190808051906020019092919050505082111515156106fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001807f416d6f756e74206d757374206265203c3d20746f6b656e53756273637269707481526020017f696f6e2e616d6f756e740000000000000000000000000000000000000000000081525060400191505060405180910390fd5b610714600160005461155890919063ffffffff16565b600081905550600054600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060408051908101604052808473ffffffffffffffffffffffffffffffffffffffff16815260200183815250600260008054815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050508273ffffffffffffffffffffffffffffffffffffffff166000547fa42a102b7be732c6c110f2a200de7ae4a49832e42c61c6c194cf1c94fbc5042e60405160405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008060006108bc85856110e2565b1515610930576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f43616e6e6f742070726f63657373207061796d656e740000000000000000000081525060200191505060405180910390fd5b6002600086815260200190815260200160002092508260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff1663fc0c546a6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156109d057600080fd5b505af11580156109e4573d6000803e3d6000fd5b505050506040513d60208110156109fa57600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff1663fc6bd76a856040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b158015610aa857600080fd5b505af1158015610abc573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff166323b872dd8373ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610b4057600080fd5b505af1158015610b54573d6000803e3d6000fd5b505050506040513d6020811015610b6a57600080fd5b81019080805190602001909291905050503386600101546040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610c3957600080fd5b505af1158015610c4d573d6000803e3d6000fd5b505050506040513d6020811015610c6357600080fd5b81019080805190602001909291905050501515610d0e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260408152602001807f746f6b656e2e7472616e736665722066726f6d20746f6b656e5375627363726981526020017f7074696f6e2e6f776e657220746f206d73672e73656e646572206661696c656481525060400191505060405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff16857f92402fc6c242ee2878ad7dbc3eb6fde433da1023cb2509afe384b74493d644d060405160405180910390a35050505050565b600080610d658361083e565b1515610dd9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f426f756e747920646f6573206e6f74206578697374000000000000000000000081525060200191505060405180910390fd5b6002600084815260200190815260200160002091508160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015610e7957600080fd5b505af1158015610e8d573d6000803e3d6000fd5b505050506040513d6020811015610ea357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f56576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4f6e6c79206f776e65722063616e20756e72656769737465720000000000000081525060200191505060405180910390fd5b600160008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905560026000848152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090555050827fb2b4aa397344438a37b7352011e2d9bc575eb5da42ae255f877a1865cd53fc3660405160405180910390a2505050565b60005481565b600080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414159050919050565b60016020528060005260406000206000915090505481565b60026020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b60008060008060006110f38761083e565b1515611102576000945061154e565b6002600088815260200190815260200160002093508360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169250600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156111ba57600080fd5b505af11580156111ce573d6000803e3d6000fd5b505050506040513d60208110156111e457600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16141561121a576000945061154e565b8273ffffffffffffffffffffffffffffffffffffffff1663fc0c546a6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561127e57600080fd5b505af1158015611292573d6000803e3d6000fd5b505050506040513d60208110156112a857600080fd5b810190808051906020019092919050505091508173ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e8473ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561133b57600080fd5b505af115801561134f573d6000803e3d6000fd5b505050506040513d602081101561136557600080fd5b8101908080519060200190929190505050306040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561142857600080fd5b505af115801561143c573d6000803e3d6000fd5b505050506040513d602081101561145257600080fd5b810190808051906020019092919050505090508360010154811015801561154b57508273ffffffffffffffffffffffffffffffffffffffff16631d6aa02c876040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561150f57600080fd5b505af1158015611523573d6000803e3d6000fd5b505050506040513d602081101561153957600080fd5b81019080805190602001909291905050505b94505b5050505092915050565b600080828401905083811015151561156f57600080fd5b80915050929150505600a165627a7a72305820f6baff3ab331c13b545fefdd068c6617abcdd2a023a07f9401529980f8652e550029

   Swarm Source:
bzzr://f6baff3ab331c13b545fefdd068c6617abcdd2a023a07f9401529980f8652e55

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward