@nockbox/iris-wasm 0.2.0-alpha.1 → 0.2.0-alpha.3

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/iris_wasm.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Verify a signature with a public key
4
+ * Hash a public key to get its digest (for use in PKH)
5
5
  */
6
- export function verifySignature(public_key_bytes: Uint8Array, signature: Signature, message: string): boolean;
6
+ export function hashPublicKey(public_key_bytes: Uint8Array): string;
7
7
  /**
8
- * Derive master key from seed bytes
8
+ * Hash a noun (jam as input)
9
9
  */
10
- export function deriveMasterKey(seed: Uint8Array): ExtendedKey;
10
+ export function hashNoun(noun: Uint8Array): string;
11
11
  /**
12
12
  * Hash a u64 value
13
13
  */
@@ -16,29 +16,441 @@ export function hashU64(value: bigint): string;
16
16
  * Derive master key from BIP39 mnemonic phrase
17
17
  */
18
18
  export function deriveMasterKeyFromMnemonic(mnemonic: string, passphrase?: string | null): ExtendedKey;
19
- /**
20
- * Hash a public key to get its digest (for use in PKH)
21
- */
22
- export function hashPublicKey(public_key_bytes: Uint8Array): string;
23
19
  /**
24
20
  * Sign a message string with a private key
25
21
  */
26
22
  export function signMessage(private_key_bytes: Uint8Array, message: string): Signature;
27
23
  /**
28
- * Hash a noun (jam as input)
24
+ * Derive master key from seed bytes
25
+ */
26
+ export function deriveMasterKey(seed: Uint8Array): ExtendedKey;
27
+ /**
28
+ * Verify a signature with a public key
29
+ */
30
+ export function verifySignature(public_key_bytes: Uint8Array, signature: Signature, message: string): boolean;
31
+ /**
32
+ * Convert a string to sequence of Belts.
33
+ *
34
+ * This is equivalent to `atom_to_belts(tas(s))`.
35
+ *
36
+ * Belts are Atoms that fit the goldilocks prime field.
37
+ *
38
+ * If a transaction contains non-based (not-fitting) atoms, it will be rejected.
39
+ */
40
+ export function tas_belts(s: string): Noun;
41
+ /**
42
+ * Convert an Atom into a string.
43
+ */
44
+ export function untas(noun: Noun): string;
45
+ /**
46
+ * Cue a jammed Uint8Array into a Noun (see `jam`).
29
47
  */
30
- export function hashNoun(noun: Uint8Array): string;
31
48
  export function cue(jam: Uint8Array): Noun;
49
+ /**
50
+ * Convert a sequence of belts back into one atom.
51
+ */
52
+ export function belts_to_atom(noun: Noun): Noun;
53
+ /**
54
+ * Encode a Noun as a Uint8Array of bytes.
55
+ */
32
56
  export function jam(noun: Noun): Uint8Array;
57
+ /**
58
+ * Convert string to an Atom.
59
+ */
60
+ export function tas(s: string): Noun;
61
+ /**
62
+ * Convert an Atom to belts.
63
+ */
64
+ export function atom_to_belts(atom: Noun): Noun;
33
65
  export function hex_to_digest(s: string): Digest;
34
- export function note_hash(note: Note): Digest;
35
- export function note_to_protobuf(note: Note): PbCom2Note;
36
- export function digest_to_hex(d: Digest): string;
37
66
  export function create_note_v0(origin_page: number, sig_m: bigint, sig_pubkeys: Uint8Array[], source_hash: Digest, is_coinbase: boolean, timelock: Timelock | null | undefined, assets: Nicks): Note;
67
+ /**
68
+ * Convert raw transaction into protobuf format.
69
+ *
70
+ * Protobuf format is the one used by the Nockchain's gRPC interface, and the initial iris
71
+ * extension format. The new iris transaction signing API moves away from this format to use
72
+ * `NockchainTx`, as it includes the necessary spend condition and note information.
73
+ */
74
+ export function rawTxToProtobuf(tx: RawTxV1): PbCom2RawTransaction;
75
+ export function create_note_v1(version: Version, origin_page: number, name: Name, note_data: NoteData, assets: Nicks): Note;
38
76
  export function digest_from_protobuf(value: PbCom1Hash): Digest;
77
+ /**
78
+ * Lossily convert raw transaction into a nockchain transaction, splitting witness away.
79
+ */
80
+ export function rawTxToNockchainTx(tx: RawTxV1): NockchainTx;
81
+ export function digest_to_hex(d: Digest): string;
82
+ export function note_to_protobuf(note: Note): PbCom2Note;
83
+ export function rawTxOutputs(tx: RawTx): Note[];
39
84
  export function digest_to_protobuf(d: Digest): PbCom1Hash;
85
+ export function note_hash(note: Note): Digest;
40
86
  export function note_from_protobuf(value: PbCom2Note): Note;
