ETH Price: $3,473.89 (+4.70%)

Contract

0x392cf992cc2157d2A3A9CBE10365de5B07B3BFE5
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Migrate206300072024-08-28 22:15:3586 days ago1724883335IN
0x392cf992...B07B3BFE5
0 ETH0.000166661.32365305
Migrate198549082024-05-12 15:43:59195 days ago1715528639IN
0x392cf992...B07B3BFE5
0 ETH0.000555874.41483075
Migrate198435302024-05-11 1:31:23196 days ago1715391083IN
0x392cf992...B07B3BFE5
0 ETH0.000605754.81098553
Migrate198250752024-05-08 11:34:35199 days ago1715168075IN
0x392cf992...B07B3BFE5
0 ETH0.000939037.45801172
Migrate198004822024-05-05 1:00:47202 days ago1714870847IN
0x392cf992...B07B3BFE5
0 ETH0.000655083.78661222
Migrate197917662024-05-03 19:46:47203 days ago1714765607IN
0x392cf992...B07B3BFE5
0 ETH0.001725725.01276693
Migrate197899662024-05-03 13:44:47204 days ago1714743887IN
0x392cf992...B07B3BFE5
0 ETH0.0046302412.81321291
Migrate197833972024-05-02 15:41:23205 days ago1714664483IN
0x392cf992...B07B3BFE5
0 ETH0.0030615414.03788242
Migrate197830422024-05-02 14:29:59205 days ago1714660199IN
0x392cf992...B07B3BFE5
0 ETH0.0013485410.71039157
Migrate197795812024-05-02 2:53:11205 days ago1714618391IN
0x392cf992...B07B3BFE5
0 ETH0.000627134.98081547
Migrate197791262024-05-02 1:21:23205 days ago1714612883IN
0x392cf992...B07B3BFE5
0 ETH0.000558954.43933801
Migrate197713582024-04-30 23:19:35206 days ago1714519175IN
0x392cf992...B07B3BFE5
0 ETH0.000633645.03251334
Migrate197629642024-04-29 19:10:47207 days ago1714417847IN
0x392cf992...B07B3BFE5
0 ETH0.0012679910.07065911
Migrate197620892024-04-29 16:14:23207 days ago1714407263IN
0x392cf992...B07B3BFE5
0 ETH0.0020897416.59713939
Migrate197620152024-04-29 15:59:35207 days ago1714406375IN
0x392cf992...B07B3BFE5
0 ETH0.001097798.71888078
Migrate197613232024-04-29 13:39:59208 days ago1714397999IN
0x392cf992...B07B3BFE5
0 ETH0.0018963115.06089059
Migrate197589082024-04-29 5:33:35208 days ago1714368815IN
0x392cf992...B07B3BFE5
0 ETH0.00100317.96684346
Migrate197576282024-04-29 1:16:23208 days ago1714353383IN
0x392cf992...B07B3BFE5
0 ETH0.000545334.33116914
Migrate197569042024-04-28 22:50:11208 days ago1714344611IN
0x392cf992...B07B3BFE5
0 ETH0.000701895.5745907
Migrate197559512024-04-28 19:38:47208 days ago1714333127IN
0x392cf992...B07B3BFE5
0 ETH0.001157596.69128654
Migrate197555902024-04-28 18:25:23208 days ago1714328723IN
0x392cf992...B07B3BFE5
0 ETH0.006731226.41233343
Migrate197555722024-04-28 18:21:47208 days ago1714328507IN
0x392cf992...B07B3BFE5
0 ETH0.000933267.41216299
Migrate197549842024-04-28 16:23:35208 days ago1714321415IN
0x392cf992...B07B3BFE5
0 ETH0.0014367411.41086145
Migrate197549802024-04-28 16:22:47208 days ago1714321367IN
0x392cf992...B07B3BFE5
0 ETH0.0019123211.05381793
Migrate197534922024-04-28 11:22:59209 days ago1714303379IN
0x392cf992...B07B3BFE5
0 ETH0.000970327.70648306
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TitanMigration

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 7777 runs

Other Settings:
default evmVersion
File 1 of 3 : TitanMigration.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "./IERC721Burnable.sol";
import "./ITitanV2.sol";

contract TitanMigration {
    IERC721Burnable public titanV1;
    ITitanV2 public titanV2;

    event Migrated(address indexed from, uint256 tokenId);

    constructor(address _titanV1, address _titanV2) {
        titanV1 = IERC721Burnable(_titanV1);
        titanV2 = ITitanV2(_titanV2);
    }

    function migrate(uint256[] calldata _tokenIds) external {
        uint256 i = 0;
        for (i = 0; i < _tokenIds.length; i++) {
            uint256 tokenId = _tokenIds[i];
            require(titanV1.ownerOf(tokenId) == msg.sender, "Not owner");
            titanV1.burn(tokenId);
            titanV2.migrateMint(msg.sender, tokenId);
            emit Migrated(msg.sender, tokenId);
        }
    }
}

File 2 of 3 : IERC721Burnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

interface IERC721Burnable {
    function burn(uint256 tokenId) external;

    function ownerOf(uint256 tokenId) external view returns (address owner);

    function setApprovalForAll(address operator, bool approved) external;

    function balanceOf(address owner) external view returns (uint256 balance);
}

