账户
0x56...8326
0x56...8326

0x56...8326

$500
此合同的源代码已经过验证!
合同元数据
编译器
0.4.24+commit.e67f0147
语言
Solidity
合同源代码
文件 1 的 1:PaymentReceiver.sol
pragma solidity ^0.4.19;

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) public constant returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public constant 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);
}

contract PaymentReceiver
{
 address private constant taxman = 0xB13D7Dab5505512924CB8E1bE970B849009d34Da;
 address private constant store = 0x23859DBF88D714125C65d1B41a8808cADB199D9E;
 address private constant pkt = 0x2604fa406be957e542beb89e6754fcde6815e83f;

  modifier onlyTaxman { require(msg.sender == taxman); _; }

  function withdrawTokens(uint256 value) external onlyTaxman
  {
    ERC20 token = ERC20(pkt);
    token.transfer(store, value);
  }
}
设置
{
  "compilationTarget": {
    "PaymentReceiver.sol": "PaymentReceiver"
  },
  "evmVersion": "byzantium",
  "libraries": {},
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": []
}
ABI
[{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]