Skip to content
Verified contractExactApache-2.0-or-later

RigoblockGovernanceStrategy

Address0xd2793d8a9cafd7f5650bae6fd5bd64a00a6cf2c3
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.37

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.37+commit.f401782d
Language
solidity
Optimization
Yes, 200 runs
EVM version
cancun
License
Apache-2.0-or-later
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,096,507
Creation transaction
0x69d0eb23db…5f90f68e07

Read11

  • assertValidInitParams(tuple)
  • assertValidProposalThreshold(uint256)
  • assertValidQuorumThreshold(uint256)
  • beforeExecute(tuple) → (tuple)
  • beforePropose(tuple) → (tuple)
  • getProposalState(tuple,uint256,uint8) → (uint8)
  • getVotingPower(address) → (uint256)
  • votingPeriod() → (uint256)
  • votingTimestamps(uint8) → (uint256,uint256)
  • wormhole() → (address)
  • wormholeChainId() → (uint16)

Errors8

  • GovCrosschainInvalidConsistencyLevel(uint8)
  • GovCrosschainInvalidData()
  • GovCrosschainInvalidValue(uint256)
  • GovCrosschainNotMainnet()
  • GovCrosschainTargetSelf(uint16)
  • GovStrategyInvalidProposalThreshold(uint256,uint256,uint256)
  • GovStrategyInvalidQuorumThreshold(uint256,uint256,uint256)
  • GovStrategyInvalidTimeType(uint8)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "stakingProxy",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "wormhole",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "wormholeChainId",
        "type": "uint16",
        "internalType": "uint16"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "GovCrosschainInvalidConsistencyLevel",
    "type": "error",
    "inputs": [
      {
        "name": "consistencyLevel",
        "type": "uint8",
        "internalType": "uint8"
      }
    ]
  },
  {
    "name": "GovCrosschainInvalidData",
    "type": "error",
    "inputs": []
  },
  {
    "name": "GovCrosschainInvalidValue",
    "type": "error",
    "inputs": [
      {
        "name": "value",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "GovCrosschainNotMainnet",
    "type": "error",
    "inputs": []
  },
  {
    "name": "GovCrosschainTargetSelf",
    "type": "error",
    "inputs": [
      {
        "name": "targetChainId",
        "type": "uint16",
        "internalType": "uint16"
      }
    ]
  },
  {
    "name": "GovStrategyInvalidProposalThreshold",
    "type": "error",
    "inputs": [
      {
        "name": "proposalThreshold",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "floor",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "cap",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "GovStrategyInvalidQuorumThreshold",
    "type": "error",
    "inputs": [
      {
        "name": "quorumThreshold",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "floor",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "cap",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "GovStrategyInvalidTimeType",
    "type": "error",
    "inputs": [
      {
        "name": "timeType",
        "type": "uint8",
        "internalType": "enum TimeType"
      }
    ]
  },
  {
    "name": "assertValidInitParams",
    "type": "function",
    "inputs": [
      {
        "name": "params",
        "type": "tuple",
        "components": [
          {
            "name": "implementation",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "governanceStrategy",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "proposalThreshold",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "quorumThreshold",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "timeType",
            "type": "uint8",
            "internalType": "enum TimeType"
          },
          {
            "name": "name",
            "type": "string",
            "internalType": "string"
          }
        ],
        "internalType": "struct IRigoblockGovernanceFactory.Parameters"
      }
    ],
    "outputs": [],
    "stateMutability": "view"
  },
  {
    "name": "assertValidProposalThreshold",
    "type": "function",
    "inputs": [
      {
        "name": "proposalThreshold",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "view"
  },
  {
    "name": "assertValidQuorumThreshold",
    "type": "function",
    "inputs": [
      {
        "name": "quorumThreshold",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "view"
  },
  {
    "name": "beforeExecute",
    "type": "function",
    "inputs": [
      {
        "name": "action",
        "type": "tuple",
        "components": [
          {
            "name": "target",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "data",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "value",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct IGovernanceVoting.ProposedAction"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "tuple",
        "components": [
          {
            "name": "target",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "data",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "value",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct IGovernanceVoting.ProposedAction"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "beforePropose",
    "type": "function",
    "inputs": [
      {
        "name": "action",
        "type": "tuple",
        "components": [
          {
            "name": "target",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "data",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "value",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct IGovernanceVoting.ProposedAction"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "tuple",
        "components": [
          {
            "name": "target",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "data",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "value",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct IGovernanceVoting.ProposedAction"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getProposalState",
    "type": "function",
    "inputs": [
      {
        "name": "proposal",
        "type": "tuple",
        "components": [
          {
            "name": "actionsLength",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "startBlockOrTime",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "endBlockOrTime",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "votesFor",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "votesAgainst",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "votesAbstain",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "executed",
            "type": "bool",
            "internalType": "bool"
          }
        ],
        "internalType": "struct IGovernanceState.Proposal"
      },
      {
        "name": "minimumQuorum",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "timeType",
        "type": "uint8",
        "internalType": "enum TimeType"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint8",
        "internalType": "enum ProposalStatus"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getVotingPower",
    "type": "function",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "votingPeriod",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "votingTimestamps",
    "type": "function",
    "inputs": [
      {
        "name": "timeType",
        "type": "uint8",
        "internalType": "enum TimeType"
      }
    ],
    "outputs": [
      {
        "name": "startBlockOrTime",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "endBlockOrTime",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "wormhole",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "wormholeChainId",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint16",
        "internalType": "uint16"
      }
    ],
    "stateMutability": "view"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.