@xyo-network/react-sentinel 2.65.6 → 2.66.0
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/dist/browser/contexts/use.d.cts +1 -1
- package/dist/browser/contexts/use.d.mts +1 -1
- package/dist/browser/contexts/use.d.ts +1 -1
- package/dist/node/contexts/use.d.cts +1 -1
- package/dist/node/contexts/use.d.mts +1 -1
- package/dist/node/contexts/use.d.ts +1 -1
- package/package.json +21 -21
- package/src/components/Card/Card.stories.tsx +3 -6
- package/src/components/Card/NftSentinel.json +13 -13
|
@@ -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").
|
|
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").
|
|
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").
|
|
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").
|
|
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").
|
|
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").
|
|
43
|
+
tasks: import("@xyo-network/sentinel-model").Task[];
|
|
44
44
|
} & {
|
|
45
45
|
schema: "network.xyo.sentinel.config";
|
|
46
46
|
}, "schema"> & {
|
package/package.json
CHANGED
|
@@ -15,30 +15,30 @@
|
|
|
15
15
|
"@xylabs/react-flexbox": "^3.0.21",
|
|
16
16
|
"@xylabs/react-promise": "^3.0.21",
|
|
17
17
|
"@xylabs/react-shared": "^3.0.21",
|
|
18
|
-
"@xyo-network/account-model": "^2.
|
|
19
|
-
"@xyo-network/archivist": "^2.
|
|
20
|
-
"@xyo-network/boundwitness-model": "^2.
|
|
21
|
-
"@xyo-network/module": "^2.
|
|
22
|
-
"@xyo-network/module-model": "^2.
|
|
23
|
-
"@xyo-network/payload-model": "^2.
|
|
24
|
-
"@xyo-network/react-module": "^2.
|
|
25
|
-
"@xyo-network/react-node": "~2.
|
|
26
|
-
"@xyo-network/react-shared": "~2.
|
|
27
|
-
"@xyo-network/react-witness": "~2.
|
|
28
|
-
"@xyo-network/sentinel": "^2.
|
|
29
|
-
"@xyo-network/sentinel-model": "^2.
|
|
30
|
-
"@xyo-network/witness": "^2.
|
|
18
|
+
"@xyo-network/account-model": "^2.81.6",
|
|
19
|
+
"@xyo-network/archivist": "^2.81.6",
|
|
20
|
+
"@xyo-network/boundwitness-model": "^2.81.6",
|
|
21
|
+
"@xyo-network/module": "^2.81.6",
|
|
22
|
+
"@xyo-network/module-model": "^2.81.6",
|
|
23
|
+
"@xyo-network/payload-model": "^2.81.6",
|
|
24
|
+
"@xyo-network/react-module": "^2.66.0",
|
|
25
|
+
"@xyo-network/react-node": "~2.66.0",
|
|
26
|
+
"@xyo-network/react-shared": "~2.66.0",
|
|
27
|
+
"@xyo-network/react-witness": "~2.66.0",
|
|
28
|
+
"@xyo-network/sentinel": "^2.81.6",
|
|
29
|
+
"@xyo-network/sentinel-model": "^2.81.6",
|
|
30
|
+
"@xyo-network/witness": "^2.81.6",
|
|
31
31
|
"react-json-view": "^1.21.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@ethersproject/providers": "^5.7.2",
|
|
35
34
|
"@storybook/react": "^7.5.3",
|
|
36
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
37
|
-
"@xylabs/tsconfig-react": "^3.
|
|
38
|
-
"@xyo-network/account": "^2.
|
|
39
|
-
"@xyo-network/crypto-contract-function-read-payload-plugin": "^2.
|
|
40
|
-
"@xyo-network/crypto-contract-function-read-plugin": "^2.
|
|
41
|
-
"@xyo-network/manifest": "^2.
|
|
35
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.8",
|
|
36
|
+
"@xylabs/tsconfig-react": "^3.2.8",
|
|
37
|
+
"@xyo-network/account": "^2.81.6",
|
|
38
|
+
"@xyo-network/crypto-contract-function-read-payload-plugin": "^2.81.7",
|
|
39
|
+
"@xyo-network/crypto-contract-function-read-plugin": "^2.81.7",
|
|
40
|
+
"@xyo-network/manifest": "^2.81.6",
|
|
41
|
+
"ethers": "^6.8.1",
|
|
42
42
|
"typescript": "^5.2.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -99,6 +99,6 @@
|
|
|
99
99
|
},
|
|
100
100
|
"sideEffects": false,
|
|
101
101
|
"types": "dist/browser/index.d.ts",
|
|
102
|
-
"version": "2.
|
|
102
|
+
"version": "2.66.0",
|
|
103
103
|
"type": "module"
|
|
104
104
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InfuraProvider } from '@ethersproject/providers'
|
|
2
1
|
import { Meta, StoryFn } from '@storybook/react'
|
|
3
2
|
import { FlexCol } from '@xylabs/react-flexbox'
|
|
4
3
|
import { usePromise } from '@xylabs/react-promise'
|
|
@@ -8,17 +7,15 @@ import { CryptoContractDiviner, CryptoContractFunctionReadWitness } from '@xyo-n
|
|
|
8
7
|
import { ManifestWrapper, PackageManifestPayload } from '@xyo-network/manifest'
|
|
9
8
|
import { ModuleFactory, ModuleFactoryLocator } from '@xyo-network/module-model'
|
|
10
9
|
import { asSentinelInstance, ReportEndEventArgs } from '@xyo-network/sentinel'
|
|
10
|
+
import { InfuraProvider } from 'ethers'
|
|
11
11
|
|
|
12
12
|
import { SentinelCard } from './Card'
|
|
13
13
|
import NftSentinelManifest from './NftSentinel.json'
|
|
14
14
|
|
|
15
15
|
const loadFromManifest = async () => {
|
|
16
16
|
const mnemonic = 'later puppy sound rebuild rebuild noise ozone amazing hope broccoli crystal grief'
|
|
17
|
-
const wallet = await HDWallet.
|
|
18
|
-
const provider = new InfuraProvider('homestead',
|
|
19
|
-
projectId: process.env.STORYBOOK_INFURA_PROJECT_ID,
|
|
20
|
-
projectSecret: process.env.STORYBOOK_INFURA_PROJECT_SECRET,
|
|
21
|
-
})
|
|
17
|
+
const wallet = await HDWallet.fromPhrase(mnemonic)
|
|
18
|
+
const provider = new InfuraProvider('homestead', process.env.STORYBOOK_INFURA_PROJECT_ID)
|
|
22
19
|
|
|
23
20
|
const locator = new ModuleFactoryLocator()
|
|
24
21
|
locator.register(CryptoContractDiviner)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"nodes": [
|
|
4
4
|
{
|
|
5
5
|
"config": {
|
|
6
|
-
"accountPath": "
|
|
6
|
+
"accountPath": "/0'/0'",
|
|
7
7
|
"name": "NftInfoNode",
|
|
8
8
|
"schema": "network.xyo.node.config"
|
|
9
9
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"public": [
|
|
12
12
|
{
|
|
13
13
|
"config": {
|
|
14
|
-
"accountPath": "
|
|
14
|
+
"accountPath": "/1'/0'",
|
|
15
15
|
"call": {
|
|
16
16
|
"functionName": "name",
|
|
17
17
|
"params": []
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"config": {
|
|
29
|
-
"accountPath": "
|
|
29
|
+
"accountPath": "/1'/1'",
|
|
30
30
|
"call": {
|
|
31
31
|
"functionName": "symbol",
|
|
32
32
|
"params": []
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"config": {
|
|
44
|
-
"accountPath": "
|
|
44
|
+
"accountPath": "/1'/2'",
|
|
45
45
|
"call": {
|
|
46
46
|
"functionName": "totalSupply",
|
|
47
47
|
"params": []
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"config": {
|
|
59
|
-
"accountPath": "
|
|
59
|
+
"accountPath": "/1'/3'",
|
|
60
60
|
"call": {
|
|
61
61
|
"functionName": "tokenURI"
|
|
62
62
|
},
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"config": {
|
|
73
|
-
"accountPath": "
|
|
73
|
+
"accountPath": "/1'/4'",
|
|
74
74
|
"call": {
|
|
75
75
|
"functionName": "ownerOf"
|
|
76
76
|
},
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"config": {
|
|
87
|
-
"accountPath": "
|
|
87
|
+
"accountPath": "/1'/5'",
|
|
88
88
|
"call": {
|
|
89
89
|
"functionName": "uri",
|
|
90
90
|
"params": []
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"config": {
|
|
102
|
-
"accountPath": "
|
|
102
|
+
"accountPath": "/2'/0'",
|
|
103
103
|
"language": "javascript",
|
|
104
104
|
"name": "Erc721ContractInfoDiviner",
|
|
105
105
|
"schema": "network.xyo.crypto.contract.diviner.config"
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"config": {
|
|
110
|
-
"accountPath": "
|
|
110
|
+
"accountPath": "/2'/1'",
|
|
111
111
|
"language": "javascript",
|
|
112
112
|
"name": "Erc1155ContractInfoDiviner",
|
|
113
113
|
"schema": "network.xyo.crypto.contract.diviner.config"
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"config": {
|
|
118
|
-
"accountPath": "
|
|
118
|
+
"accountPath": "/2'/2'",
|
|
119
119
|
"language": "javascript",
|
|
120
120
|
"name": "Erc721TokenContractInfoDiviner",
|
|
121
121
|
"schema": "network.xyo.crypto.contract.diviner.config"
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"config": {
|
|
126
|
-
"accountPath": "
|
|
126
|
+
"accountPath": "/2'/3'",
|
|
127
127
|
"language": "javascript",
|
|
128
128
|
"name": "Erc1155TokenContractInfoDiviner",
|
|
129
129
|
"schema": "network.xyo.crypto.contract.diviner.config"
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"config": {
|
|
134
|
-
"accountPath": "
|
|
134
|
+
"accountPath": "/3'/0'",
|
|
135
135
|
"language": "javascript",
|
|
136
136
|
"name": "NftInfoSentinel",
|
|
137
137
|
"schema": "network.xyo.sentinel.config",
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
"config": {
|
|
175
|
-
"accountPath": "
|
|
175
|
+
"accountPath": "/3'/1'",
|
|
176
176
|
"language": "javascript",
|
|
177
177
|
"name": "NftTokenInfoSentinel",
|
|
178
178
|
"schema": "network.xyo.sentinel.config",
|