@cmts-dev/carmentis-sdk-core 1.2.30 → 1.2.32

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 (105) hide show
  1. package/dist/blockchain/stateChecker/StateChecker.d.ts +6 -34
  2. package/dist/blockchain/stateChecker/StateChecker.d.ts.map +1 -1
  3. package/dist/blockchain/virtualBlockchains/ApplicationLedgerVb.d.ts +4 -9
  4. package/dist/blockchain/virtualBlockchains/ApplicationLedgerVb.d.ts.map +1 -1
  5. package/dist/carmentis-sdk-core.cjs +4 -4
  6. package/dist/carmentis-sdk-core.d.ts +12 -20
  7. package/dist/carmentis-sdk-core.d.ts.map +1 -1
  8. package/dist/carmentis-sdk-core.js +3581 -4041
  9. package/dist/proofs/AccountProofWrapper.d.ts +9 -0
  10. package/dist/proofs/AccountProofWrapper.d.ts.map +1 -0
  11. package/dist/{records/ProofDocumentVB.d.ts → proofs/AppLedgerProofVB.d.ts} +4 -4
  12. package/dist/proofs/AppLedgerProofVB.d.ts.map +1 -0
  13. package/dist/proofs/AppLedgerProofWrapper.d.ts +63 -0
  14. package/dist/proofs/AppLedgerProofWrapper.d.ts.map +1 -0
  15. package/dist/proofs/MicroblockProofWrapper.d.ts +9 -0
  16. package/dist/proofs/MicroblockProofWrapper.d.ts.map +1 -0
  17. package/dist/proofs/ProofFactory.d.ts +8 -0
  18. package/dist/proofs/ProofFactory.d.ts.map +1 -0
  19. package/dist/proofs/ProofWrapper.d.ts +22 -0
  20. package/dist/proofs/ProofWrapper.d.ts.map +1 -0
  21. package/dist/providers/IExternalProvider.d.ts +1 -0
  22. package/dist/providers/IExternalProvider.d.ts.map +1 -1
  23. package/dist/providers/IInternalProvider.d.ts.map +1 -1
  24. package/dist/providers/NetworkProvider.d.ts +2 -0
  25. package/dist/providers/NetworkProvider.d.ts.map +1 -1
  26. package/dist/providers/NullNetworkProvider.d.ts +1 -0
  27. package/dist/providers/NullNetworkProvider.d.ts.map +1 -1
  28. package/dist/records/MerkleLeaf.d.ts +1 -1
  29. package/dist/records/MerkleLeaf.d.ts.map +1 -1
  30. package/dist/records/PositionedLeaf.d.ts +1 -1
  31. package/dist/records/PositionedLeaf.d.ts.map +1 -1
  32. package/dist/records/ProofRecord.d.ts +2 -1
  33. package/dist/records/ProofRecord.d.ts.map +1 -1
  34. package/dist/records/Record.d.ts +2 -1
  35. package/dist/records/Record.d.ts.map +1 -1
  36. package/dist/records/RecordByChannels.d.ts +1 -1
  37. package/dist/records/RecordByChannels.d.ts.map +1 -1
  38. package/dist/trees/radixChecker.d.ts +1 -1
  39. package/dist/trees/radixUtils.d.ts +2 -2
  40. package/dist/trees/radixUtils.d.ts.map +1 -1
  41. package/dist/type/types.d.ts +1 -1
  42. package/dist/type/types.d.ts.map +1 -1
  43. package/dist/type/valibot/blockchain/microblock/MicroblockBody.d.ts +27 -81
  44. package/dist/type/valibot/blockchain/microblock/MicroblockBody.d.ts.map +1 -1
  45. package/dist/type/valibot/blockchain/microblock/MicroblockHeader.d.ts +5 -5
  46. package/dist/type/valibot/blockchain/microblock/MicroblockStruct.d.ts +32 -86
  47. package/dist/type/valibot/blockchain/microblock/MicroblockStruct.d.ts.map +1 -1
  48. package/dist/type/valibot/blockchain/section/sections.d.ts +54 -162
  49. package/dist/type/valibot/blockchain/section/sections.d.ts.map +1 -1
  50. package/dist/type/valibot/blockchain/virtualBlockchain/internalStates.d.ts +11 -11
  51. package/dist/type/valibot/blockchain/virtualBlockchain/virtualBlockchains.d.ts +14 -14
  52. package/dist/type/valibot/json/Json.d.ts +7 -0
  53. package/dist/type/valibot/json/Json.d.ts.map +1 -0
  54. package/dist/type/valibot/primitives.d.ts +8 -1
  55. package/dist/type/valibot/primitives.d.ts.map +1 -1
  56. package/dist/type/valibot/{stateProofs → proofs}/AccountProof.d.ts +75 -43
  57. package/dist/type/valibot/proofs/AccountProof.d.ts.map +1 -0
  58. package/dist/{records/types.d.ts → type/valibot/proofs/AppLedgerProof.d.ts} +47 -78
  59. package/dist/type/valibot/proofs/AppLedgerProof.d.ts.map +1 -0
  60. package/dist/type/valibot/proofs/CarmentisProof.d.ts +543 -0
  61. package/dist/type/valibot/proofs/CarmentisProof.d.ts.map +1 -0
  62. package/dist/type/valibot/{stateProofs → proofs}/MicroblockProof.d.ts +184 -142
  63. package/dist/type/valibot/proofs/MicroblockProof.d.ts.map +1 -0
  64. package/dist/type/valibot/{stateProofs → proofs}/ProofBlock.d.ts +16 -8
  65. package/dist/type/valibot/proofs/ProofBlock.d.ts.map +1 -0
  66. package/dist/type/valibot/provider/MicroblockInformationSchema.d.ts +5 -5
  67. package/dist/type/valibot/provider/VirtualBlockchainStatus.d.ts +7 -7
  68. package/dist/type/valibot/provider/abci/AbciResponse.d.ts +143 -1423
  69. package/dist/type/valibot/provider/abci/AbciResponse.d.ts.map +1 -1
  70. package/package.json +2 -1
  71. package/dist/blockchainOld/Account.d.ts +0 -2
  72. package/dist/blockchainOld/Account.d.ts.map +0 -1
  73. package/dist/blockchainOld/Application.d.ts +0 -2
  74. package/dist/blockchainOld/Application.d.ts.map +0 -1
  75. package/dist/blockchainOld/ApplicationLedger.d.ts +0 -2
  76. package/dist/blockchainOld/ApplicationLedger.d.ts.map +0 -1
  77. package/dist/blockchainOld/Organization.d.ts +0 -2
  78. package/dist/blockchainOld/Organization.d.ts.map +0 -1
  79. package/dist/blockchainOld/Protocol.d.ts +0 -2
  80. package/dist/blockchainOld/Protocol.d.ts.map +0 -1
  81. package/dist/blockchainOld/ValidatorNode.d.ts +0 -2
  82. package/dist/blockchainOld/ValidatorNode.d.ts.map +0 -1
  83. package/dist/blockchainOld/blockchain.d.ts +0 -2
  84. package/dist/blockchainOld/blockchain.d.ts.map +0 -1
  85. package/dist/records/ProofDocument.d.ts +0 -74
  86. package/dist/records/ProofDocument.d.ts.map +0 -1
  87. package/dist/records/ProofDocumentVB.d.ts.map +0 -1
  88. package/dist/records/types.d.ts.map +0 -1
  89. package/dist/records-old/Merklizer.d.ts +0 -12
  90. package/dist/records-old/Merklizer.d.ts.map +0 -1
  91. package/dist/records-old/PepperMerklizer.d.ts +0 -20
  92. package/dist/records-old/PepperMerklizer.d.ts.map +0 -1
  93. package/dist/records-old/SaltMerklizer.d.ts +0 -15
  94. package/dist/records-old/SaltMerklizer.d.ts.map +0 -1
  95. package/dist/records-old/intermediateRepresentation.d.ts +0 -176
  96. package/dist/records-old/intermediateRepresentation.d.ts.map +0 -1
  97. package/dist/records-old/maskManager.d.ts +0 -15
  98. package/dist/records-old/maskManager.d.ts.map +0 -1
  99. package/dist/records-old/messageManager.d.ts +0 -8
  100. package/dist/records-old/messageManager.d.ts.map +0 -1
  101. package/dist/records-old/pathManager.d.ts +0 -17
  102. package/dist/records-old/pathManager.d.ts.map +0 -1
  103. package/dist/type/valibot/stateProofs/AccountProof.d.ts.map +0 -1
  104. package/dist/type/valibot/stateProofs/MicroblockProof.d.ts.map +0 -1
  105. package/dist/type/valibot/stateProofs/ProofBlock.d.ts.map +0 -1
