Interface: VotingReputationClientV6
Hierarchy
AugmentedVotingReputation
<IVotingReputation
>AugmentsV2
<IVotingReputation
>CreateDomainMotionAugments
<IVotingReputation
>↳
VotingReputationClientV6
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
Name | Type |
---|---|
claimMisalignedReward | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <void > |
claimMisalignedReward(uint256,uint256,uint256,address,uint256) | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <void > |
claimReward | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <void > |
claimReward(uint256,uint256,uint256,address,uint256) | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <void > |
createClaimDelayAction | (action : BytesLike , value : BigNumberish , overrides? : CallOverrides ) => Promise <string > |
createClaimDelayAction(bytes,uint256) | (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 > |
createDomainMotion(uint256,uint256,bytes,bytes,bytes,uint256,bytes32[]) | (_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 > |
createMotion(uint256,uint256,address,bytes,bytes,bytes,uint256,bytes32[]) | (_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 > |
createRootMotion(address,bytes,bytes,bytes,uint256,bytes32[]) | (_altTarget : string , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : CallOverrides ) => Promise <void > |
deprecate | (_deprecated : boolean , overrides? : CallOverrides ) => Promise <void > |
deprecate(bool) | (_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 > |
escalateMotion(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _newDomainId : BigNumberish , _childSkillIndex : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : CallOverrides ) => Promise <void > |
executeMetaTransaction | (userAddress : string , payload : BytesLike , sigR : BytesLike , sigS : BytesLike , sigV : BigNumberish , overrides? : CallOverrides ) => Promise <string > |
executeMetaTransaction(address,bytes,bytes32,bytes32,uint8) | (userAddress : string , payload : BytesLike , sigR : BytesLike , sigS : BytesLike , sigV : BigNumberish , overrides? : CallOverrides ) => Promise <string > |
failingExecutionAllowed | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <boolean > |
failingExecutionAllowed(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <boolean > |
finalizeMotion | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <void > |
finalizeMotion(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <void > |
finishUpgrade | (overrides? : CallOverrides ) => Promise <void > |
finishUpgrade() | (overrides? : CallOverrides ) => Promise <void > |
getCapabilityRoles | (_sig : BytesLike , overrides? : CallOverrides ) => Promise <string > |
getCapabilityRoles(bytes4) | (_sig : BytesLike , overrides? : CallOverrides ) => Promise <string > |
getColony | (overrides? : CallOverrides ) => Promise <string > |
getColony() | (overrides? : CallOverrides ) => Promise <string > |
getDeprecated | (overrides? : CallOverrides ) => Promise <boolean > |
getDeprecated() | (overrides? : CallOverrides ) => Promise <boolean > |
getEscalationPeriod | (overrides? : CallOverrides ) => Promise <BigNumber > |
getEscalationPeriod() | (overrides? : CallOverrides ) => Promise <BigNumber > |
getExpenditureMotionCount | (_structHash : BytesLike , overrides? : CallOverrides ) => Promise <BigNumber > |
getExpenditureMotionCount(bytes32) | (_structHash : BytesLike , overrides? : CallOverrides ) => Promise <BigNumber > |
getExpenditurePastVote | (_actionHash : BytesLike , overrides? : CallOverrides ) => Promise <BigNumber > |
getExpenditurePastVote(bytes32) | (_actionHash : BytesLike , overrides? : CallOverrides ) => Promise <BigNumber > |
getMaxVoteFraction | (overrides? : CallOverrides ) => Promise <BigNumber > |
getMaxVoteFraction() | (overrides? : CallOverrides ) => Promise <BigNumber > |
getMetatransactionNonce | (userAddress : string , overrides? : CallOverrides ) => Promise <BigNumber > |
getMetatransactionNonce(address) | (userAddress : string , overrides? : CallOverrides ) => Promise <BigNumber > |
getMotion | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <MotionStructOutput > |
getMotion(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <MotionStructOutput > |
getMotionCount | (overrides? : CallOverrides ) => Promise <BigNumber > |
getMotionCount() | (overrides? : CallOverrides ) => Promise <BigNumber > |
getMotionState | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <number > |
getMotionState(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <number > |
getRevealPeriod | (overrides? : CallOverrides ) => Promise <BigNumber > |
getRevealPeriod() | (overrides? : CallOverrides ) => Promise <BigNumber > |
getStake | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
getStake(uint256,address,uint256) | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
getStakePeriod | (overrides? : CallOverrides ) => Promise <BigNumber > |
getStakePeriod() | (overrides? : CallOverrides ) => Promise <BigNumber > |
getStakerReward | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <[BigNumber , BigNumber ]> |
getStakerReward(uint256,address,uint256) | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <[BigNumber , BigNumber ]> |
getSubmitPeriod | (overrides? : CallOverrides ) => Promise <BigNumber > |
getSubmitPeriod() | (overrides? : CallOverrides ) => Promise <BigNumber > |
getTotalStakeFraction | (overrides? : CallOverrides ) => Promise <BigNumber > |
getTotalStakeFraction() | (overrides? : CallOverrides ) => Promise <BigNumber > |
getUserMinStakeFraction | (overrides? : CallOverrides ) => Promise <BigNumber > |
getUserMinStakeFraction() | (overrides? : CallOverrides ) => Promise <BigNumber > |
getVoterReward | (_motionId : BigNumberish , _voterRep : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
getVoterReward(uint256,uint256) | (_motionId : BigNumberish , _voterRep : BigNumberish , overrides? : CallOverrides ) => Promise <BigNumber > |
getVoterRewardFraction | (overrides? : CallOverrides ) => Promise <BigNumber > |
getVoterRewardFraction() | (overrides? : CallOverrides ) => Promise <BigNumber > |
getVoterRewardRange | (_motionId : BigNumberish , _voterRep : BigNumberish , _voterAddress : string , overrides? : CallOverrides ) => Promise <[BigNumber , BigNumber ]> |
getVoterRewardRange(uint256,uint256,address) | (_motionId : BigNumberish , _voterRep : BigNumberish , _voterAddress : string , overrides? : CallOverrides ) => Promise <[BigNumber , BigNumber ]> |
identifier | (overrides? : CallOverrides ) => Promise <string > |
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 > |
initialise(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) | (_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 > |
install(address) | (_colony : string , overrides? : CallOverrides ) => Promise <void > |
revealVote | (_motionId : BigNumberish , _salt : BytesLike , _vote : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : CallOverrides ) => Promise <void > |
revealVote(uint256,bytes32,uint256,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _salt : BytesLike , _vote : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], 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 > |
stakeMotion(uint256,uint256,uint256,uint256,uint256,bytes,bytes,uint256,bytes32[]) | (_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 > |
submitVote(uint256,bytes32,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _voteSecret : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : CallOverrides ) => Promise <void > |
uninstall | (overrides? : CallOverrides ) => Promise <void > |
uninstall() | (overrides? : CallOverrides ) => Promise <void > |
version | (overrides? : CallOverrides ) => Promise <BigNumber > |
version() | (overrides? : CallOverrides ) => Promise <BigNumber > |
Inherited from
AugmentedVotingReputation.callStatic
clientType
• clientType: VotingReputationClient
Inherited from
AugmentedVotingReputation.clientType
clientVersion
• clientVersion: 6
Overrides
AugmentedVotingReputation.clientVersion
colonyClient
• colonyClient: AugmentedIColony
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
Name | Type |
---|---|
MetaTransactionExecuted | (userAddress? : null , relayerAddress? : null , payload? : null ) => MetaTransactionExecutedEventFilter |
MetaTransactionExecuted(address,address,bytes) | (userAddress? : null , relayerAddress? : null , payload? : 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
Name | Type |
---|---|
claimMisalignedReward | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
claimMisalignedReward(uint256,uint256,uint256,address,uint256) | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
claimReward | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
claimReward(uint256,uint256,uint256,address,uint256) | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
createClaimDelayAction | (action : BytesLike , value : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
createClaimDelayAction(bytes,uint256) | (action : BytesLike , value : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
createDomainMotion | (_domainId : BigNumberish , _childSkillIndex : BigNumberish , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
createDomainMotion(uint256,uint256,bytes,bytes,bytes,uint256,bytes32[]) | (_domainId : BigNumberish , _childSkillIndex : BigNumberish , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : 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 <ContractTransaction > |
createMotion(uint256,uint256,address,bytes,bytes,bytes,uint256,bytes32[]) | (_domainId : BigNumberish , _childSkillIndex : BigNumberish , _altTarget : string , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
createRootMotion | (_altTarget : string , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
createRootMotion(address,bytes,bytes,bytes,uint256,bytes32[]) | (_altTarget : string , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
deprecate | (_deprecated : boolean , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
deprecate(bool) | (_deprecated : boolean , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
escalateMotion | (_motionId : BigNumberish , _newDomainId : BigNumberish , _childSkillIndex : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
escalateMotion(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _newDomainId : BigNumberish , _childSkillIndex : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
executeMetaTransaction | (userAddress : string , payload : BytesLike , sigR : BytesLike , sigS : BytesLike , sigV : BigNumberish , overrides? : PayableOverrides & { from? : string }) => Promise <ContractTransaction > |
executeMetaTransaction(address,bytes,bytes32,bytes32,uint8) | (userAddress : string , payload : BytesLike , sigR : BytesLike , sigS : BytesLike , sigV : BigNumberish , overrides? : PayableOverrides & { from? : string }) => Promise <ContractTransaction > |
failingExecutionAllowed | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <[boolean ]> |
failingExecutionAllowed(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <[boolean ]> |
finalizeMotion | (_motionId : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
finalizeMotion(uint256) | (_motionId : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
finishUpgrade | (overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
finishUpgrade() | (overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
getCapabilityRoles | (_sig : BytesLike , overrides? : CallOverrides ) => Promise <[string ]> |
getCapabilityRoles(bytes4) | (_sig : BytesLike , overrides? : CallOverrides ) => Promise <[string ]> |
getColony | (overrides? : CallOverrides ) => Promise <[string ]> |
getColony() | (overrides? : CallOverrides ) => Promise <[string ]> |
getDeprecated | (overrides? : CallOverrides ) => Promise <[boolean ]> |
getDeprecated() | (overrides? : CallOverrides ) => Promise <[boolean ]> |
getEscalationPeriod | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getEscalationPeriod() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getExpenditureMotionCount | (_structHash : BytesLike , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getExpenditureMotionCount(bytes32) | (_structHash : BytesLike , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getExpenditurePastVote | (_actionHash : BytesLike , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getExpenditurePastVote(bytes32) | (_actionHash : BytesLike , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getMaxVoteFraction | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getMaxVoteFraction() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getMetatransactionNonce | (userAddress : string , overrides? : CallOverrides ) => Promise <[BigNumber ] & { nonce : BigNumber }> |
getMetatransactionNonce(address) | (userAddress : string , overrides? : CallOverrides ) => Promise <[BigNumber ] & { nonce : BigNumber }> |
getMotion | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <[MotionStructOutput ] & { motion : MotionStructOutput }> |
getMotion(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <[MotionStructOutput ] & { motion : MotionStructOutput }> |
getMotionCount | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getMotionCount() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getMotionState | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <[number ]> |
getMotionState(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <[number ]> |
getRevealPeriod | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getRevealPeriod() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getStake | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getStake(uint256,address,uint256) | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getStakePeriod | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getStakePeriod() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getStakerReward | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <[BigNumber , BigNumber ]> |
getStakerReward(uint256,address,uint256) | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <[BigNumber , BigNumber ]> |
getSubmitPeriod | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getSubmitPeriod() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getTotalStakeFraction | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getTotalStakeFraction() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getUserMinStakeFraction | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getUserMinStakeFraction() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getVoterReward | (_motionId : BigNumberish , _voterRep : BigNumberish , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getVoterReward(uint256,uint256) | (_motionId : BigNumberish , _voterRep : BigNumberish , overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getVoterRewardFraction | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getVoterRewardFraction() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
getVoterRewardRange | (_motionId : BigNumberish , _voterRep : BigNumberish , _voterAddress : string , overrides? : CallOverrides ) => Promise <[BigNumber , BigNumber ]> |
getVoterRewardRange(uint256,uint256,address) | (_motionId : BigNumberish , _voterRep : BigNumberish , _voterAddress : string , overrides? : CallOverrides ) => Promise <[BigNumber , BigNumber ]> |
identifier | (overrides? : CallOverrides ) => Promise <[string ]> |
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 <ContractTransaction > |
initialise(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) | (_totalStakeFraction : BigNumberish , _voterRewardFraction : BigNumberish , _userMinStakeFraction : BigNumberish , _maxVoteFraction : BigNumberish , _stakePeriod : BigNumberish , _submitPeriod : BigNumberish , _revealPeriod : BigNumberish , _escalationPeriod : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
install | (_colony : string , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
install(address) | (_colony : string , overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
revealVote | (_motionId : BigNumberish , _salt : BytesLike , _vote : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
revealVote(uint256,bytes32,uint256,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _salt : BytesLike , _vote : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : 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 <ContractTransaction > |
stakeMotion(uint256,uint256,uint256,uint256,uint256,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _vote : BigNumberish , _amount : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
submitVote | (_motionId : BigNumberish , _voteSecret : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
submitVote(uint256,bytes32,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _voteSecret : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
uninstall | (overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
uninstall() | (overrides? : Overrides & { from? : string }) => Promise <ContractTransaction > |
version | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
version() | (overrides? : CallOverrides ) => Promise <[BigNumber ]> |
Inherited from
AugmentedVotingReputation.functions
interface
• interface: IVotingReputationInterface
Inherited from
AugmentedVotingReputation.interface
off
• off: OnEvent
<VotingReputationClientV6
>
Inherited from
AugmentedVotingReputation.off
on
• on: OnEvent
<VotingReputationClientV6
>
Inherited from
AugmentedVotingReputation.on
once
• once: OnEvent
<VotingReputationClientV6
>
Inherited from
AugmentedVotingReputation.once
populateTransaction
• populateTransaction: Object
Type declaration
Name | Type |
---|---|
claimMisalignedReward | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
claimMisalignedReward(uint256,uint256,uint256,address,uint256) | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
claimReward | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
claimReward(uint256,uint256,uint256,address,uint256) | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
createClaimDelayAction | (action : BytesLike , value : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
createClaimDelayAction(bytes,uint256) | (action : BytesLike , value : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
createDomainMotion | (_domainId : BigNumberish , _childSkillIndex : BigNumberish , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
createDomainMotion(uint256,uint256,bytes,bytes,bytes,uint256,bytes32[]) | (_domainId : BigNumberish , _childSkillIndex : BigNumberish , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : 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 <PopulatedTransaction > |
createMotion(uint256,uint256,address,bytes,bytes,bytes,uint256,bytes32[]) | (_domainId : BigNumberish , _childSkillIndex : BigNumberish , _altTarget : string , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
createRootMotion | (_altTarget : string , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
createRootMotion(address,bytes,bytes,bytes,uint256,bytes32[]) | (_altTarget : string , _action : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
deprecate | (_deprecated : boolean , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
deprecate(bool) | (_deprecated : boolean , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
escalateMotion | (_motionId : BigNumberish , _newDomainId : BigNumberish , _childSkillIndex : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
escalateMotion(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _newDomainId : BigNumberish , _childSkillIndex : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
executeMetaTransaction | (userAddress : string , payload : BytesLike , sigR : BytesLike , sigS : BytesLike , sigV : BigNumberish , overrides? : PayableOverrides & { from? : string }) => Promise <PopulatedTransaction > |
executeMetaTransaction(address,bytes,bytes32,bytes32,uint8) | (userAddress : string , payload : BytesLike , sigR : BytesLike , sigS : BytesLike , sigV : BigNumberish , overrides? : PayableOverrides & { from? : string }) => Promise <PopulatedTransaction > |
failingExecutionAllowed | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
failingExecutionAllowed(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
finalizeMotion | (_motionId : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
finalizeMotion(uint256) | (_motionId : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
finishUpgrade | (overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
finishUpgrade() | (overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
getCapabilityRoles | (_sig : BytesLike , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getCapabilityRoles(bytes4) | (_sig : BytesLike , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getColony | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getColony() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getDeprecated | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getDeprecated() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getEscalationPeriod | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getEscalationPeriod() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getExpenditureMotionCount | (_structHash : BytesLike , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getExpenditureMotionCount(bytes32) | (_structHash : BytesLike , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getExpenditurePastVote | (_actionHash : BytesLike , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getExpenditurePastVote(bytes32) | (_actionHash : BytesLike , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMaxVoteFraction | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMaxVoteFraction() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMetatransactionNonce | (userAddress : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMetatransactionNonce(address) | (userAddress : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMotion | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMotion(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMotionCount | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMotionCount() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMotionState | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getMotionState(uint256) | (_motionId : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getRevealPeriod | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getRevealPeriod() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getStake | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getStake(uint256,address,uint256) | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getStakePeriod | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getStakePeriod() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getStakerReward | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getStakerReward(uint256,address,uint256) | (_motionId : BigNumberish , _staker : string , _vote : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getSubmitPeriod | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getSubmitPeriod() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getTotalStakeFraction | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getTotalStakeFraction() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getUserMinStakeFraction | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getUserMinStakeFraction() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getVoterReward | (_motionId : BigNumberish , _voterRep : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getVoterReward(uint256,uint256) | (_motionId : BigNumberish , _voterRep : BigNumberish , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getVoterRewardFraction | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getVoterRewardFraction() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getVoterRewardRange | (_motionId : BigNumberish , _voterRep : BigNumberish , _voterAddress : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
getVoterRewardRange(uint256,uint256,address) | (_motionId : BigNumberish , _voterRep : BigNumberish , _voterAddress : string , overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
identifier | (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 <PopulatedTransaction > |
initialise(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) | (_totalStakeFraction : BigNumberish , _voterRewardFraction : BigNumberish , _userMinStakeFraction : BigNumberish , _maxVoteFraction : BigNumberish , _stakePeriod : BigNumberish , _submitPeriod : BigNumberish , _revealPeriod : BigNumberish , _escalationPeriod : BigNumberish , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
install | (_colony : string , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
install(address) | (_colony : string , overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
revealVote | (_motionId : BigNumberish , _salt : BytesLike , _vote : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
revealVote(uint256,bytes32,uint256,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _salt : BytesLike , _vote : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : 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 <PopulatedTransaction > |
stakeMotion(uint256,uint256,uint256,uint256,uint256,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _permissionDomainId : BigNumberish , _childSkillIndex : BigNumberish , _vote : BigNumberish , _amount : BigNumberish , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
submitVote | (_motionId : BigNumberish , _voteSecret : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
submitVote(uint256,bytes32,bytes,bytes,uint256,bytes32[]) | (_motionId : BigNumberish , _voteSecret : BytesLike , _key : BytesLike , _value : BytesLike , _branchMask : BigNumberish , _siblings : BytesLike [], overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
uninstall | (overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
uninstall() | (overrides? : Overrides & { from? : string }) => Promise <PopulatedTransaction > |
version | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
version() | (overrides? : CallOverrides ) => Promise <PopulatedTransaction > |
Inherited from
AugmentedVotingReputation.populateTransaction
provider
• Readonly
provider: Provider
Inherited from
AugmentedVotingReputation.provider
removeListener
• removeListener: OnEvent
<VotingReputationClientV6
>
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
Name | Type |
---|---|
runningEvent | RunningEvent |
Returns
void
Inherited from
AugmentedVotingReputation._checkRunningEvents
_deployed
▸ _deployed(blockTag?
): Promise
<Contract
>
Parameters
Name | Type |
---|---|
blockTag? | BlockTag |
Returns
Promise
<Contract
>
Inherited from
AugmentedVotingReputation._deployed
_wrapEvent
▸ _wrapEvent(runningEvent
, log
, listener
): Event
Parameters
Name | Type |
---|---|
runningEvent | RunningEvent |
log | Log |
listener | Listener |
Returns
Event
Inherited from
AugmentedVotingReputation._wrapEvent
attach
▸ attach(addressOrName
): VotingReputationClientV6
Parameters
Name | Type |
---|---|
addressOrName | string |
Returns
Inherited from
AugmentedVotingReputation.attach
claimMisalignedReward
▸ claimMisalignedReward(_motionId
, _permissionDomainId
, _childSkillIndex
, _staker
, _vote
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
_motionId | BigNumberish |
_permissionDomainId | BigNumberish |
_childSkillIndex | BigNumberish |
_staker | string |
_vote | BigNumberish |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.claimMisalignedReward
claimMisalignedReward(uint256,uint256,uint256,address,uint256)
▸ claimMisalignedReward(uint256,uint256,uint256,address,uint256)(_motionId
, _permissionDomainId
, _childSkillIndex
, _staker
, _vote
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
_motionId | BigNumberish |
_permissionDomainId | BigNumberish |
_childSkillIndex | BigNumberish |
_staker | string |
_vote | BigNumberish |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.claimMisalignedReward(uint256,uint256,uint256,address,uint256)
claimReward
▸ claimReward(_motionId
, _permissionDomainId
, _childSkillIndex
, _staker
, _vote
, overrides?
): Promise
<ContractTransaction
>
Claim the staker's reward
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_permissionDomainId | BigNumberish | The domain where the extension has the arbitration permission |
_childSkillIndex | BigNumberish | For the domain in which the motion is occurring |
_staker | string | The staker whose reward is being claimed |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.claimReward
claimReward(uint256,uint256,uint256,address,uint256)
▸ claimReward(uint256,uint256,uint256,address,uint256)(_motionId
, _permissionDomainId
, _childSkillIndex
, _staker
, _vote
, overrides?
): Promise
<ContractTransaction
>
Claim the staker's reward
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_permissionDomainId | BigNumberish | The domain where the extension has the arbitration permission |
_childSkillIndex | BigNumberish | For the domain in which the motion is occurring |
_staker | string | The staker whose reward is being claimed |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.claimReward(uint256,uint256,uint256,address,uint256)
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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_staker | string | The staker whose reward is being claimed |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
overrides? | TxOverrides | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.claimRewardWithProofs
connect
▸ connect(signerOrProvider
): VotingReputationClientV6
Parameters
Name | Type |
---|---|
signerOrProvider | string | Signer | Provider |
Returns
Inherited from
AugmentedVotingReputation.connect
createClaimDelayAction
▸ createClaimDelayAction(action
, value
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
action | BytesLike |
value | BigNumberish |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.createClaimDelayAction
createClaimDelayAction(bytes,uint256)
▸ createClaimDelayAction(bytes,uint256)(action
, value
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
action | BytesLike |
value | BigNumberish |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.createClaimDelayAction(bytes,uint256)
createDomainMotion
▸ createDomainMotion(_domainId
, _childSkillIndex
, _action
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Create a motion in any domain (DEPRECATED)
Parameters
Name | Type | Description |
---|---|---|
_domainId | BigNumberish | The domain where we vote on the motion |
_childSkillIndex | BigNumberish | The childSkillIndex pointing to the domain of the action |
_action | BytesLike | A bytes array encoding a function call |
_key | BytesLike | Reputation tree key for the domain |
_value | BytesLike | Reputation tree value for the domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.createDomainMotion
createDomainMotion(uint256,uint256,bytes,bytes,bytes,uint256,bytes32[])
▸ createDomainMotion(uint256,uint256,bytes,bytes,bytes,uint256,bytes32[])(_domainId
, _childSkillIndex
, _action
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Create a motion in any domain (DEPRECATED)
Parameters
Name | Type | Description |
---|---|---|
_domainId | BigNumberish | The domain where we vote on the motion |
_childSkillIndex | BigNumberish | The childSkillIndex pointing to the domain of the action |
_action | BytesLike | A bytes array encoding a function call |
_key | BytesLike | Reputation tree key for the domain |
_value | BytesLike | Reputation tree value for the domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.createDomainMotion(uint256,uint256,bytes,bytes,bytes,uint256,bytes32[])
createDomainMotionWithProofs
▸ createDomainMotionWithProofs(_domainId
, _action
, overrides?
): Promise
<ContractTransaction
>
Deprecated
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
Name | Type | Description |
---|---|---|
_domainId | BigNumberish | The domain where we vote on the motion |
_action | BytesLike | A bytes array encoding a function call |
overrides? | TxOverrides | - |
Returns
Promise
<ContractTransaction
>
Inherited from
CreateDomainMotionAugments.createDomainMotionWithProofs
createMotion
▸ createMotion(_domainId
, _childSkillIndex
, _altTarget
, _action
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Create a motion
Parameters
Name | Type | Description |
---|---|---|
_domainId | BigNumberish | The domain where we vote on the motion |
_childSkillIndex | BigNumberish | The childSkillIndex pointing to the domain of the action |
_altTarget | string | The contract to which we send the action (0x0 for the colony) |
_action | BytesLike | A bytes array encoding a function call |
_key | BytesLike | Reputation tree key for the root domain |
_value | BytesLike | Reputation tree value for the root domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.createMotion
createMotion(uint256,uint256,address,bytes,bytes,bytes,uint256,bytes32[])
▸ createMotion(uint256,uint256,address,bytes,bytes,bytes,uint256,bytes32[])(_domainId
, _childSkillIndex
, _altTarget
, _action
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Create a motion
Parameters
Name | Type | Description |
---|---|---|
_domainId | BigNumberish | The domain where we vote on the motion |
_childSkillIndex | BigNumberish | The childSkillIndex pointing to the domain of the action |
_altTarget | string | The contract to which we send the action (0x0 for the colony) |
_action | BytesLike | A bytes array encoding a function call |
_key | BytesLike | Reputation tree key for the root domain |
_value | BytesLike | Reputation tree value for the root domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.createMotion(uint256,uint256,address,bytes,bytes,bytes,uint256,bytes32[])
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
Name | Type | Description |
---|---|---|
_domainId | BigNumberish | The domain where we vote on the motion |
_altTarget | string | The contract to which we send the action (0x0 for the colony) |
_action | BytesLike | A 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
Name | Type | Description |
---|---|---|
_altTarget | string | The contract to which we send the action (0x0 for the colony) |
_action | BytesLike | A bytes array encoding a function call |
_key | BytesLike | Reputation tree key for the root domain |
_value | BytesLike | Reputation tree value for the root domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.createRootMotion
createRootMotion(address,bytes,bytes,bytes,uint256,bytes32[])
▸ createRootMotion(address,bytes,bytes,bytes,uint256,bytes32[])(_altTarget
, _action
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Create a motion in the root domain (DEPRECATED)
Parameters
Name | Type | Description |
---|---|---|
_altTarget | string | The contract to which we send the action (0x0 for the colony) |
_action | BytesLike | A bytes array encoding a function call |
_key | BytesLike | Reputation tree key for the root domain |
_value | BytesLike | Reputation tree value for the root domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.createRootMotion(address,bytes,bytes,bytes,uint256,bytes32[])
deployed
▸ deployed(): Promise
<VotingReputationClientV6
>
Returns
Promise
<VotingReputationClientV6
>
Inherited from
AugmentedVotingReputation.deployed
deprecate
▸ deprecate(_deprecated
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
_deprecated | boolean |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.deprecate
deprecate(bool)
▸ deprecate(bool)(_deprecated
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
_deprecated | boolean |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.deprecate(bool)
emit
▸ emit(eventName
, ...args
): boolean
Parameters
Name | Type |
---|---|
eventName | string | EventFilter |
...args | any [] |
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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_newDomainId | BigNumberish | The desired domain of escalation |
_childSkillIndex | BigNumberish | For the current domain, relative to the escalated domain |
_key | BytesLike | Reputation tree key for the new domain |
_value | BytesLike | Reputation tree value for the new domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.escalateMotion
escalateMotion(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])
▸ escalateMotion(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])(_motionId
, _newDomainId
, _childSkillIndex
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Escalate a motion to a higher domain
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_newDomainId | BigNumberish | The desired domain of escalation |
_childSkillIndex | BigNumberish | For the current domain, relative to the escalated domain |
_key | BytesLike | Reputation tree key for the new domain |
_value | BytesLike | Reputation tree value for the new domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.escalateMotion(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])
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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_newDomainId | BigNumberish | The desired domain of escalation |
overrides? | TxOverrides | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.escalateMotionWithProofs
executeMetaTransaction
▸ executeMetaTransaction(userAddress
, payload
, sigR
, sigS
, sigV
, overrides?
): Promise
<ContractTransaction
>
Executes a metatransaction targeting this contract
Parameters
Name | Type | Description |
---|---|---|
userAddress | string | The address of the user that signed the metatransaction |
payload | BytesLike | The transaction data that will be executed if signature valid |
sigR | BytesLike | The 'r' part of the signature |
sigS | BytesLike | The 's' part of the signature |
sigV | BigNumberish | The 'v' part of the signature |
overrides? | PayableOverrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.executeMetaTransaction
executeMetaTransaction(address,bytes,bytes32,bytes32,uint8)
▸ executeMetaTransaction(address,bytes,bytes32,bytes32,uint8)(userAddress
, payload
, sigR
, sigS
, sigV
, overrides?
): Promise
<ContractTransaction
>
Executes a metatransaction targeting this contract
Parameters
Name | Type | Description |
---|---|---|
userAddress | string | The address of the user that signed the metatransaction |
payload | BytesLike | The transaction data that will be executed if signature valid |
sigR | BytesLike | The 'r' part of the signature |
sigS | BytesLike | The 's' part of the signature |
sigV | BigNumberish | The 'v' part of the signature |
overrides? | PayableOverrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.executeMetaTransaction(address,bytes,bytes32,bytes32,uint8)
failingExecutionAllowed
▸ failingExecutionAllowed(_motionId
, overrides?
): Promise
<boolean
>
We are only expecting this to be called from finalize motion in the contracts. It is marked as external only so that the frontend can use it.
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
overrides? | CallOverrides | - |
Returns
Promise
<boolean
>
Inherited from
AugmentedVotingReputation.failingExecutionAllowed
failingExecutionAllowed(uint256)
▸ failingExecutionAllowed(uint256)(_motionId
, overrides?
): Promise
<boolean
>
We are only expecting this to be called from finalize motion in the contracts. It is marked as external only so that the frontend can use it.
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
overrides? | CallOverrides | - |
Returns
Promise
<boolean
>
Inherited from
AugmentedVotingReputation.failingExecutionAllowed(uint256)
fallback
▸ fallback(overrides?
): Promise
<TransactionResponse
>
Parameters
Name | Type |
---|---|
overrides? | TransactionRequest |
Returns
Promise
<TransactionResponse
>
Inherited from
AugmentedVotingReputation.fallback
finalizeMotion
▸ finalizeMotion(_motionId
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
_motionId | BigNumberish |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.finalizeMotion
finalizeMotion(uint256)
▸ finalizeMotion(uint256)(_motionId
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
_motionId | BigNumberish |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.finalizeMotion(uint256)
finishUpgrade
▸ finishUpgrade(overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.finishUpgrade
finishUpgrade()
▸ finishUpgrade()(overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.finishUpgrade()
getCapabilityRoles
▸ getCapabilityRoles(_sig
, overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
_sig | BytesLike |
overrides? | CallOverrides |
Returns
Promise
<string
>
Inherited from
AugmentedVotingReputation.getCapabilityRoles
getCapabilityRoles(bytes4)
▸ getCapabilityRoles(bytes4)(_sig
, overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
_sig | BytesLike |
overrides? | CallOverrides |
Returns
Promise
<string
>
Inherited from
AugmentedVotingReputation.getCapabilityRoles(bytes4)
getColony
▸ getColony(overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<string
>
Inherited from
AugmentedVotingReputation.getColony
getColony()
▸ getColony()(overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<string
>
Inherited from
AugmentedVotingReputation.getColony()
getDeprecated
▸ getDeprecated(overrides?
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<boolean
>
Inherited from
AugmentedVotingReputation.getDeprecated
getDeprecated()
▸ getDeprecated()(overrides?
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<boolean
>
Inherited from
AugmentedVotingReputation.getDeprecated()
getEscalationPeriod
▸ getEscalationPeriod(overrides?
): Promise
<BigNumber
>
Get the escalation period
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getEscalationPeriod
getEscalationPeriod()
▸ getEscalationPeriod()(overrides?
): Promise
<BigNumber
>
Get the escalation period
Parameters
Name | Type |
---|---|
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
Name | Type | Description |
---|---|---|
_structHash | BytesLike | The hash of the expenditureId or expenditureId*expenditureSlot |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getExpenditureMotionCount
getExpenditureMotionCount(bytes32)
▸ getExpenditureMotionCount(bytes32)(_structHash
, overrides?
): Promise
<BigNumber
>
Get the number of ongoing motions for a single expenditure / expenditure slot
Parameters
Name | Type | Description |
---|---|---|
_structHash | BytesLike | The hash of the expenditureId or expenditureId*expenditureSlot |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getExpenditureMotionCount(bytes32)
getExpenditurePastVote
▸ getExpenditurePastVote(_actionHash
, overrides?
): Promise
<BigNumber
>
Get the largest past vote on a single expenditure variable
Parameters
Name | Type | Description |
---|---|---|
_actionHash | BytesLike | The hash of the particular expenditure action |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getExpenditurePastVote
getExpenditurePastVote(bytes32)
▸ getExpenditurePastVote(bytes32)(_actionHash
, overrides?
): Promise
<BigNumber
>
Get the largest past vote on a single expenditure variable
Parameters
Name | Type | Description |
---|---|---|
_actionHash | BytesLike | The hash of the particular expenditure action |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getExpenditurePastVote(bytes32)
getMaxVoteFraction
▸ getMaxVoteFraction(overrides?
): Promise
<BigNumber
>
Get the max vote fraction
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getMaxVoteFraction
getMaxVoteFraction()
▸ getMaxVoteFraction()(overrides?
): Promise
<BigNumber
>
Get the max vote fraction
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getMaxVoteFraction()
getMetatransactionNonce
▸ getMetatransactionNonce(userAddress
, overrides?
): Promise
<BigNumber
>
Gets the next metatransaction nonce for user that should be used targeting this contract
Parameters
Name | Type | Description |
---|---|---|
userAddress | string | The address of the user that will sign the metatransaction |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getMetatransactionNonce
getMetatransactionNonce(address)
▸ getMetatransactionNonce(address)(userAddress
, overrides?
): Promise
<BigNumber
>
Gets the next metatransaction nonce for user that should be used targeting this contract
Parameters
Name | Type | Description |
---|---|---|
userAddress | string | The address of the user that will sign the metatransaction |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getMetatransactionNonce(address)
getMotion
▸ getMotion(_motionId
, overrides?
): Promise
<MotionStructOutput
>
Get the data for a single motion
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
overrides? | CallOverrides | - |
Returns
Promise
<MotionStructOutput
>
Inherited from
AugmentedVotingReputation.getMotion
getMotion(uint256)
▸ getMotion(uint256)(_motionId
, overrides?
): Promise
<MotionStructOutput
>
Get the data for a single motion
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
overrides? | CallOverrides | - |
Returns
Promise
<MotionStructOutput
>
Inherited from
AugmentedVotingReputation.getMotion(uint256)
getMotionCount
▸ getMotionCount(overrides?
): Promise
<BigNumber
>
Get the total motion count
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getMotionCount
getMotionCount()
▸ getMotionCount()(overrides?
): Promise
<BigNumber
>
Get the total motion count
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getMotionCount()
getMotionState
▸ getMotionState(_motionId
, overrides?
): Promise
<number
>
Get the current state of the motion
Parameters
Name | Type |
---|---|
_motionId | BigNumberish |
overrides? | CallOverrides |
Returns
Promise
<number
>
Inherited from
AugmentedVotingReputation.getMotionState
getMotionState(uint256)
▸ getMotionState(uint256)(_motionId
, overrides?
): Promise
<number
>
Get the current state of the motion
Parameters
Name | Type |
---|---|
_motionId | BigNumberish |
overrides? | CallOverrides |
Returns
Promise
<number
>
Inherited from
AugmentedVotingReputation.getMotionState(uint256)
getRevealPeriod
▸ getRevealPeriod(overrides?
): Promise
<BigNumber
>
Get the reveal period
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getRevealPeriod
getRevealPeriod()
▸ getRevealPeriod()(overrides?
): Promise
<BigNumber
>
Get the reveal period
Parameters
Name | Type |
---|---|
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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_staker | string | The staker address |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getStake
getStake(uint256,address,uint256)
▸ getStake(uint256,address,uint256)(_motionId
, _staker
, _vote
, overrides?
): Promise
<BigNumber
>
Get a user's stake on a motion
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_staker | string | The staker address |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getStake(uint256,address,uint256)
getStakePeriod
▸ getStakePeriod(overrides?
): Promise
<BigNumber
>
Get the stake period
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getStakePeriod
getStakePeriod()
▸ getStakePeriod()(overrides?
): Promise
<BigNumber
>
Get the stake period
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getStakePeriod()
getStakerReward
▸ getStakerReward(_motionId
, _staker
, _vote
, overrides?
): Promise
<[BigNumber
, BigNumber
]>
Get the staker reward
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_staker | string | The staker's address |
_vote | BigNumberish | The vote (0 = NAY, 1 = YAY) |
overrides? | CallOverrides | - |
Returns
Promise
<[BigNumber
, BigNumber
]>
Inherited from
AugmentedVotingReputation.getStakerReward
getStakerReward(uint256,address,uint256)
▸ getStakerReward(uint256,address,uint256)(_motionId
, _staker
, _vote
, overrides?
): Promise
<[BigNumber
, BigNumber
]>
Get the staker reward
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_staker | string | The staker's address |
_vote | BigNumberish | The vote (0 = NAY, 1 = YAY) |
overrides? | CallOverrides | - |
Returns
Promise
<[BigNumber
, BigNumber
]>
Inherited from
AugmentedVotingReputation.getStakerReward(uint256,address,uint256)
getSubmitPeriod
▸ getSubmitPeriod(overrides?
): Promise
<BigNumber
>
Get the submit period
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getSubmitPeriod
getSubmitPeriod()
▸ getSubmitPeriod()(overrides?
): Promise
<BigNumber
>
Get the submit period
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getSubmitPeriod()
getTotalStakeFraction
▸ getTotalStakeFraction(overrides?
): Promise
<BigNumber
>
Get the total stake fraction
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getTotalStakeFraction
getTotalStakeFraction()
▸ getTotalStakeFraction()(overrides?
): Promise
<BigNumber
>
Get the total stake fraction
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getTotalStakeFraction()
getUserMinStakeFraction
▸ getUserMinStakeFraction(overrides?
): Promise
<BigNumber
>
Get the user min stake fraction
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getUserMinStakeFraction
getUserMinStakeFraction()
▸ getUserMinStakeFraction()(overrides?
): Promise
<BigNumber
>
Get the user min stake fraction
Parameters
Name | Type |
---|---|
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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_voterRep | BigNumberish | The reputation the voter has in the domain |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getVoterReward
getVoterReward(uint256,uint256)
▸ getVoterReward(uint256,uint256)(_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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_voterRep | BigNumberish | The reputation the voter has in the domain |
overrides? | CallOverrides | - |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getVoterReward(uint256,uint256)
getVoterRewardFraction
▸ getVoterRewardFraction(overrides?
): Promise
<BigNumber
>
Get the voter reward fraction
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.getVoterRewardFraction
getVoterRewardFraction()
▸ getVoterRewardFraction()(overrides?
): Promise
<BigNumber
>
Get the voter reward fraction
Parameters
Name | Type |
---|---|
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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_voterRep | BigNumberish | The reputation the voter has in the domain |
_voterAddress | string | The address the user will be voting as |
overrides? | CallOverrides | - |
Returns
Promise
<[BigNumber
, BigNumber
]>
Inherited from
AugmentedVotingReputation.getVoterRewardRange
getVoterRewardRange(uint256,uint256,address)
▸ getVoterRewardRange(uint256,uint256,address)(_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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_voterRep | BigNumberish | The reputation the voter has in the domain |
_voterAddress | string | The address the user will be voting as |
overrides? | CallOverrides | - |
Returns
Promise
<[BigNumber
, BigNumber
]>
Inherited from
AugmentedVotingReputation.getVoterRewardRange(uint256,uint256,address)
identifier
▸ identifier(overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<string
>
Inherited from
AugmentedVotingReputation.identifier
identifier()
▸ identifier()(overrides?
): Promise
<string
>
Parameters
Name | Type |
---|---|
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
Name | Type | Description |
---|---|---|
_totalStakeFraction | BigNumberish | The fraction of the domain's reputation we need to stake |
_voterRewardFraction | BigNumberish | The fraction of the total stake paid out to voters as rewards |
_userMinStakeFraction | BigNumberish | The minimum per-user stake as fraction of total stake |
_maxVoteFraction | BigNumberish | The fraction of the domain's reputation which must submit for quick-end |
_stakePeriod | BigNumberish | The length of the staking period in seconds |
_submitPeriod | BigNumberish | The length of the submit period in seconds |
_revealPeriod | BigNumberish | The length of the reveal period in seconds |
_escalationPeriod | BigNumberish | The length of the escalation period in seconds |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.initialise
initialise(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)
▸ initialise(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)(_totalStakeFraction
, _voterRewardFraction
, _userMinStakeFraction
, _maxVoteFraction
, _stakePeriod
, _submitPeriod
, _revealPeriod
, _escalationPeriod
, overrides?
): Promise
<ContractTransaction
>
Initialise the extension
Parameters
Name | Type | Description |
---|---|---|
_totalStakeFraction | BigNumberish | The fraction of the domain's reputation we need to stake |
_voterRewardFraction | BigNumberish | The fraction of the total stake paid out to voters as rewards |
_userMinStakeFraction | BigNumberish | The minimum per-user stake as fraction of total stake |
_maxVoteFraction | BigNumberish | The fraction of the domain's reputation which must submit for quick-end |
_stakePeriod | BigNumberish | The length of the staking period in seconds |
_submitPeriod | BigNumberish | The length of the submit period in seconds |
_revealPeriod | BigNumberish | The length of the reveal period in seconds |
_escalationPeriod | BigNumberish | The length of the escalation period in seconds |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.initialise(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)
install
▸ install(_colony
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
_colony | string |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.install
install(address)
▸ install(address)(_colony
, overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
_colony | string |
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.install(address)
listenerCount
▸ listenerCount(eventName?
): number
Parameters
Name | Type |
---|---|
eventName? | string | EventFilter |
Returns
number
Inherited from
AugmentedVotingReputation.listenerCount
listeners
▸ listeners<TEvent
>(eventFilter?
): TypedListener
<TEvent
>[]
Type parameters
Name | Type |
---|---|
TEvent | extends TypedEvent <any , any , TEvent > |
Parameters
Name | Type |
---|---|
eventFilter? | TypedEventFilter <TEvent > |
Returns
TypedListener
<TEvent
>[]
Inherited from
AugmentedVotingReputation.listeners
▸ listeners(eventName?
): Listener
[]
Parameters
Name | Type |
---|---|
eventName? | string |
Returns
Listener
[]
Inherited from
AugmentedVotingReputation.listeners
queryFilter
▸ queryFilter<TEvent
>(event
, fromBlockOrBlockhash?
, toBlock?
): Promise
<TEvent
[]>
Type parameters
Name | Type |
---|---|
TEvent | extends TypedEvent <any , any , TEvent > |
Parameters
Name | Type |
---|---|
event | TypedEventFilter <TEvent > |
fromBlockOrBlockhash? | string | number |
toBlock? | string | number |
Returns
Promise
<TEvent
[]>
Inherited from
AugmentedVotingReputation.queryFilter
removeAllListeners
▸ removeAllListeners<TEvent
>(eventFilter
): VotingReputationClientV6
Type parameters
Name | Type |
---|---|
TEvent | extends TypedEvent <any , any , TEvent > |
Parameters
Name | Type |
---|---|
eventFilter | TypedEventFilter <TEvent > |
Returns
Inherited from
AugmentedVotingReputation.removeAllListeners
▸ removeAllListeners(eventName?
): VotingReputationClientV6
Parameters
Name | Type |
---|---|
eventName? | string |
Returns
Inherited from
AugmentedVotingReputation.removeAllListeners
revealVote
▸ revealVote(_motionId
, _salt
, _vote
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Reveal a vote secret for a motion
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_salt | BytesLike | The salt used to hash the vote |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
_key | BytesLike | Reputation tree key for the staker/domain |
_value | BytesLike | Reputation tree value for the staker/domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.revealVote
revealVote(uint256,bytes32,uint256,bytes,bytes,uint256,bytes32[])
▸ revealVote(uint256,bytes32,uint256,bytes,bytes,uint256,bytes32[])(_motionId
, _salt
, _vote
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Reveal a vote secret for a motion
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_salt | BytesLike | The salt used to hash the vote |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
_key | BytesLike | Reputation tree key for the staker/domain |
_value | BytesLike | Reputation tree value for the staker/domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.revealVote(uint256,bytes32,uint256,bytes,bytes,uint256,bytes32[])
stakeMotion
▸ stakeMotion(_motionId
, _permissionDomainId
, _childSkillIndex
, _vote
, _amount
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Stake on a motion
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_permissionDomainId | BigNumberish | The domain where the extension has the arbitration permission |
_childSkillIndex | BigNumberish | For the domain in which the motion is occurring |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
_amount | BigNumberish | The amount of tokens being staked |
_key | BytesLike | Reputation tree key for the staker/domain |
_value | BytesLike | Reputation tree value for the staker/domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.stakeMotion
stakeMotion(uint256,uint256,uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])
▸ stakeMotion(uint256,uint256,uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])(_motionId
, _permissionDomainId
, _childSkillIndex
, _vote
, _amount
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Stake on a motion
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_permissionDomainId | BigNumberish | The domain where the extension has the arbitration permission |
_childSkillIndex | BigNumberish | For the domain in which the motion is occurring |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
_amount | BigNumberish | The amount of tokens being staked |
_key | BytesLike | Reputation tree key for the staker/domain |
_value | BytesLike | Reputation tree value for the staker/domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.stakeMotion(uint256,uint256,uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])
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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_vote | BigNumberish | The side being supported (0 = NAY, 1 = YAY) |
_amount | BigNumberish | The 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
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_voteSecret | BytesLike | The hashed vote secret |
_key | BytesLike | Reputation tree key for the staker/domain |
_value | BytesLike | Reputation tree value for the staker/domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.submitVote
submitVote(uint256,bytes32,bytes,bytes,uint256,bytes32[])
▸ submitVote(uint256,bytes32,bytes,bytes,uint256,bytes32[])(_motionId
, _voteSecret
, _key
, _value
, _branchMask
, _siblings
, overrides?
): Promise
<ContractTransaction
>
Submit a vote secret for a motion
Parameters
Name | Type | Description |
---|---|---|
_motionId | BigNumberish | The id of the motion |
_voteSecret | BytesLike | The hashed vote secret |
_key | BytesLike | Reputation tree key for the staker/domain |
_value | BytesLike | Reputation tree value for the staker/domain |
_branchMask | BigNumberish | The branchmask of the proof |
_siblings | BytesLike [] | The siblings of the proof |
overrides? | Overrides & { from? : string } | - |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.submitVote(uint256,bytes32,bytes,bytes,uint256,bytes32[])
uninstall
▸ uninstall(overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.uninstall
uninstall()
▸ uninstall()(overrides?
): Promise
<ContractTransaction
>
Parameters
Name | Type |
---|---|
overrides? | Overrides & { from? : string } |
Returns
Promise
<ContractTransaction
>
Inherited from
AugmentedVotingReputation.uninstall()
version
▸ version(overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.version
version()
▸ version()(overrides?
): Promise
<BigNumber
>
Parameters
Name | Type |
---|---|
overrides? | CallOverrides |
Returns
Promise
<BigNumber
>
Inherited from
AugmentedVotingReputation.version()