@arcanetech/privacy-sdk-stellar 0.2.3 → 0.4.1
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/README.md +6 -6
- package/dist/index.d.ts +310 -157
- package/dist/index.js +2505 -1817
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +53 -116
- package/dist/node.js +1506 -1622
- package/dist/node.js.map +1 -1
- package/dist/state/index.d.ts +7 -122
- package/dist/state/index.js +96 -490
- package/dist/state/index.js.map +1 -1
- package/dist/testing/index.d.ts +14 -32
- package/dist/transact/index.d.ts +366 -59
- package/dist/transact/index.js +2484 -924
- package/dist/transact/index.js.map +1 -1
- package/generated/contract/README.md +4 -4
- package/generated/contract/dist/index.d.ts +270 -197
- package/generated/contract/dist/index.js +94 -52
- package/generated/contract/package.json +1 -1
- package/generated/contract/src/index.ts +239 -183
- package/generated/registry/README.md +4 -4
- package/generated/registry/dist/index.d.ts +56 -123
- package/generated/registry/dist/index.js +39 -37
- package/generated/registry/package.json +1 -1
- package/generated/registry/src/index.ts +56 -132
- package/package.json +8 -8
package/dist/state/index.d.ts
CHANGED
|
@@ -4,9 +4,6 @@ import { StateBridgeDefinition, StateBridgeAdapter } from '@arcanetech/privacy-s
|
|
|
4
4
|
|
|
5
5
|
declare const STELLAR_STATE_PATHS: {
|
|
6
6
|
readonly privateRecords: "$.privateRecords";
|
|
7
|
-
readonly pendingClaimsItems: "$.pendingClaims.items";
|
|
8
|
-
readonly pendingClaimsPagination: "$.pendingClaims.pagination";
|
|
9
|
-
readonly pendingClaimsCountByOwner: "$.pendingClaims.countByOwner";
|
|
10
7
|
readonly registryPrivateAddresses: "$.registry.privateAddresses";
|
|
11
8
|
readonly registryRegisteredAddresses: "$.registry.registeredAddresses";
|
|
12
9
|
readonly registryLookups: "$.registry.lookups";
|
|
@@ -110,35 +107,6 @@ interface StellarLeafEphemeral {
|
|
|
110
107
|
yHex: string;
|
|
111
108
|
cachedAt?: string;
|
|
112
109
|
}
|
|
113
|
-
interface StellarPendingClaim {
|
|
114
|
-
id: string;
|
|
115
|
-
owner: StellarAddress;
|
|
116
|
-
asset: StellarAssetId;
|
|
117
|
-
amount: bigint;
|
|
118
|
-
createdAt: string;
|
|
119
|
-
poolTxId?: string;
|
|
120
|
-
commitmentHex?: string;
|
|
121
|
-
nullifierHex?: string;
|
|
122
|
-
futureNullifierHashHex?: string;
|
|
123
|
-
assetHiHex?: string;
|
|
124
|
-
assetLoHex?: string;
|
|
125
|
-
nullifierFieldHex?: string;
|
|
126
|
-
secretHex?: string;
|
|
127
|
-
tempPublicKeyXHex?: string;
|
|
128
|
-
tempPublicKeyYHex?: string;
|
|
129
|
-
encryptedRecoveryBase64?: string;
|
|
130
|
-
createdAtLedger?: number;
|
|
131
|
-
}
|
|
132
|
-
interface StellarPendingClaimsPagination {
|
|
133
|
-
total: number;
|
|
134
|
-
page: number;
|
|
135
|
-
pageSize: number;
|
|
136
|
-
hasMore: boolean;
|
|
137
|
-
}
|
|
138
|
-
interface StellarPendingClaimsState {
|
|
139
|
-
items: StellarPendingClaim[];
|
|
140
|
-
pagination?: StellarPendingClaimsPagination;
|
|
141
|
-
}
|
|
142
110
|
interface StellarIncomingDelivery {
|
|
143
111
|
id: number;
|
|
144
112
|
privateAddress: string;
|
|
@@ -193,10 +161,6 @@ interface StellarAvailablePrivateRecordsFilter {
|
|
|
193
161
|
privateAddress?: string;
|
|
194
162
|
asset?: StellarAssetId;
|
|
195
163
|
}
|
|
196
|
-
interface StellarPendingClaimsFilter {
|
|
197
|
-
owner?: StellarAddress;
|
|
198
|
-
asset?: StellarAssetId;
|
|
199
|
-
}
|
|
200
164
|
interface StellarIncomingDeliveriesFilter {
|
|
201
165
|
privateAddress: string;
|
|
202
166
|
asset?: StellarAssetId;
|
|
@@ -227,61 +191,6 @@ declare function listWalletPrivateAddressRecordsForOwnerFromStateSnapshot(input:
|
|
|
227
191
|
owner: string;
|
|
228
192
|
}): StellarWalletPrivateAddressRecord[];
|
|
229
193
|
|
|
230
|
-
declare const pendingClaimSchema: z.ZodObject<{
|
|
231
|
-
id: z.ZodString;
|
|
232
|
-
owner: z.ZodString;
|
|
233
|
-
asset: z.ZodString;
|
|
234
|
-
amount: z.ZodBigInt;
|
|
235
|
-
createdAt: z.ZodString;
|
|
236
|
-
poolTxId: z.ZodOptional<z.ZodString>;
|
|
237
|
-
commitmentHex: z.ZodOptional<z.ZodString>;
|
|
238
|
-
nullifierHex: z.ZodOptional<z.ZodString>;
|
|
239
|
-
futureNullifierHashHex: z.ZodOptional<z.ZodString>;
|
|
240
|
-
assetHiHex: z.ZodOptional<z.ZodString>;
|
|
241
|
-
assetLoHex: z.ZodOptional<z.ZodString>;
|
|
242
|
-
nullifierFieldHex: z.ZodOptional<z.ZodString>;
|
|
243
|
-
secretHex: z.ZodOptional<z.ZodString>;
|
|
244
|
-
tempPublicKeyXHex: z.ZodOptional<z.ZodString>;
|
|
245
|
-
tempPublicKeyYHex: z.ZodOptional<z.ZodString>;
|
|
246
|
-
encryptedRecoveryBase64: z.ZodOptional<z.ZodString>;
|
|
247
|
-
createdAtLedger: z.ZodOptional<z.ZodNumber>;
|
|
248
|
-
}, "strip", z.ZodTypeAny, {
|
|
249
|
-
id: string;
|
|
250
|
-
owner: string;
|
|
251
|
-
asset: string;
|
|
252
|
-
amount: bigint;
|
|
253
|
-
createdAt: string;
|
|
254
|
-
poolTxId?: string | undefined;
|
|
255
|
-
commitmentHex?: string | undefined;
|
|
256
|
-
nullifierHex?: string | undefined;
|
|
257
|
-
futureNullifierHashHex?: string | undefined;
|
|
258
|
-
assetHiHex?: string | undefined;
|
|
259
|
-
assetLoHex?: string | undefined;
|
|
260
|
-
nullifierFieldHex?: string | undefined;
|
|
261
|
-
secretHex?: string | undefined;
|
|
262
|
-
tempPublicKeyXHex?: string | undefined;
|
|
263
|
-
tempPublicKeyYHex?: string | undefined;
|
|
264
|
-
encryptedRecoveryBase64?: string | undefined;
|
|
265
|
-
createdAtLedger?: number | undefined;
|
|
266
|
-
}, {
|
|
267
|
-
id: string;
|
|
268
|
-
owner: string;
|
|
269
|
-
asset: string;
|
|
270
|
-
amount: bigint;
|
|
271
|
-
createdAt: string;
|
|
272
|
-
poolTxId?: string | undefined;
|
|
273
|
-
commitmentHex?: string | undefined;
|
|
274
|
-
nullifierHex?: string | undefined;
|
|
275
|
-
futureNullifierHashHex?: string | undefined;
|
|
276
|
-
assetHiHex?: string | undefined;
|
|
277
|
-
assetLoHex?: string | undefined;
|
|
278
|
-
nullifierFieldHex?: string | undefined;
|
|
279
|
-
secretHex?: string | undefined;
|
|
280
|
-
tempPublicKeyXHex?: string | undefined;
|
|
281
|
-
tempPublicKeyYHex?: string | undefined;
|
|
282
|
-
encryptedRecoveryBase64?: string | undefined;
|
|
283
|
-
createdAtLedger?: number | undefined;
|
|
284
|
-
}>;
|
|
285
194
|
declare const paginationSchema: z.ZodObject<{
|
|
286
195
|
total: z.ZodNumber;
|
|
287
196
|
page: z.ZodNumber;
|
|
@@ -346,10 +255,10 @@ declare const privateRecordSchema: z.ZodObject<{
|
|
|
346
255
|
amount: bigint;
|
|
347
256
|
consumed: boolean;
|
|
348
257
|
privateAddress?: string | undefined;
|
|
349
|
-
commitmentHex?: string | undefined;
|
|
350
|
-
nullifierHex?: string | undefined;
|
|
351
258
|
status?: "pending" | "finalized" | "spent" | undefined;
|
|
352
259
|
poolContract?: string | undefined;
|
|
260
|
+
commitmentHex?: string | undefined;
|
|
261
|
+
nullifierHex?: string | undefined;
|
|
353
262
|
amountDisplay?: number | undefined;
|
|
354
263
|
deliveryId?: number | undefined;
|
|
355
264
|
txHash?: string | undefined;
|
|
@@ -371,10 +280,10 @@ declare const privateRecordSchema: z.ZodObject<{
|
|
|
371
280
|
amount: bigint;
|
|
372
281
|
consumed: boolean;
|
|
373
282
|
privateAddress?: string | undefined;
|
|
374
|
-
commitmentHex?: string | undefined;
|
|
375
|
-
nullifierHex?: string | undefined;
|
|
376
283
|
status?: "pending" | "finalized" | "spent" | undefined;
|
|
377
284
|
poolContract?: string | undefined;
|
|
285
|
+
commitmentHex?: string | undefined;
|
|
286
|
+
nullifierHex?: string | undefined;
|
|
378
287
|
amountDisplay?: number | undefined;
|
|
379
288
|
deliveryId?: number | undefined;
|
|
380
289
|
txHash?: string | undefined;
|
|
@@ -452,16 +361,16 @@ declare const registryLookupSchema: z.ZodObject<{
|
|
|
452
361
|
updatedAtLedger: z.ZodOptional<z.ZodNumber>;
|
|
453
362
|
cachedAt: z.ZodOptional<z.ZodString>;
|
|
454
363
|
}, "strip", z.ZodTypeAny, {
|
|
455
|
-
owner: string;
|
|
456
364
|
status: "registered" | "unregistered";
|
|
365
|
+
owner: string;
|
|
457
366
|
privateAddressStpl1?: string | undefined;
|
|
458
367
|
publicKeyXHex?: string | undefined;
|
|
459
368
|
publicKeyYHex?: string | undefined;
|
|
460
369
|
updatedAtLedger?: number | undefined;
|
|
461
370
|
cachedAt?: string | undefined;
|
|
462
371
|
}, {
|
|
463
|
-
owner: string;
|
|
464
372
|
status: "registered" | "unregistered";
|
|
373
|
+
owner: string;
|
|
465
374
|
privateAddressStpl1?: string | undefined;
|
|
466
375
|
publicKeyXHex?: string | undefined;
|
|
467
376
|
publicKeyYHex?: string | undefined;
|
|
@@ -582,14 +491,6 @@ declare const transactionStatusSchema: z.ZodObject<{
|
|
|
582
491
|
declare const stellarStateDefinitions: StateBridgeDefinition[];
|
|
583
492
|
|
|
584
493
|
declare const stellarStateCallTypes: {
|
|
585
|
-
readonly pendingClaims: "pendingClaims";
|
|
586
|
-
readonly clearPendingClaims: "clearPendingClaims";
|
|
587
|
-
readonly readPendingClaims: "readPendingClaims";
|
|
588
|
-
readonly replacePendingClaimsPage: "replacePendingClaimsPage";
|
|
589
|
-
readonly upsertPendingClaims: "upsertPendingClaims";
|
|
590
|
-
readonly removePendingClaims: "removePendingClaims";
|
|
591
|
-
readonly setPendingClaimsCount: "setPendingClaimsCount";
|
|
592
|
-
readonly readPendingClaimsCount: "readPendingClaimsCount";
|
|
593
494
|
readonly readStellarAddressRegistered: "readStellarAddressRegistered";
|
|
594
495
|
readonly readCachedPrivateAddress: "readCachedPrivateAddress";
|
|
595
496
|
readonly readRegistryLookup: "readRegistryLookup";
|
|
@@ -667,22 +568,6 @@ declare function composeStellarStateService(adapter: StateBridgeAdapter): {
|
|
|
667
568
|
getIncomingDeliveries: (filter: StellarIncomingDeliveriesFilter) => Promise<StellarIncomingDelivery[]>;
|
|
668
569
|
upsertIncomingDeliveries: (deliveries: StellarIncomingDelivery[]) => Promise<void>;
|
|
669
570
|
markDeliveryProcessed(id: number): Promise<void>;
|
|
670
|
-
getPendingClaims: (filter?: StellarPendingClaimsFilter) => Promise<StellarPendingClaimsState>;
|
|
671
|
-
getPendingClaimsCount(owner: StellarAddress): Promise<number | undefined>;
|
|
672
|
-
appendPendingClaims: (claims: StellarPendingClaim[], paginationInfo: StellarPendingClaimsPagination) => Promise<void>;
|
|
673
|
-
replacePendingClaimsPage: (input: {
|
|
674
|
-
owner: StellarAddress;
|
|
675
|
-
claims: StellarPendingClaim[];
|
|
676
|
-
paginationInfo: StellarPendingClaimsPagination;
|
|
677
|
-
count?: number;
|
|
678
|
-
}) => Promise<void>;
|
|
679
|
-
upsertPendingClaims: (claims: StellarPendingClaim[]) => Promise<void>;
|
|
680
|
-
removePendingClaims: (ids: string[]) => Promise<void>;
|
|
681
|
-
clearPendingClaims: (input?: {
|
|
682
|
-
owner?: StellarAddress;
|
|
683
|
-
asset?: StellarAssetId;
|
|
684
|
-
}) => Promise<void>;
|
|
685
|
-
setPendingClaimsCount: (owner: StellarAddress, count: number) => Promise<void>;
|
|
686
571
|
getLeafEphemeral(input: {
|
|
687
572
|
poolContract: string;
|
|
688
573
|
leafIndex: number;
|
|
@@ -750,4 +635,4 @@ type StellarStateService = ComposedStellarStateService;
|
|
|
750
635
|
declare function createStellarStateService(adapter: StateBridgeAdapter): StellarStateService;
|
|
751
636
|
declare function createStellarStorageAdapterFromState(state: StellarStateService): StellarStorageAdapter;
|
|
752
637
|
|
|
753
|
-
export { STELLAR_STATE_PATHS, type StellarAsset, type StellarAssetsCatalog, type StellarAvailablePrivateRecordsFilter, type StellarDeliverySyncState, type StellarIncomingDeliveriesFilter, type StellarIncomingDelivery, type StellarLeafEphemeral, type
|
|
638
|
+
export { STELLAR_STATE_PATHS, type StellarAsset, type StellarAssetsCatalog, type StellarAvailablePrivateRecordsFilter, type StellarDeliverySyncState, type StellarIncomingDeliveriesFilter, type StellarIncomingDelivery, type StellarLeafEphemeral, type StellarPoolMerkleState, type StellarPrivateAssetRow, type StellarPrivateRecordStatus, type StellarPublicBalance, type StellarPublicBalanceInput, type StellarRegistryLookup, type StellarStateDefinition, type StellarStateService, type StellarTransactionStatus, assetSchema, createStellarStateService, createStellarStorageAdapterFromState, deliverySyncStateSchema, incomingDeliverySchema, leafEphemeralSchema, listWalletPrivateAddressRecordsForOwnerFromStateSnapshot, listWalletPrivateAddressScalarsForOwnerFromStateSnapshot, paginationSchema, poolMerkleStateSchema, privateRecordSchema, publicBalanceSchema, readPrivateRecordsFromStateSnapshot, readWalletDefaultPrivateAddressNonceFromStateSnapshot, readWalletPrivateAddressRecordFromStateSnapshot, readWalletPrivateAddressScalarFromStateSnapshot, registryLookupSchema, stellarStateCallTypes, stellarStateDefinitions, transactionStatusSchema };
|