@@ -4,11 +4,11 @@ export declare const MicroblockHeaderSchema: val.ObjectSchema<{
4
4
  /**
5
5
  * The type of the microblock.
6
6
  */
7
- readonly microblockType: val.NumberSchema<undefined>;
7
+ readonly microblockType: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
8
8
  /**
9
9
  * The height of the microblock in the virtual blockchain.
10
10
  */
11
- readonly height: val.NumberSchema<undefined>;
11
+ readonly height: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
12
12
  /**
13
13
  * Hash of the previous microblock.
14
14
  *
@@ -31,15 +31,15 @@ export declare const MicroblockHeaderSchema: val.ObjectSchema<{
31
31
  /**
32
32
  * Timestamp of the microblock.
33
33
  */
34
- readonly timestamp: val.NumberSchema<undefined>;
34
+ readonly timestamp: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
35
35
  /**
36
36
  * The computed gas for this microblock.
37
37
  */
38
- readonly gas: val.NumberSchema<undefined>;
38
+ readonly gas: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
39
39
  /**
40
40
  * The gas price is used to convert gas to fees by multiplying it with the gas.
41
41
  */
42
- readonly gasPrice: val.NumberSchema<undefined>;
42
+ readonly gasPrice: val.SchemaWithPipe<readonly [val.NumberSchema<undefined>, val.IntegerAction<number, undefined>, val.MinValueAction<number, 0, undefined>]>;
43
43
  /**
44
44
  * The body hash is the hash of the body of the microblock.
45
45
  */
@@ -2,8 +2,8 @@ import * as v from 'valibot';
2
2
  export declare const MicroblockStructSchema: v.ObjectSchema<{
3
3
  readonly header: v.ObjectSchema<{
4
4
  readonly magicString: v.LiteralSchema<"CMTS", undefined>;
5
- readonly microblockType: v.NumberSchema<undefined>;
6
- readonly height: v.NumberSchema<undefined>;
5
+ readonly microblockType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
6
+ readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7
7
  readonly previousHash: v.InstanceSchema<{
8
8
  new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
9
9
  readonly prototype: Uint8Array<ArrayBufferLike>;
@@ -14,9 +14,9 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
14
14
  from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
15
15
  from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
16
16
  }, undefined>;
17
- readonly timestamp: v.NumberSchema<undefined>;
18
- readonly gas: v.NumberSchema<undefined>;
19
- readonly gasPrice: v.NumberSchema<undefined>;
17
+ readonly timestamp: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
18
+ readonly gas: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
19
+ readonly gasPrice: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
20
20
  readonly bodyHash: v.InstanceSchema<{
21
21
  new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
22
22
  readonly prototype: Uint8Array<ArrayBufferLike>;
@@ -151,9 +151,7 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
151
151
  }>]>;
152
152
  }, undefined>, v.ObjectSchema<{
153
153
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_TOKEN_ISSUANCE, undefined>;
154
- readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
155
- readonly typeId: 3;
156
- }>]>;
154
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
157
155
  }, undefined>, v.ObjectSchema<{
158
156
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_CREATION, undefined>;
159
157
  readonly sellerAccount: v.InstanceSchema<{
@@ -166,9 +164,7 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
166
164
  from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
167
165
  from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
168
166
  }, undefined>;
169
- readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
170
- readonly typeId: 3;
171
- }>]>;
167
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
172
168
  }, undefined>, v.ObjectSchema<{
173
169
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_TRANSFER, undefined>;
174
170
  readonly account: v.InstanceSchema<{
@@ -181,9 +177,7 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
181
177
  from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
182
178
  from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
183
179
  }, undefined>;
184
- readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
185
- readonly typeId: 3;
186
- }>]>;
180
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
187
181
  readonly publicReference: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
