More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 209 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Purchase Product | 15311022 | 840 days ago | IN | 0 ETH | 0.00108441 | ||||
Purchase Product | 15310602 | 840 days ago | IN | 0 ETH | 0.00100747 | ||||
Purchase Product | 15310456 | 840 days ago | IN | 0 ETH | 0.00142129 | ||||
Purchase Product | 15310451 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15310451 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15310349 | 840 days ago | IN | 0 ETH | 0.002025 | ||||
Purchase Product | 15310347 | 840 days ago | IN | 0 ETH | 0.0017817 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309839 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309838 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309838 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309838 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15309838 | 840 days ago | IN | 0 ETH | 0.00147213 | ||||
Purchase Product | 15308387 | 841 days ago | IN | 0 ETH | 0.00190193 | ||||
Purchase Product | 15308387 | 841 days ago | IN | 0 ETH | 0.00190193 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ChizShop
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; contract ChizShop is IERC721Receiver { ERC20 chizToken = ERC20(0x5c761c1a21637362374204000e383204d347064C); // mainnet struct Product { bool exists; uint256 price; uint256 tokenId; address contractAddress; bool multiple; uint256 startId; uint256 qty; } mapping(string => Product) public Products; address shopManager; bool paused; event ProductCreated(string slug); event ProductSold(string slug); event ProductDeleted(string slug); event ProductPurchased(string slug, address owner); modifier onlyShopManager() { require(msg.sender == shopManager, "you must be the shop manager to use this function"); _; } modifier onlyUnpaused() { require(paused == false, "contract is paused"); _; } constructor() { shopManager = msg.sender; } function pause() public onlyShopManager { paused = true; } function unpause() public onlyShopManager { paused = false; } function setToken(address contractAddress) public onlyUnpaused onlyShopManager{ chizToken = ERC20(contractAddress); } function setShopManager(address newShopManager) public onlyUnpaused onlyShopManager{ shopManager = newShopManager; } function withdraw(uint256 withdrawAmount) public onlyUnpaused onlyShopManager { chizToken.transfer(msg.sender, withdrawAmount); } function createProduct( string memory slug, uint256 price, uint256 tokenId, address contractAddress, bool multiple, uint256 startId, uint256 qty ) public onlyUnpaused onlyShopManager { Product memory product = Products[slug]; require(product.exists == false, "a product with this slug already exists"); ERC721 tokenContract = ERC721(contractAddress); if (!multiple) { require(tokenContract.ownerOf(tokenId) == address(this), "contract is not the owner of this token"); } else { uint256 balance = tokenContract.balanceOf(address(this)); require(balance != 0, "the shop contract does not own any of these tokens"); } Products[slug] = Product( true, price, tokenId, contractAddress, multiple, startId, qty ); emit ProductCreated(slug); } function deleteProduct(string memory slug) public onlyUnpaused onlyShopManager{ delete Products[slug]; emit ProductDeleted(slug); } function purchaseProduct(string memory slug) public payable onlyUnpaused { Product memory product = Products[slug]; require(product.exists == true, "a product with this slug does not exist"); ERC721 tokenContract = ERC721(product.contractAddress); uint256 tokenId; if (product.multiple) { require(product.qty > 0, "there are no more tokens available"); tokenId = product.startId; } else { tokenId = product.tokenId; } require(tokenContract.ownerOf(tokenId) == address(this), "contract is sold out of these tokens"); // if product has multiple tokens, increment startId and decrement qty if (product.multiple) { product.startId++; product.qty--; } chizToken.transferFrom(msg.sender, address(this), product.price); tokenContract.transferFrom(address(this), msg.sender, tokenId); Products[slug] = Product( true, product.price, product.tokenId, product.contractAddress, product.multiple, product.startId, product.qty ); emit ProductPurchased(slug, msg.sender); } function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) { return this.onERC721Received.selector; } } abstract contract ERC721 { function ownerOf(uint256 id) public virtual returns (address owner); function transferFrom(address from, address to, uint256 id) public virtual; function balanceOf(address owner) public virtual returns (uint256 amount); function totalSupply () public virtual returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 tokenId) public virtual returns (uint256 index); } abstract contract ERC20 { function allowance(address owner, address spender) public virtual; function transfer(address to, uint256 value) public virtual; function transferFrom(address from, address to, uint256 amount) public virtual; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"slug","type":"string"}],"name":"ProductCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"slug","type":"string"}],"name":"ProductDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"slug","type":"string"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"ProductPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"slug","type":"string"}],"name":"ProductSold","type":"event"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"Products","outputs":[{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"bool","name":"multiple","type":"bool"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"slug","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"bool","name":"multiple","type":"bool"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"createProduct","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"slug","type":"string"}],"name":"deleteProduct","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"slug","type":"string"}],"name":"purchaseProduct","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newShopManager","type":"address"}],"name":"setShopManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052735c761c1a21637362374204000e383204d347064c6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561006457600080fd5b5033600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506121b2806100b56000396000f3fe6080604052600436106100915760003560e01c80633f4ba83a116100595780633f4ba83a1461016a57806372139d9a146101815780638456cb59146101aa578063b75dda7b146101c1578063eff469be1461020457610091565b806302298b9214610096578063144fa6d7146100bf578063150b7a02146100e857806319f92926146101255780632e1a7d4d14610141575b600080fd5b3480156100a257600080fd5b506100bd60048036038101906100b891906115d5565b61022d565b005b3480156100cb57600080fd5b506100e660048036038101906100e191906115d5565b610357565b005b3480156100f457600080fd5b5061010f600480360381019061010a919061162f565b610480565b60405161011c9190611ad2565b60405180910390f35b61013f600480360381019061013a91906116b2565b610494565b005b34801561014d57600080fd5b50610168600480360381019061016391906117b9565b610a2c565b005b34801561017657600080fd5b5061017f610ba2565b005b34801561018d57600080fd5b506101a860048036038101906101a391906116b2565b610c4f565b005b3480156101b657600080fd5b506101bf610dff565b005b3480156101cd57600080fd5b506101e860048036038101906101e391906116b2565b610eac565b6040516101fb9796959493929190611a63565b60405180910390f35b34801561021057600080fd5b5061022b600480360381019061022691906116fb565b610f3e565b005b60001515600260149054906101000a900460ff16151514610283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027a90611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610313576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030a90611b7f565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60001515600260149054906101000a900460ff161515146103ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a490611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461043d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043490611b7f565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600063150b7a0260e01b9050949350505050565b60001515600260149054906101000a900460ff161515146104ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e190611b3f565b60405180910390fd5b60006001826040516104fc91906119d1565b90815260200160405180910390206040518060e00160405290816000820160009054906101000a900460ff1615151515815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016003820160149054906101000a900460ff16151515158152602001600482015481526020016005820154815250509050600115158160000151151514610616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060d90611bff565b60405180910390fd5b600081606001519050600082608001511561067e5760008360c0015111610672576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066990611bbf565b60405180910390fd5b8260a001519050610686565b826040015190505b3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016106d69190611c3f565b602060405180830381600087803b1580156106f057600080fd5b505af1158015610704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107289190611602565b73ffffffffffffffffffffffffffffffffffffffff161461077e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077590611bdf565b60405180910390fd5b8260800151156107b5578260a001805180919061079a90611e19565b815250508260c00180518091906107b090611dbe565b815250505b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333086602001516040518463ffffffff1660e01b815260040161081693929190611a03565b600060405180830381600087803b15801561083057600080fd5b505af1158015610844573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3033846040518463ffffffff1660e01b815260040161088593929190611a03565b600060405180830381600087803b15801561089f57600080fd5b505af11580156108b3573d6000803e3d6000fd5b505050506040518060e001604052806001151581526020018460200151815260200184604001518152602001846060015173ffffffffffffffffffffffffffffffffffffffff1681526020018460800151151581526020018460a0015181526020018460c0015181525060018560405161092d91906119d1565b908152602001604051809103902060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160030160146101000a81548160ff02191690831515021790555060a0820151816004015560c082015181600501559050507f369aa284845525149c49a0e06e856964499312c85d2c92eaae6a131d2ef86ed78433604051610a1e929190611b0f565b60405180910390a150505050565b60001515600260149054906101000a900460ff16151514610a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7990611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0990611b7f565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610b6d929190611a3a565b600060405180830381600087803b158015610b8757600080fd5b505af1158015610b9b573d6000803e3d6000fd5b5050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2990611b7f565b60405180910390fd5b6000600260146101000a81548160ff021916908315150217905550565b60001515600260149054906101000a900460ff16151514610ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9c90611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2c90611b7f565b60405180910390fd5b600181604051610d4591906119d1565b9081526020016040518091039020600080820160006101000a81549060ff0219169055600182016000905560028201600090556003820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556003820160146101000a81549060ff02191690556004820160009055600582016000905550507f959ad8b1befbeb936d9a91bf2f741a2f7a8fcf9a0cb38ece37ca3e9814041eab81604051610df49190611aed565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8690611b7f565b60405180910390fd5b6001600260146101000a81548160ff021916908315150217905550565b6001818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900460ff16908060010154908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060030160149054906101000a900460ff16908060040154908060050154905087565b60001515600260149054906101000a900460ff16151514610f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8b90611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b90611b7f565b60405180910390fd5b600060018860405161103691906119d1565b90815260200160405180910390206040518060e00160405290816000820160009054906101000a900460ff1615151515815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016003820160149054906101000a900460ff16151515158152602001600482015481526020016005820154815250509050600015158160000151151514611150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114790611c1f565b60405180910390fd5b600085905084611257573073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e896040518263ffffffff1660e01b81526004016111aa9190611c3f565b602060405180830381600087803b1580156111c457600080fd5b505af11580156111d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fc9190611602565b73ffffffffffffffffffffffffffffffffffffffff1614611252576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124990611b5f565b60405180910390fd5b61132c565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161129291906119e8565b602060405180830381600087803b1580156112ac57600080fd5b505af11580156112c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e491906117e6565b9050600081141561132a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132190611b9f565b60405180910390fd5b505b6040518060e001604052806001151581526020018981526020018881526020018773ffffffffffffffffffffffffffffffffffffffff16815260200186151581526020018581526020018481525060018a60405161138a91906119d1565b908152602001604051809103902060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160030160146101000a81548160ff02191690831515021790555060a0820151816004015560c082015181600501559050507f56c6fc0de15041f466a39cc92fa6962e350ac13f1d4249bc6e25ef5b82ca8bc5896040516114799190611aed565b60405180910390a1505050505050505050565b600061149f61149a84611c7f565b611c5a565b9050828152602081018484840111156114bb576114ba611ec5565b5b6114c6848285611d7c565b509392505050565b60006114e16114dc84611cb0565b611c5a565b9050828152602081018484840111156114fd576114fc611ec5565b5b611508848285611d7c565b509392505050565b60008135905061151f81612137565b92915050565b60008151905061153481612137565b92915050565b6000813590506115498161214e565b92915050565b600082601f83011261156457611563611ec0565b5b813561157484826020860161148c565b91505092915050565b600082601f83011261159257611591611ec0565b5b81356115a28482602086016114ce565b91505092915050565b6000813590506115ba81612165565b92915050565b6000815190506115cf81612165565b92915050565b6000602082840312156115eb576115ea611ecf565b5b60006115f984828501611510565b91505092915050565b60006020828403121561161857611617611ecf565b5b600061162684828501611525565b91505092915050565b6000806000806080858703121561164957611648611ecf565b5b600061165787828801611510565b945050602061166887828801611510565b9350506040611679878288016115ab565b925050606085013567ffffffffffffffff81111561169a57611699611eca565b5b6116a68782880161154f565b91505092959194509250565b6000602082840312156116c8576116c7611ecf565b5b600082013567ffffffffffffffff8111156116e6576116e5611eca565b5b6116f28482850161157d565b91505092915050565b600080600080600080600060e0888a03121561171a57611719611ecf565b5b600088013567ffffffffffffffff81111561173857611737611eca565b5b6117448a828b0161157d565b97505060206117558a828b016115ab565b96505060406117668a828b016115ab565b95505060606117778a828b01611510565b94505060806117888a828b0161153a565b93505060a06117998a828b016115ab565b92505060c06117aa8a828b016115ab565b91505092959891949750929550565b6000602082840312156117cf576117ce611ecf565b5b60006117dd848285016115ab565b91505092915050565b6000602082840312156117fc576117fb611ecf565b5b600061180a848285016115c0565b91505092915050565b61181c81611d08565b82525050565b61182b81611d1a565b82525050565b61183a81611d26565b82525050565b600061184b82611ce1565b6118558185611cec565b9350611865818560208601611d8b565b61186e81611ed4565b840191505092915050565b600061188482611ce1565b61188e8185611cfd565b935061189e818560208601611d8b565b80840191505092915050565b60006118b7601283611cec565b91506118c282611ee5565b602082019050919050565b60006118da602783611cec565b91506118e582611f0e565b604082019050919050565b60006118fd603183611cec565b915061190882611f5d565b604082019050919050565b6000611920603283611cec565b915061192b82611fac565b604082019050919050565b6000611943602283611cec565b915061194e82611ffb565b604082019050919050565b6000611966602483611cec565b91506119718261204a565b604082019050919050565b6000611989602783611cec565b915061199482612099565b604082019050919050565b60006119ac602783611cec565b91506119b7826120e8565b604082019050919050565b6119cb81611d72565b82525050565b60006119dd8284611879565b915081905092915050565b60006020820190506119fd6000830184611813565b92915050565b6000606082019050611a186000830186611813565b611a256020830185611813565b611a3260408301846119c2565b949350505050565b6000604082019050611a4f6000830185611813565b611a5c60208301846119c2565b9392505050565b600060e082019050611a78600083018a611822565b611a8560208301896119c2565b611a9260408301886119c2565b611a9f6060830187611813565b611aac6080830186611822565b611ab960a08301856119c2565b611ac660c08301846119c2565b98975050505050505050565b6000602082019050611ae76000830184611831565b92915050565b60006020820190508181036000830152611b078184611840565b905092915050565b60006040820190508181036000830152611b298185611840565b9050611b386020830184611813565b9392505050565b60006020820190508181036000830152611b58816118aa565b9050919050565b60006020820190508181036000830152611b78816118cd565b9050919050565b60006020820190508181036000830152611b98816118f0565b9050919050565b60006020820190508181036000830152611bb881611913565b9050919050565b60006020820190508181036000830152611bd881611936565b9050919050565b60006020820190508181036000830152611bf881611959565b9050919050565b60006020820190508181036000830152611c188161197c565b9050919050565b60006020820190508181036000830152611c388161199f565b9050919050565b6000602082019050611c5460008301846119c2565b92915050565b6000611c64611c75565b9050611c708282611de8565b919050565b6000604051905090565b600067ffffffffffffffff821115611c9a57611c99611e91565b5b611ca382611ed4565b9050602081019050919050565b600067ffffffffffffffff821115611ccb57611cca611e91565b5b611cd482611ed4565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000611d1382611d52565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015611da9578082015181840152602081019050611d8e565b83811115611db8576000848401525b50505050565b6000611dc982611d72565b91506000821415611ddd57611ddc611e62565b5b600182039050919050565b611df182611ed4565b810181811067ffffffffffffffff82111715611e1057611e0f611e91565b5b80604052505050565b6000611e2482611d72565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611e5757611e56611e62565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f636f6e7472616374206973207061757365640000000000000000000000000000600082015250565b7f636f6e7472616374206973206e6f7420746865206f776e6572206f662074686960008201527f7320746f6b656e00000000000000000000000000000000000000000000000000602082015250565b7f796f75206d757374206265207468652073686f70206d616e6167657220746f2060008201527f75736520746869732066756e6374696f6e000000000000000000000000000000602082015250565b7f7468652073686f7020636f6e747261637420646f6573206e6f74206f776e206160008201527f6e79206f6620746865736520746f6b656e730000000000000000000000000000602082015250565b7f746865726520617265206e6f206d6f726520746f6b656e7320617661696c616260008201527f6c65000000000000000000000000000000000000000000000000000000000000602082015250565b7f636f6e747261637420697320736f6c64206f7574206f6620746865736520746f60008201527f6b656e7300000000000000000000000000000000000000000000000000000000602082015250565b7f612070726f647563742077697468207468697320736c756720646f6573206e6f60008201527f7420657869737400000000000000000000000000000000000000000000000000602082015250565b7f612070726f647563742077697468207468697320736c756720616c726561647960008201527f2065786973747300000000000000000000000000000000000000000000000000602082015250565b61214081611d08565b811461214b57600080fd5b50565b61215781611d1a565b811461216257600080fd5b50565b61216e81611d72565b811461217957600080fd5b5056fea26469706673582212204b49d5f7f7a3f9312f274a740f72da5291410acbbae8365eee54537b2831d44564736f6c63430008070033
Deployed Bytecode
0x6080604052600436106100915760003560e01c80633f4ba83a116100595780633f4ba83a1461016a57806372139d9a146101815780638456cb59146101aa578063b75dda7b146101c1578063eff469be1461020457610091565b806302298b9214610096578063144fa6d7146100bf578063150b7a02146100e857806319f92926146101255780632e1a7d4d14610141575b600080fd5b3480156100a257600080fd5b506100bd60048036038101906100b891906115d5565b61022d565b005b3480156100cb57600080fd5b506100e660048036038101906100e191906115d5565b610357565b005b3480156100f457600080fd5b5061010f600480360381019061010a919061162f565b610480565b60405161011c9190611ad2565b60405180910390f35b61013f600480360381019061013a91906116b2565b610494565b005b34801561014d57600080fd5b50610168600480360381019061016391906117b9565b610a2c565b005b34801561017657600080fd5b5061017f610ba2565b005b34801561018d57600080fd5b506101a860048036038101906101a391906116b2565b610c4f565b005b3480156101b657600080fd5b506101bf610dff565b005b3480156101cd57600080fd5b506101e860048036038101906101e391906116b2565b610eac565b6040516101fb9796959493929190611a63565b60405180910390f35b34801561021057600080fd5b5061022b600480360381019061022691906116fb565b610f3e565b005b60001515600260149054906101000a900460ff16151514610283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161027a90611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610313576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030a90611b7f565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60001515600260149054906101000a900460ff161515146103ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a490611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461043d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043490611b7f565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600063150b7a0260e01b9050949350505050565b60001515600260149054906101000a900460ff161515146104ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e190611b3f565b60405180910390fd5b60006001826040516104fc91906119d1565b90815260200160405180910390206040518060e00160405290816000820160009054906101000a900460ff1615151515815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016003820160149054906101000a900460ff16151515158152602001600482015481526020016005820154815250509050600115158160000151151514610616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060d90611bff565b60405180910390fd5b600081606001519050600082608001511561067e5760008360c0015111610672576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066990611bbf565b60405180910390fd5b8260a001519050610686565b826040015190505b3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016106d69190611c3f565b602060405180830381600087803b1580156106f057600080fd5b505af1158015610704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107289190611602565b73ffffffffffffffffffffffffffffffffffffffff161461077e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077590611bdf565b60405180910390fd5b8260800151156107b5578260a001805180919061079a90611e19565b815250508260c00180518091906107b090611dbe565b815250505b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333086602001516040518463ffffffff1660e01b815260040161081693929190611a03565b600060405180830381600087803b15801561083057600080fd5b505af1158015610844573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3033846040518463ffffffff1660e01b815260040161088593929190611a03565b600060405180830381600087803b15801561089f57600080fd5b505af11580156108b3573d6000803e3d6000fd5b505050506040518060e001604052806001151581526020018460200151815260200184604001518152602001846060015173ffffffffffffffffffffffffffffffffffffffff1681526020018460800151151581526020018460a0015181526020018460c0015181525060018560405161092d91906119d1565b908152602001604051809103902060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160030160146101000a81548160ff02191690831515021790555060a0820151816004015560c082015181600501559050507f369aa284845525149c49a0e06e856964499312c85d2c92eaae6a131d2ef86ed78433604051610a1e929190611b0f565b60405180910390a150505050565b60001515600260149054906101000a900460ff16151514610a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7990611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0990611b7f565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610b6d929190611a3a565b600060405180830381600087803b158015610b8757600080fd5b505af1158015610b9b573d6000803e3d6000fd5b5050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2990611b7f565b60405180910390fd5b6000600260146101000a81548160ff021916908315150217905550565b60001515600260149054906101000a900460ff16151514610ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9c90611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2c90611b7f565b60405180910390fd5b600181604051610d4591906119d1565b9081526020016040518091039020600080820160006101000a81549060ff0219169055600182016000905560028201600090556003820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556003820160146101000a81549060ff02191690556004820160009055600582016000905550507f959ad8b1befbeb936d9a91bf2f741a2f7a8fcf9a0cb38ece37ca3e9814041eab81604051610df49190611aed565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8690611b7f565b60405180910390fd5b6001600260146101000a81548160ff021916908315150217905550565b6001818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900460ff16908060010154908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060030160149054906101000a900460ff16908060040154908060050154905087565b60001515600260149054906101000a900460ff16151514610f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8b90611b3f565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b90611b7f565b60405180910390fd5b600060018860405161103691906119d1565b90815260200160405180910390206040518060e00160405290816000820160009054906101000a900460ff1615151515815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016003820160149054906101000a900460ff16151515158152602001600482015481526020016005820154815250509050600015158160000151151514611150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114790611c1f565b60405180910390fd5b600085905084611257573073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e896040518263ffffffff1660e01b81526004016111aa9190611c3f565b602060405180830381600087803b1580156111c457600080fd5b505af11580156111d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fc9190611602565b73ffffffffffffffffffffffffffffffffffffffff1614611252576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124990611b5f565b60405180910390fd5b61132c565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161129291906119e8565b602060405180830381600087803b1580156112ac57600080fd5b505af11580156112c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e491906117e6565b9050600081141561132a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132190611b9f565b60405180910390fd5b505b6040518060e001604052806001151581526020018981526020018881526020018773ffffffffffffffffffffffffffffffffffffffff16815260200186151581526020018581526020018481525060018a60405161138a91906119d1565b908152602001604051809103902060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160030160146101000a81548160ff02191690831515021790555060a0820151816004015560c082015181600501559050507f56c6fc0de15041f466a39cc92fa6962e350ac13f1d4249bc6e25ef5b82ca8bc5896040516114799190611aed565b60405180910390a1505050505050505050565b600061149f61149a84611c7f565b611c5a565b9050828152602081018484840111156114bb576114ba611ec5565b5b6114c6848285611d7c565b509392505050565b60006114e16114dc84611cb0565b611c5a565b9050828152602081018484840111156114fd576114fc611ec5565b5b611508848285611d7c565b509392505050565b60008135905061151f81612137565b92915050565b60008151905061153481612137565b92915050565b6000813590506115498161214e565b92915050565b600082601f83011261156457611563611ec0565b5b813561157484826020860161148c565b91505092915050565b600082601f83011261159257611591611ec0565b5b81356115a28482602086016114ce565b91505092915050565b6000813590506115ba81612165565b92915050565b6000815190506115cf81612165565b92915050565b6000602082840312156115eb576115ea611ecf565b5b60006115f984828501611510565b91505092915050565b60006020828403121561161857611617611ecf565b5b600061162684828501611525565b91505092915050565b6000806000806080858703121561164957611648611ecf565b5b600061165787828801611510565b945050602061166887828801611510565b9350506040611679878288016115ab565b925050606085013567ffffffffffffffff81111561169a57611699611eca565b5b6116a68782880161154f565b91505092959194509250565b6000602082840312156116c8576116c7611ecf565b5b600082013567ffffffffffffffff8111156116e6576116e5611eca565b5b6116f28482850161157d565b91505092915050565b600080600080600080600060e0888a03121561171a57611719611ecf565b5b600088013567ffffffffffffffff81111561173857611737611eca565b5b6117448a828b0161157d565b97505060206117558a828b016115ab565b96505060406117668a828b016115ab565b95505060606117778a828b01611510565b94505060806117888a828b0161153a565b93505060a06117998a828b016115ab565b92505060c06117aa8a828b016115ab565b91505092959891949750929550565b6000602082840312156117cf576117ce611ecf565b5b60006117dd848285016115ab565b91505092915050565b6000602082840312156117fc576117fb611ecf565b5b600061180a848285016115c0565b91505092915050565b61181c81611d08565b82525050565b61182b81611d1a565b82525050565b61183a81611d26565b82525050565b600061184b82611ce1565b6118558185611cec565b9350611865818560208601611d8b565b61186e81611ed4565b840191505092915050565b600061188482611ce1565b61188e8185611cfd565b935061189e818560208601611d8b565b80840191505092915050565b60006118b7601283611cec565b91506118c282611ee5565b602082019050919050565b60006118da602783611cec565b91506118e582611f0e565b604082019050919050565b60006118fd603183611cec565b915061190882611f5d565b604082019050919050565b6000611920603283611cec565b915061192b82611fac565b604082019050919050565b6000611943602283611cec565b915061194e82611ffb565b604082019050919050565b6000611966602483611cec565b91506119718261204a565b604082019050919050565b6000611989602783611cec565b915061199482612099565b604082019050919050565b60006119ac602783611cec565b91506119b7826120e8565b604082019050919050565b6119cb81611d72565b82525050565b60006119dd8284611879565b915081905092915050565b60006020820190506119fd6000830184611813565b92915050565b6000606082019050611a186000830186611813565b611a256020830185611813565b611a3260408301846119c2565b949350505050565b6000604082019050611a4f6000830185611813565b611a5c60208301846119c2565b9392505050565b600060e082019050611a78600083018a611822565b611a8560208301896119c2565b611a9260408301886119c2565b611a9f6060830187611813565b611aac6080830186611822565b611ab960a08301856119c2565b611ac660c08301846119c2565b98975050505050505050565b6000602082019050611ae76000830184611831565b92915050565b60006020820190508181036000830152611b078184611840565b905092915050565b60006040820190508181036000830152611b298185611840565b9050611b386020830184611813565b9392505050565b60006020820190508181036000830152611b58816118aa565b9050919050565b60006020820190508181036000830152611b78816118cd565b9050919050565b60006020820190508181036000830152611b98816118f0565b9050919050565b60006020820190508181036000830152611bb881611913565b9050919050565b60006020820190508181036000830152611bd881611936565b9050919050565b60006020820190508181036000830152611bf881611959565b9050919050565b60006020820190508181036000830152611c188161197c565b9050919050565b60006020820190508181036000830152611c388161199f565b9050919050565b6000602082019050611c5460008301846119c2565b92915050565b6000611c64611c75565b9050611c708282611de8565b919050565b6000604051905090565b600067ffffffffffffffff821115611c9a57611c99611e91565b5b611ca382611ed4565b9050602081019050919050565b600067ffffffffffffffff821115611ccb57611cca611e91565b5b611cd482611ed4565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b6000611d1382611d52565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015611da9578082015181840152602081019050611d8e565b83811115611db8576000848401525b50505050565b6000611dc982611d72565b91506000821415611ddd57611ddc611e62565b5b600182039050919050565b611df182611ed4565b810181811067ffffffffffffffff82111715611e1057611e0f611e91565b5b80604052505050565b6000611e2482611d72565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611e5757611e56611e62565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f636f6e7472616374206973207061757365640000000000000000000000000000600082015250565b7f636f6e7472616374206973206e6f7420746865206f776e6572206f662074686960008201527f7320746f6b656e00000000000000000000000000000000000000000000000000602082015250565b7f796f75206d757374206265207468652073686f70206d616e6167657220746f2060008201527f75736520746869732066756e6374696f6e000000000000000000000000000000602082015250565b7f7468652073686f7020636f6e747261637420646f6573206e6f74206f776e206160008201527f6e79206f6620746865736520746f6b656e730000000000000000000000000000602082015250565b7f746865726520617265206e6f206d6f726520746f6b656e7320617661696c616260008201527f6c65000000000000000000000000000000000000000000000000000000000000602082015250565b7f636f6e747261637420697320736f6c64206f7574206f6620746865736520746f60008201527f6b656e7300000000000000000000000000000000000000000000000000000000602082015250565b7f612070726f647563742077697468207468697320736c756720646f6573206e6f60008201527f7420657869737400000000000000000000000000000000000000000000000000602082015250565b7f612070726f647563742077697468207468697320736c756720616c726561647960008201527f2065786973747300000000000000000000000000000000000000000000000000602082015250565b61214081611d08565b811461214b57600080fd5b50565b61215781611d1a565b811461216257600080fd5b50565b61216e81611d72565b811461217957600080fd5b5056fea26469706673582212204b49d5f7f7a3f9312f274a740f72da5291410acbbae8365eee54537b2831d44564736f6c63430008070033
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.