Skip to content

Commit

Permalink
Merge pull request #58 from storyprotocol/feature/update-type
Browse files Browse the repository at this point in the history
Feature/update type
  • Loading branch information
samfairbairn authored Nov 4, 2024
2 parents 025f5b6 + c533822 commit 778f679
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/storykit/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@storyprotocol/storykit",
"author": "storyprotocol engineering <eng@storyprotocol.xyz>",
"version": "0.1.35",
"version": "0.1.36",
"type": "module",
"exports": {
".": {
Expand Down
24 changes: 13 additions & 11 deletions packages/storykit/src/types/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,12 @@ export type PilFlavor =
export type Asset = {
id: Address
ancestorCount: number
descendantCount: number
parentCount?: number
childCount?: number
rootCount?: number
parentIpIds: Address[] | null
blockNumber: string
blockTimestamp: string
childIpIds: Address[] | null
rootIpIds: Address[] | null
parentIps?: Asset[] | null
rootIps?: Asset[] | null
childIps?: Asset[] | null
childrenCount: number
createdAt: string
descendantCount: number
nftMetadata: {
name: string
chainId: string
Expand All @@ -36,8 +32,14 @@ export type Asset = {
tokenUri: string
imageUrl: string
}
blockNumber: string
blockTimestamp: string
parentCount?: number
parentIpIds: Address[] | null
rootIpIds: Address[] | null
updatedAt: string
// TODO: update graph.ts, remove below
parentIps?: Asset[] | null
rootIps?: Asset[] | null
childIps?: Asset[] | null
}

export type AssetEdges = {
Expand Down

0 comments on commit 778f679

Please sign in to comment.