File 3 of 3 : ITitanV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

interface ITitanV2 {
    function migrateMint(address _to, uint256 _tokenId) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 7777
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_titanV1","type":"address"},{"internalType":"address","name":"_titanV2","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Migrated","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"titanV1","outputs":[{"internalType":"contract IERC721Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"titanV2","outputs":[{"internalType":"contract ITitanV2","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405161059438038061059483398101604081905261002f9161007c565b600080546001600160a01b039384166001600160a01b031991821617909155600180549290931691161790556100af565b80516001600160a01b038116811461007757600080fd5b919050565b6000806040838503121561008f57600080fd5b61009883610060565b91506100a660208401610060565b90509250929050565b6104d6806100be6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806316c5740314610046578063721c4e3f1461008f578063d93bf4fe146100af575b600080fd5b6001546100669073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000546100669073ffffffffffffffffffffffffffffffffffffffff1681565b6100c26100bd366004610360565b6100c4565b005b60005b8181101561035b5760008383838181106100e3576100e36103d5565b6000546040517f6352211e0000000000000000000000000000000000000000000000000000000081526020929092029390930135600482018190529350339273ffffffffffffffffffffffffffffffffffffffff169150636352211e90602401602060405180830381865afa158015610160573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101849190610404565b73ffffffffffffffffffffffffffffffffffffffff1614610205576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e65720000000000000000000000000000000000000000000000604482015260640160405180910390fd5b6000546040517f42966c680000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff909116906342966c6890602401600060405180830381600087803b15801561027157600080fd5b505af1158015610285573d6000803e3d6000fd5b50506001546040517fd2cb01000000000000000000000000000000000000000000000000000000000081523360048201526024810185905273ffffffffffffffffffffffffffffffffffffffff909116925063d2cb01009150604401600060405180830381600087803b1580156102fb57600080fd5b505af115801561030f573d6000803e3d6000fd5b50506040518381523392507f8b80bd19aea7b735bc6d75db8d6adbe18b28c30d62b3555245eb67b2340caedc915060200160405180910390a2508061035381610441565b9150506100c7565b505050565b6000806020838503121561037357600080fd5b823567ffffffffffffffff8082111561038b57600080fd5b818501915085601f83011261039f57600080fd5b8135818111156103ae57600080fd5b8660208260051b85010111156103c357600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561041657600080fd5b815173ffffffffffffffffffffffffffffffffffffffff8116811461043a57600080fd5b9392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610499577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea26469706673582212203b4f52315e42f6c33cbc6e7940f3e73bce2b5385f310a08a94ce700cf26d828664736f6c634300081300330000000000000000000000008e8a34ddc87bbdf846680598aa3ab55b533a6e250000000000000000000000008595829cc23d2cc2661019400eb730a9530f8229

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c806316c5740314610046578063721c4e3f1461008f578063d93bf4fe146100af575b600080fd5b6001546100669073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000546100669073ffffffffffffffffffffffffffffffffffffffff1681565b6100c26100bd366004610360565b6100c4565b005b60005b8181101561035b5760008383838181106100e3576100e36103d5565b6000546040517f6352211e0000000000000000000000000000000000000000000000000000000081526020929092029390930135600482018190529350339273ffffffffffffffffffffffffffffffffffffffff169150636352211e90602401602060405180830381865afa158015610160573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101849190610404565b73ffffffffffffffffffffffffffffffffffffffff1614610205576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e65720000000000000000000000000000000000000000000000604482015260640160405180910390fd5b6000546040517f42966c680000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff909116906342966c6890602401600060405180830381600087803b15801561027157600080fd5b505af1158015610285573d6000803e3d6000fd5b50506001546040517fd2cb01000000000000000000000000000000000000000000000000000000000081523360048201526024810185905273ffffffffffffffffffffffffffffffffffffffff909116925063d2cb01009150604401600060405180830381600087803b1580156102fb57600080fd5b505af115801561030f573d6000803e3d6000fd5b50506040518381523392507f8b80bd19aea7b735bc6d75db8d6adbe18b28c30d62b3555245eb67b2340caedc915060200160405180910390a2508061035381610441565b9150506100c7565b505050565b6000806020838503121561037357600080fd5b823567ffffffffffffffff8082111561038b57600080fd5b818501915085601f83011261039f57600080fd5b8135818111156103ae57600080fd5b8660208260051b85010111156103c357600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561041657600080fd5b815173ffffffffffffffffffffffffffffffffffffffff8116811461043a57600080fd5b9392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610499577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea26469706673582212203b4f52315e42f6c33cbc6e7940f3e73bce2b5385f310a08a94ce700cf26d828664736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000008e8a34ddc87bbdf846680598aa3ab55b533a6e250000000000000000000000008595829cc23d2cc2661019400eb730a9530f8229

-----Decoded View---------------
Arg [0] : _titanV1 (address): 0x8e8A34DdC87bBdF846680598Aa3ab55B533a6e25
Arg [1] : _titanV2 (address): 0x8595829cC23D2cC2661019400eb730a9530f8229

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008e8a34ddc87bbdf846680598aa3ab55b533a6e25
Arg [1] : 0000000000000000000000008595829cc23d2cc2661019400eb730a9530f8229


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.