Skip to content

Commit 11aa30a

Browse files
ryanioclaude
andauthored
Add item field to OrderValidationEventPayload (#491)
* Add item field to OrderValidationEventPayload for type safety This adds the item field (which includes nft_id) to OrderValidationEventPayload, enabling type-safe access to NFT identifiers in order invalidate and revalidate events. The nft_id follows the format: "chain/contract_address/token_id". Note: CollectionOfferEventPayload was intentionally not modified as collection offers apply to any NFT in a collection rather than a specific NFT. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Bump version from 0.2.1 to 0.2.2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent 0a8539b commit 11aa30a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opensea/stream-js",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "A TypeScript SDK to receive pushed updates from OpenSea over websocket",
55
"license": "MIT",
66
"author": "OpenSea Developers",
@@ -29,10 +29,10 @@
2929
"eslint": "eslint . --max-warnings 0 --ext .js,.ts --fix",
3030
"lint:check": "concurrently \"npm run check-types\" \"npm run eslint\" \"npm run prettier:check\" \"npm run prettier:check:package.json\"",
3131
"prepare": "husky install",
32-
"prepublish": "npm run build",
3332
"prettier:check": "prettier --check .",
3433
"prettier:check:package.json": "prettier-package-json --list-different",
3534
"prettier:fix": "prettier --write . && prettier-package-json --write package.json",
35+
"prepublish": "npm run build",
3636
"test": "jest"
3737
},
3838
"sideEffects": false,

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ export interface OrderValidationEventPayload {
248248
collection: {
249249
slug: string;
250250
};
251+
item: BaseItemType;
251252
}
252253

253254
export type OrderValidationEvent =

0 commit comments

Comments
 (0)