Type Alias PrepareListingRequest

PrepareListingRequest: {
    makerAddress: UserAddress;
    newOrder: {
        direction: TradeDirection;
        erc20Token: string;
        expiry: string;
        priceWithFees: Bignumber;
        taker?: UserAddress;
        tokenQuantity?: Bignumber;
    };
    tokenAddress: ContractAddress;
    tokenId: string;
}

Type declaration

  • makerAddress: UserAddress

    The address of the wallet that will be used to sign the order

  • newOrder: {
        direction: TradeDirection;
        erc20Token: string;
        expiry: string;
        priceWithFees: Bignumber;
        taker?: UserAddress;
        tokenQuantity?: Bignumber;
    }
    • direction: TradeDirection
    • erc20Token: string

      The token used for the payment

    • expiry: string

      Expiration date of the order

    • priceWithFees: Bignumber

      The amount of tokens required to fill the order. This includes fees.

    • Optionaltaker?: UserAddress

      Allowed taker address. Leave undefined to allow any taker

    • OptionaltokenQuantity?: Bignumber

      The quantity of the token to be sold. 1 by defauly for ERC721.

  • tokenAddress: ContractAddress
  • tokenId: string

    The identifier of the token.