@xyo-network/react-chain-network 1.19.18 → 1.20.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.
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { XyoViewer } from '@xyo-network/xl1-sdk';
|
|
2
2
|
export declare const useActiveNetworkCurrentBlock: (refresh?: number, viewer?: XyoViewer) => [[{
|
|
3
|
+
$epoch: number;
|
|
4
|
+
block: import("@xyo-network/xl1-sdk").XL1BlockNumber;
|
|
5
|
+
chain: import("@xylabs/hex").BrandedHex;
|
|
6
|
+
previous: import("@xylabs/hex").BrandedHash | null;
|
|
3
7
|
schema: "network.xyo.boundwitness" & {
|
|
4
8
|
readonly __schema: true;
|
|
5
9
|
};
|
|
@@ -12,30 +16,27 @@ export declare const useActiveNetworkCurrentBlock: (refresh?: number, viewer?: X
|
|
|
12
16
|
payload_schemas: import("@xyo-network/payload-model").BrandedSchema<string>[];
|
|
13
17
|
previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
|
|
14
18
|
$signatures: (import("@xylabs/hex").BrandedHex | null)[];
|
|
19
|
+
_hash: import("@xylabs/hex").BrandedHash;
|
|
20
|
+
_dataHash: import("@xylabs/hex").BrandedHash;
|
|
21
|
+
protocol?: number | undefined;
|
|
22
|
+
step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
|
|
15
23
|
$destination?: (Lowercase<string> & {
|
|
16
24
|
readonly __hex: true;
|
|
17
25
|
} & {
|
|
18
26
|
readonly __address: true;
|
|
19
27
|
}) | undefined;
|
|
20
28
|
$sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
chain: import("@xylabs/hex").BrandedHex;
|
|
24
|
-
previous: import("@xylabs/hex").BrandedHash | null;
|
|
25
|
-
protocol?: number | undefined;
|
|
26
|
-
step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
|
|
27
|
-
} & {
|
|
28
|
-
$epoch: number;
|
|
29
|
-
} & {
|
|
30
|
-
_hash: import("@xylabs/hex").BrandedHash;
|
|
31
|
-
_dataHash: import("@xylabs/hex").BrandedHash;
|
|
32
|
-
}, ({
|
|
29
|
+
}, {
|
|
30
|
+
[x: string]: unknown;
|
|
33
31
|
schema: import("@xyo-network/payload-model").BrandedSchema<string>;
|
|
34
|
-
} & {
|
|
35
32
|
_hash: import("@xylabs/hex").BrandedHash;
|
|
36
33
|
_dataHash: import("@xylabs/hex").BrandedHash;
|
|
37
|
-
}
|
|
34
|
+
}[]] | undefined, Error | undefined, import("@xylabs/react-promise").UsePromiseState | undefined];
|
|
38
35
|
export declare const useActiveNetworkCurrentBlockInPage: (refresh?: number) => [[{
|
|
36
|
+
$epoch: number;
|
|
37
|
+
block: import("@xyo-network/xl1-sdk").XL1BlockNumber;
|
|
38
|
+
chain: import("@xylabs/hex").BrandedHex;
|
|
39
|
+
previous: import("@xylabs/hex").BrandedHash | null;
|
|
39
40
|
schema: "network.xyo.boundwitness" & {
|
|
40
41
|
readonly __schema: true;
|
|
41
42
|
};
|
|
@@ -48,30 +49,27 @@ export declare const useActiveNetworkCurrentBlockInPage: (refresh?: number) => [
|
|
|
48
49
|
payload_schemas: import("@xyo-network/payload-model").BrandedSchema<string>[];
|
|
49
50
|
previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
|
|
50
51
|
$signatures: (import("@xylabs/hex").BrandedHex | null)[];
|
|
52
|
+
_hash: import("@xylabs/hex").BrandedHash;
|
|
53
|
+
_dataHash: import("@xylabs/hex").BrandedHash;
|
|
54
|
+
protocol?: number | undefined;
|
|
55
|
+
step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
|
|
51
56
|
$destination?: (Lowercase<string> & {
|
|
52
57
|
readonly __hex: true;
|
|
53
58
|
} & {
|
|
54
59
|
readonly __address: true;
|
|
55
60
|
}) | undefined;
|
|
56
61
|
$sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
chain: import("@xylabs/hex").BrandedHex;
|
|
60
|
-
previous: import("@xylabs/hex").BrandedHash | null;
|
|
61
|
-
protocol?: number | undefined;
|
|
62
|
-
step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
|
|
63
|
-
} & {
|
|
64
|
-
$epoch: number;
|
|
65
|
-
} & {
|
|
66
|
-
_hash: import("@xylabs/hex").BrandedHash;
|
|
67
|
-
_dataHash: import("@xylabs/hex").BrandedHash;
|
|
68
|
-
}, ({
|
|
62
|
+
}, {
|
|
63
|
+
[x: string]: unknown;
|
|
69
64
|
schema: import("@xyo-network/payload-model").BrandedSchema<string>;
|
|
70
|
-
} & {
|
|
71
65
|
_hash: import("@xylabs/hex").BrandedHash;
|
|
72
66
|
_dataHash: import("@xylabs/hex").BrandedHash;
|
|
73
|
-
}
|
|
67
|
+
}[]] | undefined, Error | undefined, import("@xylabs/react-promise").UsePromiseState | undefined];
|
|
74
68
|
export declare const useActiveNetworkCurrentBlockInWallet: (refresh?: number) => [[{
|
|
69
|
+
$epoch: number;
|
|
70
|
+
block: import("@xyo-network/xl1-sdk").XL1BlockNumber;
|
|
71
|
+
chain: import("@xylabs/hex").BrandedHex;
|
|
72
|
+
previous: import("@xylabs/hex").BrandedHash | null;
|
|
75
73
|
schema: "network.xyo.boundwitness" & {
|
|
76
74
|
readonly __schema: true;
|
|
77
75
|
};
|
|
@@ -84,27 +82,20 @@ export declare const useActiveNetworkCurrentBlockInWallet: (refresh?: number) =>
|
|
|
84
82
|
payload_schemas: import("@xyo-network/payload-model").BrandedSchema<string>[];
|
|
85
83
|
previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
|
|
86
84
|
$signatures: (import("@xylabs/hex").BrandedHex | null)[];
|
|
85
|
+
_hash: import("@xylabs/hex").BrandedHash;
|
|
86
|
+
_dataHash: import("@xylabs/hex").BrandedHash;
|
|
87
|
+
protocol?: number | undefined;
|
|
88
|
+
step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
|
|
87
89
|
$destination?: (Lowercase<string> & {
|
|
88
90
|
readonly __hex: true;
|
|
89
91
|
} & {
|
|
90
92
|
readonly __address: true;
|
|
91
93
|
}) | undefined;
|
|
92
94
|
$sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
chain: import("@xylabs/hex").BrandedHex;
|
|
96
|
-
previous: import("@xylabs/hex").BrandedHash | null;
|
|
97
|
-
protocol?: number | undefined;
|
|
98
|
-
step_hashes?: import("@xylabs/hex").BrandedHash[] | undefined;
|
|
99
|
-
} & {
|
|
100
|
-
$epoch: number;
|
|
101
|
-
} & {
|
|
102
|
-
_hash: import("@xylabs/hex").BrandedHash;
|
|
103
|
-
_dataHash: import("@xylabs/hex").BrandedHash;
|
|
104
|
-
}, ({
|
|
95
|
+
}, {
|
|
96
|
+
[x: string]: unknown;
|
|
105
97
|
schema: import("@xyo-network/payload-model").BrandedSchema<string>;
|
|
106
|
-
} & {
|
|
107
98
|
_hash: import("@xylabs/hex").BrandedHash;
|
|
108
99
|
_dataHash: import("@xylabs/hex").BrandedHash;
|
|
109
|
-
}
|
|
100
|
+
}[]] | undefined, Error | undefined, import("@xylabs/react-promise").UsePromiseState | undefined];
|
|
110
101
|
//# sourceMappingURL=useActiveNetworkCurrentBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveNetworkCurrentBlock.d.ts","sourceRoot":"","sources":["../../../../src/hooks/provider/useActiveNetworkCurrentBlock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAIrD,eAAO,MAAM,4BAA4B,GAAI,gBAAW,EAAE,SAAS,SAAS
|
|
1
|
+
{"version":3,"file":"useActiveNetworkCurrentBlock.d.ts","sourceRoot":"","sources":["../../../../src/hooks/provider/useActiveNetworkCurrentBlock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAIrD,eAAO,MAAM,4BAA4B,GAAI,gBAAW,EAAE,SAAS,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iGAI3E,CAAA;AAED,eAAO,MAAM,kCAAkC,GAAI,gBAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iGAK7D,CAAA;AAED,eAAO,MAAM,oCAAoC,GAAI,gBAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iGAK/D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/react-chain-network",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.20.0",
|
|
5
5
|
"description": "XYO Layer One React SDK",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -49,39 +49,39 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@metamask/utils": "~11.10.0",
|
|
52
|
-
"@xylabs/react-error": "~7.1.
|
|
53
|
-
"@xylabs/react-identicon": "~7.1.
|
|
54
|
-
"@xylabs/react-promise": "~7.1.
|
|
55
|
-
"@xylabs/react-shared": "~7.1.
|
|
52
|
+
"@xylabs/react-error": "~7.1.16",
|
|
53
|
+
"@xylabs/react-identicon": "~7.1.16",
|
|
54
|
+
"@xylabs/react-promise": "~7.1.16",
|
|
55
|
+
"@xylabs/react-shared": "~7.1.16",
|
|
56
56
|
"@xylabs/sdk-js": "~5.0.80",
|
|
57
|
-
"@xyo-network/hash": "~5.3.
|
|
58
|
-
"@xyo-network/react-chain-provider": "~1.
|
|
59
|
-
"@xyo-network/react-chain-shared": "~1.
|
|
57
|
+
"@xyo-network/hash": "~5.3.15",
|
|
58
|
+
"@xyo-network/react-chain-provider": "~1.20.0",
|
|
59
|
+
"@xyo-network/react-chain-shared": "~1.20.0",
|
|
60
60
|
"@xyo-network/react-payload-raw-info": "~7.5.5",
|
|
61
|
-
"@xyo-network/xl1-sdk": "~1.
|
|
61
|
+
"@xyo-network/xl1-sdk": "~1.25.14"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@emotion/react": "~11.14.0",
|
|
65
65
|
"@emotion/styled": "~11.14.1",
|
|
66
66
|
"@mui/icons-material": "~7.3.8",
|
|
67
67
|
"@mui/material": "~7.3.8",
|
|
68
|
-
"@storybook/react-vite": "~10.2.
|
|
68
|
+
"@storybook/react-vite": "~10.2.14",
|
|
69
69
|
"@textea/json-viewer": "^4.0.1",
|
|
70
70
|
"@types/react": "~19.2.14",
|
|
71
|
-
"@xylabs/react-button": "~7.1.
|
|
71
|
+
"@xylabs/react-button": "~7.1.16",
|
|
72
72
|
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
73
73
|
"@xylabs/tsconfig": "~7.3.2",
|
|
74
74
|
"@xylabs/tsconfig-dom": "~7.3.2",
|
|
75
75
|
"@xylabs/tsconfig-react": "~7.3.2",
|
|
76
|
-
"@xyo-network/react-chain-model": "~1.
|
|
77
|
-
"@xyo-network/sdk-js": "~5.3.
|
|
78
|
-
"axios": "^1.13.
|
|
76
|
+
"@xyo-network/react-chain-model": "~1.20.0",
|
|
77
|
+
"@xyo-network/sdk-js": "~5.3.15",
|
|
78
|
+
"axios": "^1.13.6",
|
|
79
79
|
"eslint": "^9.39.3",
|
|
80
80
|
"ethers": "^6.16.0",
|
|
81
81
|
"react": "~19.2.4",
|
|
82
82
|
"react-dom": "~19.2.4",
|
|
83
83
|
"react-router-dom": "^7.13.1",
|
|
84
|
-
"storybook": "^10.2.
|
|
84
|
+
"storybook": "^10.2.14",
|
|
85
85
|
"typescript": "~5.9.3",
|
|
86
86
|
"vite": "^7.3.1",
|
|
87
87
|
"zod": "^4.3.6"
|