@arcanetech/privacy-sdk-stellar 0.3.0 → 0.5.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/README.md +6 -6
- package/dist/index.d.ts +306 -159
- package/dist/index.js +2367 -1769
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +49 -118
- package/dist/node.js +1381 -1582
- 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 +362 -61
- package/dist/transact/index.js +2474 -937
- package/dist/transact/index.js.map +1 -1
- package/generated/contract/README.md +4 -4
- package/generated/contract/dist/index.d.ts +231 -256
- package/generated/contract/dist/index.js +71 -57
- package/generated/contract/package.json +1 -1
- package/generated/contract/src/index.ts +211 -242
- 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 +2 -2
package/dist/state/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
// src/state/foundation/paths.ts
|
|
2
2
|
var STELLAR_STATE_PATHS = {
|
|
3
3
|
privateRecords: "$.privateRecords",
|
|
4
|
-
pendingClaimsItems: "$.pendingClaims.items",
|
|
5
|
-
pendingClaimsPagination: "$.pendingClaims.pagination",
|
|
6
|
-
pendingClaimsCountByOwner: "$.pendingClaims.countByOwner",
|
|
7
4
|
registryPrivateAddresses: "$.registry.privateAddresses",
|
|
8
5
|
registryRegisteredAddresses: "$.registry.registeredAddresses",
|
|
9
6
|
registryLookups: "$.registry.lookups",
|
|
@@ -23,25 +20,6 @@ var STELLAR_STATE_PATHS = {
|
|
|
23
20
|
|
|
24
21
|
// src/state/schemas/shared.ts
|
|
25
22
|
import { z } from "zod";
|
|
26
|
-
var pendingClaimSchema = z.object({
|
|
27
|
-
id: z.string().min(1),
|
|
28
|
-
owner: z.string().min(1),
|
|
29
|
-
asset: z.string().min(1),
|
|
30
|
-
amount: z.coerce.bigint(),
|
|
31
|
-
createdAt: z.string().min(1),
|
|
32
|
-
poolTxId: z.string().optional(),
|
|
33
|
-
commitmentHex: z.string().optional(),
|
|
34
|
-
nullifierHex: z.string().optional(),
|
|
35
|
-
futureNullifierHashHex: z.string().optional(),
|
|
36
|
-
assetHiHex: z.string().optional(),
|
|
37
|
-
assetLoHex: z.string().optional(),
|
|
38
|
-
nullifierFieldHex: z.string().optional(),
|
|
39
|
-
secretHex: z.string().optional(),
|
|
40
|
-
tempPublicKeyXHex: z.string().optional(),
|
|
41
|
-
tempPublicKeyYHex: z.string().optional(),
|
|
42
|
-
encryptedRecoveryBase64: z.string().optional(),
|
|
43
|
-
createdAtLedger: z.number().int().optional()
|
|
44
|
-
});
|
|
45
23
|
var paginationSchema = z.object({
|
|
46
24
|
total: z.number().int().nonnegative(),
|
|
47
25
|
page: z.number().int().positive(),
|
|
@@ -211,26 +189,6 @@ function normalizePublicBalancesFromEntries(value, owner) {
|
|
|
211
189
|
}).filter((balance) => balance !== void 0);
|
|
212
190
|
}
|
|
213
191
|
|
|
214
|
-
// src/state/read/normalize/claims.ts
|
|
215
|
-
function normalizePendingClaimsState(value) {
|
|
216
|
-
if (typeof value !== "object" || value === null) {
|
|
217
|
-
return { items: [] };
|
|
218
|
-
}
|
|
219
|
-
const record = value;
|
|
220
|
-
const items = Array.isArray(record.items) ? record.items.flatMap((item) => {
|
|
221
|
-
const parsed = pendingClaimSchema.safeParse(item);
|
|
222
|
-
return parsed.success ? [withoutUndefinedFields(parsed.data)] : [];
|
|
223
|
-
}) : [];
|
|
224
|
-
const paginationResult = paginationSchema.safeParse(record.pagination);
|
|
225
|
-
if (paginationResult.success) {
|
|
226
|
-
return { items, pagination: paginationResult.data };
|
|
227
|
-
}
|
|
228
|
-
return { items };
|
|
229
|
-
}
|
|
230
|
-
function normalizePendingClaimsCount(value) {
|
|
231
|
-
return typeof value === "number" && Number.isInteger(value) && value >= 0 ? value : void 0;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
192
|
// src/state/read/normalize/deliveries.ts
|
|
235
193
|
function normalizeIncomingDeliveries(value) {
|
|
236
194
|
const entries = typeof value === "object" && value !== null && !Array.isArray(value) ? Object.values(value) : value;
|
|
@@ -499,8 +457,7 @@ import { registerArrayFilterItemSchema } from "@arcanetech/privacy-sdk-core/stat
|
|
|
499
457
|
|
|
500
458
|
// src/state/filters/ops.ts
|
|
501
459
|
var stellarArrayFilterSchemaKeys = {
|
|
502
|
-
privateRecord: "privateRecord"
|
|
503
|
-
pendingClaim: "pendingClaim"
|
|
460
|
+
privateRecord: "privateRecord"
|
|
504
461
|
};
|
|
505
462
|
function rejectPrivateRecordsByIds(ids) {
|
|
506
463
|
return {
|
|
@@ -526,56 +483,6 @@ function rejectConsumedPrivateRecords() {
|
|
|
526
483
|
}
|
|
527
484
|
};
|
|
528
485
|
}
|
|
529
|
-
function rejectPendingClaimsByOwner(owner) {
|
|
530
|
-
return {
|
|
531
|
-
opType: "arrayFilter",
|
|
532
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsItems,
|
|
533
|
-
itemSchemaKey: stellarArrayFilterSchemaKeys.pendingClaim,
|
|
534
|
-
rejectWhen: {
|
|
535
|
-
op: "fieldEquals",
|
|
536
|
-
field: "owner",
|
|
537
|
-
value: owner
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
function rejectPendingClaimsByIds(ids) {
|
|
542
|
-
return {
|
|
543
|
-
opType: "arrayFilter",
|
|
544
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsItems,
|
|
545
|
-
itemSchemaKey: stellarArrayFilterSchemaKeys.pendingClaim,
|
|
546
|
-
rejectWhen: {
|
|
547
|
-
op: "fieldIn",
|
|
548
|
-
field: "id",
|
|
549
|
-
values: ids
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
}
|
|
553
|
-
function rejectPendingClaimsByOwnerAndAsset(input) {
|
|
554
|
-
const matches = [];
|
|
555
|
-
if (input.owner !== void 0) {
|
|
556
|
-
matches.push({
|
|
557
|
-
op: "fieldEquals",
|
|
558
|
-
field: "owner",
|
|
559
|
-
value: input.owner
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
if (input.asset !== void 0) {
|
|
563
|
-
matches.push({
|
|
564
|
-
op: "fieldEquals",
|
|
565
|
-
field: "asset",
|
|
566
|
-
value: input.asset
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
return {
|
|
570
|
-
opType: "arrayFilter",
|
|
571
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsItems,
|
|
572
|
-
itemSchemaKey: stellarArrayFilterSchemaKeys.pendingClaim,
|
|
573
|
-
rejectWhen: {
|
|
574
|
-
op: "and",
|
|
575
|
-
matches
|
|
576
|
-
}
|
|
577
|
-
};
|
|
578
|
-
}
|
|
579
486
|
|
|
580
487
|
// src/state/filters/register-schemas.ts
|
|
581
488
|
var registered = false;
|
|
@@ -587,24 +494,12 @@ function registerStellarArrayFilterSchemas() {
|
|
|
587
494
|
stellarArrayFilterSchemaKeys.privateRecord,
|
|
588
495
|
privateRecordSchema
|
|
589
496
|
);
|
|
590
|
-
registerArrayFilterItemSchema(
|
|
591
|
-
stellarArrayFilterSchemaKeys.pendingClaim,
|
|
592
|
-
pendingClaimSchema
|
|
593
|
-
);
|
|
594
497
|
registered = true;
|
|
595
498
|
}
|
|
596
499
|
|
|
597
500
|
// src/state/bridge/call-types.ts
|
|
598
501
|
import "@arcanetech/privacy-sdk-core/state";
|
|
599
502
|
var stellarStateCallTypes = {
|
|
600
|
-
pendingClaims: "pendingClaims",
|
|
601
|
-
clearPendingClaims: "clearPendingClaims",
|
|
602
|
-
readPendingClaims: "readPendingClaims",
|
|
603
|
-
replacePendingClaimsPage: "replacePendingClaimsPage",
|
|
604
|
-
upsertPendingClaims: "upsertPendingClaims",
|
|
605
|
-
removePendingClaims: "removePendingClaims",
|
|
606
|
-
setPendingClaimsCount: "setPendingClaimsCount",
|
|
607
|
-
readPendingClaimsCount: "readPendingClaimsCount",
|
|
608
503
|
readStellarAddressRegistered: "readStellarAddressRegistered",
|
|
609
504
|
readCachedPrivateAddress: "readCachedPrivateAddress",
|
|
610
505
|
readRegistryLookup: "readRegistryLookup",
|
|
@@ -831,194 +726,10 @@ var stellarBalancesStateDefinitions = [
|
|
|
831
726
|
}
|
|
832
727
|
];
|
|
833
728
|
|
|
834
|
-
// src/state/schemas/claims/write.ts
|
|
835
|
-
import { z as z5 } from "zod";
|
|
836
|
-
var pendingClaimsWriteSchema = z5.object({
|
|
837
|
-
type: z5.literal(stellarStateCallTypes.pendingClaims),
|
|
838
|
-
claims: z5.array(pendingClaimSchema),
|
|
839
|
-
paginationInfo: paginationSchema
|
|
840
|
-
}).transform(({ type, claims, paginationInfo }) => ({
|
|
841
|
-
type,
|
|
842
|
-
operations: [
|
|
843
|
-
{
|
|
844
|
-
opType: "arrayPush",
|
|
845
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsItems,
|
|
846
|
-
items: claims
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
opType: "primitiveSet",
|
|
850
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsPagination,
|
|
851
|
-
value: paginationInfo
|
|
852
|
-
}
|
|
853
|
-
]
|
|
854
|
-
}));
|
|
855
|
-
var clearPendingClaimsSchema = z5.object({
|
|
856
|
-
type: z5.literal(stellarStateCallTypes.clearPendingClaims),
|
|
857
|
-
owner: z5.string().optional(),
|
|
858
|
-
asset: z5.string().optional()
|
|
859
|
-
}).transform(({ type, owner, asset }) => {
|
|
860
|
-
if (owner === void 0 && asset === void 0) {
|
|
861
|
-
return {
|
|
862
|
-
type,
|
|
863
|
-
operations: [
|
|
864
|
-
{
|
|
865
|
-
opType: "arrayClean",
|
|
866
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsItems
|
|
867
|
-
}
|
|
868
|
-
]
|
|
869
|
-
};
|
|
870
|
-
}
|
|
871
|
-
return {
|
|
872
|
-
type,
|
|
873
|
-
operations: [rejectPendingClaimsByOwnerAndAsset({ owner, asset })]
|
|
874
|
-
};
|
|
875
|
-
});
|
|
876
|
-
var readPendingClaimsSchema = z5.object({
|
|
877
|
-
type: z5.literal(stellarStateCallTypes.readPendingClaims)
|
|
878
|
-
}).transform(({ type }) => ({
|
|
879
|
-
type,
|
|
880
|
-
operations: [
|
|
881
|
-
{
|
|
882
|
-
opType: "primitiveGet",
|
|
883
|
-
jsonPath: "$.pendingClaims"
|
|
884
|
-
}
|
|
885
|
-
]
|
|
886
|
-
}));
|
|
887
|
-
|
|
888
|
-
// src/state/schemas/claims/page.ts
|
|
889
|
-
import { z as z6 } from "zod";
|
|
890
|
-
var pendingClaimBridgeItemSchema = pendingClaimSchema;
|
|
891
|
-
var replacePendingClaimsPageSchema = z6.object({
|
|
892
|
-
type: z6.literal(stellarStateCallTypes.replacePendingClaimsPage),
|
|
893
|
-
owner: z6.string().min(1),
|
|
894
|
-
claims: z6.array(pendingClaimBridgeItemSchema),
|
|
895
|
-
paginationInfo: z6.object({
|
|
896
|
-
total: z6.number().int().nonnegative(),
|
|
897
|
-
page: z6.number().int().positive(),
|
|
898
|
-
pageSize: z6.number().int().positive(),
|
|
899
|
-
hasMore: z6.boolean()
|
|
900
|
-
}),
|
|
901
|
-
count: z6.number().int().nonnegative().optional()
|
|
902
|
-
}).transform(({ type, owner, claims, paginationInfo, count }) => ({
|
|
903
|
-
type,
|
|
904
|
-
operations: [
|
|
905
|
-
rejectPendingClaimsByOwner(owner),
|
|
906
|
-
{
|
|
907
|
-
opType: "arrayPush",
|
|
908
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsItems,
|
|
909
|
-
items: claims
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
opType: "primitiveSet",
|
|
913
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsPagination,
|
|
914
|
-
value: paginationInfo
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
opType: "recordSet",
|
|
918
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsCountByOwner,
|
|
919
|
-
key: owner,
|
|
920
|
-
value: count ?? paginationInfo.total
|
|
921
|
-
}
|
|
922
|
-
]
|
|
923
|
-
}));
|
|
924
|
-
var upsertPendingClaimsSchema = z6.object({
|
|
925
|
-
type: z6.literal(stellarStateCallTypes.upsertPendingClaims),
|
|
926
|
-
claims: z6.array(pendingClaimBridgeItemSchema)
|
|
927
|
-
}).transform(({ type, claims }) => ({
|
|
928
|
-
type,
|
|
929
|
-
operations: [
|
|
930
|
-
rejectPendingClaimsByIds(claims.map((claim) => claim.id)),
|
|
931
|
-
{
|
|
932
|
-
opType: "arrayPush",
|
|
933
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsItems,
|
|
934
|
-
items: claims
|
|
935
|
-
}
|
|
936
|
-
]
|
|
937
|
-
}));
|
|
938
|
-
var removePendingClaimsSchema = z6.object({
|
|
939
|
-
type: z6.literal(stellarStateCallTypes.removePendingClaims),
|
|
940
|
-
ids: z6.array(z6.string().min(1))
|
|
941
|
-
}).transform(({ type, ids }) => ({
|
|
942
|
-
type,
|
|
943
|
-
operations: [rejectPendingClaimsByIds(ids)]
|
|
944
|
-
}));
|
|
945
|
-
var readPendingClaimsCountSchema = z6.object({
|
|
946
|
-
type: z6.literal(stellarStateCallTypes.readPendingClaimsCount),
|
|
947
|
-
owner: z6.string().min(1)
|
|
948
|
-
}).transform(({ type, owner }) => ({
|
|
949
|
-
type,
|
|
950
|
-
operations: [
|
|
951
|
-
{
|
|
952
|
-
opType: "recordGet",
|
|
953
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsCountByOwner,
|
|
954
|
-
key: owner
|
|
955
|
-
}
|
|
956
|
-
]
|
|
957
|
-
}));
|
|
958
|
-
var setPendingClaimsCountSchema = z6.object({
|
|
959
|
-
type: z6.literal(stellarStateCallTypes.setPendingClaimsCount),
|
|
960
|
-
owner: z6.string().min(1),
|
|
961
|
-
count: z6.number().int().nonnegative()
|
|
962
|
-
}).transform(({ type, owner, count }) => ({
|
|
963
|
-
type,
|
|
964
|
-
operations: [
|
|
965
|
-
{
|
|
966
|
-
opType: "recordSet",
|
|
967
|
-
jsonPath: STELLAR_STATE_PATHS.pendingClaimsCountByOwner,
|
|
968
|
-
key: owner,
|
|
969
|
-
value: count
|
|
970
|
-
}
|
|
971
|
-
]
|
|
972
|
-
}));
|
|
973
|
-
|
|
974
|
-
// src/state/definitions/claims.ts
|
|
975
|
-
var stellarClaimsStateDefinitions = [
|
|
976
|
-
{
|
|
977
|
-
type: stellarStateCallTypes.pendingClaims,
|
|
978
|
-
mode: "write",
|
|
979
|
-
schema: pendingClaimsWriteSchema
|
|
980
|
-
},
|
|
981
|
-
{
|
|
982
|
-
type: stellarStateCallTypes.clearPendingClaims,
|
|
983
|
-
mode: "write",
|
|
984
|
-
schema: clearPendingClaimsSchema
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
type: stellarStateCallTypes.readPendingClaims,
|
|
988
|
-
mode: "read",
|
|
989
|
-
schema: readPendingClaimsSchema
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
type: stellarStateCallTypes.replacePendingClaimsPage,
|
|
993
|
-
mode: "write",
|
|
994
|
-
schema: replacePendingClaimsPageSchema
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
type: stellarStateCallTypes.upsertPendingClaims,
|
|
998
|
-
mode: "write",
|
|
999
|
-
schema: upsertPendingClaimsSchema
|
|
1000
|
-
},
|
|
1001
|
-
{
|
|
1002
|
-
type: stellarStateCallTypes.removePendingClaims,
|
|
1003
|
-
mode: "write",
|
|
1004
|
-
schema: removePendingClaimsSchema
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
type: stellarStateCallTypes.readPendingClaimsCount,
|
|
1008
|
-
mode: "read",
|
|
1009
|
-
schema: readPendingClaimsCountSchema
|
|
1010
|
-
},
|
|
1011
|
-
{
|
|
1012
|
-
type: stellarStateCallTypes.setPendingClaimsCount,
|
|
1013
|
-
mode: "write",
|
|
1014
|
-
schema: setPendingClaimsCountSchema
|
|
1015
|
-
}
|
|
1016
|
-
];
|
|
1017
|
-
|
|
1018
729
|
// src/state/schemas/claims/deliveries.ts
|
|
1019
|
-
import { z as
|
|
1020
|
-
var readIncomingDeliveriesSchema =
|
|
1021
|
-
type:
|
|
730
|
+
import { z as z5 } from "zod";
|
|
731
|
+
var readIncomingDeliveriesSchema = z5.object({
|
|
732
|
+
type: z5.literal(stellarStateCallTypes.readIncomingDeliveries)
|
|
1022
733
|
}).transform(({ type }) => ({
|
|
1023
734
|
type,
|
|
1024
735
|
operations: [
|
|
@@ -1028,9 +739,9 @@ var readIncomingDeliveriesSchema = z7.object({
|
|
|
1028
739
|
}
|
|
1029
740
|
]
|
|
1030
741
|
}));
|
|
1031
|
-
var upsertIncomingDeliveriesSchema =
|
|
1032
|
-
type:
|
|
1033
|
-
deliveries:
|
|
742
|
+
var upsertIncomingDeliveriesSchema = z5.object({
|
|
743
|
+
type: z5.literal(stellarStateCallTypes.upsertIncomingDeliveries),
|
|
744
|
+
deliveries: z5.array(incomingDeliverySchema)
|
|
1034
745
|
}).transform(({ type, deliveries }) => ({
|
|
1035
746
|
type,
|
|
1036
747
|
operations: deliveries.map((delivery) => ({
|
|
@@ -1040,10 +751,10 @@ var upsertIncomingDeliveriesSchema = z7.object({
|
|
|
1040
751
|
value: delivery
|
|
1041
752
|
}))
|
|
1042
753
|
}));
|
|
1043
|
-
var readDeliverySyncStateSchema =
|
|
1044
|
-
type:
|
|
1045
|
-
privateAddress:
|
|
1046
|
-
asset:
|
|
754
|
+
var readDeliverySyncStateSchema = z5.object({
|
|
755
|
+
type: z5.literal(stellarStateCallTypes.readDeliverySyncState),
|
|
756
|
+
privateAddress: z5.string().min(1),
|
|
757
|
+
asset: z5.string().min(1)
|
|
1047
758
|
}).transform(({ type, privateAddress, asset }) => ({
|
|
1048
759
|
type,
|
|
1049
760
|
operations: [
|
|
@@ -1054,8 +765,8 @@ var readDeliverySyncStateSchema = z7.object({
|
|
|
1054
765
|
}
|
|
1055
766
|
]
|
|
1056
767
|
}));
|
|
1057
|
-
var setDeliverySyncStateSchema =
|
|
1058
|
-
type:
|
|
768
|
+
var setDeliverySyncStateSchema = z5.object({
|
|
769
|
+
type: z5.literal(stellarStateCallTypes.setDeliverySyncState),
|
|
1059
770
|
syncState: deliverySyncStateSchema
|
|
1060
771
|
}).transform(({ type, syncState }) => ({
|
|
1061
772
|
type,
|
|
@@ -1094,10 +805,10 @@ var stellarDeliveriesStateDefinitions = [
|
|
|
1094
805
|
];
|
|
1095
806
|
|
|
1096
807
|
// src/state/schemas/pool/merkle.ts
|
|
1097
|
-
import { z as
|
|
1098
|
-
var readPoolMerkleStateSchema =
|
|
1099
|
-
type:
|
|
1100
|
-
poolContract:
|
|
808
|
+
import { z as z6 } from "zod";
|
|
809
|
+
var readPoolMerkleStateSchema = z6.object({
|
|
810
|
+
type: z6.literal(stellarStateCallTypes.readPoolMerkleState),
|
|
811
|
+
poolContract: z6.string().min(1)
|
|
1101
812
|
}).transform(({ type, poolContract }) => ({
|
|
1102
813
|
type,
|
|
1103
814
|
operations: [
|
|
@@ -1108,8 +819,8 @@ var readPoolMerkleStateSchema = z8.object({
|
|
|
1108
819
|
}
|
|
1109
820
|
]
|
|
1110
821
|
}));
|
|
1111
|
-
var setPoolMerkleStateSchema =
|
|
1112
|
-
type:
|
|
822
|
+
var setPoolMerkleStateSchema = z6.object({
|
|
823
|
+
type: z6.literal(stellarStateCallTypes.setPoolMerkleState),
|
|
1113
824
|
state: poolMerkleStateSchema
|
|
1114
825
|
}).transform(({ type, state }) => ({
|
|
1115
826
|
type,
|
|
@@ -1122,10 +833,10 @@ var setPoolMerkleStateSchema = z8.object({
|
|
|
1122
833
|
}
|
|
1123
834
|
]
|
|
1124
835
|
}));
|
|
1125
|
-
var readLeafEphemeralSchema =
|
|
1126
|
-
type:
|
|
1127
|
-
poolContract:
|
|
1128
|
-
leafIndex:
|
|
836
|
+
var readLeafEphemeralSchema = z6.object({
|
|
837
|
+
type: z6.literal(stellarStateCallTypes.readLeafEphemeral),
|
|
838
|
+
poolContract: z6.string().min(1),
|
|
839
|
+
leafIndex: z6.number().int().nonnegative()
|
|
1129
840
|
}).transform(({ type, poolContract, leafIndex }) => ({
|
|
1130
841
|
type,
|
|
1131
842
|
operations: [
|
|
@@ -1136,8 +847,8 @@ var readLeafEphemeralSchema = z8.object({
|
|
|
1136
847
|
}
|
|
1137
848
|
]
|
|
1138
849
|
}));
|
|
1139
|
-
var setLeafEphemeralSchema =
|
|
1140
|
-
type:
|
|
850
|
+
var setLeafEphemeralSchema = z6.object({
|
|
851
|
+
type: z6.literal(stellarStateCallTypes.setLeafEphemeral),
|
|
1141
852
|
ephemeral: leafEphemeralSchema
|
|
1142
853
|
}).transform(({ type, ephemeral }) => ({
|
|
1143
854
|
type,
|
|
@@ -1176,9 +887,9 @@ var stellarPoolStateDefinitions = [
|
|
|
1176
887
|
];
|
|
1177
888
|
|
|
1178
889
|
// src/state/schemas/records/private.ts
|
|
1179
|
-
import { z as
|
|
1180
|
-
var listPrivateRecordsSchema =
|
|
1181
|
-
type:
|
|
890
|
+
import { z as z7 } from "zod";
|
|
891
|
+
var listPrivateRecordsSchema = z7.object({
|
|
892
|
+
type: z7.literal(stellarStateCallTypes.listPrivateRecords)
|
|
1182
893
|
}).transform(({ type }) => ({
|
|
1183
894
|
type,
|
|
1184
895
|
operations: [
|
|
@@ -1188,9 +899,9 @@ var listPrivateRecordsSchema = z9.object({
|
|
|
1188
899
|
}
|
|
1189
900
|
]
|
|
1190
901
|
}));
|
|
1191
|
-
var savePrivateRecordsSchema =
|
|
1192
|
-
type:
|
|
1193
|
-
records:
|
|
902
|
+
var savePrivateRecordsSchema = z7.object({
|
|
903
|
+
type: z7.literal(stellarStateCallTypes.savePrivateRecords),
|
|
904
|
+
records: z7.array(privateRecordSchema)
|
|
1194
905
|
}).transform(({ type, records }) => ({
|
|
1195
906
|
type,
|
|
1196
907
|
operations: [
|
|
@@ -1201,9 +912,9 @@ var savePrivateRecordsSchema = z9.object({
|
|
|
1201
912
|
}
|
|
1202
913
|
]
|
|
1203
914
|
}));
|
|
1204
|
-
var replacePrivateRecordsSchema =
|
|
1205
|
-
type:
|
|
1206
|
-
records:
|
|
915
|
+
var replacePrivateRecordsSchema = z7.object({
|
|
916
|
+
type: z7.literal(stellarStateCallTypes.replacePrivateRecords),
|
|
917
|
+
records: z7.array(privateRecordSchema)
|
|
1207
918
|
}).transform(({ type, records }) => ({
|
|
1208
919
|
type,
|
|
1209
920
|
operations: [
|
|
@@ -1218,18 +929,18 @@ var replacePrivateRecordsSchema = z9.object({
|
|
|
1218
929
|
}
|
|
1219
930
|
]
|
|
1220
931
|
}));
|
|
1221
|
-
var pruneConsumedPrivateRecordsSchema =
|
|
1222
|
-
type:
|
|
932
|
+
var pruneConsumedPrivateRecordsSchema = z7.object({
|
|
933
|
+
type: z7.literal(stellarStateCallTypes.pruneConsumedPrivateRecords)
|
|
1223
934
|
}).transform(({ type }) => ({
|
|
1224
935
|
type,
|
|
1225
936
|
operations: [rejectConsumedPrivateRecords()]
|
|
1226
937
|
}));
|
|
1227
938
|
|
|
1228
939
|
// src/state/schemas/records/transactions.ts
|
|
1229
|
-
import { z as
|
|
1230
|
-
var upsertPrivateRecordsSchema =
|
|
1231
|
-
type:
|
|
1232
|
-
records:
|
|
940
|
+
import { z as z8 } from "zod";
|
|
941
|
+
var upsertPrivateRecordsSchema = z8.object({
|
|
942
|
+
type: z8.literal(stellarStateCallTypes.upsertPrivateRecords),
|
|
943
|
+
records: z8.array(privateRecordSchema)
|
|
1233
944
|
}).transform(({ type, records }) => ({
|
|
1234
945
|
type,
|
|
1235
946
|
operations: [
|
|
@@ -1241,9 +952,9 @@ var upsertPrivateRecordsSchema = z10.object({
|
|
|
1241
952
|
}
|
|
1242
953
|
]
|
|
1243
954
|
}));
|
|
1244
|
-
var readTransactionStatusSchema =
|
|
1245
|
-
type:
|
|
1246
|
-
txHash:
|
|
955
|
+
var readTransactionStatusSchema = z8.object({
|
|
956
|
+
type: z8.literal(stellarStateCallTypes.readTransactionStatus),
|
|
957
|
+
txHash: z8.string().min(1)
|
|
1247
958
|
}).transform(({ type, txHash }) => ({
|
|
1248
959
|
type,
|
|
1249
960
|
operations: [
|
|
@@ -1254,8 +965,8 @@ var readTransactionStatusSchema = z10.object({
|
|
|
1254
965
|
}
|
|
1255
966
|
]
|
|
1256
967
|
}));
|
|
1257
|
-
var setTransactionStatusSchema =
|
|
1258
|
-
type:
|
|
968
|
+
var setTransactionStatusSchema = z8.object({
|
|
969
|
+
type: z8.literal(stellarStateCallTypes.setTransactionStatus),
|
|
1259
970
|
status: transactionStatusSchema
|
|
1260
971
|
}).transform(({ type, status }) => ({
|
|
1261
972
|
type,
|
|
@@ -1268,9 +979,9 @@ var setTransactionStatusSchema = z10.object({
|
|
|
1268
979
|
}
|
|
1269
980
|
]
|
|
1270
981
|
}));
|
|
1271
|
-
var clearTransactionStatusSchema =
|
|
1272
|
-
type:
|
|
1273
|
-
txHash:
|
|
982
|
+
var clearTransactionStatusSchema = z8.object({
|
|
983
|
+
type: z8.literal(stellarStateCallTypes.clearTransactionStatus),
|
|
984
|
+
txHash: z8.string().min(1)
|
|
1274
985
|
}).transform(({ type, txHash }) => ({
|
|
1275
986
|
type,
|
|
1276
987
|
operations: [
|
|
@@ -1312,10 +1023,10 @@ var stellarRecordsStateDefinitions = [
|
|
|
1312
1023
|
];
|
|
1313
1024
|
|
|
1314
1025
|
// src/state/schemas/registry/lookup.ts
|
|
1315
|
-
import { z as
|
|
1316
|
-
var readStellarAddressRegisteredSchema =
|
|
1317
|
-
type:
|
|
1318
|
-
address:
|
|
1026
|
+
import { z as z9 } from "zod";
|
|
1027
|
+
var readStellarAddressRegisteredSchema = z9.object({
|
|
1028
|
+
type: z9.literal(stellarStateCallTypes.readStellarAddressRegistered),
|
|
1029
|
+
address: z9.string().min(1)
|
|
1319
1030
|
}).transform(({ type, address }) => ({
|
|
1320
1031
|
type,
|
|
1321
1032
|
operations: [
|
|
@@ -1326,9 +1037,9 @@ var readStellarAddressRegisteredSchema = z11.object({
|
|
|
1326
1037
|
}
|
|
1327
1038
|
]
|
|
1328
1039
|
}));
|
|
1329
|
-
var readCachedPrivateAddressSchema =
|
|
1330
|
-
type:
|
|
1331
|
-
address:
|
|
1040
|
+
var readCachedPrivateAddressSchema = z9.object({
|
|
1041
|
+
type: z9.literal(stellarStateCallTypes.readCachedPrivateAddress),
|
|
1042
|
+
address: z9.string().min(1)
|
|
1332
1043
|
}).transform(({ type, address }) => ({
|
|
1333
1044
|
type,
|
|
1334
1045
|
operations: [
|
|
@@ -1339,11 +1050,11 @@ var readCachedPrivateAddressSchema = z11.object({
|
|
|
1339
1050
|
}
|
|
1340
1051
|
]
|
|
1341
1052
|
}));
|
|
1342
|
-
var saveRegisteredPrivateAddressSchema =
|
|
1343
|
-
type:
|
|
1344
|
-
address:
|
|
1345
|
-
privateAddress:
|
|
1346
|
-
registered:
|
|
1053
|
+
var saveRegisteredPrivateAddressSchema = z9.object({
|
|
1054
|
+
type: z9.literal(stellarStateCallTypes.saveRegisteredPrivateAddress),
|
|
1055
|
+
address: z9.string().min(1),
|
|
1056
|
+
privateAddress: z9.string().min(1),
|
|
1057
|
+
registered: z9.boolean()
|
|
1347
1058
|
}).transform(({ type, address, privateAddress, registered: registered2 }) => {
|
|
1348
1059
|
const lookup = registryLookupSchema.parse({
|
|
1349
1060
|
owner: address,
|
|
@@ -1375,9 +1086,9 @@ var saveRegisteredPrivateAddressSchema = z11.object({
|
|
|
1375
1086
|
]
|
|
1376
1087
|
};
|
|
1377
1088
|
});
|
|
1378
|
-
var invalidateRegisteredAddressSchema =
|
|
1379
|
-
type:
|
|
1380
|
-
address:
|
|
1089
|
+
var invalidateRegisteredAddressSchema = z9.object({
|
|
1090
|
+
type: z9.literal(stellarStateCallTypes.invalidateRegisteredAddress),
|
|
1091
|
+
address: z9.string().min(1)
|
|
1381
1092
|
}).transform(({ type, address }) => ({
|
|
1382
1093
|
type,
|
|
1383
1094
|
operations: [
|
|
@@ -1398,9 +1109,9 @@ var invalidateRegisteredAddressSchema = z11.object({
|
|
|
1398
1109
|
}
|
|
1399
1110
|
]
|
|
1400
1111
|
}));
|
|
1401
|
-
var readRegistryLookupSchema =
|
|
1402
|
-
type:
|
|
1403
|
-
address:
|
|
1112
|
+
var readRegistryLookupSchema = z9.object({
|
|
1113
|
+
type: z9.literal(stellarStateCallTypes.readRegistryLookup),
|
|
1114
|
+
address: z9.string().min(1)
|
|
1404
1115
|
}).transform(({ type, address }) => ({
|
|
1405
1116
|
type,
|
|
1406
1117
|
operations: [
|
|
@@ -1411,8 +1122,8 @@ var readRegistryLookupSchema = z11.object({
|
|
|
1411
1122
|
}
|
|
1412
1123
|
]
|
|
1413
1124
|
}));
|
|
1414
|
-
var saveRegistryLookupSchema =
|
|
1415
|
-
type:
|
|
1125
|
+
var saveRegistryLookupSchema = z9.object({
|
|
1126
|
+
type: z9.literal(stellarStateCallTypes.saveRegistryLookup),
|
|
1416
1127
|
lookup: registryLookupSchema
|
|
1417
1128
|
}).transform(({ type, lookup }) => {
|
|
1418
1129
|
const operations = [
|
|
@@ -1448,9 +1159,9 @@ var saveRegistryLookupSchema = z11.object({
|
|
|
1448
1159
|
}
|
|
1449
1160
|
return { type, operations };
|
|
1450
1161
|
});
|
|
1451
|
-
var invalidateRegistryLookupSchema =
|
|
1452
|
-
type:
|
|
1453
|
-
address:
|
|
1162
|
+
var invalidateRegistryLookupSchema = z9.object({
|
|
1163
|
+
type: z9.literal(stellarStateCallTypes.invalidateRegistryLookup),
|
|
1164
|
+
address: z9.string().min(1)
|
|
1454
1165
|
}).transform(({ type, address }) => ({
|
|
1455
1166
|
type,
|
|
1456
1167
|
operations: [
|
|
@@ -1531,9 +1242,9 @@ var stellarTransactionStateDefinitions = [
|
|
|
1531
1242
|
];
|
|
1532
1243
|
|
|
1533
1244
|
// src/state/schemas/wallet/scalar.ts
|
|
1534
|
-
import { z as
|
|
1535
|
-
var saveWalletPrivateAddressScalarSchema =
|
|
1536
|
-
type:
|
|
1245
|
+
import { z as z10 } from "zod";
|
|
1246
|
+
var saveWalletPrivateAddressScalarSchema = z10.object({
|
|
1247
|
+
type: z10.literal(stellarStateCallTypes.saveWalletPrivateAddressScalar),
|
|
1537
1248
|
scalar: walletPrivateAddressScalarSchema
|
|
1538
1249
|
}).transform(({ type, scalar }) => ({
|
|
1539
1250
|
type,
|
|
@@ -1546,10 +1257,10 @@ var saveWalletPrivateAddressScalarSchema = z12.object({
|
|
|
1546
1257
|
}
|
|
1547
1258
|
]
|
|
1548
1259
|
}));
|
|
1549
|
-
var readWalletPrivateAddressScalarSchema =
|
|
1550
|
-
type:
|
|
1551
|
-
owner:
|
|
1552
|
-
nonce:
|
|
1260
|
+
var readWalletPrivateAddressScalarSchema = z10.object({
|
|
1261
|
+
type: z10.literal(stellarStateCallTypes.readWalletPrivateAddressScalar),
|
|
1262
|
+
owner: z10.string().min(1),
|
|
1263
|
+
nonce: z10.string().min(1)
|
|
1553
1264
|
}).transform(({ type, owner, nonce }) => ({
|
|
1554
1265
|
type,
|
|
1555
1266
|
operations: [
|
|
@@ -1562,9 +1273,9 @@ var readWalletPrivateAddressScalarSchema = z12.object({
|
|
|
1562
1273
|
}));
|
|
1563
1274
|
|
|
1564
1275
|
// src/state/schemas/wallet/private-address.ts
|
|
1565
|
-
import { z as
|
|
1566
|
-
var saveWalletPrivateAddressRecordSchema =
|
|
1567
|
-
type:
|
|
1276
|
+
import { z as z11 } from "zod";
|
|
1277
|
+
var saveWalletPrivateAddressRecordSchema = z11.object({
|
|
1278
|
+
type: z11.literal(stellarStateCallTypes.saveWalletPrivateAddressRecord),
|
|
1568
1279
|
record: walletPrivateAddressRecordSchema
|
|
1569
1280
|
}).transform(({ type, record }) => ({
|
|
1570
1281
|
type,
|
|
@@ -1577,10 +1288,10 @@ var saveWalletPrivateAddressRecordSchema = z13.object({
|
|
|
1577
1288
|
}
|
|
1578
1289
|
]
|
|
1579
1290
|
}));
|
|
1580
|
-
var readWalletPrivateAddressRecordSchema =
|
|
1581
|
-
type:
|
|
1582
|
-
owner:
|
|
1583
|
-
nonce:
|
|
1291
|
+
var readWalletPrivateAddressRecordSchema = z11.object({
|
|
1292
|
+
type: z11.literal(stellarStateCallTypes.readWalletPrivateAddressRecord),
|
|
1293
|
+
owner: z11.string().min(1),
|
|
1294
|
+
nonce: z11.string().min(1)
|
|
1584
1295
|
}).transform(({ type, owner, nonce }) => ({
|
|
1585
1296
|
type,
|
|
1586
1297
|
operations: [
|
|
@@ -1591,10 +1302,10 @@ var readWalletPrivateAddressRecordSchema = z13.object({
|
|
|
1591
1302
|
}
|
|
1592
1303
|
]
|
|
1593
1304
|
}));
|
|
1594
|
-
var setWalletDefaultPrivateAddressNonceSchema =
|
|
1595
|
-
type:
|
|
1596
|
-
owner:
|
|
1597
|
-
nonce:
|
|
1305
|
+
var setWalletDefaultPrivateAddressNonceSchema = z11.object({
|
|
1306
|
+
type: z11.literal(stellarStateCallTypes.setWalletDefaultPrivateAddressNonce),
|
|
1307
|
+
owner: z11.string().min(1),
|
|
1308
|
+
nonce: z11.string().min(1)
|
|
1598
1309
|
}).transform(({ type, owner, nonce }) => ({
|
|
1599
1310
|
type,
|
|
1600
1311
|
operations: [
|
|
@@ -1606,9 +1317,9 @@ var setWalletDefaultPrivateAddressNonceSchema = z13.object({
|
|
|
1606
1317
|
}
|
|
1607
1318
|
]
|
|
1608
1319
|
}));
|
|
1609
|
-
var readWalletDefaultPrivateAddressNonceSchema =
|
|
1610
|
-
type:
|
|
1611
|
-
owner:
|
|
1320
|
+
var readWalletDefaultPrivateAddressNonceSchema = z11.object({
|
|
1321
|
+
type: z11.literal(stellarStateCallTypes.readWalletDefaultPrivateAddressNonce),
|
|
1322
|
+
owner: z11.string().min(1)
|
|
1612
1323
|
}).transform(({ type, owner }) => ({
|
|
1613
1324
|
type,
|
|
1614
1325
|
operations: [
|
|
@@ -1619,10 +1330,10 @@ var readWalletDefaultPrivateAddressNonceSchema = z13.object({
|
|
|
1619
1330
|
}
|
|
1620
1331
|
]
|
|
1621
1332
|
}));
|
|
1622
|
-
var deleteWalletPrivateAddressScalarSchema =
|
|
1623
|
-
type:
|
|
1624
|
-
owner:
|
|
1625
|
-
nonce:
|
|
1333
|
+
var deleteWalletPrivateAddressScalarSchema = z11.object({
|
|
1334
|
+
type: z11.literal(stellarStateCallTypes.deleteWalletPrivateAddressScalar),
|
|
1335
|
+
owner: z11.string().min(1),
|
|
1336
|
+
nonce: z11.string().min(1)
|
|
1626
1337
|
}).transform(({ type, owner, nonce }) => ({
|
|
1627
1338
|
type,
|
|
1628
1339
|
operations: [
|
|
@@ -1676,7 +1387,6 @@ var stellarWalletStateDefinitions = [
|
|
|
1676
1387
|
// src/state/definitions/index.ts
|
|
1677
1388
|
registerStellarArrayFilterSchemas();
|
|
1678
1389
|
var stellarStateDefinitions = [
|
|
1679
|
-
...stellarClaimsStateDefinitions,
|
|
1680
1390
|
...stellarRegistryStateDefinitions,
|
|
1681
1391
|
...stellarAssetsStateDefinitions,
|
|
1682
1392
|
...stellarBalancesStateDefinitions,
|
|
@@ -1807,108 +1517,6 @@ function createAssetsService(context) {
|
|
|
1807
1517
|
};
|
|
1808
1518
|
}
|
|
1809
1519
|
|
|
1810
|
-
// src/state/service/claims/read-methods.ts
|
|
1811
|
-
function createClaimsReadMethods(context) {
|
|
1812
|
-
const { bridge } = context;
|
|
1813
|
-
async function getPendingClaims(filter = {}) {
|
|
1814
|
-
const value = await bridge.read({
|
|
1815
|
-
type: stellarStateCallTypes.readPendingClaims
|
|
1816
|
-
});
|
|
1817
|
-
const state = normalizePendingClaimsState(value);
|
|
1818
|
-
const items = state.items.filter((claim) => {
|
|
1819
|
-
if (filter.owner !== void 0 && claim.owner !== filter.owner) {
|
|
1820
|
-
return false;
|
|
1821
|
-
}
|
|
1822
|
-
if (filter.asset !== void 0 && claim.asset !== filter.asset) {
|
|
1823
|
-
return false;
|
|
1824
|
-
}
|
|
1825
|
-
return true;
|
|
1826
|
-
});
|
|
1827
|
-
if (state.pagination !== void 0) {
|
|
1828
|
-
return { items, pagination: state.pagination };
|
|
1829
|
-
}
|
|
1830
|
-
return { items };
|
|
1831
|
-
}
|
|
1832
|
-
return {
|
|
1833
|
-
getPendingClaims,
|
|
1834
|
-
async getPendingClaimsCount(owner) {
|
|
1835
|
-
const value = await bridge.read({
|
|
1836
|
-
type: stellarStateCallTypes.readPendingClaimsCount,
|
|
1837
|
-
owner
|
|
1838
|
-
});
|
|
1839
|
-
const count = normalizePendingClaimsCount(value);
|
|
1840
|
-
if (count !== void 0) {
|
|
1841
|
-
return count;
|
|
1842
|
-
}
|
|
1843
|
-
const claims = await getPendingClaims({ owner });
|
|
1844
|
-
return claims.items.length;
|
|
1845
|
-
}
|
|
1846
|
-
};
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
// src/state/service/claims/write-methods.ts
|
|
1850
|
-
function appendPendingClaims(bridge, claims, paginationInfo) {
|
|
1851
|
-
return bridge.write({
|
|
1852
|
-
type: stellarStateCallTypes.pendingClaims,
|
|
1853
|
-
claims,
|
|
1854
|
-
paginationInfo
|
|
1855
|
-
});
|
|
1856
|
-
}
|
|
1857
|
-
function replacePendingClaimsPage(bridge, input) {
|
|
1858
|
-
return bridge.write({
|
|
1859
|
-
type: stellarStateCallTypes.replacePendingClaimsPage,
|
|
1860
|
-
owner: input.owner,
|
|
1861
|
-
claims: input.claims,
|
|
1862
|
-
paginationInfo: input.paginationInfo,
|
|
1863
|
-
...input.count === void 0 ? {} : { count: input.count }
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
function upsertPendingClaims(bridge, claims) {
|
|
1867
|
-
return bridge.write({
|
|
1868
|
-
type: stellarStateCallTypes.upsertPendingClaims,
|
|
1869
|
-
claims
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
function removePendingClaims(bridge, ids) {
|
|
1873
|
-
return bridge.write({
|
|
1874
|
-
type: stellarStateCallTypes.removePendingClaims,
|
|
1875
|
-
ids
|
|
1876
|
-
});
|
|
1877
|
-
}
|
|
1878
|
-
function clearPendingClaims(bridge, input = {}) {
|
|
1879
|
-
return bridge.write({
|
|
1880
|
-
type: stellarStateCallTypes.clearPendingClaims,
|
|
1881
|
-
...input.owner === void 0 ? {} : { owner: input.owner },
|
|
1882
|
-
...input.asset === void 0 ? {} : { asset: input.asset }
|
|
1883
|
-
});
|
|
1884
|
-
}
|
|
1885
|
-
function setPendingClaimsCount(bridge, owner, count) {
|
|
1886
|
-
return bridge.write({
|
|
1887
|
-
type: stellarStateCallTypes.setPendingClaimsCount,
|
|
1888
|
-
owner,
|
|
1889
|
-
count
|
|
1890
|
-
});
|
|
1891
|
-
}
|
|
1892
|
-
function createClaimsWriteMethods(context) {
|
|
1893
|
-
const { bridge } = context;
|
|
1894
|
-
return {
|
|
1895
|
-
appendPendingClaims: (claims, paginationInfo) => appendPendingClaims(bridge, claims, paginationInfo),
|
|
1896
|
-
replacePendingClaimsPage: (input) => replacePendingClaimsPage(bridge, input),
|
|
1897
|
-
upsertPendingClaims: (claims) => upsertPendingClaims(bridge, claims),
|
|
1898
|
-
removePendingClaims: (ids) => removePendingClaims(bridge, ids),
|
|
1899
|
-
clearPendingClaims: (input = {}) => clearPendingClaims(bridge, input),
|
|
1900
|
-
setPendingClaimsCount: (owner, count) => setPendingClaimsCount(bridge, owner, count)
|
|
1901
|
-
};
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
// src/state/service/claims/index.ts
|
|
1905
|
-
function createClaimsService(context) {
|
|
1906
|
-
return {
|
|
1907
|
-
...createClaimsWriteMethods(context),
|
|
1908
|
-
...createClaimsReadMethods(context)
|
|
1909
|
-
};
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
1520
|
// src/state/service/deliveries/incoming-methods.ts
|
|
1913
1521
|
function createIncomingDeliveryMethods(context) {
|
|
1914
1522
|
const { bridge } = context;
|
|
@@ -2434,7 +2042,6 @@ function composeStellarStateService(adapter) {
|
|
|
2434
2042
|
...createWalletAddressService(base),
|
|
2435
2043
|
...createPoolMerkleService(base),
|
|
2436
2044
|
...createPoolEphemeralService(base),
|
|
2437
|
-
...createClaimsService(base),
|
|
2438
2045
|
...createDeliveriesService(base),
|
|
2439
2046
|
...createRecordsService(base)
|
|
2440
2047
|
};
|
|
@@ -2462,7 +2069,6 @@ export {
|
|
|
2462
2069
|
listWalletPrivateAddressRecordsForOwnerFromStateSnapshot,
|
|
2463
2070
|
listWalletPrivateAddressScalarsForOwnerFromStateSnapshot,
|
|
2464
2071
|
paginationSchema,
|
|
2465
|
-
pendingClaimSchema,
|
|
2466
2072
|
poolMerkleStateSchema,
|
|
2467
2073
|
privateRecordSchema,
|
|
2468
2074
|
publicBalanceSchema,
|