188
182
  size: number;
189
183
  readonly typeId: 2;
@@ -204,9 +198,7 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
204
198
  from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
205
199
  from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
206
200
  }, undefined>;
207
- readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
208
- readonly typeId: 3;
209
- }>]>;
201
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
210
202
  readonly publicReference: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
211
203
  size: number;
212
204
  readonly typeId: 2;
@@ -215,12 +207,8 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
215
207
  size: number;
216
208
  readonly typeId: 2;
217
209
  }>]>;
218
- readonly cliffDurationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
219
- readonly typeId: 3;
220
- }>]>;
221
- readonly vestingDurationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
222
- readonly typeId: 3;
223
- }>]>;
210
+ readonly cliffDurationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
211
+ readonly vestingDurationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
224
212
  }, undefined>, v.ObjectSchema<{
225
213
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_ESCROW_TRANSFER, undefined>;
226
214
  readonly account: v.InstanceSchema<{
@@ -233,9 +221,7 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
233
221
  from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
234
222
  from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
235
223
  }, undefined>;
236
- readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
237
- readonly typeId: 3;
238
- }>]>;
224
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
239
225
  readonly publicReference: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
240
226
  size: number;
241
227
  readonly typeId: 2;
@@ -264,9 +250,7 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
264
250
  from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
