Source Code
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FreeForAllGatekeeper
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import { SignUpGatekeeper } from "./SignUpGatekeeper.sol";
/// @title FreeForAllGatekeeper
/// @notice A SignUpGatekeeper which allows anyone to sign up.
contract FreeForAllGatekeeper is SignUpGatekeeper {
/// @notice Create a new instance of FreeForAllGatekeeper
// solhint-disable-next-line no-empty-blocks
constructor() payable {}
/// @notice setMaciInstance does nothing in this gatekeeper
/// @param _maci The MACI contract
// solhint-disable-next-line no-empty-blocks
function setMaciInstance(address _maci) public override {}
/// @notice Registers the user without any restrictions.
/// @param _address The address of the user
/// @param _data memory additional data
// solhint-disable-next-line no-empty-blocks
function register(address _address, bytes memory _data) public override {}
/// @notice Get the trait of the gatekeeper
/// @return The type of the gatekeeper
function getTrait() public pure override returns (string memory) {
return "FreeForAll";
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/// @title SignUpGatekeeper
/// @notice A gatekeeper contract which allows users to sign up for a poll.
abstract contract SignUpGatekeeper {
/// @notice Allows to set the MACI contract
// solhint-disable-next-line no-empty-blocks
function setMaciInstance(address _maci) public virtual {}
/// @notice Registers the user
/// @param _user The address of the user
/// @param _data additional data
// solhint-disable-next-line no-empty-blocks
function register(address _user, bytes memory _data) public virtual {}
/// @notice Get the trait of the gatekeeper
/// @return The type of the gatekeeper
function getTrait() public pure virtual returns (string memory);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"getTrait","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_maci","type":"address"}],"name":"setMaciInstance","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405261023a806100136000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806313e65cf31461004657806324b8fbf614610059578063cea9a2631461006b575b600080fd5b6100576100543660046100bc565b50565b005b6100576100673660046100f4565b5050565b604080518082018252600a815269119c9959519bdc905b1b60b21b6020820152905161009791906101b6565b60405180910390f35b80356001600160a01b03811681146100b757600080fd5b919050565b6000602082840312156100ce57600080fd5b6100d7826100a0565b9392505050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561010757600080fd5b610110836100a0565b9150602083013567ffffffffffffffff8082111561012d57600080fd5b818501915085601f83011261014157600080fd5b813581811115610153576101536100de565b604051601f8201601f19908116603f0116810190838211818310171561017b5761017b6100de565b8160405282815288602084870101111561019457600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600060208083528351808285015260005b818110156101e3578581018301518582016040015282016101c7565b506000604082860101526040601f19601f830116850101925050509291505056fea26469706673582212202fe8a1b648e4d247a57de9e0bdf087121a9eb19aee569584be776f8f7fb6cd5e64736f6c63430008140033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c806313e65cf31461004657806324b8fbf614610059578063cea9a2631461006b575b600080fd5b6100576100543660046100bc565b50565b005b6100576100673660046100f4565b5050565b604080518082018252600a815269119c9959519bdc905b1b60b21b6020820152905161009791906101b6565b60405180910390f35b80356001600160a01b03811681146100b757600080fd5b919050565b6000602082840312156100ce57600080fd5b6100d7826100a0565b9392505050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561010757600080fd5b610110836100a0565b9150602083013567ffffffffffffffff8082111561012d57600080fd5b818501915085601f83011261014157600080fd5b813581811115610153576101536100de565b604051601f8201601f19908116603f0116810190838211818310171561017b5761017b6100de565b8160405282815288602084870101111561019457600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600060208083528351808285015260005b818110156101e3578581018301518582016040015282016101c7565b506000604082860101526040601f19601f830116850101925050509291505056fea26469706673582212202fe8a1b648e4d247a57de9e0bdf087121a9eb19aee569584be776f8f7fb6cd5e64736f6c63430008140033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.