diff --git a/packages/modules/packages/sentinal/src/components/Card/Card.stories.tsx b/packages/modules/packages/sentinal/src/components/Card/Card.stories.tsx index ae8951e022..97746c1576 100644 --- a/packages/modules/packages/sentinal/src/components/Card/Card.stories.tsx +++ b/packages/modules/packages/sentinal/src/components/Card/Card.stories.tsx @@ -15,7 +15,7 @@ import { InfuraProvider } from 'ethers' import React from 'react' import { SentinelCard } from './Card.tsx' -import NftSentinelManifest from './NftSentinel.json' +import { NftSentinelManifest } from './manifest.ts' const loadFromManifest = async () => { const mnemonic = 'later puppy sound rebuild rebuild noise ozone amazing hope broccoli crystal grief' diff --git a/packages/modules/packages/sentinal/src/components/Card/manifest.ts b/packages/modules/packages/sentinal/src/components/Card/manifest.ts new file mode 100644 index 0000000000..f620fbdd95 --- /dev/null +++ b/packages/modules/packages/sentinal/src/components/Card/manifest.ts @@ -0,0 +1 @@ +export { default as NftSentinelManifest } from './NftSentinel.json' assert { type: 'json' } diff --git a/packages/modules/packages/sentinal/tsconfig.json b/packages/modules/packages/sentinal/tsconfig.json index 0e525e11b7..7cb375708b 100644 --- a/packages/modules/packages/sentinal/tsconfig.json +++ b/packages/modules/packages/sentinal/tsconfig.json @@ -1,9 +1,3 @@ { - "compilerOptions": { - "moduleResolution": "NodeNext", - "module": "NodeNext", - "typeRoots": [], - }, - "exclude": ["dist", "docs", "packages", "node_modules"], "extends": "@xylabs/tsconfig-react" } \ No newline at end of file diff --git a/packages/modules/packages/witness/tsconfig.json b/packages/modules/packages/witness/tsconfig.json index 0e525e11b7..7cb375708b 100644 --- a/packages/modules/packages/witness/tsconfig.json +++ b/packages/modules/packages/witness/tsconfig.json @@ -1,9 +1,3 @@ { - "compilerOptions": { - "moduleResolution": "NodeNext", - "module": "NodeNext", - "typeRoots": [], - }, - "exclude": ["dist", "docs", "packages", "node_modules"], "extends": "@xylabs/tsconfig-react" } \ No newline at end of file diff --git a/packages/modules/tsconfig.json b/packages/modules/tsconfig.json index 09f1830312..e8319e4aab 100644 --- a/packages/modules/tsconfig.json +++ b/packages/modules/tsconfig.json @@ -1,10 +1,3 @@ { - "compilerOptions": { - "moduleResolution": "NodeNext", - "module": "NodeNext", - "typeRoots": [], - }, - "exclude": ["dist", "docs", "packages", "node_modules"], "extends": "@xylabs/tsconfig-react", - "include": ["src"] } \ No newline at end of file diff --git a/packages/plugins/packages/address/src/components/menu-item/MenuItemRenderer.stories.tsx b/packages/plugins/packages/address/src/components/menu-item/MenuItemRenderer.stories.tsx index 0f9a854b09..dac44b10a5 100644 --- a/packages/plugins/packages/address/src/components/menu-item/MenuItemRenderer.stories.tsx +++ b/packages/plugins/packages/address/src/components/menu-item/MenuItemRenderer.stories.tsx @@ -9,7 +9,7 @@ import React from 'react' import { AddressMenuItemRenderer } from './MenuItemRenderer.tsx' -const address: Address = toHex(randomBytes(20)) +const address: Address = toHex(randomBytes(20).buffer) const payload: AddressPayload = { address, schema: AddressSchema, diff --git a/packages/plugins/packages/boundwitness/src/components/_shared/Signatures/SignatureTable.tsx b/packages/plugins/packages/boundwitness/src/components/_shared/Signatures/SignatureTable.tsx index f6ec0dc1ab..44b9e64b2c 100644 --- a/packages/plugins/packages/boundwitness/src/components/_shared/Signatures/SignatureTable.tsx +++ b/packages/plugins/packages/boundwitness/src/components/_shared/Signatures/SignatureTable.tsx @@ -26,7 +26,7 @@ const signatureDataFromBoundWitness = (boundWitness: BoundWitness) => { result.push({ address: boundWitness.addresses[i], previous_hash: boundWitness.previous_hashes?.[i], - signature: boundWitness.$meta?.signatures?.[i] ?? [], + signature: boundWitness.$signatures?.[i] ?? [], }) } return result diff --git a/packages/plugins/packages/boundwitness/src/components/_shared/Signatures/SignatureTableRow.tsx b/packages/plugins/packages/boundwitness/src/components/_shared/Signatures/SignatureTableRow.tsx index 0ed33adb7f..99cae0ecb4 100644 --- a/packages/plugins/packages/boundwitness/src/components/_shared/Signatures/SignatureTableRow.tsx +++ b/packages/plugins/packages/boundwitness/src/components/_shared/Signatures/SignatureTableRow.tsx @@ -34,7 +34,13 @@ export const BoundWitnessSignatureTableRow: React.FC { const [errors] = usePromise( async () => - hash && address ? await BoundWitnessValidator.validateSignature(toUint8Array(hash), toUint8Array(address), toUint8Array(signature)) : [], + hash && address + ? await BoundWitnessValidator.validateSignature( + toUint8Array(hash).buffer, + toUint8Array(address).buffer, + toUint8Array(signature)?.buffer, + ) + : [], [hash, address, signature], ) diff --git a/packages/plugins/packages/nft-score/src/components/NftScoreRenderer.tsx b/packages/plugins/packages/nft-score/src/components/NftScoreRenderer.tsx index fc0be3df52..45e3a3c595 100644 --- a/packages/plugins/packages/nft-score/src/components/NftScoreRenderer.tsx +++ b/packages/plugins/packages/nft-score/src/components/NftScoreRenderer.tsx @@ -65,13 +65,14 @@ export const NftScoreRenderer: React.FC = ({ payload, ... {categories.map(([category, score]) => { + const typedScore = score as unknown as Score return score ? ( {category} - {score[0]} - {score[1]} - {getScoreIcon(score)} + {typedScore[0]} + {typedScore[1]} + {getScoreIcon(typedScore)} ) : null diff --git a/packages/sdk/packages/address/packages/render/src/components/RenderRowBox.stories.tsx b/packages/sdk/packages/address/packages/render/src/components/RenderRowBox.stories.tsx index f6565798b3..4b40ee668f 100644 --- a/packages/sdk/packages/address/packages/render/src/components/RenderRowBox.stories.tsx +++ b/packages/sdk/packages/address/packages/render/src/components/RenderRowBox.stories.tsx @@ -8,7 +8,7 @@ import React, { useState } from 'react' import type { FavoriteItemEvent } from './lib/index.ts' import { AddressRenderRowBox } from './RenderRowBox.tsx' -const address: Address = toHex(randomBytes(20)) +const address: Address = toHex(randomBytes(20).buffer) const StorybookEntry = { argTypes: {}, diff --git a/packages/sdk/packages/block/src/components/Details/SignatureTable.tsx b/packages/sdk/packages/block/src/components/Details/SignatureTable.tsx index 11deb0c31b..f78a81e1fc 100644 --- a/packages/sdk/packages/block/src/components/Details/SignatureTable.tsx +++ b/packages/sdk/packages/block/src/components/Details/SignatureTable.tsx @@ -28,7 +28,7 @@ const signatureDataFromBoundWitness = (boundWitness: BoundWitness) => { result.push({ address: boundWitness.addresses[i], previous_hash: boundWitness.previous_hashes[i], - signature: boundWitness.$meta.signatures?.[i], + signature: boundWitness.$signatures?.[i], }) } return result diff --git a/packages/sdk/packages/block/src/components/Details/SignatureTableRow.tsx b/packages/sdk/packages/block/src/components/Details/SignatureTableRow.tsx index 2291302dbe..4fd8b0dfba 100644 --- a/packages/sdk/packages/block/src/components/Details/SignatureTableRow.tsx +++ b/packages/sdk/packages/block/src/components/Details/SignatureTableRow.tsx @@ -26,7 +26,13 @@ export const BlockSignatureTableRow: React.FC = ({ }) => { const [errors] = usePromise( async () => - hash && address ? await BoundWitnessValidator.validateSignature(toUint8Array(hash), toUint8Array(address), toUint8Array(signature)) : [], + hash && address + ? await BoundWitnessValidator.validateSignature( + toUint8Array(hash).buffer, + toUint8Array(address).buffer, + toUint8Array(signature)?.buffer, + ) + : [], [hash, address, signature], ) diff --git a/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/ContractWitnessManifestNode.ts b/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/ContractWitnessManifestNode.ts index 6fd3a41768..bda078bf81 100644 --- a/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/ContractWitnessManifestNode.ts +++ b/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/ContractWitnessManifestNode.ts @@ -17,7 +17,7 @@ import type { CreatablePackageManifest } from '@xyo-network/react-manifest' import { TimestampWitness } from '@xyo-network/witness-timestamp' import { InfuraProvider } from 'ethers' -import contractWitnessManifest from './contract-witness-index-node.json' +import contractWitnessManifest from './contract-witness-index-node.json' assert { type: 'json' } export const ContractWitnessManifestNode: CreatablePackageManifest = (locator: ModuleFactoryLocator): PackageManifestPayload => { locator.register(MemoryArchivist) diff --git a/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/TokenDivinerIndexNode.ts b/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/TokenDivinerIndexNode.ts index 73bdef7e83..692c28eb46 100644 --- a/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/TokenDivinerIndexNode.ts +++ b/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/TokenDivinerIndexNode.ts @@ -17,7 +17,7 @@ import type { CreatablePackageManifest } from '@xyo-network/react-manifest' import { TimestampWitness } from '@xyo-network/witness-timestamp' import { InfuraProvider } from 'ethers' -import tokenDivinerIndexManifest from './token-diviner-index.json' +import tokenDivinerIndexManifest from './token-diviner-index.json' assert { type: 'json' } export const TokenDivinerIndexManifestNode: CreatablePackageManifest = (locator: ModuleFactoryLocator): PackageManifestPayload => { locator.register(MemoryArchivist) diff --git a/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/TokenNode.ts b/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/TokenNode.ts index 13d09b7d51..054530f1bc 100644 --- a/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/TokenNode.ts +++ b/packages/sdk/packages/indexed-results/src/stories/manifest/nodes/contract/TokenNode.ts @@ -4,7 +4,7 @@ import type { PackageManifestPayload } from '@xyo-network/manifest' import type { ModuleFactoryLocator } from '@xyo-network/module-factory-locator' import type { CreatablePackageManifest } from '@xyo-network/react-manifest' -import tokenNodeManifest from './token-node.json' +import tokenNodeManifest from './token-node.json' assert { type: 'json' } export const TokenManifestNode: CreatablePackageManifest = (locator: ModuleFactoryLocator): PackageManifestPayload => { locator.register(MemoryBoundWitnessDiviner) diff --git a/packages/sdk/packages/manifest/src/stories/archivist/ArchivistNode.ts b/packages/sdk/packages/manifest/src/stories/archivist/ArchivistNode.ts index 4ab5e82721..7eea46bba7 100644 --- a/packages/sdk/packages/manifest/src/stories/archivist/ArchivistNode.ts +++ b/packages/sdk/packages/manifest/src/stories/archivist/ArchivistNode.ts @@ -3,7 +3,7 @@ import type { PackageManifestPayload } from '@xyo-network/manifest' import type { ModuleFactoryLocator } from '@xyo-network/module-factory-locator' import type { CreatablePackageManifest } from '../../types/index.ts' -import archivistManifest from './archivist-manifest.json' +import archivistManifest from './archivist-manifest.json' assert { type: 'json' } export const ArchivistManifestNode: CreatablePackageManifest = (locator: ModuleFactoryLocator): PackageManifestPayload => { locator.register(MemoryPayloadDiviner) diff --git a/packages/sdk/packages/manifest/src/stories/sentinel/SentinelNode.ts b/packages/sdk/packages/manifest/src/stories/sentinel/SentinelNode.ts index 46e13459b8..78fbd3620b 100644 --- a/packages/sdk/packages/manifest/src/stories/sentinel/SentinelNode.ts +++ b/packages/sdk/packages/manifest/src/stories/sentinel/SentinelNode.ts @@ -4,7 +4,7 @@ import { TimestampWitness } from '@xyo-network/witness-timestamp' import type { CreatablePackageManifest } from '../../types/index.ts' import { AddDayDiviner } from '../modules/index.ts' -import sentinelManifest from './sentinel-manifest.json' +import sentinelManifest from './sentinel-manifest.json' assert { type: 'json' } export const SentinelManifestNode: CreatablePackageManifest = (locator: ModuleFactoryLocator): PackageManifestPayload => { locator.register(TimestampWitness) diff --git a/packages/sdk/packages/powered-by-xyo/src/components/stories/PoweredByXyo.stories.tsx b/packages/sdk/packages/powered-by-xyo/src/components/stories/PoweredByXyo.stories.tsx index 0cea6a8be6..ac1ece5a16 100644 --- a/packages/sdk/packages/powered-by-xyo/src/components/stories/PoweredByXyo.stories.tsx +++ b/packages/sdk/packages/powered-by-xyo/src/components/stories/PoweredByXyo.stories.tsx @@ -13,7 +13,7 @@ import React, { useState } from 'react' import type { PoweredByXyoProps } from '../PoweredByXyo.tsx' import { PoweredByXyo } from '../PoweredByXyo.tsx' -import simpleNodeInlineManifest from './simple-node-inline-manifest.json' +import { simpleNodeInlineManifest } from './manifest.ts' const StorybookEntry = { component: PoweredByXyo, diff --git a/packages/sdk/packages/powered-by-xyo/src/components/stories/manifest.ts b/packages/sdk/packages/powered-by-xyo/src/components/stories/manifest.ts new file mode 100644 index 0000000000..0e9b175f61 --- /dev/null +++ b/packages/sdk/packages/powered-by-xyo/src/components/stories/manifest.ts @@ -0,0 +1 @@ +export { default as simpleNodeInlineManifest } from './simple-node-inline-manifest.json' assert { type: 'json' }