Each order contains ten key components

Generated

from message valorem.trade.v1.Order

Hierarchy

Constructors

Properties

conduitKey?: H256

The conduit_key is a bytes32 value that indicates what conduit, if any, should be utilized as a source for token approvals when performing transfers. By default (i.e. when conduitKey is set to the zero hash), the offerer will grant ERC20, ERC721, and ERC1155 token approvals to Seaport directly so that it can perform any transfers specified by the order during fulfillment. In contrast, an offerer that elects to utilize a conduit will grant token approvals to the conduit contract corresponding to the supplied conduit key, and Seaport will then instruct that conduit to transfer the respective tokens.

Generated

from field: valorem.trade.v1.H256 conduit_key = 10;

consideration: ConsiderationItem[] = []

The consideration contains an array of items that must be received in order to fulfill the order. It contains all of the same components as an offered item, and additionally includes a recipient that will receive each item. This array may be extended by the fulfiller on order fulfillment so as to support "tipping" (e.g. relayer or referral payments)

Generated

from field: repeated valorem.trade.v1.ConsiderationItem consideration = 4;

endTime?: H256

The end_time indicates the block timestamp at which the order expires. This value and the startTime are used in conjunction with the start_amount and end_amount of each item to derive their current amount.

Generated

from field: valorem.trade.v1.H256 end_time = 7;

offer: OfferItem[] = []

The offers array contains an array of items that may be transferred from the offerer's account.

Generated

from field: repeated valorem.trade.v1.OfferItem offer = 3;

offerer?: H160

The offerer of the order supplies all offered items and must either fulfill the order personally (i.e. msg.sender == offerer) or approve the order via signature (either standard 65-byte EDCSA, 64-byte EIP-2098, or an EIP-1271 isValidSignature check) or by listing the order on-chain (i.e. calling validate).

Generated

from field: valorem.trade.v1.H160 offerer = 1;

orderType: OrderType = OrderType.FULL_OPEN

Generated

from field: valorem.trade.v1.OrderType order_type = 5;

salt?: H256

The salt represents an arbitrary source of entropy for the order.

Generated

from field: valorem.trade.v1.H256 salt = 9;

startTime?: H256

The start_time indicates the block timestamp at which the order becomes active.

Generated

from field: valorem.trade.v1.H256 start_time = 6;

zone?: H160

The zone of the order is an optional secondary account attached to the order with two additional privileges:

The zone may cancel orders where it is named as the zone by calling cancel. (Note that offerers can also cancel their own orders, either individually or for all orders signed with their current counter at once by calling incrementCounter). "Restricted" orders (as specified by the order type) must either be executed by the zone or the offerer, or must be approved as indicated by a call to an validateOrder on the zone.

Generated

from field: valorem.trade.v1.H160 zone = 2;

zoneHash?: H256

The zoneHash represents an arbitrary 32-byte value that will be supplied to the zone when fulfilling restricted orders that the zone can utilize when making a determination on whether to authorize the order.

Generated

from field: valorem.trade.v1.H256 zone_hash = 8;

fields: FieldList = ...
runtime: ProtoRuntime = proto3
typeName: "valorem.trade.v1.Order" = "valorem.trade.v1.Order"

Methods

  • Create a deep copy.

    Returns Order

  • Compare with a message of the same type.

    Parameters

    Returns boolean

  • Parse from binary data, merging fields.

    Repeated fields are appended. Map entries are added, overwriting existing keys.

    If a message field is already present, it will be merged with the new data.

    Parameters

    Returns Order

  • Parse a message from a JSON value.

    Parameters

    Returns Order

  • Parse a message from a JSON string.

    Parameters

    Returns Order

  • Retrieve the MessageType of this message - a singleton that represents the protobuf message declaration and provides metadata for reflection- based operations.

    Returns MessageType<Order>

  • Serialize the message to binary data.

    Parameters

    Returns Uint8Array

  • Override for serialization behavior. This will be invoked when calling JSON.stringify on this message (i.e. JSON.stringify(msg)).

    Note that this will not serialize google.protobuf.Any with a packed message because the protobuf JSON format specifies that it needs to be unpacked, and this is only possible with a type registry to look up the message type. As a result, attempting to serialize a message with this type will throw an Error.

    This method is protected because you should not need to invoke it directly -- instead use JSON.stringify or toJsonString for stringified JSON. Alternatively, if actual JSON is desired, you should use toJson.

    Returns JsonValue

  • Serialize the message to a JSON value, a JavaScript value that can be passed to JSON.stringify().

    Parameters

    Returns JsonValue

  • Serialize the message to a JSON string.

    Parameters

    Returns string

  • Parameters

    Returns Order

Generated using TypeDoc