diff --git a/.changeset/mighty-rings-turn.md b/.changeset/mighty-rings-turn.md new file mode 100644 index 000000000..28ec70f52 --- /dev/null +++ b/.changeset/mighty-rings-turn.md @@ -0,0 +1,5 @@ +--- +"@colony/colony-js": minor +--- + +Exported VotingReputationFactory diff --git a/packages/colony-js/docs/api/README.md b/packages/colony-js/docs/api/README.md index 3c644b5f2..d5f27bc72 100644 --- a/packages/colony-js/docs/api/README.md +++ b/packages/colony-js/docs/api/README.md @@ -32,6 +32,7 @@ - [ERC20TokenFactory](classes/ERC20TokenFactory.md) - [ERC2612TokenFactory](classes/ERC2612TokenFactory.md) - [ReputationClient](classes/ReputationClient.md) +- [VotingReputationFactory](classes/VotingReputationFactory.md) ## Interfaces diff --git a/packages/colony-js/docs/api/classes/VotingReputationFactory.md b/packages/colony-js/docs/api/classes/VotingReputationFactory.md new file mode 100644 index 000000000..89e0138c7 --- /dev/null +++ b/packages/colony-js/docs/api/classes/VotingReputationFactory.md @@ -0,0 +1,40 @@ +# Class: VotingReputationFactory + +## Constructors + +### constructor + +• **new VotingReputationFactory**() + +## Properties + +### abi + +▪ `Static` `Readonly` **abi**: readonly [{ `anonymous`: ``false`` = false; `inputs`: readonly [] = []; `name`: ``"ExtensionInitialised"`` = "ExtensionInitialised"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"authority"`` = "authority"; `type`: ``"address"`` = "address" }] ; `name`: ``"LogSetAuthority"`` = "LogSetAuthority"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"owner"`` = "owner"; `type`: ``"address"`` = "address" }] ; `name`: ``"LogSetOwner"`` = "LogSetOwner"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``false`` = false; `internalType`: ``"address"`` = "address"; `name`: ``"user"`` = "user"; `type`: ``"address"`` = "address" }, { `indexed`: ``false`` = false; `internalType`: ``"address payable"`` = "address payable"; `name`: ``"relayerAddress"`` = "relayerAddress"; `type`: ``"address"`` = "address" }, { `indexed`: ``false`` = false; `internalType`: ``"bytes"`` = "bytes"; `name`: ``"functionSignature"`` = "functionSignature"; `type`: ``"bytes"`` = "bytes" }] ; `name`: ``"MetaTransactionExecuted"`` = "MetaTransactionExecuted"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"motionId"`` = "motionId"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``false`` = false; `internalType`: ``"address"`` = "address"; `name`: ``"creator"`` = "creator"; `type`: ``"address"`` = "address" }, { `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"domainId"`` = "domainId"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"MotionCreated"`` = "MotionCreated"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"motionId"`` = "motionId"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``false`` = false; `internalType`: ``"address"`` = "address"; `name`: ``"escalator"`` = "escalator"; `type`: ``"address"`` = "address" }, { `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"domainId"`` = "domainId"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"newDomainId"`` = "newDomainId"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"MotionEscalated"`` = "MotionEscalated"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"motionId"`` = "motionId"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``false`` = false; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"eventIndex"`` = "eventIndex"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"MotionEventSet"`` = "MotionEventSet"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"motionId"`` = "motionId"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``false`` = false; `internalType`: ``"bytes"`` = "bytes"; `name`: ``"action"`` = "action"; `type`: ``"bytes"`` = "bytes" }, { `indexed`: ``false`` = false; `internalType`: ``"bool"`` = "bool"; `name`: ``"executed"`` = "executed"; `type`: ``"bool"`` = "bool" }] ; `name`: ``"MotionFinalized"`` = "MotionFinalized"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"motionId"`` = "motionId"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"staker"`` = "staker"; `type`: ``"address"`` = "address" }, { `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"vote"`` = "vote"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``false`` = false; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"amount"`` = "amount"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"MotionRewardClaimed"`` = "MotionRewardClaimed"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"motionId"`` = "motionId"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"staker"`` = "staker"; `type`: ``"address"`` = "address" }, { `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"vote"`` = "vote"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``false`` = false; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"amount"`` = "amount"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"MotionStaked"`` = "MotionStaked"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"motionId"`` = "motionId"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"voter"`` = "voter"; `type`: ``"address"`` = "address" }, { `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"vote"`` = "vote"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"MotionVoteRevealed"`` = "MotionVoteRevealed"; `type`: ``"event"`` = "event" }, { `anonymous`: ``false`` = false; `inputs`: readonly [{ `indexed`: ``true`` = true; `internalType`: ``"uint256"`` = "uint256"; `name`: ``"motionId"`` = "motionId"; `type`: ``"uint256"`` = "uint256" }, { `indexed`: ``true`` = true; `internalType`: ``"address"`` = "address"; `name`: ``"voter"`` = "voter"; `type`: ``"address"`` = "address" }] ; `name`: ``"MotionVoteSubmitted"`` = "MotionVoteSubmitted"; `type`: ``"event"`` = "event" }, { `inputs`: readonly [] = []; `name`: ``"authority"`` = "authority"; `outputs`: readonly [{ `internalType`: ``"contract DSAuthority"`` = "contract DSAuthority"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"address"`` = "address"; `name`: ``"_user"`` = "\_user"; `type`: ``"address"`` = "address" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_payload"`` = "\_payload"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"_sigR"`` = "\_sigR"; `type`: ``"bytes32"`` = "bytes32" }, { `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"_sigS"`` = "\_sigS"; `type`: ``"bytes32"`` = "bytes32" }, { `internalType`: ``"uint8"`` = "uint8"; `name`: ``"_sigV"`` = "\_sigV"; `type`: ``"uint8"`` = "uint8" }] ; `name`: ``"executeMetaTransaction"`` = "executeMetaTransaction"; `outputs`: readonly [{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }] ; `stateMutability`: ``"payable"`` = "payable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"bytes4"`` = "bytes4"; `name`: ``"_sig"`` = "\_sig"; `type`: ``"bytes4"`` = "bytes4" }] ; `name`: ``"getCapabilityRoles"`` = "getCapabilityRoles"; `outputs`: readonly [{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getChainId"`` = "getChainId"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getColony"`` = "getColony"; `outputs`: readonly [{ `internalType`: ``"address"`` = "address"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getDeprecated"`` = "getDeprecated"; `outputs`: readonly [{ `internalType`: ``"bool"`` = "bool"; `name`: ``""`` = ""; `type`: ``"bool"`` = "bool" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"owner"`` = "owner"; `outputs`: readonly [{ `internalType`: ``"address"`` = "address"; `name`: ``""`` = ""; `type`: ``"address"`` = "address" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"contract DSAuthority"`` = "contract DSAuthority"; `name`: ``"authority_"`` = "authority\_"; `type`: ``"address"`` = "address" }] ; `name`: ``"setAuthority"`` = "setAuthority"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"address"`` = "address"; `name`: ``"owner_"`` = "owner\_"; `type`: ``"address"`` = "address" }] ; `name`: ``"setOwner"`` = "setOwner"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"address"`` = "address"; `name`: ``"_owner"`` = "\_owner"; `type`: ``"address"`` = "address" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_nonce"`` = "\_nonce"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_chainId"`` = "\_chainId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_payload"`` = "\_payload"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"_sigR"`` = "\_sigR"; `type`: ``"bytes32"`` = "bytes32" }, { `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"_sigS"`` = "\_sigS"; `type`: ``"bytes32"`` = "bytes32" }, { `internalType`: ``"uint8"`` = "uint8"; `name`: ``"_sigV"`` = "\_sigV"; `type`: ``"uint8"`` = "uint8" }] ; `name`: ``"verify"`` = "verify"; `outputs`: readonly [{ `internalType`: ``"bool"`` = "bool"; `name`: ``""`` = ""; `type`: ``"bool"`` = "bool" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"address"`` = "address"; `name`: ``"userAddress"`` = "userAddress"; `type`: ``"address"`` = "address" }] ; `name`: ``"getMetatransactionNonce"`` = "getMetatransactionNonce"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"nonce"`` = "nonce"; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"identifier"`` = "identifier"; `outputs`: readonly [{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``""`` = ""; `type`: ``"bytes32"`` = "bytes32" }] ; `stateMutability`: ``"pure"`` = "pure"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"version"`` = "version"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"pure"`` = "pure"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"address"`` = "address"; `name`: ``"_colony"`` = "\_colony"; `type`: ``"address"`` = "address" }] ; `name`: ``"install"`` = "install"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_totalStakeFraction"`` = "\_totalStakeFraction"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_voterRewardFraction"`` = "\_voterRewardFraction"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_userMinStakeFraction"`` = "\_userMinStakeFraction"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_maxVoteFraction"`` = "\_maxVoteFraction"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_stakePeriod"`` = "\_stakePeriod"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_submitPeriod"`` = "\_submitPeriod"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_revealPeriod"`` = "\_revealPeriod"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_escalationPeriod"`` = "\_escalationPeriod"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"initialise"`` = "initialise"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"finishUpgrade"`` = "finishUpgrade"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"bool"`` = "bool"; `name`: ``"_deprecated"`` = "\_deprecated"; `type`: ``"bool"`` = "bool" }] ; `name`: ``"deprecate"`` = "deprecate"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"uninstall"`` = "uninstall"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_domainId"`` = "\_domainId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_childSkillIndex"`` = "\_childSkillIndex"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"address"`` = "address"; `name`: ``"_altTarget"`` = "\_altTarget"; `type`: ``"address"`` = "address" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_action"`` = "\_action"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_key"`` = "\_key"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_value"`` = "\_value"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_branchMask"`` = "\_branchMask"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes32[]"`` = "bytes32[]"; `name`: ``"_siblings"`` = "\_siblings"; `type`: ``"bytes32[]"`` = "bytes32[]" }] ; `name`: ``"createMotion"`` = "createMotion"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"address"`` = "address"; `name`: ``"_altTarget"`` = "\_altTarget"; `type`: ``"address"`` = "address" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_action"`` = "\_action"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_key"`` = "\_key"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_value"`` = "\_value"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_branchMask"`` = "\_branchMask"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes32[]"`` = "bytes32[]"; `name`: ``"_siblings"`` = "\_siblings"; `type`: ``"bytes32[]"`` = "bytes32[]" }] ; `name`: ``"createRootMotion"`` = "createRootMotion"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_domainId"`` = "\_domainId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_childSkillIndex"`` = "\_childSkillIndex"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_action"`` = "\_action"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_key"`` = "\_key"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_value"`` = "\_value"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_branchMask"`` = "\_branchMask"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes32[]"`` = "bytes32[]"; `name`: ``"_siblings"`` = "\_siblings"; `type`: ``"bytes32[]"`` = "bytes32[]" }] ; `name`: ``"createDomainMotion"`` = "createDomainMotion"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_permissionDomainId"`` = "\_permissionDomainId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_childSkillIndex"`` = "\_childSkillIndex"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_vote"`` = "\_vote"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_amount"`` = "\_amount"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_key"`` = "\_key"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_value"`` = "\_value"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_branchMask"`` = "\_branchMask"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes32[]"`` = "bytes32[]"; `name`: ``"_siblings"`` = "\_siblings"; `type`: ``"bytes32[]"`` = "bytes32[]" }] ; `name`: ``"stakeMotion"`` = "stakeMotion"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"_voteSecret"`` = "\_voteSecret"; `type`: ``"bytes32"`` = "bytes32" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_key"`` = "\_key"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_value"`` = "\_value"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_branchMask"`` = "\_branchMask"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes32[]"`` = "bytes32[]"; `name`: ``"_siblings"`` = "\_siblings"; `type`: ``"bytes32[]"`` = "bytes32[]" }] ; `name`: ``"submitVote"`` = "submitVote"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"_salt"`` = "\_salt"; `type`: ``"bytes32"`` = "bytes32" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_vote"`` = "\_vote"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_key"`` = "\_key"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_value"`` = "\_value"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_branchMask"`` = "\_branchMask"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes32[]"`` = "bytes32[]"; `name`: ``"_siblings"`` = "\_siblings"; `type`: ``"bytes32[]"`` = "bytes32[]" }] ; `name`: ``"revealVote"`` = "revealVote"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_newDomainId"`` = "\_newDomainId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_childSkillIndex"`` = "\_childSkillIndex"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_key"`` = "\_key"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"_value"`` = "\_value"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_branchMask"`` = "\_branchMask"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"bytes32[]"`` = "bytes32[]"; `name`: ``"_siblings"`` = "\_siblings"; `type`: ``"bytes32[]"`` = "bytes32[]" }] ; `name`: ``"escalateMotion"`` = "escalateMotion"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"finalizeMotion"`` = "finalizeMotion"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"failingExecutionAllowed"`` = "failingExecutionAllowed"; `outputs`: readonly [{ `internalType`: ``"bool"`` = "bool"; `name`: ``""`` = ""; `type`: ``"bool"`` = "bool" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_permissionDomainId"`` = "\_permissionDomainId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_childSkillIndex"`` = "\_childSkillIndex"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"address"`` = "address"; `name`: ``"_staker"`` = "\_staker"; `type`: ``"address"`` = "address" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_vote"`` = "\_vote"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"claimReward"`` = "claimReward"; `outputs`: readonly [] = []; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getTotalStakeFraction"`` = "getTotalStakeFraction"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getVoterRewardFraction"`` = "getVoterRewardFraction"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getUserMinStakeFraction"`` = "getUserMinStakeFraction"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getMaxVoteFraction"`` = "getMaxVoteFraction"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getStakePeriod"`` = "getStakePeriod"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getSubmitPeriod"`` = "getSubmitPeriod"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getRevealPeriod"`` = "getRevealPeriod"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getEscalationPeriod"`` = "getEscalationPeriod"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [] = []; `name`: ``"getMotionCount"`` = "getMotionCount"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"getMotion"`` = "getMotion"; `outputs`: readonly [{ `components`: readonly [{ `internalType`: ``"uint64[3]"`` = "uint64[3]"; `name`: ``"events"`` = "events"; `type`: ``"uint64[3]"`` = "uint64[3]" }, { `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"rootHash"`` = "rootHash"; `type`: ``"bytes32"`` = "bytes32" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"domainId"`` = "domainId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"skillId"`` = "skillId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"skillRep"`` = "skillRep"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"repSubmitted"`` = "repSubmitted"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"paidVoterComp"`` = "paidVoterComp"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256[2]"`` = "uint256[2]"; `name`: ``"pastVoterComp"`` = "pastVoterComp"; `type`: ``"uint256[2]"`` = "uint256[2]" }, { `internalType`: ``"uint256[2]"`` = "uint256[2]"; `name`: ``"stakes"`` = "stakes"; `type`: ``"uint256[2]"`` = "uint256[2]" }, { `internalType`: ``"uint256[2]"`` = "uint256[2]"; `name`: ``"votes"`` = "votes"; `type`: ``"uint256[2]"`` = "uint256[2]" }, { `internalType`: ``"bool"`` = "bool"; `name`: ``"escalated"`` = "escalated"; `type`: ``"bool"`` = "bool" }, { `internalType`: ``"bool"`` = "bool"; `name`: ``"finalized"`` = "finalized"; `type`: ``"bool"`` = "bool" }, { `internalType`: ``"address"`` = "address"; `name`: ``"altTarget"`` = "altTarget"; `type`: ``"address"`` = "address" }, { `internalType`: ``"bytes"`` = "bytes"; `name`: ``"action"`` = "action"; `type`: ``"bytes"`` = "bytes" }] ; `internalType`: ``"struct VotingReputation.Motion"`` = "struct VotingReputation.Motion"; `name`: ``"motion"`` = "motion"; `type`: ``"tuple"`` = "tuple" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"address"`` = "address"; `name`: ``"_staker"`` = "\_staker"; `type`: ``"address"`` = "address" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_vote"`` = "\_vote"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"getStake"`` = "getStake"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"_structHash"`` = "\_structHash"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"getExpenditureMotionCount"`` = "getExpenditureMotionCount"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"bytes32"`` = "bytes32"; `name`: ``"_actionHash"`` = "\_actionHash"; `type`: ``"bytes32"`` = "bytes32" }] ; `name`: ``"getExpenditurePastVote"`` = "getExpenditurePastVote"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"getMotionState"`` = "getMotionState"; `outputs`: readonly [{ `internalType`: ``"enum VotingReputation.MotionState"`` = "enum VotingReputation.MotionState"; `name`: ``""`` = ""; `type`: ``"uint8"`` = "uint8" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_voterRep"`` = "\_voterRep"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"getVoterReward"`` = "getVoterReward"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_voterRep"`` = "\_voterRep"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"address"`` = "address"; `name`: ``"_voterAddress"`` = "\_voterAddress"; `type`: ``"address"`` = "address" }] ; `name`: ``"getVoterRewardRange"`` = "getVoterRewardRange"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_motionId"`` = "\_motionId"; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"address"`` = "address"; `name`: ``"_staker"`` = "\_staker"; `type`: ``"address"`` = "address" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"_vote"`` = "\_vote"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"getStakerReward"`` = "getStakerReward"; `outputs`: readonly [{ `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``""`` = ""; `type`: ``"uint256"`` = "uint256" }] ; `stateMutability`: ``"view"`` = "view"; `type`: ``"function"`` = "function" }, { `inputs`: readonly [{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``"action"`` = "action"; `type`: ``"bytes"`` = "bytes" }, { `internalType`: ``"uint256"`` = "uint256"; `name`: ``"value"`` = "value"; `type`: ``"uint256"`` = "uint256" }] ; `name`: ``"createClaimDelayAction"`` = "createClaimDelayAction"; `outputs`: readonly [{ `internalType`: ``"bytes"`` = "bytes"; `name`: ``""`` = ""; `type`: ``"bytes"`` = "bytes" }] ; `stateMutability`: ``"nonpayable"`` = "nonpayable"; `type`: ``"function"`` = "function" }] = `_abi` + +## Methods + +### connect + +▸ `Static` **connect**(`address`, `signerOrProvider`): `VotingReputation` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `address` | `string` | +| `signerOrProvider` | `Signer` \| `Provider` | + +#### Returns + +`VotingReputation` + +___ + +### createInterface + +▸ `Static` **createInterface**(): `VotingReputationInterface` + +#### Returns + +`VotingReputationInterface` diff --git a/packages/colony-js/src/index.ts b/packages/colony-js/src/index.ts index bbe895b43..7f5dee039 100644 --- a/packages/colony-js/src/index.ts +++ b/packages/colony-js/src/index.ts @@ -1,6 +1,7 @@ // Attention: always adjust to newest versions! export const LATEST_TAG = 'glwss4'; export { IColony__factory as ColonyFactory } from './contracts/IColony/14/index.js'; +export { VotingReputation__factory as VotingReputationFactory } from './contracts/VotingReputation/5/index.js'; export * from '@colony/core'; export * from '@colony/tokens';