More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,952 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap | 21340637 | 10 days ago | IN | 0 ETH | 0.00333112 | ||||
Swap | 21304383 | 15 days ago | IN | 0 ETH | 0.00197007 | ||||
Swap | 21302664 | 15 days ago | IN | 0 ETH | 0.00248816 | ||||
Swap | 21218627 | 27 days ago | IN | 0 ETH | 0.00214546 | ||||
Swap | 21194980 | 30 days ago | IN | 0 ETH | 0.00231201 | ||||
Swap | 21193592 | 30 days ago | IN | 0 ETH | 0.00423676 | ||||
Swap | 21191089 | 30 days ago | IN | 0 ETH | 0.0017552 | ||||
Swap | 21184548 | 31 days ago | IN | 0 ETH | 0.00575522 | ||||
Swap | 21064985 | 48 days ago | IN | 0 ETH | 0.00343993 | ||||
Swap | 20675194 | 102 days ago | IN | 0 ETH | 0.00021104 | ||||
Swap | 20457569 | 133 days ago | IN | 0 ETH | 0.00062746 | ||||
Swap | 20357530 | 147 days ago | IN | 0 ETH | 0.00237124 | ||||
Swap | 20357526 | 147 days ago | IN | 0 ETH | 0.00225906 | ||||
Swap | 20216516 | 166 days ago | IN | 0 ETH | 0.00057224 | ||||
Swap | 20139724 | 177 days ago | IN | 0 ETH | 0.00074523 | ||||
Swap | 20100124 | 183 days ago | IN | 0 ETH | 0.00038812 | ||||
Swap | 20099679 | 183 days ago | IN | 0 ETH | 0.0007213 | ||||
Swap | 20022484 | 194 days ago | IN | 0 ETH | 0.00149171 | ||||
Swap | 19930697 | 206 days ago | IN | 0 ETH | 0.00075518 | ||||
Swap | 19861456 | 216 days ago | IN | 0 ETH | 0.00223693 | ||||
Swap | 19846597 | 218 days ago | IN | 0 ETH | 0.0005961 | ||||
Swap | 19757872 | 231 days ago | IN | 0 ETH | 0.00078477 | ||||
Swap | 19684099 | 241 days ago | IN | 0 ETH | 0.0030697 | ||||
Swap | 19534473 | 262 days ago | IN | 0 ETH | 0.00390657 | ||||
Swap | 19387139 | 283 days ago | IN | 0 ETH | 0.00922547 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BearSwap
Compiler Version
v0.8.13+commit.abaa5c0e
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.13; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Address.sol"; contract BearSwap is Ownable, ERC1155Holder { using Address for address; enum AssetType { UNSET, BACKGROUND, MUSIC } enum State { Open, Closed } struct BearLocked { uint256 background; uint256 music; } State private _state; IERC721 public bearAddress; IERC1155 public sceneSoundAddress; bytes32 private merkleRoot; mapping(uint256 => BearLocked) public bearLock; mapping(uint256 => bool) public bearHasDefault; mapping(uint256 => AssetType) public assetTypes; event Swap( address by, uint256 backgroundAssetLockIn, uint256 musicAssetLockIn, uint256 indexed tokenId ); event BearAddressUpdated(address _address); event SceneSoundAddressUpdated(address _address); event AssetTypeUpdated(uint256 assetId, AssetType assetType); event RootUpdated(bytes32 _merkleRoot); event DefaultForAssetSet(uint256 indexed _tokenId); event EmergencyAssetsWithdrawn(uint256[] _ids, uint256[] _amounts); event StateUpdated(State _val); constructor( bytes32 _merkleRoot, address _bearAddress, address _sceneSoundAddress ) { bearAddress = IERC721(_bearAddress); sceneSoundAddress = IERC1155(_sceneSoundAddress); merkleRoot = _merkleRoot; _state = State.Closed; } /* @dev: Setter for Partybear * @param: Address location of Partybear */ function setBearAddress(address _address) external onlyOwner { bearAddress = IERC721(_address); emit BearAddressUpdated(_address); } /* @dev: Setter for Scenes and Sounds * @param: Address of Scene Sounds ERC1155 */ function setSceneSoundAddress(address _address) external onlyOwner { sceneSoundAddress = IERC1155(_address); emit SceneSoundAddressUpdated(_address); } /* @dev: Setter for AssetType * @param: AssetId and the AssetType (Background or Sound) */ function setAssetType(uint256 assetId, AssetType assetType) external onlyOwner { assetTypes[assetId] = assetType; emit AssetTypeUpdated(assetId, assetType); } /* @dev: Setter for MerkleTree Root Hash * @param: Bytes root hash */ function setRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; emit RootUpdated(_merkleRoot); } /* @dev: Allow Swaps to happen */ function setOpen() external onlyOwner { _state = State.Open; emit StateUpdated(State.Open); } /* @dev: Disallow Swaps from happening */ function setClosed() external onlyOwner { _state = State.Closed; emit StateUpdated(State.Closed); } /* @dev: Setter for AssetTypes in batches * @param: AssetId as array and the AssetType as array (Background or Sound) */ function setAssetTypeBatch( uint256[] calldata _assetIds, AssetType[] calldata _assetTypes ) external onlyOwner { require( _assetIds.length == _assetTypes.length, "array lengths not identical" ); for (uint256 i = 0; i < _assetIds.length; i++) { assetTypes[_assetIds[i]] = _assetTypes[i]; emit AssetTypeUpdated(_assetIds[i], _assetTypes[i]); } } /* @dev: Sets the intial vault value for a bear * @param: The proof, tokenId, default background and default sound */ function setDefaultForBear( bytes32[] calldata proof, uint256 _tokenId, uint256 _defaultBackground, uint256 _defaultMusic ) internal isBackground(_defaultBackground) isMusic(_defaultMusic) { require(!bearHasDefault[_tokenId], "asset already has default"); require( MerkleProof.verify( proof, merkleRoot, keccak256( abi.encodePacked( _tokenId, _defaultBackground, _defaultMusic ) ) ), "invalid merkle proof" ); bearLock[_tokenId].background = _defaultBackground; bearLock[_tokenId].music = _defaultMusic; bearHasDefault[_tokenId] = true; emit DefaultForAssetSet(_tokenId); } function adminSetDefaultForBear( uint256 _tokenId, uint256 _defaultBackground, uint256 _defaultMusic ) external onlyOwner { bearLock[_tokenId].background = _defaultBackground; bearLock[_tokenId].music = _defaultMusic; bearHasDefault[_tokenId] = true; emit DefaultForAssetSet(_tokenId); } /* @dev: Perform a swap * @param: The tokenId, the background you want to lock in, and the music asset you want to lock in */ function swap( bytes32[] calldata proof, uint256 tokenId, uint256 backgroundAssetLockIn, uint256 musicAssetLockIn, uint256 _defaultBackground, uint256 _defaultMusic ) external isBackground(backgroundAssetLockIn) isMusic(musicAssetLockIn) { require(_state == State.Open, "swaps not open"); require(msg.sender == tx.origin, "contracts not allowed"); require(!Address.isContract(msg.sender), "contracts not allowed"); require( bearAddress.ownerOf(tokenId) == msg.sender, "you can't mess with other peoples bears" ); if (!bearHasDefault[tokenId]) { setDefaultForBear( proof, tokenId, _defaultBackground, _defaultMusic ); } require(bearHasDefault[tokenId], "asset default was not set yet"); require( sceneSoundAddress.isApprovedForAll(msg.sender, address(this)), "not approved to transfer" ); // If the background is the same no need to do it bool doBackground = backgroundAssetLockIn != bearLock[tokenId].background; // If the music one is the same there is no need to do it bool doMusic = musicAssetLockIn != bearLock[tokenId].music; require(doBackground || doMusic, "no need to swap"); uint256 itemsToSwap = 1; if (doBackground && doMusic) { itemsToSwap = 2; } uint256[] memory idsToVault = new uint256[](itemsToSwap); uint256[] memory idsToUser = new uint256[](itemsToSwap); uint256[] memory amounts = new uint256[](itemsToSwap); if (doBackground) { idsToVault[0] = backgroundAssetLockIn; idsToUser[0] = bearLock[tokenId].background; amounts[0] = 1; bearLock[tokenId].background = backgroundAssetLockIn; } if (doMusic) { idsToVault[itemsToSwap - 1] = musicAssetLockIn; idsToUser[itemsToSwap - 1] = bearLock[tokenId].music; amounts[itemsToSwap - 1] = 1; bearLock[tokenId].music = musicAssetLockIn; } sceneSoundAddress.safeBatchTransferFrom( msg.sender, address(this), idsToVault, amounts, "" ); sceneSoundAddress.safeBatchTransferFrom( address(this), msg.sender, idsToUser, amounts, "" ); emit Swap(msg.sender, backgroundAssetLockIn, musicAssetLockIn, tokenId); } /* @dev: Emergency withdrawal * @param: The Ids and Amounts */ function emergencyWithdrawAssets( uint256[] calldata _ids, uint256[] calldata _amounts, address _to ) external onlyOwner { sceneSoundAddress.safeBatchTransferFrom( address(this), _to, _ids, _amounts, "" ); emit EmergencyAssetsWithdrawn(_ids, _amounts); } /* @dev: Verify whether asset is background */ modifier isBackground(uint256 assetId) { require( assetTypes[assetId] == AssetType.BACKGROUND, "Not Background Asset" ); _; } /* @dev: Verify whether asset is music */ modifier isMusic(uint256 assetId) { require(assetTypes[assetId] == AssetType.MUSIC, "Not Music Asset"); _; } }
// 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 (last updated v4.6.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 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 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 v4.4.1 (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 be 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/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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; } }
// 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 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// 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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
{ "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
[{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"address","name":"_bearAddress","type":"address"},{"internalType":"address","name":"_sceneSoundAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":false,"internalType":"enum BearSwap.AssetType","name":"assetType","type":"uint8"}],"name":"AssetTypeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"BearAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"DefaultForAssetSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"EmergencyAssetsWithdrawn","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"RootUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"SceneSoundAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum BearSwap.State","name":"_val","type":"uint8"}],"name":"StateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"backgroundAssetLockIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"musicAssetLockIn","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_defaultBackground","type":"uint256"},{"internalType":"uint256","name":"_defaultMusic","type":"uint256"}],"name":"adminSetDefaultForBear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"assetTypes","outputs":[{"internalType":"enum BearSwap.AssetType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bearAddress","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bearHasDefault","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bearLock","outputs":[{"internalType":"uint256","name":"background","type":"uint256"},{"internalType":"uint256","name":"music","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"address","name":"_to","type":"address"}],"name":"emergencyWithdrawAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sceneSoundAddress","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"enum BearSwap.AssetType","name":"assetType","type":"uint8"}],"name":"setAssetType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_assetIds","type":"uint256[]"},{"internalType":"enum BearSwap.AssetType[]","name":"_assetTypes","type":"uint8[]"}],"name":"setAssetTypeBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setBearAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setClosed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setSceneSoundAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"backgroundAssetLockIn","type":"uint256"},{"internalType":"uint256","name":"musicAssetLockIn","type":"uint256"},{"internalType":"uint256","name":"_defaultBackground","type":"uint256"},{"internalType":"uint256","name":"_defaultMusic","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001dc538038062001dc58339810160408190526200003491620000f4565b6200003f3362000087565b600180546001600160a01b039384166001600160a01b031991821617909155600280549290931691161790556003556000805460ff60a01b1916600160a01b17905562000135565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000ef57600080fd5b919050565b6000806000606084860312156200010a57600080fd5b835192506200011c60208501620000d7565b91506200012c60408501620000d7565b90509250925092565b611c8080620001456000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063bf3aea6f116100b8578063ed364bd61161007c578063ed364bd6146102be578063f23a6e61146102fa578063f2dc6b3314610319578063f2fde38b14610321578063f75fd50d14610334578063fa18b9b31461034757600080fd5b8063bf3aea6f1461024f578063ced7709314610262578063d46a66da14610285578063dab5f34014610298578063e8746d96146102ab57600080fd5b80637a93e088116100ff5780637a93e0881461019c5780638da5cb5b146101af578063972d8529146101d4578063b08fb68114610204578063bc197c811461021757600080fd5b806301ffc9a71461013c5780634a93aed014610164578063682ece0214610179578063712b7b141461018c578063715018a614610194575b600080fd5b61014f61014a3660046114d1565b61035a565b60405190151581526020015b60405180910390f35b610177610172366004611510565b610391565b005b610177610187366004611541565b610419565b6101776104b0565b61017761051f565b6101776101aa3660046115b9565b610555565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161015b565b6101f76101e2366004611625565b60066020526000908152604090205460ff1681565b60405161015b9190611668565b610177610212366004611676565b6106de565b610236610225366004611831565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161015b565b6002546101bc906001600160a01b031681565b61014f610270366004611625565b60056020526000908152604090205460ff1681565b6101776102933660046118df565b6107b8565b6101776102a6366004611625565b610f4e565b6101776102b9366004611510565b610fad565b6102e56102cc366004611625565b6004602052600090815260409020805460019091015482565b6040805192835260208301919091520161015b565b61023661030836600461194a565b63f23a6e6160e01b95945050505050565b610177611025565b61017761032f366004611510565b611093565b6101776103423660046119b3565b61112e565b6001546101bc906001600160a01b031681565b60006001600160e01b03198216630271189760e51b148061038b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146103c45760405162461bcd60e51b81526004016103bb906119df565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527ff7e92b628b8475b772ffede199a3e9cd0e53764bf2a615f4e3b2de359ca20366906020015b60405180910390a150565b6000546001600160a01b031633146104435760405162461bcd60e51b81526004016103bb906119df565b6000828152600660205260409020805482919060ff1916600183600281111561046e5761046e61163e565b02179055507fa4be9b2cffb771ec770c59456280ab9f94fedf3c0e0b26c8306cbb29813e71a382826040516104a4929190611a14565b60405180910390a15050565b6000546001600160a01b031633146104da5760405162461bcd60e51b81526004016103bb906119df565b6000805460ff60a01b191681556040517f23ad33ab6a13a00aa7d06cd167b2abd03dec86af3cf3cc91759dcd3ae84118879161051591611a28565b60405180910390a1565b6000546001600160a01b031633146105495760405162461bcd60e51b81526004016103bb906119df565b61055360006111b3565b565b6000546001600160a01b0316331461057f5760405162461bcd60e51b81526004016103bb906119df565b8281146105ce5760405162461bcd60e51b815260206004820152601b60248201527f6172726179206c656e67746873206e6f74206964656e746963616c000000000060448201526064016103bb565b60005b838110156106d7578282828181106105eb576105eb611a42565b90506020020160208101906106009190611a58565b6006600087878581811061061657610616611a42565b60209081029290920135835250810191909152604001600020805460ff191660018360028111156106495761064961163e565b02179055507fa4be9b2cffb771ec770c59456280ab9f94fedf3c0e0b26c8306cbb29813e71a385858381811061068157610681611a42565b9050602002013584848481811061069a5761069a611a42565b90506020020160208101906106af9190611a58565b6040516106bd929190611a14565b60405180910390a1806106cf81611a89565b9150506105d1565b5050505050565b6000546001600160a01b031633146107085760405162461bcd60e51b81526004016103bb906119df565b600254604051631759616b60e11b81526001600160a01b0390911690632eb2c2d69061074290309085908a908a908a908a90600401611ad8565b600060405180830381600087803b15801561075c57600080fd5b505af1158015610770573d6000803e3d6000fd5b505050507fc7c756c11b5c914474309ae17ad73d8e4d80942fc9b4a73e9a74bb2cab63c56e858585856040516107a99493929190611b37565b60405180910390a15050505050565b83600160008281526006602052604090205460ff1660028111156107de576107de61163e565b146108225760405162461bcd60e51b8152602060048201526014602482015273139bdd08109858dad9dc9bdd5b9908105cdcd95d60621b60448201526064016103bb565b83600260008281526006602052604090205460ff1660028111156108485761084861163e565b146108875760405162461bcd60e51b815260206004820152600f60248201526e139bdd08135d5cda58c8105cdcd95d608a1b60448201526064016103bb565b60008054600160a01b900460ff1660018111156108a6576108a661163e565b146108e45760405162461bcd60e51b815260206004820152600e60248201526d39bbb0b839903737ba1037b832b760911b60448201526064016103bb565b33321461092b5760405162461bcd60e51b815260206004820152601560248201527418dbdb9d1c9858dd1cc81b9bdd08185b1b1bddd959605a1b60448201526064016103bb565b333b156109725760405162461bcd60e51b815260206004820152601560248201527418dbdb9d1c9858dd1cc81b9bdd08185b1b1bddd959605a1b60448201526064016103bb565b6001546040516331a9108f60e11b81526004810189905233916001600160a01b031690636352211e90602401602060405180830381865afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190611b5e565b6001600160a01b031614610a455760405162461bcd60e51b815260206004820152602760248201527f796f752063616e2774206d6573732077697468206f746865722070656f706c656044820152667320626561727360c81b60648201526084016103bb565b60008781526005602052604090205460ff16610a6857610a688989898787611203565b60008781526005602052604090205460ff16610ac65760405162461bcd60e51b815260206004820152601d60248201527f61737365742064656661756c7420776173206e6f74207365742079657400000060448201526064016103bb565b60025460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015610b14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b389190611b7b565b610b845760405162461bcd60e51b815260206004820152601860248201527f6e6f7420617070726f76656420746f207472616e73666572000000000000000060448201526064016103bb565b6000878152600460205260409020805460019091015490871415908614158180610bab5750805b610be95760405162461bcd60e51b815260206004820152600f60248201526e06e6f206e65656420746f207377617608c1b60448201526064016103bb565b6001828015610bf55750815b15610bfe575060025b60008167ffffffffffffffff811115610c1957610c196116fa565b604051908082528060200260200182016040528015610c42578160200160208202803683370190505b50905060008267ffffffffffffffff811115610c6057610c606116fa565b604051908082528060200260200182016040528015610c89578160200160208202803683370190505b50905060008367ffffffffffffffff811115610ca757610ca76116fa565b604051908082528060200260200182016040528015610cd0578160200160208202803683370190505b5090508515610d65578b83600081518110610ced57610ced611a42565b602002602001018181525050600460008e81526020019081526020016000206000015482600081518110610d2357610d23611a42565b602002602001018181525050600181600081518110610d4457610d44611a42565b60209081029190910181019190915260008e81526004909152604090208c90555b8415610e15578a83610d78600187611b9d565b81518110610d8857610d88611a42565b602002602001018181525050600460008e81526020019081526020016000206001015482600186610db99190611b9d565b81518110610dc957610dc9611a42565b6020908102919091010152600181610de18287611b9d565b81518110610df157610df1611a42565b60209081029190910181019190915260008e81526004909152604090206001018b90555b600254604051631759616b60e11b81526001600160a01b0390911690632eb2c2d690610e4b903390309088908790600401611bef565b600060405180830381600087803b158015610e6557600080fd5b505af1158015610e79573d6000803e3d6000fd5b5050600254604051631759616b60e11b81526001600160a01b039091169250632eb2c2d69150610eb3903090339087908790600401611bef565b600060405180830381600087803b158015610ecd57600080fd5b505af1158015610ee1573d6000803e3d6000fd5b505050508c7f5620e542b9ce6a03dbe5af2c6483e766af6c96439562b26a0dcd2edd7099524b338e8e604051610f35939291906001600160a01b039390931683526020830191909152604082015260600190565b60405180910390a2505050505050505050505050505050565b6000546001600160a01b03163314610f785760405162461bcd60e51b81526004016103bb906119df565b60038190556040518181527f2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa49060200161040e565b6000546001600160a01b03163314610fd75760405162461bcd60e51b81526004016103bb906119df565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527fe699bdb3c3ee6ecec33bd906d058375b6ab8237df757700f85d48596b044d5259060200161040e565b6000546001600160a01b0316331461104f5760405162461bcd60e51b81526004016103bb906119df565b6000805460ff60a01b1916600160a01b1790556040517f23ad33ab6a13a00aa7d06cd167b2abd03dec86af3cf3cc91759dcd3ae84118879061051590600190611a28565b6000546001600160a01b031633146110bd5760405162461bcd60e51b81526004016103bb906119df565b6001600160a01b0381166111225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bb565b61112b816111b3565b50565b6000546001600160a01b031633146111585760405162461bcd60e51b81526004016103bb906119df565b600083815260046020908152604080832085815560019081018590556005909252808320805460ff19169092179091555184917f118f89cd378ad35b6d645a471f701075f71be8015df942cbf05366c01da4b62891a2505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b81600160008281526006602052604090205460ff1660028111156112295761122961163e565b1461126d5760405162461bcd60e51b8152602060048201526014602482015273139bdd08109858dad9dc9bdd5b9908105cdcd95d60621b60448201526064016103bb565b81600260008281526006602052604090205460ff1660028111156112935761129361163e565b146112d25760405162461bcd60e51b815260206004820152600f60248201526e139bdd08135d5cda58c8105cdcd95d608a1b60448201526064016103bb565b60008581526005602052604090205460ff16156113315760405162461bcd60e51b815260206004820152601960248201527f617373657420616c7265616479206861732064656661756c740000000000000060448201526064016103bb565b6113a38787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060035460408051602081018c90529081018a905260608101899052909250608001905060405160208183030381529060405280519060200120611445565b6113e65760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016103bb565b600085815260046020908152604080832087815560019081018790556005909252808320805460ff19169092179091555186917f118f89cd378ad35b6d645a471f701075f71be8015df942cbf05366c01da4b62891a250505050505050565b600082611452858461145d565b1490505b9392505050565b600081815b84518110156114c957600085828151811061147f5761147f611a42565b602002602001015190508083116114a557600083815260208290526040902092506114b6565b600081815260208490526040902092505b50806114c181611a89565b915050611462565b509392505050565b6000602082840312156114e357600080fd5b81356001600160e01b03198116811461145657600080fd5b6001600160a01b038116811461112b57600080fd5b60006020828403121561152257600080fd5b8135611456816114fb565b80356003811061153c57600080fd5b919050565b6000806040838503121561155457600080fd5b823591506115646020840161152d565b90509250929050565b60008083601f84011261157f57600080fd5b50813567ffffffffffffffff81111561159757600080fd5b6020830191508360208260051b85010111156115b257600080fd5b9250929050565b600080600080604085870312156115cf57600080fd5b843567ffffffffffffffff808211156115e757600080fd5b6115f38883890161156d565b9096509450602087013591508082111561160c57600080fd5b506116198782880161156d565b95989497509550505050565b60006020828403121561163757600080fd5b5035919050565b634e487b7160e01b600052602160045260246000fd5b600381106116645761166461163e565b9052565b6020810161038b8284611654565b60008060008060006060868803121561168e57600080fd5b853567ffffffffffffffff808211156116a657600080fd5b6116b289838a0161156d565b909750955060208801359150808211156116cb57600080fd5b506116d88882890161156d565b90945092505060408601356116ec816114fb565b809150509295509295909350565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611739576117396116fa565b604052919050565b600082601f83011261175257600080fd5b8135602067ffffffffffffffff82111561176e5761176e6116fa565b8160051b61177d828201611710565b928352848101820192828101908785111561179757600080fd5b83870192505b848310156117b65782358252918301919083019061179d565b979650505050505050565b600082601f8301126117d257600080fd5b813567ffffffffffffffff8111156117ec576117ec6116fa565b6117ff601f8201601f1916602001611710565b81815284602083860101111561181457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561184957600080fd5b8535611854816114fb565b94506020860135611864816114fb565b9350604086013567ffffffffffffffff8082111561188157600080fd5b61188d89838a01611741565b945060608801359150808211156118a357600080fd5b6118af89838a01611741565b935060808801359150808211156118c557600080fd5b506118d2888289016117c1565b9150509295509295909350565b600080600080600080600060c0888a0312156118fa57600080fd5b873567ffffffffffffffff81111561191157600080fd5b61191d8a828b0161156d565b909b909a5060208a01359960408101359950606081013598506080810135975060a0013595509350505050565b600080600080600060a0868803121561196257600080fd5b853561196d816114fb565b9450602086013561197d816114fb565b93506040860135925060608601359150608086013567ffffffffffffffff8111156119a757600080fd5b6118d2888289016117c1565b6000806000606084860312156119c857600080fd5b505081359360208301359350604090920135919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b828152604081016114566020830184611654565b6020810160028310611a3c57611a3c61163e565b91905290565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611a6a57600080fd5b6114568261152d565b634e487b7160e01b600052601160045260246000fd5b600060018201611a9b57611a9b611a73565b5060010190565b81835260006001600160fb1b03831115611abb57600080fd5b8260051b8083602087013760009401602001938452509192915050565b6001600160a01b0387811682528616602082015260a060408201819052600090611b059083018688611aa2565b8281036060840152611b18818587611aa2565b8381036080909401939093525050600081526020019695505050505050565b604081526000611b4b604083018688611aa2565b82810360208401526117b6818587611aa2565b600060208284031215611b7057600080fd5b8151611456816114fb565b600060208284031215611b8d57600080fd5b8151801515811461145657600080fd5b600082821015611baf57611baf611a73565b500390565b600081518084526020808501945080840160005b83811015611be457815187529582019590820190600101611bc8565b509495945050505050565b6001600160a01b0385811682528416602082015260a060408201819052600090611c1b90830185611bb4565b8281036060840152611c2d8185611bb4565b83810360809094019390935250506000815260200194935050505056fea2646970667358221220ea6eed4c96cf4305d3226207692be061b2da4ad316fbe2111e63ecdd4585e9ef64736f6c634300080d0033e0462fc95cd25110d0e40aa147678604b8616bf543d7853b679884c2fbd28a7400000000000000000000000035471f47c3c0bc5fc75025b97a19ecdde00f78f80000000000000000000000006fad73936527d2a82aea5384d252462941b44042
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063bf3aea6f116100b8578063ed364bd61161007c578063ed364bd6146102be578063f23a6e61146102fa578063f2dc6b3314610319578063f2fde38b14610321578063f75fd50d14610334578063fa18b9b31461034757600080fd5b8063bf3aea6f1461024f578063ced7709314610262578063d46a66da14610285578063dab5f34014610298578063e8746d96146102ab57600080fd5b80637a93e088116100ff5780637a93e0881461019c5780638da5cb5b146101af578063972d8529146101d4578063b08fb68114610204578063bc197c811461021757600080fd5b806301ffc9a71461013c5780634a93aed014610164578063682ece0214610179578063712b7b141461018c578063715018a614610194575b600080fd5b61014f61014a3660046114d1565b61035a565b60405190151581526020015b60405180910390f35b610177610172366004611510565b610391565b005b610177610187366004611541565b610419565b6101776104b0565b61017761051f565b6101776101aa3660046115b9565b610555565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161015b565b6101f76101e2366004611625565b60066020526000908152604090205460ff1681565b60405161015b9190611668565b610177610212366004611676565b6106de565b610236610225366004611831565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161015b565b6002546101bc906001600160a01b031681565b61014f610270366004611625565b60056020526000908152604090205460ff1681565b6101776102933660046118df565b6107b8565b6101776102a6366004611625565b610f4e565b6101776102b9366004611510565b610fad565b6102e56102cc366004611625565b6004602052600090815260409020805460019091015482565b6040805192835260208301919091520161015b565b61023661030836600461194a565b63f23a6e6160e01b95945050505050565b610177611025565b61017761032f366004611510565b611093565b6101776103423660046119b3565b61112e565b6001546101bc906001600160a01b031681565b60006001600160e01b03198216630271189760e51b148061038b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146103c45760405162461bcd60e51b81526004016103bb906119df565b60405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527ff7e92b628b8475b772ffede199a3e9cd0e53764bf2a615f4e3b2de359ca20366906020015b60405180910390a150565b6000546001600160a01b031633146104435760405162461bcd60e51b81526004016103bb906119df565b6000828152600660205260409020805482919060ff1916600183600281111561046e5761046e61163e565b02179055507fa4be9b2cffb771ec770c59456280ab9f94fedf3c0e0b26c8306cbb29813e71a382826040516104a4929190611a14565b60405180910390a15050565b6000546001600160a01b031633146104da5760405162461bcd60e51b81526004016103bb906119df565b6000805460ff60a01b191681556040517f23ad33ab6a13a00aa7d06cd167b2abd03dec86af3cf3cc91759dcd3ae84118879161051591611a28565b60405180910390a1565b6000546001600160a01b031633146105495760405162461bcd60e51b81526004016103bb906119df565b61055360006111b3565b565b6000546001600160a01b0316331461057f5760405162461bcd60e51b81526004016103bb906119df565b8281146105ce5760405162461bcd60e51b815260206004820152601b60248201527f6172726179206c656e67746873206e6f74206964656e746963616c000000000060448201526064016103bb565b60005b838110156106d7578282828181106105eb576105eb611a42565b90506020020160208101906106009190611a58565b6006600087878581811061061657610616611a42565b60209081029290920135835250810191909152604001600020805460ff191660018360028111156106495761064961163e565b02179055507fa4be9b2cffb771ec770c59456280ab9f94fedf3c0e0b26c8306cbb29813e71a385858381811061068157610681611a42565b9050602002013584848481811061069a5761069a611a42565b90506020020160208101906106af9190611a58565b6040516106bd929190611a14565b60405180910390a1806106cf81611a89565b9150506105d1565b5050505050565b6000546001600160a01b031633146107085760405162461bcd60e51b81526004016103bb906119df565b600254604051631759616b60e11b81526001600160a01b0390911690632eb2c2d69061074290309085908a908a908a908a90600401611ad8565b600060405180830381600087803b15801561075c57600080fd5b505af1158015610770573d6000803e3d6000fd5b505050507fc7c756c11b5c914474309ae17ad73d8e4d80942fc9b4a73e9a74bb2cab63c56e858585856040516107a99493929190611b37565b60405180910390a15050505050565b83600160008281526006602052604090205460ff1660028111156107de576107de61163e565b146108225760405162461bcd60e51b8152602060048201526014602482015273139bdd08109858dad9dc9bdd5b9908105cdcd95d60621b60448201526064016103bb565b83600260008281526006602052604090205460ff1660028111156108485761084861163e565b146108875760405162461bcd60e51b815260206004820152600f60248201526e139bdd08135d5cda58c8105cdcd95d608a1b60448201526064016103bb565b60008054600160a01b900460ff1660018111156108a6576108a661163e565b146108e45760405162461bcd60e51b815260206004820152600e60248201526d39bbb0b839903737ba1037b832b760911b60448201526064016103bb565b33321461092b5760405162461bcd60e51b815260206004820152601560248201527418dbdb9d1c9858dd1cc81b9bdd08185b1b1bddd959605a1b60448201526064016103bb565b333b156109725760405162461bcd60e51b815260206004820152601560248201527418dbdb9d1c9858dd1cc81b9bdd08185b1b1bddd959605a1b60448201526064016103bb565b6001546040516331a9108f60e11b81526004810189905233916001600160a01b031690636352211e90602401602060405180830381865afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190611b5e565b6001600160a01b031614610a455760405162461bcd60e51b815260206004820152602760248201527f796f752063616e2774206d6573732077697468206f746865722070656f706c656044820152667320626561727360c81b60648201526084016103bb565b60008781526005602052604090205460ff16610a6857610a688989898787611203565b60008781526005602052604090205460ff16610ac65760405162461bcd60e51b815260206004820152601d60248201527f61737365742064656661756c7420776173206e6f74207365742079657400000060448201526064016103bb565b60025460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015610b14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b389190611b7b565b610b845760405162461bcd60e51b815260206004820152601860248201527f6e6f7420617070726f76656420746f207472616e73666572000000000000000060448201526064016103bb565b6000878152600460205260409020805460019091015490871415908614158180610bab5750805b610be95760405162461bcd60e51b815260206004820152600f60248201526e06e6f206e65656420746f207377617608c1b60448201526064016103bb565b6001828015610bf55750815b15610bfe575060025b60008167ffffffffffffffff811115610c1957610c196116fa565b604051908082528060200260200182016040528015610c42578160200160208202803683370190505b50905060008267ffffffffffffffff811115610c6057610c606116fa565b604051908082528060200260200182016040528015610c89578160200160208202803683370190505b50905060008367ffffffffffffffff811115610ca757610ca76116fa565b604051908082528060200260200182016040528015610cd0578160200160208202803683370190505b5090508515610d65578b83600081518110610ced57610ced611a42565b602002602001018181525050600460008e81526020019081526020016000206000015482600081518110610d2357610d23611a42565b602002602001018181525050600181600081518110610d4457610d44611a42565b60209081029190910181019190915260008e81526004909152604090208c90555b8415610e15578a83610d78600187611b9d565b81518110610d8857610d88611a42565b602002602001018181525050600460008e81526020019081526020016000206001015482600186610db99190611b9d565b81518110610dc957610dc9611a42565b6020908102919091010152600181610de18287611b9d565b81518110610df157610df1611a42565b60209081029190910181019190915260008e81526004909152604090206001018b90555b600254604051631759616b60e11b81526001600160a01b0390911690632eb2c2d690610e4b903390309088908790600401611bef565b600060405180830381600087803b158015610e6557600080fd5b505af1158015610e79573d6000803e3d6000fd5b5050600254604051631759616b60e11b81526001600160a01b039091169250632eb2c2d69150610eb3903090339087908790600401611bef565b600060405180830381600087803b158015610ecd57600080fd5b505af1158015610ee1573d6000803e3d6000fd5b505050508c7f5620e542b9ce6a03dbe5af2c6483e766af6c96439562b26a0dcd2edd7099524b338e8e604051610f35939291906001600160a01b039390931683526020830191909152604082015260600190565b60405180910390a2505050505050505050505050505050565b6000546001600160a01b03163314610f785760405162461bcd60e51b81526004016103bb906119df565b60038190556040518181527f2cbc14f49c068133583f7cb530018af451c87c1cf1327cf2a4ff4698c4730aa49060200161040e565b6000546001600160a01b03163314610fd75760405162461bcd60e51b81526004016103bb906119df565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527fe699bdb3c3ee6ecec33bd906d058375b6ab8237df757700f85d48596b044d5259060200161040e565b6000546001600160a01b0316331461104f5760405162461bcd60e51b81526004016103bb906119df565b6000805460ff60a01b1916600160a01b1790556040517f23ad33ab6a13a00aa7d06cd167b2abd03dec86af3cf3cc91759dcd3ae84118879061051590600190611a28565b6000546001600160a01b031633146110bd5760405162461bcd60e51b81526004016103bb906119df565b6001600160a01b0381166111225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bb565b61112b816111b3565b50565b6000546001600160a01b031633146111585760405162461bcd60e51b81526004016103bb906119df565b600083815260046020908152604080832085815560019081018590556005909252808320805460ff19169092179091555184917f118f89cd378ad35b6d645a471f701075f71be8015df942cbf05366c01da4b62891a2505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b81600160008281526006602052604090205460ff1660028111156112295761122961163e565b1461126d5760405162461bcd60e51b8152602060048201526014602482015273139bdd08109858dad9dc9bdd5b9908105cdcd95d60621b60448201526064016103bb565b81600260008281526006602052604090205460ff1660028111156112935761129361163e565b146112d25760405162461bcd60e51b815260206004820152600f60248201526e139bdd08135d5cda58c8105cdcd95d608a1b60448201526064016103bb565b60008581526005602052604090205460ff16156113315760405162461bcd60e51b815260206004820152601960248201527f617373657420616c7265616479206861732064656661756c740000000000000060448201526064016103bb565b6113a38787808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060035460408051602081018c90529081018a905260608101899052909250608001905060405160208183030381529060405280519060200120611445565b6113e65760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016103bb565b600085815260046020908152604080832087815560019081018790556005909252808320805460ff19169092179091555186917f118f89cd378ad35b6d645a471f701075f71be8015df942cbf05366c01da4b62891a250505050505050565b600082611452858461145d565b1490505b9392505050565b600081815b84518110156114c957600085828151811061147f5761147f611a42565b602002602001015190508083116114a557600083815260208290526040902092506114b6565b600081815260208490526040902092505b50806114c181611a89565b915050611462565b509392505050565b6000602082840312156114e357600080fd5b81356001600160e01b03198116811461145657600080fd5b6001600160a01b038116811461112b57600080fd5b60006020828403121561152257600080fd5b8135611456816114fb565b80356003811061153c57600080fd5b919050565b6000806040838503121561155457600080fd5b823591506115646020840161152d565b90509250929050565b60008083601f84011261157f57600080fd5b50813567ffffffffffffffff81111561159757600080fd5b6020830191508360208260051b85010111156115b257600080fd5b9250929050565b600080600080604085870312156115cf57600080fd5b843567ffffffffffffffff808211156115e757600080fd5b6115f38883890161156d565b9096509450602087013591508082111561160c57600080fd5b506116198782880161156d565b95989497509550505050565b60006020828403121561163757600080fd5b5035919050565b634e487b7160e01b600052602160045260246000fd5b600381106116645761166461163e565b9052565b6020810161038b8284611654565b60008060008060006060868803121561168e57600080fd5b853567ffffffffffffffff808211156116a657600080fd5b6116b289838a0161156d565b909750955060208801359150808211156116cb57600080fd5b506116d88882890161156d565b90945092505060408601356116ec816114fb565b809150509295509295909350565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611739576117396116fa565b604052919050565b600082601f83011261175257600080fd5b8135602067ffffffffffffffff82111561176e5761176e6116fa565b8160051b61177d828201611710565b928352848101820192828101908785111561179757600080fd5b83870192505b848310156117b65782358252918301919083019061179d565b979650505050505050565b600082601f8301126117d257600080fd5b813567ffffffffffffffff8111156117ec576117ec6116fa565b6117ff601f8201601f1916602001611710565b81815284602083860101111561181457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561184957600080fd5b8535611854816114fb565b94506020860135611864816114fb565b9350604086013567ffffffffffffffff8082111561188157600080fd5b61188d89838a01611741565b945060608801359150808211156118a357600080fd5b6118af89838a01611741565b935060808801359150808211156118c557600080fd5b506118d2888289016117c1565b9150509295509295909350565b600080600080600080600060c0888a0312156118fa57600080fd5b873567ffffffffffffffff81111561191157600080fd5b61191d8a828b0161156d565b909b909a5060208a01359960408101359950606081013598506080810135975060a0013595509350505050565b600080600080600060a0868803121561196257600080fd5b853561196d816114fb565b9450602086013561197d816114fb565b93506040860135925060608601359150608086013567ffffffffffffffff8111156119a757600080fd5b6118d2888289016117c1565b6000806000606084860312156119c857600080fd5b505081359360208301359350604090920135919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b828152604081016114566020830184611654565b6020810160028310611a3c57611a3c61163e565b91905290565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611a6a57600080fd5b6114568261152d565b634e487b7160e01b600052601160045260246000fd5b600060018201611a9b57611a9b611a73565b5060010190565b81835260006001600160fb1b03831115611abb57600080fd5b8260051b8083602087013760009401602001938452509192915050565b6001600160a01b0387811682528616602082015260a060408201819052600090611b059083018688611aa2565b8281036060840152611b18818587611aa2565b8381036080909401939093525050600081526020019695505050505050565b604081526000611b4b604083018688611aa2565b82810360208401526117b6818587611aa2565b600060208284031215611b7057600080fd5b8151611456816114fb565b600060208284031215611b8d57600080fd5b8151801515811461145657600080fd5b600082821015611baf57611baf611a73565b500390565b600081518084526020808501945080840160005b83811015611be457815187529582019590820190600101611bc8565b509495945050505050565b6001600160a01b0385811682528416602082015260a060408201819052600090611c1b90830185611bb4565b8281036060840152611c2d8185611bb4565b83810360809094019390935250506000815260200194935050505056fea2646970667358221220ea6eed4c96cf4305d3226207692be061b2da4ad316fbe2111e63ecdd4585e9ef64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
e0462fc95cd25110d0e40aa147678604b8616bf543d7853b679884c2fbd28a7400000000000000000000000035471f47c3c0bc5fc75025b97a19ecdde00f78f80000000000000000000000006fad73936527d2a82aea5384d252462941b44042
-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0xe0462fc95cd25110d0e40aa147678604b8616bf543d7853b679884c2fbd28a74
Arg [1] : _bearAddress (address): 0x35471f47c3C0BC5FC75025b97A19ECDDe00F78f8
Arg [2] : _sceneSoundAddress (address): 0x6faD73936527D2a82AEA5384D252462941B44042
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : e0462fc95cd25110d0e40aa147678604b8616bf543d7853b679884c2fbd28a74
Arg [1] : 00000000000000000000000035471f47c3c0bc5fc75025b97a19ecdde00f78f8
Arg [2] : 0000000000000000000000006fad73936527d2a82aea5384d252462941b44042
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.