@xyo-network/react-sentinel 2.65.5 → 2.65.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,7 +40,7 @@ export declare const useSentinelContext: () => {
40
40
  readonly timestamp?: boolean | undefined;
41
41
  } & import("@xyo-network/module-model").ArchivingModuleConfig & {
42
42
  synchronous?: boolean | undefined;
43
- tasks: import("@xyo-network/sentinel-model").SentinelTask[];
43
+ tasks: import("@xyo-network/sentinel-model").Task[];
44
44
  } & {
45
45
  schema: "network.xyo.sentinel.config";
46
46
  }, "schema"> & {
@@ -40,7 +40,7 @@ export declare const useSentinelContext: () => {
40
40
  readonly timestamp?: boolean | undefined;
41
41
  } & import("@xyo-network/module-model").ArchivingModuleConfig & {
42
42
  synchronous?: boolean | undefined;
43
- tasks: import("@xyo-network/sentinel-model").SentinelTask[];
43
+ tasks: import("@xyo-network/sentinel-model").Task[];
44
44
  } & {
45
45
  schema: "network.xyo.sentinel.config";
46
46
  }, "schema"> & {
@@ -40,7 +40,7 @@ export declare const useSentinelContext: () => {
40
40
  readonly timestamp?: boolean | undefined;
41
41
  } & import("@xyo-network/module-model").ArchivingModuleConfig & {
42
42
  synchronous?: boolean | undefined;
43
- tasks: import("@xyo-network/sentinel-model").SentinelTask[];
43
+ tasks: import("@xyo-network/sentinel-model").Task[];
44
44
  } & {
45
45
  schema: "network.xyo.sentinel.config";
46
46
  }, "schema"> & {
@@ -40,7 +40,7 @@ export declare const useSentinelContext: () => {
40
40
  readonly timestamp?: boolean | undefined;
41
41
  } & import("@xyo-network/module-model").ArchivingModuleConfig & {
42
42
  synchronous?: boolean | undefined;
43
- tasks: import("@xyo-network/sentinel-model").SentinelTask[];
43
+ tasks: import("@xyo-network/sentinel-model").Task[];
44
44
  } & {
45
45
  schema: "network.xyo.sentinel.config";
46
46
  }, "schema"> & {
@@ -40,7 +40,7 @@ export declare const useSentinelContext: () => {
40
40
  readonly timestamp?: boolean | undefined;
41
41
  } & import("@xyo-network/module-model").ArchivingModuleConfig & {
42
42
  synchronous?: boolean | undefined;
43
- tasks: import("@xyo-network/sentinel-model").SentinelTask[];
43
+ tasks: import("@xyo-network/sentinel-model").Task[];
44
44
  } & {
45
45
  schema: "network.xyo.sentinel.config";
46
46
  }, "schema"> & {
@@ -40,7 +40,7 @@ export declare const useSentinelContext: () => {
40
40
  readonly timestamp?: boolean | undefined;
41
41
  } & import("@xyo-network/module-model").ArchivingModuleConfig & {
42
42
  synchronous?: boolean | undefined;
43
- tasks: import("@xyo-network/sentinel-model").SentinelTask[];
43
+ tasks: import("@xyo-network/sentinel-model").Task[];
44
44
  } & {
45
45
  schema: "network.xyo.sentinel.config";
46
46
  }, "schema"> & {
package/package.json CHANGED
@@ -11,24 +11,34 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/react-async-effect": "^3.0.21",
14
+ "@xylabs/react-button": "^3.0.21",
15
+ "@xylabs/react-flexbox": "^3.0.21",
16
+ "@xylabs/react-promise": "^3.0.21",
14
17
  "@xylabs/react-shared": "^3.0.21",
15
- "@xyo-network/account-model": "^2.77.19",
16
- "@xyo-network/archivist": "^2.77.19",
17
- "@xyo-network/boundwitness-model": "^2.77.19",
18
- "@xyo-network/module": "^2.77.19",
19
- "@xyo-network/module-model": "^2.77.19",
20
- "@xyo-network/react-node": "~2.65.5",
21
- "@xyo-network/react-shared": "~2.65.5",
22
- "@xyo-network/react-witness": "~2.65.5",
23
- "@xyo-network/sentinel": "^2.77.19",
24
- "@xyo-network/witness": "^2.77.19"
18
+ "@xyo-network/account-model": "^2.80.0",
19
+ "@xyo-network/archivist": "^2.80.0",
20
+ "@xyo-network/boundwitness-model": "^2.80.0",
21
+ "@xyo-network/module": "^2.80.0",
22
+ "@xyo-network/module-model": "^2.80.0",
23
+ "@xyo-network/payload-model": "^2.80.0",
24
+ "@xyo-network/react-module": "^2.65.7",
25
+ "@xyo-network/react-node": "~2.65.7",
26
+ "@xyo-network/react-shared": "~2.65.7",
27
+ "@xyo-network/react-witness": "~2.65.7",
28
+ "@xyo-network/sentinel": "^2.80.0",
29
+ "@xyo-network/sentinel-model": "^2.80.0",
30
+ "@xyo-network/witness": "^2.80.0",
31
+ "react-json-view": "^1.21.3"
25
32
  },
26
33
  "devDependencies": {
27
- "@xylabs/ts-scripts-yarn3": "^3.1.13",
28
- "@xylabs/tsconfig-react": "^3.1.13",
29
- "@xyo-network/crypto-contract-function-read-plugin": "^2.77.19",
30
- "@xyo-network/open-zeppelin-typechain": "^2.2.11",
31
- "ethers": "^5.7.2",
34
+ "@ethersproject/providers": "^5.7.2",
35
+ "@storybook/react": "^7.5.3",
36
+ "@xylabs/ts-scripts-yarn3": "^3.2.2",
37
+ "@xylabs/tsconfig-react": "^3.2.2",
38
+ "@xyo-network/account": "^2.80.0",
39
+ "@xyo-network/crypto-contract-function-read-payload-plugin": "^2.80.5",
40
+ "@xyo-network/crypto-contract-function-read-plugin": "^2.80.5",
41
+ "@xyo-network/manifest": "^2.80.0",
32
42
  "typescript": "^5.2.2"
33
43
  },
34
44
  "peerDependencies": {
@@ -89,6 +99,6 @@
89
99
  },
90
100
  "sideEffects": false,
91
101
  "types": "dist/browser/index.d.ts",
92
- "version": "2.65.5",
102
+ "version": "2.65.7",
93
103
  "type": "module"
94
104
  }
@@ -5,13 +5,9 @@ import { usePromise } from '@xylabs/react-promise'
5
5
  import { HDWallet } from '@xyo-network/account'
6
6
  import { CryptoContractFunctionCallSchema } from '@xyo-network/crypto-contract-function-read-payload-plugin'
7
7
  import { CryptoContractDiviner, CryptoContractFunctionReadWitness } from '@xyo-network/crypto-contract-function-read-plugin'
8
- import { ManifestPayload, ManifestWrapper } from '@xyo-network/manifest'
8
+ import { ManifestWrapper, PackageManifestPayload } from '@xyo-network/manifest'
9
9
  import { ModuleFactory, ModuleFactoryLocator } from '@xyo-network/module-model'
10
- import { ERC721__factory, ERC721Enumerable__factory, ERC1155__factory } from '@xyo-network/open-zeppelin-typechain'
11
- import { Payload } from '@xyo-network/payload-model'
12
10
  import { asSentinelInstance, ReportEndEventArgs } from '@xyo-network/sentinel'
13
- import { useState } from 'react'
14
- import JsonView from 'react-json-view'
15
11
 
16
12
  import { SentinelCard } from './Card'
17
13
  import NftSentinelManifest from './NftSentinel.json'
@@ -29,26 +25,26 @@ const loadFromManifest = async () => {
29
25
 
30
26
  locator.register(
31
27
  new ModuleFactory(CryptoContractFunctionReadWitness, {
32
- factory: (address: string) => ERC721__factory.connect(address, provider),
28
+ providers: [provider],
33
29
  }),
34
30
  { 'network.xyo.crypto.contract.interface': 'Erc721' },
35
31
  )
36
32
 
37
33
  locator.register(
38
34
  new ModuleFactory(CryptoContractFunctionReadWitness, {
39
- factory: (address: string) => ERC721Enumerable__factory.connect(address, provider),
35
+ providers: [provider],
40
36
  }),
41
37
  { 'network.xyo.crypto.contract.interface': 'Erc721Enumerable' },
42
38
  )
43
39
 
44
40
  locator.register(
45
41
  new ModuleFactory(CryptoContractFunctionReadWitness, {
46
- factory: (address: string) => ERC1155__factory.connect(address, provider),
42
+ providers: [provider],
47
43
  }),
48
44
  { 'network.xyo.crypto.contract.interface': 'Erc1155' },
49
45
  )
50
46
 
51
- const manifest = new ManifestWrapper(NftSentinelManifest as ManifestPayload, wallet, locator)
47
+ const manifest = new ManifestWrapper(NftSentinelManifest as PackageManifestPayload, wallet, locator)
52
48
  const node = await manifest.loadNodeFromIndex(0)
53
49
  console.log(`node: ${(await node.resolve()).length}`)
54
50
  return node
@@ -96,7 +92,6 @@ const NftSentinelCard = NftSentinelTemplate.bind({})
96
92
 
97
93
  const NftTokensSentinelTemplate: StoryFn<typeof SentinelCard> = () => {
98
94
  const [node] = usePromise(async () => await loadFromManifest(), [])
99
- const [tokens, setTokens] = useState<Payload[]>()
100
95
 
101
96
  const [tokensSentinel] = usePromise(async () => {
102
97
  if (node) {