@xyo-network/xl1-validation 1.7.18 → 1.7.20

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/xl1-validation",
4
- "version": "1.7.18",
4
+ "version": "1.7.20",
5
5
  "description": "XYO Layer One SDK Validation",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -36,34 +36,34 @@
36
36
  "src"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/arraybuffer": "~4.13.23",
40
- "@xylabs/hex": "~4.13.23",
41
- "@xyo-network/boundwitness-builder": "~4.1.7",
42
- "@xyo-network/boundwitness-model": "~4.1.7",
43
- "@xyo-network/boundwitness-validator": "~4.1.7",
44
- "@xyo-network/payload-builder": "~4.1.7",
45
- "@xyo-network/payload-model": "~4.1.7",
46
- "@xyo-network/xl1-protocol": "~1.7.20",
47
- "@xyo-network/xl1-protocol-sdk": "~1.7.18",
48
- "@xyo-network/xl1-schema": "~1.7.18",
49
- "ajv": "~8.17.1"
39
+ "@xylabs/arraybuffer": "^4.15.0",
40
+ "@xylabs/hex": "^4.15.0",
41
+ "@xyo-network/boundwitness-builder": "^4.3.0",
42
+ "@xyo-network/boundwitness-model": "^4.3.0",
43
+ "@xyo-network/boundwitness-validator": "^4.3.0",
44
+ "@xyo-network/payload-builder": "^4.3.0",
45
+ "@xyo-network/payload-model": "^4.3.0",
46
+ "@xyo-network/xl1-protocol": "^1.7.33",
47
+ "@xyo-network/xl1-protocol-sdk": "^1.7.20",
48
+ "@xyo-network/xl1-schema": "^1.7.20",
49
+ "ajv": "^8.17.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@types/node": "~24.1.0",
53
- "@xylabs/assert": "~4.13.23",
54
- "@xylabs/promise": "~4.13.23",
55
- "@xylabs/ts-scripts-yarn3": "~7.0.1",
56
- "@xylabs/tsconfig": "~7.0.1",
57
- "@xyo-network/account": "~4.1.7",
58
- "@xyo-network/account-model": "~4.1.7",
59
- "@xyo-network/archivist-memory": "~4.1.7",
60
- "@xyo-network/archivist-model": "~4.1.7",
61
- "@xyo-network/chain-protocol": "~1.7.18",
62
- "@xyo-network/wallet": "~4.1.7",
63
- "@xyo-network/xl1-protocol-sdk": "~1.7.18",
64
- "knip": "~5.62.0",
65
- "typescript": "~5.8.3",
66
- "vitest": "~3.2.4"
52
+ "@types/node": "^24.1.0",
53
+ "@xylabs/assert": "^4.15.0",
54
+ "@xylabs/promise": "^4.15.0",
55
+ "@xylabs/ts-scripts-yarn3": "^7.0.1",
56
+ "@xylabs/tsconfig": "^7.0.1",
57
+ "@xyo-network/account": "^4.3.0",
58
+ "@xyo-network/account-model": "^4.3.0",
59
+ "@xyo-network/archivist-memory": "^4.3.0",
60
+ "@xyo-network/archivist-model": "^4.3.0",
61
+ "@xyo-network/chain-protocol": "^1.7.20",
62
+ "@xyo-network/wallet": "^4.3.0",
63
+ "@xyo-network/xl1-protocol-sdk": "^1.7.20",
64
+ "knip": "^5.62.0",
65
+ "typescript": "^5.8.3",
66
+ "vitest": "^3.2.4"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=22.3 <23"
@@ -1,3 +1,4 @@
1
+ import type { Address } from '@xylabs/hex'
1
2
  import { Account } from '@xyo-network/account'
2
3
  import type { AccountInstance } from '@xyo-network/account-model'
3
4
  import { buildTransaction } from '@xyo-network/xl1-protocol-sdk'
@@ -8,7 +9,7 @@ import {
8
9
  import { TransactionDurationValidator } from '../TransactionDurationValidator.ts'
9
10
 
10
11
  describe('TransactionDurationValidator', () => {
11
- const chain = 'a82920051db4fcbb804463440dd45e03f72442fd'
12
+ const chain = 'a82920051db4fcbb804463440dd45e03f72442fd' as Address
12
13
  let signer: AccountInstance
13
14
  beforeAll(async () => {
14
15
  signer = await Account.random()
@@ -1,3 +1,4 @@
1
+ import type { Address } from '@xylabs/hex'
1
2
  import { Account } from '@xyo-network/account'
2
3
  import type { AccountInstance } from '@xyo-network/account-model'
3
4
  import { buildRandomTransaction } from '@xyo-network/chain-protocol'
@@ -10,7 +11,7 @@ import {
10
11
  import { TransactionElevationValidator } from '../TransactionElevationValidator.ts'
11
12
 
12
13
  describe('TransactionDurationValidator', () => {
13
- const chain = 'a82920051db4fcbb804463440dd45e03f72442fd'
14
+ const chain = 'a82920051db4fcbb804463440dd45e03f72442fd' as Address
14
15
  let signer: AccountInstance
15
16
  beforeAll(async () => {
16
17
  signer = await Account.random()
@@ -1,3 +1,4 @@
1
+ import type { Address } from '@xylabs/hex'
1
2
  import { Account } from '@xyo-network/account'
2
3
  import type { AccountInstance } from '@xyo-network/account-model'
3
4
  import type { WithStorageMeta } from '@xyo-network/payload-model'
@@ -12,7 +13,7 @@ import {
12
13
  import { TransactionFromValidator } from '../TransactionFromValidator.ts'
13
14
 
14
15
  describe('TransactionFromValidator', () => {
15
- const chain = 'a82920051db4fcbb804463440dd45e03f72442fd'
16
+ const chain = 'a82920051db4fcbb804463440dd45e03f72442fd' as Address
16
17
  let signer: AccountInstance
17
18
  beforeAll(async () => {
18
19
  signer = await Account.random()
@@ -1,3 +1,4 @@
1
+ import type { Address } from '@xylabs/hex'
1
2
  import { buildRandomTransaction } from '@xyo-network/chain-protocol'
2
3
  import type { HydratedTransaction } from '@xyo-network/xl1-protocol'
3
4
  import {
@@ -7,7 +8,7 @@ import {
7
8
  import { TransactionJsonSchemaValidator } from '../TransactionJsonSchemaValidator.ts'
8
9
 
9
10
  describe('TransactionJsonSchemaValidator', () => {
10
- const chain = 'a82920051db4fcbb804463440dd45e03f72442fd'
11
+ const chain = 'a82920051db4fcbb804463440dd45e03f72442fd' as Address
11
12
 
12
13
  describe('with valid transaction', () => {
13
14
  let hydratedTransaction: HydratedTransaction
@@ -23,7 +24,7 @@ describe('TransactionJsonSchemaValidator', () => {
23
24
  let hydratedTransaction: HydratedTransaction
24
25
  beforeEach(async () => {
25
26
  hydratedTransaction = await buildRandomTransaction(chain)
26
- hydratedTransaction[0].chain = 'invalid'
27
+ hydratedTransaction[0].chain = 'invalid' as Address // intentionally invalid chain
27
28
  })
28
29
  it('should return error', async () => {
29
30
  const errors = await TransactionJsonSchemaValidator(hydratedTransaction, chain)