ETH Price: $1,960.48 (-1.64%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Create Governanc...166004942023-02-10 19:37:591117 days ago1676057879IN
RigoBlock: Governance Factory
0 ETH0.0056016918.02457496

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x60806040166004942023-02-10 19:37:591117 days ago1676057879
RigoBlock: Governance Factory
 Contract Creation0 ETH
0x60806040166004362023-02-10 19:26:231117 days ago1676057183  Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RigoblockGovernanceFactory

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license
// SPDX-License-Identifier: Apache-2.0-or-later
/*

 Copyright 2023 Rigo Intl.

 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.

*/

pragma solidity 0.8.17;

import "./RigoblockGovernanceProxy.sol";
import "../IRigoblockGovernance.sol";
import "../interfaces/IRigoblockGovernanceFactory.sol";

// solhint-disable-next-line
contract RigoblockGovernanceFactory is IRigoblockGovernanceFactory {
    Parameters private _parameters;

    // @inheritdoc IRigoblockGovernanceFactory
    function createGovernance(
        address implementation,
        address governanceStrategy,
        uint256 proposalThreshold,
        uint256 quorumThreshold,
        IRigoblockGovernance.TimeType timeType,
        string calldata name
    ) external returns (address governance) {
        assert(_isContract(implementation));
        assert(_isContract(governanceStrategy));

        // we write to storage to allow proxy to read initialization parameters
        _parameters = Parameters({
            implementation: implementation,
            governanceStrategy: governanceStrategy,
            proposalThreshold: proposalThreshold,
            quorumThreshold: quorumThreshold,
            timeType: timeType,
            name: name
        });
        governance = address(new RigoblockGovernanceProxy{salt: keccak256(abi.encode(msg.sender, name))}());

        delete _parameters;
        emit GovernanceCreated(governance);
    }

    // @inheritdoc IRigoblockGovernanceFactory
    function parameters() external view override returns (Parameters memory) {
        return _parameters;
    }

    /// @dev Returns whether an address is a contract.
    /// @return Bool target address has code.
    function _isContract(address target) private view returns (bool) {
        return target.code.length > 0;
    }
}

File 2 of 9 : IRigoblockGovernance.sol
// SPDX-License-Identifier: Apache-2.0
/*

  Copyright 2023 Rigo Intl.

  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.

*/

pragma solidity >=0.8.0 <0.9.0;

import "./interfaces/governance/IGovernanceEvents.sol";
import "./interfaces/governance/IGovernanceInitializer.sol";
import "./interfaces/governance/IGovernanceState.sol";
import "./interfaces/governance/IGovernanceUpgrade.sol";
import "./interfaces/governance/IGovernanceVoting.sol";

interface IRigoblockGovernance is
    IGovernanceEvents,
    IGovernanceInitializer,
    IGovernanceUpgrade,
    IGovernanceVoting,
    IGovernanceState
{}

// SPDX-License-Identifier: Apache-2.0-or-later
/*

 Copyright 2017-2022 RigoBlock, Rigo Investment Sagl, Rigo Intl.

 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.

*/

pragma solidity >=0.8.0 <0.9.0;

import "../IRigoblockGovernance.sol";

// solhint-disable-next-line
interface IRigoblockGovernanceFactory {
    /// @notice Emitted when a governance is created.
    /// @param governance Address of the governance proxy.
    event GovernanceCreated(address governance);

    /// @notice Creates a new governance proxy.
    /// @param implementation Address of the governance implementation contract.
    /// @param governanceStrategy Address of the voting strategy.
    /// @param proposalThreshold Number of votes required for creating a new proposal.
    /// @param quorumThreshold Number of votes required for execution.
    /// @param timeType Enum of time type (block number or timestamp).
    /// @param name Human readable string of the name.
    /// @return governance Address of the new governance.
    function createGovernance(
        address implementation,
        address governanceStrategy,
        uint256 proposalThreshold,
        uint256 quorumThreshold,
        IRigoblockGovernance.TimeType timeType,
        string calldata name
    ) external returns (address governance);

    struct Parameters {
        /// @notice Address of the governance implementation contract.
        address implementation;
        /// @notice Address of the voting strategy.
        address governanceStrategy;
        /// @notice Number of votes required for creating a new proposal.
        uint256 proposalThreshold;
        /// @notice Number of votes required for execution.
        uint256 quorumThreshold;
        /// @notice Type of time chosed, block number of timestamp.
        IRigoblockGovernance.TimeType timeType;
        /// @notice String of the name of the application.
        string name;
    }

    /// @notice Returns the governance initialization parameters at proxy deploy.
    /// @return Tuple of the governance parameters.
    function parameters() external view returns (Parameters memory);
}

File 4 of 9 : IGovernanceEvents.sol
// SPDX-License-Identifier: Apache-2.0
/*

  Copyright 2023 Rigo Intl.

  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.

*/

pragma solidity >=0.8.0 <0.9.0;

import "./IGovernanceVoting.sol";

interface IGovernanceEvents {
    /// @notice Emitted when a new proposal is created.
    /// @param proposer Address of the proposer.
    /// @param proposalId Number of the proposal.
    /// @param actions Struct array of actions (targets, datas, values).
    /// @param startBlockOrTime Timestamp in seconds after which proposal can be voted on.
    /// @param endBlockOrTime Timestamp in seconds after which proposal can be executed.
    /// @param description String description of proposal.
    event ProposalCreated(
        address proposer,
        uint256 proposalId,
        IGovernanceVoting.ProposedAction[] actions,
        uint256 startBlockOrTime,
        uint256 endBlockOrTime,
        string description
    );

    /// @notice Emitted when a proposal is executed.
    /// @param proposalId Number of the proposal.
    event ProposalExecuted(uint256 proposalId);

    /// @notice Emmited when the governance strategy is upgraded.
    /// @param newStrategy Address of the new strategy contract.
    event StrategyUpgraded(address newStrategy);

    /// @notice Emitted when voting thresholds get updated.
    /// @dev Only governance can update thresholds.
    /// @param proposalThreshold Number of votes required to add a proposal.
    /// @param quorumThreshold Number of votes required to execute a proposal.
    event ThresholdsUpdated(uint256 proposalThreshold, uint256 quorumThreshold);

    /// @notice Emitted when implementation written to proxy storage.
    /// @dev Emitted also at first variable initialization.
    /// @param newImplementation Address of the new implementation.
    event Upgraded(address indexed newImplementation);

    /// @notice Emitted when a voter votes.
    /// @param voter Address of the voter.
    /// @param proposalId Number of the proposal.
    /// @param voteType Number of vote type.
    /// @param votingPower Number of votes.
    event VoteCast(address voter, uint256 proposalId, IGovernanceVoting.VoteType voteType, uint256 votingPower);
}

// SPDX-License-Identifier: Apache-2.0
/*

  Copyright 2023 Rigo Intl.

  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.

*/

pragma solidity >=0.8.0 <0.9.0;

interface IGovernanceInitializer {
    /// @notice Initializes the Rigoblock Governance.
    /// @dev Params are stored in factory and read from there.
    function initializeGovernance() external;
}

// SPDX-License-Identifier: Apache-2.0
/*

  Copyright 2023 Rigo Intl.

  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.

*/

pragma solidity >=0.8.0 <0.9.0;

import "./IGovernanceVoting.sol";

interface IGovernanceState {
    enum ProposalState {
        Pending,
        Active,
        Canceled,
        Qualified,
        Defeated,
        Succeeded,
        Queued,
        Expired,
        Executed
    }

    enum TimeType {
        Blocknumber,
        Timestamp
    }

    struct Proposal {
        uint256 actionsLength;
        uint256 startBlockOrTime;
        uint256 endBlockOrTime;
        uint256 votesFor;
        uint256 votesAgainst;
        uint256 votesAbstain;
        bool executed;
    }

    struct ProposalWrapper {
        Proposal proposal;
        IGovernanceVoting.ProposedAction[] proposedAction;
    }

    /// @notice Returns the actions proposed for a given proposal.
    /// @param proposalId Number of the proposal.
    /// @return proposedActions Array of tuple of proposed actions.
    function getActions(uint256 proposalId)
        external
        view
        returns (IGovernanceVoting.ProposedAction[] memory proposedActions);

    /// @notice Returns a proposal for a given id.
    /// @param proposalId The number of the proposal.
    /// @return proposalWrapper Tuple wrapper of the proposal and proposed actions tuples.
    function getProposalById(uint256 proposalId) external view returns (ProposalWrapper memory proposalWrapper);

    /// @notice Returns the state of a proposal.
    /// @param proposalId Number of the proposal.
    /// @return Number of proposal state.
    function getProposalState(uint256 proposalId) external view returns (ProposalState);

    struct Receipt {
        bool hasVoted;
        uint96 votes;
        IGovernanceVoting.VoteType voteType;
    }

    /// @notice Returns the receipt of a voter for a given proposal.
    /// @param proposalId Number of the proposal.
    /// @param voter Address of the voter.
    /// @return Tuple of voter receipt.
    function getReceipt(uint256 proposalId, address voter) external view returns (Receipt memory);

    /// @notice Computes the current voting power of the given account.
    /// @param account The address of the account.
    /// @return votingPower The current voting power of the given account.
    function getVotingPower(address account) external view returns (uint256 votingPower);

    struct GovernanceParameters {
        address strategy;
        uint256 proposalThreshold;
        uint256 quorumThreshold;
        TimeType timeType;
    }

    struct EnhancedParams {
        GovernanceParameters params;
        string name;
        string version;
    }

    /// @notice Returns the governance parameters.
    /// @return Tuple of the governance parameters.
    function governanceParameters() external view returns (EnhancedParams memory);

    /// @notice Returns the name of the governace.
    /// @return Human readable string of the name.
    function name() external view returns (string memory);

    /// @notice Returns the total number of proposals.
    /// @return count The number of proposals.
    function proposalCount() external view returns (uint256 count);

    /// @notice Returns all proposals ever made to the governance.
    /// @return proposalWrapper Tuple array of all governance proposals.
    function proposals() external view returns (ProposalWrapper[] memory proposalWrapper);

    /// @notice Returns the voting period.
    /// @return Number of blocks or seconds.
    function votingPeriod() external view returns (uint256);
}

// SPDX-License-Identifier: Apache-2.0
/*

  Copyright 2023 Rigo Intl.

  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.

*/

pragma solidity >=0.8.0 <0.9.0;

interface IGovernanceUpgrade {
    /// @notice Updates the proposal and quorum thresholds to the given values.
    /// @dev Only callable by the governance contract itself.
    /// @dev Thresholds can only be updated via a successful governance proposal.
    /// @param newProposalThreshold The new value for the proposal threshold.
    /// @param newQuorumThreshold The new value for the quorum threshold.
    function updateThresholds(uint256 newProposalThreshold, uint256 newQuorumThreshold) external;

    /// @notice Updates the governance implementation address.
    /// @dev Only callable after successful voting.
    /// @param newImplementation Address of the new governance implementation contract.
    function upgradeImplementation(address newImplementation) external;

    /// @notice Updates the governance strategy plugin.
    /// @dev Only callable by the governance contract itself.
    /// @param newStrategy Address of the new strategy contract.
    function upgradeStrategy(address newStrategy) external;
}

// SPDX-License-Identifier: Apache-2.0
/*

  Copyright 2023 Rigo Intl.

  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.

*/

pragma solidity >=0.8.0 <0.9.0;

import "./IGovernanceEvents.sol";

interface IGovernanceVoting {
    enum VoteType {
        For,
        Against,
        Abstain
    }

    /// @notice Casts a vote for the given proposal.
    /// @dev Only callable during the voting period for that proposal. One address can only vote once.
    /// @param proposalId The ID of the proposal to vote on.
    /// @param voteType Whether to support, not support or abstain.
    function castVote(uint256 proposalId, VoteType voteType) external;

    /// @notice Casts a vote for the given proposal, by signature.
    /// @dev Only callable during the voting period for that proposal. One voter can only vote once.
    /// @param proposalId The ID of the proposal to vote on.
    /// @param voteType Whether to support, not support or abstain.
    /// @param v the v field of the signature.
    /// @param r the r field of the signature.
    /// @param s the s field of the signature.
    function castVoteBySignature(
        uint256 proposalId,
        VoteType voteType,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /// @notice Executes a proposal that has passed and is currently executable.
    /// @param proposalId The ID of the proposal to execute.
    function execute(uint256 proposalId) external payable;

    struct ProposedAction {
        address target;
        bytes data;
        uint256 value;
    }

    /// @notice Creates a proposal on the the given actions. Must have at least `proposalThreshold`.
    /// @dev Must have at least `proposalThreshold` of voting power to call this function.
    /// @param actions The proposed actions. An action specifies a contract call.
    /// @param description A text description for the proposal.
    /// @return proposalId The ID of the newly created proposal.
    function propose(ProposedAction[] calldata actions, string calldata description)
        external
        returns (uint256 proposalId);
}

// SPDX-License-Identifier: Apache-2.0
/*

  Copyright 2023 Rigo Intl.

  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.

*/

pragma solidity 0.8.17;

import "../interfaces/IRigoblockGovernanceFactory.sol";

contract RigoblockGovernanceProxy {
    /// @notice Emitted when implementation written to proxy storage.
    /// @dev Emitted also at first variable initialization.
    /// @param newImplementation Address of the new implementation.
    event Upgraded(address indexed newImplementation);

    // implementation slot is used to store implementation address, a contract which implements the governance logic.
    // Reduced deployment cost by using internal variable.
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /// @notice Sets address of implementation contract.
    constructor() payable {
        // store implementation address in implementation slot value
        assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));

        // we retrieve the set implementation from the factory storage
        address implementation = IRigoblockGovernanceFactory(msg.sender).parameters().implementation;

        // we store the implementation address
        _getImplementation().implementation = implementation;
        emit Upgraded(implementation);

        // initialize governance
        // abi.encodeWithSelector(IRigoblockGovernance.initializeGovernance.selector)
        (, bytes memory returnData) = implementation.delegatecall(abi.encodeWithSelector(0xe9134903));

        // we must assert initialization didn't fail, otherwise it could fail silently and still deploy the governance.
        assert(returnData.length == 0);
    }

    /* solhint-disable no-complex-fallback */
    /// @notice Fallback function forwards all transactions and returns all received return data.
    fallback() external payable {
        address implementation = _getImplementation().implementation;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            calldatacopy(0, 0, calldatasize())
            let success := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
            returndatacopy(0, 0, returndatasize())
            if eq(success, 0) {
                revert(0, returndatasize())
            }
            return(0, returndatasize())
        }
    }

    /// @notice Allows this contract to receive ether.
    receive() external payable {}

    /* solhint-enable no-complex-fallback */

    /// @notice Implementation slot is accessed directly.
    /// @dev Saves gas compared to using storage slot library.
    /// @param implementation Address of the implementation.
    struct ImplementationSlot {
        address implementation;
    }

    /// @notice Method to read/write from/to implementation slot.
    /// @return s Storage slot of the governance implementation.
    function _getImplementation() private pure returns (ImplementationSlot storage s) {
        assembly {
            s.slot := _IMPLEMENTATION_SLOT
        }
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"governance","type":"address"}],"name":"GovernanceCreated","type":"event"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"address","name":"governanceStrategy","type":"address"},{"internalType":"uint256","name":"proposalThreshold","type":"uint256"},{"internalType":"uint256","name":"quorumThreshold","type":"uint256"},{"internalType":"enum IGovernanceState.TimeType","name":"timeType","type":"uint8"},{"internalType":"string","name":"name","type":"string"}],"name":"createGovernance","outputs":[{"internalType":"address","name":"governance","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"parameters","outputs":[{"components":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"address","name":"governanceStrategy","type":"address"},{"internalType":"uint256","name":"proposalThreshold","type":"uint256"},{"internalType":"uint256","name":"quorumThreshold","type":"uint256"},{"internalType":"enum IGovernanceState.TimeType","name":"timeType","type":"uint8"},{"internalType":"string","name":"name","type":"string"}],"internalType":"struct IRigoblockGovernanceFactory.Parameters","name":"","type":"tuple"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50610cb8806100206000396000f3fe60806040523480156200001157600080fd5b50600436106200003a5760003560e01c806389035730146200003f578063a1cbaff41462000061575b600080fd5b6200004962000091565b604051620000589190620004d4565b60405180910390f35b620000786200007236600462000575565b620001df565b6040516001600160a01b03909116815260200162000058565b620000cb6040805160c081018252600080825260208201819052918101829052606081018290529060808201908152602001606081525090565b6040805160c081018252600080546001600160a01b03908116835260018054909116602084015260025493830193909352600354606083015260045491929091608084019160ff9091169081111562000128576200012862000476565b60018111156200013c576200013c62000476565b815260200160058201805462000152906200063d565b80601f016020809104026020016040519081016040528092919081815260200182805462000180906200063d565b8015620001d15780601f10620001a557610100808354040283529160200191620001d1565b820191906000526020600020905b815481529060010190602001808311620001b357829003601f168201915b505050505081525050905090565b60006001600160a01b0388163b620001fb57620001fb62000679565b6001600160a01b0387163b62000215576200021562000679565b6040518060c00160405280896001600160a01b03168152602001886001600160a01b031681526020018781526020018681526020018560018111156200025f576200025f62000476565b815260200184848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050825181546001600160a01b039182166001600160a01b0319918216178355602085015160018054919093169116178155604084015160025560608401516003556080840151600480549394509092909160ff1990911690838181111562000307576200030762000476565b021790555060a08201516005820190620003229082620006f8565b50506040516200033c9150339085908590602001620007c5565b6040516020818303038152906040528051906020012060405162000360906200040b565b8190604051809103906000f590508015801562000381573d6000803e3d6000fd5b50600080546001600160a01b03199081168255600180549091169055600281905560038190556004805460ff1916905590915080620003c260058262000419565b50506040516001600160a01b03821681527f7d665fbb2700ef23f717fb231fcd73aff73a785b5121909fb9bf32de3039de839060200160405180910390a1979650505050505050565b61047d806200080683390190565b50805462000427906200063d565b6000825580601f1062000438575050565b601f0160209004906000526020600020908101906200045891906200045b565b50565b5b808211156200047257600081556001016200045c565b5090565b634e487b7160e01b600052602160045260246000fd5b6000815180845260005b81811015620004b45760208185018101518683018201520162000496565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600060018060a01b038084511660208401528060208501511660408401525060408301516060830152606083015160808301526080830151600281106200052f57634e487b7160e01b600052602160045260246000fd5b8060a08401525060a083015160c0808401526200055060e08401826200048c565b949350505050565b80356001600160a01b03811681146200057057600080fd5b919050565b600080600080600080600060c0888a0312156200059157600080fd5b6200059c8862000558565b9650620005ac6020890162000558565b95506040880135945060608801359350608088013560028110620005cf57600080fd5b925060a088013567ffffffffffffffff80821115620005ed57600080fd5b818a0191508a601f8301126200060257600080fd5b8135818111156200061257600080fd5b8b60208285010111156200062557600080fd5b60208301945080935050505092959891949750929550565b600181811c908216806200065257607f821691505b6020821081036200067357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f821115620006f357600081815260208120601f850160051c81016020861015620006ce5750805b601f850160051c820191505b81811015620006ef57828155600101620006da565b5050505b505050565b815167ffffffffffffffff8111156200071557620007156200068f565b6200072d816200072684546200063d565b84620006a5565b602080601f8311600181146200076557600084156200074c5750858301515b600019600386901b1c1916600185901b178555620006ef565b600085815260208120601f198616915b82811015620007965788860151825594840194600190910190840162000775565b5085821015620007b55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f191601019291505056fe608060405261002f60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6101ab565b60008051602061045d8339815191521461004b5761004b6101d2565b6000336001600160a01b031663890357306040518163ffffffff1660e01b8152600401600060405180830381865afa15801561008b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526100b391908101906102ed565b5190508060008051602061045d83398151915280546001600160a01b0319166001600160a01b03928316179055604051908216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a260408051600481526024810182526020810180516001600160e01b031663e913490360e01b17905290516000916001600160a01b0384169161014f91906103a6565b600060405180830381855af49150503d806000811461018a576040519150601f19603f3d011682016040523d82523d6000602084013e61018f565b606091505b5091505080516000146101a4576101a46101d2565b50506103c2565b818103818111156101cc57634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715610220576102206101e8565b60405290565b80516001600160a01b038116811461023d57600080fd5b919050565b60005b8381101561025d578181015183820152602001610245565b50506000910152565b600082601f83011261027757600080fd5b81516001600160401b0380821115610291576102916101e8565b604051601f8301601f19908116603f011681019082821181831017156102b9576102b96101e8565b816040528381528660208588010111156102d257600080fd5b6102e3846020830160208901610242565b9695505050505050565b6000602082840312156102ff57600080fd5b81516001600160401b038082111561031657600080fd5b9083019060c0828603121561032a57600080fd5b6103326101fe565b61033b83610226565b815261034960208401610226565b6020820152604083015160408201526060830151606082015260808301516002811061037457600080fd5b608082015260a08301518281111561038b57600080fd5b61039787828601610266565b60a08301525095945050505050565b600082516103b8818460208701610242565b9190910192915050565b608d806103d06000396000f3fe608060405236600a57005b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b03163660008037600080366000845af43d6000803e806051573d6000fd5b503d6000f3fea2646970667358221220b46548fd0886cca68ec07b40b37c6d687a9b39ebefe4fc50ce2a0f50e26277ab64736f6c63430008110033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200114d65018832463a479fb84d03b352d431ea4fcb18714a47998250420e8d80164736f6c63430008110033

Deployed Bytecode

0x60806040523480156200001157600080fd5b50600436106200003a5760003560e01c806389035730146200003f578063a1cbaff41462000061575b600080fd5b6200004962000091565b604051620000589190620004d4565b60405180910390f35b620000786200007236600462000575565b620001df565b6040516001600160a01b03909116815260200162000058565b620000cb6040805160c081018252600080825260208201819052918101829052606081018290529060808201908152602001606081525090565b6040805160c081018252600080546001600160a01b03908116835260018054909116602084015260025493830193909352600354606083015260045491929091608084019160ff9091169081111562000128576200012862000476565b60018111156200013c576200013c62000476565b815260200160058201805462000152906200063d565b80601f016020809104026020016040519081016040528092919081815260200182805462000180906200063d565b8015620001d15780601f10620001a557610100808354040283529160200191620001d1565b820191906000526020600020905b815481529060010190602001808311620001b357829003601f168201915b505050505081525050905090565b60006001600160a01b0388163b620001fb57620001fb62000679565b6001600160a01b0387163b62000215576200021562000679565b6040518060c00160405280896001600160a01b03168152602001886001600160a01b031681526020018781526020018681526020018560018111156200025f576200025f62000476565b815260200184848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050825181546001600160a01b039182166001600160a01b0319918216178355602085015160018054919093169116178155604084015160025560608401516003556080840151600480549394509092909160ff1990911690838181111562000307576200030762000476565b021790555060a08201516005820190620003229082620006f8565b50506040516200033c9150339085908590602001620007c5565b6040516020818303038152906040528051906020012060405162000360906200040b565b8190604051809103906000f590508015801562000381573d6000803e3d6000fd5b50600080546001600160a01b03199081168255600180549091169055600281905560038190556004805460ff1916905590915080620003c260058262000419565b50506040516001600160a01b03821681527f7d665fbb2700ef23f717fb231fcd73aff73a785b5121909fb9bf32de3039de839060200160405180910390a1979650505050505050565b61047d806200080683390190565b50805462000427906200063d565b6000825580601f1062000438575050565b601f0160209004906000526020600020908101906200045891906200045b565b50565b5b808211156200047257600081556001016200045c565b5090565b634e487b7160e01b600052602160045260246000fd5b6000815180845260005b81811015620004b45760208185018101518683018201520162000496565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600060018060a01b038084511660208401528060208501511660408401525060408301516060830152606083015160808301526080830151600281106200052f57634e487b7160e01b600052602160045260246000fd5b8060a08401525060a083015160c0808401526200055060e08401826200048c565b949350505050565b80356001600160a01b03811681146200057057600080fd5b919050565b600080600080600080600060c0888a0312156200059157600080fd5b6200059c8862000558565b9650620005ac6020890162000558565b95506040880135945060608801359350608088013560028110620005cf57600080fd5b925060a088013567ffffffffffffffff80821115620005ed57600080fd5b818a0191508a601f8301126200060257600080fd5b8135818111156200061257600080fd5b8b60208285010111156200062557600080fd5b60208301945080935050505092959891949750929550565b600181811c908216806200065257607f821691505b6020821081036200067357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f821115620006f357600081815260208120601f850160051c81016020861015620006ce5750805b601f850160051c820191505b81811015620006ef57828155600101620006da565b5050505b505050565b815167ffffffffffffffff8111156200071557620007156200068f565b6200072d816200072684546200063d565b84620006a5565b602080601f8311600181146200076557600084156200074c5750858301515b600019600386901b1c1916600185901b178555620006ef565b600085815260208120601f198616915b82811015620007965788860151825594840194600190910190840162000775565b5085821015620007b55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f191601019291505056fe608060405261002f60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6101ab565b60008051602061045d8339815191521461004b5761004b6101d2565b6000336001600160a01b031663890357306040518163ffffffff1660e01b8152600401600060405180830381865afa15801561008b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526100b391908101906102ed565b5190508060008051602061045d83398151915280546001600160a01b0319166001600160a01b03928316179055604051908216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a260408051600481526024810182526020810180516001600160e01b031663e913490360e01b17905290516000916001600160a01b0384169161014f91906103a6565b600060405180830381855af49150503d806000811461018a576040519150601f19603f3d011682016040523d82523d6000602084013e61018f565b606091505b5091505080516000146101a4576101a46101d2565b50506103c2565b818103818111156101cc57634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715610220576102206101e8565b60405290565b80516001600160a01b038116811461023d57600080fd5b919050565b60005b8381101561025d578181015183820152602001610245565b50506000910152565b600082601f83011261027757600080fd5b81516001600160401b0380821115610291576102916101e8565b604051601f8301601f19908116603f011681019082821181831017156102b9576102b96101e8565b816040528381528660208588010111156102d257600080fd5b6102e3846020830160208901610242565b9695505050505050565b6000602082840312156102ff57600080fd5b81516001600160401b038082111561031657600080fd5b9083019060c0828603121561032a57600080fd5b6103326101fe565b61033b83610226565b815261034960208401610226565b6020820152604083015160408201526060830151606082015260808301516002811061037457600080fd5b608082015260a08301518281111561038b57600080fd5b61039787828601610266565b60a08301525095945050505050565b600082516103b8818460208701610242565b9190910192915050565b608d806103d06000396000f3fe608060405236600a57005b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b03163660008037600080366000845af43d6000803e806051573d6000fd5b503d6000f3fea2646970667358221220b46548fd0886cca68ec07b40b37c6d687a9b39ebefe4fc50ce2a0f50e26277ab64736f6c63430008110033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200114d65018832463a479fb84d03b352d431ea4fcb18714a47998250420e8d80164736f6c63430008110033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

The Rigoblock Governance Factory contract.

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.