Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 377 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Request Migratio... | 18924247 | 182 days ago | IN | 0 ETH | 0.00281147 | ||||
Request Migratio... | 18722824 | 210 days ago | IN | 0 ETH | 0.00298472 | ||||
Request Migratio... | 18720937 | 211 days ago | IN | 0 ETH | 0.00728723 | ||||
Request Migratio... | 18719336 | 211 days ago | IN | 0 ETH | 0.00370937 | ||||
Request Migratio... | 18712827 | 212 days ago | IN | 0 ETH | 0.00465956 | ||||
Request Migratio... | 18711029 | 212 days ago | IN | 0 ETH | 0.01000402 | ||||
Request Migratio... | 18706277 | 213 days ago | IN | 0 ETH | 0.00167323 | ||||
Request Migratio... | 18705964 | 213 days ago | IN | 0 ETH | 0.00313512 | ||||
Request Migratio... | 18701745 | 213 days ago | IN | 0 ETH | 0.00155136 | ||||
Request Migratio... | 18701533 | 213 days ago | IN | 0 ETH | 0.00695314 | ||||
Request Migratio... | 18689935 | 215 days ago | IN | 0 ETH | 0.00234591 | ||||
Request Migratio... | 18686070 | 216 days ago | IN | 0 ETH | 0.00387844 | ||||
Request Migratio... | 18676835 | 217 days ago | IN | 0 ETH | 0.0036631 | ||||
Request Migratio... | 18675396 | 217 days ago | IN | 0 ETH | 0.00203548 | ||||
Request Migratio... | 18583457 | 230 days ago | IN | 0 ETH | 0.00182914 | ||||
Request Migratio... | 18506858 | 241 days ago | IN | 0 ETH | 0.00118098 | ||||
Request Migratio... | 18340933 | 264 days ago | IN | 0 ETH | 0.00028632 | ||||
Request Migratio... | 18315938 | 267 days ago | IN | 0 ETH | 0.0004672 | ||||
Request Migratio... | 18255882 | 276 days ago | IN | 0 ETH | 0.00035953 | ||||
Request Migratio... | 18138740 | 292 days ago | IN | 0 ETH | 0.00060778 | ||||
Request Migratio... | 17988253 | 313 days ago | IN | 0 ETH | 0.00409491 | ||||
Request Migratio... | 17874616 | 329 days ago | IN | 0 ETH | 0.00871954 | ||||
Request Migratio... | 17874609 | 329 days ago | IN | 0 ETH | 0.00944983 | ||||
Request Migratio... | 17681545 | 356 days ago | IN | 0 ETH | 0.00110234 | ||||
Request Migratio... | 17636152 | 363 days ago | IN | 0 ETH | 0.00181908 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DragonBridge
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract DragonBridge is Ownable { event ClaimAptosTokens(address claimer, uint amount, bytes32 aptosWallet); IERC721 dragons; function setDragons(IERC721 _dragons) external onlyOwner{ dragons = _dragons; } function requestMigration(uint256[] calldata tokens, bytes32 aptosWallet) external{ uint len = tokens.length; for(uint i = 0; i < len; i++){ dragons.transferFrom(msg.sender, 0x000000000000000000000000000000000000dEaD, tokens[i]); } emit ClaimAptosTokens(msg.sender, len, aptosWallet); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"aptosWallet","type":"bytes32"}],"name":"ClaimAptosTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"},{"internalType":"bytes32","name":"aptosWallet","type":"bytes32"}],"name":"requestMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"_dragons","type":"address"}],"name":"setDragons","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61047f8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780638da5cb5b14610066578063a1d241eb14610085578063af5c46df14610098578063f2fde38b146100ab575b600080fd5b6100646100be565b005b600054604080516001600160a01b039092168252519081900360200190f35b61006461009336600461033f565b6100fd565b6100646100a6366004610362565b610149565b6100646100b936600461033f565b610254565b6000546001600160a01b031633146100f15760405162461bcd60e51b81526004016100e8906103d8565b60405180910390fd5b6100fb60006102ef565b565b6000546001600160a01b031633146101275760405162461bcd60e51b81526004016100e8906103d8565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b8160005b8181101561020c576001546001600160a01b03166323b872dd3361dead88888681811061018a57634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156101e157600080fd5b505af11580156101f5573d6000803e3d6000fd5b5050505080806102049061040d565b91505061014d565b5060408051338152602081018390529081018390527ffa5d59123ed352775181c7e515dc622565475b601d75ed34dc491fb5857445679060600160405180910390a150505050565b6000546001600160a01b0316331461027e5760405162461bcd60e51b81526004016100e8906103d8565b6001600160a01b0381166102e35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016100e8565b6102ec816102ef565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610350578081fd5b813561035b81610434565b9392505050565b600080600060408486031215610376578182fd5b833567ffffffffffffffff8082111561038d578384fd5b818601915086601f8301126103a0578384fd5b8135818111156103ae578485fd5b8760208260051b85010111156103c2578485fd5b6020928301989097509590910135949350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060001982141561042d57634e487b7160e01b81526011600452602481fd5b5060010190565b6001600160a01b03811681146102ec57600080fdfea26469706673582212209b6026b566c41389d49927d2da027d723c42c94328c2e6df9b24dca2ea94f4a464736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780638da5cb5b14610066578063a1d241eb14610085578063af5c46df14610098578063f2fde38b146100ab575b600080fd5b6100646100be565b005b600054604080516001600160a01b039092168252519081900360200190f35b61006461009336600461033f565b6100fd565b6100646100a6366004610362565b610149565b6100646100b936600461033f565b610254565b6000546001600160a01b031633146100f15760405162461bcd60e51b81526004016100e8906103d8565b60405180910390fd5b6100fb60006102ef565b565b6000546001600160a01b031633146101275760405162461bcd60e51b81526004016100e8906103d8565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b8160005b8181101561020c576001546001600160a01b03166323b872dd3361dead88888681811061018a57634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156101e157600080fd5b505af11580156101f5573d6000803e3d6000fd5b5050505080806102049061040d565b91505061014d565b5060408051338152602081018390529081018390527ffa5d59123ed352775181c7e515dc622565475b601d75ed34dc491fb5857445679060600160405180910390a150505050565b6000546001600160a01b0316331461027e5760405162461bcd60e51b81526004016100e8906103d8565b6001600160a01b0381166102e35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016100e8565b6102ec816102ef565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610350578081fd5b813561035b81610434565b9392505050565b600080600060408486031215610376578182fd5b833567ffffffffffffffff8082111561038d578384fd5b818601915086601f8301126103a0578384fd5b8135818111156103ae578485fd5b8760208260051b85010111156103c2578485fd5b6020928301989097509590910135949350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060001982141561042d57634e487b7160e01b81526011600452602481fd5b5060010190565b6001600160a01b03811681146102ec57600080fdfea26469706673582212209b6026b566c41389d49927d2da027d723c42c94328c2e6df9b24dca2ea94f4a464736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.