Skip to main content

Interface: VotingReputationClientV4

Hierarchy

  • AugmentedVotingReputation<VotingReputation>

  • AugmentsV2<VotingReputation>

    VotingReputationClientV4

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

Inherited from

AugmentedVotingReputation._deployedPromise


_runningEvents

_runningEvents: Object

Index signature

[eventTag: string]: RunningEvent

Inherited from

AugmentedVotingReputation._runningEvents


_wrappedEmits

_wrappedEmits: Object

Index signature

[eventTag: string]: (...args: any[]) => void

Inherited from

AugmentedVotingReputation._wrappedEmits


address

Readonly address: string

Inherited from

AugmentedVotingReputation.address


callStatic

callStatic: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<string>
claimReward(_motionId: BigNumberish, _permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _staker: string, _vote: BigNumberish, overrides?: CallOverrides) => Promise<void>
createClaimDelayAction(action: BytesLike, value: BigNumberish, overrides?: CallOverrides) => Promise<string>
createDomainMotion(_domainId: BigNumberish, _childSkillIndex: BigNumberish, _action: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: CallOverrides) => Promise<void>
createMotion(_domainId: BigNumberish, _childSkillIndex: BigNumberish, _altTarget: string, _action: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: CallOverrides) => Promise<void>
createRootMotion(_altTarget: string, _action: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: CallOverrides) => Promise<void>
deprecate(_deprecated: boolean, overrides?: CallOverrides) => Promise<void>
escalateMotion(_motionId: BigNumberish, _newDomainId: BigNumberish, _childSkillIndex: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: CallOverrides) => Promise<void>
executeMetaTransaction(_user: string, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<string>
failingExecutionAllowed(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
finalizeMotion(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<void>
finishUpgrade(overrides?: CallOverrides) => Promise<void>
getCapabilityRoles(_sig: BytesLike, overrides?: CallOverrides) => Promise<string>
getChainId(overrides?: CallOverrides) => Promise<BigNumber>
getColony(overrides?: CallOverrides) => Promise<string>
getDeprecated(overrides?: CallOverrides) => Promise<boolean>
getEscalationPeriod(overrides?: CallOverrides) => Promise<BigNumber>
getExpenditureMotionCount(_structHash: BytesLike, overrides?: CallOverrides) => Promise<BigNumber>
getExpenditurePastVote(_actionHash: BytesLike, overrides?: CallOverrides) => Promise<BigNumber>
getMaxVoteFraction(overrides?: CallOverrides) => Promise<BigNumber>
getMetatransactionNonce(userAddress: string, overrides?: CallOverrides) => Promise<BigNumber>
getMotion(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<MotionStructOutput>
getMotionCount(overrides?: CallOverrides) => Promise<BigNumber>
getMotionState(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<number>
getRevealPeriod(overrides?: CallOverrides) => Promise<BigNumber>
getStake(_motionId: BigNumberish, _staker: string, _vote: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
getStakePeriod(overrides?: CallOverrides) => Promise<BigNumber>
getStakerReward(_motionId: BigNumberish, _staker: string, _vote: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber, BigNumber]>
getSubmitPeriod(overrides?: CallOverrides) => Promise<BigNumber>
getTotalStakeFraction(overrides?: CallOverrides) => Promise<BigNumber>
getUserMinStakeFraction(overrides?: CallOverrides) => Promise<BigNumber>
getVoterReward(_motionId: BigNumberish, _voterRep: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
getVoterRewardFraction(overrides?: CallOverrides) => Promise<BigNumber>
getVoterRewardRange(_motionId: BigNumberish, _voterRep: BigNumberish, _voterAddress: string, overrides?: CallOverrides) => Promise<[BigNumber, BigNumber]>
identifier(overrides?: CallOverrides) => Promise<string>
initialise(_totalStakeFraction: BigNumberish, _voterRewardFraction: BigNumberish, _userMinStakeFraction: BigNumberish, _maxVoteFraction: BigNumberish, _stakePeriod: BigNumberish, _submitPeriod: BigNumberish, _revealPeriod: BigNumberish, _escalationPeriod: BigNumberish, overrides?: CallOverrides) => Promise<void>
install(_colony: string, overrides?: CallOverrides) => Promise<void>
owner(overrides?: CallOverrides) => Promise<string>
revealVote(_motionId: BigNumberish, _salt: BytesLike, _vote: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: CallOverrides) => Promise<void>
setAuthority(authority_: string, overrides?: CallOverrides) => Promise<void>
setOwner(owner_: string, overrides?: CallOverrides) => Promise<void>
stakeMotion(_motionId: BigNumberish, _permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _vote: BigNumberish, _amount: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: CallOverrides) => Promise<void>
submitVote(_motionId: BigNumberish, _voteSecret: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: CallOverrides) => Promise<void>
uninstall(overrides?: CallOverrides) => Promise<void>
verify(_owner: string, _nonce: BigNumberish, _chainId: BigNumberish, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
version(overrides?: CallOverrides) => Promise<BigNumber>

Inherited from

AugmentedVotingReputation.callStatic


clientType

clientType: VotingReputationClient

Inherited from

AugmentedVotingReputation.clientType


clientVersion

clientVersion: 4

Overrides

AugmentedVotingReputation.clientVersion


colonyClient

colonyClient: AugmentedIColony<AnyIColony>

An instance of the corresponding ColonyClient

Inherited from

AugmentedVotingReputation.colonyClient


deployTransaction

Readonly deployTransaction: TransactionResponse

Inherited from

AugmentedVotingReputation.deployTransaction


estimateGas

estimateGas: VotingReputationEstimate

Overrides

AugmentedVotingReputation.estimateGas


filters

filters: Object

Type declaration

NameType
ExtensionInitialised() => ExtensionInitialisedEventFilter
ExtensionInitialised()() => ExtensionInitialisedEventFilter
LogSetAuthority(authority?: null | string) => LogSetAuthorityEventFilter
LogSetAuthority(address)(authority?: null | string) => LogSetAuthorityEventFilter
LogSetOwner(owner?: null | string) => LogSetOwnerEventFilter
LogSetOwner(address)(owner?: null | string) => LogSetOwnerEventFilter
MetaTransactionExecuted(user?: null, relayerAddress?: null, functionSignature?: null) => MetaTransactionExecutedEventFilter
MetaTransactionExecuted(address,address,bytes)(user?: null, relayerAddress?: null, functionSignature?: null) => MetaTransactionExecutedEventFilter
MotionCreated(motionId?: null | BigNumberish, creator?: null, domainId?: null | BigNumberish) => MotionCreatedEventFilter
MotionCreated(uint256,address,uint256)(motionId?: null | BigNumberish, creator?: null, domainId?: null | BigNumberish) => MotionCreatedEventFilter
MotionEscalated(motionId?: null | BigNumberish, escalator?: null, domainId?: null | BigNumberish, newDomainId?: null | BigNumberish) => MotionEscalatedEventFilter
MotionEscalated(uint256,address,uint256,uint256)(motionId?: null | BigNumberish, escalator?: null, domainId?: null | BigNumberish, newDomainId?: null | BigNumberish) => MotionEscalatedEventFilter
MotionEventSet(motionId?: null | BigNumberish, eventIndex?: null) => MotionEventSetEventFilter
MotionEventSet(uint256,uint256)(motionId?: null | BigNumberish, eventIndex?: null) => MotionEventSetEventFilter
MotionFinalized(motionId?: null | BigNumberish, action?: null, executed?: null) => MotionFinalizedEventFilter
MotionFinalized(uint256,bytes,bool)(motionId?: null | BigNumberish, action?: null, executed?: null) => MotionFinalizedEventFilter
MotionRewardClaimed(motionId?: null | BigNumberish, staker?: null | string, vote?: null | BigNumberish, amount?: null) => MotionRewardClaimedEventFilter
MotionRewardClaimed(uint256,address,uint256,uint256)(motionId?: null | BigNumberish, staker?: null | string, vote?: null | BigNumberish, amount?: null) => MotionRewardClaimedEventFilter
MotionStaked(motionId?: null | BigNumberish, staker?: null | string, vote?: null | BigNumberish, amount?: null) => MotionStakedEventFilter
MotionStaked(uint256,address,uint256,uint256)(motionId?: null | BigNumberish, staker?: null | string, vote?: null | BigNumberish, amount?: null) => MotionStakedEventFilter
MotionVoteRevealed(motionId?: null | BigNumberish, voter?: null | string, vote?: null | BigNumberish) => MotionVoteRevealedEventFilter
MotionVoteRevealed(uint256,address,uint256)(motionId?: null | BigNumberish, voter?: null | string, vote?: null | BigNumberish) => MotionVoteRevealedEventFilter
MotionVoteSubmitted(motionId?: null | BigNumberish, voter?: null | string) => MotionVoteSubmittedEventFilter
MotionVoteSubmitted(uint256,address)(motionId?: null | BigNumberish, voter?: null | string) => MotionVoteSubmittedEventFilter

Inherited from

AugmentedVotingReputation.filters


functions

functions: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<[string]>
claimReward(_motionId: BigNumberish, _permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _staker: string, _vote: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
createClaimDelayAction(action: BytesLike, value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
createDomainMotion(_domainId: BigNumberish, _childSkillIndex: BigNumberish, _action: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
createMotion(_domainId: BigNumberish, _childSkillIndex: BigNumberish, _altTarget: string, _action: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
createRootMotion(_altTarget: string, _action: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
deprecate(_deprecated: boolean, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
escalateMotion(_motionId: BigNumberish, _newDomainId: BigNumberish, _childSkillIndex: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
executeMetaTransaction(_user: string, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
failingExecutionAllowed(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<[boolean]>
finalizeMotion(_motionId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
finishUpgrade(overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
getCapabilityRoles(_sig: BytesLike, overrides?: CallOverrides) => Promise<[string]>
getChainId(overrides?: CallOverrides) => Promise<[BigNumber]>
getColony(overrides?: CallOverrides) => Promise<[string]>
getDeprecated(overrides?: CallOverrides) => Promise<[boolean]>
getEscalationPeriod(overrides?: CallOverrides) => Promise<[BigNumber]>
getExpenditureMotionCount(_structHash: BytesLike, overrides?: CallOverrides) => Promise<[BigNumber]>
getExpenditurePastVote(_actionHash: BytesLike, overrides?: CallOverrides) => Promise<[BigNumber]>
getMaxVoteFraction(overrides?: CallOverrides) => Promise<[BigNumber]>
getMetatransactionNonce(userAddress: string, overrides?: CallOverrides) => Promise<[BigNumber] & { nonce: BigNumber }>
getMotion(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<[MotionStructOutput] & { motion: MotionStructOutput }>
getMotionCount(overrides?: CallOverrides) => Promise<[BigNumber]>
getMotionState(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<[number]>
getRevealPeriod(overrides?: CallOverrides) => Promise<[BigNumber]>
getStake(_motionId: BigNumberish, _staker: string, _vote: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber]>
getStakePeriod(overrides?: CallOverrides) => Promise<[BigNumber]>
getStakerReward(_motionId: BigNumberish, _staker: string, _vote: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber, BigNumber]>
getSubmitPeriod(overrides?: CallOverrides) => Promise<[BigNumber]>
getTotalStakeFraction(overrides?: CallOverrides) => Promise<[BigNumber]>
getUserMinStakeFraction(overrides?: CallOverrides) => Promise<[BigNumber]>
getVoterReward(_motionId: BigNumberish, _voterRep: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber]>
getVoterRewardFraction(overrides?: CallOverrides) => Promise<[BigNumber]>
getVoterRewardRange(_motionId: BigNumberish, _voterRep: BigNumberish, _voterAddress: string, overrides?: CallOverrides) => Promise<[BigNumber, BigNumber]>
identifier(overrides?: CallOverrides) => Promise<[string]>
initialise(_totalStakeFraction: BigNumberish, _voterRewardFraction: BigNumberish, _userMinStakeFraction: BigNumberish, _maxVoteFraction: BigNumberish, _stakePeriod: BigNumberish, _submitPeriod: BigNumberish, _revealPeriod: BigNumberish, _escalationPeriod: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
install(_colony: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
owner(overrides?: CallOverrides) => Promise<[string]>
revealVote(_motionId: BigNumberish, _salt: BytesLike, _vote: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setAuthority(authority_: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setOwner(owner_: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
stakeMotion(_motionId: BigNumberish, _permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _vote: BigNumberish, _amount: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
submitVote(_motionId: BigNumberish, _voteSecret: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
uninstall(overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
verify(_owner: string, _nonce: BigNumberish, _chainId: BigNumberish, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<[boolean]>
version(overrides?: CallOverrides) => Promise<[BigNumber]>

Inherited from

AugmentedVotingReputation.functions


interface

interface: VotingReputationInterface

Inherited from

AugmentedVotingReputation.interface


off

off: OnEvent<VotingReputationClientV4>

Inherited from

AugmentedVotingReputation.off


on

on: OnEvent<VotingReputationClientV4>

Inherited from

AugmentedVotingReputation.on


once

once: OnEvent<VotingReputationClientV4>

Inherited from

AugmentedVotingReputation.once


populateTransaction

populateTransaction: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<PopulatedTransaction>
claimReward(_motionId: BigNumberish, _permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _staker: string, _vote: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
createClaimDelayAction(action: BytesLike, value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
createDomainMotion(_domainId: BigNumberish, _childSkillIndex: BigNumberish, _action: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
createMotion(_domainId: BigNumberish, _childSkillIndex: BigNumberish, _altTarget: string, _action: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
createRootMotion(_altTarget: string, _action: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
deprecate(_deprecated: boolean, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
escalateMotion(_motionId: BigNumberish, _newDomainId: BigNumberish, _childSkillIndex: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
executeMetaTransaction(_user: string, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
failingExecutionAllowed(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
finalizeMotion(_motionId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
finishUpgrade(overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
getCapabilityRoles(_sig: BytesLike, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getChainId(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getColony(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getDeprecated(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getEscalationPeriod(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getExpenditureMotionCount(_structHash: BytesLike, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getExpenditurePastVote(_actionHash: BytesLike, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMaxVoteFraction(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMetatransactionNonce(userAddress: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMotion(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMotionCount(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMotionState(_motionId: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getRevealPeriod(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getStake(_motionId: BigNumberish, _staker: string, _vote: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getStakePeriod(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getStakerReward(_motionId: BigNumberish, _staker: string, _vote: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getSubmitPeriod(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getTotalStakeFraction(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getUserMinStakeFraction(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getVoterReward(_motionId: BigNumberish, _voterRep: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getVoterRewardFraction(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getVoterRewardRange(_motionId: BigNumberish, _voterRep: BigNumberish, _voterAddress: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
identifier(overrides?: CallOverrides) => Promise<PopulatedTransaction>
initialise(_totalStakeFraction: BigNumberish, _voterRewardFraction: BigNumberish, _userMinStakeFraction: BigNumberish, _maxVoteFraction: BigNumberish, _stakePeriod: BigNumberish, _submitPeriod: BigNumberish, _revealPeriod: BigNumberish, _escalationPeriod: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
install(_colony: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
owner(overrides?: CallOverrides) => Promise<PopulatedTransaction>
revealVote(_motionId: BigNumberish, _salt: BytesLike, _vote: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setAuthority(authority_: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setOwner(owner_: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
stakeMotion(_motionId: BigNumberish, _permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _vote: BigNumberish, _amount: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
submitVote(_motionId: BigNumberish, _voteSecret: BytesLike, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
uninstall(overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
verify(_owner: string, _nonce: BigNumberish, _chainId: BigNumberish, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
version(overrides?: CallOverrides) => Promise<PopulatedTransaction>

Inherited from

AugmentedVotingReputation.populateTransaction


provider

Readonly provider: Provider

Inherited from

AugmentedVotingReputation.provider


removeListener

removeListener: OnEvent<VotingReputationClientV4>

Inherited from

AugmentedVotingReputation.removeListener


resolvedAddress

Readonly resolvedAddress: Promise<string>

Inherited from

AugmentedVotingReputation.resolvedAddress


signer

Readonly signer: Signer

Inherited from

AugmentedVotingReputation.signer


votingReputationEvents

votingReputationEvents: VotingReputationEvents

The votingReputationsEvents contract supports all events across all versions. Isn't that amazing? It's an ethers contract with only events to filter

Inherited from

AugmentedVotingReputation.votingReputationEvents

Methods

_checkRunningEvents

_checkRunningEvents(runningEvent): void

Parameters

NameType
runningEventRunningEvent

Returns

void

Inherited from

AugmentedVotingReputation._checkRunningEvents


_deployed

_deployed(blockTag?): Promise<Contract>

Parameters

NameType
blockTag?BlockTag

Returns

Promise<Contract>

Inherited from

AugmentedVotingReputation._deployed


_wrapEvent

_wrapEvent(runningEvent, log, listener): Event

Parameters

NameType
runningEventRunningEvent
logLog
listenerListener

Returns

Event

Inherited from

AugmentedVotingReputation._wrapEvent


attach

attach(addressOrName): VotingReputationClientV4

Parameters

NameType
addressOrNamestring

Returns

VotingReputationClientV4

Inherited from

AugmentedVotingReputation.attach


authority

authority(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedVotingReputation.authority


claimReward

claimReward(_motionId, _permissionDomainId, _childSkillIndex, _staker, _vote, overrides?): Promise<ContractTransaction>

Claim the staker's reward

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_permissionDomainIdBigNumberishThe domain where the extension has the arbitration permission
_childSkillIndexBigNumberishFor the domain in which the motion is occurring
_stakerstringThe staker whose reward is being claimed
_voteBigNumberishThe side being supported (0 = NAY, 1 = YAY)
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.claimReward


claimRewardWithProofs

claimRewardWithProofs(_motionId, _staker, _vote, overrides?): Promise<ContractTransaction>

Same as claimReward, but let colonyJS figure out the permission proofs for you. Always prefer this method, except when you have good reason not to.

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_stakerstringThe staker whose reward is being claimed
_voteBigNumberishThe side being supported (0 = NAY, 1 = YAY)
overrides?TxOverrides-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.claimRewardWithProofs


connect

connect(signerOrProvider): VotingReputationClientV4

Parameters

NameType
signerOrProviderstring | Provider | Signer

Returns

VotingReputationClientV4

Inherited from

AugmentedVotingReputation.connect


createClaimDelayAction

createClaimDelayAction(action, value, overrides?): Promise<ContractTransaction>

Parameters

NameType
actionBytesLike
valueBigNumberish
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.createClaimDelayAction


createDomainMotion

createDomainMotion(_domainId, _childSkillIndex, _action, _key, _value, _branchMask, _siblings, overrides?): Promise<ContractTransaction>

Create a motion in any domain (DEPRECATED)

Parameters

NameTypeDescription
_domainIdBigNumberishThe domain where we vote on the motion
_childSkillIndexBigNumberishThe childSkillIndex pointing to the domain of the action
_actionBytesLikeA bytes array encoding a function call
_keyBytesLikeReputation tree key for the domain
_valueBytesLikeReputation tree value for the domain
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.createDomainMotion


createDomainMotionWithProofs

createDomainMotionWithProofs(_domainId, _action, overrides?): Promise<ContractTransaction>

Same as createDomainMotion, but let colonyJS figure out the permission proofs for you. Always prefer this method, except when you have good reason not to.

Parameters

NameTypeDescription
_domainIdBigNumberishThe domain where we vote on the motion
_actionBytesLikeA bytes array encoding a function call
overrides?TxOverrides-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.createDomainMotionWithProofs


createMotion

createMotion(_domainId, _childSkillIndex, _altTarget, _action, _key, _value, _branchMask, _siblings, overrides?): Promise<ContractTransaction>

Create a motion

Parameters

NameTypeDescription
_domainIdBigNumberishThe domain where we vote on the motion
_childSkillIndexBigNumberishThe childSkillIndex pointing to the domain of the action
_altTargetstringThe contract to which we send the action (0x0 for the colony)
_actionBytesLikeA bytes array encoding a function call
_keyBytesLikeReputation tree key for the root domain
_valueBytesLikeReputation tree value for the root domain
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.createMotion


createMotionWithProofs

createMotionWithProofs(_domainId, _altTarget, _action, overrides?): Promise<ContractTransaction>

Same as createMotion, but let colonyJS figure out the permission proofs for you. Always prefer this method, except when you have good reason not to.

Parameters

NameTypeDescription
_domainIdBigNumberishThe domain where we vote on the motion
_altTargetstringThe contract to which we send the action (0x0 for the colony)
_actionBytesLikeA bytes array encoding a function call
overrides?TxOverrides-

Returns

Promise<ContractTransaction>

Inherited from

AugmentsV2.createMotionWithProofs


createRootMotion

createRootMotion(_altTarget, _action, _key, _value, _branchMask, _siblings, overrides?): Promise<ContractTransaction>

Create a motion in the root domain (DEPRECATED)

Parameters

NameTypeDescription
_altTargetstringThe contract to which we send the action (0x0 for the colony)
_actionBytesLikeA bytes array encoding a function call
_keyBytesLikeReputation tree key for the root domain
_valueBytesLikeReputation tree value for the root domain
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.createRootMotion


deployed

deployed(): Promise<VotingReputationClientV4>

Returns

Promise<VotingReputationClientV4>

Inherited from

AugmentedVotingReputation.deployed


deprecate

deprecate(_deprecated, overrides?): Promise<ContractTransaction>

Called when deprecating (or undeprecating) the extension

Parameters

NameType
_deprecatedboolean
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.deprecate


emit

emit(eventName, ...args): boolean

Parameters

NameType
eventNamestring | EventFilter
...argsany[]

Returns

boolean

Inherited from

AugmentedVotingReputation.emit


escalateMotion

escalateMotion(_motionId, _newDomainId, _childSkillIndex, _key, _value, _branchMask, _siblings, overrides?): Promise<ContractTransaction>

Escalate a motion to a higher domain

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_newDomainIdBigNumberishThe desired domain of escalation
_childSkillIndexBigNumberishFor the current domain, relative to the escalated domain
_keyBytesLikeReputation tree key for the new domain
_valueBytesLikeReputation tree value for the new domain
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.escalateMotion


escalateMotionWithProofs

escalateMotionWithProofs(_motionId, _newDomainId, overrides?): Promise<ContractTransaction>

Same as escalateMotion, but let colonyJS figure out the permission proofs for you. Always prefer this method, except when you have good reason not to.

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_newDomainIdBigNumberishThe desired domain of escalation
overrides?TxOverrides-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.escalateMotionWithProofs


executeMetaTransaction

executeMetaTransaction(_user, _payload, _sigR, _sigS, _sigV, overrides?): Promise<ContractTransaction>

Main function to be called when user wants to execute meta transaction. The actual function to be called should be passed as param with name functionSignature Here the basic signature recovery is being used. Signature is expected to be generated using personal_sign method.

Parameters

NameTypeDescription
_userstringAddress of user trying to do meta transaction
_payloadBytesLikeFunction call to make via meta transaction
_sigRBytesLikeR part of the signature
_sigSBytesLikeS part of the signature
_sigVBigNumberishV part of the signature
overrides?PayableOverrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.executeMetaTransaction


failingExecutionAllowed

failingExecutionAllowed(_motionId, overrides?): Promise<boolean>

We are only expecting this to be called from finalize motion in the contracts. It is marked as public only so that the frontend can use it.

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
overrides?CallOverrides-

Returns

Promise<boolean>

Inherited from

AugmentedVotingReputation.failingExecutionAllowed


fallback

fallback(overrides?): Promise<TransactionResponse>

Parameters

NameType
overrides?TransactionRequest

Returns

Promise<TransactionResponse>

Inherited from

AugmentedVotingReputation.fallback


finalizeMotion

finalizeMotion(_motionId, overrides?): Promise<ContractTransaction>

Parameters

NameType
_motionIdBigNumberish
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.finalizeMotion


finishUpgrade

finishUpgrade(overrides?): Promise<ContractTransaction>

Called when upgrading the extension

Parameters

NameType
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.finishUpgrade


getCapabilityRoles

getCapabilityRoles(_sig, overrides?): Promise<string>

Parameters

NameType
_sigBytesLike
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedVotingReputation.getCapabilityRoles


getChainId

getChainId(overrides?): Promise<BigNumber>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getChainId


getColony

getColony(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedVotingReputation.getColony


getDeprecated

getDeprecated(overrides?): Promise<boolean>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedVotingReputation.getDeprecated


getEscalationPeriod

getEscalationPeriod(overrides?): Promise<BigNumber>

Get the escalation period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getEscalationPeriod


getExpenditureMotionCount

getExpenditureMotionCount(_structHash, overrides?): Promise<BigNumber>

Get the number of ongoing motions for a single expenditure / expenditure slot

Parameters

NameTypeDescription
_structHashBytesLikeThe hash of the expenditureId or expenditureId*expenditureSlot
overrides?CallOverrides-

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getExpenditureMotionCount


getExpenditurePastVote

getExpenditurePastVote(_actionHash, overrides?): Promise<BigNumber>

Get the largest past vote on a single expenditure variable

Parameters

NameTypeDescription
_actionHashBytesLikeThe hash of the particular expenditure action
overrides?CallOverrides-

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getExpenditurePastVote


getMaxVoteFraction

getMaxVoteFraction(overrides?): Promise<BigNumber>

Get the max vote fraction

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getMaxVoteFraction


getMetatransactionNonce

getMetatransactionNonce(userAddress, overrides?): Promise<BigNumber>

Parameters

NameType
userAddressstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getMetatransactionNonce


getMotion

getMotion(_motionId, overrides?): Promise<MotionStructOutput>

Get the data for a single motion

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
overrides?CallOverrides-

Returns

Promise<MotionStructOutput>

Inherited from

AugmentedVotingReputation.getMotion


getMotionCount

getMotionCount(overrides?): Promise<BigNumber>

Get the total motion count

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getMotionCount


getMotionState

getMotionState(_motionId, overrides?): Promise<number>

Get the current state of the motion

Parameters

NameType
_motionIdBigNumberish
overrides?CallOverrides

Returns

Promise<number>

Inherited from

AugmentedVotingReputation.getMotionState


getRevealPeriod

getRevealPeriod(overrides?): Promise<BigNumber>

Get the reveal period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getRevealPeriod


getStake

getStake(_motionId, _staker, _vote, overrides?): Promise<BigNumber>

Get a user's stake on a motion

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_stakerstringThe staker address
_voteBigNumberishThe side being supported (0 = NAY, 1 = YAY)
overrides?CallOverrides-

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getStake


getStakePeriod

getStakePeriod(overrides?): Promise<BigNumber>

Get the stake period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getStakePeriod


getStakerReward

getStakerReward(_motionId, _staker, _vote, overrides?): Promise<[BigNumber, BigNumber]>

Get the staker reward

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_stakerstringThe staker's address
_voteBigNumberishThe vote (0 = NAY, 1 = YAY)
overrides?CallOverrides-

Returns

Promise<[BigNumber, BigNumber]>

Inherited from

AugmentedVotingReputation.getStakerReward


getSubmitPeriod

getSubmitPeriod(overrides?): Promise<BigNumber>

Get the submit period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getSubmitPeriod


getTotalStakeFraction

getTotalStakeFraction(overrides?): Promise<BigNumber>

Get the total stake fraction

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getTotalStakeFraction


getUserMinStakeFraction

getUserMinStakeFraction(overrides?): Promise<BigNumber>

Get the user min stake fraction

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getUserMinStakeFraction


getVoterReward

getVoterReward(_motionId, _voterRep, overrides?): Promise<BigNumber>

Get the voter reward NB This function will only return a meaningful value if in the reveal state. Prior to the reveal state, getVoterRewardRange should be used.

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_voterRepBigNumberishThe reputation the voter has in the domain
overrides?CallOverrides-

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getVoterReward


getVoterRewardFraction

getVoterRewardFraction(overrides?): Promise<BigNumber>

Get the voter reward fraction

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.getVoterRewardFraction


getVoterRewardRange

getVoterRewardRange(_motionId, _voterRep, _voterAddress, overrides?): Promise<[BigNumber, BigNumber]>

Get the range of potential rewards for a voter on a specific motion, intended to be used when the motion is in the reveal state. Once a motion is in the reveal state the reward is known, and getVoterRewardRange should be used.

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_voterRepBigNumberishThe reputation the voter has in the domain
_voterAddressstringThe address the user will be voting as
overrides?CallOverrides-

Returns

Promise<[BigNumber, BigNumber]>

Inherited from

AugmentedVotingReputation.getVoterRewardRange


identifier

identifier(overrides?): Promise<string>

Returns the identifier of the extension

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedVotingReputation.identifier


initialise

initialise(_totalStakeFraction, _voterRewardFraction, _userMinStakeFraction, _maxVoteFraction, _stakePeriod, _submitPeriod, _revealPeriod, _escalationPeriod, overrides?): Promise<ContractTransaction>

Initialise the extension

Parameters

NameTypeDescription
_totalStakeFractionBigNumberishThe fraction of the domain's reputation we need to stake
_voterRewardFractionBigNumberishThe fraction of the total stake paid out to voters as rewards
_userMinStakeFractionBigNumberishThe minimum per-user stake as fraction of total stake
_maxVoteFractionBigNumberishThe fraction of the domain's reputation which must submit for quick-end
_stakePeriodBigNumberishThe length of the staking period in seconds
_submitPeriodBigNumberishThe length of the submit period in seconds
_revealPeriodBigNumberishThe length of the reveal period in seconds
_escalationPeriodBigNumberishThe length of the escalation period in seconds
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.initialise


install

install(_colony, overrides?): Promise<ContractTransaction>

Install the extension

Parameters

NameTypeDescription
_colonystringBase colony for the installation
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.install


listenerCount

listenerCount(eventName?): number

Parameters

NameType
eventName?string | EventFilter

Returns

number

Inherited from

AugmentedVotingReputation.listenerCount


listeners

listeners<TEvent>(eventFilter?): TypedListener<TEvent>[]

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilter?TypedEventFilter<TEvent>

Returns

TypedListener<TEvent>[]

Inherited from

AugmentedVotingReputation.listeners

listeners(eventName?): Listener[]

Parameters

NameType
eventName?string

Returns

Listener[]

Inherited from

AugmentedVotingReputation.listeners


owner

owner(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedVotingReputation.owner


queryFilter

queryFilter<TEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TEvent[]>

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventTypedEventFilter<TEvent>
fromBlockOrBlockhash?string | number
toBlock?string | number

Returns

Promise<TEvent[]>

Inherited from

AugmentedVotingReputation.queryFilter


removeAllListeners

removeAllListeners<TEvent>(eventFilter): VotingReputationClientV4

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilterTypedEventFilter<TEvent>

Returns

VotingReputationClientV4

Inherited from

AugmentedVotingReputation.removeAllListeners

removeAllListeners(eventName?): VotingReputationClientV4

Parameters

NameType
eventName?string

Returns

VotingReputationClientV4

Inherited from

AugmentedVotingReputation.removeAllListeners


revealVote

revealVote(_motionId, _salt, _vote, _key, _value, _branchMask, _siblings, overrides?): Promise<ContractTransaction>

Reveal a vote secret for a motion

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_saltBytesLikeThe salt used to hash the vote
_voteBigNumberishThe side being supported (0 = NAY, 1 = YAY)
_keyBytesLikeReputation tree key for the staker/domain
_valueBytesLikeReputation tree value for the staker/domain
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.revealVote


setAuthority

setAuthority(authority_, overrides?): Promise<ContractTransaction>

Parameters

NameType
authority_string
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.setAuthority


setOwner

setOwner(owner_, overrides?): Promise<ContractTransaction>

Parameters

NameType
owner_string
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.setOwner


stakeMotion

stakeMotion(_motionId, _permissionDomainId, _childSkillIndex, _vote, _amount, _key, _value, _branchMask, _siblings, overrides?): Promise<ContractTransaction>

Stake on a motion

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_permissionDomainIdBigNumberishThe domain where the extension has the arbitration permission
_childSkillIndexBigNumberishFor the domain in which the motion is occurring
_voteBigNumberishThe side being supported (0 = NAY, 1 = YAY)
_amountBigNumberishThe amount of tokens being staked
_keyBytesLikeReputation tree key for the staker/domain
_valueBytesLikeReputation tree value for the staker/domain
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.stakeMotion


stakeMotionWithProofs

stakeMotionWithProofs(_motionId, _vote, _amount, overrides?): Promise<ContractTransaction>

Same as stakeMotion, but let colonyJS figure out the permission proofs for you. Always prefer this method, except when you have good reason not to.

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_voteBigNumberishThe side being supported (0 = NAY, 1 = YAY)
_amountBigNumberishThe amount of tokens being staked
overrides?TxOverrides-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.stakeMotionWithProofs


submitVote

submitVote(_motionId, _voteSecret, _key, _value, _branchMask, _siblings, overrides?): Promise<ContractTransaction>

Submit a vote secret for a motion

Parameters

NameTypeDescription
_motionIdBigNumberishThe id of the motion
_voteSecretBytesLikeThe hashed vote secret
_keyBytesLikeReputation tree key for the staker/domain
_valueBytesLikeReputation tree value for the staker/domain
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?Overrides & { from?: string | Promise<string> }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.submitVote


uninstall

uninstall(overrides?): Promise<ContractTransaction>

Called when uninstalling the extension

Parameters

NameType
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedVotingReputation.uninstall


verify

verify(_owner, _nonce, _chainId, _payload, _sigR, _sigS, _sigV, overrides?): Promise<boolean>

Parameters

NameType
_ownerstring
_nonceBigNumberish
_chainIdBigNumberish
_payloadBytesLike
_sigRBytesLike
_sigSBytesLike
_sigVBigNumberish
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedVotingReputation.verify


version

version(overrides?): Promise<BigNumber>

Return the version number

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedVotingReputation.version