Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PermitSigner

Index

Constructors

Properties

Methods

  • _checkSigner(): void
  • sign(owner: string, chainId: string, permitName: string, allowedContracts: string[], permissions: Permission[], keplr?: boolean): Promise<Permit>
  • verify(permit: Permit, forAddress: string, forContract: string, permissions: Permission[]): boolean
  • This method will verify a permit according to a contract address and a submitting address (and a set of permissions) On failure an appropriate error will be thrown according to the type of error.

    throws

    PermitError on any error or verification failure

    Parameters

    Returns boolean

  • verifyNoExcept(permit: Permit, forAddress: string, forContract: string, permissions: Permission[]): boolean