Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • HandlerHelpers

Index

Constructors

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

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

    Returns HandlerHelpers

Properties

_deployedPromise: Promise<Contract>
_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent
_wrappedEmits: {}

Type declaration

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

        • Rest ...args: any[]

        Returns void

address: string
callStatic: { _bridgeAddress: any; _contractAddressToResourceID: any; _contractWhitelist: any; _resourceIDToContractAddress: any; executeProposal: any; migrateBridge: any; setResource: any }

Type declaration

  • _bridgeAddress:function
    • _bridgeAddress(overrides?: CallOverrides): Promise<string>
  • _contractAddressToResourceID:function
    • _contractAddressToResourceID(arg0: string, overrides?: CallOverrides): Promise<string>
  • _contractWhitelist:function
    • _contractWhitelist(arg0: string, overrides?: CallOverrides): Promise<boolean>
  • _resourceIDToContractAddress:function
    • _resourceIDToContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise<string>
  • executeProposal:function
    • executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: CallOverrides): Promise<void>
  • migrateBridge:function
    • migrateBridge(newBridge: string, overrides?: CallOverrides): Promise<void>
  • setResource:function
    • setResource(resourceID: BytesLike, contractAddress: string, overrides?: CallOverrides): Promise<void>
deployTransaction: TransactionResponse
estimateGas: { _bridgeAddress: any; _contractAddressToResourceID: any; _contractWhitelist: any; _resourceIDToContractAddress: any; executeProposal: any; migrateBridge: any; setResource: any }

Type declaration

  • _bridgeAddress:function
    • _bridgeAddress(overrides?: CallOverrides): Promise<BigNumber>
  • _contractAddressToResourceID:function
    • _contractAddressToResourceID(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
  • _contractWhitelist:function
    • _contractWhitelist(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
  • _resourceIDToContractAddress:function
    • _resourceIDToContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
  • executeProposal:function
    • executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
  • migrateBridge:function
    • migrateBridge(newBridge: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
  • setResource:function
    • setResource(resourceID: BytesLike, contractAddress: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
filters: {}

Type declaration

    functions: { _bridgeAddress: any; _contractAddressToResourceID: any; _contractWhitelist: any; _resourceIDToContractAddress: any; executeProposal: any; migrateBridge: any; setResource: any }

    Type declaration

    • _bridgeAddress:function
      • _bridgeAddress(overrides?: CallOverrides): Promise<[string]>
    • _contractAddressToResourceID:function
      • _contractAddressToResourceID(arg0: string, overrides?: CallOverrides): Promise<[string]>
    • _contractWhitelist:function
      • _contractWhitelist(arg0: string, overrides?: CallOverrides): Promise<[boolean]>
    • _resourceIDToContractAddress:function
      • _resourceIDToContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise<[string]>
    • executeProposal:function
      • executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • migrateBridge:function
      • migrateBridge(newBridge: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • setResource:function
      • setResource(resourceID: BytesLike, contractAddress: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    interface: HandlerHelpersInterface
    populateTransaction: { _bridgeAddress: any; _contractAddressToResourceID: any; _contractWhitelist: any; _resourceIDToContractAddress: any; executeProposal: any; migrateBridge: any; setResource: any }

    Type declaration

    • _bridgeAddress:function
      • _bridgeAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • _contractAddressToResourceID:function
      • _contractAddressToResourceID(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • _contractWhitelist:function
      • _contractWhitelist(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • _resourceIDToContractAddress:function
      • _resourceIDToContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • executeProposal:function
      • executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • migrateBridge:function
      • migrateBridge(newBridge: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    • setResource:function
      • setResource(resourceID: BytesLike, contractAddress: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
    provider: Provider
    resolvedAddress: Promise<string>
    signer: Signer

    Methods

    • _bridgeAddress(overrides?: CallOverrides): Promise<string>
    • _checkRunningEvents(runningEvent: RunningEvent): void
    • Parameters

      • runningEvent: RunningEvent

      Returns void

    • _contractAddressToResourceID(arg0: string, overrides?: CallOverrides): Promise<string>
    • _contractWhitelist(arg0: string, overrides?: CallOverrides): Promise<boolean>
    • _deployed(blockTag?: BlockTag): Promise<Contract>
    • Parameters

      • Optional blockTag: BlockTag

      Returns Promise<Contract>

    • _resourceIDToContractAddress(arg0: BytesLike, overrides?: CallOverrides): Promise<string>
    • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
    • Parameters

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

      Returns Event

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

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

      Returns boolean

    • executeProposal(resourceID: BytesLike, data: BytesLike, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
    • Parameters

      • Optional overrides: TransactionRequest

      Returns Promise<TransactionResponse>

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

      • Optional eventName: string | EventFilter

      Returns number

    • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
    • listeners(eventName?: string): Listener[]
    • migrateBridge(newBridge: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): HandlerHelpers
    • off(eventName: string, listener: Listener): HandlerHelpers
    • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): HandlerHelpers
    • on(eventName: string, listener: Listener): HandlerHelpers
    • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): HandlerHelpers
    • once(eventName: string, listener: Listener): HandlerHelpers
    • 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<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): HandlerHelpers
    • removeAllListeners(eventName?: string): HandlerHelpers
    • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): HandlerHelpers
    • removeListener(eventName: string, listener: Listener): HandlerHelpers
    • setResource(resourceID: BytesLike, contractAddress: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
    • Parameters

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

      Returns string

    • getInterface(contractInterface: ContractInterface): Interface
    • Parameters

      • contractInterface: ContractInterface

      Returns Interface

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

      • value: any

      Returns value is Indexed

    Generated using TypeDoc