Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseContract
    • Hasher

Index

Constructors

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

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

    Returns Hasher

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: { hash11: any; hash5: any; hashLeftRight: any }

Type declaration

  • hash11:function
    • hash11(array: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
  • hash5:function
    • hash5(array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • hashLeftRight:function
    • hashLeftRight(_left: BigNumberish, _right: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
deployTransaction: TransactionResponse
estimateGas: { hash11: any; hash5: any; hashLeftRight: any }

Type declaration

  • hash11:function
    • hash11(array: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
  • hash5:function
    • hash5(array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • hashLeftRight:function
    • hashLeftRight(_left: BigNumberish, _right: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
filters: {}

Type declaration

    functions: { hash11: any; hash5: any; hashLeftRight: any }

    Type declaration

    • hash11:function
      • hash11(array: BigNumberish[], overrides?: CallOverrides): Promise<[BigNumber]>
    • hash5:function
      • hash5(array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • hashLeftRight:function
      • hashLeftRight(_left: BigNumberish, _right: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
    interface: HasherInterface
    populateTransaction: { hash11: any; hash5: any; hashLeftRight: any }

    Type declaration

    • hash11:function
      • hash11(array: BigNumberish[], overrides?: CallOverrides): Promise<PopulatedTransaction>
    • hash5:function
      • hash5(array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • hashLeftRight:function
      • hashLeftRight(_left: BigNumberish, _right: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
    provider: Provider
    resolvedAddress: Promise<string>
    signer: Signer

    Methods

    • _checkRunningEvents(runningEvent: RunningEvent): void
    • Parameters

      • runningEvent: RunningEvent

      Returns void

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

      • Optional blockTag: BlockTag

      Returns Promise<Contract>

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

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

      Returns Event

    • attach(addressOrName: string): Hasher
    • connect(signerOrProvider: string | Signer | Provider): Hasher
    • emit(eventName: string | EventFilter, ...args: any[]): boolean
    • Parameters

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

      Returns boolean

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

      • Optional overrides: TransactionRequest

      Returns Promise<TransactionResponse>

    • hash11(array: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
    • hash5(array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • array: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • hashLeftRight(_left: BigNumberish, _right: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • 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[]
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns TypedListener<EventArgsArray, EventArgsObject>[]

    • Parameters

      • Optional eventName: string

      Returns Listener[]

    • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Hasher
    • off(eventName: string, listener: Listener): Hasher
    • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Hasher
    • on(eventName: string, listener: Listener): Hasher
    • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Hasher
    • once(eventName: string, listener: Listener): Hasher
    • 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>): Hasher
    • removeAllListeners(eventName?: string): Hasher
    • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): Hasher
    • removeListener(eventName: string, listener: Listener): Hasher
    • 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