Skip to main content

Class: VotingReputationFactory

Constructors

new VotingReputationFactory()

new VotingReputationFactory(): VotingReputationFactory

Returns

VotingReputationFactory

Properties

abi

readonly static abi: readonly [{ anonymous: false; inputs: readonly [{ indexed: false; internalType: "address"; name: "userAddress"; type: "address"; }, { indexed: false; internalType: "address payable"; name: "relayerAddress"; type: "address"; }, { indexed: false; internalType: "bytes"; name: "payload"; type: "bytes"; }]; name: "MetaTransactionExecuted"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "uint256"; name: "motionId"; type: "uint256"; }, { indexed: false; internalType: "address"; name: "creator"; type: "address"; }, { indexed: true; internalType: "uint256"; name: "domainId"; type: "uint256"; }]; name: "MotionCreated"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "uint256"; name: "motionId"; type: "uint256"; }, { indexed: false; internalType: "address"; name: "escalator"; type: "address"; }, { indexed: true; internalType: "uint256"; name: "domainId"; type: "uint256"; }, { indexed: true; internalType: "uint256"; name: "newDomainId"; type: "uint256"; }]; name: "MotionEscalated"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "uint256"; name: "motionId"; type: "uint256"; }, { indexed: false; internalType: "uint256"; name: "eventIndex"; type: "uint256"; }]; name: "MotionEventSet"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "uint256"; name: "motionId"; type: "uint256"; }, { indexed: false; internalType: "bytes"; name: "action"; type: "bytes"; }, { indexed: false; internalType: "bool"; name: "executed"; type: "bool"; }]; name: "MotionFinalized"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "uint256"; name: "motionId"; type: "uint256"; }, { indexed: true; internalType: "address"; name: "staker"; type: "address"; }, { indexed: true; internalType: "uint256"; name: "vote"; type: "uint256"; }, { indexed: false; internalType: "uint256"; name: "amount"; type: "uint256"; }]; name: "MotionRewardClaimed"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "uint256"; name: "motionId"; type: "uint256"; }, { indexed: true; internalType: "address"; name: "staker"; type: "address"; }, { indexed: true; internalType: "uint256"; name: "vote"; type: "uint256"; }, { indexed: false; internalType: "uint256"; name: "amount"; type: "uint256"; }]; name: "MotionStaked"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "uint256"; name: "motionId"; type: "uint256"; }, { indexed: true; internalType: "address"; name: "voter"; type: "address"; }, { indexed: true; internalType: "uint256"; name: "vote"; type: "uint256"; }]; name: "MotionVoteRevealed"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "uint256"; name: "motionId"; type: "uint256"; }, { indexed: true; internalType: "address"; name: "voter"; type: "address"; }]; name: "MotionVoteSubmitted"; type: "event"; }, { inputs: readonly [{ internalType: "bool"; name: "_deprecated"; type: "bool"; }]; name: "deprecate"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "userAddress"; type: "address"; }, { internalType: "bytes"; name: "payload"; type: "bytes"; }, { internalType: "bytes32"; name: "sigR"; type: "bytes32"; }, { internalType: "bytes32"; name: "sigS"; type: "bytes32"; }, { internalType: "uint8"; name: "sigV"; type: "uint8"; }]; name: "executeMetaTransaction"; outputs: readonly [{ internalType: "bytes"; name: ""; type: "bytes"; }]; stateMutability: "payable"; type: "function"; }, { inputs: readonly []; name: "finishUpgrade"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes4"; name: "_sig"; type: "bytes4"; }]; name: "getCapabilityRoles"; outputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getColony"; outputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getDeprecated"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "userAddress"; type: "address"; }]; name: "getMetatransactionNonce"; outputs: readonly [{ internalType: "uint256"; name: "nonce"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "identifier"; outputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "_colony"; type: "address"; }]; name: "install"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes[]"; name: ""; type: "bytes[]"; }]; name: "multicall"; outputs: readonly [{ internalType: "bytes[]"; name: "results"; type: "bytes[]"; }]; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "uninstall"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "version"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_totalStakeFraction"; type: "uint256"; }, { internalType: "uint256"; name: "_voterRewardFraction"; type: "uint256"; }, { internalType: "uint256"; name: "_userMinStakeFraction"; type: "uint256"; }, { internalType: "uint256"; name: "_maxVoteFraction"; type: "uint256"; }, { internalType: "uint256"; name: "_stakePeriod"; type: "uint256"; }, { internalType: "uint256"; name: "_submitPeriod"; type: "uint256"; }, { internalType: "uint256"; name: "_revealPeriod"; type: "uint256"; }, { internalType: "uint256"; name: "_escalationPeriod"; type: "uint256"; }]; name: "initialise"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_domainId"; type: "uint256"; }, { internalType: "uint256"; name: "_childSkillIndex"; type: "uint256"; }, { internalType: "address"; name: "_altTarget"; type: "address"; }, { internalType: "bytes"; name: "_action"; type: "bytes"; }, { internalType: "bytes"; name: "_key"; type: "bytes"; }, { internalType: "bytes"; name: "_value"; type: "bytes"; }, { internalType: "uint256"; name: "_branchMask"; type: "uint256"; }, { internalType: "bytes32[]"; name: "_siblings"; type: "bytes32[]"; }]; name: "createMotion"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "uint256"; name: "_permissionDomainId"; type: "uint256"; }, { internalType: "uint256"; name: "_childSkillIndex"; type: "uint256"; }, { internalType: "uint256"; name: "_vote"; type: "uint256"; }, { internalType: "uint256"; name: "_amount"; type: "uint256"; }, { internalType: "bytes"; name: "_key"; type: "bytes"; }, { internalType: "bytes"; name: "_value"; type: "bytes"; }, { internalType: "uint256"; name: "_branchMask"; type: "uint256"; }, { internalType: "bytes32[]"; name: "_siblings"; type: "bytes32[]"; }]; name: "stakeMotion"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "bytes32"; name: "_voteSecret"; type: "bytes32"; }, { internalType: "bytes"; name: "_key"; type: "bytes"; }, { internalType: "bytes"; name: "_value"; type: "bytes"; }, { internalType: "uint256"; name: "_branchMask"; type: "uint256"; }, { internalType: "bytes32[]"; name: "_siblings"; type: "bytes32[]"; }]; name: "submitVote"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "bytes32"; name: "_salt"; type: "bytes32"; }, { internalType: "uint256"; name: "_vote"; type: "uint256"; }, { internalType: "bytes"; name: "_key"; type: "bytes"; }, { internalType: "bytes"; name: "_value"; type: "bytes"; }, { internalType: "uint256"; name: "_branchMask"; type: "uint256"; }, { internalType: "bytes32[]"; name: "_siblings"; type: "bytes32[]"; }]; name: "revealVote"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "uint256"; name: "_newDomainId"; type: "uint256"; }, { internalType: "uint256"; name: "_childSkillIndex"; type: "uint256"; }, { internalType: "bytes"; name: "_key"; type: "bytes"; }, { internalType: "bytes"; name: "_value"; type: "bytes"; }, { internalType: "uint256"; name: "_branchMask"; type: "uint256"; }, { internalType: "bytes32[]"; name: "_siblings"; type: "bytes32[]"; }]; name: "escalateMotion"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }]; name: "finalizeMotion"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }]; name: "failingExecutionAllowed"; outputs: readonly [{ internalType: "bool"; name: "_allowed"; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "uint256"; name: "_permissionDomainId"; type: "uint256"; }, { internalType: "uint256"; name: "_childSkillIndex"; type: "uint256"; }, { internalType: "address"; name: "_staker"; type: "address"; }, { internalType: "uint256"; name: "_vote"; type: "uint256"; }]; name: "claimReward"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "getTotalStakeFraction"; outputs: readonly [{ internalType: "uint256"; name: "_fraction"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getVoterRewardFraction"; outputs: readonly [{ internalType: "uint256"; name: "_fraction"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getUserMinStakeFraction"; outputs: readonly [{ internalType: "uint256"; name: "_fraction"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getMaxVoteFraction"; outputs: readonly [{ internalType: "uint256"; name: "_fraction"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getStakePeriod"; outputs: readonly [{ internalType: "uint256"; name: "_period"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getSubmitPeriod"; outputs: readonly [{ internalType: "uint256"; name: "_period"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getRevealPeriod"; outputs: readonly [{ internalType: "uint256"; name: "_period"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getEscalationPeriod"; outputs: readonly [{ internalType: "uint256"; name: "_period"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getMotionCount"; outputs: readonly [{ internalType: "uint256"; name: "_count"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }]; name: "getMotion"; outputs: readonly [{ components: readonly [{ internalType: "uint64[3]"; name: "events"; type: "uint64[3]"; }, { internalType: "bytes32"; name: "rootHash"; type: "bytes32"; }, { internalType: "uint256"; name: "domainId"; type: "uint256"; }, { internalType: "uint256"; name: "skillId"; type: "uint256"; }, { internalType: "uint256"; name: "skillRep"; type: "uint256"; }, { internalType: "uint256"; name: "repSubmitted"; type: "uint256"; }, { internalType: "uint256"; name: "paidVoterComp"; type: "uint256"; }, { internalType: "uint256[2]"; name: "pastVoterComp"; type: "uint256[2]"; }, { internalType: "uint256[2]"; name: "stakes"; type: "uint256[2]"; }, { internalType: "uint256[2]"; name: "votes"; type: "uint256[2]"; }, { internalType: "bool"; name: "escalated"; type: "bool"; }, { internalType: "bool"; name: "finalized"; type: "bool"; }, { internalType: "address"; name: "altTarget"; type: "address"; }, { internalType: "bytes4"; name: "sig"; type: "bytes4"; }, { internalType: "bytes"; name: "action"; type: "bytes"; }]; internalType: "struct VotingReputationDataTypes.Motion"; name: "_motion"; type: "tuple"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "address"; name: "_staker"; type: "address"; }, { internalType: "uint256"; name: "_vote"; type: "uint256"; }]; name: "getStake"; outputs: readonly [{ internalType: "uint256"; name: "_stake"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "_structHash"; type: "bytes32"; }]; name: "getExpenditureMotionCount"; outputs: readonly [{ internalType: "uint256"; name: "_count"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_expenditureId"; type: "uint256"; }]; name: "getExpenditureMotionLock"; outputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_expenditureId"; type: "uint256"; }]; name: "getExpenditurePastVote"; outputs: readonly [{ internalType: "uint256"; name: "_vote"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "_slotSignature"; type: "bytes32"; }]; name: "getExpenditurePastVotes_DEPRECATED"; outputs: readonly [{ internalType: "uint256"; name: "_vote"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }]; name: "getMotionState"; outputs: readonly [{ internalType: "enum VotingReputationDataTypes.MotionState"; name: "_motionState"; type: "uint8"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "uint256"; name: "_voterRep"; type: "uint256"; }]; name: "getVoterReward"; outputs: readonly [{ internalType: "uint256"; name: "_reward"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "uint256"; name: "_voterRep"; type: "uint256"; }, { internalType: "address"; name: "_voterAddress"; type: "address"; }]; name: "getVoterRewardRange"; outputs: readonly [{ internalType: "uint256"; name: "_rewardMin"; type: "uint256"; }, { internalType: "uint256"; name: "_rewardMax"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes"; name: "_action"; type: "bytes"; }, { internalType: "address"; name: "_altTarget"; type: "address"; }]; name: "getActionSummary"; outputs: readonly [{ components: readonly [{ internalType: "bytes4"; name: "sig"; type: "bytes4"; }, { internalType: "uint256"; name: "domainSkillId"; type: "uint256"; }, { internalType: "uint256"; name: "expenditureId"; type: "uint256"; }]; internalType: "struct VotingReputationDataTypes.ActionSummary"; name: "_summary"; type: "tuple"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "address"; name: "_staker"; type: "address"; }, { internalType: "uint256"; name: "_vote"; type: "uint256"; }]; name: "getStakerReward"; outputs: readonly [{ internalType: "uint256"; name: "_reward"; type: "uint256"; }, { internalType: "uint256"; name: "_penalty"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_motionId"; type: "uint256"; }, { internalType: "uint256"; name: "_permissionDomainId"; type: "uint256"; }, { internalType: "uint256"; name: "_childSkillIndex"; type: "uint256"; }, { internalType: "address"; name: "_staker"; type: "address"; }, { internalType: "uint256"; name: "_vote"; type: "uint256"; }]; name: "claimMisalignedReward"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }] = _abi

Methods

connect()

static connect(address, signerOrProvider): IVotingReputation

Parameters

address

string

signerOrProvider

Signer | Provider

Returns

IVotingReputation


createInterface()

static createInterface(): IVotingReputationInterface

Returns

IVotingReputationInterface