Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions hyperdata/src/create.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { contentFrom } from './normalize'
import {
Content,
KodaMetadata
} from './types'

export function createContent<T extends KodaMetadata>(metadata: T): Content {
const content = contentFrom(metadata)
// TODO: do validation here
return content
}
1 change: 1 addition & 0 deletions hyperdata/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export type OpenSeaMetadata = BaseMetadata &

export type KodaMetadata = OpenSeaMetadata & {
banner?: string
type?: string
}

export type TezosAttribute = {
Expand Down