Skip to content

Commit ab411dd

Browse files
authored
Fix/types (#183)
* 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]>
1 parent a84cd0d commit ab411dd

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opensea/stream-js",
3-
"version": "0.0.21-rc.0",
3+
"version": "0.0.21-rc.1",
44
"description": "An SDK to receive pushed updates from OpenSea over websocket",
55
"license": "MIT",
66
"author": "OpenSea Developers",

src/types.ts

+13
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export interface ItemListedEventPayload extends Payload {
103103
base_price: string;
104104
payment_token: PaymentToken;
105105
is_private: boolean;
106+
order_hash: string;
106107
event_timestamp: string;
107108
}
108109

@@ -120,6 +121,7 @@ export interface ItemSoldEventPayload extends Payload {
120121
transaction: Transaction;
121122
maker: Account;
122123
taker: Account;
124+
order_hash: string;
123125
sale_price: string;
124126
payment_token: PaymentToken;
125127
is_private: boolean;
@@ -145,6 +147,7 @@ export interface ItemReceivedBidEventPayload extends Payload {
145147
expiration_date: string;
146148
maker: Account;
147149
taker: Account;
150+
order_hash: string;
148151
base_price: string;
149152
payment_token: PaymentToken;
150153
event_timestamp: string;
@@ -159,6 +162,7 @@ export interface ItemReceivedOfferEventPayload extends Payload {
159162
expiration_date: string;
160163
maker: Account;
161164
taker: Account;
165+
order_hash: string;
162166
base_price: string;
163167
payment_token: PaymentToken;
164168
event_timestamp: string;
@@ -169,9 +173,16 @@ export type ItemReceivedOfferEvent =
169173

170174
export interface ItemCancelledEventPayload extends Payload {
171175
quantity: number;
176+
base_price: string;
177+
expiration_date: string;
178+
maker: Account;
179+
taker: Account;
172180
listing_type: string;
181+
listing_date: string;
173182
transaction: Transaction;
174183
payment_token: PaymentToken;
184+
order_hash: string;
185+
is_private: boolean;
175186
event_timestamp: string;
176187
}
177188

@@ -182,6 +193,7 @@ export interface CollectionOfferEventPayload extends Payload {
182193
created_date: string;
183194
expiration_date: string;
184195
maker: Account;
196+
taker: Account;
185197
base_price: string;
186198
order_hash: string;
187199
payment_token: PaymentToken;
@@ -198,6 +210,7 @@ export interface TraitOfferEventPayload extends Payload {
198210
created_date: string;
199211
expiration_date: string;
200212
maker: Account;
213+
taker: Account;
201214
base_price: string;
202215
order_hash: string;
203216
payment_token: PaymentToken;

0 commit comments

Comments
 (0)