More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 80 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Bulk Withdraw Nf... | 19215537 | 208 days ago | IN | 0 ETH | 0.00488814 | ||||
Bulk Withdraw Nf... | 19197739 | 211 days ago | IN | 0 ETH | 0.00971107 | ||||
Bulk Withdraw Nf... | 19101507 | 224 days ago | IN | 0 ETH | 0.00142635 | ||||
Bulk Withdraw Nf... | 19034407 | 234 days ago | IN | 0 ETH | 0.00790431 | ||||
Grant Role | 18798213 | 267 days ago | IN | 0 ETH | 0.00183783 | ||||
Bulk Withdraw Nf... | 18791208 | 268 days ago | IN | 0 ETH | 0.01808413 | ||||
Bulk Withdraw Nf... | 16861783 | 539 days ago | IN | 0 ETH | 0.06202977 | ||||
Bulk Withdraw Nf... | 16830800 | 543 days ago | IN | 0 ETH | 0.00353829 | ||||
Set Contracts | 16830435 | 543 days ago | IN | 0 ETH | 0.00122447 | ||||
Bulk Withdraw Nf... | 16677630 | 565 days ago | IN | 0 ETH | 0.00929148 | ||||
Bulk Withdraw Nf... | 16619348 | 573 days ago | IN | 0 ETH | 0.00256557 | ||||
Bulk Withdraw Nf... | 16562099 | 581 days ago | IN | 0 ETH | 0.01164435 | ||||
Bulk Withdraw Nf... | 16420027 | 601 days ago | IN | 0 ETH | 0.00894714 | ||||
Bulk Withdraw Nf... | 16417865 | 601 days ago | IN | 0 ETH | 0.00233154 | ||||
Bulk Withdraw Nf... | 16341045 | 612 days ago | IN | 0 ETH | 0.00286045 | ||||
Bulk Withdraw Nf... | 16319644 | 615 days ago | IN | 0 ETH | 0.00224242 | ||||
Bulk Withdraw Nf... | 16307647 | 616 days ago | IN | 0 ETH | 0.0025575 | ||||
Bulk Withdraw Nf... | 16253348 | 624 days ago | IN | 0 ETH | 0.00137633 | ||||
Bulk Withdraw Nf... | 16199020 | 631 days ago | IN | 0 ETH | 0.00258977 | ||||
Deposit | 15427530 | 742 days ago | IN | 0.00025 ETH | 0.00060414 | ||||
Bulk Withdraw Nf... | 15396424 | 747 days ago | IN | 0 ETH | 0.00239243 | ||||
Bulk Withdraw Nf... | 15337867 | 756 days ago | IN | 0 ETH | 0.00224148 | ||||
Bulk Withdraw Nf... | 15110423 | 791 days ago | IN | 0 ETH | 0.00380435 | ||||
Deposit | 15023921 | 806 days ago | IN | 0.0025 ETH | 0.02280509 | ||||
Bulk Withdraw Nf... | 15016593 | 807 days ago | IN | 0 ETH | 0.00517013 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14764712 | 849 days ago | 0.01975 ETH |
Loading...
Loading
Contract Name:
SecondaryNftBridgePool
Compiler Version
v0.8.11+commit.d7f03943
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.3; import "./IRainiCard.sol"; import "../tokens/IRainiCustomNFT.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; interface INftStakingPool { function getTokenStaminaTotal(uint256 _tokenId, address _nftContractAddress) external view returns (uint32 stamina); function setTokenStaminaTotal(uint32 _stamina, uint256 _tokenId, address _nftContractAddress) external; } interface INftBridgePool { function withdrawNft(uint256 _contractId, address _recipient, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number, uint256 _requestsId, uint32 _stamina, bytes calldata _state) external; function bulkWithdrawNfts(uint232[] memory _contractId, address[] memory _recipient, uint256[] memory _cardId, uint256[] memory _cardLevel, uint256[] memory _amount, bytes1[] memory _mintedContractChar, uint256[] memory _number, uint256[] memory _requestsId, uint32[] memory _stamina, bytes[] calldata _state) external; function findHeldToken(uint256 _contractId, uint256 _cardId, uint256 _cardLevel, bytes1 _mintedContractChar, uint256 _number) external view returns (uint256); } contract SecondaryNftBridgePool is IERC721Receiver, IERC1155Receiver, AccessControl, ReentrancyGuard { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); event CardsDeposited( uint256 nftContractId, address indexed spender, address recipient, uint256 amount, uint256 requestId, uint128 cardId, uint32 level, uint32 number, uint32 stamina, bytes1 mintedContractChar, bytes state ); event EthWithdrawn(uint256 amount); event AutoWithdrawFeeSet(bool autoWithdraw); event ConfigSet(address cardToken, address nftV1Token, address nftV2Token); event TreasuryAddressSet(address treasuryAddress); event FeesSet(uint256 card, uint256 nftV1, uint256 nftV2); event ItemFeeSet(uint256 card, uint256 nftV1, uint256 nftV2); event CardsWithdrawn(uint256 nftContractId, address indexed owner, uint256 requestId, uint256 cardId, uint256 amount); mapping(uint256 => address) public nftContracts; mapping(uint256 => bool) public hasSubcontracts; // contractId => cardId => bool mapping(uint256 => mapping(uint256 => bool)) public cardDisabled; // _contractId => _cardId => _cardLevel => _mintedContractChar => uint256 _number mapping(uint256 => mapping(uint256 => mapping(uint256 => mapping(bytes1 => mapping(uint256 => uint256))))) public heldTokens; uint256 public baseFee; uint256 public stateUpdateFee; uint256 public staminaUpdateFee; uint256 public gasPrice; mapping(uint256 => uint256) public itemFee; uint256 private requestId = 1000000000000; bool private autoWithdrawFee; address private treasuryAddress; address public nftStakingPoolAddress; mapping(uint256 => bool) public requestWithdrawn; INftBridgePool public mainNftBridge; constructor(address _mainNftBridgeAddress) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); mainNftBridge = INftBridgePool(_mainNftBridgeAddress); } modifier onlyMinter() { require(hasRole(MINTER_ROLE, _msgSender()), "SNBP: not a minter"); _; } modifier onlyOwner() { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "SNBP: not an owner"); _; } function setFees(uint256 _baseFee, uint256 _stateUpdateFee, uint256 _staminaUpdateFee, uint256[] calldata _contractId, uint256[] calldata _itemFee) external onlyOwner { baseFee = _baseFee; stateUpdateFee = _stateUpdateFee; staminaUpdateFee = _staminaUpdateFee; for (uint256 i; i < _contractId.length; i++) { itemFee[_contractId[i]] = _itemFee[i]; } } function setGasPrice(uint256 _gasPrice) external { require(hasRole(MINTER_ROLE, _msgSender()) || hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'no access'); gasPrice = _gasPrice; } function setContracts(uint256[] calldata _contractId, address[] calldata _contractAddress, bool[] calldata _hasSubcontracts) external onlyOwner { for (uint256 i; i < _contractId.length; i++) { nftContracts[_contractId[i]] = _contractAddress[i]; hasSubcontracts[_contractId[i]] = _hasSubcontracts[i]; } } function setDisabledCards(uint256[] calldata _contractId, uint256[] calldata _ids, bool[] calldata _disabled) external onlyOwner { for (uint256 i; i < _ids.length; i++) { cardDisabled[_contractId[i]][_ids[i]] = _disabled[i]; } } function setAutoWithdrawFee(bool _autoWithdrawFee) external onlyOwner { autoWithdrawFee = _autoWithdrawFee; emit AutoWithdrawFeeSet(autoWithdrawFee); } function setTreasuryAddress(address _treasuryAddress) external onlyOwner { treasuryAddress = _treasuryAddress; emit TreasuryAddressSet(_treasuryAddress); } function setNftStakingPoolAddress(address _nftStakingPoolAddress) external onlyOwner { nftStakingPoolAddress = (_nftStakingPoolAddress); } function getSubContractTokenState(address _token, uint256 _cardId, uint256 _tokenId) internal view returns(bytes memory) { (,,,,,,,address subContract) = IRainiCard(_token).cards(_cardId); if (subContract != address(0)) { return IRainiCustomNFT(subContract).getTokenState(_tokenId); } return ''; } function handleFeesWithdraw(uint256 _fee, uint256 _refund) internal { if (_refund > 0) { (bool refundSuccess, ) = _msgSender().call{ value: _refund }(""); require(refundSuccess, "SNBP: refund transfer failed"); } if (autoWithdrawFee) { (bool withdrawSuccess, ) = treasuryAddress.call{ value: _fee }(""); require(withdrawSuccess, "SNBP: withdraw transfer failed"); } } function updateSubContractState(address _token, uint256 _cardId, uint256 _tokenId, bytes calldata state) internal { if (state.length == 0) return; (,,,,,,,address subContract) = IRainiCard(_token).cards(_cardId); uint256[] memory ids = new uint256[](1); bytes[] memory states = new bytes[](1); ids[0] = _tokenId; states[0] = state; if (subContract != address(0)) { IRainiCustomNFT(subContract).setTokenStates(ids, states); } } function updateStamina(address _token, uint256 _tokenId, uint32 _stamina) internal { if (_stamina == 0 || nftStakingPoolAddress == address(0)) return; INftStakingPool(nftStakingPoolAddress).setTokenStaminaTotal(_stamina, _tokenId, _token); } struct DepositVars { uint256 fee; uint256 requestId; } function deposit(address _recipient, uint256[] calldata _contractId, uint256[] calldata _tokenIds, uint256[] calldata _amounts) external payable nonReentrant { require(_tokenIds.length == _amounts.length, "SNBP: input arrays not equal"); DepositVars memory _locals = DepositVars( baseFee, requestId ); for (uint256 i; i < _tokenIds.length; i++) { IRainiCard nftContract = IRainiCard(nftContracts[_contractId[i]]); IRainiCard.TokenVars memory tokenVars = IRainiCard.TokenVars(0,0,0,0); (tokenVars.cardId, tokenVars.level, tokenVars.number, tokenVars.mintedContractChar) = nftContract.tokenVars(_tokenIds[i]); require(!cardDisabled[_contractId[i]][tokenVars.cardId], "SNBP: bridging this card disabled"); nftContract.safeTransferFrom(_msgSender(), address(this), _tokenIds[i], _amounts[i], ""); _setHeldToken(_tokenIds[i], _contractId[i], tokenVars.cardId, tokenVars.level, tokenVars.mintedContractChar, tokenVars.number); _locals.requestId++; _locals.fee += itemFee[_contractId[i]]; bytes memory state = ""; if (tokenVars.number > 0 && hasSubcontracts[_contractId[i]]) { state = getSubContractTokenState(address(nftContract), tokenVars.cardId, _tokenIds[i]); if (state.length > 0) { _locals.fee += stateUpdateFee; } } uint32 stamina = 0; if (nftStakingPoolAddress != address(0)) { stamina = INftStakingPool(nftStakingPoolAddress).getTokenStaminaTotal(_tokenIds[i], address(nftContract)); if (stamina != 0) { _locals.fee += staminaUpdateFee; } } emit CardsDeposited( _contractId[i], _msgSender(), _recipient, _amounts[i], _locals.requestId, tokenVars.cardId, tokenVars.level, tokenVars.number, stamina, tokenVars.mintedContractChar, state ); } _locals.fee *= gasPrice; require(msg.value >= _locals.fee, "SNBP: not enough funds"); handleFeesWithdraw(_locals.fee, msg.value - _locals.fee); requestId = _locals.requestId; } function getDepositFee(address _recipient, uint256[] calldata _contractId, uint256[] calldata _tokenIds, uint256[] calldata _amounts) public view returns (uint256 fee) { require(_tokenIds.length == _amounts.length, "SNBP: input arrays not equal"); DepositVars memory _locals = DepositVars( baseFee, requestId ); for (uint256 i; i < _tokenIds.length; i++) { IRainiCard nftContract = IRainiCard(nftContracts[_contractId[i]]); IRainiCard.TokenVars memory tokenVars = IRainiCard.TokenVars(0,0,0,0); (tokenVars.cardId, tokenVars.level, tokenVars.number, tokenVars.mintedContractChar) = nftContract.tokenVars(_tokenIds[i]); require(!cardDisabled[_contractId[i]][tokenVars.cardId], "SNBP: bridging this card disabled"); _locals.fee += itemFee[_contractId[i]]; bytes memory state = ""; if (tokenVars.number > 0 && hasSubcontracts[_contractId[i]]) { state = getSubContractTokenState(address(nftContract), tokenVars.cardId, _tokenIds[i]); if (state.length > 0) { _locals.fee += stateUpdateFee; } } uint32 stamina = 0; if (nftStakingPoolAddress != address(0)) { INftStakingPool(nftStakingPoolAddress).getTokenStaminaTotal(_tokenIds[i], address(nftContract)); if (stamina != 0) { _locals.fee += staminaUpdateFee; } } } _locals.fee *= gasPrice; return _locals.fee; } function _setHeldToken(uint256 tokenId, uint256 _contractId, uint256 _cardId, uint256 _cardLevel, bytes1 _mintedContractChar, uint256 _number) internal { if (_number == 0) { _mintedContractChar = bytes1(0); } if (heldTokens[_contractId][_cardId][_cardLevel][_mintedContractChar][_number] != tokenId) { heldTokens[_contractId][_cardId][_cardLevel][_mintedContractChar][_number] = tokenId; } } function setHeldToken(uint256 tokenId, uint256 _contractId, uint256 _cardId, uint256 _cardLevel, bytes1 _mintedContractChar, uint256 _number) external onlyMinter { _setHeldToken(tokenId, _contractId, _cardId, _cardLevel, _mintedContractChar, _number); } function findHeldToken(uint256 _contractId, uint256 _cardId, uint256 _cardLevel, bytes1 _mintedContractChar, uint256 _number) public view returns (uint256) { if (_number == 0) { _mintedContractChar = bytes1(0); } return heldTokens[_contractId][_cardId][_cardLevel][_mintedContractChar][_number]; } struct WithdrawNftVars { uint256 tokenId; uint256 amount; uint256 leftAmount; } function withdrawNft(uint256 _contractId, address _recipient, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number, uint256 _requestsId, uint32 _stamina, bytes calldata _state) public onlyMinter { if (requestWithdrawn[_requestsId]) { return; } requestWithdrawn[_requestsId] = true; WithdrawNftVars memory _locals = WithdrawNftVars(0, 0, 0); IRainiCard nftContract = IRainiCard(nftContracts[_contractId]); _locals.tokenId = findHeldToken(_contractId, _cardId, _cardLevel, _mintedContractChar, _number); _locals.amount = 0; if (_locals.tokenId > 0) { _locals.amount = nftContract.balanceOf(address(this), _locals.tokenId); } _locals.leftAmount = _amount; if (_locals.amount > 0) { if (_locals.amount > _amount) { _locals.leftAmount = 0; nftContract.safeTransferFrom(address(this), _recipient, _locals.tokenId, _amount, bytes('')); } else { _locals.leftAmount -= _locals.amount; nftContract.safeTransferFrom(address(this), _recipient, _locals.tokenId, _locals.amount, bytes('')); _setHeldToken(0, _contractId, _cardId, _cardLevel, _mintedContractChar, _number); } updateStamina(address(nftContract), _locals.tokenId, _stamina); updateSubContractState(address(nftContract), _cardId, _locals.tokenId, _state); } if (_locals.leftAmount > 0) { if (hasSubcontracts[_contractId]) { nftContract.mint(_recipient, _cardId, _cardLevel, _locals.leftAmount, _mintedContractChar, _number, new uint256[](0)); updateSubContractState(address(nftContract), _cardId, nftContract.maxTokenId(), _state); } else { nftContract.mint(_recipient, _cardId, _cardLevel, _locals.leftAmount, _mintedContractChar, _number); } updateStamina(address(nftContract), nftContract.maxTokenId(), _stamina); } emit CardsWithdrawn(_contractId, _recipient, _requestsId, _cardId, _amount); } struct BulkWithdrawNftsVars { uint256 tokenId; uint256 mainBridgeCount; } function bulkWithdrawNfts(uint232[] memory _contractId, address[] memory _recipient, uint256[] memory _cardId, uint256[] memory _cardLevel, uint256[] memory _amount, bytes1[] memory _mintedContractChar, uint256[] memory _number, uint256[] memory _requestsId, uint32[] memory _stamina, bytes[] calldata _state) external onlyMinter { BulkWithdrawNftsVars memory _locals = BulkWithdrawNftsVars(0, 0); for (uint256 i; i < _contractId.length; i++) { _locals.tokenId = mainNftBridge.findHeldToken(_contractId[i], _cardId[i], _cardLevel[i], _mintedContractChar[i], _number[i]); if (_locals.tokenId > 0) { IRainiCard nftContract = IRainiCard(nftContracts[_contractId[i]]); _locals.mainBridgeCount = nftContract.balanceOf(address(mainNftBridge), _locals.tokenId); } if (_locals.mainBridgeCount > 0) { if (_amount[i] < _locals.mainBridgeCount) { _locals.mainBridgeCount = _amount[i]; } mainNftBridge.withdrawNft(_contractId[i], _recipient[i], _cardId[i], _cardLevel[i], _locals.mainBridgeCount, _mintedContractChar[i], _number[i], _requestsId[i], _stamina[i], _state[i]); } if (_amount[i] > _locals.mainBridgeCount) { withdrawNft(_contractId[i], _recipient[i], _cardId[i], _cardLevel[i], _amount[i] - _locals.mainBridgeCount, _mintedContractChar[i], _number[i], _requestsId[i], _stamina[i], _state[i]); } if (!requestWithdrawn[_requestsId[i]]) { requestWithdrawn[_requestsId[i]] = true; } } } function withdrawEth(uint256 _amount) external onlyOwner { require(_amount <= address(this).balance, "SNBP: not enough balance"); (bool success, ) = _msgSender().call{ value: _amount }(""); require(success, "SNBP: transfer failed"); emit EthWithdrawn(_amount); } function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) { return this.onERC721Received.selector; } function onERC1155Received(address, address, uint256, uint256, bytes calldata) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived(address, address, uint256[] calldata, uint256[] calldata, bytes calldata) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; interface IRainiCustomNFT { function onTransfered( address from, address to, uint256 id, uint256 amount, bytes memory data ) external; function onMerged( uint256 _newTokenId, uint256[] memory _tokenId, address _nftContractAddress, uint256[] memory data ) external; function onMinted( address _to, uint256 _tokenId, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number, uint256[] memory _data ) external; function setTokenStates(uint256[] memory id, bytes[] memory state) external; function getTokenState(uint256 id) external view returns (bytes memory); function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; pragma solidity ^0.8.0; abstract contract IRainiCard is IERC1155 { struct TokenVars { uint128 cardId; uint32 level; uint32 number; bytes1 mintedContractChar; } struct Card { uint64 costInUnicorns; uint64 costInRainbows; uint16 maxMintsPerAddress; uint32 maxSupply; // number of base tokens mintable uint32 allocation; // number of base tokens mintable with points on this contract uint32 mintTimeStart; // the timestamp from which the card can be minted bool locked; address subContract; } mapping(uint256 => TokenVars) public tokenVars; mapping(uint256 => Card) public cards; uint256 public maxTokenId; function mint(address _to, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number, uint256[] memory _data) virtual external; function mint(address _to, uint256 _cardId, uint256 _cardLevel, uint256 _amount, bytes1 _mintedContractChar, uint256 _number) virtual external; function getTotalBalance(address _address) virtual external view returns (uint256[][] memory amounts); function getTotalBalance(address _address, uint256 _cardCount) virtual external view returns (uint256[][] memory amounts); function burn(address _owner, uint256 _tokenId, uint256 _amount) virtual external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// 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 (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); }
// 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 (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 v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_mainNftBridgeAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"autoWithdraw","type":"bool"}],"name":"AutoWithdrawFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"nftContractId","type":"uint256"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"cardId","type":"uint128"},{"indexed":false,"internalType":"uint32","name":"level","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"number","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"stamina","type":"uint32"},{"indexed":false,"internalType":"bytes1","name":"mintedContractChar","type":"bytes1"},{"indexed":false,"internalType":"bytes","name":"state","type":"bytes"}],"name":"CardsDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"nftContractId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cardId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CardsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"cardToken","type":"address"},{"indexed":false,"internalType":"address","name":"nftV1Token","type":"address"},{"indexed":false,"internalType":"address","name":"nftV2Token","type":"address"}],"name":"ConfigSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"card","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftV1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftV2","type":"uint256"}],"name":"FeesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"card","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftV1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftV2","type":"uint256"}],"name":"ItemFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasuryAddress","type":"address"}],"name":"TreasuryAddressSet","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint232[]","name":"_contractId","type":"uint232[]"},{"internalType":"address[]","name":"_recipient","type":"address[]"},{"internalType":"uint256[]","name":"_cardId","type":"uint256[]"},{"internalType":"uint256[]","name":"_cardLevel","type":"uint256[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"},{"internalType":"bytes1[]","name":"_mintedContractChar","type":"bytes1[]"},{"internalType":"uint256[]","name":"_number","type":"uint256[]"},{"internalType":"uint256[]","name":"_requestsId","type":"uint256[]"},{"internalType":"uint32[]","name":"_stamina","type":"uint32[]"},{"internalType":"bytes[]","name":"_state","type":"bytes[]"}],"name":"bulkWithdrawNfts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256[]","name":"_contractId","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_contractId","type":"uint256"},{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_cardLevel","type":"uint256"},{"internalType":"bytes1","name":"_mintedContractChar","type":"bytes1"},{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"findHeldToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gasPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256[]","name":"_contractId","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"getDepositFee","outputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hasSubcontracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes1","name":"","type":"bytes1"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"heldTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"itemFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mainNftBridge","outputs":[{"internalType":"contract INftBridgePool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftContracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftStakingPoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[{"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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"requestWithdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_autoWithdrawFee","type":"bool"}],"name":"setAutoWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_contractId","type":"uint256[]"},{"internalType":"address[]","name":"_contractAddress","type":"address[]"},{"internalType":"bool[]","name":"_hasSubcontracts","type":"bool[]"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_contractId","type":"uint256[]"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"bool[]","name":"_disabled","type":"bool[]"}],"name":"setDisabledCards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_baseFee","type":"uint256"},{"internalType":"uint256","name":"_stateUpdateFee","type":"uint256"},{"internalType":"uint256","name":"_staminaUpdateFee","type":"uint256"},{"internalType":"uint256[]","name":"_contractId","type":"uint256[]"},{"internalType":"uint256[]","name":"_itemFee","type":"uint256[]"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gasPrice","type":"uint256"}],"name":"setGasPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"_contractId","type":"uint256"},{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_cardLevel","type":"uint256"},{"internalType":"bytes1","name":"_mintedContractChar","type":"bytes1"},{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"setHeldToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftStakingPoolAddress","type":"address"}],"name":"setNftStakingPoolAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddress","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staminaUpdateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stateUpdateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_contractId","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_cardLevel","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes1","name":"_mintedContractChar","type":"bytes1"},{"internalType":"uint256","name":"_number","type":"uint256"},{"internalType":"uint256","name":"_requestsId","type":"uint256"},{"internalType":"uint32","name":"_stamina","type":"uint32"},{"internalType":"bytes","name":"_state","type":"bytes"}],"name":"withdrawNft","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405264e8d4a51000600b553480156200001a57600080fd5b5060405162003fe238038062003fe28339810160408190526200003d9162000150565b600180556200004e600033620000a0565b6200007a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000a0565b600f80546001600160a01b0319166001600160a01b039290921691909117905562000182565b620000ac8282620000b0565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000ac576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200010c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000602082840312156200016357600080fd5b81516001600160a01b03811681146200017b57600080fd5b9392505050565b613e5080620001926000396000f3fe60806040526004361061021a5760003560e01c80636ef25c3a11610123578063c311d049116100ab578063d91fb4cf1161006f578063d91fb4cf146106f5578063e674b41414610722578063f23a6e6114610738578063fcc9c4e214610765578063fe173b971461078557600080fd5b8063c311d04914610653578063cfcfd64614610673578063d539139314610693578063d547741f146106b5578063d55c2f49146106d557600080fd5b8063a6b1c943116100f2578063a6b1c94314610583578063a84cdea114610599578063bc197c81146105c9578063bcf0a919146105f8578063bf1fe4201461063357600080fd5b80636ef25c3a1461051857806391d148541461052e578063a121fe431461054e578063a217fddf1461056e57600080fd5b80632f2ff15d116101a657806342c64e481161017557806342c64e48146104785780634b7a5db71461049857806355139cb5146104b85780636605bfda146104d85780636bf29405146104f857600080fd5b80632f2ff15d146103b95780632fcbb5dd146103d95780633455086b1461042857806336568abe1461045857600080fd5b8063150b7a02116101ed578063150b7a02146102e25780631b2c8723146103265780631d9083f31461033b5780631ee3ed691461035b578063248a9ca31461037b57600080fd5b806301ffc9a71461021f5780630bb4d82a146102545780630c024776146102a25780630f0d5247146102c2575b600080fd5b34801561022b57600080fd5b5061023f61023a366004612c89565b61079b565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061028a61026f366004612cb3565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161024b565b3480156102ae57600080fd5b50600d5461028a906001600160a01b031681565b3480156102ce57600080fd5b50600f5461028a906001600160a01b031681565b3480156102ee57600080fd5b5061030d6102fd366004612d51565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161024b565b610339610334366004612e4a565b6107d2565b005b34801561034757600080fd5b50610339610356366004612ef6565b610e32565b34801561036757600080fd5b50610339610376366004612f13565b610e7b565b34801561038757600080fd5b506103ab610396366004612cb3565b60009081526020819052604090206001015490565b60405190815260200161024b565b3480156103c557600080fd5b506103396103d4366004612fac565b610f5b565b3480156103e557600080fd5b506103ab6103f4366004612ff2565b6005602090815260009586526040808720825294865284862081529285528385208352908452828420909152825290205481565b34801561043457600080fd5b5061023f610443366004612cb3565b600e6020526000908152604090205460ff1681565b34801561046457600080fd5b50610339610473366004612fac565b610f86565b34801561048457600080fd5b50610339610493366004613273565b611004565b3480156104a457600080fd5b506103396104b3366004613410565b6115ec565b3480156104c457600080fd5b506103396104d33660046134a6565b611636565b3480156104e457600080fd5b506103396104f3366004612ef6565b611b71565b34801561050457600080fd5b506103ab610513366004612e4a565b611bf5565b34801561052457600080fd5b506103ab60065481565b34801561053a57600080fd5b5061023f610549366004612fac565b611fc2565b34801561055a57600080fd5b506103ab610569366004612ff2565b611feb565b34801561057a57600080fd5b506103ab600081565b34801561058f57600080fd5b506103ab60085481565b3480156105a557600080fd5b5061023f6105b4366004612cb3565b60036020526000908152604090205460ff1681565b3480156105d557600080fd5b5061030d6105e4366004613560565b63bc197c8160e01b98975050505050505050565b34801561060457600080fd5b5061023f61061336600461361e565b600460209081526000928352604080842090915290825290205460ff1681565b34801561063f57600080fd5b5061033961064e366004612cb3565b61203b565b34801561065f57600080fd5b5061033961066e366004612cb3565b6120a1565b34801561067f57600080fd5b5061033961068e366004613640565b6121df565b34801561069f57600080fd5b506103ab600080516020613dfb83398151915281565b3480156106c157600080fd5b506103396106d0366004612fac565b612285565b3480156106e157600080fd5b506103396106f03660046136ba565b6122ab565b34801561070157600080fd5b506103ab610710366004612cb3565b600a6020526000908152604090205481565b34801561072e57600080fd5b506103ab60075481565b34801561074457600080fd5b5061030d6107533660046136d7565b63f23a6e6160e01b9695505050505050565b34801561077157600080fd5b50610339610780366004612f13565b612319565b34801561079157600080fd5b506103ab60095481565b60006001600160e01b03198216637965db0b60e01b14806107cc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6002600154141561082a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015582811461087e5760405162461bcd60e51b815260206004820152601c60248201527f534e42503a20696e70757420617272617973206e6f7420657175616c000000006044820152606401610821565b604080518082019091526006548152600b54602082015260005b84811015610da9576000600260008a8a858181106108b8576108b8613740565b60209081029290920135835250818101929092526040908101600090812054825160808101845282815293840182905291830181905260608301526001600160a01b03169150816301870f0289898681811061091657610916613740565b905060200201356040518263ffffffff1660e01b815260040161093b91815260200190565b608060405180830381865afa158015610958573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097c9190613756565b6001600160f81b031916606085015263ffffffff90811660408501521660208301526001600160801b03168152600460008b8b868181106109bf576109bf613740565b60209081029290920135835250818101929092526040908101600090812084516001600160801b0316825290925290205460ff1615610a105760405162461bcd60e51b8152600401610821906137c1565b6001600160a01b03821663f242432a33308b8b88818110610a3357610a33613740565b905060200201358a8a89818110610a4c57610a4c613740565b6040516001600160e01b031960e089901b1681526001600160a01b03968716600482015295909416602486015250604484019190915260209091020135606482015260a06084820152600060a482015260c401600060405180830381600087803b158015610ab957600080fd5b505af1158015610acd573d6000803e3d6000fd5b50505050610b34888885818110610ae657610ae6613740565b905060200201358b8b86818110610aff57610aff613740565b9050602002013583600001516001600160801b0316846020015163ffffffff168560600151866040015163ffffffff1661243d565b60208401805190610b4482613818565b905250600a60008b8b86818110610b5d57610b5d613740565b9050602002013581526020019081526020016000205484600001818151610b849190613833565b90525060408051602081018252600081529082015163ffffffff1615801590610bdc5750600360008c8c87818110610bbe57610bbe613740565b602090810292909201358352508101919091526040016000205460ff165b15610c3157610c118383600001516001600160801b03168b8b88818110610c0557610c05613740565b905060200201356124cb565b805190915015610c315760075485518690610c2d908390613833565b9052505b600d546000906001600160a01b031615610d0457600d546001600160a01b03166380b627d98b8b88818110610c6857610c68613740565b90506020020135866040518363ffffffff1660e01b8152600401610c9f9291909182526001600160a01b0316602082015260400190565b602060405180830381865afa158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce0919061384b565b905063ffffffff811615610d045760085486518790610d00908390613833565b9052505b337f742aa4bb2114d264324536b9933fde94ed5623336d78fec4e6c72405e292097a8d8d88818110610d3857610d38613740565b905060200201358f8b8b8a818110610d5257610d52613740565b905060200201358a60200151886000015189602001518a60400151898c606001518c604051610d8a9a999897969594939291906138c4565b60405180910390a2505050508080610da190613818565b915050610898565b5060095481518290610dbc90839061394b565b9052508051341015610e095760405162461bcd60e51b8152602060048201526016602482015275534e42503a206e6f7420656e6f7567682066756e647360501b6044820152606401610821565b8051610e1e90610e19813461396a565b6125e3565b60200151600b555050600180555050505050565b610e3d600033611fc2565b610e595760405162461bcd60e51b815260040161082190613981565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610e86600033611fc2565b610ea25760405162461bcd60e51b815260040161082190613981565b60005b83811015610f5257828282818110610ebf57610ebf613740565b9050602002016020810190610ed491906136ba565b60046000898985818110610eea57610eea613740565b9050602002013581526020019081526020016000206000878785818110610f1357610f13613740565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610f4a90613818565b915050610ea5565b50505050505050565b600082815260208190526040902060010154610f778133612736565b610f81838361279a565b505050565b6001600160a01b0381163314610ff65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610821565b611000828261281e565b5050565b61101c600080516020613dfb83398151915233611fc2565b6110385760405162461bcd60e51b8152600401610821906139ad565b604080518082019091526000808252602082018190525b8c518110156115dd57600f548d516001600160a01b039091169063a121fe43908f908490811061108157611081613740565b60200260200101518d848151811061109b5761109b613740565b60200260200101518d85815181106110b5576110b5613740565b60200260200101518c86815181106110cf576110cf613740565b60200260200101518c87815181106110e9576110e9613740565b60209081029190910101516040516001600160e01b031960e088901b1681526001600160e81b039095166004860152602485019390935260448401919091526001600160f81b0319166064830152608482015260a401602060405180830381865afa15801561115c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118091906139d9565b80835215611243576000600260008f84815181106111a0576111a0613740565b6020908102919091018101516001600160e81b03168252810191909152604090810160002054600f5485519251627eeac760e11b81526001600160a01b0391821660048201526024810193909352169150819062fdd58e90604401602060405180830381865afa158015611218573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123c91906139d9565b6020840152505b6020820151156113ff57816020015189828151811061126457611264613740565b602002602001015110156112965788818151811061128457611284613740565b60200260200101518260200181815250505b600f548d516001600160a01b03909116906355139cb5908f90849081106112bf576112bf613740565b60200260200101518e84815181106112d9576112d9613740565b60200260200101518e85815181106112f3576112f3613740565b60200260200101518e868151811061130d5761130d613740565b602002602001015187602001518e888151811061132c5761132c613740565b60200260200101518e898151811061134657611346613740565b60200260200101518e8a8151811061136057611360613740565b60200260200101518e8b8151811061137a5761137a613740565b60200260200101518e8e8d81811061139457611394613740565b90506020028101906113a691906139f2565b6040518c63ffffffff1660e01b81526004016113cc9b9a99989796959493929190613a38565b600060405180830381600087803b1580156113e657600080fd5b505af11580156113fa573d6000803e3d6000fd5b505050505b816020015189828151811061141657611416613740565b6020026020010151111561154d5761154d8d828151811061143957611439613740565b60200260200101516001600160e81b03168d838151811061145c5761145c613740565b60200260200101518d848151811061147657611476613740565b60200260200101518d858151811061149057611490613740565b602002602001015186602001518e87815181106114af576114af613740565b60200260200101516114c1919061396a565b8d87815181106114d3576114d3613740565b60200260200101518d88815181106114ed576114ed613740565b60200260200101518d898151811061150757611507613740565b60200260200101518d8a8151811061152157611521613740565b60200260200101518d8d8c81811061153b5761153b613740565b90506020028101906104d391906139f2565b600e600087838151811061156357611563613740565b60209081029190910181015182528101919091526040016000205460ff166115cb576001600e600088848151811061159d5761159d613740565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055505b806115d581613818565b91505061104f565b50505050505050505050505050565b611604600080516020613dfb83398151915233611fc2565b6116205760405162461bcd60e51b8152600401610821906139ad565b61162e86868686868661243d565b505050505050565b61164e600080516020613dfb83398151915233611fc2565b61166a5760405162461bcd60e51b8152600401610821906139ad565b6000848152600e602052604090205460ff161561168657611b64565b6000848152600e60209081526040808320805460ff1916600117905580516060810182528381528083018490528082018490528e84526002909252909120546001600160a01b03166116db8d8c8c8b8b611feb565b8083526000602084015215611760578151604051627eeac760e11b815230600482015260248101919091526001600160a01b0382169062fdd58e90604401602060405180830381865afa158015611736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175a91906139d9565b60208301525b604082018990526020820151156118cf578882602001511115611806576000826040018181525050806001600160a01b031663f242432a308e85600001518d604051806020016040528060008152506040518663ffffffff1660e01b81526004016117cf959493929190613ad4565b600060405180830381600087803b1580156117e957600080fd5b505af11580156117fd573d6000803e3d6000fd5b505050506118af565b81602001518260400181815161181c919061396a565b91508181525050806001600160a01b031663f242432a308e85600001518660200151604051806020016040528060008152506040518663ffffffff1660e01b815260040161186e959493929190613ad4565b600060405180830381600087803b15801561188857600080fd5b505af115801561189c573d6000803e3d6000fd5b505050506118af60008e8d8d8c8c61243d565b6118be81836000015187612883565b6118cf818c84600001518787612917565b604082015115611b0e5760008d81526003602052604090205460ff1615611a1357806001600160a01b031663a39501df8d8d8d86604001518d8d60006001600160401b0381111561192257611922612ce4565b60405190808252806020026020018201604052801561194b578160200160208202803683370190505b506040518863ffffffff1660e01b815260040161196e9796959493929190613b54565b600060405180830381600087803b15801561198857600080fd5b505af115801561199c573d6000803e3d6000fd5b50505050611a0e818c836001600160a01b03166391ba317a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0791906139d9565b8787612917565b611aa2565b604080830151905163098a075f60e11b81526001600160a01b038e81166004830152602482018e9052604482018d905260648201929092526001600160f81b03198a16608482015260a48101899052908216906313140ebe9060c401600060405180830381600087803b158015611a8957600080fd5b505af1158015611a9d573d6000803e3d6000fd5b505050505b611b0e81826001600160a01b03166391ba317a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ae4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0891906139d9565b87612883565b604080518e8152602081018890529081018c9052606081018a90526001600160a01b038d16907f98acd175b5c48b593e748db6155590dbdf8b90133dfb7e80f15f6ee867e46af09060800160405180910390a250505b5050505050505050505050565b611b7c600033611fc2565b611b985760405162461bcd60e51b815260040161082190613981565b600c8054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f5cc4bdb402e519d4921d6bfaca9c17c16ea3a8e658ff5accd29e6080635562ce906020015b60405180910390a150565b6000838214611c465760405162461bcd60e51b815260206004820152601c60248201527f534e42503a20696e70757420617272617973206e6f7420657175616c000000006044820152606401610821565b604080518082019091526006548152600b54602082015260005b85811015611f9f576000600260008b8b85818110611c8057611c80613740565b60209081029290920135835250818101929092526040908101600090812054825160808101845282815293840182905291830181905260608301526001600160a01b03169150816301870f028a8a86818110611cde57611cde613740565b905060200201356040518263ffffffff1660e01b8152600401611d0391815260200190565b608060405180830381865afa158015611d20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d449190613756565b6001600160f81b031916606085015263ffffffff90811660408501521660208301526001600160801b03168152600460008c8c86818110611d8757611d87613740565b60209081029290920135835250818101929092526040908101600090812084516001600160801b0316825290925290205460ff1615611dd85760405162461bcd60e51b8152600401610821906137c1565b600a60008c8c86818110611dee57611dee613740565b9050602002013581526020019081526020016000205484600001818151611e159190613833565b90525060408051602081018252600081529082015163ffffffff1615801590611e6d5750600360008d8d87818110611e4f57611e4f613740565b602090810292909201358352508101919091526040016000205460ff165b15611eb657611e968383600001516001600160801b03168c8c88818110610c0557610c05613740565b805190915015611eb65760075485518690611eb2908390613833565b9052505b600d546000906001600160a01b031615611f8857600d546001600160a01b03166380b627d98c8c88818110611eed57611eed613740565b90506020020135866040518363ffffffff1660e01b8152600401611f249291909182526001600160a01b0316602082015260400190565b602060405180830381865afa158015611f41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f65919061384b565b5063ffffffff811615611f885760085486518790611f84908390613833565b9052505b505050508080611f9790613818565b915050611c60565b5060095481518290611fb290839061394b565b9052505198975050505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600081611ff757600092505b5060009485526005602090815260408087209587529481528486209386529283528385206001600160f81b0319929092168552908252828420908452905290205490565b612053600080516020613dfb83398151915233611fc2565b806120645750612064600033611fc2565b61209c5760405162461bcd60e51b81526020600482015260096024820152686e6f2061636365737360b81b6044820152606401610821565b600955565b6120ac600033611fc2565b6120c85760405162461bcd60e51b815260040161082190613981565b478111156121185760405162461bcd60e51b815260206004820152601860248201527f534e42503a206e6f7420656e6f7567682062616c616e636500000000000000006044820152606401610821565b604051600090339083908381818185875af1925050503d806000811461215a576040519150601f19603f3d011682016040523d82523d6000602084013e61215f565b606091505b50509050806121a85760405162461bcd60e51b815260206004820152601560248201527414d390940e881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610821565b6040518281527f7909752b76037727fecfc6c1abb7264306fd284ff7be21e2aa09bf2fdc00579d9060200160405180910390a15050565b6121ea600033611fc2565b6122065760405162461bcd60e51b815260040161082190613981565b60068790556007869055600885905560005b8381101561227b5782828281811061223257612232613740565b90506020020135600a600087878581811061224f5761224f613740565b90506020020135815260200190815260200160002081905550808061227390613818565b915050612218565b5050505050505050565b6000828152602081905260409020600101546122a18133612736565b610f81838361281e565b6122b6600033611fc2565b6122d25760405162461bcd60e51b815260040161082190613981565b600c805460ff191682151590811790915560405160ff909116151581527f1ac4f136c9c0f6a6e4111b252c023a1e52e800b8c7a9990653a373cb2877e18b90602001611bea565b612324600033611fc2565b6123405760405162461bcd60e51b815260040161082190613981565b60005b85811015610f525784848281811061235d5761235d613740565b90506020020160208101906123729190612ef6565b6002600089898581811061238857612388613740565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282828181106123d3576123d3613740565b90506020020160208101906123e891906136ba565b600360008989858181106123fe576123fe613740565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550808061243590613818565b915050612343565b8061244757600091505b6000858152600560209081526040808320878452825280832086845282528083206001600160f81b0319861684528252808320848452909152902054861461162e5760009485526005602090815260408087209587529481528486209386529283528385206001600160f81b03199290921685529082528284209084529052902055565b6040516311b820ed60e31b8152600481018390526060906000906001600160a01b03861690638dc107689060240161010060405180830381865afa158015612517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253b9190613bc2565b975050506001600160a01b0386161594506125ca93505050505760405163f45fd0f360e01b8152600481018490526001600160a01b0382169063f45fd0f390602401600060405180830381865afa15801561259a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125c29190810190613c73565b9150506125dc565b50506040805160208101909152600081525b9392505050565b801561268357604051600090339083908381818185875af1925050503d806000811461262b576040519150601f19603f3d011682016040523d82523d6000602084013e612630565b606091505b50509050806126815760405162461bcd60e51b815260206004820152601c60248201527f534e42503a20726566756e64207472616e73666572206661696c6564000000006044820152606401610821565b505b600c5460ff161561100057600c5460405160009161010090046001600160a01b03169084908381818185875af1925050503d80600081146126e0576040519150601f19603f3d011682016040523d82523d6000602084013e6126e5565b606091505b5050905080610f815760405162461bcd60e51b815260206004820152601e60248201527f534e42503a207769746864726177207472616e73666572206661696c656400006044820152606401610821565b6127408282611fc2565b61100057612758816001600160a01b03166014612aee565b612763836020612aee565b604051602001612774929190613ce9565b60408051601f198184030181529082905262461bcd60e51b825261082191600401613d5e565b6127a48282611fc2565b611000576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556127da3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6128288282611fc2565b15611000576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b63ffffffff8116158061289f5750600d546001600160a01b0316155b156128a957505050565b600d54604051639b6b0c5160e01b815263ffffffff83166004820152602481018490526001600160a01b03858116604483015290911690639b6b0c5190606401600060405180830381600087803b15801561290357600080fd5b505af1158015610f52573d6000803e3d6000fd5b8061292157612ae7565b6040516311b820ed60e31b8152600481018590526000906001600160a01b03871690638dc107689060240161010060405180830381865afa15801561296a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298e9190613bc2565b975060009650600195506129a3945050505050565b6040519080825280602002602001820160405280156129cc578160200160208202803683370190505b5060408051600180825281830190925291925060009190816020015b60608152602001906001900390816129e85790505090508582600081518110612a1357612a13613740565b60200260200101818152505084848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250855186945090925015159050612a6957612a69613740565b60209081029190910101526001600160a01b0383161561227b5760405163e9b0b8a760e01b81526001600160a01b0384169063e9b0b8a790612ab19085908590600401613d71565b600060405180830381600087803b158015612acb57600080fd5b505af1158015612adf573d6000803e3d6000fd5b505050505050505b5050505050565b60606000612afd83600261394b565b612b08906002613833565b6001600160401b03811115612b1f57612b1f612ce4565b6040519080825280601f01601f191660200182016040528015612b49576020820181803683370190505b509050600360fc1b81600081518110612b6457612b64613740565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612b9357612b93613740565b60200101906001600160f81b031916908160001a9053506000612bb784600261394b565b612bc2906001613833565b90505b6001811115612c3a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612bf657612bf6613740565b1a60f81b828281518110612c0c57612c0c613740565b60200101906001600160f81b031916908160001a90535060049490941c93612c3381613de3565b9050612bc5565b5083156125dc5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610821565b600060208284031215612c9b57600080fd5b81356001600160e01b0319811681146125dc57600080fd5b600060208284031215612cc557600080fd5b5035919050565b6001600160a01b0381168114612ce157600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612d2257612d22612ce4565b604052919050565b60006001600160401b03821115612d4357612d43612ce4565b50601f01601f191660200190565b60008060008060808587031215612d6757600080fd5b8435612d7281612ccc565b93506020850135612d8281612ccc565b92506040850135915060608501356001600160401b03811115612da457600080fd5b8501601f81018713612db557600080fd5b8035612dc8612dc382612d2a565b612cfa565b818152886020838501011115612ddd57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008083601f840112612e1157600080fd5b5081356001600160401b03811115612e2857600080fd5b6020830191508360208260051b8501011115612e4357600080fd5b9250929050565b60008060008060008060006080888a031215612e6557600080fd5b8735612e7081612ccc565b965060208801356001600160401b0380821115612e8c57600080fd5b612e988b838c01612dff565b909850965060408a0135915080821115612eb157600080fd5b612ebd8b838c01612dff565b909650945060608a0135915080821115612ed657600080fd5b50612ee38a828b01612dff565b989b979a50959850939692959293505050565b600060208284031215612f0857600080fd5b81356125dc81612ccc565b60008060008060008060608789031215612f2c57600080fd5b86356001600160401b0380821115612f4357600080fd5b612f4f8a838b01612dff565b90985096506020890135915080821115612f6857600080fd5b612f748a838b01612dff565b90965094506040890135915080821115612f8d57600080fd5b50612f9a89828a01612dff565b979a9699509497509295939492505050565b60008060408385031215612fbf57600080fd5b823591506020830135612fd181612ccc565b809150509250929050565b6001600160f81b031981168114612ce157600080fd5b600080600080600060a0868803121561300a57600080fd5b853594506020860135935060408601359250606086013561302a81612fdc565b949793965091946080013592915050565b60006001600160401b0382111561305457613054612ce4565b5060051b60200190565b600082601f83011261306f57600080fd5b8135602061307f612dc38361303b565b82815260059290921b8401810191818101908684111561309e57600080fd5b8286015b848110156130cf5780356001600160e81b03811681146130c25760008081fd5b83529183019183016130a2565b509695505050505050565b600082601f8301126130eb57600080fd5b813560206130fb612dc38361303b565b82815260059290921b8401810191818101908684111561311a57600080fd5b8286015b848110156130cf57803561313181612ccc565b835291830191830161311e565b600082601f83011261314f57600080fd5b8135602061315f612dc38361303b565b82815260059290921b8401810191818101908684111561317e57600080fd5b8286015b848110156130cf5780358352918301918301613182565b600082601f8301126131aa57600080fd5b813560206131ba612dc38361303b565b82815260059290921b840181019181810190868411156131d957600080fd5b8286015b848110156130cf5780356131f081612fdc565b83529183019183016131dd565b63ffffffff81168114612ce157600080fd5b600082601f83011261322057600080fd5b81356020613230612dc38361303b565b82815260059290921b8401810191818101908684111561324f57600080fd5b8286015b848110156130cf578035613266816131fd565b8352918301918301613253565b60008060008060008060008060008060006101408c8e03121561329557600080fd5b6001600160401b03808d3511156132ab57600080fd5b6132b88e8e358f0161305e565b9b508060208e013511156132cb57600080fd5b6132db8e60208f01358f016130da565b9a508060408e013511156132ee57600080fd5b6132fe8e60408f01358f0161313e565b99508060608e0135111561331157600080fd5b6133218e60608f01358f0161313e565b98508060808e0135111561333457600080fd5b6133448e60808f01358f0161313e565b97508060a08e0135111561335757600080fd5b6133678e60a08f01358f01613199565b96508060c08e0135111561337a57600080fd5b61338a8e60c08f01358f0161313e565b95508060e08e0135111561339d57600080fd5b6133ad8e60e08f01358f0161313e565b9450806101008e013511156133c157600080fd5b6133d28e6101008f01358f0161320f565b9350806101208e013511156133e657600080fd5b506133f88d6101208e01358e01612dff565b81935080925050509295989b509295989b9093969950565b60008060008060008060c0878903121561342957600080fd5b86359550602087013594506040870135935060608701359250608087013561345081612fdc565b8092505060a087013590509295509295509295565b60008083601f84011261347757600080fd5b5081356001600160401b0381111561348e57600080fd5b602083019150836020828501011115612e4357600080fd5b60008060008060008060008060008060006101408c8e0312156134c857600080fd5b8b359a5060208c01356134da81612ccc565b995060408c0135985060608c0135975060808c0135965060a08c01356134ff81612fdc565b955060c08c0135945060e08c013593506101008c013561351e816131fd565b92506101208c01356001600160401b0381111561353a57600080fd5b6135468e828f01613465565b915080935050809150509295989b509295989b9093969950565b60008060008060008060008060a0898b03121561357c57600080fd5b883561358781612ccc565b9750602089013561359781612ccc565b965060408901356001600160401b03808211156135b357600080fd5b6135bf8c838d01612dff565b909850965060608b01359150808211156135d857600080fd5b6135e48c838d01612dff565b909650945060808b01359150808211156135fd57600080fd5b5061360a8b828c01613465565b999c989b5096995094979396929594505050565b6000806040838503121561363157600080fd5b50508035926020909101359150565b600080600080600080600060a0888a03121561365b57600080fd5b87359650602088013595506040880135945060608801356001600160401b038082111561368757600080fd5b6136938b838c01612dff565b909650945060808a0135915080821115612ed657600080fd5b8015158114612ce157600080fd5b6000602082840312156136cc57600080fd5b81356125dc816136ac565b60008060008060008060a087890312156136f057600080fd5b86356136fb81612ccc565b9550602087013561370b81612ccc565b9450604087013593506060870135925060808701356001600160401b0381111561373457600080fd5b612f9a89828a01613465565b634e487b7160e01b600052603260045260246000fd5b6000806000806080858703121561376c57600080fd5b84516001600160801b038116811461378357600080fd5b6020860151909450613794816131fd565b60408601519093506137a5816131fd565b60608601519092506137b681612fdc565b939692955090935050565b60208082526021908201527f534e42503a206272696467696e67207468697320636172642064697361626c656040820152601960fa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561382c5761382c613802565b5060010190565b6000821982111561384657613846613802565b500190565b60006020828403121561385d57600080fd5b81516125dc816131fd565b60005b8381101561388357818101518382015260200161386b565b83811115613892576000848401525b50505050565b600081518084526138b0816020860160208601613868565b601f01601f19169290920160200192915050565b8a81526001600160a01b038a16602082015260408101899052606081018890526001600160801b038716608082015263ffffffff86811660a083015285811660c0830152841660e08201526001600160f81b03198316610100820152610140610120820181905260009061393a83820185613898565b9d9c50505050505050505050505050565b600081600019048311821515161561396557613965613802565b500290565b60008282101561397c5761397c613802565b500390565b60208082526012908201527129a721281d103737ba1030b71037bbb732b960711b604082015260600190565b60208082526012908201527129a721281d103737ba10309036b4b73a32b960711b604082015260600190565b6000602082840312156139eb57600080fd5b5051919050565b6000808335601e19843603018112613a0957600080fd5b8301803591506001600160401b03821115613a2357600080fd5b602001915036819003821315612e4357600080fd5b6001600160e81b038c1681526001600160a01b038b166020820152604081018a905260608101899052608081018890526001600160f81b0319871660a082015260c0810186905260e0810185905263ffffffff84166101008201526101406101208201819052810182905260006101608385828501376000838501820152601f909301601f19169091019091019b9a5050505050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613b0e90830184613898565b979650505050505050565b600081518084526020808501945080840160005b83811015613b4957815187529582019590820190600101613b2d565b509495945050505050565b60018060a01b038816815286602082015285604082015284606082015260ff60f81b841660808201528260a082015260e060c08201526000613b9960e0830184613b19565b9998505050505050505050565b80516001600160401b0381168114613bbd57600080fd5b919050565b600080600080600080600080610100898b031215613bdf57600080fd5b613be889613ba6565b9750613bf660208a01613ba6565b9650604089015161ffff81168114613c0d57600080fd5b60608a0151909650613c1e816131fd565b60808a0151909550613c2f816131fd565b60a08a0151909450613c40816131fd565b60c08a0151909350613c51816136ac565b60e08a0151909250613c6281612ccc565b809150509295985092959890939650565b600060208284031215613c8557600080fd5b81516001600160401b03811115613c9b57600080fd5b8201601f81018413613cac57600080fd5b8051613cba612dc382612d2a565b818152856020838501011115613ccf57600080fd5b613ce0826020830160208601613868565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613d21816017850160208801613868565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613d52816028840160208801613868565b01602801949350505050565b6020815260006125dc6020830184613898565b604081526000613d846040830185613b19565b6020838203818501528185518084528284019150828160051b85010183880160005b83811015613dd457601f19878403018552613dc2838351613898565b94860194925090850190600101613da6565b50909998505050505050505050565b600081613df257613df2613802565b50600019019056fe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220699c3a3be2aa4abe0396ae11f1230acce7ab23c54acb7cfae2704fe86082c75264736f6c634300080b003300000000000000000000000037008b0b3bc8496d6c41ef0a6608ed15fa7475cb
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80636ef25c3a11610123578063c311d049116100ab578063d91fb4cf1161006f578063d91fb4cf146106f5578063e674b41414610722578063f23a6e6114610738578063fcc9c4e214610765578063fe173b971461078557600080fd5b8063c311d04914610653578063cfcfd64614610673578063d539139314610693578063d547741f146106b5578063d55c2f49146106d557600080fd5b8063a6b1c943116100f2578063a6b1c94314610583578063a84cdea114610599578063bc197c81146105c9578063bcf0a919146105f8578063bf1fe4201461063357600080fd5b80636ef25c3a1461051857806391d148541461052e578063a121fe431461054e578063a217fddf1461056e57600080fd5b80632f2ff15d116101a657806342c64e481161017557806342c64e48146104785780634b7a5db71461049857806355139cb5146104b85780636605bfda146104d85780636bf29405146104f857600080fd5b80632f2ff15d146103b95780632fcbb5dd146103d95780633455086b1461042857806336568abe1461045857600080fd5b8063150b7a02116101ed578063150b7a02146102e25780631b2c8723146103265780631d9083f31461033b5780631ee3ed691461035b578063248a9ca31461037b57600080fd5b806301ffc9a71461021f5780630bb4d82a146102545780630c024776146102a25780630f0d5247146102c2575b600080fd5b34801561022b57600080fd5b5061023f61023a366004612c89565b61079b565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061028a61026f366004612cb3565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161024b565b3480156102ae57600080fd5b50600d5461028a906001600160a01b031681565b3480156102ce57600080fd5b50600f5461028a906001600160a01b031681565b3480156102ee57600080fd5b5061030d6102fd366004612d51565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161024b565b610339610334366004612e4a565b6107d2565b005b34801561034757600080fd5b50610339610356366004612ef6565b610e32565b34801561036757600080fd5b50610339610376366004612f13565b610e7b565b34801561038757600080fd5b506103ab610396366004612cb3565b60009081526020819052604090206001015490565b60405190815260200161024b565b3480156103c557600080fd5b506103396103d4366004612fac565b610f5b565b3480156103e557600080fd5b506103ab6103f4366004612ff2565b6005602090815260009586526040808720825294865284862081529285528385208352908452828420909152825290205481565b34801561043457600080fd5b5061023f610443366004612cb3565b600e6020526000908152604090205460ff1681565b34801561046457600080fd5b50610339610473366004612fac565b610f86565b34801561048457600080fd5b50610339610493366004613273565b611004565b3480156104a457600080fd5b506103396104b3366004613410565b6115ec565b3480156104c457600080fd5b506103396104d33660046134a6565b611636565b3480156104e457600080fd5b506103396104f3366004612ef6565b611b71565b34801561050457600080fd5b506103ab610513366004612e4a565b611bf5565b34801561052457600080fd5b506103ab60065481565b34801561053a57600080fd5b5061023f610549366004612fac565b611fc2565b34801561055a57600080fd5b506103ab610569366004612ff2565b611feb565b34801561057a57600080fd5b506103ab600081565b34801561058f57600080fd5b506103ab60085481565b3480156105a557600080fd5b5061023f6105b4366004612cb3565b60036020526000908152604090205460ff1681565b3480156105d557600080fd5b5061030d6105e4366004613560565b63bc197c8160e01b98975050505050505050565b34801561060457600080fd5b5061023f61061336600461361e565b600460209081526000928352604080842090915290825290205460ff1681565b34801561063f57600080fd5b5061033961064e366004612cb3565b61203b565b34801561065f57600080fd5b5061033961066e366004612cb3565b6120a1565b34801561067f57600080fd5b5061033961068e366004613640565b6121df565b34801561069f57600080fd5b506103ab600080516020613dfb83398151915281565b3480156106c157600080fd5b506103396106d0366004612fac565b612285565b3480156106e157600080fd5b506103396106f03660046136ba565b6122ab565b34801561070157600080fd5b506103ab610710366004612cb3565b600a6020526000908152604090205481565b34801561072e57600080fd5b506103ab60075481565b34801561074457600080fd5b5061030d6107533660046136d7565b63f23a6e6160e01b9695505050505050565b34801561077157600080fd5b50610339610780366004612f13565b612319565b34801561079157600080fd5b506103ab60095481565b60006001600160e01b03198216637965db0b60e01b14806107cc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6002600154141561082a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015582811461087e5760405162461bcd60e51b815260206004820152601c60248201527f534e42503a20696e70757420617272617973206e6f7420657175616c000000006044820152606401610821565b604080518082019091526006548152600b54602082015260005b84811015610da9576000600260008a8a858181106108b8576108b8613740565b60209081029290920135835250818101929092526040908101600090812054825160808101845282815293840182905291830181905260608301526001600160a01b03169150816301870f0289898681811061091657610916613740565b905060200201356040518263ffffffff1660e01b815260040161093b91815260200190565b608060405180830381865afa158015610958573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097c9190613756565b6001600160f81b031916606085015263ffffffff90811660408501521660208301526001600160801b03168152600460008b8b868181106109bf576109bf613740565b60209081029290920135835250818101929092526040908101600090812084516001600160801b0316825290925290205460ff1615610a105760405162461bcd60e51b8152600401610821906137c1565b6001600160a01b03821663f242432a33308b8b88818110610a3357610a33613740565b905060200201358a8a89818110610a4c57610a4c613740565b6040516001600160e01b031960e089901b1681526001600160a01b03968716600482015295909416602486015250604484019190915260209091020135606482015260a06084820152600060a482015260c401600060405180830381600087803b158015610ab957600080fd5b505af1158015610acd573d6000803e3d6000fd5b50505050610b34888885818110610ae657610ae6613740565b905060200201358b8b86818110610aff57610aff613740565b9050602002013583600001516001600160801b0316846020015163ffffffff168560600151866040015163ffffffff1661243d565b60208401805190610b4482613818565b905250600a60008b8b86818110610b5d57610b5d613740565b9050602002013581526020019081526020016000205484600001818151610b849190613833565b90525060408051602081018252600081529082015163ffffffff1615801590610bdc5750600360008c8c87818110610bbe57610bbe613740565b602090810292909201358352508101919091526040016000205460ff165b15610c3157610c118383600001516001600160801b03168b8b88818110610c0557610c05613740565b905060200201356124cb565b805190915015610c315760075485518690610c2d908390613833565b9052505b600d546000906001600160a01b031615610d0457600d546001600160a01b03166380b627d98b8b88818110610c6857610c68613740565b90506020020135866040518363ffffffff1660e01b8152600401610c9f9291909182526001600160a01b0316602082015260400190565b602060405180830381865afa158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce0919061384b565b905063ffffffff811615610d045760085486518790610d00908390613833565b9052505b337f742aa4bb2114d264324536b9933fde94ed5623336d78fec4e6c72405e292097a8d8d88818110610d3857610d38613740565b905060200201358f8b8b8a818110610d5257610d52613740565b905060200201358a60200151886000015189602001518a60400151898c606001518c604051610d8a9a999897969594939291906138c4565b60405180910390a2505050508080610da190613818565b915050610898565b5060095481518290610dbc90839061394b565b9052508051341015610e095760405162461bcd60e51b8152602060048201526016602482015275534e42503a206e6f7420656e6f7567682066756e647360501b6044820152606401610821565b8051610e1e90610e19813461396a565b6125e3565b60200151600b555050600180555050505050565b610e3d600033611fc2565b610e595760405162461bcd60e51b815260040161082190613981565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610e86600033611fc2565b610ea25760405162461bcd60e51b815260040161082190613981565b60005b83811015610f5257828282818110610ebf57610ebf613740565b9050602002016020810190610ed491906136ba565b60046000898985818110610eea57610eea613740565b9050602002013581526020019081526020016000206000878785818110610f1357610f13613740565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610f4a90613818565b915050610ea5565b50505050505050565b600082815260208190526040902060010154610f778133612736565b610f81838361279a565b505050565b6001600160a01b0381163314610ff65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610821565b611000828261281e565b5050565b61101c600080516020613dfb83398151915233611fc2565b6110385760405162461bcd60e51b8152600401610821906139ad565b604080518082019091526000808252602082018190525b8c518110156115dd57600f548d516001600160a01b039091169063a121fe43908f908490811061108157611081613740565b60200260200101518d848151811061109b5761109b613740565b60200260200101518d85815181106110b5576110b5613740565b60200260200101518c86815181106110cf576110cf613740565b60200260200101518c87815181106110e9576110e9613740565b60209081029190910101516040516001600160e01b031960e088901b1681526001600160e81b039095166004860152602485019390935260448401919091526001600160f81b0319166064830152608482015260a401602060405180830381865afa15801561115c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118091906139d9565b80835215611243576000600260008f84815181106111a0576111a0613740565b6020908102919091018101516001600160e81b03168252810191909152604090810160002054600f5485519251627eeac760e11b81526001600160a01b0391821660048201526024810193909352169150819062fdd58e90604401602060405180830381865afa158015611218573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123c91906139d9565b6020840152505b6020820151156113ff57816020015189828151811061126457611264613740565b602002602001015110156112965788818151811061128457611284613740565b60200260200101518260200181815250505b600f548d516001600160a01b03909116906355139cb5908f90849081106112bf576112bf613740565b60200260200101518e84815181106112d9576112d9613740565b60200260200101518e85815181106112f3576112f3613740565b60200260200101518e868151811061130d5761130d613740565b602002602001015187602001518e888151811061132c5761132c613740565b60200260200101518e898151811061134657611346613740565b60200260200101518e8a8151811061136057611360613740565b60200260200101518e8b8151811061137a5761137a613740565b60200260200101518e8e8d81811061139457611394613740565b90506020028101906113a691906139f2565b6040518c63ffffffff1660e01b81526004016113cc9b9a99989796959493929190613a38565b600060405180830381600087803b1580156113e657600080fd5b505af11580156113fa573d6000803e3d6000fd5b505050505b816020015189828151811061141657611416613740565b6020026020010151111561154d5761154d8d828151811061143957611439613740565b60200260200101516001600160e81b03168d838151811061145c5761145c613740565b60200260200101518d848151811061147657611476613740565b60200260200101518d858151811061149057611490613740565b602002602001015186602001518e87815181106114af576114af613740565b60200260200101516114c1919061396a565b8d87815181106114d3576114d3613740565b60200260200101518d88815181106114ed576114ed613740565b60200260200101518d898151811061150757611507613740565b60200260200101518d8a8151811061152157611521613740565b60200260200101518d8d8c81811061153b5761153b613740565b90506020028101906104d391906139f2565b600e600087838151811061156357611563613740565b60209081029190910181015182528101919091526040016000205460ff166115cb576001600e600088848151811061159d5761159d613740565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055505b806115d581613818565b91505061104f565b50505050505050505050505050565b611604600080516020613dfb83398151915233611fc2565b6116205760405162461bcd60e51b8152600401610821906139ad565b61162e86868686868661243d565b505050505050565b61164e600080516020613dfb83398151915233611fc2565b61166a5760405162461bcd60e51b8152600401610821906139ad565b6000848152600e602052604090205460ff161561168657611b64565b6000848152600e60209081526040808320805460ff1916600117905580516060810182528381528083018490528082018490528e84526002909252909120546001600160a01b03166116db8d8c8c8b8b611feb565b8083526000602084015215611760578151604051627eeac760e11b815230600482015260248101919091526001600160a01b0382169062fdd58e90604401602060405180830381865afa158015611736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175a91906139d9565b60208301525b604082018990526020820151156118cf578882602001511115611806576000826040018181525050806001600160a01b031663f242432a308e85600001518d604051806020016040528060008152506040518663ffffffff1660e01b81526004016117cf959493929190613ad4565b600060405180830381600087803b1580156117e957600080fd5b505af11580156117fd573d6000803e3d6000fd5b505050506118af565b81602001518260400181815161181c919061396a565b91508181525050806001600160a01b031663f242432a308e85600001518660200151604051806020016040528060008152506040518663ffffffff1660e01b815260040161186e959493929190613ad4565b600060405180830381600087803b15801561188857600080fd5b505af115801561189c573d6000803e3d6000fd5b505050506118af60008e8d8d8c8c61243d565b6118be81836000015187612883565b6118cf818c84600001518787612917565b604082015115611b0e5760008d81526003602052604090205460ff1615611a1357806001600160a01b031663a39501df8d8d8d86604001518d8d60006001600160401b0381111561192257611922612ce4565b60405190808252806020026020018201604052801561194b578160200160208202803683370190505b506040518863ffffffff1660e01b815260040161196e9796959493929190613b54565b600060405180830381600087803b15801561198857600080fd5b505af115801561199c573d6000803e3d6000fd5b50505050611a0e818c836001600160a01b03166391ba317a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0791906139d9565b8787612917565b611aa2565b604080830151905163098a075f60e11b81526001600160a01b038e81166004830152602482018e9052604482018d905260648201929092526001600160f81b03198a16608482015260a48101899052908216906313140ebe9060c401600060405180830381600087803b158015611a8957600080fd5b505af1158015611a9d573d6000803e3d6000fd5b505050505b611b0e81826001600160a01b03166391ba317a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ae4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0891906139d9565b87612883565b604080518e8152602081018890529081018c9052606081018a90526001600160a01b038d16907f98acd175b5c48b593e748db6155590dbdf8b90133dfb7e80f15f6ee867e46af09060800160405180910390a250505b5050505050505050505050565b611b7c600033611fc2565b611b985760405162461bcd60e51b815260040161082190613981565b600c8054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f5cc4bdb402e519d4921d6bfaca9c17c16ea3a8e658ff5accd29e6080635562ce906020015b60405180910390a150565b6000838214611c465760405162461bcd60e51b815260206004820152601c60248201527f534e42503a20696e70757420617272617973206e6f7420657175616c000000006044820152606401610821565b604080518082019091526006548152600b54602082015260005b85811015611f9f576000600260008b8b85818110611c8057611c80613740565b60209081029290920135835250818101929092526040908101600090812054825160808101845282815293840182905291830181905260608301526001600160a01b03169150816301870f028a8a86818110611cde57611cde613740565b905060200201356040518263ffffffff1660e01b8152600401611d0391815260200190565b608060405180830381865afa158015611d20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d449190613756565b6001600160f81b031916606085015263ffffffff90811660408501521660208301526001600160801b03168152600460008c8c86818110611d8757611d87613740565b60209081029290920135835250818101929092526040908101600090812084516001600160801b0316825290925290205460ff1615611dd85760405162461bcd60e51b8152600401610821906137c1565b600a60008c8c86818110611dee57611dee613740565b9050602002013581526020019081526020016000205484600001818151611e159190613833565b90525060408051602081018252600081529082015163ffffffff1615801590611e6d5750600360008d8d87818110611e4f57611e4f613740565b602090810292909201358352508101919091526040016000205460ff165b15611eb657611e968383600001516001600160801b03168c8c88818110610c0557610c05613740565b805190915015611eb65760075485518690611eb2908390613833565b9052505b600d546000906001600160a01b031615611f8857600d546001600160a01b03166380b627d98c8c88818110611eed57611eed613740565b90506020020135866040518363ffffffff1660e01b8152600401611f249291909182526001600160a01b0316602082015260400190565b602060405180830381865afa158015611f41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f65919061384b565b5063ffffffff811615611f885760085486518790611f84908390613833565b9052505b505050508080611f9790613818565b915050611c60565b5060095481518290611fb290839061394b565b9052505198975050505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600081611ff757600092505b5060009485526005602090815260408087209587529481528486209386529283528385206001600160f81b0319929092168552908252828420908452905290205490565b612053600080516020613dfb83398151915233611fc2565b806120645750612064600033611fc2565b61209c5760405162461bcd60e51b81526020600482015260096024820152686e6f2061636365737360b81b6044820152606401610821565b600955565b6120ac600033611fc2565b6120c85760405162461bcd60e51b815260040161082190613981565b478111156121185760405162461bcd60e51b815260206004820152601860248201527f534e42503a206e6f7420656e6f7567682062616c616e636500000000000000006044820152606401610821565b604051600090339083908381818185875af1925050503d806000811461215a576040519150601f19603f3d011682016040523d82523d6000602084013e61215f565b606091505b50509050806121a85760405162461bcd60e51b815260206004820152601560248201527414d390940e881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610821565b6040518281527f7909752b76037727fecfc6c1abb7264306fd284ff7be21e2aa09bf2fdc00579d9060200160405180910390a15050565b6121ea600033611fc2565b6122065760405162461bcd60e51b815260040161082190613981565b60068790556007869055600885905560005b8381101561227b5782828281811061223257612232613740565b90506020020135600a600087878581811061224f5761224f613740565b90506020020135815260200190815260200160002081905550808061227390613818565b915050612218565b5050505050505050565b6000828152602081905260409020600101546122a18133612736565b610f81838361281e565b6122b6600033611fc2565b6122d25760405162461bcd60e51b815260040161082190613981565b600c805460ff191682151590811790915560405160ff909116151581527f1ac4f136c9c0f6a6e4111b252c023a1e52e800b8c7a9990653a373cb2877e18b90602001611bea565b612324600033611fc2565b6123405760405162461bcd60e51b815260040161082190613981565b60005b85811015610f525784848281811061235d5761235d613740565b90506020020160208101906123729190612ef6565b6002600089898581811061238857612388613740565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282828181106123d3576123d3613740565b90506020020160208101906123e891906136ba565b600360008989858181106123fe576123fe613740565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550808061243590613818565b915050612343565b8061244757600091505b6000858152600560209081526040808320878452825280832086845282528083206001600160f81b0319861684528252808320848452909152902054861461162e5760009485526005602090815260408087209587529481528486209386529283528385206001600160f81b03199290921685529082528284209084529052902055565b6040516311b820ed60e31b8152600481018390526060906000906001600160a01b03861690638dc107689060240161010060405180830381865afa158015612517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253b9190613bc2565b975050506001600160a01b0386161594506125ca93505050505760405163f45fd0f360e01b8152600481018490526001600160a01b0382169063f45fd0f390602401600060405180830381865afa15801561259a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125c29190810190613c73565b9150506125dc565b50506040805160208101909152600081525b9392505050565b801561268357604051600090339083908381818185875af1925050503d806000811461262b576040519150601f19603f3d011682016040523d82523d6000602084013e612630565b606091505b50509050806126815760405162461bcd60e51b815260206004820152601c60248201527f534e42503a20726566756e64207472616e73666572206661696c6564000000006044820152606401610821565b505b600c5460ff161561100057600c5460405160009161010090046001600160a01b03169084908381818185875af1925050503d80600081146126e0576040519150601f19603f3d011682016040523d82523d6000602084013e6126e5565b606091505b5050905080610f815760405162461bcd60e51b815260206004820152601e60248201527f534e42503a207769746864726177207472616e73666572206661696c656400006044820152606401610821565b6127408282611fc2565b61100057612758816001600160a01b03166014612aee565b612763836020612aee565b604051602001612774929190613ce9565b60408051601f198184030181529082905262461bcd60e51b825261082191600401613d5e565b6127a48282611fc2565b611000576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556127da3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6128288282611fc2565b15611000576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b63ffffffff8116158061289f5750600d546001600160a01b0316155b156128a957505050565b600d54604051639b6b0c5160e01b815263ffffffff83166004820152602481018490526001600160a01b03858116604483015290911690639b6b0c5190606401600060405180830381600087803b15801561290357600080fd5b505af1158015610f52573d6000803e3d6000fd5b8061292157612ae7565b6040516311b820ed60e31b8152600481018590526000906001600160a01b03871690638dc107689060240161010060405180830381865afa15801561296a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298e9190613bc2565b975060009650600195506129a3945050505050565b6040519080825280602002602001820160405280156129cc578160200160208202803683370190505b5060408051600180825281830190925291925060009190816020015b60608152602001906001900390816129e85790505090508582600081518110612a1357612a13613740565b60200260200101818152505084848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250855186945090925015159050612a6957612a69613740565b60209081029190910101526001600160a01b0383161561227b5760405163e9b0b8a760e01b81526001600160a01b0384169063e9b0b8a790612ab19085908590600401613d71565b600060405180830381600087803b158015612acb57600080fd5b505af1158015612adf573d6000803e3d6000fd5b505050505050505b5050505050565b60606000612afd83600261394b565b612b08906002613833565b6001600160401b03811115612b1f57612b1f612ce4565b6040519080825280601f01601f191660200182016040528015612b49576020820181803683370190505b509050600360fc1b81600081518110612b6457612b64613740565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612b9357612b93613740565b60200101906001600160f81b031916908160001a9053506000612bb784600261394b565b612bc2906001613833565b90505b6001811115612c3a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612bf657612bf6613740565b1a60f81b828281518110612c0c57612c0c613740565b60200101906001600160f81b031916908160001a90535060049490941c93612c3381613de3565b9050612bc5565b5083156125dc5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610821565b600060208284031215612c9b57600080fd5b81356001600160e01b0319811681146125dc57600080fd5b600060208284031215612cc557600080fd5b5035919050565b6001600160a01b0381168114612ce157600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612d2257612d22612ce4565b604052919050565b60006001600160401b03821115612d4357612d43612ce4565b50601f01601f191660200190565b60008060008060808587031215612d6757600080fd5b8435612d7281612ccc565b93506020850135612d8281612ccc565b92506040850135915060608501356001600160401b03811115612da457600080fd5b8501601f81018713612db557600080fd5b8035612dc8612dc382612d2a565b612cfa565b818152886020838501011115612ddd57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008083601f840112612e1157600080fd5b5081356001600160401b03811115612e2857600080fd5b6020830191508360208260051b8501011115612e4357600080fd5b9250929050565b60008060008060008060006080888a031215612e6557600080fd5b8735612e7081612ccc565b965060208801356001600160401b0380821115612e8c57600080fd5b612e988b838c01612dff565b909850965060408a0135915080821115612eb157600080fd5b612ebd8b838c01612dff565b909650945060608a0135915080821115612ed657600080fd5b50612ee38a828b01612dff565b989b979a50959850939692959293505050565b600060208284031215612f0857600080fd5b81356125dc81612ccc565b60008060008060008060608789031215612f2c57600080fd5b86356001600160401b0380821115612f4357600080fd5b612f4f8a838b01612dff565b90985096506020890135915080821115612f6857600080fd5b612f748a838b01612dff565b90965094506040890135915080821115612f8d57600080fd5b50612f9a89828a01612dff565b979a9699509497509295939492505050565b60008060408385031215612fbf57600080fd5b823591506020830135612fd181612ccc565b809150509250929050565b6001600160f81b031981168114612ce157600080fd5b600080600080600060a0868803121561300a57600080fd5b853594506020860135935060408601359250606086013561302a81612fdc565b949793965091946080013592915050565b60006001600160401b0382111561305457613054612ce4565b5060051b60200190565b600082601f83011261306f57600080fd5b8135602061307f612dc38361303b565b82815260059290921b8401810191818101908684111561309e57600080fd5b8286015b848110156130cf5780356001600160e81b03811681146130c25760008081fd5b83529183019183016130a2565b509695505050505050565b600082601f8301126130eb57600080fd5b813560206130fb612dc38361303b565b82815260059290921b8401810191818101908684111561311a57600080fd5b8286015b848110156130cf57803561313181612ccc565b835291830191830161311e565b600082601f83011261314f57600080fd5b8135602061315f612dc38361303b565b82815260059290921b8401810191818101908684111561317e57600080fd5b8286015b848110156130cf5780358352918301918301613182565b600082601f8301126131aa57600080fd5b813560206131ba612dc38361303b565b82815260059290921b840181019181810190868411156131d957600080fd5b8286015b848110156130cf5780356131f081612fdc565b83529183019183016131dd565b63ffffffff81168114612ce157600080fd5b600082601f83011261322057600080fd5b81356020613230612dc38361303b565b82815260059290921b8401810191818101908684111561324f57600080fd5b8286015b848110156130cf578035613266816131fd565b8352918301918301613253565b60008060008060008060008060008060006101408c8e03121561329557600080fd5b6001600160401b03808d3511156132ab57600080fd5b6132b88e8e358f0161305e565b9b508060208e013511156132cb57600080fd5b6132db8e60208f01358f016130da565b9a508060408e013511156132ee57600080fd5b6132fe8e60408f01358f0161313e565b99508060608e0135111561331157600080fd5b6133218e60608f01358f0161313e565b98508060808e0135111561333457600080fd5b6133448e60808f01358f0161313e565b97508060a08e0135111561335757600080fd5b6133678e60a08f01358f01613199565b96508060c08e0135111561337a57600080fd5b61338a8e60c08f01358f0161313e565b95508060e08e0135111561339d57600080fd5b6133ad8e60e08f01358f0161313e565b9450806101008e013511156133c157600080fd5b6133d28e6101008f01358f0161320f565b9350806101208e013511156133e657600080fd5b506133f88d6101208e01358e01612dff565b81935080925050509295989b509295989b9093969950565b60008060008060008060c0878903121561342957600080fd5b86359550602087013594506040870135935060608701359250608087013561345081612fdc565b8092505060a087013590509295509295509295565b60008083601f84011261347757600080fd5b5081356001600160401b0381111561348e57600080fd5b602083019150836020828501011115612e4357600080fd5b60008060008060008060008060008060006101408c8e0312156134c857600080fd5b8b359a5060208c01356134da81612ccc565b995060408c0135985060608c0135975060808c0135965060a08c01356134ff81612fdc565b955060c08c0135945060e08c013593506101008c013561351e816131fd565b92506101208c01356001600160401b0381111561353a57600080fd5b6135468e828f01613465565b915080935050809150509295989b509295989b9093969950565b60008060008060008060008060a0898b03121561357c57600080fd5b883561358781612ccc565b9750602089013561359781612ccc565b965060408901356001600160401b03808211156135b357600080fd5b6135bf8c838d01612dff565b909850965060608b01359150808211156135d857600080fd5b6135e48c838d01612dff565b909650945060808b01359150808211156135fd57600080fd5b5061360a8b828c01613465565b999c989b5096995094979396929594505050565b6000806040838503121561363157600080fd5b50508035926020909101359150565b600080600080600080600060a0888a03121561365b57600080fd5b87359650602088013595506040880135945060608801356001600160401b038082111561368757600080fd5b6136938b838c01612dff565b909650945060808a0135915080821115612ed657600080fd5b8015158114612ce157600080fd5b6000602082840312156136cc57600080fd5b81356125dc816136ac565b60008060008060008060a087890312156136f057600080fd5b86356136fb81612ccc565b9550602087013561370b81612ccc565b9450604087013593506060870135925060808701356001600160401b0381111561373457600080fd5b612f9a89828a01613465565b634e487b7160e01b600052603260045260246000fd5b6000806000806080858703121561376c57600080fd5b84516001600160801b038116811461378357600080fd5b6020860151909450613794816131fd565b60408601519093506137a5816131fd565b60608601519092506137b681612fdc565b939692955090935050565b60208082526021908201527f534e42503a206272696467696e67207468697320636172642064697361626c656040820152601960fa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561382c5761382c613802565b5060010190565b6000821982111561384657613846613802565b500190565b60006020828403121561385d57600080fd5b81516125dc816131fd565b60005b8381101561388357818101518382015260200161386b565b83811115613892576000848401525b50505050565b600081518084526138b0816020860160208601613868565b601f01601f19169290920160200192915050565b8a81526001600160a01b038a16602082015260408101899052606081018890526001600160801b038716608082015263ffffffff86811660a083015285811660c0830152841660e08201526001600160f81b03198316610100820152610140610120820181905260009061393a83820185613898565b9d9c50505050505050505050505050565b600081600019048311821515161561396557613965613802565b500290565b60008282101561397c5761397c613802565b500390565b60208082526012908201527129a721281d103737ba1030b71037bbb732b960711b604082015260600190565b60208082526012908201527129a721281d103737ba10309036b4b73a32b960711b604082015260600190565b6000602082840312156139eb57600080fd5b5051919050565b6000808335601e19843603018112613a0957600080fd5b8301803591506001600160401b03821115613a2357600080fd5b602001915036819003821315612e4357600080fd5b6001600160e81b038c1681526001600160a01b038b166020820152604081018a905260608101899052608081018890526001600160f81b0319871660a082015260c0810186905260e0810185905263ffffffff84166101008201526101406101208201819052810182905260006101608385828501376000838501820152601f909301601f19169091019091019b9a5050505050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613b0e90830184613898565b979650505050505050565b600081518084526020808501945080840160005b83811015613b4957815187529582019590820190600101613b2d565b509495945050505050565b60018060a01b038816815286602082015285604082015284606082015260ff60f81b841660808201528260a082015260e060c08201526000613b9960e0830184613b19565b9998505050505050505050565b80516001600160401b0381168114613bbd57600080fd5b919050565b600080600080600080600080610100898b031215613bdf57600080fd5b613be889613ba6565b9750613bf660208a01613ba6565b9650604089015161ffff81168114613c0d57600080fd5b60608a0151909650613c1e816131fd565b60808a0151909550613c2f816131fd565b60a08a0151909450613c40816131fd565b60c08a0151909350613c51816136ac565b60e08a0151909250613c6281612ccc565b809150509295985092959890939650565b600060208284031215613c8557600080fd5b81516001600160401b03811115613c9b57600080fd5b8201601f81018413613cac57600080fd5b8051613cba612dc382612d2a565b818152856020838501011115613ccf57600080fd5b613ce0826020830160208601613868565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613d21816017850160208801613868565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613d52816028840160208801613868565b01602801949350505050565b6020815260006125dc6020830184613898565b604081526000613d846040830185613b19565b6020838203818501528185518084528284019150828160051b85010183880160005b83811015613dd457601f19878403018552613dc2838351613898565b94860194925090850190600101613da6565b50909998505050505050505050565b600081613df257613df2613802565b50600019019056fe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220699c3a3be2aa4abe0396ae11f1230acce7ab23c54acb7cfae2704fe86082c75264736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000037008b0b3bc8496d6c41ef0a6608ed15fa7475cb
-----Decoded View---------------
Arg [0] : _mainNftBridgeAddress (address): 0x37008b0b3bc8496d6c41ef0a6608Ed15fA7475CB
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000037008b0b3bc8496d6c41ef0a6608ed15fa7475cb
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,275.84 | 0.00275 | $6.26 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.