From ab411dd6ca331abf441ff20b3759ecd95268906e Mon Sep 17 00:00:00 2001 From: vasa Date: Fri, 9 Sep 2022 19:43:46 +0530 Subject: [PATCH] Fix/types (#183) * chore: add missing field types License: BUSL-1.1 Signed-off-by: Vaibhav Saini * chore: bump package version License: BUSL-1.1 Signed-off-by: Vaibhav Saini * chore: add taker field to CollectionOfferEventPayload and TraitOfferEventPayload License: BUSL-1.1 Signed-off-by: Vaibhav Saini * refactor: add order_hash to ItemSoldEventPayload License: BUSL-1.1 Signed-off-by: Vaibhav Saini Signed-off-by: Vaibhav Saini --- package.json | 2 +- src/types.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 808c6248..a2c04e92 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/types.ts b/src/types.ts index 4d7e6274..8798c906 100644 --- a/src/types.ts +++ b/src/types.ts @@ -103,6 +103,7 @@ export interface ItemListedEventPayload extends Payload { base_price: string; payment_token: PaymentToken; is_private: boolean; + order_hash: string; event_timestamp: string; } @@ -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; @@ -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; @@ -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; @@ -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; } @@ -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; @@ -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;