Interface IAccessController

Hierarchy

  • BaseContract
    • IAccessController

Index

Constructors

constructor

  • new IAccessController(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): IAccessController
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns IAccessController

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

_runningEvents

_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent

_wrappedEmits

_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: Array<any>) => void
      • (...args: Array<any>): void
      • Parameters

        • Rest ...args: Array<any>

        Returns void

Readonly address

address: string

callStatic

callStatic: { addGuardian: any; addOwner: any; changeProposalTimelock: any; discardCurrentProposal: any; getProposal: any; guardianCosign: any; guardianPropose: any; isGuardian: any; isOwner: any; removeGuardian: any; removeOwner: any }

Type declaration

  • addGuardian: function
    • addGuardian(_newGuardian: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _newGuardian: PromiseOrValue<string>
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • addOwner: function
    • addOwner(_newOwner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

  • changeProposalTimelock: function
    • changeProposalTimelock(_newTimelock: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _newTimelock: PromiseOrValue<BigNumberish>
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • discardCurrentProposal: function
    • discardCurrentProposal(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • getProposal: function
    • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>
    • Parameters

      • _proposalId: PromiseOrValue<BigNumberish>
      • Optional overrides: CallOverrides

      Returns Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>

  • guardianCosign: function
    • guardianCosign(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • guardianPropose: function
    • guardianPropose(_newOwner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

  • isGuardian: function
    • isGuardian(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

  • isOwner: function
    • isOwner(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

  • removeGuardian: function
    • removeGuardian(_guardian: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

  • removeOwner: function
    • removeOwner(_owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { addGuardian: any; addOwner: any; changeProposalTimelock: any; discardCurrentProposal: any; getProposal: any; guardianCosign: any; guardianPropose: any; isGuardian: any; isOwner: any; removeGuardian: any; removeOwner: any }

Type declaration

  • addGuardian: function
    • Parameters

      Returns Promise<BigNumber>

  • addOwner: function
  • changeProposalTimelock: function
    • changeProposalTimelock(_newTimelock: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • discardCurrentProposal: function
    • discardCurrentProposal(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • getProposal: function
    • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _proposalId: PromiseOrValue<BigNumberish>
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • guardianCosign: function
    • guardianCosign(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • guardianPropose: function
  • isGuardian: function
    • isGuardian(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • isOwner: function
    • isOwner(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • removeGuardian: function
  • removeOwner: function

filters

filters: { GuardianAdded: any; GuardianAdded(address): any; GuardianRemoved: any; GuardianRemoved(address): any; OwnerAdded: any; OwnerAdded(address): any; OwnerRemoved: any; OwnerRemoved(address): any; ProposalDiscarded: any; ProposalDiscarded(uint256,address): any; ProposalSubmitted: any; ProposalSubmitted(uint256,address,address): any; ProposalTimelockChanged: any; ProposalTimelockChanged(uint256): any; QuorumNotReached: any; QuorumNotReached(uint256,address,uint256): any }

Type declaration

functions

functions: { addGuardian: any; addOwner: any; changeProposalTimelock: any; discardCurrentProposal: any; getProposal: any; guardianCosign: any; guardianPropose: any; isGuardian: any; isOwner: any; removeGuardian: any; removeOwner: any }

Type declaration

  • addGuardian: function
    • addGuardian(_newGuardian: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • addOwner: function
    • Parameters

      Returns Promise<ContractTransaction>

  • changeProposalTimelock: function
    • changeProposalTimelock(_newTimelock: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • discardCurrentProposal: function
    • discardCurrentProposal(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • getProposal: function
    • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>
    • Parameters

      • _proposalId: PromiseOrValue<BigNumberish>
      • Optional overrides: CallOverrides

      Returns Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>

  • guardianCosign: function
    • guardianCosign(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • guardianPropose: function
    • guardianPropose(_newOwner: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • isGuardian: function
    • isGuardian(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[]>
    • Parameters

      Returns Promise<[]>

  • isOwner: function
    • isOwner(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[]>
    • Parameters

      Returns Promise<[]>

  • removeGuardian: function
    • removeGuardian(_guardian: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • removeOwner: function
    • Parameters

      Returns Promise<ContractTransaction>

interface

off

off: OnEvent<this>

on

on: OnEvent<this>

once

once: OnEvent<this>

populateTransaction

populateTransaction: { addGuardian: any; addOwner: any; changeProposalTimelock: any; discardCurrentProposal: any; getProposal: any; guardianCosign: any; guardianPropose: any; isGuardian: any; isOwner: any; removeGuardian: any; removeOwner: any }

Type declaration

  • addGuardian: function
    • addGuardian(_newGuardian: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • addOwner: function
    • Parameters

      Returns Promise<PopulatedTransaction>

  • changeProposalTimelock: function
    • changeProposalTimelock(_newTimelock: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • discardCurrentProposal: function
    • discardCurrentProposal(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • getProposal: function
    • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • _proposalId: PromiseOrValue<BigNumberish>
      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • guardianCosign: function
    • guardianCosign(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • guardianPropose: function
    • guardianPropose(_newOwner: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • isGuardian: function
    • isGuardian(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • isOwner: function
    • isOwner(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • removeGuardian: function
    • removeGuardian(_guardian: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • removeOwner: function
    • Parameters

      Returns Promise<PopulatedTransaction>

Readonly provider

provider: Provider

removeListener

removeListener: OnEvent<this>

Readonly resolvedAddress

resolvedAddress: Promise<string>

Readonly signer

signer: Signer

Methods

_checkRunningEvents

  • _checkRunningEvents(runningEvent: RunningEvent): void

_deployed

  • _deployed(blockTag?: BlockTag): Promise<Contract>
  • Parameters

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

_wrapEvent

  • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
  • Parameters

    • runningEvent: RunningEvent
    • log: Log
    • listener: Listener

    Returns Event

addGuardian

  • addGuardian(_newGuardian: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

addOwner

  • Parameters

    Returns Promise<ContractTransaction>

attach

  • attach(addressOrName: string): this
  • Parameters

    • addressOrName: string

    Returns this

changeProposalTimelock

  • changeProposalTimelock(_newTimelock: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

connect

  • connect(signerOrProvider: Signer | Provider | string): this
  • Parameters

    • signerOrProvider: Signer | Provider | string

    Returns this

deployed

  • deployed(): Promise<this>
  • Returns Promise<this>

discardCurrentProposal

  • discardCurrentProposal(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

emit

  • emit(eventName: EventFilter | string, ...args: Array<any>): boolean
  • Parameters

    • eventName: EventFilter | string
    • Rest ...args: Array<any>

    Returns boolean

fallback

  • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
  • Parameters

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

getProposal

  • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>
  • Parameters

    • _proposalId: PromiseOrValue<BigNumberish>
    • Optional overrides: CallOverrides

    Returns Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>

guardianCosign

  • guardianCosign(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

guardianPropose

  • guardianPropose(_newOwner: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

isGuardian

  • isGuardian(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    Returns Promise<boolean>

isOwner

  • isOwner(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    Returns Promise<boolean>

listenerCount

  • listenerCount(eventName?: EventFilter | string): number
  • Parameters

    • Optional eventName: EventFilter | string

    Returns number

listeners

  • Type parameters

    Parameters

    Returns Array<TypedListener<TEvent>>

  • Parameters

    • Optional eventName: string

    Returns Array<Listener>

queryFilter

  • queryFilter<TEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>
  • Type parameters

    Parameters

    • event: TypedEventFilter<TEvent>
    • Optional fromBlockOrBlockhash: string | number | undefined
    • Optional toBlock: string | number | undefined

    Returns Promise<Array<TEvent>>

removeAllListeners

  • removeAllListeners<TEvent>(eventFilter: TypedEventFilter<TEvent>): this
  • removeAllListeners(eventName?: string): this
  • Type parameters

    Parameters

    Returns this

  • Parameters

    • Optional eventName: string

    Returns this

removeGuardian

  • removeGuardian(_guardian: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

removeOwner

  • Parameters

    Returns Promise<ContractTransaction>

Static getContractAddress

  • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
  • Parameters

    • transaction: { from: string; nonce: BigNumberish }
      • from: string
      • nonce: BigNumberish

    Returns string

Static getInterface

  • getInterface(contractInterface: ContractInterface): Interface
  • Parameters

    • contractInterface: ContractInterface

    Returns Interface

Static isIndexed

  • isIndexed(value: any): value is Indexed
  • Parameters

    • value: any

    Returns value is Indexed