265
251
  from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
266
252
  }, undefined>;
267
- readonly durationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
268
- readonly typeId: 3;
269
- }>]>;
253
+ readonly durationDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
270
254
  }, undefined>, v.ObjectSchema<{
271
255
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_ESCROW_SETTLEMENT, undefined>;
272
256
  readonly escrowIdentifier: v.InstanceSchema<{
@@ -284,12 +268,8 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
284
268
  }>]>;
285
269
  }, undefined>, v.ObjectSchema<{
286
270
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_STAKE, undefined>;
287
- readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
288
- readonly typeId: 3;
289
- }>]>;
290
- readonly objectType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
291
- readonly typeId: 3;
292
- }>]>;
271
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
272
+ readonly objectType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
293
273
  readonly objectIdentifier: v.InstanceSchema<{
294
274
  new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
295
275
  readonly prototype: Uint8Array<ArrayBufferLike>;
@@ -302,12 +282,8 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
302
282
  }, undefined>;
303
283
  }, undefined>, v.ObjectSchema<{
304
284
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.ACCOUNT_UNSTAKE, undefined>;
305
- readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
306
- readonly typeId: 3;
307
- }>]>;
308
- readonly objectType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
309
- readonly typeId: 3;
310
- }>]>;
285
+ readonly amount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
286
+ readonly objectType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
311
287
  readonly objectIdentifier: v.InstanceSchema<{
312
288
  new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
313
289
  readonly prototype: Uint8Array<ArrayBufferLike>;
@@ -443,39 +419,27 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
443
419
  }, undefined>;
444
420
  }, undefined>, v.ObjectSchema<{
445
421
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_ACTOR_CREATION, undefined>;
446
- readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
447
- readonly typeId: 3;
448
- }>]>;
449
- readonly actorType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
450
- readonly typeId: 3;
451
- }>]>;
422
+ readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
423
+ readonly actorType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
452
424
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
453
425
  size: number;
454
426
  readonly typeId: 2;
455
427
  }>]>;
456
428
  }, undefined>, v.ObjectSchema<{
457
429
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_CHANNEL_CREATION, undefined>;
458
- readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
459
- readonly typeId: 3;
460
- }>]>;
430
+ readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
461
431
  readonly isPrivate: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.MetadataAction<boolean, {
462
432
  readonly typeId: 4;
463
433
  }>]>;
464
- readonly creatorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
465
- readonly typeId: 3;
466
- }>]>;
434
+ readonly creatorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
467
435
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
468
436
  size: number;
469
437
  readonly typeId: 2;
470
438
  }>]>;
