@xyo-network/react-sentinel 2.67.7 → 2.67.9

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.
package/package.json CHANGED
@@ -15,29 +15,30 @@
15
15
  "@xylabs/react-flexbox": "^3.0.35",
16
16
  "@xylabs/react-promise": "^3.0.35",
17
17
  "@xylabs/react-shared": "^3.0.35",
18
- "@xyo-network/account-model": "^2.85.4",
19
- "@xyo-network/archivist": "^2.85.4",
20
- "@xyo-network/boundwitness-model": "^2.85.4",
21
- "@xyo-network/module-model": "^2.85.4",
22
- "@xyo-network/payload-model": "^2.85.4",
23
- "@xyo-network/react-module": "^2.67.7",
24
- "@xyo-network/react-node": "~2.67.7",
25
- "@xyo-network/react-shared": "~2.67.7",
26
- "@xyo-network/react-witness": "~2.67.7",
27
- "@xyo-network/sentinel": "^2.85.4",
28
- "@xyo-network/sentinel-model": "^2.85.4",
29
- "@xyo-network/witness-model": "^2.85.4",
18
+ "@xyo-network/account-model": "^2.86.1",
19
+ "@xyo-network/archivist": "^2.86.1",
20
+ "@xyo-network/boundwitness-model": "^2.86.1",
21
+ "@xyo-network/evm-call-witness": "^2.86.1",
22
+ "@xyo-network/module-model": "^2.86.1",
23
+ "@xyo-network/payload-model": "^2.86.1",
24
+ "@xyo-network/react-module": "^2.67.9",
25
+ "@xyo-network/react-node": "~2.67.9",
26
+ "@xyo-network/react-shared": "~2.67.9",
27
+ "@xyo-network/react-witness": "~2.67.9",
28
+ "@xyo-network/sentinel": "^2.86.1",
29
+ "@xyo-network/sentinel-model": "^2.86.1",
30
+ "@xyo-network/witness-model": "^2.86.1",
30
31
  "react-json-view": "^1.21.3"
31
32
  },
32
33
  "devDependencies": {
33
- "@storybook/react": "^7.6.6",
34
- "@xylabs/ts-scripts-yarn3": "^3.2.25",
35
- "@xylabs/tsconfig-react": "^3.2.25",
36
- "@xyo-network/account": "^2.85.4",
37
- "@xyo-network/crypto-contract-function-read-payload-plugin": "^2.85.1",
38
- "@xyo-network/crypto-contract-function-read-plugin": "^2.85.1",
39
- "@xyo-network/manifest": "^2.85.4",
40
- "ethers": "^6.9.1",
34
+ "@storybook/react": "^7.6.7",
35
+ "@xylabs/ts-scripts-yarn3": "^3.2.28",
36
+ "@xylabs/tsconfig-react": "^3.2.28",
37
+ "@xyo-network/account": "^2.86.1",
38
+ "@xyo-network/crypto-contract-function-read-payload-plugin": "^2.86.1",
39
+ "@xyo-network/crypto-contract-function-read-plugin": "^2.86.1",
40
+ "@xyo-network/manifest": "^2.86.1",
41
+ "ethers": "^6.9.2",
41
42
  "typescript": "^5.3.3"
42
43
  },
43
44
  "peerDependencies": {
@@ -98,6 +99,6 @@
98
99
  },
99
100
  "sideEffects": false,
100
101
  "types": "dist/browser/index.d.ts",
101
- "version": "2.67.7",
102
+ "version": "2.67.9",
102
103
  "type": "module"
103
104
  }
@@ -2,8 +2,7 @@ import { Meta, StoryFn } from '@storybook/react'
2
2
  import { FlexCol } from '@xylabs/react-flexbox'
3
3
  import { usePromise } from '@xylabs/react-promise'
4
4
  import { HDWallet } from '@xyo-network/account'
5
- import { CryptoContractFunctionCallSchema } from '@xyo-network/crypto-contract-function-read-payload-plugin'
6
- import { CryptoContractDiviner, CryptoContractFunctionReadWitness } from '@xyo-network/crypto-contract-function-read-plugin'
5
+ import { EvmCallWitness, EvmCallDiviner, EvmCallWitnessConfigSchema } from '@xyo-network/evm-call-witness'
7
6
  import { ManifestWrapper, PackageManifestPayload } from '@xyo-network/manifest'
8
7
  import { ModuleFactory, ModuleFactoryLocator } from '@xyo-network/module-model'
9
8
  import { asSentinelInstance, ReportEndEventArgs } from '@xyo-network/sentinel'
