Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 2178801 | 46 days ago | IN | 0 ETH | 0.00058562 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
RiscZeroVerifierRouter
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Copyright 2024 RISC Zero, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.9; import {Ownable, Ownable2Step} from "openzeppelin/contracts/access/Ownable2Step.sol"; import {IRiscZeroVerifier, Receipt} from "./IRiscZeroVerifier.sol"; /// @notice Router for IRiscZeroVerifier, allowing multiple implementations to be accessible behind a single address. contract RiscZeroVerifierRouter is IRiscZeroVerifier, Ownable2Step { /// @notice Mapping from 4-byte verifier selector to verifier contracts. /// Used to route receipts to verifiers that are able to check the receipt. mapping(bytes4 => IRiscZeroVerifier) public verifiers; /// @notice Value of an entry that has never been set. IRiscZeroVerifier internal constant UNSET = IRiscZeroVerifier(address(0)); /// @notice A "tombstone" value used to mark verifier entries that have been removed from the mapping. IRiscZeroVerifier internal constant TOMBSTONE = IRiscZeroVerifier(address(1)); /// @notice Error raised when attempting to verify a receipt with a selector that is not /// registered on this router. Generally, this indicates a version mismatch where the /// prover generated a receipt with version of the zkVM that does not match any /// registered version on this router contract. error SelectorUnknown(bytes4 selector); /// @notice Error raised when attempting to add a verifier for a selector that is already registered. error SelectorInUse(bytes4 selector); /// @notice Error raised when attempting to verify a receipt with a selector that has been /// removed, or attempting to add a new verifier with a selector that was previously /// registered and then removed. error SelectorRemoved(bytes4 selector); constructor(address admin) Ownable(admin) {} /// @notice Adds a verifier to the router, such that it can receive receipt verification calls. function addVerifier(bytes4 selector, IRiscZeroVerifier verifier) external onlyOwner { if (verifiers[selector] == TOMBSTONE) { revert SelectorRemoved({selector: selector}); } if (verifiers[selector] != UNSET) { revert SelectorInUse({selector: selector}); } verifiers[selector] = verifier; } /// @notice Removes verifier from the router, such that it can not receive verification calls. /// Removing a selector sets it to the tombstone value. It can never be set to any /// other value, and can never be reused for a new verifier, in order to enforce the /// property that each selector maps to at most one implementation across time. function removeVerifier(bytes4 selector) external onlyOwner { // Simple check to reduce the chance of accidents. // NOTE: If there ever _is_ a reason to remove a selector that has never been set, the owner // can call addVerifier with the tombstone address. if (verifiers[selector] == UNSET) { revert SelectorUnknown({selector: selector}); } verifiers[selector] = TOMBSTONE; } /// @notice Get the associatied verifier, reverting if the selector is unknown or removed. function getVerifier(bytes4 selector) public view returns (IRiscZeroVerifier) { IRiscZeroVerifier verifier = verifiers[selector]; if (verifier == UNSET) { revert SelectorUnknown({selector: selector}); } if (verifier == TOMBSTONE) { revert SelectorRemoved({selector: selector}); } return verifier; } /// @notice Get the associatied verifier, reverting if the selector is unknown or removed. function getVerifier(bytes calldata seal) public view returns (IRiscZeroVerifier) { // Use the first 4 bytes of the seal at the selector to look up in the mapping. return getVerifier(bytes4(seal[0:4])); } /// @inheritdoc IRiscZeroVerifier function verify(bytes calldata seal, bytes32 imageId, bytes32 journalDigest) external view { getVerifier(seal).verify(seal, imageId, journalDigest); } /// @inheritdoc IRiscZeroVerifier function verifyIntegrity(Receipt calldata receipt) external view { getVerifier(receipt.seal).verifyIntegrity(receipt); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol) pragma solidity ^0.8.20; import {Ownable} from "./Ownable.sol"; /** * @dev Contract module which provides access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is specified at deployment time in the constructor for `Ownable`. This * can later be changed with {transferOwnership} and {acceptOwnership}. * * This module is used through inheritance. It will make available all functions * from parent (Ownable). */ abstract contract Ownable2Step is Ownable { address private _pendingOwner; event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner); /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual override onlyOwner { _pendingOwner = newOwner; emit OwnershipTransferStarted(owner(), newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner. * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual override { delete _pendingOwner; super._transferOwnership(newOwner); } /** * @dev The new owner accepts the ownership transfer. */ function acceptOwnership() public virtual { address sender = _msgSender(); if (pendingOwner() != sender) { revert OwnableUnauthorizedAccount(sender); } _transferOwnership(sender); } }
// Copyright 2024 RISC Zero, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.9; import {reverseByteOrderUint32} from "./Util.sol"; /// @notice A receipt attesting to the execution of a guest program. /// @dev A receipt contains two parts: a seal and a claim. The seal is a zero-knowledge proof /// attesting to knowledge of a zkVM execution resulting in the claim. The claim is a set of public /// outputs for the execution. Crucially, the claim includes the journal and the image ID. The /// image ID identifies the program that was executed, and the journal is the public data written /// by the program. Note that this struct only contains the claim digest, as can be obtained with /// the `digest()` function on `ReceiptClaimLib`. struct Receipt { bytes seal; bytes32 claimDigest; } /// @notice Public claims about a zkVM guest execution, such as the journal committed to by the guest. /// @dev Also includes important information such as the exit code and the starting and ending system /// state (i.e. the state of memory). `ReceiptClaim` is a "Merkle-ized struct" supporting /// partial openings of the underlying fields from a hash commitment to the full structure. struct ReceiptClaim { /// @notice Digest of the SystemState just before execution has begun. bytes32 preStateDigest; /// @notice Digest of the SystemState just after execution has completed. bytes32 postStateDigest; /// @notice The exit code for the execution. ExitCode exitCode; /// @notice A digest of the input to the guest. /// @dev This field is currently unused and must be set to the zero digest. bytes32 input; /// @notice Digest of the Output of the guest, including the journal /// and assumptions set during execution. bytes32 output; } library ReceiptClaimLib { using OutputLib for Output; using SystemStateLib for SystemState; bytes32 constant TAG_DIGEST = sha256("risc0.ReceiptClaim"); // Define a constant to ensure hashing is done at compile time. Can't use the // SystemStateLib.digest method here because the Solidity compiler complains. bytes32 constant SYSTEM_STATE_ZERO_DIGEST = 0xa3acc27117418996340b84e5a90f3ef4c49d22c79e44aad822ec9c313e1eb8e2; /// @notice Construct a ReceiptClaim from the given imageId and journalDigest. /// Returned ReceiptClaim will represent a successful execution of the zkVM, running /// the program committed by imageId and resulting in the journal specified by /// journalDigest. /// @param imageId The identifier for the guest program. /// @param journalDigest The SHA-256 digest of the journal bytes. /// @dev Input hash and postStateDigest are set to all-zeros (i.e. no committed input, or /// final memory state), the exit code is (Halted, 0), and there are no assumptions /// (i.e. the receipt is unconditional). function ok(bytes32 imageId, bytes32 journalDigest) internal pure returns (ReceiptClaim memory) { return ReceiptClaim( imageId, SYSTEM_STATE_ZERO_DIGEST, ExitCode(SystemExitCode.Halted, 0), bytes32(0), Output(journalDigest, bytes32(0)).digest() ); } function digest(ReceiptClaim memory claim) internal pure returns (bytes32) { return sha256( abi.encodePacked( TAG_DIGEST, // down claim.input, claim.preStateDigest, claim.postStateDigest, claim.output, // data uint32(claim.exitCode.system) << 24, uint32(claim.exitCode.user) << 24, // down.length uint16(4) << 8 ) ); } } /// @notice Commitment to the memory state and program counter (pc) of the zkVM. /// @dev The "pre" and "post" fields of the ReceiptClaim are digests of the system state at the /// start are stop of execution. Programs are loaded into the zkVM by creating a memory image /// of the loaded program, and creating a system state for initializing the zkVM. This is /// known as the "image ID". struct SystemState { /// @notice Program counter. uint32 pc; /// @notice Root hash of a merkle tree which confirms the integrity of the memory image. bytes32 merkle_root; } library SystemStateLib { bytes32 constant TAG_DIGEST = sha256("risc0.SystemState"); function digest(SystemState memory state) internal pure returns (bytes32) { return sha256( abi.encodePacked( TAG_DIGEST, // down state.merkle_root, // data reverseByteOrderUint32(state.pc), // down.length uint16(1) << 8 ) ); } } /// @notice Exit condition indicated by the zkVM at the end of the guest execution. /// @dev Exit codes have a "system" part and a "user" part. Semantically, the system part is set to /// indicate the type of exit (e.g. halt, pause, or system split) and is directly controlled by the /// zkVM. The user part is an exit code, similar to exit codes used in Linux, chosen by the guest /// program to indicate additional information (e.g. 0 to indicate success or 1 to indicate an /// error). struct ExitCode { SystemExitCode system; uint8 user; } /// @notice Exit condition indicated by the zkVM at the end of the execution covered by this proof. /// @dev /// `Halted` indicates normal termination of a program with an interior exit code returned from the /// guest program. A halted program cannot be resumed. /// /// `Paused` indicates the execution ended in a paused state with an interior exit code set by the /// guest program. A paused program can be resumed such that execution picks up where it left /// of, with the same memory state. /// /// `SystemSplit` indicates the execution ended on a host-initiated system split. System split is /// mechanism by which the host can temporarily stop execution of the execution ended in a system /// split has no output and no conclusions can be drawn about whether the program will eventually /// halt. System split is used in continuations to split execution into individually provable segments. enum SystemExitCode { Halted, Paused, SystemSplit } /// @notice Output field in the `ReceiptClaim`, committing to a claimed journal and assumptions list. struct Output { /// @notice Digest of the journal committed to by the guest execution. bytes32 journalDigest; /// @notice Digest of the ordered list of `ReceiptClaim` digests corresponding to the /// calls to `env::verify` and `env::verify_integrity`. /// @dev Verifying the integrity of a `Receipt` corresponding to a `ReceiptClaim` with a /// non-empty assumptions list does not guarantee unconditionally any of the claims over the /// guest execution (i.e. if the assumptions list is non-empty, then the journal digest cannot /// be trusted to correspond to a genuine execution). The claims can be checked by additional /// verifying a `Receipt` for every digest in the assumptions list. bytes32 assumptionsDigest; } library OutputLib { bytes32 constant TAG_DIGEST = sha256("risc0.Output"); function digest(Output memory output) internal pure returns (bytes32) { return sha256( abi.encodePacked( TAG_DIGEST, // down output.journalDigest, output.assumptionsDigest, // down.length uint16(2) << 8 ) ); } } /// @notice Error raised when cryptographic verification of the zero-knowledge proof fails. error VerificationFailed(); /// @notice Verifier interface for RISC Zero receipts of execution. interface IRiscZeroVerifier { /// @notice Verify that the given seal is a valid RISC Zero proof of execution with the /// given image ID and journal digest. Reverts on failure. /// @dev This method additionally ensures that the input hash is all-zeros (i.e. no /// committed input), the exit code is (Halted, 0), and there are no assumptions (i.e. the /// receipt is unconditional). /// @param seal The encoded cryptographic proof (i.e. SNARK). /// @param imageId The identifier for the guest program. /// @param journalDigest The SHA-256 digest of the journal bytes. function verify(bytes calldata seal, bytes32 imageId, bytes32 journalDigest) external view; /// @notice Verify that the given receipt is a valid RISC Zero receipt, ensuring the `seal` is /// valid a cryptographic proof of the execution with the given `claim`. Reverts on failure. /// @param receipt The receipt to be verified. function verifyIntegrity(Receipt calldata receipt) external view; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// Copyright 2024 RISC Zero, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.9; /// @notice reverse the byte order of the uint256 value. /// @dev Solidity uses a big-endian ABI encoding. Reversing the byte order before encoding /// ensure that the encoded value will be little-endian. /// Written by k06a. https://ethereum.stackexchange.com/a/83627 function reverseByteOrderUint256(uint256 input) pure returns (uint256 v) { v = input; // swap bytes v = ((v & 0xFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00) >> 8) | ((v & 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF) << 8); // swap 2-byte long pairs v = ((v & 0xFFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000) >> 16) | ((v & 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF) << 16); // swap 4-byte long pairs v = ((v & 0xFFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000) >> 32) | ((v & 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF) << 32); // swap 8-byte long pairs v = ((v & 0xFFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF0000000000000000) >> 64) | ((v & 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF) << 64); // swap 16-byte long pairs v = (v >> 128) | (v << 128); } /// @notice reverse the byte order of the uint32 value. /// @dev Solidity uses a big-endian ABI encoding. Reversing the byte order before encoding /// ensure that the encoded value will be little-endian. /// Written by k06a. https://ethereum.stackexchange.com/a/83627 function reverseByteOrderUint32(uint32 input) pure returns (uint32 v) { v = input; // swap bytes v = ((v & 0xFF00FF00) >> 8) | ((v & 0x00FF00FF) << 8); // swap 2-byte long pairs v = (v >> 16) | (v << 16); } /// @notice reverse the byte order of the uint16 value. /// @dev Solidity uses a big-endian ABI encoding. Reversing the byte order before encoding /// ensure that the encoded value will be little-endian. /// Written by k06a. https://ethereum.stackexchange.com/a/83627 function reverseByteOrderUint16(uint16 input) pure returns (uint16 v) { v = input; // swap bytes v = (v >> 8) | ((v & 0x00FF) << 8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "remappings": [ "forge-std/=lib/forge-std/src/", "openzeppelin/=lib/openzeppelin-contracts/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "openzeppelin-contracts/=lib/openzeppelin-contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"SelectorInUse","type":"error"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"SelectorRemoved","type":"error"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"SelectorUnknown","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"},{"internalType":"contract IRiscZeroVerifier","name":"verifier","type":"address"}],"name":"addVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"getVerifier","outputs":[{"internalType":"contract IRiscZeroVerifier","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"seal","type":"bytes"}],"name":"getVerifier","outputs":[{"internalType":"contract IRiscZeroVerifier","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"removeVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"verifiers","outputs":[{"internalType":"contract IRiscZeroVerifier","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"seal","type":"bytes"},{"internalType":"bytes32","name":"imageId","type":"bytes32"},{"internalType":"bytes32","name":"journalDigest","type":"bytes32"}],"name":"verify","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"seal","type":"bytes"},{"internalType":"bytes32","name":"claimDigest","type":"bytes32"}],"internalType":"struct Receipt","name":"receipt","type":"tuple"}],"name":"verifyIntegrity","outputs":[],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610a57380380610a5783398101604081905261002f916100da565b806001600160a01b03811661005e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100678161006e565b505061010a565b600180546001600160a01b03191690556100878161008a565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100ec57600080fd5b81516001600160a01b038116811461010357600080fd5b9392505050565b61093e806101196000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063ab750e7511610071578063ab750e7514610131578063c17e7ba814610144578063d0a6af3014610157578063e30c39781461016a578063f2fde38b1461017b578063fa9381d31461018e57600080fd5b80631599ead5146100b95780633cadf449146100ce578063715018a6146100fd57806379ba5097146101055780638da5cb5b1461010d57806393d237f61461011e575b600080fd5b6100cc6100c73660046105ce565b6101b7565b005b6100e16100dc366004610626565b610222565b6040516001600160a01b03909116815260200160405180910390f35b6100cc6102a1565b6100cc6102b5565b6000546001600160a01b03166100e1565b6100cc61012c366004610626565b6102f9565b6100cc61013f36600461068a565b61036e565b6100e16101523660046106db565b6103df565b6100cc610165366004610732565b610401565b6001546001600160a01b03166100e1565b6100cc610189366004610769565b6104cc565b6100e161019c366004610626565b6002602052600090815260409020546001600160a01b031681565b6101c46101528280610786565b6001600160a01b0316631599ead5826040518263ffffffff1660e01b81526004016101ef91906107f6565b60006040518083038186803b15801561020757600080fd5b505afa15801561021b573d6000803e3d6000fd5b5050505050565b6001600160e01b031981166000908152600260205260408120546001600160a01b03168061026e578260405163727532a160e11b8152600401610265919061086a565b60405180910390fd5b6000196001600160a01b0382160161029b5782604051633780eb1360e21b8152600401610265919061086a565b92915050565b6102a961053d565b6102b3600061056a565b565b60015433906001600160a01b031681146102ed5760405163118cdaa760e01b81526001600160a01b0382166004820152602401610265565b6102f68161056a565b50565b61030161053d565b6001600160e01b031981166000908152600260205260409020546001600160a01b0316610343578060405163727532a160e11b8152600401610265919061086a565b6001600160e01b031916600090815260026020526040902080546001600160a01b0319166001179055565b61037884846103df565b6001600160a01b031663ab750e75858585856040518563ffffffff1660e01b81526004016103a9949392919061087f565b60006040518083038186803b1580156103c157600080fd5b505afa1580156103d5573d6000803e3d6000fd5b5050505050505050565b60006103fa6103f160048385876108a6565b6100dc916108d0565b9392505050565b61040961053d565b6001600160e01b031982166000908152600260205260409020546001600160a01b03166000190161044f5781604051633780eb1360e21b8152600401610265919061086a565b6001600160e01b031982166000908152600260205260409020546001600160a01b03161561049257816040516350a41efb60e01b8152600401610265919061086a565b6001600160e01b031991909116600090815260026020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b6104d461053d565b600180546001600160a01b0383166001600160a01b031990911681179091556105056000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b031633146102b35760405163118cdaa760e01b8152336004820152602401610265565b600180546001600160a01b03191690556102f681600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156105e057600080fd5b813567ffffffffffffffff8111156105f757600080fd5b8201604081850312156103fa57600080fd5b80356001600160e01b03198116811461062157600080fd5b919050565b60006020828403121561063857600080fd5b6103fa82610609565b60008083601f84011261065357600080fd5b50813567ffffffffffffffff81111561066b57600080fd5b60208301915083602082850101111561068357600080fd5b9250929050565b600080600080606085870312156106a057600080fd5b843567ffffffffffffffff8111156106b757600080fd5b6106c387828801610641565b90989097506020870135966040013595509350505050565b600080602083850312156106ee57600080fd5b823567ffffffffffffffff81111561070557600080fd5b61071185828601610641565b90969095509350505050565b6001600160a01b03811681146102f657600080fd5b6000806040838503121561074557600080fd5b61074e83610609565b9150602083013561075e8161071d565b809150509250929050565b60006020828403121561077b57600080fd5b81356103fa8161071d565b6000808335601e1984360301811261079d57600080fd5b83018035915067ffffffffffffffff8211156107b857600080fd5b60200191503681900382131561068357600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260008235601e1984360301811261081057600080fd5b830160208101903567ffffffffffffffff81111561082d57600080fd5b80360382131561083c57600080fd5b604060208501526108516060850182846107cd565b6020959095013560409490940193909352509192915050565b6001600160e01b031991909116815260200190565b6060815260006108936060830186886107cd565b6020830194909452506040015292915050565b600080858511156108b657600080fd5b838611156108c357600080fd5b5050820193919092039150565b80356001600160e01b03198116906004841015610901576001600160e01b0319600485900360031b81901b82161691505b509291505056fea26469706673582212206e976427ed30aad673219c280544f540dbb08508efc91e0ad41bbb5987dd764a64736f6c634300081a00330000000000000000000000008eab2d97dfce405a1692a21b3ff3a172d593d319
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063ab750e7511610071578063ab750e7514610131578063c17e7ba814610144578063d0a6af3014610157578063e30c39781461016a578063f2fde38b1461017b578063fa9381d31461018e57600080fd5b80631599ead5146100b95780633cadf449146100ce578063715018a6146100fd57806379ba5097146101055780638da5cb5b1461010d57806393d237f61461011e575b600080fd5b6100cc6100c73660046105ce565b6101b7565b005b6100e16100dc366004610626565b610222565b6040516001600160a01b03909116815260200160405180910390f35b6100cc6102a1565b6100cc6102b5565b6000546001600160a01b03166100e1565b6100cc61012c366004610626565b6102f9565b6100cc61013f36600461068a565b61036e565b6100e16101523660046106db565b6103df565b6100cc610165366004610732565b610401565b6001546001600160a01b03166100e1565b6100cc610189366004610769565b6104cc565b6100e161019c366004610626565b6002602052600090815260409020546001600160a01b031681565b6101c46101528280610786565b6001600160a01b0316631599ead5826040518263ffffffff1660e01b81526004016101ef91906107f6565b60006040518083038186803b15801561020757600080fd5b505afa15801561021b573d6000803e3d6000fd5b5050505050565b6001600160e01b031981166000908152600260205260408120546001600160a01b03168061026e578260405163727532a160e11b8152600401610265919061086a565b60405180910390fd5b6000196001600160a01b0382160161029b5782604051633780eb1360e21b8152600401610265919061086a565b92915050565b6102a961053d565b6102b3600061056a565b565b60015433906001600160a01b031681146102ed5760405163118cdaa760e01b81526001600160a01b0382166004820152602401610265565b6102f68161056a565b50565b61030161053d565b6001600160e01b031981166000908152600260205260409020546001600160a01b0316610343578060405163727532a160e11b8152600401610265919061086a565b6001600160e01b031916600090815260026020526040902080546001600160a01b0319166001179055565b61037884846103df565b6001600160a01b031663ab750e75858585856040518563ffffffff1660e01b81526004016103a9949392919061087f565b60006040518083038186803b1580156103c157600080fd5b505afa1580156103d5573d6000803e3d6000fd5b5050505050505050565b60006103fa6103f160048385876108a6565b6100dc916108d0565b9392505050565b61040961053d565b6001600160e01b031982166000908152600260205260409020546001600160a01b03166000190161044f5781604051633780eb1360e21b8152600401610265919061086a565b6001600160e01b031982166000908152600260205260409020546001600160a01b03161561049257816040516350a41efb60e01b8152600401610265919061086a565b6001600160e01b031991909116600090815260026020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b6104d461053d565b600180546001600160a01b0383166001600160a01b031990911681179091556105056000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b031633146102b35760405163118cdaa760e01b8152336004820152602401610265565b600180546001600160a01b03191690556102f681600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156105e057600080fd5b813567ffffffffffffffff8111156105f757600080fd5b8201604081850312156103fa57600080fd5b80356001600160e01b03198116811461062157600080fd5b919050565b60006020828403121561063857600080fd5b6103fa82610609565b60008083601f84011261065357600080fd5b50813567ffffffffffffffff81111561066b57600080fd5b60208301915083602082850101111561068357600080fd5b9250929050565b600080600080606085870312156106a057600080fd5b843567ffffffffffffffff8111156106b757600080fd5b6106c387828801610641565b90989097506020870135966040013595509350505050565b600080602083850312156106ee57600080fd5b823567ffffffffffffffff81111561070557600080fd5b61071185828601610641565b90969095509350505050565b6001600160a01b03811681146102f657600080fd5b6000806040838503121561074557600080fd5b61074e83610609565b9150602083013561075e8161071d565b809150509250929050565b60006020828403121561077b57600080fd5b81356103fa8161071d565b6000808335601e1984360301811261079d57600080fd5b83018035915067ffffffffffffffff8211156107b857600080fd5b60200191503681900382131561068357600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260008235601e1984360301811261081057600080fd5b830160208101903567ffffffffffffffff81111561082d57600080fd5b80360382131561083c57600080fd5b604060208501526108516060850182846107cd565b6020959095013560409490940193909352509192915050565b6001600160e01b031991909116815260200190565b6060815260006108936060830186886107cd565b6020830194909452506040015292915050565b600080858511156108b657600080fd5b838611156108c357600080fd5b5050820193919092039150565b80356001600160e01b03198116906004841015610901576001600160e01b0319600485900360031b81901b82161691505b509291505056fea26469706673582212206e976427ed30aad673219c280544f540dbb08508efc91e0ad41bbb5987dd764a64736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008eab2d97dfce405a1692a21b3ff3a172d593d319
-----Decoded View---------------
Arg [0] : admin (address): 0x8EaB2D97Dfce405A1692a21b3ff3A172d593D319
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008eab2d97dfce405a1692a21b3ff3a172d593d319
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.