Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 7 from a total of 7 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Execute Batch | 24478075 | 12 days ago | IN | 0.005 ETH | 0.00055224 | ||||
| Execute Batch | 24467436 | 13 days ago | IN | 0.005 ETH | 0.00000852 | ||||
| Execute Batch | 24463433 | 14 days ago | IN | 0.005 ETH | 0.00070828 | ||||
| Execute Batch | 23493554 | 150 days ago | IN | 0 ETH | 0.0001623 | ||||
| Execute Batch | 23493521 | 150 days ago | IN | 0 ETH | 0.00020305 | ||||
| Execute Batch | 23492655 | 150 days ago | IN | 0 ETH | 0.00020412 | ||||
| Execute Batch | 22841015 | 241 days ago | IN | 0 ETH | 0.00058264 |
Latest 6 internal transactions
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ArchetypeBatch
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 1 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
// ArchetypeBatch v0.1.0
//
// d8888 888 888
// d88888 888 888
// d88P888 888 888
// d88P 888 888d888 .d8888b 88888b. .d88b. 888888 888 888 88888b. .d88b.
// d88P 888 888P" d88P" 888 "88b d8P Y8b 888 888 888 888 "88b d8P Y8b
// d88P 888 888 888 888 888 88888888 888 888 888 888 888 88888888
// d8888888888 888 Y88b. 888 888 Y8b. Y88b. Y88b 888 888 d88P Y8b.
// d88P 888 888 "Y8888P 888 888 "Y8888 "Y888 "Y88888 88888P" "Y8888
// 888 888
// Y8b d88P 888
//
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
contract ArchetypeBatch is Ownable, IERC1155Receiver {
// Execute multiple calls in a single transaction
// targets: The addresses of the contracts
// values: The value to send to the contracts
// datas The data to send to the contracts
function executeBatch(
address[] calldata targets,
uint256[] calldata values,
bytes[] calldata datas
) external payable {
require(
targets.length == values.length && targets.length == datas.length,
"ArchetypeBatch: The array lengths must be identical"
);
for (uint256 i = 0; i < targets.length; ++i) {
(bool success, bytes memory returnData) = targets[i].call{value: values[i]}(datas[i]);
if(!success) {
// Decode the return data as a string and revert with it
revert(string(returnData));
}
}
}
// Emergency function: In case any ETH get stuck in the contract unintentionally
// Only owner can retrieve the asset balance to a recipient address
function rescueETH(address recipient) onlyOwner external {
payable(recipient).call{ value: address(this).balance }("");
}
// Emergency function: In case any ERC20 tokens get stuck in the contract unintentionally
// Only owner can retrieve the asset balance to a recipient address
function rescueERC20(address asset, address recipient) onlyOwner external {
asset.call(abi.encodeWithSelector(0xa9059cbb, recipient, IERC20(asset).balanceOf(address(this))));
}
// Emergency function: In case any ERC721 tokens get stuck in the contract unintentionally
// Only owner can retrieve the asset balance to a recipient address
function rescueERC721(address asset, uint256[] calldata ids, address recipient) onlyOwner external {
for (uint256 i = 0; i < ids.length; i++) {
IERC721(asset).transferFrom(address(this), recipient, ids[i]);
}
}
// Emergency function: In case any ERC1155 tokens get stuck in the contract unintentionally
// Only owner can retrieve the asset balance to a recipient address
function rescueERC1155(address asset, uint256[] calldata ids, uint256[] calldata amounts, address recipient) onlyOwner external {
for (uint256 i = 0; i < ids.length; i++) {
IERC1155(asset).safeTransferFrom(address(this), recipient, ids[i], amounts[i], "");
}
}
// Required for receiving single ERC1155 tokens
function onERC1155Received(address operator, address from, uint256 id, uint256 value, bytes calldata data) external pure returns (bytes4) {
return IERC1155Receiver.onERC1155Received.selector;
}
// Required for receiving batch ERC1155 tokens
function onERC1155BatchReceived(address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data) external pure returns (bytes4) {
return IERC1155Receiver.onERC1155BatchReceived.selector;
}
// Required by IERC165 (which IERC1155Receiver inherits from)
function supportsInterface(bytes4 interfaceId) external pure override returns (bool) {
return interfaceId == type(IERC1155Receiver).interfaceId ||
interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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 (last updated v4.9.0) (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/
interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(
address[] calldata accounts,
uint256[] calldata ids
) external view returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev _Available since v3.1._
*/
interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6e61, or its own function selector).
*
* @param operator The address which initiated the transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param id The ID of the token being transferred
* @param value The amount of tokens being transferred
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
*/
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
/**
* @dev Handles the receipt of a multiple ERC1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
* (i.e. 0xbc197c81, or its own function selector).
*
* @param operator The address which initiated the batch transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param ids An array containing ids of each token being transferred (order and length must match values array)
* @param values An array containing amounts of each token being transferred (order and length must match ids array)
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
*/
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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);
/**
* @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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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`.
*
* 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;
/**
* @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* 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 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 the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// 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);
}{
"optimizer": {
"enabled": true,
"runs": 1
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes[]","name":"datas","type":"bytes[]"}],"name":"executeBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610d7c8061007e6000396000f3fe60806040526004361061008c5760003560e01c806301ffc9a71461009157806304824e70146100c657806326e2dca2146100e857806347e1da2a146101085780635d799f871461011b578063715018a61461013b5780638da5cb5b14610150578063b7ce33a214610172578063bc197c8114610192578063f23a6e61146101da578063f2fde38b14610207575b600080fd5b34801561009d57600080fd5b506100b16100ac366004610841565b610227565b60405190151581526020015b60405180910390f35b3480156100d257600080fd5b506100e66100e136600461088e565b61025e565b005b3480156100f457600080fd5b506100e66101033660046108f4565b6102ba565b6100e6610116366004610958565b610379565b34801561012757600080fd5b506100e66101363660046109f1565b6104ff565b34801561014757600080fd5b506100e661060f565b34801561015c57600080fd5b50610165610623565b6040516100bd9190610a24565b34801561017e57600080fd5b506100e661018d366004610a38565b610632565b34801561019e57600080fd5b506101c16101ad366004610b08565b63bc197c8160e01b98975050505050505050565b6040516001600160e01b031990911681526020016100bd565b3480156101e657600080fd5b506101c16101f5366004610bc2565b63f23a6e6160e01b9695505050505050565b34801561021357600080fd5b506100e661022236600461088e565b610719565b60006001600160e01b03198216630271189760e51b148061025857506001600160e01b031982166301ffc9a760e01b145b92915050565b610266610792565b6040516001600160a01b038216904790600081818185875af1925050503d80600081146102af576040519150601f19603f3d011682016040523d82523d6000602084013e6102b4565b606091505b50505050565b6102c2610792565b60005b8281101561037257846001600160a01b03166323b872dd30848787868181106102f0576102f0610c27565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561034757600080fd5b505af115801561035b573d6000803e3d6000fd5b50505050808061036a90610c3d565b9150506102c5565b5050505050565b848314801561038757508481145b6103f45760405162461bcd60e51b815260206004820152603360248201527f41726368657479706542617463683a20546865206172726179206c656e6774686044820152721cc81b5d5cdd081899481a59195b9d1a58d85b606a1b60648201526084015b60405180910390fd5b60005b858110156104f65760008088888481811061041457610414610c27565b9050602002016020810190610429919061088e565b6001600160a01b031687878581811061044457610444610c27565b9050602002013586868681811061045d5761045d610c27565b905060200281019061046f9190610c64565b60405161047d929190610caa565b60006040518083038185875af1925050503d80600081146104ba576040519150601f19603f3d011682016040523d82523d6000602084013e6104bf565b606091505b5091509150816104e3578060405162461bcd60e51b81526004016103eb9190610cde565b5050806104ef90610c3d565b90506103f7565b50505050505050565b610507610792565b6040516370a0823160e01b81526001600160a01b0383169063a9059cbb90839083906370a082319061053d903090600401610a24565b602060405180830381865afa15801561055a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057e9190610d11565b6040516001600160a01b03909216602483015260448201526064016040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050506040516105d29190610d2a565b6000604051808303816000865af19150503d8060008114610372576040519150601f19603f3d011682016040523d82523d6000602084013e610372565b610617610792565b61062160006107f1565b565b6000546001600160a01b031690565b61063a610792565b60005b848110156104f657866001600160a01b031663f242432a308489898681811061066857610668610c27565b9050602002013588888781811061068157610681610c27565b6040516001600160e01b031960e089901b1681526001600160a01b03968716600482015295909416602486015250604484019190915260209091020135606482015260a06084820152600060a482015260c401600060405180830381600087803b1580156106ee57600080fd5b505af1158015610702573d6000803e3d6000fd5b50505050808061071190610c3d565b91505061063d565b610721610792565b6001600160a01b0381166107865760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103eb565b61078f816107f1565b50565b3361079b610623565b6001600160a01b0316146106215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561085357600080fd5b81356001600160e01b03198116811461086b57600080fd5b9392505050565b80356001600160a01b038116811461088957600080fd5b919050565b6000602082840312156108a057600080fd5b61086b82610872565b60008083601f8401126108bb57600080fd5b5081356001600160401b038111156108d257600080fd5b6020830191508360208260051b85010111156108ed57600080fd5b9250929050565b6000806000806060858703121561090a57600080fd5b61091385610872565b935060208501356001600160401b0381111561092e57600080fd5b61093a878288016108a9565b909450925061094d905060408601610872565b905092959194509250565b6000806000806000806060878903121561097157600080fd5b86356001600160401b038082111561098857600080fd5b6109948a838b016108a9565b909850965060208901359150808211156109ad57600080fd5b6109b98a838b016108a9565b909650945060408901359150808211156109d257600080fd5b506109df89828a016108a9565b979a9699509497509295939492505050565b60008060408385031215610a0457600080fd5b610a0d83610872565b9150610a1b60208401610872565b90509250929050565b6001600160a01b0391909116815260200190565b60008060008060008060808789031215610a5157600080fd5b610a5a87610872565b955060208701356001600160401b0380821115610a7657600080fd5b610a828a838b016108a9565b90975095506040890135915080821115610a9b57600080fd5b50610aa889828a016108a9565b9094509250610abb905060608801610872565b90509295509295509295565b60008083601f840112610ad957600080fd5b5081356001600160401b03811115610af057600080fd5b6020830191508360208285010111156108ed57600080fd5b60008060008060008060008060a0898b031215610b2457600080fd5b610b2d89610872565b9750610b3b60208a01610872565b965060408901356001600160401b0380821115610b5757600080fd5b610b638c838d016108a9565b909850965060608b0135915080821115610b7c57600080fd5b610b888c838d016108a9565b909650945060808b0135915080821115610ba157600080fd5b50610bae8b828c01610ac7565b999c989b5096995094979396929594505050565b60008060008060008060a08789031215610bdb57600080fd5b610be487610872565b9550610bf260208801610872565b9450604087013593506060870135925060808701356001600160401b03811115610c1b57600080fd5b6109df89828a01610ac7565b634e487b7160e01b600052603260045260246000fd5b600060018201610c5d57634e487b7160e01b600052601160045260246000fd5b5060010190565b6000808335601e19843603018112610c7b57600080fd5b8301803591506001600160401b03821115610c9557600080fd5b6020019150368190038213156108ed57600080fd5b8183823760009101908152919050565b60005b83811015610cd5578181015183820152602001610cbd565b50506000910152565b6020815260008251806020840152610cfd816040850160208701610cba565b601f01601f19169190910160400192915050565b600060208284031215610d2357600080fd5b5051919050565b60008251610d3c818460208701610cba565b919091019291505056fea26469706673582212203a046815ac6e0756f5c0c89d0181c07f87b25fc896692b999992a4ce70757c8564736f6c63430008140033
Deployed Bytecode
0x60806040526004361061008c5760003560e01c806301ffc9a71461009157806304824e70146100c657806326e2dca2146100e857806347e1da2a146101085780635d799f871461011b578063715018a61461013b5780638da5cb5b14610150578063b7ce33a214610172578063bc197c8114610192578063f23a6e61146101da578063f2fde38b14610207575b600080fd5b34801561009d57600080fd5b506100b16100ac366004610841565b610227565b60405190151581526020015b60405180910390f35b3480156100d257600080fd5b506100e66100e136600461088e565b61025e565b005b3480156100f457600080fd5b506100e66101033660046108f4565b6102ba565b6100e6610116366004610958565b610379565b34801561012757600080fd5b506100e66101363660046109f1565b6104ff565b34801561014757600080fd5b506100e661060f565b34801561015c57600080fd5b50610165610623565b6040516100bd9190610a24565b34801561017e57600080fd5b506100e661018d366004610a38565b610632565b34801561019e57600080fd5b506101c16101ad366004610b08565b63bc197c8160e01b98975050505050505050565b6040516001600160e01b031990911681526020016100bd565b3480156101e657600080fd5b506101c16101f5366004610bc2565b63f23a6e6160e01b9695505050505050565b34801561021357600080fd5b506100e661022236600461088e565b610719565b60006001600160e01b03198216630271189760e51b148061025857506001600160e01b031982166301ffc9a760e01b145b92915050565b610266610792565b6040516001600160a01b038216904790600081818185875af1925050503d80600081146102af576040519150601f19603f3d011682016040523d82523d6000602084013e6102b4565b606091505b50505050565b6102c2610792565b60005b8281101561037257846001600160a01b03166323b872dd30848787868181106102f0576102f0610c27565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561034757600080fd5b505af115801561035b573d6000803e3d6000fd5b50505050808061036a90610c3d565b9150506102c5565b5050505050565b848314801561038757508481145b6103f45760405162461bcd60e51b815260206004820152603360248201527f41726368657479706542617463683a20546865206172726179206c656e6774686044820152721cc81b5d5cdd081899481a59195b9d1a58d85b606a1b60648201526084015b60405180910390fd5b60005b858110156104f65760008088888481811061041457610414610c27565b9050602002016020810190610429919061088e565b6001600160a01b031687878581811061044457610444610c27565b9050602002013586868681811061045d5761045d610c27565b905060200281019061046f9190610c64565b60405161047d929190610caa565b60006040518083038185875af1925050503d80600081146104ba576040519150601f19603f3d011682016040523d82523d6000602084013e6104bf565b606091505b5091509150816104e3578060405162461bcd60e51b81526004016103eb9190610cde565b5050806104ef90610c3d565b90506103f7565b50505050505050565b610507610792565b6040516370a0823160e01b81526001600160a01b0383169063a9059cbb90839083906370a082319061053d903090600401610a24565b602060405180830381865afa15801561055a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057e9190610d11565b6040516001600160a01b03909216602483015260448201526064016040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050506040516105d29190610d2a565b6000604051808303816000865af19150503d8060008114610372576040519150601f19603f3d011682016040523d82523d6000602084013e610372565b610617610792565b61062160006107f1565b565b6000546001600160a01b031690565b61063a610792565b60005b848110156104f657866001600160a01b031663f242432a308489898681811061066857610668610c27565b9050602002013588888781811061068157610681610c27565b6040516001600160e01b031960e089901b1681526001600160a01b03968716600482015295909416602486015250604484019190915260209091020135606482015260a06084820152600060a482015260c401600060405180830381600087803b1580156106ee57600080fd5b505af1158015610702573d6000803e3d6000fd5b50505050808061071190610c3d565b91505061063d565b610721610792565b6001600160a01b0381166107865760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103eb565b61078f816107f1565b50565b3361079b610623565b6001600160a01b0316146106215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561085357600080fd5b81356001600160e01b03198116811461086b57600080fd5b9392505050565b80356001600160a01b038116811461088957600080fd5b919050565b6000602082840312156108a057600080fd5b61086b82610872565b60008083601f8401126108bb57600080fd5b5081356001600160401b038111156108d257600080fd5b6020830191508360208260051b85010111156108ed57600080fd5b9250929050565b6000806000806060858703121561090a57600080fd5b61091385610872565b935060208501356001600160401b0381111561092e57600080fd5b61093a878288016108a9565b909450925061094d905060408601610872565b905092959194509250565b6000806000806000806060878903121561097157600080fd5b86356001600160401b038082111561098857600080fd5b6109948a838b016108a9565b909850965060208901359150808211156109ad57600080fd5b6109b98a838b016108a9565b909650945060408901359150808211156109d257600080fd5b506109df89828a016108a9565b979a9699509497509295939492505050565b60008060408385031215610a0457600080fd5b610a0d83610872565b9150610a1b60208401610872565b90509250929050565b6001600160a01b0391909116815260200190565b60008060008060008060808789031215610a5157600080fd5b610a5a87610872565b955060208701356001600160401b0380821115610a7657600080fd5b610a828a838b016108a9565b90975095506040890135915080821115610a9b57600080fd5b50610aa889828a016108a9565b9094509250610abb905060608801610872565b90509295509295509295565b60008083601f840112610ad957600080fd5b5081356001600160401b03811115610af057600080fd5b6020830191508360208285010111156108ed57600080fd5b60008060008060008060008060a0898b031215610b2457600080fd5b610b2d89610872565b9750610b3b60208a01610872565b965060408901356001600160401b0380821115610b5757600080fd5b610b638c838d016108a9565b909850965060608b0135915080821115610b7c57600080fd5b610b888c838d016108a9565b909650945060808b0135915080821115610ba157600080fd5b50610bae8b828c01610ac7565b999c989b5096995094979396929594505050565b60008060008060008060a08789031215610bdb57600080fd5b610be487610872565b9550610bf260208801610872565b9450604087013593506060870135925060808701356001600160401b03811115610c1b57600080fd5b6109df89828a01610ac7565b634e487b7160e01b600052603260045260246000fd5b600060018201610c5d57634e487b7160e01b600052601160045260246000fd5b5060010190565b6000808335601e19843603018112610c7b57600080fd5b8301803591506001600160401b03821115610c9557600080fd5b6020019150368190038213156108ed57600080fd5b8183823760009101908152919050565b60005b83811015610cd5578181015183820152602001610cbd565b50506000910152565b6020815260008251806020840152610cfd816040850160208701610cba565b601f01601f19169190910160400192915050565b600060208284031215610d2357600080fd5b5051919050565b60008251610d3c818460208701610cba565b919091019291505056fea26469706673582212203a046815ac6e0756f5c0c89d0181c07f87b25fc896692b999992a4ce70757c8564736f6c63430008140033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
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.