Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • Setup

Index

Constructors

constructor

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

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

    Returns Setup

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

_runningEvents

_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent

_wrappedEmits

_wrappedEmits: {}

Type declaration

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

        • Rest ...args: any[]

        Returns void

Readonly address

address: string

callStatic

callStatic: { setup: any }

Type declaration

  • setup: function
    • setup(implementation: string, initialGuardians: string[], chainId: BigNumberish, governanceChainId: BigNumberish, governanceContract: BytesLike, evmChainId: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • implementation: string
      • initialGuardians: string[]
      • chainId: BigNumberish
      • governanceChainId: BigNumberish
      • governanceContract: BytesLike
      • evmChainId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { setup: any }

Type declaration

  • setup: function
    • setup(implementation: string, initialGuardians: string[], chainId: BigNumberish, governanceChainId: BigNumberish, governanceContract: BytesLike, evmChainId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • implementation: string
      • initialGuardians: string[]
      • chainId: BigNumberish
      • governanceChainId: BigNumberish
      • governanceContract: BytesLike
      • evmChainId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

filters

filters: { AdminChanged: any; BeaconUpgraded: any; Upgraded: any }

Type declaration

  • AdminChanged: function
    • AdminChanged(previousAdmin?: null, newAdmin?: null): TypedEventFilter<[string, string], { newAdmin: string; previousAdmin: string }>
    • Parameters

      • Optional previousAdmin: null
      • Optional newAdmin: null

      Returns TypedEventFilter<[string, string], { newAdmin: string; previousAdmin: string }>

  • BeaconUpgraded: function
    • BeaconUpgraded(beacon?: null | string): TypedEventFilter<[string], { beacon: string }>
    • Parameters

      • Optional beacon: null | string

      Returns TypedEventFilter<[string], { beacon: string }>

  • Upgraded: function
    • Upgraded(implementation?: null | string): TypedEventFilter<[string], { implementation: string }>
    • Parameters

      • Optional implementation: null | string

      Returns TypedEventFilter<[string], { implementation: string }>

functions

functions: { setup: any }

Type declaration

  • setup: function
    • setup(implementation: string, initialGuardians: string[], chainId: BigNumberish, governanceChainId: BigNumberish, governanceContract: BytesLike, evmChainId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • implementation: string
      • initialGuardians: string[]
      • chainId: BigNumberish
      • governanceChainId: BigNumberish
      • governanceContract: BytesLike
      • evmChainId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

interface

interface: SetupInterface

populateTransaction

populateTransaction: { setup: any }

Type declaration

  • setup: function
    • setup(implementation: string, initialGuardians: string[], chainId: BigNumberish, governanceChainId: BigNumberish, governanceContract: BytesLike, evmChainId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • Parameters

      • implementation: string
      • initialGuardians: string[]
      • chainId: BigNumberish
      • governanceChainId: BigNumberish
      • governanceContract: BytesLike
      • evmChainId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<PopulatedTransaction>

Readonly provider

provider: Provider

Readonly resolvedAddress

resolvedAddress: Promise<string>

Readonly signer

signer: Signer

Methods

_checkRunningEvents

  • _checkRunningEvents(runningEvent: RunningEvent): void
  • Parameters

    • runningEvent: RunningEvent

    Returns 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

attach

  • attach(addressOrName: string): Setup
  • Parameters

    • addressOrName: string

    Returns Setup

connect

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

    • signerOrProvider: string | Signer | Provider

    Returns Setup

deployed

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

emit

  • emit(eventName: string | EventFilter, ...args: any[]): boolean
  • Parameters

    • eventName: string | EventFilter
    • Rest ...args: any[]

    Returns boolean

fallback

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

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

listenerCount

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

    • Optional eventName: string | EventFilter

    Returns number

listeners

  • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
  • listeners(eventName?: string): Listener[]
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns TypedListener<EventArgsArray, EventArgsObject>[]

  • Parameters

    • Optional eventName: string

    Returns Listener[]

off

  • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Setup
  • off(eventName: string, listener: Listener): Setup
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns Setup

  • Parameters

    • eventName: string
    • listener: Listener

    Returns Setup

on

  • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Setup
  • on(eventName: string, listener: Listener): Setup
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns Setup

  • Parameters

    • eventName: string
    • listener: Listener

    Returns Setup

once

  • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Setup
  • once(eventName: string, listener: Listener): Setup
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns Setup

  • Parameters

    • eventName: string
    • listener: Listener

    Returns Setup

queryFilter

  • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • event: TypedEventFilter<EventArgsArray, EventArgsObject>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

removeAllListeners

  • removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): Setup
  • removeAllListeners(eventName?: string): Setup
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

    Returns Setup

  • Parameters

    • Optional eventName: string

    Returns Setup

removeListener

  • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Setup
  • removeListener(eventName: string, listener: Listener): Setup
  • Type parameters

    • EventArgsArray: any[]

    • EventArgsObject

    Parameters

    • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
    • listener: TypedListener<EventArgsArray, EventArgsObject>

    Returns Setup

  • Parameters

    • eventName: string
    • listener: Listener

    Returns Setup

setup

  • setup(implementation: string, initialGuardians: string[], chainId: BigNumberish, governanceChainId: BigNumberish, governanceContract: BytesLike, evmChainId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
  • Parameters

    • implementation: string
    • initialGuardians: string[]
    • chainId: BigNumberish
    • governanceChainId: BigNumberish
    • governanceContract: BytesLike
    • evmChainId: BigNumberish
    • Optional overrides: Overrides & { from?: string | Promise<string> }

    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

Generated using TypeDoc