Skip to content

Commit

Permalink
Fix/types (#183)
Browse files Browse the repository at this point in the history
* chore: add missing field types

License: BUSL-1.1
Signed-off-by: Vaibhav Saini <[email protected]>

* chore: bump package version

License: BUSL-1.1
Signed-off-by: Vaibhav Saini <[email protected]>

* chore: add taker field to CollectionOfferEventPayload and TraitOfferEventPayload

License: BUSL-1.1
Signed-off-by: Vaibhav Saini <[email protected]>

* refactor: add order_hash to ItemSoldEventPayload

License: BUSL-1.1
Signed-off-by: Vaibhav Saini <[email protected]>

Signed-off-by: Vaibhav Saini <[email protected]>
  • Loading branch information
vasa-develop authored Sep 9, 2022
1 parent a84cd0d commit ab411dd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensea/stream-js",
"version": "0.0.21-rc.0",
"version": "0.0.21-rc.1",
"description": "An SDK to receive pushed updates from OpenSea over websocket",
"license": "MIT",
"author": "OpenSea Developers",
Expand Down
13 changes: 13 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export interface ItemListedEventPayload extends Payload {
base_price: string;
payment_token: PaymentToken;
is_private: boolean;
order_hash: string;
event_timestamp: string;
}

Expand All @@ -120,6 +121,7 @@ export interface ItemSoldEventPayload extends Payload {
transaction: Transaction;
maker: Account;
taker: Account;
order_hash: string;
sale_price: string;
payment_token: PaymentToken;
is_private: boolean;
Expand All @@ -145,6 +147,7 @@ export interface ItemReceivedBidEventPayload extends Payload {
expiration_date: string;
maker: Account;
taker: Account;
order_hash: string;
base_price: string;
payment_token: PaymentToken;
event_timestamp: string;
Expand All @@ -159,6 +162,7 @@ export interface ItemReceivedOfferEventPayload extends Payload {
expiration_date: string;
maker: Account;
taker: Account;
order_hash: string;
base_price: string;
payment_token: PaymentToken;
event_timestamp: string;
Expand All @@ -169,9 +173,16 @@ export type ItemReceivedOfferEvent =

export interface ItemCancelledEventPayload extends Payload {
quantity: number;
base_price: string;
expiration_date: string;
maker: Account;
taker: Account;
listing_type: string;
listing_date: string;
transaction: Transaction;
payment_token: PaymentToken;
order_hash: string;
is_private: boolean;
event_timestamp: string;
}

Expand All @@ -182,6 +193,7 @@ export interface CollectionOfferEventPayload extends Payload {
created_date: string;
expiration_date: string;
maker: Account;
taker: Account;
base_price: string;
order_hash: string;
payment_token: PaymentToken;
Expand All @@ -198,6 +210,7 @@ export interface TraitOfferEventPayload extends Payload {
created_date: string;
expiration_date: string;
maker: Account;
taker: Account;
base_price: string;
order_hash: string;
payment_token: PaymentToken;
Expand Down

0 comments on commit ab411dd

Please sign in to comment.