471
439
  }, undefined>, v.ObjectSchema<{
472
440
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_SHARED_SECRET, undefined>;
473
- readonly hostId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
474
- readonly typeId: 3;
475
- }>]>;
476
- readonly guestId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
477
- readonly typeId: 3;
478
- }>]>;
441
+ readonly hostId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
442
+ readonly guestId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
479
443
  readonly encryptedSharedKey: v.InstanceSchema<{
480
444
  new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
481
445
  readonly prototype: Uint8Array<ArrayBufferLike>;
@@ -488,15 +452,9 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
488
452
  }, undefined>;
489
453
  }, undefined>, v.ObjectSchema<{
490
454
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_CHANNEL_INVITATION, undefined>;
491
- readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
492
- readonly typeId: 3;
493
- }>]>;
494
- readonly hostId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
495
- readonly typeId: 3;
496
- }>]>;
497
- readonly guestId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
498
- readonly typeId: 3;
499
- }>]>;
455
+ readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
456
+ readonly hostId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
457
+ readonly guestId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
500
458
  readonly encryptedChannelKey: v.InstanceSchema<{
501
459
  new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
502
460
  readonly prototype: Uint8Array<ArrayBufferLike>;
@@ -509,12 +467,8 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
509
467
  }, undefined>;
510
468
  }, undefined>, v.ObjectSchema<{
511
469
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_ACTOR_SUBSCRIPTION, undefined>;
512
- readonly actorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
513
- readonly typeId: 3;
514
- }>]>;
515
- readonly actorType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
516
- readonly typeId: 3;
517
- }>]>;
470
+ readonly actorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
471
+ readonly actorType: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
518
472
  readonly organizationId: v.InstanceSchema<{
519
473
  new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
520
474
  readonly prototype: Uint8Array<ArrayBufferLike>;
@@ -553,9 +507,7 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
553
507
  }, undefined>;
554
508
  }, undefined>, v.ObjectSchema<{
555
509
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_PUBLIC_CHANNEL_DATA, undefined>;
556
- readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
557
- readonly typeId: 3;
558
- }>]>;
510
+ readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
559
511
  readonly data: v.InstanceSchema<{
560
512
  new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
561
513
  readonly prototype: Uint8Array<ArrayBufferLike>;
@@ -568,9 +520,7 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
568
520
  }, undefined>;
569
521
  }, undefined>, v.ObjectSchema<{
570
522
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_PRIVATE_CHANNEL_DATA, undefined>;
571
- readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
572
- readonly typeId: 3;
573
- }>]>;
523
+ readonly channelId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
574
524
  readonly merkleRootHash: v.InstanceSchema<{
575
525
  new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array<ArrayBufferLike>;
576
526
  readonly prototype: Uint8Array<ArrayBufferLike>;
@@ -593,14 +543,10 @@ export declare const MicroblockStructSchema: v.ObjectSchema<{
593
543
  }, undefined>;
594
544
  }, undefined>, v.ObjectSchema<{
595
545
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_AUTHOR, undefined>;
596
- readonly authorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
597
- readonly typeId: 3;
598
- }>]>;
546
+ readonly authorId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
599
547
  }, undefined>, v.ObjectSchema<{
600
548
  readonly type: v.LiteralSchema<import("../section/SectionType").SectionType.APP_LEDGER_ENDORSEMENT_REQUEST, undefined>;
601
- readonly endorserId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MetadataAction<number, {
602
- readonly typeId: 3;
603
- }>]>;
549
+ readonly endorserId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
604
550
  readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CustomSchema<string, `Expected size is ${number} bytes`>, v.MetadataAction<string, {
605
551
  size: number;
606
552
  readonly typeId: 2;
@@ -1 +1 @@
1
- {"version":3,"file":"MicroblockStruct.d.ts","sourceRoot":"","sources":["../../../../../src/type/valibot/blockchain/microblock/MicroblockStruct.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAGjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
1
+ {"version":3,"file":"MicroblockStruct.d.ts","sourceRoot":"","sources":["../../../../../src/type/valibot/blockchain/microblock/MicroblockStruct.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAGjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA"}