41
- export function create_note_v1(version: Version, origin_page: number, name: Name, note_data: NoteData, assets: Nicks): Note;
87
+ export function rawTxFromProtobuf(tx: PbCom2RawTransaction): RawTx;
88
+ /**
89
+ * Convert NockchainTx into RawTx by recombining witness_data with the transaction, and
90
+ * recalculating the transaction ID.
91
+ */
92
+ export function nockchainTxToRaw(tx: NockchainTx): RawTx;
93
+ /**
94
+ * r" Convert into `Noun`.
95
+ */
96
+ export function witnessDataToNoun(v: WitnessData): Noun;
97
+ /**
98
+ * r" Convert from `Noun`.
99
+ */
100
+ export function witnessDataFromNoun(noun: Noun): WitnessData;
101
+ export function lockMetadataHash(v: LockMetadata): Digest;
102
+ /**
103
+ * r" Convert into `Noun`.
104
+ */
105
+ export function lockMetadataToNoun(v: LockMetadata): Noun;
106
+ /**
107
+ * r" Convert from `Noun`.
108
+ */
109
+ export function lockMetadataFromNoun(noun: Noun): LockMetadata;
110
+ /**
111
+ * r" Convert from `Noun`.
112
+ */
113
+ export function versionFromNoun(noun: Noun): Version;
114
+ /**
115
+ * r" Convert into `Noun`.
116
+ */
117
+ export function versionToNoun(v: Version): Noun;
118
+ export function versionHash(v: Version): Digest;
119
+ /**
120
+ * r" Convert into `Noun`.
121
+ */
122
+ export function timelockIntentToNoun(v: TimelockIntent): Noun;
123
+ /**
124
+ * r" Convert from `Noun`.
125
+ */
126
+ export function timelockIntentFromNoun(noun: Noun): TimelockIntent;
127
+ export function timelockIntentHash(v: TimelockIntent): Digest;
128
+ export function legacySignatureHash(v: LegacySignature): Digest;
129
+ /**
130
+ * r" Convert into `Noun`.
131
+ */
132
+ export function legacySignatureToNoun(v: LegacySignature): Noun;
133
+ /**
134
+ * r" Convert from `Noun`.
135
+ */
136
+ export function legacySignatureFromNoun(noun: Noun): LegacySignature;
137
+ export function haxHash(v: Hax): Digest;
138
+ /**
139
+ * r" Convert into `Noun`.
140
+ */
141
+ export function haxToNoun(v: Hax): Noun;
142
+ /**
143
+ * r" Convert from `Noun`.
144
+ */
145
+ export function haxFromNoun(noun: Noun): Hax;
146
+ /**
147
+ * r" Convert into `Noun`.
148
+ */
149
+ export function pkhToNoun(v: Pkh): Noun;
150
+ /**
151
+ * r" Convert from `Noun`.
152
+ */
153
+ export function pkhFromNoun(noun: Noun): Pkh;
154
+ export function pkhHash(v: Pkh): Digest;
155
+ /**
156
+ * r" Convert from `Noun`.
157
+ */
158
+ export function noteV1FromNoun(noun: Noun): NoteV1;
159
+ /**
160
+ * r" Convert into `Noun`.
161
+ */
162
+ export function noteV1ToNoun(v: NoteV1): Noun;
163
+ export function noteV1Hash(v: NoteV1): Digest;
164
+ /**
165
+ * r" Convert from `Noun`.
166
+ */
167
+ export function seedV1FromNoun(noun: Noun): SeedV1;
168
+ export function seedV1Hash(v: SeedV1): Digest;
169
+ /**
170
+ * r" Convert into `Noun`.
171
+ */
172
+ export function seedV1ToNoun(v: SeedV1): Noun;
173
+ /**
174
+ * r" Convert from `Noun`.
175
+ */
176
+ export function seedsV1FromNoun(noun: Noun): SeedsV1;
177
+ /**
178
+ * r" Convert into `Noun`.
179
+ */
180
+ export function seedsV1ToNoun(v: SeedsV1): Noun;
181
+ export function seedsV1Hash(v: SeedsV1): Digest;
182
+ /**
183
+ * r" Convert into `Noun`.
184
+ */
185
+ export function lockRootToNoun(v: LockRoot): Noun;
186
+ export function lockRootHash(v: LockRoot): Digest;
187
+ /**
188
+ * r" Convert from `Noun`.
189
+ */
190
+ export function lockRootFromNoun(noun: Noun): LockRoot;
191
+ /**
192
+ * r" Convert from `Noun`.
193
+ */
194
+ export function lockPrimitiveFromNoun(noun: Noun): LockPrimitive;
195
+ export function lockPrimitiveHash(v: LockPrimitive): Digest;
196
+ /**
197
+ * r" Convert into `Noun`.
198
+ */
199
+ export function lockPrimitiveToNoun(v: LockPrimitive): Noun;
200
+ export function spendConditionHash(v: SpendCondition): Digest;
201
+ /**
202
+ * r" Convert from `Noun`.
203
+ */
204
+ export function spendConditionFromNoun(noun: Noun): SpendCondition;
205
+ /**
206
+ * r" Convert into `Noun`.
207
+ */
208
+ export function spendConditionToNoun(v: SpendCondition): Noun;
209
+ /**
210
+ * r" Convert into `Noun`.
211
+ */
212
+ export function lockMerkleProofToNoun(v: LockMerkleProof): Noun;
213
+ export function lockMerkleProofHash(v: LockMerkleProof): Digest;
214
+ /**
215
+ * r" Convert from `Noun`.
216
+ */
217
+ export function lockMerkleProofFromNoun(noun: Noun): LockMerkleProof;
218
+ /**
219
+ * r" Convert into `Noun`.
220
+ */
221
+ export function nameToNoun(v: Name): Noun;
222
+ export function nameHash(v: Name): Digest;
223
+ /**
224
+ * r" Convert from `Noun`.
225
+ */
226
+ export function nameFromNoun(noun: Noun): Name;
227
+ /**
228
+ * r" Convert into `Noun`.
229
+ */
230
+ export function rawTxV0ToNoun(v: RawTxV0): Noun;
231
+ /**
232
+ * r" Convert from `Noun`.
233
+ */
234
+ export function rawTxV0FromNoun(noun: Noun): RawTxV0;
235
+ /**
236
+ * r" Convert from `Noun`.
237
+ */
238
+ export function inputDisplayFromNoun(noun: Noun): InputDisplay;
239
+ /**
240
+ * r" Convert into `Noun`.
241
+ */
242
+ export function inputDisplayToNoun(v: InputDisplay): Noun;
243
+ /**
244
+ * r" Convert from `Noun`.
245
+ */
246
+ export function timelockRangeFromNoun(noun: Noun): TimelockRange;
247
+ /**
248
+ * r" Convert into `Noun`.
249
+ */
250
+ export function timelockRangeToNoun(v: TimelockRange): Noun;
251
+ export function timelockRangeHash(v: TimelockRange): Digest;
252
+ /**
253
+ * r" Convert from `Noun`.
254
+ */
255
+ export function sigFromNoun(noun: Noun): Sig;
256
+ /**
257
+ * r" Convert into `Noun`.
258
+ */
259
+ export function sigToNoun(v: Sig): Noun;
260
+ export function sigHash(v: Sig): Digest;
261
+ /**
262
+ * r" Convert from `Noun`.
263
+ */
264
+ export function inputFromNoun(noun: Noun): Input;
265
+ export function inputHash(v: Input): Digest;
266
+ /**
267
+ * r" Convert into `Noun`.
268
+ */
269
+ export function inputToNoun(v: Input): Noun;
270
+ export function inputsHash(v: Inputs): Digest;
271
+ /**
272
+ * r" Convert into `Noun`.
273
+ */
274
+ export function inputsToNoun(v: Inputs): Noun;
275
+ /**
276
+ * r" Convert from `Noun`.
277
+ */
278
+ export function inputsFromNoun(noun: Noun): Inputs;
279
+ export function noteV0Hash(v: NoteV0): Digest;
280
+ /**
281
+ * r" Convert into `Noun`.
282
+ */
283
+ export function noteV0ToNoun(v: NoteV0): Noun;
284
+ /**
285
+ * r" Convert from `Noun`.
286
+ */
287
+ export function noteV0FromNoun(noun: Noun): NoteV0;
288
+ export function seedV0Hash(v: SeedV0): Digest;
289
+ /**
290
+ * r" Convert from `Noun`.
291
+ */
292
+ export function seedV0FromNoun(noun: Noun): SeedV0;
293
+ /**
294
+ * r" Convert into `Noun`.
295
+ */
296
+ export function seedV0ToNoun(v: SeedV0): Noun;
297
+ /**
298
+ * r" Convert into `Noun`.
299
+ */
300
+ export function seedsV0ToNoun(v: SeedsV0): Noun;
301
+ /**
302
+ * r" Convert from `Noun`.
303
+ */
304
+ export function seedsV0FromNoun(noun: Noun): SeedsV0;
305
+ export function seedsV0Hash(v: SeedsV0): Digest;
306
+ export function spendV0Hash(v: SpendV0): Digest;
307
+ /**
308
+ * r" Convert from `Noun`.
309
+ */
310
+ export function spendV0FromNoun(noun: Noun): SpendV0;
311
+ /**
312
+ * r" Convert into `Noun`.
313
+ */
314
+ export function spendV0ToNoun(v: SpendV0): Noun;
315
+ /**
316
+ * r" Convert into `Noun`.
317
+ */
318
+ export function timelockToNoun(v: Timelock): Noun;
319
+ export function timelockHash(v: Timelock): Digest;
320
+ /**
321
+ * r" Convert from `Noun`.
322
+ */
323
+ export function timelockFromNoun(noun: Noun): Timelock;
324
+ export function witnessHash(v: Witness): Digest;
325
+ /**
326
+ * r" Convert from `Noun`.
327
+ */
328
+ export function witnessFromNoun(noun: Noun): Witness;
329
+ /**
330
+ * r" Convert into `Noun`.
331
+ */
332
+ export function witnessToNoun(v: Witness): Noun;
333
+ /**
334
+ * r" Convert from `Noun`.
335
+ */
336
+ export function spendV1FromNoun(noun: Noun): SpendV1;
337
+ export function spendV1Hash(v: SpendV1): Digest;
338
+ /**
339
+ * r" Convert into `Noun`.
340
+ */
341
+ export function spendV1ToNoun(v: SpendV1): Noun;
342
+ export function noteDataHash(v: NoteData): Digest;
343
+ /**
344
+ * r" Convert from `Noun`.
345
+ */
346
+ export function noteDataFromNoun(noun: Noun): NoteData;
347
+ /**
348
+ * r" Convert into `Noun`.
349
+ */
350
+ export function noteDataToNoun(v: NoteData): Noun;
351
+ /**
352
+ * r" Convert into `Noun`.
353
+ */
354
+ export function rawTxV1ToNoun(v: RawTxV1): Noun;
355
+ /**
356
+ * r" Convert from `Noun`.
357
+ */
358
+ export function rawTxV1FromNoun(noun: Noun): RawTxV1;
359
+ export function spendsV1Hash(v: SpendsV1): Digest;
360
+ /**
361
+ * r" Convert from `Noun`.
362
+ */
363
+ export function spendsV1FromNoun(noun: Noun): SpendsV1;
364
+ /**
365
+ * r" Convert into `Noun`.
366
+ */
367
+ export function spendsV1ToNoun(v: SpendsV1): Noun;
368
+ export function merkleProofHash(v: MerkleProof): Digest;
369
+ /**
370
+ * r" Convert into `Noun`.
371
+ */
372
+ export function merkleProofToNoun(v: MerkleProof): Noun;
373
+ /**
374
+ * r" Convert from `Noun`.
375
+ */
376
+ export function merkleProofFromNoun(noun: Noun): MerkleProof;
377
+ /**
378
+ * r" Convert into `Noun`.
379
+ */
380
+ export function nockchainTxToNoun(v: NockchainTx): Noun;
381
+ /**
382
+ * r" Convert from `Noun`.
383
+ */
384
+ export function nockchainTxFromNoun(noun: Noun): NockchainTx;
385
+ /**
386
+ * r" Convert into `Noun`.
387
+ */
388
+ export function pkhSignatureToNoun(v: PkhSignature): Noun;
389
+ export function pkhSignatureHash(v: PkhSignature): Digest;
390
+ /**
391
+ * r" Convert from `Noun`.
392
+ */
393
+ export function pkhSignatureFromNoun(noun: Noun): PkhSignature;
394
+ /**
395
+ * r" Convert into `Noun`.
396
+ */
397
+ export function transactionDisplayToNoun(v: TransactionDisplay): Noun;
398
+ /**
399
+ * r" Convert from `Noun`.
400
+ */
401
+ export function transactionDisplayFromNoun(noun: Noun): TransactionDisplay;
402
+ export function noteHash(v: Note): Digest;
403
+ /**
404
+ * r" Convert into `Noun`.
405
+ */
406
+ export function noteToNoun(v: Note): Noun;
407
+ /**
408
+ * r" Convert from `Noun`.
409
+ */
410
+ export function noteFromNoun(noun: Noun): Note;
411
+ /**
412
+ * r" Convert from `Noun`.
413
+ */
414
+ export function sourceFromNoun(noun: Noun): Source;
415
+ /**
416
+ * r" Convert into `Noun`.
417
+ */
418
+ export function sourceToNoun(v: Source): Noun;
419
+ export function sourceHash(v: Source): Digest;
420
+ /**
421
+ * r" Convert into `Noun`.
422
+ */
423
+ export function balanceToNoun(v: Balance): Noun;
424
+ /**
425
+ * r" Convert from `Noun`.
426
+ */
427
+ export function balanceFromNoun(noun: Noun): Balance;
428
+ /**
429
+ * r" Convert from `Noun`.
430
+ */
431
+ export function balanceUpdateFromNoun(noun: Noun): BalanceUpdate;
432
+ /**
433
+ * r" Convert into `Noun`.
434
+ */
435
+ export function balanceUpdateToNoun(v: BalanceUpdate): Noun;
436
+ /**
437
+ * r" Convert into `Noun`.
438
+ */
439
+ export function noteInnerToNoun(v: NoteInner): Noun;
440
+ /**
441
+ * r" Convert from `Noun`.
442
+ */
443
+ export function noteInnerFromNoun(noun: Noun): NoteInner;
444
+ export function noteInnerHash(v: NoteInner): Digest;
445
+ /**
446
+ * r" Convert from `Noun`.
447
+ */
448
+ export function digestFromNoun(noun: Noun): Digest;
449
+ export function digestHash(v: Digest): Digest;
450
+ /**
451
+ * r" Convert into `Noun`.
452
+ */
453
+ export function digestToNoun(v: Digest): Noun;
42
454
  /**
43
455
  * The `ReadableStreamType` enum.
44
456
  *
@@ -50,179 +462,164 @@ export interface TxNotes {
50
462
  spend_conditions: SpendCondition[];
51
463
  }
52
464
 
53
- export interface PbCom1TimeLockIntent {
54
- value: PbCom1TimeLockIntentValue | undefined;
55
- }
56
-
57
465
  export interface PbCom1Input {
58
- note: PbCom1Note | undefined;
59
- spend: PbCom1Spend | undefined;
466
+ note: PbCom1Note | null;
467
+ spend: PbCom1Spend | null;
60
468
  }
61
469
 
62
470
  export interface PbCom1BlockHeightDelta {
63
471
  value: string;
64
472
  }
65
473
 
66
- export interface PbCom1NamedInput {
67
- name: PbCom1Name | undefined;
68
- input: PbCom1Input | undefined;
474
+ export interface PbCom1OutputSource {
475
+ source: PbCom1Source | null;
476
+ }
477
+
478
+ export interface PbCom1Spend {
479
+ signature: PbCom1Signature | null;
480
+ seeds: PbCom1Seed[];
481
+ miner_fee_nicks: PbCom1Nicks | null;
69
482
  }
70
483
 
71
484
  /**
72
- * pub struct Belt(pub u64);
485
+ * pub chal: \\[Belt; 8\\],
486
+ * pub sig: \\[Belt; 8\\],
73
487
  */
