Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
6733806 | 4 days ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
RERE
Compiler Version
v0.8.29+commit.ab55807c
ZkSolc Version
v1.5.12
Optimization Enabled:
Yes with Mode 3
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IERC721 { function safeTransferFrom( address from, address to, uint256 tokenId ) external; function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) external; function ownerOf(uint256 tokenId) external view returns (address owner); function setApprovalForAll(address operator, bool approved) external; function isApprovedForAll(address owner, address operator) external view returns (bool); } contract RERE { address public owner; constructor() { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner, "Only owner can call this function"); _; } function receiveAndSendNFT(address _nftBuxContract, uint256 _tokenId, address _recipient) external { IERC721 nft = IERC721(_nftBuxContract); address currentOwner = nft.ownerOf(_tokenId); require(nft.isApprovedForAll(currentOwner, address(this)), "RERE contract is not approved for all"); // Transfer the NFT to the recipient nft.safeTransferFrom(currentOwner, _recipient, _tokenId); emit NFTReceivedAndSent(_nftBuxContract, _tokenId, currentOwner, _recipient); } // In case the contract accidentally receives NFT, allows owner to recover it function withdrawNFT(address _nftContract, uint256 _tokenId, address _recipient) external onlyOwner { IERC721 nft = IERC721(_nftContract); nft.safeTransferFrom(address(this), _recipient, _tokenId); } event NFTReceivedAndSent(address nftContract, uint256 tokenId, address from, address to); }
{ "viaIR": false, "codegen": "yul", "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/" ], "evmVersion": "cancun", "outputSelection": { "*": { "*": [ "abi" ] } }, "optimizer": { "enabled": true, "mode": "3", "size_fallback": false, "disable_system_request_memoization": true }, "metadata": {}, "libraries": {}, "enableEraVMExtensions": false, "forceEVMLA": false }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nftContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"NFTReceivedAndSent","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftBuxContract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"receiveAndSendNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"withdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b00000000000000000000000000000000000000000000000000000000000000000100009569c32cf067d1c2c4313c67480a6dbf0e2a5166ec07f653b7fbcb891200000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x00070000000000020000008003000039000000400030043f0000000100200190000000580000c13d00000060021002700000007502200197000000040020008c000001640000413d000000000301043b000000e003300270000000780030009c000000650000613d000000790030009c000000f80000613d0000007a0030009c000001640000c13d000000640020008c000001640000413d0000000002000416000000000002004b000001640000c13d0000000402100370000000000302043b0000007b0030009c000001640000213d0000004402100370000000000402043b0000007b0040009c000001640000213d0000002401100370000000000501043b000000000100041a0000007b011001970000000002000411000000000012004b000001000000c13d000500000005001d000600000004001d00000081010000410000000000100443000700000003001d00000004003004430000000001000414000000750010009c0000007501008041000000c00110021000000082011001c7000080020200003901ce01c90000040f0000000100200190000001660000613d000000000101043b000000000001004b00000007020000290000000603000029000001640000613d000000400500043d000000440150003900000005040000290000000000410435000000240150003900000000003104350000008301000041000000000015043500000000010004100000007b0110019700000004035000390000000000130435000000750050009c000600000005001d0000007501000041000000000105401900000040011002100000000003000414000000750030009c0000007503008041000000c003300210000000000113019f00000084011001c701ce01c40000040f00000001002001900000012a0000613d0000000601000029000000000200001901ce01b10000040f0000000001000019000001cf0001042e0000000001000416000000000001004b000001640000c13d000000000100041a00000076011001970000000002000411000000000121019f000000000010041b0000002001000039000001000010044300000120000004430000007701000041000001cf0001042e000000640020008c000001640000413d0000000002000416000000000002004b000001640000c13d0000000402100370000000000202043b0000007b0020009c000001640000213d0000004403100370000000000303043b0000007b0030009c000001640000213d000600000003001d0000002401100370000000000301043b0000007c01000041000000800010043f000500000003001d000000840030043f0000000001000414000000750010009c0000007501008041000000c0011002100000007d011001c7000700000002001d01ce01c90000040f000000800a00003900000060031002700000007503300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf0000008f0000613d000000000801034f000000008908043c000000000a9a043600000000005a004b0000008b0000c13d000000000006004b0000009c0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500000001002001900000010c0000613d0000001f01400039000000600110018f00000080051001bf000000400050043f000000200030008c0000000702000029000001640000413d000000800400043d0000007b0040009c000001640000213d0000007f03000041000000000035043500000084031001bf000300000004001d0000000000430435000000a401100039000000000300041000000000003104350000000001000414000000750010009c0000007501008041000000c0011002100000004003500210000000000131019f00000080011001c7000400000005001d01ce01c90000040f000000040b00002900000060031002700000007503300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000000c90000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000000c50000c13d000000000006004b000000d60000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000001460000613d0000001f01400039000000600110018f0000000001b10019000000400010043f000000200030008c0000000704000029000001640000413d00000000020b0433000000000002004b0000000003000039000000010300c039000000000032004b000001640000c13d000000000002004b000001520000c13d0000008a02000041000000000021043500000004021001bf0000002003000039000000000032043500000064021000390000008b03000041000000000032043500000044021000390000008c03000041000000000032043500000024021000390000002503000039000000000032043500000040011002100000008d011001c7000001d0000104300000000001000416000000000001004b000001640000c13d000000000100041a0000007b01100197000000800010043f0000008e01000041000001cf0001042e0000008a01000041000000800010043f0000002001000039000000840010043f0000002101000039000000a40010043f0000008f01000041000000c40010043f0000009001000041000000e40010043f0000009101000041000001d0000104300000001f0530018f0000007e06300198000000400200043d0000000004620019000001170000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000001130000c13d000000000005004b000001240000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000000750020009c00000075020080410000004002200210000000000112019f000001d00001043000000060061002700000001f0460018f0000007e05600198000000400200043d0000000003520019000001360000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b000001320000c13d0000007506600197000000000004004b000001440000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000006001600210000001250000013d0000001f0530018f0000007e06300198000000400200043d0000000004620019000001170000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000014d0000c13d000001170000013d0000008101000041000000000010044300000004004004430000000001000414000000750010009c0000007501008041000000c00110021000000082011001c7000080020200003901ce01c90000040f0000000100200190000001660000613d000000000101043b000000000001004b000000070200002900000006030000290000000305000029000001670000c13d0000000001000019000001d000010430000000000001042f000000400600043d0000004401600039000000050400002900000000004104350000002401600039000000000031043500000083010000410000000001160436000100000001001d00000004016000390000000000510435000000750060009c000400000006001d0000007501000041000000000106401900020040001002180000000001000414000000750010009c0000007501008041000000c00110021000000002011001af00000084011001c701ce01c40000040f0000000100200190000001890000613d0000000401000029000000850010009c000001960000413d0000008801000041000000000010043f0000004101000039000000040010043f0000008901000041000001d00001043000000060061002700000001f0460018f0000007e05600198000000400200043d0000000003520019000001360000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b000001910000c13d000001360000013d0000000403000029000000400030043f000000600130003900000006020000290000000000210435000000400130003900000003020000290000000000210435000000050100002900000001020000290000000000120435000000070100002900000000001304350000000001000414000000750010009c0000007501008041000000c00110021000000002011001af00000086011001c70000800d020000390000000103000039000000870400004101ce01c40000040f0000000100200190000001640000613d0000000001000019000001cf0001042e0000001f0220003900000093022001970000000001120019000000000021004b00000000020000390000000102004039000000920010009c000001bd0000213d0000000100200190000001bd0000c13d000000400010043f000000000001042d0000008801000041000000000010043f0000004101000039000000040010043f0000008901000041000001d000010430000000000001042f000001c7002104210000000102000039000000000001042d0000000002000019000000000001042d000001cc002104230000000102000039000000000001042d0000000002000019000000000001042d000001ce00000432000001cf0001042e000001d00001043000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000da0148ec000000000000000000000000000000000000000000000000000000008da5cb5b0000000000000000000000000000000000000000000000000000000000f2a6ab000000000000000000000000ffffffffffffffffffffffffffffffffffffffff6352211e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000080000000000000000000000000000000000000000000000000000000000000000000000000ffffffe0e985e9c50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000001806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b83020000020000000000000000000000000000002400000000000000000000000042842e0e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000000000000100000000000000000200000000000000000000000000000000000080000000000000000000000000aa6d924e975c790221e7487c47fa7b742b90de9a0aaf526865a22c6cef022aad4e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000007220616c6c0000000000000000000000000000000000000000000000000000005245524520636f6e7472616374206973206e6f7420617070726f76656420666f000000000000000000000000000000000000008400000000000000000000000000000000000000000000000000000000000000200000008000000000000000004f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000800000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0146bfeb6696bfa68b5f1c95cea15b04a17e1aeedd0c7115c53feacd8eb679883
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.