@radix-effects/gateway 0.2.1 → 0.3.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/index.d.ts +171 -1
- package/dist/index.js +141 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -521,4 +521,174 @@ declare const Rola_base: Effect.Service.Class<Rola, "Rola", {
|
|
|
521
521
|
}>;
|
|
522
522
|
declare class Rola extends Rola_base {}
|
|
523
523
|
//#endregion
|
|
524
|
-
|
|
524
|
+
//#region src/sbor.d.ts
|
|
525
|
+
declare const ScryptoSborValueKind: Schema.Literal<["Bool", "I8", "I16", "I32", "I64", "I128", "U8", "U16", "U32", "U64", "U128", "String", "Enum", "Array", "Bytes", "Map", "Tuple", "Reference", "Own", "Decimal", "PreciseDecimal", "NonFungibleLocalId"]>;
|
|
526
|
+
type ScryptoSborValueKind = typeof ScryptoSborValueKind.Type;
|
|
527
|
+
declare const ScryptoSborValueBool: Schema.Struct<{
|
|
528
|
+
kind: Schema.Literal<["Bool"]>;
|
|
529
|
+
value: typeof Schema.Boolean;
|
|
530
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
531
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
532
|
+
}>;
|
|
533
|
+
declare const ScryptoSborValueString: Schema.Struct<{
|
|
534
|
+
kind: Schema.Literal<["String"]>;
|
|
535
|
+
value: typeof Schema.String;
|
|
536
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
537
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
538
|
+
}>;
|
|
539
|
+
declare const ScryptoSborValueBytes: Schema.Struct<{
|
|
540
|
+
kind: Schema.Literal<["Bytes"]>;
|
|
541
|
+
element_kind: Schema.Literal<["Bool", "I8", "I16", "I32", "I64", "I128", "U8", "U16", "U32", "U64", "U128", "String", "Enum", "Array", "Bytes", "Map", "Tuple", "Reference", "Own", "Decimal", "PreciseDecimal", "NonFungibleLocalId"]>;
|
|
542
|
+
element_type_name: Schema.optional<typeof Schema.String>;
|
|
543
|
+
hex: typeof Schema.String;
|
|
544
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
545
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
546
|
+
}>;
|
|
547
|
+
declare const ScryptoSborValueDecimal: Schema.Struct<{
|
|
548
|
+
kind: Schema.Literal<["Decimal"]>;
|
|
549
|
+
value: typeof Schema.String;
|
|
550
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
551
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
552
|
+
}>;
|
|
553
|
+
declare const ScryptoSborValuePreciseDecimal: Schema.Struct<{
|
|
554
|
+
kind: Schema.Literal<["PreciseDecimal"]>;
|
|
555
|
+
value: typeof Schema.String;
|
|
556
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
557
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
558
|
+
}>;
|
|
559
|
+
declare const ScryptoSborValueReference: Schema.Struct<{
|
|
560
|
+
kind: Schema.Literal<["Reference"]>;
|
|
561
|
+
value: typeof Schema.String;
|
|
562
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
563
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
564
|
+
}>;
|
|
565
|
+
declare const ScryptoSborValueOwn: Schema.Struct<{
|
|
566
|
+
kind: Schema.Literal<["Own"]>;
|
|
567
|
+
value: typeof Schema.String;
|
|
568
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
569
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
570
|
+
}>;
|
|
571
|
+
declare const ScryptoSborValueNonFungibleLocalId: Schema.Struct<{
|
|
572
|
+
kind: Schema.Literal<["NonFungibleLocalId"]>;
|
|
573
|
+
value: typeof Schema.String;
|
|
574
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
575
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
576
|
+
}>;
|
|
577
|
+
declare const ScryptoSborValueI8: Schema.Struct<{
|
|
578
|
+
kind: Schema.Literal<["I8"]>;
|
|
579
|
+
value: typeof Schema.String;
|
|
580
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
581
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
582
|
+
}>;
|
|
583
|
+
declare const ScryptoSborValueI16: Schema.Struct<{
|
|
584
|
+
kind: Schema.Literal<["I16"]>;
|
|
585
|
+
value: typeof Schema.String;
|
|
586
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
587
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
588
|
+
}>;
|
|
589
|
+
declare const ScryptoSborValueI32: Schema.Struct<{
|
|
590
|
+
kind: Schema.Literal<["I32"]>;
|
|
591
|
+
value: typeof Schema.String;
|
|
592
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
593
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
594
|
+
}>;
|
|
595
|
+
declare const ScryptoSborValueI64: Schema.Struct<{
|
|
596
|
+
kind: Schema.Literal<["I64"]>;
|
|
597
|
+
value: typeof Schema.String;
|
|
598
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
599
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
600
|
+
}>;
|
|
601
|
+
declare const ScryptoSborValueI128: Schema.Struct<{
|
|
602
|
+
kind: Schema.Literal<["I128"]>;
|
|
603
|
+
value: typeof Schema.String;
|
|
604
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
605
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
606
|
+
}>;
|
|
607
|
+
declare const ScryptoSborValueU8: Schema.Struct<{
|
|
608
|
+
kind: Schema.Literal<["U8"]>;
|
|
609
|
+
value: typeof Schema.String;
|
|
610
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
611
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
612
|
+
}>;
|
|
613
|
+
declare const ScryptoSborValueU16: Schema.Struct<{
|
|
614
|
+
kind: Schema.Literal<["U16"]>;
|
|
615
|
+
value: typeof Schema.String;
|
|
616
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
617
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
618
|
+
}>;
|
|
619
|
+
declare const ScryptoSborValueU32: Schema.Struct<{
|
|
620
|
+
kind: Schema.Literal<["U32"]>;
|
|
621
|
+
value: typeof Schema.String;
|
|
622
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
623
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
624
|
+
}>;
|
|
625
|
+
declare const ScryptoSborValueU64: Schema.Struct<{
|
|
626
|
+
kind: Schema.Literal<["U64"]>;
|
|
627
|
+
value: typeof Schema.String;
|
|
628
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
629
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
630
|
+
}>;
|
|
631
|
+
declare const ScryptoSborValueU128: Schema.Struct<{
|
|
632
|
+
kind: Schema.Literal<["U128"]>;
|
|
633
|
+
value: typeof Schema.String;
|
|
634
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
635
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
636
|
+
}>;
|
|
637
|
+
type ScryptoSborValueBool = typeof ScryptoSborValueBool.Type;
|
|
638
|
+
type ScryptoSborValueString = typeof ScryptoSborValueString.Type;
|
|
639
|
+
type ScryptoSborValueBytes = typeof ScryptoSborValueBytes.Type;
|
|
640
|
+
type ScryptoSborValueDecimal = typeof ScryptoSborValueDecimal.Type;
|
|
641
|
+
type ScryptoSborValuePreciseDecimal = typeof ScryptoSborValuePreciseDecimal.Type;
|
|
642
|
+
type ScryptoSborValueReference = typeof ScryptoSborValueReference.Type;
|
|
643
|
+
type ScryptoSborValueOwn = typeof ScryptoSborValueOwn.Type;
|
|
644
|
+
type ScryptoSborValueNonFungibleLocalId = typeof ScryptoSborValueNonFungibleLocalId.Type;
|
|
645
|
+
type ScryptoSborValueI8 = typeof ScryptoSborValueI8.Type;
|
|
646
|
+
type ScryptoSborValueI16 = typeof ScryptoSborValueI16.Type;
|
|
647
|
+
type ScryptoSborValueI32 = typeof ScryptoSborValueI32.Type;
|
|
648
|
+
type ScryptoSborValueI64 = typeof ScryptoSborValueI64.Type;
|
|
649
|
+
type ScryptoSborValueI128 = typeof ScryptoSborValueI128.Type;
|
|
650
|
+
type ScryptoSborValueU8 = typeof ScryptoSborValueU8.Type;
|
|
651
|
+
type ScryptoSborValueU16 = typeof ScryptoSborValueU16.Type;
|
|
652
|
+
type ScryptoSborValueU32 = typeof ScryptoSborValueU32.Type;
|
|
653
|
+
type ScryptoSborValueU64 = typeof ScryptoSborValueU64.Type;
|
|
654
|
+
type ScryptoSborValueU128 = typeof ScryptoSborValueU128.Type;
|
|
655
|
+
interface ScryptoSborValueArray {
|
|
656
|
+
type_name?: string | null | undefined;
|
|
657
|
+
field_name?: string | null | undefined;
|
|
658
|
+
kind: 'Array';
|
|
659
|
+
element_kind: ScryptoSborValueKind;
|
|
660
|
+
element_type_name?: string | undefined;
|
|
661
|
+
elements: readonly ScryptoSborValueSchema[];
|
|
662
|
+
}
|
|
663
|
+
interface ScryptoSborValueMapEntry {
|
|
664
|
+
key: ScryptoSborValueSchema;
|
|
665
|
+
value: ScryptoSborValueSchema;
|
|
666
|
+
}
|
|
667
|
+
interface ScryptoSborValueMap {
|
|
668
|
+
type_name?: string | null | undefined;
|
|
669
|
+
field_name?: string | null | undefined;
|
|
670
|
+
kind: 'Map';
|
|
671
|
+
key_kind: ScryptoSborValueKind;
|
|
672
|
+
key_type_name?: string | undefined;
|
|
673
|
+
value_kind: ScryptoSborValueKind;
|
|
674
|
+
value_type_name?: string | undefined;
|
|
675
|
+
entries: readonly ScryptoSborValueMapEntry[];
|
|
676
|
+
}
|
|
677
|
+
interface ScryptoSborValueTuple {
|
|
678
|
+
type_name?: string | null | undefined;
|
|
679
|
+
field_name?: string | null | undefined;
|
|
680
|
+
kind: 'Tuple';
|
|
681
|
+
fields: readonly ScryptoSborValueSchema[];
|
|
682
|
+
}
|
|
683
|
+
interface ScryptoSborValueEnum {
|
|
684
|
+
type_name?: string | null | undefined;
|
|
685
|
+
field_name?: string | null | undefined;
|
|
686
|
+
kind: 'Enum';
|
|
687
|
+
variant_id: string;
|
|
688
|
+
variant_name?: string | undefined;
|
|
689
|
+
fields: readonly ScryptoSborValueSchema[];
|
|
690
|
+
}
|
|
691
|
+
type ScryptoSborValueSchema = ScryptoSborValueBool | ScryptoSborValueString | ScryptoSborValueBytes | ScryptoSborValueDecimal | ScryptoSborValuePreciseDecimal | ScryptoSborValueReference | ScryptoSborValueOwn | ScryptoSborValueNonFungibleLocalId | ScryptoSborValueI8 | ScryptoSborValueI16 | ScryptoSborValueI32 | ScryptoSborValueI64 | ScryptoSborValueI128 | ScryptoSborValueU8 | ScryptoSborValueU16 | ScryptoSborValueU32 | ScryptoSborValueU64 | ScryptoSborValueU128 | ScryptoSborValueArray | ScryptoSborValueMap | ScryptoSborValueTuple | ScryptoSborValueEnum;
|
|
692
|
+
declare const ScryptoSborValueSchema: Schema.Schema<ScryptoSborValueSchema>;
|
|
693
|
+
//#endregion
|
|
694
|
+
export { AccountLockerNotFoundError, AccountProof, AccountProofSchema, AtLedgerState, AtLedgerStateSchema, EntityFungiblesPage, EntityNonFungibleIdsPage, EntityNonFungiblesPage, EntityNotFoundError, ErrorResponse, GatewayApiClient, GetAddressByNonFungibleService, GetAddressByNonFungibleServiceInput, GetComponentStateService, GetEntityDetailsInput, GetEntityDetailsOptions, GetEntityDetailsState, GetEntityDetailsVaultAggregated, GetEntityDetailsVaultAggregatedParameters, GetFungibleBalance, GetFungibleBalanceOutput, GetKeyValueStoreService, GetLedgerStateInput, GetLedgerStateService, GetNftResourceManagersService, GetNonFungibleBalanceOutput, GetNonFungibleBalanceService, GetNonFungibleIdsInput, GetNonFungibleLocationService, GetResourceHoldersService, GetValidators, InternalServerError, InvalidComponentStateError, InvalidEntityError, InvalidInputError, InvalidRequestError, InvalidStateInputError, InvalidTransactionError, KeyValueStoreDataService, KeyValueStoreKeysService, NonFungibleData, NotSyncedUpError, PersonaProof, PersonaProofSchema, ProofSchema, RateLimitExceededError, ResponseError, Rola, RolaProof, RolaProofSchema, ScryptoSborValueKind, type ScryptoSborValueMapEntry, ScryptoSborValueSchema, StateVersion, StateVersionSchema, TimestampSchema, TransactionNotFoundError, UnknownGatewayError, Validator, ValidatorSchema, VerifyRolaProofError, validateAtLedgerStateInput };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config, Data, Effect, Schema } from "effect";
|
|
1
|
+
import { Config, Data, Duration, Effect, Schema } from "effect";
|
|
2
2
|
import { GatewayApiClient as GatewayApiClient$1, ResponseError as ResponseError$1 } from "@radixdlt/babylon-gateway-api-sdk";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { BigNumber } from "bignumber.js";
|
|
@@ -89,7 +89,12 @@ var GatewayApiClient = class extends Effect.Service()("GatewayApiClient", { effe
|
|
|
89
89
|
}
|
|
90
90
|
return new UnknownGatewayError({ error });
|
|
91
91
|
}
|
|
92
|
-
})
|
|
92
|
+
}).pipe(Effect.tapError((error) => Effect.gen(function* () {
|
|
93
|
+
if (error._tag === "RateLimitExceededError") {
|
|
94
|
+
yield* Effect.log(`Rate limit exceeded, retrying in ${error.retryAfter} seconds`);
|
|
95
|
+
yield* Effect.sleep(Duration.seconds(error.retryAfter));
|
|
96
|
+
}
|
|
97
|
+
})), Effect.retry({ while: (error) => error._tag === "RateLimitExceededError" }));
|
|
93
98
|
};
|
|
94
99
|
return {
|
|
95
100
|
state: {
|
|
@@ -807,4 +812,137 @@ var Rola = class extends Effect.Service()("Rola", {
|
|
|
807
812
|
}) {};
|
|
808
813
|
|
|
809
814
|
//#endregion
|
|
810
|
-
|
|
815
|
+
//#region src/sbor.ts
|
|
816
|
+
const ScryptoSborValueKind = Schema.Literal("Bool", "I8", "I16", "I32", "I64", "I128", "U8", "U16", "U32", "U64", "U128", "String", "Enum", "Array", "Bytes", "Map", "Tuple", "Reference", "Own", "Decimal", "PreciseDecimal", "NonFungibleLocalId");
|
|
817
|
+
const ScryptoSborValueBase = Schema.Struct({
|
|
818
|
+
type_name: Schema.optional(Schema.NullOr(Schema.String)),
|
|
819
|
+
field_name: Schema.optional(Schema.NullOr(Schema.String))
|
|
820
|
+
});
|
|
821
|
+
const ScryptoSborValueBool = Schema.Struct({
|
|
822
|
+
...ScryptoSborValueBase.fields,
|
|
823
|
+
kind: Schema.Literal("Bool"),
|
|
824
|
+
value: Schema.Boolean
|
|
825
|
+
});
|
|
826
|
+
const ScryptoSborValueString = Schema.Struct({
|
|
827
|
+
...ScryptoSborValueBase.fields,
|
|
828
|
+
kind: Schema.Literal("String"),
|
|
829
|
+
value: Schema.String
|
|
830
|
+
});
|
|
831
|
+
const ScryptoSborValueBytes = Schema.Struct({
|
|
832
|
+
...ScryptoSborValueBase.fields,
|
|
833
|
+
kind: Schema.Literal("Bytes"),
|
|
834
|
+
element_kind: ScryptoSborValueKind,
|
|
835
|
+
element_type_name: Schema.optional(Schema.String),
|
|
836
|
+
hex: Schema.String
|
|
837
|
+
});
|
|
838
|
+
const ScryptoSborValueDecimal = Schema.Struct({
|
|
839
|
+
...ScryptoSborValueBase.fields,
|
|
840
|
+
kind: Schema.Literal("Decimal"),
|
|
841
|
+
value: Schema.String
|
|
842
|
+
});
|
|
843
|
+
const ScryptoSborValuePreciseDecimal = Schema.Struct({
|
|
844
|
+
...ScryptoSborValueBase.fields,
|
|
845
|
+
kind: Schema.Literal("PreciseDecimal"),
|
|
846
|
+
value: Schema.String
|
|
847
|
+
});
|
|
848
|
+
const ScryptoSborValueReference = Schema.Struct({
|
|
849
|
+
...ScryptoSborValueBase.fields,
|
|
850
|
+
kind: Schema.Literal("Reference"),
|
|
851
|
+
value: Schema.String
|
|
852
|
+
});
|
|
853
|
+
const ScryptoSborValueOwn = Schema.Struct({
|
|
854
|
+
...ScryptoSborValueBase.fields,
|
|
855
|
+
kind: Schema.Literal("Own"),
|
|
856
|
+
value: Schema.String
|
|
857
|
+
});
|
|
858
|
+
const ScryptoSborValueNonFungibleLocalId = Schema.Struct({
|
|
859
|
+
...ScryptoSborValueBase.fields,
|
|
860
|
+
kind: Schema.Literal("NonFungibleLocalId"),
|
|
861
|
+
value: Schema.String
|
|
862
|
+
});
|
|
863
|
+
const ScryptoSborValueI8 = Schema.Struct({
|
|
864
|
+
...ScryptoSborValueBase.fields,
|
|
865
|
+
kind: Schema.Literal("I8"),
|
|
866
|
+
value: Schema.String
|
|
867
|
+
});
|
|
868
|
+
const ScryptoSborValueI16 = Schema.Struct({
|
|
869
|
+
...ScryptoSborValueBase.fields,
|
|
870
|
+
kind: Schema.Literal("I16"),
|
|
871
|
+
value: Schema.String
|
|
872
|
+
});
|
|
873
|
+
const ScryptoSborValueI32 = Schema.Struct({
|
|
874
|
+
...ScryptoSborValueBase.fields,
|
|
875
|
+
kind: Schema.Literal("I32"),
|
|
876
|
+
value: Schema.String
|
|
877
|
+
});
|
|
878
|
+
const ScryptoSborValueI64 = Schema.Struct({
|
|
879
|
+
...ScryptoSborValueBase.fields,
|
|
880
|
+
kind: Schema.Literal("I64"),
|
|
881
|
+
value: Schema.String
|
|
882
|
+
});
|
|
883
|
+
const ScryptoSborValueI128 = Schema.Struct({
|
|
884
|
+
...ScryptoSborValueBase.fields,
|
|
885
|
+
kind: Schema.Literal("I128"),
|
|
886
|
+
value: Schema.String
|
|
887
|
+
});
|
|
888
|
+
const ScryptoSborValueU8 = Schema.Struct({
|
|
889
|
+
...ScryptoSborValueBase.fields,
|
|
890
|
+
kind: Schema.Literal("U8"),
|
|
891
|
+
value: Schema.String
|
|
892
|
+
});
|
|
893
|
+
const ScryptoSborValueU16 = Schema.Struct({
|
|
894
|
+
...ScryptoSborValueBase.fields,
|
|
895
|
+
kind: Schema.Literal("U16"),
|
|
896
|
+
value: Schema.String
|
|
897
|
+
});
|
|
898
|
+
const ScryptoSborValueU32 = Schema.Struct({
|
|
899
|
+
...ScryptoSborValueBase.fields,
|
|
900
|
+
kind: Schema.Literal("U32"),
|
|
901
|
+
value: Schema.String
|
|
902
|
+
});
|
|
903
|
+
const ScryptoSborValueU64 = Schema.Struct({
|
|
904
|
+
...ScryptoSborValueBase.fields,
|
|
905
|
+
kind: Schema.Literal("U64"),
|
|
906
|
+
value: Schema.String
|
|
907
|
+
});
|
|
908
|
+
const ScryptoSborValueU128 = Schema.Struct({
|
|
909
|
+
...ScryptoSborValueBase.fields,
|
|
910
|
+
kind: Schema.Literal("U128"),
|
|
911
|
+
value: Schema.String
|
|
912
|
+
});
|
|
913
|
+
const ScryptoSborValueMapEntrySchema = Schema.suspend(() => Schema.Struct({
|
|
914
|
+
key: ScryptoSborValueSchema,
|
|
915
|
+
value: ScryptoSborValueSchema
|
|
916
|
+
}));
|
|
917
|
+
const ScryptoSborValueArraySchema = Schema.suspend(() => Schema.Struct({
|
|
918
|
+
...ScryptoSborValueBase.fields,
|
|
919
|
+
kind: Schema.Literal("Array"),
|
|
920
|
+
element_kind: ScryptoSborValueKind,
|
|
921
|
+
element_type_name: Schema.optional(Schema.String),
|
|
922
|
+
elements: Schema.Array(ScryptoSborValueSchema)
|
|
923
|
+
}));
|
|
924
|
+
const ScryptoSborValueMapSchema = Schema.suspend(() => Schema.Struct({
|
|
925
|
+
...ScryptoSborValueBase.fields,
|
|
926
|
+
kind: Schema.Literal("Map"),
|
|
927
|
+
key_kind: ScryptoSborValueKind,
|
|
928
|
+
key_type_name: Schema.optional(Schema.String),
|
|
929
|
+
value_kind: ScryptoSborValueKind,
|
|
930
|
+
value_type_name: Schema.optional(Schema.String),
|
|
931
|
+
entries: Schema.Array(ScryptoSborValueMapEntrySchema)
|
|
932
|
+
}));
|
|
933
|
+
const ScryptoSborValueTupleSchema = Schema.suspend(() => Schema.Struct({
|
|
934
|
+
...ScryptoSborValueBase.fields,
|
|
935
|
+
kind: Schema.Literal("Tuple"),
|
|
936
|
+
fields: Schema.Array(ScryptoSborValueSchema)
|
|
937
|
+
}));
|
|
938
|
+
const ScryptoSborValueEnumSchema = Schema.suspend(() => Schema.Struct({
|
|
939
|
+
...ScryptoSborValueBase.fields,
|
|
940
|
+
kind: Schema.Literal("Enum"),
|
|
941
|
+
variant_id: Schema.String,
|
|
942
|
+
variant_name: Schema.optional(Schema.String),
|
|
943
|
+
fields: Schema.Array(ScryptoSborValueSchema)
|
|
944
|
+
}));
|
|
945
|
+
const ScryptoSborValueSchema = Schema.Union(ScryptoSborValueBool, ScryptoSborValueString, ScryptoSborValueBytes, ScryptoSborValueDecimal, ScryptoSborValuePreciseDecimal, ScryptoSborValueReference, ScryptoSborValueOwn, ScryptoSborValueNonFungibleLocalId, ScryptoSborValueI8, ScryptoSborValueI16, ScryptoSborValueI32, ScryptoSborValueI64, ScryptoSborValueI128, ScryptoSborValueU8, ScryptoSborValueU16, ScryptoSborValueU32, ScryptoSborValueU64, ScryptoSborValueU128, ScryptoSborValueArraySchema, ScryptoSborValueMapSchema, ScryptoSborValueTupleSchema, ScryptoSborValueEnumSchema);
|
|
946
|
+
|
|
947
|
+
//#endregion
|
|
948
|
+
export { AccountLockerNotFoundError, AccountProofSchema, AtLedgerStateSchema, EntityFungiblesPage, EntityNonFungibleIdsPage, EntityNonFungiblesPage, EntityNotFoundError, ErrorResponse, GatewayApiClient, GetAddressByNonFungibleService, GetComponentStateService, GetEntityDetailsVaultAggregated, GetFungibleBalance, GetKeyValueStoreService, GetLedgerStateService, GetNftResourceManagersService, GetNonFungibleBalanceService, GetNonFungibleLocationService, GetResourceHoldersService, GetValidators, InternalServerError, InvalidComponentStateError, InvalidEntityError, InvalidInputError, InvalidRequestError, InvalidStateInputError, InvalidTransactionError, KeyValueStoreDataService, KeyValueStoreKeysService, NonFungibleData, NotSyncedUpError, PersonaProofSchema, ProofSchema, RateLimitExceededError, ResponseError, Rola, RolaProofSchema, ScryptoSborValueKind, ScryptoSborValueSchema, StateVersionSchema, TimestampSchema, TransactionNotFoundError, UnknownGatewayError, ValidatorSchema, VerifyRolaProofError, validateAtLedgerStateInput };
|