74
- export interface PbCom1Belt {
75
- value: string;
488
+ export interface PbCom1EightBelt {
489
+ belt_1: PbCom1Belt | null;
490
+ belt_2: PbCom1Belt | null;
491
+ belt_3: PbCom1Belt | null;
492
+ belt_4: PbCom1Belt | null;
493
+ belt_5: PbCom1Belt | null;
494
+ belt_6: PbCom1Belt | null;
495
+ belt_7: PbCom1Belt | null;
496
+ belt_8: PbCom1Belt | null;
76
497
  }
77
498
 
78
- export interface PbCom1PageResponse {
499
+ /**
500
+ * min and max are relative to the note\'s creation page
501
+ */
502
+ export interface PbCom1TimeLockRangeRelative {
503
+ min: PbCom1BlockHeightDelta | null;
504
+ max: PbCom1BlockHeightDelta | null;
505
+ }
506
+
507
+ export interface PbCom1Lock {
79
508
  /**
80
- * Opaque cursor for fetching the next page. Empty when there are no more
81
- * results.
509
+ * threshold of keys required to spend the note
82
510
  */
83
- next_page_token: string;
511
+ keys_required: number;
512
+ /**
513
+ * DEPRECATED: repeated string schnorr_pubkeys_b58 = 2;
514
+ *
515
+ * schnorr pubkeys (curve: cheetah)
516
+ */
517
+ schnorr_pubkeys: PbCom1SchnorrPubkey[];
84
518
  }
85
519
 
86
- export interface PbCom1SignatureEntry {
520
+ export interface PbCom1WalletBalanceData {
87
521
  /**
88
- * serialized pubkey corresponding to the signer
522
+ * Page of full UTXO entries for the requested wallet. Entries are ordered
523
+ * by (Name.first, Name.last) to support consistent pagination.
524
+ *
525
+ * note name -> amount
89
526
  */
90
- schnorr_pubkey: PbCom1SchnorrPubkey | undefined;
91
- signature: PbCom1SchnorrSignature | undefined;
527
+ notes: PbCom1BalanceEntry[];
528
+ /**
529
+ * Snapshot metadata where this page was computed. Clients should include
530
+ * the returned page token to continue paging against the same snapshot.
531
+ *
532
+ * block height where balance was computed
533
+ */
534
+ height: PbCom1BlockHeight | null;
535
+ /**
536
+ * block where balance was computed
537
+ */
538
+ block_id: PbCom1Hash | null;
539
+ /**
540
+ * Pagination cursor for fetching the next page in a paginated view.
541
+ * When empty, there are no further results for this snapshot.
542
+ */
543
+ page: PbCom1PageResponse | null;
92
544
  }
93
545
 
94
546
  /**
95
- * Use this when you want to force the output to not have a timelock
547
+ * pub struct Hash(pub \\[Belt; 5\\]);
548
+ * Use fixed fields to avoid variable-length vectors.
96
549
  */
97
- export interface PbCom1TimeLockRangeNeither {}
550
+ export interface PbCom1Hash {
551
+ belt_1: PbCom1Belt | null;
552
+ belt_2: PbCom1Belt | null;
553
+ belt_3: PbCom1Belt | null;
554
+ belt_4: PbCom1Belt | null;
555
+ belt_5: PbCom1Belt | null;
556
+ }
98
557
 
99
558
  export interface PbCom1Base58Pubkey {
100
559
  key: string;
101
560
  }
102
561
 
103
562
  /**
104
- * pub chal: \\[Belt; 8\\],
105
- * pub sig: \\[Belt; 8\\],
563
+ * Note: prefer using raw numeric fields in messages
564
+ * instead of these wrappers to simplify conversions.
565
+ * These remain defined for potential future use.
106
566
  */
107
- export interface PbCom1EightBelt {
108
- belt_1: PbCom1Belt | undefined;
109
- belt_2: PbCom1Belt | undefined;
110
- belt_3: PbCom1Belt | undefined;
111
- belt_4: PbCom1Belt | undefined;
112
- belt_5: PbCom1Belt | undefined;
113
- belt_6: PbCom1Belt | undefined;
114
- belt_7: PbCom1Belt | undefined;
115
- belt_8: PbCom1Belt | undefined;
567
+ export interface PbCom1NoteVersion {
568
+ value: string;
116
569
  }
117
570
 
118
571
  export interface PbCom1BalanceEntry {
119
- name: PbCom1Name | undefined;
120
- note: PbCom1Note | undefined;
572
+ name: PbCom1Name | null;
573
+ note: PbCom1Note | null;
121
574
  }
122
575
 
123
- export interface PbCom1Source {
124
- hash: string;
125
- coinbase: boolean;
576
+ export interface PbCom1Name {
577
+ /**
578
+ * First is the hash of whether the note has a timelock and the lock
579
+ */
580
+ first: string;
581
+ /**
582
+ * Last is the hash of the actual timelock and the source
583
+ */
584
+ last: string;
126
585
  }
127
586
 
128
- export interface PbCom1Signature {
129
- entries: PbCom1SignatureEntry[];
130
- }
587
+ export type PbCom1ErrorCode = "Unspecified" | "InvalidRequest" | "PeekFailed" | "PeekReturnedNoData" | "PokeFailed" | "NackappError" | "Timeout" | "InternalError" | "NotFound" | "PermissionDenied" | "InvalidWire" | "KernelError";
131
588
 
132
589
  /**
133
- * Note: prefer using raw numeric fields in messages
134
- * instead of these wrappers to simplify conversions.
135
- * These remain defined for potential future use.
590
+ * Use this when you want to force the output to not have a timelock
136
591
  */
137
- export interface PbCom1NoteVersion {
138
- value: string;
139
- }
592
+ export interface PbCom1TimeLockRangeNeither {}
140
593
 
141
594
  export interface PbCom1Note {
142
595
  /**
143
596
  * page-number when added to balance
144
597
  */
145
- origin_page: PbCom1BlockHeight | undefined;
598
+ origin_page: PbCom1BlockHeight | null;
146
599
  /**
147
600
  * enforced timelock
148
601
  */
149
- timelock: PbCom1TimeLockIntent | undefined;
602
+ timelock: PbCom1TimeLockIntent | null;
150
603
  /**
151
604
  * nname (human/name label)
152
605
  */
153
- name: PbCom1Name | undefined;
606
+ name: PbCom1Name | null;
154
607
  /**
155
608
  * spending condition
156
609
  */
157
- lock: PbCom1Lock | undefined;
610
+ lock: PbCom1Lock | null;
158
611
  /**
159
612
  * provenance commitment
160
613
  */
161
- source: PbCom1Source | undefined;
614
+ source: PbCom1Source | null;
162
615
  /**
163
616
  * coin amount (nicks)
164
617
  */
165
- assets: PbCom1Nicks | undefined;
618
+ assets: PbCom1Nicks | null;
166
619
  /**
167
620
  * note version (currently 0)
168
621
  */
169
- version: PbCom1NoteVersion | undefined;
170
- }
171
-
172
- export interface PbCom1SchnorrSignature {
173
- chal: PbCom1EightBelt | undefined;
174
- sig: PbCom1EightBelt | undefined;
175
- }
176
-
177
- /**
178
- * min and max are relative to the note\'s creation page
179
- */
180
- export interface PbCom1TimeLockRangeRelative {
181
- min: PbCom1BlockHeightDelta | undefined;
182
- max: PbCom1BlockHeightDelta | undefined;
183
- }
184
-
185
- export interface PbCom1WireTag {
186
- value: PbCom1WireTagValue | undefined;
187
- }
188
-
189
- export interface PbCom1TimeLockRangeAbsoluteAndRelative {
190
- absolute: PbCom1TimeLockRangeAbsolute | undefined;
191
- relative: PbCom1TimeLockRangeRelative | undefined;
192
- }
193
-
194
- export interface PbCom1Lock {
195
- /**
196
- * threshold of keys required to spend the note
197
- */
198
- keys_required: number;
199
- /**
200
- * DEPRECATED: repeated string schnorr_pubkeys_b58 = 2;
201
- *
202
- * schnorr pubkeys (curve: cheetah)
203
- */
204
- schnorr_pubkeys: PbCom1SchnorrPubkey[];
205
- }
206
-
207
- export interface PbCom1BlockHeight {
208
- value: string;
209
- }
210
-
211
- export interface PbCom1ErrorStatus {
212
- code: number;
213
- message: string;
214
- /**
215
- * additional error context
216
- */
217
- details: string | undefined;
218
- }
219
-
220
- /**
221
- * min and max are absolute origin page numbers
222
- */
223
- export interface PbCom1TimeLockRangeAbsolute {
224
- min: PbCom1BlockHeight | undefined;
225
- max: PbCom1BlockHeight | undefined;
622
+ version: PbCom1NoteVersion | null;
226
623
  }
227
624
 
228
625
  /**
@@ -258,30 +655,85 @@ export interface PbCom1PageRequest {
258
655
  max_bytes: number;
259
656
  }
260
657
 
261
- export interface PbCom1WalletBalanceData {
262
- /**
263
- * Page of full UTXO entries for the requested wallet. Entries are ordered
264
- * by (Name.first, Name.last) to support consistent pagination.
265
- *
266
- * note name -> amount
267
- */
268
- notes: PbCom1BalanceEntry[];
269
- /**
270
- * Snapshot metadata where this page was computed. Clients should include
271
- * the returned page token to continue paging against the same snapshot.
272
- *
273
- * block height where balance was computed
274
- */
275
- height: PbCom1BlockHeight | undefined;
276
- /**
277
- * block where balance was computed
278
- */
279
- block_id: PbCom1Hash | undefined;
280
- /**
281
- * Pagination cursor for fetching the next page in a paginated view.
282
- * When empty, there are no further results for this snapshot.
283
- */
284
- page: PbCom1PageResponse | undefined;
658
+ /**
659
+ * pub struct CheetahPoint {
660
+ * pub x: F6lt,
661
+ * pub y: F6lt,
662
+ * pub inf: bool,
663
+ * }
664
+ */
665
+ export interface PbCom1CheetahPoint {
666
+ x: PbCom1SixBelt | null;
667
+ y: PbCom1SixBelt | null;
668
+ inf: boolean;
669
+ }
670
+
671
+ /**
672
+ * pub struct Belt(pub u64);
673
+ */
674
+ export interface PbCom1Belt {
675
+ value: string;
676
+ }
677
+
678
+ export interface PbCom1WireTag {
679
+ value: PbCom1WireTagValue | undefined;
680
+ }
681
+
682
+ export interface PbCom1Signature {
683
+ entries: PbCom1SignatureEntry[];
684
+ }
685
+
686
+ export interface PbCom1BlockHeight {
687
+ value: string;
688
+ }
689
+
690
+ export interface PbCom1NamedInput {
691
+ name: PbCom1Name | null;
692
+ input: PbCom1Input | null;
693
+ }
694
+
695
+ /**
696
+ * pub struct SchnorrPubkey(pub CheetahPoint);
697
+ */
698
+ export interface PbCom1SchnorrPubkey {
699
+ value: PbCom1CheetahPoint | null;
700
+ }
701
+
702
+ /**
703
+ * pub struct F6lt(pub \\[Belt; 6\\]);
704
+ */
705
+ export interface PbCom1SixBelt {
706
+ belt_1: PbCom1Belt | null;
707
+ belt_2: PbCom1Belt | null;
708
+ belt_3: PbCom1Belt | null;
709
+ belt_4: PbCom1Belt | null;
710
+ belt_5: PbCom1Belt | null;
711
+ belt_6: PbCom1Belt | null;
712
+ }
713
+
714
+ export interface PbCom1Acknowledged {}
715
+
716
+ export interface PbCom1Nicks {
717
+ value: string;
718
+ }
719
+
720
+ /**
721
+ * the string key is the name of the input
722
+ * message RawTransaction { map<Name, Input> inputs = 1; }
723
+ */
724
+ export interface PbCom1RawTransaction {
725
+ named_inputs: PbCom1NamedInput[];
726
+ timelock_range: PbCom1TimeLockRangeAbsolute | null;
727
+ total_fees: PbCom1Nicks | null;
728
+ id: string;
729
+ }
730
+
731
+ export interface PbCom1Seed {
732
+ output_source: PbCom1OutputSource | null;
733
+ recipient: PbCom1Lock | null;
734
+ timelock_intent: PbCom1TimeLockIntent | null;
735
+ gift: PbCom1Nicks | null;
736
+ parent_hash: string;
285
737
  }
286
738
 
287
739
  export interface PbCom1Wire {
@@ -299,120 +751,96 @@ export interface PbCom1Wire {
299
751
  tags: PbCom1WireTag[];
300
752
  }
301
753
 
302
- /**
303
- * pub struct F6lt(pub \\[Belt; 6\\]);
304
- */
305
- export interface PbCom1SixBelt {
306
- belt_1: PbCom1Belt | undefined;
307
- belt_2: PbCom1Belt | undefined;
308
- belt_3: PbCom1Belt | undefined;
309
- belt_4: PbCom1Belt | undefined;
310
- belt_5: PbCom1Belt | undefined;
311
- belt_6: PbCom1Belt | undefined;
754
+ export interface PbCom1Source {
755
+ hash: string;
756
+ coinbase: boolean;
312
757
  }
313
758
 
314
- export interface PbCom1OutputSource {
315
- source: PbCom1Source | undefined;
759
+ export interface PbCom1SignatureEntry {
760
+ /**
761
+ * serialized pubkey corresponding to the signer
762
+ */
763
+ schnorr_pubkey: PbCom1SchnorrPubkey | null;
764
+ signature: PbCom1SchnorrSignature | null;
316
765
  }
317
766
 
318
- export interface PbCom1Acknowledged {}
319
-
320
- /**
321
- * pub struct SchnorrPubkey(pub CheetahPoint);
322
- */
323
- export interface PbCom1SchnorrPubkey {
324
- value: PbCom1CheetahPoint | undefined;
767
+ export interface PbCom1ErrorStatus {
768
+ code: number;
769
+ message: string;
770
+ /**
771
+ * additional error context
772
+ */
773
+ details: string | null;
325
774
  }
326
775
 
327
776
  export interface PbCom1Base58Hash {
328
777
  hash: string;
329
778
  }
330
779
 
331
- /**
332
- * pub struct CheetahPoint {
333
- * pub x: F6lt,
334
- * pub y: F6lt,
335
- * pub inf: bool,
336
- * }
337
- */
338
- export interface PbCom1CheetahPoint {
339
- x: PbCom1SixBelt | undefined;
340
- y: PbCom1SixBelt | undefined;
341
- inf: boolean;
780
+ export interface PbCom1PageResponse {
781
+ /**
782
+ * Opaque cursor for fetching the next page. Empty when there are no more
783
+ * results.
784
+ */
785
+ next_page_token: string;
342
786
  }
343
787
 
344
- /**
345
- * pub struct Hash(pub \\[Belt; 5\\]);
346
- * Use fixed fields to avoid variable-length vectors.
347
- */
348
- export interface PbCom1Hash {
349
- belt_1: PbCom1Belt | undefined;
350
- belt_2: PbCom1Belt | undefined;
351
- belt_3: PbCom1Belt | undefined;
352
- belt_4: PbCom1Belt | undefined;
353
- belt_5: PbCom1Belt | undefined;
788
+ export interface PbCom1TimeLockIntent {
789
+ value: PbCom1TimeLockIntentValue | undefined;
354
790
  }
355
791
 
356
- export interface PbCom1Name {
357
- /**
358
- * First is the hash of whether the note has a timelock and the lock
359
- */
360
- first: string;
361
- /**
362
- * Last is the hash of the actual timelock and the source
363
- */
364
- last: string;
792
+ export interface PbCom1TimeLockRangeAbsoluteAndRelative {
793
+ absolute: PbCom1TimeLockRangeAbsolute | null;
794
+ relative: PbCom1TimeLockRangeRelative | null;
365
795
  }
366
796
 
367
- export interface PbCom1Seed {
368
- output_source: PbCom1OutputSource | undefined;
369
- recipient: PbCom1Lock | undefined;
370
- timelock_intent: PbCom1TimeLockIntent | undefined;
371
- gift: PbCom1Nicks | undefined;
372
- parent_hash: string;
797
+ export interface PbCom1SchnorrSignature {
798
+ chal: PbCom1EightBelt | null;
799
+ sig: PbCom1EightBelt | null;
373
800
  }
374
801
 
375
- export interface PbCom1Nicks {
376
- value: string;
802
+ /**
803
+ * min and max are absolute origin page numbers
804
+ */
805
+ export interface PbCom1TimeLockRangeAbsolute {
806
+ min: PbCom1BlockHeight | null;
807
+ max: PbCom1BlockHeight | null;
377
808
  }
378
809
 
379
- export interface PbCom1Spend {
380
- signature: PbCom1Signature | undefined;
381
- seeds: PbCom1Seed[];
382
- miner_fee_nicks: PbCom1Nicks | undefined;
810
+ export interface PbCom2LockMerkleProof {
811
+ spend_condition: PbCom2SpendCondition | null;
812
+ axis: number;
813
+ proof: PbCom2MerkleProof | null;
383
814
  }
384
815
 
385
- export type PbCom1ErrorCode = "Unspecified" | "InvalidRequest" | "PeekFailed" | "PeekReturnedNoData" | "PokeFailed" | "NackappError" | "Timeout" | "InternalError" | "NotFound" | "PermissionDenied" | "InvalidWire" | "KernelError";
816
+ export interface PbCom2PkhLock {
817
+ m: number;
818
+ hashes: string[];
819
+ }
386
820
 
387
- /**
388
- * the string key is the name of the input
389
- * message RawTransaction { map<Name, Input> inputs = 1; }
390
- */
391
- export interface PbCom1RawTransaction {
392
- named_inputs: PbCom1NamedInput[];
393
- timelock_range: PbCom1TimeLockRangeAbsolute | undefined;
394
- total_fees: PbCom1Nicks | undefined;
395
- id: string;
821
+ export interface PbCom2BalanceEntry {
822
+ name: PbCom1Name | undefined;
823
+ note: PbCom2Note | null;
396
824
  }
397
825
 
398
826
  export interface PbCom2SpendCondition {
399
827
  primitives: PbCom2LockPrimitive[];
400
828
  }
401
829
 
402
- export interface PbCom2Seed {
403
- /**
404
- * Absent when the seed originates from a coinbase output.
405
- */
406
- output_source: PbCom1Source | undefined;
407
- lock_root: string;
408
- note_data: PbCom2NoteData | undefined;
409
- gift: PbCom1Nicks | undefined;
410
- parent_hash: string;
830
+ export interface PbCom2WitnessSpend {
831
+ witness: PbCom2Witness | null;
832
+ seeds: PbCom2Seed[];
833
+ fee: PbCom1Nicks | undefined;
411
834
  }
412
835
 
413
- export interface PbCom2MerkleProof {
414
- root: string;
415
- path: string[];
836
+ export interface PbCom2LegacySpend {
837
+ signature: PbCom1Signature | undefined;
838
+ seeds: PbCom2Seed[];
839
+ fee: PbCom1Nicks | undefined;
840
+ }
841
+
842
+ export interface PbCom2PkhSignature {
843
+ entries: PbCom2PkhSignatureEntry[];
416
844
  }
417
845
 
418
846
  export interface PbCom2PkhSignatureEntry {
@@ -421,32 +849,30 @@ export interface PbCom2PkhSignatureEntry {
421
849
  signature: PbCom1SchnorrSignature | undefined;
422
850
  }
423
851
 
424
- export interface PbCom2SpendEntry {
425
- name: PbCom1Name | undefined;
426
- spend: PbCom2Spend | undefined;
427
- }
428
-
429
- export interface PbCom2BalanceEntry {
430
- name: PbCom1Name | undefined;
431
- note: PbCom2Note | undefined;
432
- }
433
-
434
- export interface PbCom2LockMerkleProof {
435
- spend_condition: PbCom2SpendCondition | undefined;
436
- axis: number;
437
- proof: PbCom2MerkleProof | undefined;
438
- }
439
-
440
- export interface PbCom2WitnessSpend {
441
- witness: PbCom2Witness | undefined;
442
- seeds: PbCom2Seed[];
443
- fee: PbCom1Nicks | undefined;
852
+ export interface PbCom2Witness {
853
+ lock_merkle_proof: PbCom2LockMerkleProof | null;
854
+ pkh_signature: PbCom2PkhSignature | null;
855
+ /**
856
+ * uint64 tim = 4; // reserved field, currently 0
857
+ */
858
+ hax: PbCom2HaxPreimage[];
444
859
  }
445
860
 
446
861
  export interface PbCom2Spend {
447
862
  spend_kind: PbCom2SpendSpendKind | undefined;
448
863
  }
449
864
 
865
+ export interface PbCom2Seed {
866
+ /**
867
+ * Absent when the seed originates from a coinbase output.
868
+ */
869
+ output_source: PbCom1Source | undefined;
870
+ lock_root: string;
871
+ note_data: PbCom2NoteData | null;
872
+ gift: PbCom1Nicks | undefined;
873
+ parent_hash: string;
874
+ }
875
+
450
876
  export interface PbCom2NoteDataEntry {
451
877
  key: string;
452
878
  /**
@@ -455,27 +881,45 @@ export interface PbCom2NoteDataEntry {
455
881
  blob: number[];
456
882
  }
457
883
 
884
+ export interface PbCom2HaxPreimage {
885
+ hash: PbCom1Hash | undefined;
886
+ /**
887
+ * jammed noun bytes
888
+ */
889
+ value: number[];
890
+ }
891
+
458
892
  export interface PbCom2LockTim {
459
893
  rel: PbCom1TimeLockRangeRelative | undefined;
460
894
  abs: PbCom1TimeLockRangeAbsolute | undefined;
461
895
  }
462
896
 
463
- export interface PbCom2HaxLock {
464
- hashes: PbCom1Hash[];
897
+ export interface PbCom2NoteV1 {
898
+ version: PbCom1NoteVersion | undefined;
899
+ origin_page: PbCom1BlockHeight | undefined;
900
+ name: PbCom1Name | undefined;
901
+ note_data: PbCom2NoteData | null;
902
+ assets: PbCom1Nicks | undefined;
465
903
  }
466
904
 
467
- export interface PbCom2HaxPreimage {
468
- hash: PbCom1Hash | undefined;
469
- /**
470
- * jammed noun bytes
471
- */
472
- value: number[];
905
+ export interface PbCom2Note {
906
+ note_version: PbCom2NoteNoteVersion | undefined;
907
+ }
908
+
909
+ export interface PbCom2MerkleProof {
910
+ root: string;
911
+ path: string[];
912
+ }
913
+
914
+ export interface PbCom2HaxLock {
915
+ hashes: PbCom1Hash[];
473
916
  }
474
917
 
475
918
  export interface PbCom2BurnLock {}
476
919
 
477
- export interface PbCom2PkhSignature {
478
- entries: PbCom2PkhSignatureEntry[];
920
+ export interface PbCom2SpendEntry {
921
+ name: PbCom1Name | undefined;
922
+ spend: PbCom2Spend | null;
479
923
  }
480
924
 
481
925
  export interface PbCom2RawTransaction {
@@ -484,16 +928,8 @@ export interface PbCom2RawTransaction {
484
928
  spends: PbCom2SpendEntry[];
485
929
  }
486
930
 
487
- export interface PbCom2Note {
488
- note_version: PbCom2NoteNoteVersion | undefined;
489
- }
490
-
491
- export interface PbCom2NoteV1 {
492
- version: PbCom1NoteVersion | undefined;
493
- origin_page: PbCom1BlockHeight | undefined;
494
- name: PbCom1Name | undefined;
495
- note_data: PbCom2NoteData | undefined;
496
- assets: PbCom1Nicks | undefined;
931
+ export interface PbCom2LockPrimitive {
932
+ primitive: PbCom2LockPrimitivePrimitive | undefined;
497
933
  }
498
934
 
499
935
  export interface PbCom2Balance {
@@ -507,93 +943,134 @@ export interface PbCom2NoteData {
507
943
  entries: PbCom2NoteDataEntry[];
508
944
  }
509
945
 
510
- export interface PbCom2Witness {
511
- lock_merkle_proof: PbCom2LockMerkleProof | undefined;
512
- pkh_signature: PbCom2PkhSignature | undefined;
513
- /**
514
- * uint64 tim = 4; // reserved field, currently 0
515
- */
516
- hax: PbCom2HaxPreimage[];
946
+ export interface PbPub2WalletSendTransactionResponse {
947
+ result: PbPub2WalletSendTransactionResponseResult | undefined;
517
948
  }
518
949
 
519
- export interface PbCom2PkhLock {
520
- m: number;
521
- hashes: string[];
950
+ export interface PbPub2WalletSendTransactionRequest {
951
+ tx_id: PbCom1Hash | undefined;
952
+ raw_tx: PbCom2RawTransaction | undefined;
522
953
  }
523
954
 
524
- export interface PbCom2LegacySpend {
525
- signature: PbCom1Signature | undefined;
526
- seeds: PbCom2Seed[];
527
- fee: PbCom1Nicks | undefined;
955
+ export interface PbPub2WalletGetBalanceRequest {
956
+ page: PbCom1PageRequest | undefined;
957
+ selector: PbPub2WalletGetBalanceRequestSelector | undefined;
528
958
  }
529
959
 
530
- export interface PbCom2LockPrimitive {
531
- primitive: PbCom2LockPrimitivePrimitive | undefined;
960
+ export interface PbPub2TransactionAcceptedResponse {
961
+ result: PbPub2TransactionAcceptedResponseResult | undefined;
532
962
  }
533
963
 
534
- export type PbPub2WalletGetBalanceRequestSelector = { Address: PbCom1Base58Pubkey } | { FirstName: PbCom1Base58Hash };
964
+ export interface PbPub2WalletGetBalanceResponse {
965
+ result: PbPub2WalletGetBalanceResponseResult | undefined;
966
+ }
535
967
 
536
- export type PbCom1TimeLockIntentValue = { Absolute: PbCom1TimeLockRangeAbsolute } | { Relative: PbCom1TimeLockRangeRelative } | { AbsoluteAndRelative: PbCom1TimeLockRangeAbsoluteAndRelative } | { Neither: PbCom1TimeLockRangeNeither };
968
+ export interface PbPub2TransactionAcceptedRequest {
969
+ tx_id: PbCom1Base58Hash | undefined;
970
+ }
971
+
972
+ export type PbPub2TransactionAcceptedResponseResult = { Accepted: boolean } | { Error: PbCom1ErrorStatus };
537
973
 
538
974
  export type PbCom2LockPrimitivePrimitive = { Pkh: PbCom2PkhLock } | { Tim: PbCom2LockTim } | { Hax: PbCom2HaxLock } | { Burn: PbCom2BurnLock };
539
975
 
540
- export type PbCom2SpendSpendKind = { Legacy: PbCom2LegacySpend } | { Witness: PbCom2WitnessSpend };
976
+ export type PbPub2WalletGetBalanceRequestSelector = { Address: PbCom1Base58Pubkey } | { FirstName: PbCom1Base58Hash };
541
977
 
542
978
  export type PbCom2NoteNoteVersion = { Legacy: PbCom1Note } | { V1: PbCom2NoteV1 };
543
979
 
544
- export type PbCom1WireTagValue = { Text: string } | { Number: number };
980
+ export type PbPub2WalletSendTransactionResponseResult = { Ack: PbCom1Acknowledged } | { Error: PbCom1ErrorStatus };
545
981
 
546
- export interface PbPub2WalletGetBalanceResponse {
547
- result: PbPub2WalletGetBalanceResponseResult | undefined;
982
+ export type PbPri1PeekResponseResult = { Data: number[] } | { Error: PbCom1ErrorStatus };
983
+
984
+ export type PbCom2SpendSpendKind = { Legacy: PbCom2LegacySpend } | { Witness: PbCom2WitnessSpend };
985
+
986
+ export type PbPri1PokeResponseResult = { Acknowledged: boolean } | { Error: PbCom1ErrorStatus };
987
+
988
+ export interface PbPri1PokeResponse {
989
+ result: PbPri1PokeResponseResult | undefined;
990
+ }
991
+
992
+ export interface PbPri1PeekResponse {
993
+ result: PbPri1PeekResponseResult | undefined;
994
+ }
995
+
996
+ export interface PbPri1PokeRequest {
997
+ /**
998
+ * process ID for tracking
999
+ */
1000
+ pid: number;
1001
+ /**
1002
+ * wire routing information
1003
+ */
1004
+ wire: PbCom1Wire | undefined;
1005
+ /**
1006
+ * JAM-encoded nock data
1007
+ */
1008
+ payload: number[];
548
1009
  }
549
1010
 
550
- export interface PbPub2TransactionAcceptedResponse {
551
- result: PbPub2TransactionAcceptedResponseResult | undefined;
1011
+ export interface PbPri1PeekRequest {
1012
+ /**
1013
+ * process ID for tracking
1014
+ */
1015
+ pid: number;
1016
+ /**
1017
+ * JAM-encoded nock peek path
1018
+ */
1019
+ path: number[];
552
1020
  }
553
1021
 
554
- export interface PbPub2TransactionAcceptedRequest {
555
- tx_id: PbCom1Base58Hash | undefined;
556
- }
1022
+ export type PbCom1TimeLockIntentValue = { Absolute: PbCom1TimeLockRangeAbsolute } | { Relative: PbCom1TimeLockRangeRelative } | { AbsoluteAndRelative: PbCom1TimeLockRangeAbsoluteAndRelative } | { Neither: PbCom1TimeLockRangeNeither };
557
1023
 
558
- export interface PbPub2WalletSendTransactionResponse {
559
- result: PbPub2WalletSendTransactionResponseResult | undefined;
560
- }
1024
+ export type PbCom1WireTagValue = { Text: string } | { Number: number };
561
1025
 
562
- export interface PbPub2WalletSendTransactionRequest {
563
- tx_id: PbCom1Hash | undefined;
564
- raw_tx: PbCom2RawTransaction | undefined;
1026
+ export type PbPub2WalletGetBalanceResponseResult = { Balance: PbCom2Balance } | { Error: PbCom1ErrorStatus };
1027
+
1028
+ export interface MerkleProof {
1029
+ root: Digest;
1030
+ path: Digest[];
565
1031
  }
566
1032
 
567
- export interface PbPub2WalletGetBalanceRequest {
568
- page: PbCom1PageRequest | undefined;
569
- selector: PbPub2WalletGetBalanceRequestSelector | undefined;
1033
+ export interface Witness {
1034
+ lock_merkle_proof: LockMerkleProof;
1035
+ pkh_signature: PkhSignature;
1036
+ hax_map: ZMap<Digest, Noun>;
1037
+ tim: null;
570
1038
  }
571
1039
 
572
- export type PbPub2TransactionAcceptedResponseResult = { Accepted: boolean } | { Error: PbCom1ErrorStatus };
1040
+ export type SpendsV1 = ZMap<Name, SpendV1>;
573
1041
 
574
- export type PbPub2WalletGetBalanceResponseResult = { Balance: PbCom2Balance } | { Error: PbCom1ErrorStatus };
1042
+ export type InputDisplay = { version: 0; p: ZMap<Name, Sig> } | { version: 1; p: ZMap<Name, SpendCondition> };
575
1043
 
576
- export type PbPub2WalletSendTransactionResponseResult = { Ack: PbCom1Acknowledged } | { Error: PbCom1ErrorStatus };
1044
+ export type LockPrimitive = { Pkh: Pkh } | { Tim: LockTim } | { Hax: Hax } | "Brn";
577
1045
 
578
- export type NoteData = ZMap<string, Noun>;
1046
+ export type SpendV1 = { version: 0; spend: Spend0V1 } | { version: 1; spend: Spend1V1 };
579
1047
 
580
- export type Hax = ZSet<Digest>;
1048
+ export type NoteData = ZMap<string, Noun>;
581
1049
 
582
- export type SpendsV1 = ZMap<Name, SpendV1>;
1050
+ export interface Spend1V1 {
1051
+ witness: Witness;
1052
+ seeds: SeedsV1;
1053
+ fee: Nicks;
1054
+ }
583
1055
 
584
- export type SpendCondition = LockPrimitive[];
1056
+ export interface NoteV1 {
1057
+ version: Version;
1058
+ origin_page: BlockHeight;
1059
+ name: Name;
1060
+ note_data: NoteData;
1061
+ assets: Nicks;
1062
+ }
585
1063
 
586
1064
  export interface Pkh {
587
1065
  m: number;
588
1066
  hashes: ZSet<Digest>;
589
1067
  }
590
1068
 
591
- export interface Witness {
592
- lock_merkle_proof: LockMerkleProof;
593
- pkh_signature: PkhSignature;
594
- hax_map: ZMap<Digest, Noun>;
595
- tim: undefined;
596
- }
1069
+ export type PkhSignature = ZMap<Digest, [PublicKey, Signature]>;
1070
+
1071
+ export type LockRoot = { Hash: Digest } | { Lock: SpendCondition };
1072
+
1073
+ export type SpendCondition = LockPrimitive[];
597
1074
 
598
1075
  export interface LockMetadata {
599
1076
  lock: SpendCondition;
@@ -606,22 +1083,17 @@ export interface Spend0V1 {
606
1083
  fee: Nicks;
607
1084
  }
608
1085
 
609
- export interface WitnessData {
610
- data: ZMap<Name, Witness>;
611
- }
612
-
613
- export type LockPrimitive = { Pkh: Pkh } | { Tim: LockTim } | { Hax: Hax } | "Brn";
614
-
615
1086
  export interface LockMerkleProof {
616
1087
  spend_condition: SpendCondition;
617
1088
  axis: number;
618
1089
  proof: MerkleProof;
619
1090
  }
620
1091
 
621
- export interface Spend1V1 {
622
- witness: Witness;
623
- seeds: SeedsV1;
624
- fee: Nicks;
1092
+ export type Hax = ZSet<Digest>;
1093
+
1094
+ export interface TransactionDisplay {
1095
+ inputs: InputDisplay;
1096
+ outputs: ZMap<Digest, LockMetadata>;
625
1097
  }
626
1098
 
627
1099
  export interface NockchainTx {
@@ -632,24 +1104,11 @@ export interface NockchainTx {
632
1104
  witness_data: WitnessData;
633
1105
  }
634
1106
 
635
- export type LockRoot = { Hash: Digest } | { Lock: SpendCondition };
636
-
637
- export type SeedsV1 = ZSet<SeedV1>;
638
-
639
- export interface MerkleProof {
640
- root: Digest;
641
- path: Digest[];
1107
+ export interface WitnessData {
1108
+ data: ZMap<Name, Witness>;
642
1109
  }
643
1110
 
644
- export type PkhSignature = ZMap<Digest, [PublicKey, Signature]>;
645
-
646
- export interface NoteV1 {
647
- version: Version;
648
- origin_page: BlockHeight;
649
- name: Name;
650
- note_data: NoteData;
651
- assets: Nicks;
652
- }
1111
+ export type SeedsV1 = ZSet<SeedV1>;
653
1112
 
654
1113
  export interface RawTxV1 {
655
1114
  version: 1;
@@ -657,64 +1116,54 @@ export interface RawTxV1 {
657
1116
  spends: SpendsV1;
658
1117
  }
659
1118
 
660
- export type SpendV1 = { version: 0; spend: Spend0V1 } | { version: 1; spend: Spend1V1 };
661
-
662
- export type InputDisplay = { version: 0; p: ZMap<Name, Sig> } | { version: 1; p: ZMap<Name, SpendCondition> };
663
-
664
1119
  export interface SeedV1 {
665
- output_source: Source | undefined;
1120
+ output_source: Source | null;
666
1121
  lock_root: LockRoot;
667
1122
  note_data: NoteData;
668
1123
  gift: Nicks;
669
1124
  parent_hash: Digest;
670
1125
  }
671
1126
 
672
- export interface TransactionDisplay {
673
- inputs: InputDisplay;
674
- outputs: ZMap<Digest, LockMetadata>;
1127
+ export interface TxEngineSettings {
1128
+ tx_engine_version: Version;
1129
+ tx_engine_patch: number;
1130
+ min_fee: Nicks;
1131
+ cost_per_word: Nicks;
1132
+ witness_word_div: number;
675
1133
  }
676
1134
 
677
- export type MissingUnlocks = { Pkh: { num_sigs: number; sig_of: Digest[] } } | { Hax: { preimages_for: Digest[] } } | "Brn" | { Sig: { num_sigs: number; sig_of: PublicKey[] } };
678
-
679
- export type Balance = [Name, Note][];
1135
+ export type RawTx = RawTxV0 | RawTxV1;
680
1136
 
681
- export interface BalanceUpdate {
682
- height: BlockHeight;
683
- block_id: Digest;
684
- notes: Balance;
1137
+ export interface SeedV0 {
1138
+ output_source: Source | null;
1139
+ recipient: Sig;
1140
+ timelock_intent: TimelockIntent;
1141
+ gift: Nicks;
1142
+ parent_hash: Digest;
685
1143
  }
686
1144
 
687
- export type Version = 0 | 1 | 2;
688
-
689
- /**
690
- * Timelock range (for both absolute and relative constraints)
691
- */
692
- export interface TimelockRange {
693
- min: BlockHeight | undefined;
694
- max: BlockHeight | undefined;
1145
+ export interface NoteV0 {
1146
+ inner: NoteInner;
1147
+ name: Name;
1148
+ sig: Sig;
1149
+ source: Source;
1150
+ assets: Nicks;
695
1151
  }
696
1152
 
697
- /**
698
- * 64-bit unsigned integer representing the number of assets.
699
- */
700
- export type Nicks = string;
701
-
702
- export interface Source {
703
- hash: Digest;
704
- is_coinbase: boolean;
1153
+ export interface SpendV0 {
1154
+ signature: LegacySignature | null;
1155
+ seeds: SeedsV0;
1156
+ fee: Nicks;
705
1157
  }
706
1158
 
707
- export interface Name {
708
- first: Digest;
709
- last: Digest;
710
- _sig: number;
711
- }
1159
+ export type Inputs = ZMap<Name, Input>;
712
1160
 
713
- export type Note = NoteV0 | NoteV1;
1161
+ export type SeedsV0 = ZSet<SeedV0>;
714
1162
 
715
- export interface Sig {
716
- m: number;
717
- pubkeys: ZSet<PublicKey>;
1163
+ export interface NoteInner {
1164
+ version: Version;
1165
+ origin_page: BlockHeight;
1166
+ timelock: TimelockIntent;
718
1167
  }
719
1168
 
720
1169
  export interface RawTxV0 {
@@ -724,78 +1173,104 @@ export interface RawTxV0 {
724
1173
  total_fees: Nicks;
725
1174
  }
726
1175
 
1176
+ export interface Sig {
1177
+ m: number;
1178
+ pubkeys: ZSet<PublicKey>;
1179
+ }
1180
+
1181
+ export interface Input {
1182
+ note: NoteV0;
1183
+ spend: SpendV0;
1184
+ }
1185
+
727
1186
  export interface Timelock {
728
1187
  rel: TimelockRange;
729
1188
  abs: TimelockRange;
730
1189
  }
731
1190
 
732
- export type Inputs = ZMap<Name, Input>;
733
-
734
- export type SeedsV0 = ZSet<SeedV0>;
1191
+ export type LegacySignature = ZMap<PublicKey, Signature>;
735
1192
 
736
- export interface NoteV0 {
737
- inner: NoteInner;
738
- name: Name;
739
- sig: Sig;
740
- source: Source;
741
- assets: Nicks;
1193
+ export interface TimelockIntent {
1194
+ tim: Timelock | null;
742
1195
  }
743
1196
 
744
- export interface SeedV0 {
745
- output_source: Source | undefined;
746
- recipient: Sig;
747
- timelock_intent: TimelockIntent;
748
- gift: Nicks;
749
- parent_hash: Digest;
750
- }
1197
+ export type MissingUnlocks = { Pkh: { num_sigs: number; sig_of: Digest[] } } | { Hax: { preimages_for: Digest[] } } | "Brn" | { Sig: { num_sigs: number; sig_of: PublicKey[] } };
751
1198
 
752
- export interface Input {
753
- note: NoteV0;
754
- spend: SpendV0;
1199
+ export interface BalanceUpdate {
1200
+ height: BlockHeight;
1201
+ block_id: Digest;
1202
+ notes: Balance;
755
1203
  }
756
1204
 
757
- export interface SpendV0 {
758
- signature: LegacySignature | undefined;
759
- seeds: SeedsV0;
760
- fee: Nicks;
1205
+ export type Note = NoteV0 | NoteV1;
1206
+
1207
+ export interface Source {
1208
+ hash: Digest;
1209
+ is_coinbase: boolean;
761
1210
  }
762
1211
 
763
- export interface NoteInner {
764
- version: Version;
765
- origin_page: BlockHeight;
766
- timelock: TimelockIntent;
1212
+ /**
1213
+ * Timelock range (for both absolute and relative constraints)
1214
+ */
1215
+ export interface TimelockRange {
1216
+ min: BlockHeight | null;
1217
+ max: BlockHeight | null;
767
1218
  }
768
1219
 
769
- export type LegacySignature = ZMap<PublicKey, Signature>;
1220
+ /**
1221
+ * 64-bit unsigned integer representing the number of assets.
1222
+ */
1223
+ export type Nicks = string;
770
1224
 
771
- export interface TimelockIntent {
772
- tim: Timelock | undefined;
1225
+ export type Balance = ZMap<Name, Note>;
1226
+
1227
+ export interface Name {
1228
+ first: Digest;
1229
+ last: Digest;
1230
+ _sig: number;
773
1231
  }
774
1232
 
775
- export type RawTx = RawTxV0 | RawTxV1;
1233
+ export type Version = 0 | 1 | 2;
1234
+
1235
+ export type PublicKey = CheetahPoint;
776
1236
 
777
1237
  export interface Signature {
778
- c: Uint8Array;
779
- s: Uint8Array;
1238
+ /**
1239
+ * Challenge part in little-endian hex
1240
+ */
1241
+ c: string;
1242
+ /**
1243
+ * Signature scalar in little-endian hex
1244
+ */
1245
+ s: string;
780
1246
  }
781
1247
 
782
- export type PublicKey = CheetahPoint;
783
-
1248
+ /**
1249
+ * Nock-native data structure
1250
+ *
1251
+ * A Noun is an Atom or a Cell.
1252
+ *
1253
+ * A Cell is a pair of Nouns.
1254
+ *
1255
+ * An Atom is a natural number.
1256
+ *
1257
+ * Specific to iris, serialized atoms are encoded as little-endian hex strings.
1258
+ */
784
1259
  export type Noun = string | [Noun];
785
1260
 
786
1261
  export type CheetahPoint = string;
787
1262
 
788
1263
  export type Digest = string;
789
1264
 
790
- export type ZBase<E> = E[];
1265
+ export type ZSet<T> = ZBase<ZSetEntry<T>>;
1266
+
1267
+ export type ZSetEntry<T> = T;
791
1268
 
792
1269
  export type ZMap<K, V> = ZBase<ZMapEntry<K, V>>;
793
1270
 
794
1271
  export type ZMapEntry<K, V> = [K, V];
795
1272
 
796
- export type ZSet<T> = ZBase<ZSetEntry<T>>;
797
-
798
- export type ZSetEntry<T> = T;
1273
+ export type ZBase<E> = E[];
799
1274
 
800
1275
  export class ExtendedKey {
801
1276
  private constructor();
@@ -829,6 +1304,14 @@ export class GrpcClient {
829
1304
  */
830
1305
  getBalanceByFirstName(first_name: string): Promise<PbCom2Balance>;
831
1306
  constructor(endpoint: string);
1307
+ /**
1308
+ * Peek a value from a Nock application
1309
+ */
1310
+ peek(pid: number, path: Noun): Promise<Noun>;
1311
+ /**
1312
+ * Poke a Nock application
1313
+ */
1314
+ poke(pid: number, wire: PbCom1Wire, payload: Noun): Promise<void>;
832
1315
  }
833
1316
  export class IntoUnderlyingByteSource {
834
1317
  private constructor();
@@ -883,7 +1366,7 @@ export class TxBuilder {
883
1366
  /**
884
1367
  * Create an empty transaction builder
885
1368
  */
886
- constructor(fee_per_word: Nicks);
1369
+ constructor(settings: TxEngineSettings);
887
1370
  sign(signing_key_bytes: Uint8Array): void;
888
1371
  build(): NockchainTx;
889
1372
  /**
@@ -894,7 +1377,7 @@ export class TxBuilder {
894
1377
  /**
895
1378
  * Reconstruct a builder from raw transaction and its input notes.
896
1379
  */
897
- static fromTx(tx: RawTx, notes: Note[], spend_conditions: SpendCondition[]): TxBuilder;
1380
+ static fromTx(tx: RawTx, notes: Note[], spend_conditions: SpendCondition[], settings: TxEngineSettings): TxBuilder;
898
1381
  calcFee(): Nicks;
899
1382
  validate(): void;
900
1383
  allNotes(): TxNotes;
@@ -905,25 +1388,32 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
905
1388
  export interface InitOutput {
906
1389
  readonly memory: WebAssembly.Memory;
907
1390
  readonly __wbg_extendedkey_free: (a: number, b: number) => void;
908
- readonly __wbg_grpcclient_free: (a: number, b: number) => void;
909
1391
  readonly deriveMasterKey: (a: number, b: number) => number;
910
1392
  readonly deriveMasterKeyFromMnemonic: (a: number, b: number, c: number, d: number) => [number, number, number];
911
1393
  readonly extendedkey_chainCode: (a: number) => [number, number];
912
1394
  readonly extendedkey_deriveChild: (a: number, b: number) => [number, number, number];
913
1395
  readonly extendedkey_privateKey: (a: number) => [number, number];
914
1396
  readonly extendedkey_publicKey: (a: number) => [number, number];
915
- readonly grpcclient_getBalanceByAddress: (a: number, b: number, c: number) => any;
916
- readonly grpcclient_getBalanceByFirstName: (a: number, b: number, c: number) => any;
917
- readonly grpcclient_new: (a: number, b: number) => number;
918
- readonly grpcclient_sendTransaction: (a: number, b: any) => any;
919
- readonly grpcclient_transactionAccepted: (a: number, b: number, c: number) => any;
920
1397
  readonly hashNoun: (a: number, b: number) => [number, number, number, number];
921
1398
  readonly hashPublicKey: (a: number, b: number) => [number, number, number, number];
922
1399
  readonly hashU64: (a: bigint) => [number, number];
923
1400
  readonly signMessage: (a: number, b: number, c: number, d: number) => [number, number, number];
924
1401
  readonly verifySignature: (a: number, b: number, c: any, d: number, e: number) => [number, number, number];
1402
+ readonly __wbg_grpcclient_free: (a: number, b: number) => void;
1403
+ readonly atom_to_belts: (a: any) => [number, number, number];
1404
+ readonly belts_to_atom: (a: any) => [number, number, number];
925
1405
  readonly cue: (a: number, b: number) => [number, number, number];
1406
+ readonly grpcclient_getBalanceByAddress: (a: number, b: number, c: number) => any;
1407
+ readonly grpcclient_getBalanceByFirstName: (a: number, b: number, c: number) => any;
1408
+ readonly grpcclient_new: (a: number, b: number) => number;
1409
+ readonly grpcclient_peek: (a: number, b: number, c: any) => any;
1410
+ readonly grpcclient_poke: (a: number, b: number, c: any, d: any) => any;
1411
+ readonly grpcclient_sendTransaction: (a: number, b: any) => any;
1412
+ readonly grpcclient_transactionAccepted: (a: number, b: number, c: number) => any;
926
1413
  readonly jam: (a: any) => [number, number, number, number];
1414
+ readonly tas: (a: number, b: number) => any;
1415
+ readonly tas_belts: (a: number, b: number) => any;
1416
+ readonly untas: (a: any) => [number, number, number, number];
927
1417
  readonly __wbg_spendbuilder_free: (a: number, b: number) => void;
928
1418
  readonly __wbg_txbuilder_free: (a: number, b: number) => void;
929
1419
  readonly create_note_v0: (a: number, b: bigint, c: number, d: number, e: any, f: number, g: number, h: any) => [number, number, number];
@@ -932,9 +1422,14 @@ export interface InitOutput {
932
1422
  readonly digest_to_hex: (a: any) => [number, number];
933
1423
  readonly digest_to_protobuf: (a: any) => any;
934
1424
  readonly hex_to_digest: (a: number, b: number) => [number, number, number];
1425
+ readonly nockchainTxToRaw: (a: any) => any;
935
1426
  readonly note_from_protobuf: (a: any) => [number, number, number];
936
1427
  readonly note_hash: (a: any) => any;
937
1428
  readonly note_to_protobuf: (a: any) => any;
1429
+ readonly rawTxFromProtobuf: (a: any) => [number, number, number];
1430
+ readonly rawTxOutputs: (a: any) => [number, number];
1431
+ readonly rawTxToNockchainTx: (a: any) => any;
1432
+ readonly rawTxToProtobuf: (a: any) => any;
938
1433
  readonly spendbuilder_addPreimage: (a: number, b: number, c: number) => [number, number, number];
939
1434
  readonly spendbuilder_computeRefund: (a: number, b: number) => void;
940
1435
  readonly spendbuilder_curRefund: (a: number) => any;
@@ -951,7 +1446,7 @@ export interface InitOutput {
951
1446
  readonly txbuilder_build: (a: number) => [number, number, number];
952
1447
  readonly txbuilder_calcFee: (a: number) => any;
953
1448
  readonly txbuilder_curFee: (a: number) => any;
954
- readonly txbuilder_fromTx: (a: any, b: number, c: number, d: number, e: number) => [number, number, number];
1449
+ readonly txbuilder_fromTx: (a: any, b: number, c: number, d: number, e: number, f: any) => [number, number, number];
955
1450
  readonly txbuilder_new: (a: any) => number;
956
1451
  readonly txbuilder_recalcAndSetFee: (a: number, b: number) => [number, number];
957
1452
  readonly txbuilder_setFeeAndBalanceRefund: (a: number, b: any, c: number, d: number) => [number, number];
@@ -972,6 +1467,121 @@ export interface InitOutput {
972
1467
  readonly intounderlyingsink_abort: (a: number, b: any) => any;
973
1468
  readonly intounderlyingsink_close: (a: number) => any;
974
1469
  readonly intounderlyingsink_write: (a: number, b: any) => any;
1470
+ readonly lockMetadataFromNoun: (a: any) => [number, number, number];
1471
+ readonly lockMetadataHash: (a: any) => any;
1472
+ readonly lockMetadataToNoun: (a: any) => any;
1473
+ readonly versionFromNoun: (a: any) => [number, number, number];
1474
+ readonly versionHash: (a: any) => any;
1475
+ readonly versionToNoun: (a: any) => any;
1476
+ readonly witnessDataFromNoun: (a: any) => [number, number, number];
1477
+ readonly witnessDataToNoun: (a: any) => any;
1478
+ readonly haxFromNoun: (a: any) => [number, number, number];
1479
+ readonly haxHash: (a: any) => any;
1480
+ readonly haxToNoun: (a: any) => any;
1481
+ readonly legacySignatureFromNoun: (a: any) => [number, number, number];
1482
+ readonly legacySignatureHash: (a: any) => any;
1483
+ readonly legacySignatureToNoun: (a: any) => any;
1484
+ readonly lockMerkleProofFromNoun: (a: any) => [number, number, number];
1485
+ readonly lockMerkleProofHash: (a: any) => any;
1486
+ readonly lockMerkleProofToNoun: (a: any) => any;
1487
+ readonly lockPrimitiveFromNoun: (a: any) => [number, number, number];
1488
+ readonly lockPrimitiveHash: (a: any) => any;
1489
+ readonly lockPrimitiveToNoun: (a: any) => any;
1490
+ readonly lockRootFromNoun: (a: any) => [number, number, number];
1491
+ readonly lockRootHash: (a: any) => any;
1492
+ readonly lockRootToNoun: (a: any) => any;
1493
+ readonly nameFromNoun: (a: any) => [number, number, number];
1494
+ readonly nameHash: (a: any) => any;
1495
+ readonly nameToNoun: (a: any) => any;
1496
+ readonly noteV1FromNoun: (a: any) => [number, number, number];
1497
+ readonly noteV1Hash: (a: any) => any;
1498
+ readonly noteV1ToNoun: (a: any) => any;
1499
+ readonly pkhFromNoun: (a: any) => [number, number, number];
1500
+ readonly pkhHash: (a: any) => any;
1501
+ readonly pkhToNoun: (a: any) => any;
1502
+ readonly seedV1FromNoun: (a: any) => [number, number, number];
1503
+ readonly seedV1Hash: (a: any) => any;
1504
+ readonly seedV1ToNoun: (a: any) => any;
1505
+ readonly seedsV1FromNoun: (a: any) => [number, number, number];
1506
+ readonly seedsV1Hash: (a: any) => any;
1507
+ readonly seedsV1ToNoun: (a: any) => any;
1508
+ readonly spendConditionFromNoun: (a: any) => [number, number, number];
1509
+ readonly spendConditionHash: (a: any) => any;
1510
+ readonly spendConditionToNoun: (a: any) => any;
1511
+ readonly timelockIntentFromNoun: (a: any) => [number, number, number];
1512
+ readonly timelockIntentHash: (a: any) => any;
1513
+ readonly timelockIntentToNoun: (a: any) => any;
1514
+ readonly inputDisplayFromNoun: (a: any) => [number, number, number];
1515
+ readonly inputDisplayToNoun: (a: any) => any;
1516
+ readonly rawTxV0FromNoun: (a: any) => [number, number, number];
1517
+ readonly rawTxV0ToNoun: (a: any) => any;
1518
+ readonly timelockRangeFromNoun: (a: any) => [number, number, number];
1519
+ readonly timelockRangeHash: (a: any) => any;
1520
+ readonly timelockRangeToNoun: (a: any) => any;
1521
+ readonly balanceFromNoun: (a: any) => [number, number, number];
1522
+ readonly balanceToNoun: (a: any) => any;
1523
+ readonly balanceUpdateFromNoun: (a: any) => [number, number, number];
1524
+ readonly balanceUpdateToNoun: (a: any) => any;
1525
+ readonly inputFromNoun: (a: any) => [number, number, number];
1526
+ readonly inputHash: (a: any) => any;
1527
+ readonly inputToNoun: (a: any) => any;
1528
+ readonly inputsFromNoun: (a: any) => [number, number, number];
1529
+ readonly inputsHash: (a: any) => any;
1530
+ readonly inputsToNoun: (a: any) => any;
1531
+ readonly merkleProofFromNoun: (a: any) => [number, number, number];
1532
+ readonly merkleProofHash: (a: any) => any;
1533
+ readonly merkleProofToNoun: (a: any) => any;
1534
+ readonly nockchainTxFromNoun: (a: any) => [number, number, number];
1535
+ readonly nockchainTxToNoun: (a: any) => any;
1536
+ readonly noteDataFromNoun: (a: any) => [number, number, number];
1537
+ readonly noteDataHash: (a: any) => any;
1538
+ readonly noteDataToNoun: (a: any) => any;
1539
+ readonly noteFromNoun: (a: any) => [number, number, number];
1540
+ readonly noteHash: (a: any) => any;
1541
+ readonly noteToNoun: (a: any) => any;
1542
+ readonly noteV0FromNoun: (a: any) => [number, number, number];
1543
+ readonly noteV0Hash: (a: any) => any;
1544
+ readonly noteV0ToNoun: (a: any) => any;
1545
+ readonly pkhSignatureFromNoun: (a: any) => [number, number, number];
1546
+ readonly pkhSignatureHash: (a: any) => any;
1547
+ readonly pkhSignatureToNoun: (a: any) => any;
1548
+ readonly rawTxV1FromNoun: (a: any) => [number, number, number];
1549
+ readonly rawTxV1ToNoun: (a: any) => any;
1550
+ readonly seedV0FromNoun: (a: any) => [number, number, number];
1551
+ readonly seedV0Hash: (a: any) => any;
1552
+ readonly seedV0ToNoun: (a: any) => any;
1553
+ readonly seedsV0FromNoun: (a: any) => [number, number, number];
1554
+ readonly seedsV0Hash: (a: any) => any;
1555
+ readonly seedsV0ToNoun: (a: any) => any;
1556
+ readonly sigFromNoun: (a: any) => [number, number, number];
1557
+ readonly sigHash: (a: any) => any;
1558
+ readonly sigToNoun: (a: any) => any;
1559
+ readonly sourceFromNoun: (a: any) => [number, number, number];
1560
+ readonly sourceHash: (a: any) => any;
1561
+ readonly sourceToNoun: (a: any) => any;
1562
+ readonly spendV0FromNoun: (a: any) => [number, number, number];
1563
+ readonly spendV0Hash: (a: any) => any;
1564
+ readonly spendV0ToNoun: (a: any) => any;
1565
+ readonly spendV1FromNoun: (a: any) => [number, number, number];
1566
+ readonly spendV1Hash: (a: any) => any;
1567
+ readonly spendV1ToNoun: (a: any) => any;
1568
+ readonly spendsV1FromNoun: (a: any) => [number, number, number];
1569
+ readonly spendsV1Hash: (a: any) => any;
1570
+ readonly spendsV1ToNoun: (a: any) => any;
1571
+ readonly timelockFromNoun: (a: any) => [number, number, number];
1572
+ readonly timelockHash: (a: any) => any;
1573
+ readonly timelockToNoun: (a: any) => any;
1574
+ readonly transactionDisplayFromNoun: (a: any) => [number, number, number];
1575
+ readonly transactionDisplayToNoun: (a: any) => any;
1576
+ readonly witnessFromNoun: (a: any) => [number, number, number];
1577
+ readonly witnessHash: (a: any) => any;
1578
+ readonly witnessToNoun: (a: any) => any;
1579
+ readonly noteInnerFromNoun: (a: any) => [number, number, number];
1580
+ readonly noteInnerHash: (a: any) => any;
1581
+ readonly noteInnerToNoun: (a: any) => any;
1582
+ readonly digestFromNoun: (a: any) => [number, number, number];
1583
+ readonly digestHash: (a: any) => any;
1584
+ readonly digestToNoun: (a: any) => any;
975
1585
  readonly wasm_bindgen__convert__closures_____invoke__hbf186e27576c509b: (a: number, b: number, c: any) => void;
976
1586
  readonly wasm_bindgen__closure__destroy__h20e54f17b0de8c43: (a: number, b: number) => void;
977
1587
  readonly wasm_bindgen__convert__closures_____invoke__h2bc9de53710866b6: (a: number, b: number, c: any, d: any) => void;