@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.
Files changed (2) hide show
  1. package/README.md +77 -6
  2. 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][npm-badge]][npm-link]
4
- [![license][license-badge]][license-link]
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
- > XYO Layer One Test Utilities
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
- {{pm}} add {{name}}
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 for license rights and limitations (LGPL-3.0-only).
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]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
95
+ [license-link]: ./LICENSE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/xl1-test",
3
- "version": "1.27.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.27.1",
38
- "@xyo-network/xl1-protocol-sdk": "~1.27.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.4",
52
- "@xylabs/tsconfig": "~7.13.4",
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": "~5.6.2",
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": "~2.1.0",
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": ">=3.0.0 <3.1",
95
- "@metamask/providers": ">=22.1.1 <23",
96
- "@opentelemetry/api": ">=1.9.1 <2",
97
- "@opentelemetry/sdk-trace-base": ">=2.7.1 <3",
98
- "@scure/base": ">=2.2.0 <2.3",
99
- "@scure/bip39": ">=2.2.0 <2.3",
100
- "@xylabs/fetch": ">=5.1.1 <6",
101
- "@xylabs/geo": ">=5.1.1 <6",
102
- "@xylabs/sdk-js": ">=5.1.1 <6",
103
- "@xylabs/threads": ">=5.1.1 <5.2",
104
- "@xyo-network/account": ">=5.6.1 <5.7",
105
- "@xyo-network/account-model": ">=5.6.2 <5.7",
106
- "@xyo-network/api": ">=5.6.1 <5.7",
107
- "@xyo-network/api-models": ">=5.6.2 <5.7",
108
- "@xyo-network/boundwitness-builder": ">=5.6.1 <5.7",
109
- "@xyo-network/boundwitness-model": ">=5.6.2 <5.7",
110
- "@xyo-network/boundwitness-wrapper": ">=5.6.1 <5.7",
111
- "@xyo-network/config-payload-plugin": ">=5.6.2 <5.7",
112
- "@xyo-network/huri": ">=5.6.1 <5.7",
113
- "@xyo-network/manifest-model": ">=5.6.2 <5.7",
114
- "@xyo-network/payload-builder": ">=5.6.1 <5.7",
115
- "@xyo-network/payload-model": ">=5.6.2 <5.7",
116
- "@xyo-network/payload-plugin": ">=5.6.2 <5.7",
117
- "@xyo-network/payload-wrapper": ">=5.6.1 <5.7",
118
- "@xyo-network/query-payload-plugin": ">=5.6.2 <5.7",
119
- "@xyo-network/sdk-js": ">=5.6.3 <6",
120
- "@xyo-network/sdk-protocol-js": ">=5.6.2 <5.7",
121
- "@xyo-network/wallet": ">=5.6.1 <5.7",
122
- "@xyo-network/wallet-model": ">=5.6.2 <5.7",
123
- "ajv": ">=8.20.0 <9",
124
- "async-mutex": ">=0.5.0 <1",
125
- "bn.js": ">=5.2.3 <6",
126
- "buffer": ">=6.0.3 <7",
127
- "chalk": ">=5.6.2 <6",
128
- "cosmiconfig": ">=9.0.1 <10",
129
- "debug": ">=4.4.3 <4.5",
130
- "ethers": ">=6.16.0 <7",
131
- "hash-wasm": ">=4.12.0 <4.13",
132
- "idb": ">=8.0.3 <9",
133
- "lru-cache": ">=11.3.6 <12",
134
- "mapbox-gl": ">=3.23.1 <4",
135
- "observable-fns": ">=0.6.1 <0.7",
136
- "pako": ">=2.1.0 <2.2",
137
- "store2": ">=2.14.4 <2.15",
138
- "wasm-feature-detect": ">=1.8.0 <1.9",
139
- "webextension-polyfill": ">=0.12.0 <1",
140
- "zod": ">=4.4.3 <4.5"
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"