@arcanetech/privacy-sdk-stellar 0.5.4 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.d.ts CHANGED
@@ -62,6 +62,11 @@ interface StellarWalletPrivateAddressRecord {
62
62
  privateAddress: string;
63
63
  createdAt: number;
64
64
  }
65
+ interface StellarLeanImtNode {
66
+ level: number;
67
+ index: number;
68
+ value: string;
69
+ }
65
70
  interface StellarPoolMerkleState {
66
71
  poolContract: string;
67
72
  commitments: string[];
@@ -69,6 +74,7 @@ interface StellarPoolMerkleState {
69
74
  merkleRootHex: string;
70
75
  updatedAt: number;
71
76
  syncedLedger?: number;
77
+ nodes?: StellarLeanImtNode[];
72
78
  }
73
79
  interface StellarLeafEphemeral {
74
80
  poolContract: string;
@@ -331,6 +337,7 @@ interface FetchContractMerkleResult {
331
337
  commitments: string[];
332
338
  merkleRootHex: string;
333
339
  updatedAt: number;
340
+ nodes?: StellarLeanImtNode[];
334
341
  }
335
342
 
336
343
  type StellarTransactionDetails = {
@@ -391,6 +398,7 @@ declare function composeStellarStateService(adapter: StateBridgeAdapter): {
391
398
  commitments: string[];
392
399
  merkleRootHex: string;
393
400
  syncedLedger?: number;
401
+ nodes?: StellarPoolMerkleState["nodes"];
394
402
  }): Promise<void>;
395
403
  getWalletPrivateAddressRecord(input: {
396
404
  owner: StellarAddress;
@@ -487,6 +495,7 @@ declare function composeStellarPrivacyClient(config: ResolvedStellarPrivacyClien
487
495
  commitments: string[];
488
496
  merkleRootHex: string;
489
497
  syncedLedger?: number;
498
+ nodes?: StellarPoolMerkleState["nodes"];
490
499
  }): Promise<void>;
491
500
  getWalletPrivateAddressRecord(input: {
492
501
  owner: StellarAddress;
@@ -640,6 +649,18 @@ declare function createStateDelegates(state: StellarStateService): {
640
649
  };
641
650
  type StellarPrivacyClientStateDelegates = ReturnType<typeof createStateDelegates>;
642
651
 
652
+ type StellarPrivacyStateHydration = {
653
+ poolMerkleStates?: StellarPoolMerkleState[];
654
+ privateRecords?: StellarPrivateRecord[];
655
+ walletPrivateAddressRecords?: StellarWalletPrivateAddressRecord[];
656
+ walletPrivateAddressScalars?: StellarWalletPrivateAddressScalar[];
657
+ walletDefaultPrivateAddressNonces?: Array<{
658
+ owner: string;
659
+ nonce: string;
660
+ }>;
661
+ assets?: StellarAsset[];
662
+ };
663
+
643
664
  type StellarPrivacyClientNetwork = ComposedStellarPrivacyClient['network'];
644
665
  type StellarPrivacyClientOperations = ComposedStellarPrivacyClient['operations'];
645
666
  type StellarPrivacyClient = {
@@ -657,7 +678,9 @@ type StellarPrivacyClient = {
657
678
  waitForTransactionConfirmation: StellarPrivacyClientNetwork['waitForTransactionConfirmation'];
658
679
  fetchTransactionConfirmationStatus: StellarPrivacyClientNetwork['fetchTransactionConfirmationStatus'];
659
680
  getTransactionDetails: StellarPrivacyClientNetwork['getTransactionDetails'];
660
- } & StellarPrivacyClientStateDelegates;
681
+ } & StellarPrivacyClientStateDelegates & {
682
+ hydrateState: (snapshot: StellarPrivacyStateHydration) => Promise<void>;
683
+ };
661
684
 
662
685
  declare function createStellarPrivacyClientFromResolvedConfig(config: ResolvedStellarPrivacyClientConfig): StellarPrivacyClient;
663
686