Options
All
  • Public
  • Public/Protected
  • All
Menu

@nomad-xyz/sdk

Index

Type aliases

AnnotatedProcess: Annotated<ProcessTypes, ProcessEvent>
AnnotatedUpdate: Annotated<UpdateTypes, UpdateEvent>
DispatchArgs: { committedRoot: string; destinationAndNonce: BigNumber; leafIndex: BigNumber; message: string; messageHash: string }

Type declaration

  • committedRoot: string
  • destinationAndNonce: BigNumber
  • leafIndex: BigNumber
  • message: string
  • messageHash: string
DispatchEvent: TypedEvent<DispatchTypes & DispatchArgs>
DispatchTypes: [string, BigNumber, BigNumber, string, string]
EventCache: { homeUpdate?: AnnotatedUpdate; process?: AnnotatedProcess; replicaUpdate?: AnnotatedUpdate }

Type declaration

NomadLifecyleEvent: ProcessEvent | UpdateEvent | DispatchEvent
NomadStatus: { events: AnnotatedLifecycleEvent[]; status: MessageStatus }

Type declaration

ParsedMessage: { body: string; destination: number; from: number; nonce: number; recipient: string; sender: string }

Type declaration

  • body: string
  • destination: number
  • from: number
  • nonce: number
  • recipient: string
  • sender: string
ProcessArgs: { messageHash: string; returnData: string; success: boolean }

Type declaration

  • messageHash: string
  • returnData: string
  • success: boolean
ProcessEvent: TypedEvent<ProcessTypes & ProcessArgs>
ProcessTypes: [string, boolean, string]
UpdateArgs: { homeDomain: number; newRoot: string; oldRoot: string; signature: string }

Type declaration

  • homeDomain: number
  • newRoot: string
  • oldRoot: string
  • signature: string
UpdateEvent: TypedEvent<UpdateTypes & UpdateArgs>
UpdateTypes: [number, string, string, string]

Functions

  • getEvents<T, U>(context: NomadContext, nameOrDomain: string | number, contract: TSContract<T, U>, filter: TypedEventFilter<T, U>, startBlock?: number, endBlock?: number): Promise<TypedEvent<T & U>[]>
  • Type parameters

    • T: Result<T>

    • U

    Parameters

    • context: NomadContext
    • nameOrDomain: string | number
    • contract: TSContract<T, U>
    • filter: TypedEventFilter<T, U>
    • Optional startBlock: number
    • Optional endBlock: number

    Returns Promise<TypedEvent<T & U>[]>

  • queryAnnotatedEvents<T, U>(context: NomadContext, nameOrDomain: string | number, contract: TSContract<T, U>, filter: TypedEventFilter<T, U>, startBlock?: number, endBlock?: number): Promise<Annotated<T, TypedEvent<T & U>>[]>
  • Type parameters

    • T: Result<T>

    • U

    Parameters

    • context: NomadContext
    • nameOrDomain: string | number
    • contract: TSContract<T, U>
    • filter: TypedEventFilter<T, U>
    • Optional startBlock: number
    • Optional endBlock: number

    Returns Promise<Annotated<T, TypedEvent<T & U>>[]>

Generated using TypeDoc