Class SeaportValidatorContract

Provides an interface to the Seaport Validator contract which contains methods for validating Seaport orders. It handles the retrieval and processing of error and warning messages that assist in debugging order issues.

Constructors

Properties

Constructors

Properties

address: `0x${string}`

The address of the Seaport Validator smart contract.

read: {
    isValidOrder: ((...parameters) => Promise<{
        errors: readonly number[];
        warnings: readonly number[];
    }>);
}

Read-only interface of the Seaport Validator contract, containing validation methods.

Type declaration

  • isValidOrder: ((...parameters) => Promise<{
        errors: readonly number[];
        warnings: readonly number[];
    }>)
      • (...parameters): Promise<{
            errors: readonly number[];
            warnings: readonly number[];
        }>
      • Parameters

        • Rest ...parameters: [args: readonly [{
              parameters: {
                  conduitKey: `0x${string}`;
                  consideration: readonly {
                      endAmount: bigint;
                      identifierOrCriteria: bigint;
                      itemType: number;
                      recipient: `0x${string}`;
                      startAmount: bigint;
                      token: `0x${string}`;
                  }[];
                  endTime: bigint;
                  offer: readonly {
                      endAmount: bigint;
                      identifierOrCriteria: bigint;
                      itemType: number;
                      startAmount: bigint;
                      token: `0x${string}`;
                  }[];
                  offerer: `0x${string}`;
                  orderType: number;
                  salt: bigint;
                  startTime: bigint;
                  totalOriginalConsiderationItems: bigint;
                  zone: `0x${string}`;
                  zoneHash: `0x${string}`;
              };
              signature: `0x${string}`;
          }, `0x${string}`], options?: {
              account?: `0x${string}` | Account;
              blockNumber?: bigint;
              blockTag?: BlockTag;
          }]

        Returns Promise<{
            errors: readonly number[];
            warnings: readonly number[];
        }>

Generated using TypeDoc