@xyo-network/xl1-test 1.27.1 → 1.28.2
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/README.md +77 -6
- package/package.json +54 -54
package/README.md
CHANGED
|
@@ -1,24 +1,95 @@
|
|
|
1
|
+
[![logo][]][logo-link]
|
|
2
|
+
|
|
1
3
|
# @xyo-network/xl1-test
|
|
2
4
|
|
|
3
|
-
[![npm
|
|
4
|
-
[![license
|
|
5
|
+
[![npm-badge][]][npm-link]
|
|
6
|
+
[![license-badge][]][license-link]
|
|
7
|
+
|
|
8
|
+
> Test utilities for XL1 — provider context fixtures and random transaction builders.
|
|
5
9
|
|
|
6
|
-
|
|
10
|
+
## About
|
|
11
|
+
|
|
12
|
+
This package supplies the test helpers that XL1 packages and downstream applications use to spin up isolated test contexts and generate realistic protocol data. Use it as a `devDependency` when you're writing integration tests against XL1 protocol code.
|
|
7
13
|
|
|
8
14
|
## Install
|
|
9
15
|
|
|
16
|
+
Using npm:
|
|
17
|
+
|
|
10
18
|
```sh
|
|
11
|
-
|
|
19
|
+
npm i --save-dev @xyo-network/xl1-test
|
|
12
20
|
```
|
|
13
21
|
|
|
22
|
+
Using yarn:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
yarn add -D @xyo-network/xl1-test
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Using pnpm:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
pnpm add -D @xyo-network/xl1-test
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Using bun:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
bun add -d @xyo-network/xl1-test
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## What's Inside
|
|
41
|
+
|
|
42
|
+
- **`getTestProviderContext`** — creates a fully wired provider context suitable for unit/integration tests, with all the moniker registrations the XL1 protocol expects
|
|
43
|
+
- **`buildRandomTransaction`** — generates a syntactically valid XL1 transaction with random fields, useful for exercising validators and end-to-end flows
|
|
44
|
+
|
|
45
|
+
## Building Locally
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
xy build @xyo-network/xl1-test
|
|
49
|
+
xy test @xyo-network/xl1-test
|
|
50
|
+
xy lint @xyo-network/xl1-test
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Maintainers
|
|
54
|
+
|
|
55
|
+
<table>
|
|
56
|
+
<tr>
|
|
57
|
+
<td align="center" valign="top" width="120">
|
|
58
|
+
<a href="https://github.com/arietrouw">
|
|
59
|
+
<img src="https://github.com/arietrouw.png" width="80" height="80" alt="Arie Trouw" /><br />
|
|
60
|
+
<sub><b>Arie Trouw</b></sub>
|
|
61
|
+
</a>
|
|
62
|
+
<br />
|
|
63
|
+
<a href="https://arietrouw.com">arietrouw.com</a>
|
|
64
|
+
</td>
|
|
65
|
+
<td align="center" valign="top" width="120">
|
|
66
|
+
<a href="https://github.com/jonesmac">
|
|
67
|
+
<img src="https://github.com/jonesmac.png" width="80" height="80" alt="Matt Jones" /><br />
|
|
68
|
+
<sub><b>Matt Jones</b></sub>
|
|
69
|
+
</a>
|
|
70
|
+
</td>
|
|
71
|
+
<td align="center" valign="top" width="120">
|
|
72
|
+
<a href="https://github.com/JoelBCarter">
|
|
73
|
+
<img src="https://github.com/JoelBCarter.png" width="80" height="80" alt="Joel Carter" /><br />
|
|
74
|
+
<sub><b>Joel Carter</b></sub>
|
|
75
|
+
</a>
|
|
76
|
+
</td>
|
|
77
|
+
</tr>
|
|
78
|
+
</table>
|
|
14
79
|
|
|
15
80
|
## License
|
|
16
81
|
|
|
17
|
-
See the [LICENSE](LICENSE) file
|
|
82
|
+
See the [LICENSE](./LICENSE) file (LGPL-3.0-only).
|
|
83
|
+
|
|
84
|
+
## Credits
|
|
18
85
|
|
|
86
|
+
[Made with 🔥 and ❄️ by XYO](https://xyo.network)
|
|
19
87
|
|
|
88
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
89
|
+
[logo-link]: https://xyo.network
|
|
20
90
|
|
|
21
91
|
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/xl1-test.svg
|
|
22
92
|
[npm-link]: https://www.npmjs.com/package/@xyo-network/xl1-test
|
|
93
|
+
|
|
23
94
|
[license-badge]: https://img.shields.io/npm/l/@xyo-network/xl1-test.svg
|
|
24
|
-
[license-link]:
|
|
95
|
+
[license-link]: ./LICENSE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/xl1-test",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.2",
|
|
4
4
|
"description": "XYO Layer One Test Utilities",
|
|
5
5
|
"homepage": "https://xylabs.com",
|
|
6
6
|
"bugs": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@xyo-network/xl1-protocol-lib": "~1.
|
|
38
|
-
"@xyo-network/xl1-protocol-sdk": "~1.
|
|
37
|
+
"@xyo-network/xl1-protocol-lib": "~1.28.2",
|
|
38
|
+
"@xyo-network/xl1-protocol-sdk": "~1.28.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@bitauth/libauth": "~3.0.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@xylabs/geo": "^5.1.1",
|
|
49
49
|
"@xylabs/sdk-js": "^5.1.1",
|
|
50
50
|
"@xylabs/threads": "~5.1.1",
|
|
51
|
-
"@xylabs/toolchain": "~7.13.
|
|
52
|
-
"@xylabs/tsconfig": "~7.13.
|
|
51
|
+
"@xylabs/toolchain": "~7.13.13",
|
|
52
|
+
"@xylabs/tsconfig": "~7.13.13",
|
|
53
53
|
"@xyo-network/account": "~5.6.1",
|
|
54
54
|
"@xyo-network/account-model": "~5.6.2",
|
|
55
55
|
"@xyo-network/api": "~5.6.1",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@xyo-network/sdk-js": "^5.6.3",
|
|
69
69
|
"@xyo-network/sdk-protocol-js": "~5.6.2",
|
|
70
70
|
"@xyo-network/wallet": "~5.6.1",
|
|
71
|
-
"@xyo-network/wallet-model": "
|
|
71
|
+
"@xyo-network/wallet-model": "^5.6.2",
|
|
72
72
|
"ajv": "^8.20.0",
|
|
73
73
|
"async-mutex": "^0.5.0",
|
|
74
74
|
"bn.js": "^5.2.3",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"lru-cache": "^11.3.6",
|
|
84
84
|
"mapbox-gl": "^3.23.1",
|
|
85
85
|
"observable-fns": "~0.6.1",
|
|
86
|
-
"pako": "
|
|
86
|
+
"pako": "^2.1.0",
|
|
87
87
|
"store2": "~2.14.4",
|
|
88
88
|
"typescript": "~5.9.3",
|
|
89
89
|
"wasm-feature-detect": "~1.8.0",
|
|
@@ -91,53 +91,53 @@
|
|
|
91
91
|
"zod": "~4.4.3"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@bitauth/libauth": "
|
|
95
|
-
"@metamask/providers": "
|
|
96
|
-
"@opentelemetry/api": "
|
|
97
|
-
"@opentelemetry/sdk-trace-base": "
|
|
98
|
-
"@scure/base": "
|
|
99
|
-
"@scure/bip39": "
|
|
100
|
-
"@xylabs/fetch": "
|
|
101
|
-
"@xylabs/geo": "
|
|
102
|
-
"@xylabs/sdk-js": "
|
|
103
|
-
"@xylabs/threads": "
|
|
104
|
-
"@xyo-network/account": "
|
|
105
|
-
"@xyo-network/account-model": "
|
|
106
|
-
"@xyo-network/api": "
|
|
107
|
-
"@xyo-network/api-models": "
|
|
108
|
-
"@xyo-network/boundwitness-builder": "
|
|
109
|
-
"@xyo-network/boundwitness-model": "
|
|
110
|
-
"@xyo-network/boundwitness-wrapper": "
|
|
111
|
-
"@xyo-network/config-payload-plugin": "
|
|
112
|
-
"@xyo-network/huri": "
|
|
113
|
-
"@xyo-network/manifest-model": "
|
|
114
|
-
"@xyo-network/payload-builder": "
|
|
115
|
-
"@xyo-network/payload-model": "
|
|
116
|
-
"@xyo-network/payload-plugin": "
|
|
117
|
-
"@xyo-network/payload-wrapper": "
|
|
118
|
-
"@xyo-network/query-payload-plugin": "
|
|
119
|
-
"@xyo-network/sdk-js": "
|
|
120
|
-
"@xyo-network/sdk-protocol-js": "
|
|
121
|
-
"@xyo-network/wallet": "
|
|
122
|
-
"@xyo-network/wallet-model": "
|
|
123
|
-
"ajv": "
|
|
124
|
-
"async-mutex": "
|
|
125
|
-
"bn.js": "
|
|
126
|
-
"buffer": "
|
|
127
|
-
"chalk": "
|
|
128
|
-
"cosmiconfig": "
|
|
129
|
-
"debug": "
|
|
130
|
-
"ethers": "
|
|
131
|
-
"hash-wasm": "
|
|
132
|
-
"idb": "
|
|
133
|
-
"lru-cache": "
|
|
134
|
-
"mapbox-gl": "
|
|
135
|
-
"observable-fns": "
|
|
136
|
-
"pako": "
|
|
137
|
-
"store2": "
|
|
138
|
-
"wasm-feature-detect": "
|
|
139
|
-
"webextension-polyfill": "
|
|
140
|
-
"zod": "
|
|
94
|
+
"@bitauth/libauth": "~3.0",
|
|
95
|
+
"@metamask/providers": "^22.1",
|
|
96
|
+
"@opentelemetry/api": "^1.9",
|
|
97
|
+
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
98
|
+
"@scure/base": "~2.2",
|
|
99
|
+
"@scure/bip39": "~2.2",
|
|
100
|
+
"@xylabs/fetch": "^5.1",
|
|
101
|
+
"@xylabs/geo": "^5.1",
|
|
102
|
+
"@xylabs/sdk-js": "^5.1",
|
|
103
|
+
"@xylabs/threads": "~5.1",
|
|
104
|
+
"@xyo-network/account": "~5.6",
|
|
105
|
+
"@xyo-network/account-model": "~5.6",
|
|
106
|
+
"@xyo-network/api": "~5.6",
|
|
107
|
+
"@xyo-network/api-models": "~5.6",
|
|
108
|
+
"@xyo-network/boundwitness-builder": "~5.6",
|
|
109
|
+
"@xyo-network/boundwitness-model": "~5.6",
|
|
110
|
+
"@xyo-network/boundwitness-wrapper": "~5.6",
|
|
111
|
+
"@xyo-network/config-payload-plugin": "~5.6",
|
|
112
|
+
"@xyo-network/huri": "~5.6",
|
|
113
|
+
"@xyo-network/manifest-model": "~5.6",
|
|
114
|
+
"@xyo-network/payload-builder": "~5.6",
|
|
115
|
+
"@xyo-network/payload-model": "~5.6",
|
|
116
|
+
"@xyo-network/payload-plugin": "~5.6",
|
|
117
|
+
"@xyo-network/payload-wrapper": "~5.6",
|
|
118
|
+
"@xyo-network/query-payload-plugin": "~5.6",
|
|
119
|
+
"@xyo-network/sdk-js": "^5.6",
|
|
120
|
+
"@xyo-network/sdk-protocol-js": "~5.6",
|
|
121
|
+
"@xyo-network/wallet": "~5.6",
|
|
122
|
+
"@xyo-network/wallet-model": "^5.6",
|
|
123
|
+
"ajv": "^8.20",
|
|
124
|
+
"async-mutex": "^0.5",
|
|
125
|
+
"bn.js": "^5.2",
|
|
126
|
+
"buffer": "^6.0",
|
|
127
|
+
"chalk": "^5.6",
|
|
128
|
+
"cosmiconfig": "^9.0",
|
|
129
|
+
"debug": "~4.4",
|
|
130
|
+
"ethers": "^6.16",
|
|
131
|
+
"hash-wasm": "~4.12",
|
|
132
|
+
"idb": "^8.0",
|
|
133
|
+
"lru-cache": "^11.3",
|
|
134
|
+
"mapbox-gl": "^3.23",
|
|
135
|
+
"observable-fns": "~0.6",
|
|
136
|
+
"pako": "^2.1",
|
|
137
|
+
"store2": "~2.14",
|
|
138
|
+
"wasm-feature-detect": "~1.8",
|
|
139
|
+
"webextension-polyfill": "^0.12",
|
|
140
|
+
"zod": "~4.4"
|
|
141
141
|
},
|
|
142
142
|
"engines": {
|
|
143
143
|
"node": ">=22.3"
|