@@ -18,27 +17,27 @@ const loadFromManifest = async () => {
18
17
  const provider = new InfuraProvider('homestead', process.env.STORYBOOK_INFURA_PROJECT_ID)
19
18
 
20
19
  const locator = new ModuleFactoryLocator()
21
- locator.register(CryptoContractDiviner)
20
+ locator.register(EvmCallDiviner)
22
21
 
23
22
  locator.register(
24
- new ModuleFactory(CryptoContractFunctionReadWitness, {
25
- providers: [provider],
23
+ new ModuleFactory(EvmCallWitness, {
24
+ providers: () => [provider],
26
25
  }),
27
- { 'network.xyo.crypto.contract.interface': 'Erc721' },
26
+ { 'network.xyo.evm.interface': 'Erc721' },
28
27
  )
29
28
 
30
29
  locator.register(
31
- new ModuleFactory(CryptoContractFunctionReadWitness, {
32
- providers: [provider],
30
+ new ModuleFactory(EvmCallWitness, {
31
+ providers: () => [provider],
33
32
  }),
34
- { 'network.xyo.crypto.contract.interface': 'Erc721Enumerable' },
33
+ { 'network.xyo.evm.interface': 'Erc721Enumerable' },
35
34
  )
36
35
 
37
36
  locator.register(
38
- new ModuleFactory(CryptoContractFunctionReadWitness, {
39
- providers: [provider],
37
+ new ModuleFactory(EvmCallWitness, {
38
+ providers: () => [provider],
40
39
  }),
41
- { 'network.xyo.crypto.contract.interface': 'Erc1155' },
40
+ { 'network.xyo.evm.interface': 'Erc1155' },
42
41
  )
43
42
 
44
43
  const manifest = new ManifestWrapper(NftSentinelManifest as PackageManifestPayload, wallet, locator)
@@ -74,7 +73,7 @@ const NftSentinelTemplate: StoryFn<typeof SentinelCard> = () => {
74
73
  const inPayloads = [
75
74
  {
76
75
  address: '0x562fC2927c77cB975680088566ADa1dC6cB8b5Ea', //Random ERC721
77
- schema: CryptoContractFunctionCallSchema,
76
+ schema: EvmCallWitnessConfigSchema,
78
77
  },
79
78
  ]
80
79
 
@@ -113,7 +112,7 @@ const NftTokensSentinelTemplate: StoryFn<typeof SentinelCard> = () => {
113
112
  const calls = Array(1000).map((_, index) => ({
114
113
  address: '0x562fC2927c77cB975680088566ADa1dC6cB8b5Ea', //Random ERC721
115
114
  params: [index],
116
- schema: CryptoContractFunctionCallSchema,
115
+ schema: EvmCallWitnessConfigSchema,
117
116
  }))
118
117
  await tokensSentinel?.report(calls)
119
118
  })
@@ -124,7 +123,7 @@ const NftTokensSentinelTemplate: StoryFn<typeof SentinelCard> = () => {
124
123
  const inPayloads = [
125
124
  {
126
125
  address: '0x562fC2927c77cB975680088566ADa1dC6cB8b5Ea', //Random ERC721
127
- schema: CryptoContractFunctionCallSchema,
126
+ schema: EvmCallWitnessConfigSchema,
128
127
  },
129
128
  ]
130
129
 
@@ -17,7 +17,7 @@
17
17
  "params": []
18
18
  },
19
19
  "labels": {
20
- "network.xyo.crypto.contract.interface": "Erc721"
20
+ "network.xyo.evm.interface": "Erc721"
21
21
  },
22
22
  "language": "javascript",
23
23
  "name": "Erc721NameWitness",
@@ -32,7 +32,7 @@
32
32
  "params": []
33
33
  },
34
34
  "labels": {
35
- "network.xyo.crypto.contract.interface": "Erc721"
35
+ "network.xyo.evm.interface": "Erc721"
36
36
  },
37
37
  "language": "javascript",
38
38
  "name": "Erc721SymbolWitness",
@@ -47,7 +47,7 @@
47
47
  "params": []
48
48
  },
49
49
  "labels": {
50
- "network.xyo.crypto.contract.interface": "Erc721Enumerable"
50
+ "network.xyo.evm.interface": "Erc721Enumerable"
51
51
  },
52
52
  "language": "javascript",
53
53
  "name": "Erc721TotalSupplyWitness",
@@ -61,7 +61,7 @@
61
61
  "functionName": "tokenURI"
62
62
  },
63
63
  "labels": {
64
- "network.xyo.crypto.contract.interface": "Erc721"
64
+ "network.xyo.evm.interface": "Erc721"
65
65
  },
66
66
  "language": "javascript",
67
67
  "name": "Erc721TokenURIWitness",
@@ -75,7 +75,7 @@
75
75
  "functionName": "ownerOf"
76
76
  },
77
77
  "labels": {
78
- "network.xyo.crypto.contract.interface": "Erc721"
78
+ "network.xyo.evm.interface": "Erc721"
79
79
  },
80
80
  "language": "javascript",
81
81
  "name": "Erc721OwnerOfWitness",
@@ -90,7 +90,7 @@
90
90
  "params": []
91
91
  },
92
92
  "labels": {
93
- "network.xyo.crypto.contract.interface": "Erc1155"
93
+ "network.xyo.evm.interface": "Erc1155"
94
94
  },
95
95
  "language": "javascript",
96
96
  "name": "Erc1155UriWitness",