@automerge/subduction 0.10.1 → 0.11.0
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/dist/cjs/wasm-base64.cjs +1 -1
- package/dist/cjs/web-bindings.cjs +328 -132
- package/dist/cjs/web.cjs +329 -133
- package/dist/esm/wasm-base64.js +1 -1
- package/dist/iife/index.js +328 -133
- package/dist/index.d.ts +114 -40
- package/dist/subduction.wasm +0 -0
- package/dist/wasm_bindgen/bundler/subduction_wasm.d.ts +114 -40
- package/dist/wasm_bindgen/bundler/subduction_wasm.js +1 -1
- package/dist/wasm_bindgen/bundler/subduction_wasm_bg.js +332 -129
- package/dist/wasm_bindgen/bundler/subduction_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/bundler/subduction_wasm_bg.wasm.d.ts +29 -19
- package/dist/wasm_bindgen/nodejs/subduction_wasm.cjs +337 -133
- package/dist/wasm_bindgen/nodejs/subduction_wasm.d.ts +114 -40
- package/dist/wasm_bindgen/nodejs/subduction_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/nodejs/subduction_wasm_bg.wasm.d.ts +29 -19
- package/dist/wasm_bindgen/web/subduction_wasm.d.ts +143 -59
- package/dist/wasm_bindgen/web/subduction_wasm.js +336 -133
- package/dist/wasm_bindgen/web/subduction_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/web/subduction_wasm_bg.wasm.d.ts +29 -19
- package/package.json +1 -1
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-8e1863d4f7634be2}/inline0.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-8e1863d4f7634be2}/inline1.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-8e1863d4f7634be2}/inline2.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{subduction_wasm-ec51bcf335db35bd → subduction_wasm-98b1f8c21c19bd5c}/inline0.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{subduction_wasm-ec51bcf335db35bd → subduction_wasm-98b1f8c21c19bd5c}/inline1.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-8e1863d4f7634be2}/inline0.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-8e1863d4f7634be2}/inline1.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-8e1863d4f7634be2}/inline2.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{subduction_wasm-ec51bcf335db35bd → subduction_wasm-98b1f8c21c19bd5c}/inline0.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{subduction_wasm-ec51bcf335db35bd → subduction_wasm-98b1f8c21c19bd5c}/inline1.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-8e1863d4f7634be2}/inline0.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-8e1863d4f7634be2}/inline1.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-8e1863d4f7634be2}/inline2.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{subduction_wasm-ec51bcf335db35bd → subduction_wasm-98b1f8c21c19bd5c}/inline0.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{subduction_wasm-ec51bcf335db35bd → subduction_wasm-98b1f8c21c19bd5c}/inline1.js +0 -0
|
@@ -36,23 +36,23 @@ export interface SedimentreeStorage {
|
|
|
36
36
|
loadAllSedimentreeIds(): Promise<SedimentreeId[]>;
|
|
37
37
|
|
|
38
38
|
// Compound storage for commits (signed data + blob stored together)
|
|
39
|
-
saveCommit(sedimentreeId: SedimentreeId,
|
|
40
|
-
loadCommit(sedimentreeId: SedimentreeId,
|
|
41
|
-
|
|
39
|
+
saveCommit(sedimentreeId: SedimentreeId, commitId: CommitId, signedCommit: SignedLooseCommit, blob: Uint8Array): Promise<void>;
|
|
40
|
+
loadCommit(sedimentreeId: SedimentreeId, commitId: CommitId): Promise<CommitWithBlob | null>;
|
|
41
|
+
listCommitIds(sedimentreeId: SedimentreeId): Promise<CommitId[]>;
|
|
42
42
|
loadAllCommits(sedimentreeId: SedimentreeId): Promise<CommitWithBlob[]>;
|
|
43
|
-
deleteCommit(sedimentreeId: SedimentreeId,
|
|
43
|
+
deleteCommit(sedimentreeId: SedimentreeId, commitId: CommitId): Promise<void>;
|
|
44
44
|
deleteAllCommits(sedimentreeId: SedimentreeId): Promise<void>;
|
|
45
45
|
|
|
46
46
|
// Compound storage for fragments (signed data + blob stored together)
|
|
47
|
-
saveFragment(sedimentreeId: SedimentreeId,
|
|
48
|
-
loadFragment(sedimentreeId: SedimentreeId,
|
|
49
|
-
|
|
47
|
+
saveFragment(sedimentreeId: SedimentreeId, fragmentHead: CommitId, signedFragment: SignedFragment, blob: Uint8Array): Promise<void>;
|
|
48
|
+
loadFragment(sedimentreeId: SedimentreeId, fragmentHead: CommitId): Promise<FragmentWithBlob | null>;
|
|
49
|
+
listFragmentIds(sedimentreeId: SedimentreeId): Promise<CommitId[]>;
|
|
50
50
|
loadAllFragments(sedimentreeId: SedimentreeId): Promise<FragmentWithBlob[]>;
|
|
51
|
-
deleteFragment(sedimentreeId: SedimentreeId,
|
|
51
|
+
deleteFragment(sedimentreeId: SedimentreeId, fragmentHead: CommitId): Promise<void>;
|
|
52
52
|
deleteAllFragments(sedimentreeId: SedimentreeId): Promise<void>;
|
|
53
53
|
|
|
54
54
|
// Batch save: write all commits + fragments in a single storage transaction.
|
|
55
|
-
saveBatchAll(sedimentreeId: SedimentreeId, commits: Array<{
|
|
55
|
+
saveBatchAll(sedimentreeId: SedimentreeId, commits: Array<{commitId: CommitId, signedCommit: SignedLooseCommit, blob: Uint8Array}>, fragments: Array<{fragmentHead: CommitId, signedFragment: SignedFragment, blob: Uint8Array}>): Promise<number>;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
|
|
@@ -298,6 +298,63 @@ export class CallError {
|
|
|
298
298
|
[Symbol.dispose](): void;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
+
/**
|
|
302
|
+
* A user-supplied opaque identifier for a loose commit.
|
|
303
|
+
*
|
|
304
|
+
* Unlike [`Digest`](crate::digest::WasmDigest), which is a content hash
|
|
305
|
+
* computed by the system, `CommitId` is provided by the caller at construction
|
|
306
|
+
* time. This is the identity used for DAG traversal, fragment boundaries,
|
|
307
|
+
* and sync.
|
|
308
|
+
*/
|
|
309
|
+
export class CommitId {
|
|
310
|
+
free(): void;
|
|
311
|
+
[Symbol.dispose](): void;
|
|
312
|
+
/**
|
|
313
|
+
* Upcasts; to the JS-import type for [`WasmCommitId`].
|
|
314
|
+
*/
|
|
315
|
+
__wasm_refgen_toWasmCommitId(): CommitId;
|
|
316
|
+
/**
|
|
317
|
+
* Creates a new commit identifier from its Base58 string representation.
|
|
318
|
+
*
|
|
319
|
+
* # Errors
|
|
320
|
+
*
|
|
321
|
+
* Returns an error if the string cannot be decoded or is not 32 bytes.
|
|
322
|
+
*/
|
|
323
|
+
static fromBase58(s: string): CommitId;
|
|
324
|
+
/**
|
|
325
|
+
* Creates a new commit identifier from its byte representation.
|
|
326
|
+
*
|
|
327
|
+
* # Errors
|
|
328
|
+
*
|
|
329
|
+
* Returns an error if the byte slice is not exactly 32 bytes.
|
|
330
|
+
*/
|
|
331
|
+
static fromBytes(bytes: Uint8Array): CommitId;
|
|
332
|
+
/**
|
|
333
|
+
* Creates a new commit identifier from its hexadecimal string representation.
|
|
334
|
+
*
|
|
335
|
+
* # Errors
|
|
336
|
+
*
|
|
337
|
+
* Returns an error if the string is not valid hex or not 32 bytes.
|
|
338
|
+
*/
|
|
339
|
+
static fromHexString(s: string): CommitId;
|
|
340
|
+
/**
|
|
341
|
+
* Creates a new commit identifier from its byte representation.
|
|
342
|
+
*
|
|
343
|
+
* # Errors
|
|
344
|
+
*
|
|
345
|
+
* Returns an error if the byte slice is not exactly 32 bytes.
|
|
346
|
+
*/
|
|
347
|
+
constructor(bytes: Uint8Array);
|
|
348
|
+
/**
|
|
349
|
+
* Returns the byte representation of the commit identifier.
|
|
350
|
+
*/
|
|
351
|
+
toBytes(): Uint8Array;
|
|
352
|
+
/**
|
|
353
|
+
* Returns the hexadecimal string representation.
|
|
354
|
+
*/
|
|
355
|
+
toHexString(): string;
|
|
356
|
+
}
|
|
357
|
+
|
|
301
358
|
/**
|
|
302
359
|
* A commit stored with its associated blob.
|
|
303
360
|
*/
|
|
@@ -418,19 +475,19 @@ export class Fragment {
|
|
|
418
475
|
/**
|
|
419
476
|
* Create a new fragment from the given sedimentree ID, head, boundary, checkpoints, and blob metadata.
|
|
420
477
|
*/
|
|
421
|
-
constructor(sedimentree_id: SedimentreeId, head:
|
|
478
|
+
constructor(sedimentree_id: SedimentreeId, head: CommitId, boundary: CommitId[], checkpoints: CommitId[], blob_meta: BlobMeta);
|
|
422
479
|
/**
|
|
423
480
|
* Get the blob metadata of the fragment.
|
|
424
481
|
*/
|
|
425
482
|
readonly blobMeta: BlobMeta;
|
|
426
483
|
/**
|
|
427
|
-
* Get the boundary
|
|
484
|
+
* Get the boundary commit identifiers of the fragment.
|
|
428
485
|
*/
|
|
429
|
-
readonly boundary:
|
|
486
|
+
readonly boundary: CommitId[];
|
|
430
487
|
/**
|
|
431
|
-
* Get the head
|
|
488
|
+
* Get the head commit identifier of the fragment.
|
|
432
489
|
*/
|
|
433
|
-
readonly head:
|
|
490
|
+
readonly head: CommitId;
|
|
434
491
|
}
|
|
435
492
|
|
|
436
493
|
/**
|
|
@@ -440,17 +497,17 @@ export class FragmentRequested {
|
|
|
440
497
|
free(): void;
|
|
441
498
|
[Symbol.dispose](): void;
|
|
442
499
|
/**
|
|
443
|
-
* Create a new fragment request from the given
|
|
500
|
+
* Create a new fragment request from the given commit ID.
|
|
444
501
|
*/
|
|
445
|
-
constructor(
|
|
502
|
+
constructor(commit_id: CommitId, depth: Depth);
|
|
446
503
|
/**
|
|
447
504
|
* Get the depth of the requested fragment.
|
|
448
505
|
*/
|
|
449
506
|
readonly depth: Depth;
|
|
450
507
|
/**
|
|
451
|
-
* Get the
|
|
508
|
+
* Get the head commit identifier of the requested fragment.
|
|
452
509
|
*/
|
|
453
|
-
readonly head:
|
|
510
|
+
readonly head: CommitId;
|
|
454
511
|
}
|
|
455
512
|
|
|
456
513
|
/**
|
|
@@ -512,21 +569,25 @@ export class LooseCommit {
|
|
|
512
569
|
*/
|
|
513
570
|
__wasm_refgen_toWasmLooseCommit(): LooseCommit;
|
|
514
571
|
/**
|
|
515
|
-
* Create a new `LooseCommit` from the given sedimentree ID, parents, and blob metadata.
|
|
572
|
+
* Create a new `LooseCommit` from the given sedimentree ID, head, parents, and blob metadata.
|
|
516
573
|
*/
|
|
517
|
-
constructor(sedimentree_id: SedimentreeId, parents:
|
|
574
|
+
constructor(sedimentree_id: SedimentreeId, head: CommitId, parents: CommitId[], blob_meta: BlobMeta);
|
|
518
575
|
/**
|
|
519
576
|
* Get the blob metadata of the commit.
|
|
520
577
|
*/
|
|
521
578
|
readonly blobMeta: BlobMeta;
|
|
522
579
|
/**
|
|
523
|
-
* Get the
|
|
580
|
+
* Get the commit's head identifier.
|
|
581
|
+
*/
|
|
582
|
+
readonly commitId: CommitId;
|
|
583
|
+
/**
|
|
584
|
+
* Get the digest of the commit (content hash).
|
|
524
585
|
*/
|
|
525
586
|
readonly digest: Digest;
|
|
526
587
|
/**
|
|
527
|
-
* Get the parent
|
|
588
|
+
* Get the parent commit identifiers.
|
|
528
589
|
*/
|
|
529
|
-
readonly parents:
|
|
590
|
+
readonly parents: CommitId[];
|
|
530
591
|
}
|
|
531
592
|
|
|
532
593
|
/**
|
|
@@ -610,25 +671,25 @@ export class MemoryStorage {
|
|
|
610
671
|
*/
|
|
611
672
|
deleteAllFragments(sedimentree_id: SedimentreeId): Promise<any>;
|
|
612
673
|
/**
|
|
613
|
-
* Delete a commit by
|
|
674
|
+
* Delete a single commit by its ID.
|
|
614
675
|
*/
|
|
615
|
-
deleteCommit(sedimentree_id: SedimentreeId,
|
|
676
|
+
deleteCommit(sedimentree_id: SedimentreeId, commit_id: CommitId): Promise<any>;
|
|
616
677
|
/**
|
|
617
|
-
* Delete a fragment by
|
|
678
|
+
* Delete a fragment by its identifier.
|
|
618
679
|
*/
|
|
619
|
-
deleteFragment(sedimentree_id: SedimentreeId,
|
|
680
|
+
deleteFragment(sedimentree_id: SedimentreeId, fragment_head: CommitId): Promise<any>;
|
|
620
681
|
/**
|
|
621
682
|
* Delete a sedimentree ID.
|
|
622
683
|
*/
|
|
623
684
|
deleteSedimentreeId(sedimentree_id: SedimentreeId): Promise<any>;
|
|
624
685
|
/**
|
|
625
|
-
* List all commit
|
|
686
|
+
* List all commit IDs for a sedimentree.
|
|
626
687
|
*/
|
|
627
|
-
|
|
688
|
+
listCommitIds(sedimentree_id: SedimentreeId): Promise<any>;
|
|
628
689
|
/**
|
|
629
|
-
* List all fragment
|
|
690
|
+
* List all fragment IDs for a sedimentree.
|
|
630
691
|
*/
|
|
631
|
-
|
|
692
|
+
listFragmentIds(sedimentree_id: SedimentreeId): Promise<any>;
|
|
632
693
|
/**
|
|
633
694
|
* Load all commits for a sedimentree, returning `CommitWithBlob[]`.
|
|
634
695
|
*/
|
|
@@ -642,25 +703,38 @@ export class MemoryStorage {
|
|
|
642
703
|
*/
|
|
643
704
|
loadAllSedimentreeIds(): Promise<any>;
|
|
644
705
|
/**
|
|
645
|
-
* Load a commit by
|
|
706
|
+
* Load a single commit by its ID, returning `CommitWithBlob` or null.
|
|
646
707
|
*/
|
|
647
|
-
loadCommit(sedimentree_id: SedimentreeId,
|
|
708
|
+
loadCommit(sedimentree_id: SedimentreeId, commit_id: CommitId): Promise<any>;
|
|
648
709
|
/**
|
|
649
|
-
* Load a fragment by
|
|
710
|
+
* Load a fragment by its identifier, returning `FragmentWithBlob` or null.
|
|
650
711
|
*/
|
|
651
|
-
loadFragment(sedimentree_id: SedimentreeId,
|
|
712
|
+
loadFragment(sedimentree_id: SedimentreeId, fragment_head: CommitId): Promise<any>;
|
|
652
713
|
/**
|
|
653
714
|
* Create a new in-memory storage instance.
|
|
654
715
|
*/
|
|
655
716
|
constructor();
|
|
717
|
+
/**
|
|
718
|
+
* Save commits and fragments in a single batch.
|
|
719
|
+
*/
|
|
720
|
+
saveBatchAll(sedimentree_id: SedimentreeId, commits: Array<any>, fragments: Array<any>): Promise<any>;
|
|
656
721
|
/**
|
|
657
722
|
* Save a commit with its blob.
|
|
723
|
+
*
|
|
724
|
+
* The `commit_id` parameter must match the `head()` embedded in
|
|
725
|
+
* the signed commit payload. Returns an error if they differ.
|
|
726
|
+
*
|
|
727
|
+
* # Errors
|
|
728
|
+
*
|
|
729
|
+
* Returns a JS error if:
|
|
730
|
+
* - The signed payload cannot be decoded
|
|
731
|
+
* - The `commit_id` does not match the embedded `head()`
|
|
658
732
|
*/
|
|
659
|
-
saveCommit(sedimentree_id: SedimentreeId,
|
|
733
|
+
saveCommit(sedimentree_id: SedimentreeId, commit_id: CommitId, signed_commit: SignedLooseCommit, blob: Uint8Array): Promise<any>;
|
|
660
734
|
/**
|
|
661
735
|
* Save a fragment with its blob.
|
|
662
736
|
*/
|
|
663
|
-
saveFragment(sedimentree_id: SedimentreeId,
|
|
737
|
+
saveFragment(sedimentree_id: SedimentreeId, _fragment_head: CommitId, signed_fragment: SignedFragment, blob: Uint8Array): Promise<any>;
|
|
664
738
|
/**
|
|
665
739
|
* Save a sedimentree ID.
|
|
666
740
|
*/
|
|
@@ -970,7 +1044,7 @@ export class Subduction {
|
|
|
970
1044
|
*
|
|
971
1045
|
* Returns a [`WasmWriteError`] if storage, networking, or policy fail.
|
|
972
1046
|
*/
|
|
973
|
-
addCommit(id: SedimentreeId, parents:
|
|
1047
|
+
addCommit(id: SedimentreeId, head: CommitId, parents: CommitId[], blob: Uint8Array): Promise<FragmentRequested | undefined>;
|
|
974
1048
|
/**
|
|
975
1049
|
* Onboard an authenticated transport: add it and sync all sedimentrees.
|
|
976
1050
|
*
|
|
@@ -1002,7 +1076,7 @@ export class Subduction {
|
|
|
1002
1076
|
*
|
|
1003
1077
|
* Returns a [`WasmWriteError`] if storage, networking, or policy fail.
|
|
1004
1078
|
*/
|
|
1005
|
-
addFragment(id: SedimentreeId, head:
|
|
1079
|
+
addFragment(id: SedimentreeId, head: CommitId, boundary: CommitId[], checkpoints: CommitId[], blob: Uint8Array): Promise<void>;
|
|
1006
1080
|
/**
|
|
1007
1081
|
* Add a Sedimentree.
|
|
1008
1082
|
*
|
|
@@ -1598,7 +1672,7 @@ export class SyncStats {
|
|
|
1598
1672
|
/**
|
|
1599
1673
|
* The remote peer's heads for this sedimentree.
|
|
1600
1674
|
*/
|
|
1601
|
-
readonly remoteHeads:
|
|
1675
|
+
readonly remoteHeads: CommitId[];
|
|
1602
1676
|
/**
|
|
1603
1677
|
* Total items received (commits + fragments).
|
|
1604
1678
|
*/
|
|
@@ -1746,7 +1820,7 @@ export interface InitOutput {
|
|
|
1746
1820
|
readonly subduction_getBlob: (a: number, b: number, c: number) => any;
|
|
1747
1821
|
readonly subduction_getBlobs: (a: number, b: number) => any;
|
|
1748
1822
|
readonly subduction_fetchBlobs: (a: number, b: number, c: number, d: bigint) => any;
|
|
1749
|
-
readonly subduction_addCommit: (a: number, b: number, c: number, d: number, e: any) => any;
|
|
1823
|
+
readonly subduction_addCommit: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
1750
1824
|
readonly subduction_addFragment: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any) => any;
|
|
1751
1825
|
readonly subduction_requestBlobs: (a: number, b: number, c: number, d: number) => any;
|
|
1752
1826
|
readonly subduction_syncWithPeer: (a: number, b: number, c: number, d: number, e: number, f: bigint) => any;
|
|
@@ -1855,18 +1929,22 @@ export interface InitOutput {
|
|
|
1855
1929
|
readonly __wbg_topic_free: (a: number, b: number) => void;
|
|
1856
1930
|
readonly __wbg_webcryptosigner_free: (a: number, b: number) => void;
|
|
1857
1931
|
readonly topic_toBytes: (a: number) => [number, number];
|
|
1932
|
+
readonly __wbg_commitid_free: (a: number, b: number) => void;
|
|
1933
|
+
readonly commitid_fromBytes: (a: number, b: number) => [number, number, number];
|
|
1934
|
+
readonly commitid_fromBase58: (a: number, b: number) => [number, number, number];
|
|
1935
|
+
readonly commitid_fromHexString: (a: number, b: number) => [number, number, number];
|
|
1936
|
+
readonly commitid_toBytes: (a: number) => [number, number];
|
|
1937
|
+
readonly commitid_toHexString: (a: number) => [number, number];
|
|
1938
|
+
readonly commitid___wasm_refgen_toWasmCommitId: (a: number) => number;
|
|
1858
1939
|
readonly __wbg_depth_free: (a: number, b: number) => void;
|
|
1859
1940
|
readonly depth_new: (a: any) => [number, number, number];
|
|
1860
1941
|
readonly depth_value: (a: number) => number;
|
|
1861
1942
|
readonly depth___subduction_castToDepth: (a: number) => number;
|
|
1862
|
-
readonly __wbg_digest_free: (a: number, b: number) => void;
|
|
1863
1943
|
readonly digest_new: (a: number, b: number) => [number, number, number];
|
|
1864
1944
|
readonly digest_fromBytes: (a: number, b: number) => [number, number, number];
|
|
1865
1945
|
readonly digest_fromBase58: (a: number, b: number) => [number, number, number];
|
|
1866
|
-
readonly digest_toBytes: (a: number) => [number, number];
|
|
1867
1946
|
readonly digest_fromHexString: (a: number, b: number) => [number, number, number];
|
|
1868
1947
|
readonly digest_toHexString: (a: number) => [number, number];
|
|
1869
|
-
readonly digest___wasm_refgen_toWasmDigest: (a: number) => number;
|
|
1870
1948
|
readonly __wbg_fragment_free: (a: number, b: number) => void;
|
|
1871
1949
|
readonly fragment_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
1872
1950
|
readonly fragment_head: (a: number) => number;
|
|
@@ -1878,7 +1956,8 @@ export interface InitOutput {
|
|
|
1878
1956
|
readonly fragmentwithblob_signed: (a: number) => number;
|
|
1879
1957
|
readonly fragmentwithblob___wasm_refgen_toWasmFragmentWithBlob: (a: number) => number;
|
|
1880
1958
|
readonly __wbg_loosecommit_free: (a: number, b: number) => void;
|
|
1881
|
-
readonly loosecommit_new: (a: number, b: number, c: number, d: number) => number;
|
|
1959
|
+
readonly loosecommit_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1960
|
+
readonly loosecommit_commitId: (a: number) => number;
|
|
1882
1961
|
readonly loosecommit_digest: (a: number) => number;
|
|
1883
1962
|
readonly loosecommit_parents: (a: number) => [number, number];
|
|
1884
1963
|
readonly loosecommit_blobMeta: (a: number) => number;
|
|
@@ -1916,33 +1995,38 @@ export interface InitOutput {
|
|
|
1916
1995
|
readonly memorystorage_loadAllSedimentreeIds: (a: number) => any;
|
|
1917
1996
|
readonly memorystorage_saveCommit: (a: number, b: number, c: number, d: number, e: any) => any;
|
|
1918
1997
|
readonly memorystorage_loadCommit: (a: number, b: number, c: number) => any;
|
|
1919
|
-
readonly memorystorage_listCommitDigests: (a: number, b: number) => any;
|
|
1920
|
-
readonly memorystorage_loadAllCommits: (a: number, b: number) => any;
|
|
1921
1998
|
readonly memorystorage_deleteCommit: (a: number, b: number, c: number) => any;
|
|
1999
|
+
readonly memorystorage_listCommitIds: (a: number, b: number) => any;
|
|
2000
|
+
readonly memorystorage_loadAllCommits: (a: number, b: number) => any;
|
|
1922
2001
|
readonly memorystorage_deleteAllCommits: (a: number, b: number) => any;
|
|
1923
2002
|
readonly memorystorage_saveFragment: (a: number, b: number, c: number, d: number, e: any) => any;
|
|
1924
2003
|
readonly memorystorage_loadFragment: (a: number, b: number, c: number) => any;
|
|
1925
|
-
readonly
|
|
2004
|
+
readonly memorystorage_listFragmentIds: (a: number, b: number) => any;
|
|
1926
2005
|
readonly memorystorage_loadAllFragments: (a: number, b: number) => any;
|
|
1927
2006
|
readonly memorystorage_deleteFragment: (a: number, b: number, c: number) => any;
|
|
1928
2007
|
readonly memorystorage_deleteAllFragments: (a: number, b: number) => any;
|
|
2008
|
+
readonly memorystorage_saveBatchAll: (a: number, b: number, c: any, d: any) => any;
|
|
2009
|
+
readonly commitid_new: (a: number, b: number) => [number, number, number];
|
|
1929
2010
|
readonly depth___wasm_refgen_toWasmDepth: (a: number) => number;
|
|
1930
|
-
readonly fragmentwithblob_new: (a: number, b: any) => number;
|
|
1931
2011
|
readonly __wbg_sedimentreeid_free: (a: number, b: number) => void;
|
|
1932
|
-
readonly
|
|
2012
|
+
readonly fragmentwithblob_new: (a: number, b: any) => number;
|
|
2013
|
+
readonly __wbg_digest_free: (a: number, b: number) => void;
|
|
1933
2014
|
readonly __wbg_fragmentwithblob_free: (a: number, b: number) => void;
|
|
2015
|
+
readonly __wbg_signedloosecommit_free: (a: number, b: number) => void;
|
|
1934
2016
|
readonly sedimentreeid_toBytes: (a: number) => [number, number];
|
|
1935
2017
|
readonly sedimentreeid___wasm_refgen_toWasmSedimentreeId: (a: number) => number;
|
|
2018
|
+
readonly digest_toBytes: (a: number) => [number, number];
|
|
2019
|
+
readonly digest___wasm_refgen_toWasmDigest: (a: number) => number;
|
|
1936
2020
|
readonly fragmentwithblob_blob: (a: number) => any;
|
|
1937
|
-
readonly
|
|
1938
|
-
readonly
|
|
1939
|
-
readonly
|
|
1940
|
-
readonly
|
|
1941
|
-
readonly
|
|
1942
|
-
readonly
|
|
1943
|
-
readonly
|
|
1944
|
-
readonly
|
|
1945
|
-
readonly
|
|
2021
|
+
readonly __wasm_bindgen_func_elem_291: (a: number, b: number) => void;
|
|
2022
|
+
readonly __wasm_bindgen_func_elem_1666: (a: number, b: number, c: any) => [number, number];
|
|
2023
|
+
readonly __wasm_bindgen_func_elem_1666_203: (a: number, b: number, c: any, d: any) => void;
|
|
2024
|
+
readonly __wasm_bindgen_func_elem_1666_204: (a: number, b: number, c: any, d: any) => void;
|
|
2025
|
+
readonly __wasm_bindgen_func_elem_658: (a: number, b: number, c: any) => void;
|
|
2026
|
+
readonly __wasm_bindgen_func_elem_658_1: (a: number, b: number, c: any) => void;
|
|
2027
|
+
readonly __wasm_bindgen_func_elem_658_2: (a: number, b: number, c: any) => void;
|
|
2028
|
+
readonly __wasm_bindgen_func_elem_658_3: (a: number, b: number, c: any) => void;
|
|
2029
|
+
readonly __wasm_bindgen_func_elem_657: (a: number, b: number) => void;
|
|
1946
2030
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
1947
2031
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
1948
2032
|
readonly __wbindgen_export3: (a: number) => void;
|