Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BridgeHelper

Stateless helper methods; most wrapped / accessible (and documented) via Bridge

Hierarchy

  • BridgeHelper

Index

Constructors

constructor

Methods

Static assertionIsConfirmed

  • assertionIsConfirmed(nodeNum: BigNumber, rollupAddress: string, l1Provider: Provider): Promise<boolean>
  • Check if given assertion has been confirmed

    Parameters

    • nodeNum: BigNumber
    • rollupAddress: string
    • l1Provider: Provider

    Returns Promise<boolean>

Static calculateOutgoingMessageId

  • calculateOutgoingMessageId(path: BigNumber, proofLength: BigNumber): string
  • Get outgoing message Id (key to in OutboxEntry.spentOutput)

    Parameters

    • path: BigNumber
    • proofLength: BigNumber

    Returns string

Static messageHasExecuted

  • messageHasExecuted(outboxIndex: BigNumber, path: BigNumber, outboxAddress: string, l1Provider: Provider): Promise<boolean>
  • Check if given outbox message has already been executed

    Parameters

    • outboxIndex: BigNumber
    • path: BigNumber
    • outboxAddress: string
    • l1Provider: Provider

    Returns Promise<boolean>

Static tryGetProof

  • tryGetProof(batchNumber: BigNumber, indexInBatch: BigNumber, l2Provider: Provider, retryDelay?: number): Promise<{}>
  • Attempt to retrieve data necessary to execute outbox message; available before outbox entry is created /confirmed

    Parameters

    • batchNumber: BigNumber
    • indexInBatch: BigNumber
    • l2Provider: Provider
    • retryDelay: number = 500

    Returns Promise<{}>

Generated using TypeDoc