Address Contract Verified
Address
0x1Db30576535Af7de6FbC2a8Ce46bFdC19D1410F2
Balance
0 ETH
Nonce
1
Code Size
1782 bytes
Creator
0xB65d7c4d...6124 at tx 0xa66683fa...48a9b8
Indexed Transactions
0
Contract Bytecode
1782 bytes
0x6080604052600436106100435760003560e01c80631b9265b81461008857806383197ef014610092578063b3c9b646146100a9578063c71daccb146100e657610083565b36610083577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f885258743334604051610079929190610571565b60405180910390a1005b600080fd5b610090610111565b005b34801561009e57600080fd5b506100a7610113565b005b3480156100b557600080fd5b506100d060048036038101906100cb9190610422565b6101ba565b6040516100dd919061059a565b60405180910390f35b3480156100f257600080fd5b506100fb6103f0565b60405161010891906105d5565b60405180910390f35b565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610198906105b5565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16ff5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461024b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610242906105b5565b60405180910390fd5b60006060600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141561028957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156102c357600080fd5b600084116102d057600080fd5b8673ffffffffffffffffffffffffffffffffffffffff168686866040516024016102fc9392919061053a565b6040516020818303038152906040527f23b872dd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516103869190610523565b6000604051808303816000865af19150503d80600081146103c3576040519150601f19603f3d011682016040523d82523d6000602084013e6103c8565b606091505b50809250819350505060011515821515146103e257600080fd5b600192505050949350505050565b600047905090565b60008135905061040781610692565b92915050565b60008135905061041c816106a9565b92915050565b6000806000806080858703121561043857600080fd5b6000610446878288016103f8565b9450506020610457878288016103f8565b9350506040610468878288016103f8565b92505060606104798782880161040d565b91505092959194509250565b61048e81610617565b82525050565b61049d81610629565b82525050565b60006104ae826105f0565b6104b881856105fb565b93506104c881856020860161065f565b80840191505092915050565b60006104e1601883610606565b91507f6f6e6c79206f776e65722063616e2063616c6c207468697300000000000000006000830152602082019050919050565b61051d81610655565b82525050565b600061052f82846104a3565b915081905092915050565b600060608201905061054f6000830186610485565b61055c6020830185610485565b6105696040830184610514565b949350505050565b60006040820190506105866000830185610485565b6105936020830184610514565b9392505050565b60006020820190506105af6000830184610494565b92915050565b600060208201905081810360008301526105ce816104d4565b9050919050565b60006020820190506105ea6000830184610514565b92915050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600061062282610635565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101561067d578082015181840152602081019050610662565b8381111561068c576000848401525b50505050565b61069b81610617565b81146106a657600080fd5b50565b6106b281610655565b81146106bd57600080fd5b5056fea2646970667358221220a77c593ee7ffe6414483beceb0f1ffb736b2f44d5ebe4b18bd420ec5854892a964736f6c63430008000033
Verified Source Code Full Match
Compiler: v0.8.0+commit.c7dfd78e
EVM: istanbul
Optimization: No
contractTransfer.sol 56 lines
// SPDX-License-Identifier: MIT;
// SPDX-License-Identifier: SimPL-2.0
pragma solidity ^0.8;
import "./IERC20.sol";
contract contractTransfer {
address owner;
modifier onlyOwner() {
require(msg.sender == owner, "only owner can call this");
_;
}
modifier notAddress(address _useAdd){
require(_useAdd != address(0), "address is error");
_;
}
event Received(address, uint);
constructor() payable{
owner = msg.sender;
}
receive() external payable {
emit Received(msg.sender, msg.value);
}
function pay() public payable{
}
function checkBalance()
public
view
returns (uint) {
return address(this).balance;
}
function destroy()
public
onlyOwner
{
selfdestruct(payable(msg.sender));
}
function transferFroms(address _constractAdd,address _from, address _to,uint _value)
public
onlyOwner
returns (bool){
bool status;
bytes memory msgs;
require(_from != address(0));
require(_to != address(0));
require(_value > 0);
(status,msgs) = _constractAdd.call(abi.encodeWithSignature("transferFrom(address,address,uint256)",_from,_to,_value));
require(status == true);
return true;
}
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT;
// SPDX-License-Identifier: SimPL-2.0
pragma solidity ^0.8;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: 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
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
Read Contract
checkBalance 0xc71daccb → uint256
Write Contract 3 functions
These functions modify contract state and require a wallet transaction to execute.
destroy 0x83197ef0
No parameters
pay 0x1b9265b8
No parameters
transferFroms 0xb3c9b646
address _constractAdd
address _from
address _to
uint256 _value
returns: bool
Recent Transactions
No transactions found for this address