Skip to content

Commit

Permalink
chore(types): discover update
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain committed May 6, 2024
1 parent 87e78e4 commit ce9e11e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/portfolio/src/adapters/token-discovery.mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const primaryETH: Portfolio.Token.Discovery = {
symbol: Portfolio.Token.Source.Metadata,
ticker: Portfolio.Token.Source.Metadata,
description: Portfolio.Token.Source.Metadata,
website: Portfolio.Token.Source.Metadata,
},
}

Expand All @@ -37,6 +38,7 @@ const nftCryptoKitty: Portfolio.Token.Discovery = {
symbol: Portfolio.Token.Source.Metadata,
ticker: Portfolio.Token.Source.Metadata,
description: Portfolio.Token.Source.Metadata,
website: Portfolio.Token.Source.Metadata,
},
}

Expand All @@ -55,6 +57,7 @@ const rnftWhatever: Portfolio.Token.Discovery = {
symbol: Portfolio.Token.Source.Metadata,
ticker: Portfolio.Token.Source.Metadata,
description: Portfolio.Token.Source.Metadata,
website: Portfolio.Token.Source.Metadata,
},
}

Expand Down
1 change: 1 addition & 0 deletions packages/portfolio/src/validators/token-discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const DiscoverySourceSchema = z.object({
symbol: TokenSourceSchema,
originalImage: TokenSourceSchema,
description: TokenSourceSchema,
website: TokenSourceSchema,
})

const DiscoveryOriginalMetadataSchema = z.object({
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/portfolio/discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type PortfolioTokenDiscovery = {
symbol: PortfolioTokenSource
originalImage: PortfolioTokenSource
description: PortfolioTokenSource
website: PortfolioTokenSource
}

originalMetadata: {
Expand Down

0 comments on commit ce9e11e

Please sign in to comment.