Skip to main content

Interface: StakedExpenditureClientV2

Hierarchy

  • AugmentedStakedExpenditure<StakedExpenditure>

    StakedExpenditureClientV2

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

Inherited from

AugmentedStakedExpenditure._deployedPromise


_runningEvents

_runningEvents: Object

Index signature

[eventTag: string]: RunningEvent

Inherited from

AugmentedStakedExpenditure._runningEvents


_wrappedEmits

_wrappedEmits: Object

Index signature

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

Inherited from

AugmentedStakedExpenditure._wrappedEmits


address

Readonly address: string

Inherited from

AugmentedStakedExpenditure.address


callStatic

callStatic: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<string>
authority()(overrides?: CallOverrides) => Promise<string>
cancelAndPunish(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _callerPermissionDomainId: BigNumberish, _callerChildSkillIndex: BigNumberish, _expenditureId: BigNumberish, _punish: boolean, overrides?: CallOverrides) => Promise<void>
cancelAndPunish(uint256,uint256,uint256,uint256,uint256,bool)(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _callerPermissionDomainId: BigNumberish, _callerChildSkillIndex: BigNumberish, _expenditureId: BigNumberish, _punish: boolean, overrides?: CallOverrides) => Promise<void>
cancelAndReclaimStake(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<void>
cancelAndReclaimStake(uint256,uint256,uint256)(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<void>
deprecate(_deprecated: boolean, overrides?: CallOverrides) => Promise<void>
deprecate(bool)(_deprecated: boolean, overrides?: CallOverrides) => Promise<void>
executeMetaTransaction(_user: string, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<string>
executeMetaTransaction(address,bytes,bytes32,bytes32,uint8)(_user: string, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<string>
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>
getChainId(overrides?: CallOverrides) => Promise<BigNumber>
getChainId()(overrides?: CallOverrides) => Promise<BigNumber>
getColony(overrides?: CallOverrides) => Promise<string>
getColony()(overrides?: CallOverrides) => Promise<string>
getDeprecated(overrides?: CallOverrides) => Promise<boolean>
getDeprecated()(overrides?: CallOverrides) => Promise<boolean>
getMetatransactionNonce(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getMetatransactionNonce(address)(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getStake(_expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<StakeStructOutput>
getStake(uint256)(_expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<StakeStructOutput>
getStakeFraction(overrides?: CallOverrides) => Promise<BigNumber>
getStakeFraction()(overrides?: CallOverrides) => Promise<BigNumber>
identifier(overrides?: CallOverrides) => Promise<string>
identifier()(overrides?: CallOverrides) => Promise<string>
install(_colony: string, overrides?: CallOverrides) => Promise<void>
install(address)(_colony: string, overrides?: CallOverrides) => Promise<void>
makeExpenditureWithStake(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _domainId: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: CallOverrides) => Promise<void>
makeExpenditureWithStake(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _domainId: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: CallOverrides) => Promise<void>
multicall(data: BytesLike[], overrides?: CallOverrides) => Promise<string[]>
multicall(bytes[])(data: BytesLike[], overrides?: CallOverrides) => Promise<string[]>
owner(overrides?: CallOverrides) => Promise<string>
owner()(overrides?: CallOverrides) => Promise<string>
reclaimStake(_expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<void>
reclaimStake(uint256)(_expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<void>
setAuthority(authority_: string, overrides?: CallOverrides) => Promise<void>
setAuthority(address)(authority_: string, overrides?: CallOverrides) => Promise<void>
setOwner(owner_: string, overrides?: CallOverrides) => Promise<void>
setOwner(address)(owner_: string, overrides?: CallOverrides) => Promise<void>
setStakeFraction(_stakeFraction: BigNumberish, overrides?: CallOverrides) => Promise<void>
setStakeFraction(uint256)(_stakeFraction: BigNumberish, overrides?: CallOverrides) => Promise<void>
uninstall(overrides?: CallOverrides) => Promise<void>
uninstall()(overrides?: CallOverrides) => Promise<void>
verify(_owner: string, _nonce: BigNumberish, _chainId: BigNumberish, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
verify(address,uint256,uint256,bytes,bytes32,bytes32,uint8)(_owner: string, _nonce: BigNumberish, _chainId: BigNumberish, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
version(overrides?: CallOverrides) => Promise<BigNumber>
version()(overrides?: CallOverrides) => Promise<BigNumber>

Inherited from

AugmentedStakedExpenditure.callStatic


clientType

clientType: StakedExpenditureClient

Inherited from

AugmentedStakedExpenditure.clientType


clientVersion

clientVersion: 2

Overrides

AugmentedStakedExpenditure.clientVersion


colonyClient

colonyClient: AugmentedIColony<ValidColony>

An instance of the corresponding ColonyClient

Inherited from

AugmentedStakedExpenditure.colonyClient


deployTransaction

Readonly deployTransaction: TransactionResponse

Inherited from

AugmentedStakedExpenditure.deployTransaction


estimateGas

estimateGas: Object

Inherited from

AugmentedStakedExpenditure.estimateGas


filters

filters: Object

Type declaration

NameType
ExpenditureCancelled(expenditureId?: null) => ExpenditureCancelledEventFilter
ExpenditureCancelled(uint256)(expenditureId?: null) => ExpenditureCancelledEventFilter
ExpenditureMadeViaStake(creator?: null | string, expenditureId?: null, stake?: null) => ExpenditureMadeViaStakeEventFilter
ExpenditureMadeViaStake(address,uint256,uint256)(creator?: null | string, expenditureId?: null, stake?: null) => ExpenditureMadeViaStakeEventFilter
ExtensionInitialised() => ExtensionInitialisedEventFilter
ExtensionInitialised()() => ExtensionInitialisedEventFilter
LogSetAuthority(authority?: null | string) => LogSetAuthorityEventFilter
LogSetAuthority(address)(authority?: null | string) => LogSetAuthorityEventFilter
LogSetOwner(owner?: null | string) => LogSetOwnerEventFilter
LogSetOwner(address)(owner?: null | string) => LogSetOwnerEventFilter
MetaTransactionExecuted(user?: null, relayerAddress?: null, functionSignature?: null) => MetaTransactionExecutedEventFilter
MetaTransactionExecuted(address,address,bytes)(user?: null, relayerAddress?: null, functionSignature?: null) => MetaTransactionExecutedEventFilter
StakeFractionSet(stakeFraction?: null) => StakeFractionSetEventFilter
StakeFractionSet(uint256)(stakeFraction?: null) => StakeFractionSetEventFilter
StakeReclaimed(expenditureId?: null) => StakeReclaimedEventFilter
StakeReclaimed(uint256)(expenditureId?: null) => StakeReclaimedEventFilter

Inherited from

AugmentedStakedExpenditure.filters


functions

functions: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<[string]>
authority()(overrides?: CallOverrides) => Promise<[string]>
cancelAndPunish(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _callerPermissionDomainId: BigNumberish, _callerChildSkillIndex: BigNumberish, _expenditureId: BigNumberish, _punish: boolean, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
cancelAndPunish(uint256,uint256,uint256,uint256,uint256,bool)(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _callerPermissionDomainId: BigNumberish, _callerChildSkillIndex: BigNumberish, _expenditureId: BigNumberish, _punish: boolean, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
cancelAndReclaimStake(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _expenditureId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
cancelAndReclaimStake(uint256,uint256,uint256)(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _expenditureId: BigNumberish, 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>
executeMetaTransaction(_user: string, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: PayableOverrides & { from?: string }) => Promise<ContractTransaction>
executeMetaTransaction(address,bytes,bytes32,bytes32,uint8)(_user: string, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: PayableOverrides & { 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]>
getChainId(overrides?: CallOverrides) => Promise<[BigNumber]>
getChainId()(overrides?: CallOverrides) => Promise<[BigNumber]>
getColony(overrides?: CallOverrides) => Promise<[string]>
getColony()(overrides?: CallOverrides) => Promise<[string]>
getDeprecated(overrides?: CallOverrides) => Promise<[boolean]>
getDeprecated()(overrides?: CallOverrides) => Promise<[boolean]>
getMetatransactionNonce(_user: string, overrides?: CallOverrides) => Promise<[BigNumber] & { nonce: BigNumber }>
getMetatransactionNonce(address)(_user: string, overrides?: CallOverrides) => Promise<[BigNumber] & { nonce: BigNumber }>
getStake(_expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<[StakeStructOutput] & { stake: StakeStructOutput }>
getStake(uint256)(_expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<[StakeStructOutput] & { stake: StakeStructOutput }>
getStakeFraction(overrides?: CallOverrides) => Promise<[BigNumber] & { _stakeFraction: BigNumber }>
getStakeFraction()(overrides?: CallOverrides) => Promise<[BigNumber] & { _stakeFraction: BigNumber }>
identifier(overrides?: CallOverrides) => Promise<[string] & { _identifier: string }>
identifier()(overrides?: CallOverrides) => Promise<[string] & { _identifier: string }>
install(_colony: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
install(address)(_colony: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
makeExpenditureWithStake(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _domainId: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
makeExpenditureWithStake(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _domainId: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
multicall(data: BytesLike[], overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
multicall(bytes[])(data: BytesLike[], overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
owner(overrides?: CallOverrides) => Promise<[string]>
owner()(overrides?: CallOverrides) => Promise<[string]>
reclaimStake(_expenditureId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
reclaimStake(uint256)(_expenditureId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setAuthority(authority_: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setAuthority(address)(authority_: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setOwner(owner_: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setOwner(address)(owner_: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setStakeFraction(_stakeFraction: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setStakeFraction(uint256)(_stakeFraction: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
uninstall(overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
uninstall()(overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
verify(_owner: string, _nonce: BigNumberish, _chainId: BigNumberish, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<[boolean]>
verify(address,uint256,uint256,bytes,bytes32,bytes32,uint8)(_owner: string, _nonce: BigNumberish, _chainId: BigNumberish, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<[boolean]>
version(overrides?: CallOverrides) => Promise<[BigNumber] & { _version: BigNumber }>
version()(overrides?: CallOverrides) => Promise<[BigNumber] & { _version: BigNumber }>

Inherited from

AugmentedStakedExpenditure.functions


interface

interface: StakedExpenditureInterface

Inherited from

AugmentedStakedExpenditure.interface


off

off: OnEvent<StakedExpenditureClientV2>

Inherited from

AugmentedStakedExpenditure.off


on

on: OnEvent<StakedExpenditureClientV2>

Inherited from

AugmentedStakedExpenditure.on


once

once: OnEvent<StakedExpenditureClientV2>

Inherited from

AugmentedStakedExpenditure.once


populateTransaction

populateTransaction: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<PopulatedTransaction>
authority()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
cancelAndPunish(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _callerPermissionDomainId: BigNumberish, _callerChildSkillIndex: BigNumberish, _expenditureId: BigNumberish, _punish: boolean, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
cancelAndPunish(uint256,uint256,uint256,uint256,uint256,bool)(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _callerPermissionDomainId: BigNumberish, _callerChildSkillIndex: BigNumberish, _expenditureId: BigNumberish, _punish: boolean, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
cancelAndReclaimStake(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _expenditureId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
cancelAndReclaimStake(uint256,uint256,uint256)(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _expenditureId: BigNumberish, 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>
executeMetaTransaction(_user: string, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: PayableOverrides & { from?: string }) => Promise<PopulatedTransaction>
executeMetaTransaction(address,bytes,bytes32,bytes32,uint8)(_user: string, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: PayableOverrides & { 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>
getChainId(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getChainId()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getColony(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getColony()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getDeprecated(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getDeprecated()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMetatransactionNonce(_user: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMetatransactionNonce(address)(_user: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getStake(_expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getStake(uint256)(_expenditureId: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getStakeFraction(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getStakeFraction()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
identifier(overrides?: CallOverrides) => Promise<PopulatedTransaction>
identifier()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
install(_colony: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
install(address)(_colony: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
makeExpenditureWithStake(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _domainId: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
makeExpenditureWithStake(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])(_permissionDomainId: BigNumberish, _childSkillIndex: BigNumberish, _domainId: BigNumberish, _key: BytesLike, _value: BytesLike, _branchMask: BigNumberish, _siblings: BytesLike[], overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
multicall(data: BytesLike[], overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
multicall(bytes[])(data: BytesLike[], overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
owner(overrides?: CallOverrides) => Promise<PopulatedTransaction>
owner()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
reclaimStake(_expenditureId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
reclaimStake(uint256)(_expenditureId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setAuthority(authority_: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setAuthority(address)(authority_: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setOwner(owner_: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setOwner(address)(owner_: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setStakeFraction(_stakeFraction: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setStakeFraction(uint256)(_stakeFraction: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
uninstall(overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
uninstall()(overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
verify(_owner: string, _nonce: BigNumberish, _chainId: BigNumberish, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
verify(address,uint256,uint256,bytes,bytes32,bytes32,uint8)(_owner: string, _nonce: BigNumberish, _chainId: BigNumberish, _payload: BytesLike, _sigR: BytesLike, _sigS: BytesLike, _sigV: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
version(overrides?: CallOverrides) => Promise<PopulatedTransaction>
version()(overrides?: CallOverrides) => Promise<PopulatedTransaction>

Inherited from

AugmentedStakedExpenditure.populateTransaction


provider

Readonly provider: Provider

Inherited from

AugmentedStakedExpenditure.provider


removeListener

removeListener: OnEvent<StakedExpenditureClientV2>

Inherited from

AugmentedStakedExpenditure.removeListener


resolvedAddress

Readonly resolvedAddress: Promise<string>

Inherited from

AugmentedStakedExpenditure.resolvedAddress


signer

Readonly signer: Signer

Inherited from

AugmentedStakedExpenditure.signer


stakedExpenditureEvents

stakedExpenditureEvents: StakedExpenditureEvents

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

Inherited from

AugmentedStakedExpenditure.stakedExpenditureEvents

Methods

_checkRunningEvents

_checkRunningEvents(runningEvent): void

Parameters

NameType
runningEventRunningEvent

Returns

void

Inherited from

AugmentedStakedExpenditure._checkRunningEvents


_deployed

_deployed(blockTag?): Promise<Contract>

Parameters

NameType
blockTag?BlockTag

Returns

Promise<Contract>

Inherited from

AugmentedStakedExpenditure._deployed


_wrapEvent

_wrapEvent(runningEvent, log, listener): Event

Parameters

NameType
runningEventRunningEvent
logLog
listenerListener

Returns

Event

Inherited from

AugmentedStakedExpenditure._wrapEvent


attach

attach(addressOrName): StakedExpenditureClientV2

Parameters

NameType
addressOrNamestring

Returns

StakedExpenditureClientV2

Inherited from

AugmentedStakedExpenditure.attach


authority

authority(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.authority


authority()

authority()(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.authority()


cancelAndPunish

cancelAndPunish(_permissionDomainId, _childSkillIndex, _callerPermissionDomainId, _callerChildSkillIndex, _expenditureId, _punish, overrides?): Promise<ContractTransaction>

Cancel the expenditure and punish the stakerCan only be called by an arbitration user

Parameters

NameTypeDescription
_permissionDomainIdBigNumberishThe domainId in which the extension has the arbitration permission
_childSkillIndexBigNumberishThe index that the _domainId is relative to _permissionDomainId
_callerPermissionDomainIdBigNumberishThe domainId in which the caller has the arbitration permission
_callerChildSkillIndexBigNumberishThe index that the _domainId is relative to _callerPermissionDomainId
_expenditureIdBigNumberishThe id of the expenditure
_punishbooleanWhether the staker should be punished by losing an amount of reputation equal to the stake
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.cancelAndPunish


cancelAndPunish(uint256,uint256,uint256,uint256,uint256,bool)

cancelAndPunish(uint256,uint256,uint256,uint256,uint256,bool)(_permissionDomainId, _childSkillIndex, _callerPermissionDomainId, _callerChildSkillIndex, _expenditureId, _punish, overrides?): Promise<ContractTransaction>

Cancel the expenditure and punish the stakerCan only be called by an arbitration user

Parameters

NameTypeDescription
_permissionDomainIdBigNumberishThe domainId in which the extension has the arbitration permission
_childSkillIndexBigNumberishThe index that the _domainId is relative to _permissionDomainId
_callerPermissionDomainIdBigNumberishThe domainId in which the caller has the arbitration permission
_callerChildSkillIndexBigNumberishThe index that the _domainId is relative to _callerPermissionDomainId
_expenditureIdBigNumberishThe id of the expenditure
_punishbooleanWhether the staker should be punished by losing an amount of reputation equal to the stake
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.cancelAndPunish(uint256,uint256,uint256,uint256,uint256,bool)


cancelAndPunishWithProofs

cancelAndPunishWithProofs(_expenditureId, _punish, overrides?): Promise<ContractTransaction>

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

Parameters

NameTypeDescription
_expenditureIdBigNumberishThe id of the expenditure
_punishbooleanWhether the staker should be punished by losing an amount of reputation equal to the stake
overrides?TxOverrides-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.cancelAndPunishWithProofs


cancelAndReclaimStake

cancelAndReclaimStake(_permissionDomainId, _childSkillIndex, _expenditureId, overrides?): Promise<ContractTransaction>

Cancel the expenditure and reclaim the stake in one transactionCan only be called by expenditure owner while expenditure is in draft state

Parameters

NameTypeDescription
_permissionDomainIdBigNumberishThe domainId in which the extension has the arbitration permission
_childSkillIndexBigNumberishThe index that the _domainId is relative to _permissionDomainId
_expenditureIdBigNumberishThe id of the expenditure
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.cancelAndReclaimStake


cancelAndReclaimStake(uint256,uint256,uint256)

cancelAndReclaimStake(uint256,uint256,uint256)(_permissionDomainId, _childSkillIndex, _expenditureId, overrides?): Promise<ContractTransaction>

Cancel the expenditure and reclaim the stake in one transactionCan only be called by expenditure owner while expenditure is in draft state

Parameters

NameTypeDescription
_permissionDomainIdBigNumberishThe domainId in which the extension has the arbitration permission
_childSkillIndexBigNumberishThe index that the _domainId is relative to _permissionDomainId
_expenditureIdBigNumberishThe id of the expenditure
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.cancelAndReclaimStake(uint256,uint256,uint256)


cancelAndReclaimStakeWithProofs

cancelAndReclaimStakeWithProofs(_expenditureId, overrides?): Promise<ContractTransaction>

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

Parameters

NameTypeDescription
_expenditureIdBigNumberishThe id of the expenditure
overrides?TxOverrides-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.cancelAndReclaimStakeWithProofs


connect

connect(signerOrProvider): StakedExpenditureClientV2

Parameters

NameType
signerOrProviderstring | Signer | Provider

Returns

StakedExpenditureClientV2

Inherited from

AugmentedStakedExpenditure.connect


deployed

deployed(): Promise<StakedExpenditureClientV2>

Returns

Promise<StakedExpenditureClientV2>

Inherited from

AugmentedStakedExpenditure.deployed


deprecate

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

Called when deprecating (or undeprecating) the extension

Parameters

NameTypeDescription
_deprecatedbooleanIndicates whether the extension should be deprecated or undeprecated
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.deprecate


deprecate(bool)

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

Called when deprecating (or undeprecating) the extension

Parameters

NameTypeDescription
_deprecatedbooleanIndicates whether the extension should be deprecated or undeprecated
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.deprecate(bool)


emit

emit(eventName, ...args): boolean

Parameters

NameType
eventNamestring | EventFilter
...argsany[]

Returns

boolean

Inherited from

AugmentedStakedExpenditure.emit


executeMetaTransaction

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

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

Parameters

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

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.executeMetaTransaction


executeMetaTransaction(address,bytes,bytes32,bytes32,uint8)

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

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

Parameters

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

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.executeMetaTransaction(address,bytes,bytes32,bytes32,uint8)


fallback

fallback(overrides?): Promise<TransactionResponse>

Parameters

NameType
overrides?TransactionRequest

Returns

Promise<TransactionResponse>

Inherited from

AugmentedStakedExpenditure.fallback


finishUpgrade

finishUpgrade(overrides?): Promise<ContractTransaction>

Called when upgrading the extension

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.finishUpgrade


finishUpgrade()

finishUpgrade()(overrides?): Promise<ContractTransaction>

Called when upgrading the extension

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.finishUpgrade()


getCapabilityRoles

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

Parameters

NameType
_sigBytesLike
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.getCapabilityRoles


getCapabilityRoles(bytes4)

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

Parameters

NameType
_sigBytesLike
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.getCapabilityRoles(bytes4)


getChainId

getChainId(overrides?): Promise<BigNumber>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedStakedExpenditure.getChainId


getChainId()

getChainId()(overrides?): Promise<BigNumber>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedStakedExpenditure.getChainId()


getColony

getColony(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.getColony


getColony()

getColony()(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.getColony()


getDeprecated

getDeprecated(overrides?): Promise<boolean>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedStakedExpenditure.getDeprecated


getDeprecated()

getDeprecated()(overrides?): Promise<boolean>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedStakedExpenditure.getDeprecated()


getMetatransactionNonce

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

Parameters

NameType
_userstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedStakedExpenditure.getMetatransactionNonce


getMetatransactionNonce(address)

getMetatransactionNonce(address)(_user, overrides?): Promise<BigNumber>

Parameters

NameType
_userstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedStakedExpenditure.getMetatransactionNonce(address)


getStake

getStake(_expenditureId, overrides?): Promise<StakeStructOutput>

Get the stake for an expenditure

Parameters

NameTypeDescription
_expenditureIdBigNumberishThe id of the expenditure to get the stake for
overrides?CallOverrides-

Returns

Promise<StakeStructOutput>

Inherited from

AugmentedStakedExpenditure.getStake


getStake(uint256)

getStake(uint256)(_expenditureId, overrides?): Promise<StakeStructOutput>

Get the stake for an expenditure

Parameters

NameTypeDescription
_expenditureIdBigNumberishThe id of the expenditure to get the stake for
overrides?CallOverrides-

Returns

Promise<StakeStructOutput>

Inherited from

AugmentedStakedExpenditure.getStake(uint256)


getStakeFraction

getStakeFraction(overrides?): Promise<BigNumber>

Get the stake fraction

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedStakedExpenditure.getStakeFraction


getStakeFraction()

getStakeFraction()(overrides?): Promise<BigNumber>

Get the stake fraction

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedStakedExpenditure.getStakeFraction()


identifier

identifier(overrides?): Promise<string>

Returns the identifier of the extension

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.identifier


identifier()

identifier()(overrides?): Promise<string>

Returns the identifier of the extension

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.identifier()


install

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

Configures the extension

Parameters

NameTypeDescription
_colonystringThe colony in which the extension holds permissions
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.install


install(address)

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

Configures the extension

Parameters

NameTypeDescription
_colonystringThe colony in which the extension holds permissions
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.install(address)


listenerCount

listenerCount(eventName?): number

Parameters

NameType
eventName?string | EventFilter

Returns

number

Inherited from

AugmentedStakedExpenditure.listenerCount


listeners

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

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilter?TypedEventFilter<TEvent>

Returns

TypedListener<TEvent>[]

Inherited from

AugmentedStakedExpenditure.listeners

listeners(eventName?): Listener[]

Parameters

NameType
eventName?string

Returns

Listener[]

Inherited from

AugmentedStakedExpenditure.listeners


makeExpenditureWithStake

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

Make an expenditure by putting up a stake

Parameters

NameTypeDescription
_permissionDomainIdBigNumberishThe domainId in which the extension has the administration permission
_childSkillIndexBigNumberishThe index that the _domainId is relative to _permissionDomainId,
_domainIdBigNumberishThe domain where the expenditure belongs
_keyBytesLikeA reputation hash tree key, of the total reputation in _domainId
_valueBytesLikeReputation value indicating the total reputation in _domainId
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.makeExpenditureWithStake


makeExpenditureWithStake(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])

makeExpenditureWithStake(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])(_permissionDomainId, _childSkillIndex, _domainId, _key, _value, _branchMask, _siblings, overrides?): Promise<ContractTransaction>

Make an expenditure by putting up a stake

Parameters

NameTypeDescription
_permissionDomainIdBigNumberishThe domainId in which the extension has the administration permission
_childSkillIndexBigNumberishThe index that the _domainId is relative to _permissionDomainId,
_domainIdBigNumberishThe domain where the expenditure belongs
_keyBytesLikeA reputation hash tree key, of the total reputation in _domainId
_valueBytesLikeReputation value indicating the total reputation in _domainId
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.makeExpenditureWithStake(uint256,uint256,uint256,bytes,bytes,uint256,bytes32[])


makeExpenditureWithStakeWithProofs

makeExpenditureWithStakeWithProofs(_domainId, _key, _value, _branchMask, _siblings, overrides?): Promise<ContractTransaction>

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

Parameters

NameTypeDescription
_domainIdBigNumberishThe domain where the expenditure belongs
_keyBytesLikeA reputation hash tree key, of the total reputation in _domainId
_valueBytesLikeReputation value indicating the total reputation in _domainId
_branchMaskBigNumberishThe branchmask of the proof
_siblingsBytesLike[]The siblings of the proof
overrides?TxOverrides-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.makeExpenditureWithStakeWithProofs


multicall

multicall(data, overrides?): Promise<ContractTransaction>

Parameters

NameType
dataBytesLike[]
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.multicall


multicall(bytes[])

multicall(bytes[])(data, overrides?): Promise<ContractTransaction>

Parameters

NameType
dataBytesLike[]
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.multicall(bytes[])


owner

owner(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.owner


owner()

owner()(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedStakedExpenditure.owner()


queryFilter

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

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

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

Returns

Promise<TEvent[]>

Inherited from

AugmentedStakedExpenditure.queryFilter


reclaimStake

reclaimStake(_expenditureId, overrides?): Promise<ContractTransaction>

Reclaims the stake if the expenditure is finalized or cancelled

Parameters

NameTypeDescription
_expenditureIdBigNumberishThe id of the expenditure
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.reclaimStake


reclaimStake(uint256)

reclaimStake(uint256)(_expenditureId, overrides?): Promise<ContractTransaction>

Reclaims the stake if the expenditure is finalized or cancelled

Parameters

NameTypeDescription
_expenditureIdBigNumberishThe id of the expenditure
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.reclaimStake(uint256)


removeAllListeners

removeAllListeners<TEvent>(eventFilter): StakedExpenditureClientV2

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilterTypedEventFilter<TEvent>

Returns

StakedExpenditureClientV2

Inherited from

AugmentedStakedExpenditure.removeAllListeners

removeAllListeners(eventName?): StakedExpenditureClientV2

Parameters

NameType
eventName?string

Returns

StakedExpenditureClientV2

Inherited from

AugmentedStakedExpenditure.removeAllListeners


setAuthority

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

Parameters

NameType
authority_string
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.setAuthority


setAuthority(address)

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

Parameters

NameType
authority_string
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.setAuthority(address)


setOwner

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

Parameters

NameType
owner_string
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.setOwner


setOwner(address)

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

Parameters

NameType
owner_string
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.setOwner(address)


setStakeFraction

setStakeFraction(_stakeFraction, overrides?): Promise<ContractTransaction>

Sets the stake fraction

Parameters

NameTypeDescription
_stakeFractionBigNumberishWAD-denominated fraction, used to determine stake as fraction of rep in domain
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.setStakeFraction


setStakeFraction(uint256)

setStakeFraction(uint256)(_stakeFraction, overrides?): Promise<ContractTransaction>

Sets the stake fraction

Parameters

NameTypeDescription
_stakeFractionBigNumberishWAD-denominated fraction, used to determine stake as fraction of rep in domain
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.setStakeFraction(uint256)


uninstall

uninstall(overrides?): Promise<ContractTransaction>

Called when uninstalling the extension

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.uninstall


uninstall()

uninstall()(overrides?): Promise<ContractTransaction>

Called when uninstalling the extension

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedStakedExpenditure.uninstall()


verify

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

Parameters

NameType
_ownerstring
_nonceBigNumberish
_chainIdBigNumberish
_payloadBytesLike
_sigRBytesLike
_sigSBytesLike
_sigVBigNumberish
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedStakedExpenditure.verify


verify(address,uint256,uint256,bytes,bytes32,bytes32,uint8)

verify(address,uint256,uint256,bytes,bytes32,bytes32,uint8)(_owner, _nonce, _chainId, _payload, _sigR, _sigS, _sigV, overrides?): Promise<boolean>

Parameters

NameType
_ownerstring
_nonceBigNumberish
_chainIdBigNumberish
_payloadBytesLike
_sigRBytesLike
_sigSBytesLike
_sigVBigNumberish
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedStakedExpenditure.verify(address,uint256,uint256,bytes,bytes32,bytes32,uint8)


version

version(overrides?): Promise<BigNumber>

Returns the version of the extension

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedStakedExpenditure.version


version()

version()(overrides?): Promise<BigNumber>

Returns the version of the extension

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedStakedExpenditure.version()