@radix-effects/gateway 0.2.1 → 0.3.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/dist/index.d.ts +236 -65
- package/dist/index.js +143 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _radixdlt_babylon_gateway_api_sdk0 from "@radixdlt/babylon-gateway-api-sdk";
|
|
3
3
|
import { AccountLockerNotFoundError as AccountLockerNotFoundError$1, EntityFungiblesPageRequest, EntityNotFoundError as EntityNotFoundError$1, ErrorResponse as ErrorResponse$1, GatewayApiClient as GatewayApiClient$1, InternalServerError as InternalServerError$1, InvalidEntityError as InvalidEntityError$1, InvalidRequestError as InvalidRequestError$1, InvalidTransactionError as InvalidTransactionError$1, NotSyncedUpError as NotSyncedUpError$1, ResourceHoldersCollectionItem, ResponseError as ResponseError$1, StateEntityDetailsOperationRequest, StateEntityDetailsVaultResponseItem, StateKeyValueStoreDataRequest, StateKeyValueStoreKeysRequest, TransactionNotFoundError as TransactionNotFoundError$1 } from "@radixdlt/babylon-gateway-api-sdk";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { RolaError } from "@radixdlt/rola";
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
6
|
+
import * as effect_Layer18 from "effect/Layer";
|
|
7
|
+
import * as effect_ConfigError17 from "effect/ConfigError";
|
|
8
8
|
import * as effect_Types0 from "effect/Types";
|
|
9
9
|
import * as effect_Cause0 from "effect/Cause";
|
|
10
10
|
import { ParsedType, StructDefinition, StructSchema } from "sbor-ez-mode";
|
|
@@ -91,24 +91,24 @@ declare class UnknownGatewayError extends UnknownGatewayError_base<{
|
|
|
91
91
|
declare const GatewayApiClient_base: Effect.Service.Class<GatewayApiClient, "GatewayApiClient", {
|
|
92
92
|
readonly effect: Effect.Effect<{
|
|
93
93
|
state: {
|
|
94
|
-
getEntityDetailsVaultAggregated: (addresses: string[], options?:
|
|
95
|
-
getValidators: (cursor?: string | undefined) => Effect.Effect<
|
|
94
|
+
getEntityDetailsVaultAggregated: (addresses: string[], options?: _radixdlt_babylon_gateway_api_sdk0.StateEntityDetailsOptions | undefined, ledgerState?: _radixdlt_babylon_gateway_api_sdk0.LedgerStateSelector | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateEntityDetailsVaultResponseItem[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
95
|
+
getValidators: (cursor?: string | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.ValidatorCollection, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
96
96
|
innerClient: {
|
|
97
|
-
stateEntityDetails: (requestParameters:
|
|
98
|
-
entityFungiblesPage: (requestParameters:
|
|
99
|
-
entityNonFungiblesPage: (requestParameters:
|
|
100
|
-
entityNonFungibleIdsPage: (requestParameters:
|
|
101
|
-
entityNonFungibleResourceVaultPage: (requestParameters:
|
|
102
|
-
keyValueStoreKeys: (requestParameters:
|
|
103
|
-
keyValueStoreData: (requestParameters:
|
|
104
|
-
nonFungibleData: (requestParameters:
|
|
105
|
-
nonFungibleLocation: (requestParameters:
|
|
106
|
-
nonFungibleIds: (requestParameters:
|
|
97
|
+
stateEntityDetails: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.StateEntityDetailsOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateEntityDetailsResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
98
|
+
entityFungiblesPage: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.EntityFungiblesPageRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateEntityFungiblesPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
99
|
+
entityNonFungiblesPage: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.EntityNonFungiblesPageRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateEntityNonFungiblesPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
100
|
+
entityNonFungibleIdsPage: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.EntityNonFungibleIdsPageRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateEntityNonFungibleIdsPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
101
|
+
entityNonFungibleResourceVaultPage: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.EntityNonFungibleResourceVaultPageRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateEntityNonFungibleResourceVaultsPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
102
|
+
keyValueStoreKeys: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.KeyValueStoreKeysRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateKeyValueStoreKeysResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
103
|
+
keyValueStoreData: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.KeyValueStoreDataRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateKeyValueStoreDataResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
104
|
+
nonFungibleData: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.NonFungibleDataRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateNonFungibleDataResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
105
|
+
nonFungibleLocation: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.NonFungibleLocationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateNonFungibleLocationResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
106
|
+
nonFungibleIds: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.NonFungibleIdsRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateNonFungibleIdsResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
stream: {
|
|
110
110
|
innerClient: {
|
|
111
|
-
streamTransactions: (requestParameters:
|
|
111
|
+
streamTransactions: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.StreamTransactionsOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StreamTransactionsResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
transaction: {
|
|
@@ -124,20 +124,21 @@ declare const GatewayApiClient_base: Effect.Service.Class<GatewayApiClient, "Gat
|
|
|
124
124
|
balanceChanges: boolean;
|
|
125
125
|
receiptOutput: boolean;
|
|
126
126
|
manifestInstructions: boolean;
|
|
127
|
-
} | undefined) => Effect.Effect<
|
|
127
|
+
} | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.TransactionCommittedDetailsResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
128
128
|
innerClient: {
|
|
129
|
-
transactionSubmit: (requestParameters:
|
|
130
|
-
transactionStatus: (requestParameters:
|
|
129
|
+
transactionSubmit: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.TransactionSubmitOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.TransactionSubmitResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
130
|
+
transactionStatus: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.TransactionStatusOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.TransactionStatusResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
131
|
+
transactionPreview: (requestParameters: _radixdlt_babylon_gateway_api_sdk0.TransactionPreviewOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.TransactionPreviewResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
131
132
|
};
|
|
132
133
|
};
|
|
133
134
|
status: {
|
|
134
|
-
getCurrent: () => Effect.Effect<
|
|
135
|
+
getCurrent: () => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.GatewayStatusResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
135
136
|
innerClient: {
|
|
136
|
-
gatewayStatus: (initOverrides?: RequestInit |
|
|
137
|
+
gatewayStatus: (initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk0.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.GatewayStatusResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
137
138
|
};
|
|
138
139
|
};
|
|
139
140
|
extensions: {
|
|
140
|
-
getResourceHolders: (resourceAddress: string, cursor?: string | undefined) => Effect.Effect<
|
|
141
|
+
getResourceHolders: (resourceAddress: string, cursor?: string | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.ResourceHoldersResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
141
142
|
};
|
|
142
143
|
rawClient: GatewayApiClient$1;
|
|
143
144
|
}, never, never>;
|
|
@@ -186,26 +187,26 @@ type EntityFungiblesPageInput = Omit<EntityFungiblesPageRequest['stateEntityFung
|
|
|
186
187
|
at_ledger_state: AtLedgerState;
|
|
187
188
|
};
|
|
188
189
|
declare const EntityFungiblesPage_base: Effect.Service.Class<EntityFungiblesPage, "EntityFungiblesPage", {
|
|
189
|
-
readonly dependencies: readonly [
|
|
190
|
-
readonly effect: Effect.Effect<(this: unknown, input: EntityFungiblesPageInput) => Effect.Effect<
|
|
190
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
191
|
+
readonly effect: Effect.Effect<(this: unknown, input: EntityFungiblesPageInput) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.FungibleResourcesCollectionItem[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GatewayApiClient>;
|
|
191
192
|
}>;
|
|
192
193
|
declare class EntityFungiblesPage extends EntityFungiblesPage_base {}
|
|
193
194
|
//#endregion
|
|
194
195
|
//#region src/state/nonFungibleData.d.ts
|
|
195
196
|
declare const NonFungibleData_base: Effect.Service.Class<NonFungibleData, "NonFungibleData", {
|
|
196
|
-
readonly dependencies: readonly [
|
|
197
|
-
readonly effect: Effect.Effect<(this: unknown, input: Omit<
|
|
197
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
198
|
+
readonly effect: Effect.Effect<(this: unknown, input: Omit<_radixdlt_babylon_gateway_api_sdk0.StateNonFungibleDataRequest, "at_ledger_state"> & {
|
|
198
199
|
at_ledger_state: AtLedgerState;
|
|
199
|
-
}) => Effect.Effect<
|
|
200
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateNonFungibleDetailsResponseItem[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GatewayApiClient>;
|
|
200
201
|
}>;
|
|
201
202
|
declare class NonFungibleData extends NonFungibleData_base {}
|
|
202
203
|
//#endregion
|
|
203
204
|
//#region src/state/entityNonFungiblesPage.d.ts
|
|
204
205
|
declare const EntityNonFungiblesPage_base: Effect.Service.Class<EntityNonFungiblesPage, "EntityNonFungiblesPage", {
|
|
205
|
-
readonly dependencies: readonly [
|
|
206
|
-
readonly effect: Effect.Effect<(this: unknown, input: Omit<
|
|
206
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
207
|
+
readonly effect: Effect.Effect<(this: unknown, input: Omit<_radixdlt_babylon_gateway_api_sdk0.StateEntityNonFungiblesPageRequest, "at_ledger_state"> & {
|
|
207
208
|
at_ledger_state: AtLedgerState;
|
|
208
|
-
}) => Effect.Effect<
|
|
209
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateEntityNonFungiblesPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GatewayApiClient>;
|
|
209
210
|
}>;
|
|
210
211
|
declare class EntityNonFungiblesPage extends EntityNonFungiblesPage_base {}
|
|
211
212
|
//#endregion
|
|
@@ -228,7 +229,7 @@ declare const ValidatorSchema: z.ZodObject<{
|
|
|
228
229
|
}>;
|
|
229
230
|
type Validator = z.infer<typeof ValidatorSchema>;
|
|
230
231
|
declare const GetValidators_base: Effect.Service.Class<GetValidators, "GetValidators", {
|
|
231
|
-
readonly dependencies: readonly [
|
|
232
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
232
233
|
readonly effect: Effect.Effect<(this: unknown) => Effect.Effect<{
|
|
233
234
|
address: string;
|
|
234
235
|
name: string;
|
|
@@ -244,12 +245,12 @@ type GetEntityDetailsInput = GetEntityDetailsVaultAggregatedParameters[0];
|
|
|
244
245
|
type GetEntityDetailsOptions = GetEntityDetailsVaultAggregatedParameters[1];
|
|
245
246
|
type GetEntityDetailsState = GetEntityDetailsVaultAggregatedParameters[2];
|
|
246
247
|
declare const GetEntityDetailsVaultAggregated_base: Effect.Service.Class<GetEntityDetailsVaultAggregated, "GetEntityDetailsVaultAggregated", {
|
|
247
|
-
readonly dependencies: readonly [
|
|
248
|
-
readonly effect: Effect.Effect<(this: unknown, input: string[], options:
|
|
248
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
249
|
+
readonly effect: Effect.Effect<(this: unknown, input: string[], options: _radixdlt_babylon_gateway_api_sdk0.StateEntityDetailsOptions | undefined, at_ledger_state: {
|
|
249
250
|
state_version: number;
|
|
250
251
|
} | {
|
|
251
252
|
timestamp: Date;
|
|
252
|
-
}) => Effect.Effect<
|
|
253
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateEntityDetailsVaultResponseItem[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GatewayApiClient>;
|
|
253
254
|
}>;
|
|
254
255
|
declare class GetEntityDetailsVaultAggregated extends GetEntityDetailsVaultAggregated_base {}
|
|
255
256
|
//#endregion
|
|
@@ -262,22 +263,22 @@ type GetNonFungibleIdsInput = {
|
|
|
262
263
|
cursor?: string;
|
|
263
264
|
};
|
|
264
265
|
declare const EntityNonFungibleIdsPage_base: Effect.Service.Class<EntityNonFungibleIdsPage, "EntityNonFungibleIdsPage", {
|
|
265
|
-
readonly dependencies: readonly [
|
|
266
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
266
267
|
readonly effect: Effect.Effect<(this: unknown, input: GetNonFungibleIdsInput) => Effect.Effect<{
|
|
267
268
|
ids: string[];
|
|
268
269
|
address: string;
|
|
269
|
-
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
270
|
+
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GatewayApiClient>;
|
|
270
271
|
}>;
|
|
271
272
|
declare class EntityNonFungibleIdsPage extends EntityNonFungibleIdsPage_base {}
|
|
272
273
|
//#endregion
|
|
273
274
|
//#region src/getNonFungibleLocation.d.ts
|
|
274
275
|
declare const GetNonFungibleLocationService_base: Effect.Service.Class<GetNonFungibleLocationService, "GetNonFungibleLocationService", {
|
|
275
|
-
readonly dependencies: readonly [
|
|
276
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
276
277
|
readonly effect: Effect.Effect<(this: unknown, input: {
|
|
277
278
|
resourceAddress: string;
|
|
278
279
|
nonFungibleIds: string[];
|
|
279
280
|
at_ledger_state: AtLedgerState;
|
|
280
|
-
}) => Effect.Effect<
|
|
281
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateNonFungibleLocationResponse[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GatewayApiClient>;
|
|
281
282
|
}>;
|
|
282
283
|
declare class GetNonFungibleLocationService extends GetNonFungibleLocationService_base {}
|
|
283
284
|
//#endregion
|
|
@@ -294,7 +295,7 @@ type GetAddressByNonFungibleServiceInput = {
|
|
|
294
295
|
at_ledger_state: AtLedgerState;
|
|
295
296
|
};
|
|
296
297
|
declare const GetAddressByNonFungibleService_base: Effect.Service.Class<GetAddressByNonFungibleService, "GetAddressByNonFungibleService", {
|
|
297
|
-
readonly dependencies: readonly [
|
|
298
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GetNonFungibleLocationService, effect_ConfigError17.ConfigError, never>];
|
|
298
299
|
readonly effect: Effect.Effect<(this: unknown, input: GetAddressByNonFungibleServiceInput) => Effect.Effect<{
|
|
299
300
|
address: string;
|
|
300
301
|
resourceAddress: string;
|
|
@@ -310,7 +311,7 @@ declare class InvalidComponentStateError {
|
|
|
310
311
|
constructor(error: unknown);
|
|
311
312
|
}
|
|
312
313
|
declare const GetComponentStateService_base: Effect.Service.Class<GetComponentStateService, "GetComponentStateService", {
|
|
313
|
-
readonly dependencies: readonly [
|
|
314
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GetEntityDetailsVaultAggregated, effect_ConfigError17.ConfigError, never>];
|
|
314
315
|
readonly effect: Effect.Effect<{
|
|
315
316
|
run: <T extends StructDefinition, R extends boolean>(this: unknown, input: {
|
|
316
317
|
addresses: string[];
|
|
@@ -328,11 +329,11 @@ declare class GetComponentStateService extends GetComponentStateService_base {}
|
|
|
328
329
|
//#endregion
|
|
329
330
|
//#region src/state/stateEntityDetails.d.ts
|
|
330
331
|
declare const StateEntityDetails_base: Effect.Service.Class<StateEntityDetails, "StateEntityDetails", {
|
|
331
|
-
readonly dependencies: readonly [
|
|
332
|
-
readonly effect: Effect.Effect<(this: unknown, input:
|
|
333
|
-
ledger_state:
|
|
334
|
-
items:
|
|
335
|
-
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
332
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
333
|
+
readonly effect: Effect.Effect<(this: unknown, input: _radixdlt_babylon_gateway_api_sdk0.StateEntityDetailsRequest) => Effect.Effect<{
|
|
334
|
+
ledger_state: _radixdlt_babylon_gateway_api_sdk0.LedgerState;
|
|
335
|
+
items: _radixdlt_babylon_gateway_api_sdk0.StateEntityDetailsResponseItem[];
|
|
336
|
+
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GatewayApiClient>;
|
|
336
337
|
}>;
|
|
337
338
|
declare class StateEntityDetails extends StateEntityDetails_base {}
|
|
338
339
|
//#endregion
|
|
@@ -343,47 +344,47 @@ type GetFungibleBalanceInput = Omit<StateEntityDetailsOperationRequest['stateEnt
|
|
|
343
344
|
options?: StateEntityDetailsOperationRequest['stateEntityDetailsRequest']['opt_ins'];
|
|
344
345
|
};
|
|
345
346
|
declare const GetFungibleBalance_base: Effect.Service.Class<GetFungibleBalance, "GetFungibleBalance", {
|
|
346
|
-
readonly dependencies: readonly [
|
|
347
|
+
readonly dependencies: readonly [effect_Layer18.Layer<EntityFungiblesPage, effect_ConfigError17.ConfigError, never>, effect_Layer18.Layer<StateEntityDetails, effect_ConfigError17.ConfigError, never>];
|
|
347
348
|
readonly effect: Effect.Effect<(this: unknown, input: GetFungibleBalanceInput) => Effect.Effect<{
|
|
348
349
|
address: string;
|
|
349
350
|
items: {
|
|
350
351
|
amount: BigNumber;
|
|
351
352
|
resource_address: string;
|
|
352
|
-
explicit_metadata?:
|
|
353
|
+
explicit_metadata?: _radixdlt_babylon_gateway_api_sdk0.EntityMetadataCollection;
|
|
353
354
|
last_updated_at_state_version: number;
|
|
354
355
|
}[];
|
|
355
|
-
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
356
|
+
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, EntityFungiblesPage | StateEntityDetails>;
|
|
356
357
|
}>;
|
|
357
358
|
declare class GetFungibleBalance extends GetFungibleBalance_base {}
|
|
358
359
|
//#endregion
|
|
359
360
|
//#region src/keyValueStoreData.d.ts
|
|
360
361
|
declare const KeyValueStoreDataService_base: Effect.Service.Class<KeyValueStoreDataService, "KeyValueStoreDataService", {
|
|
361
|
-
readonly dependencies: readonly [
|
|
362
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
362
363
|
readonly effect: Effect.Effect<(this: unknown, input: Omit<StateKeyValueStoreDataRequest, "at_ledger_state"> & {
|
|
363
364
|
at_ledger_state: AtLedgerState;
|
|
364
|
-
}) => Effect.Effect<
|
|
365
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateKeyValueStoreDataResponse[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GatewayApiClient>;
|
|
365
366
|
}>;
|
|
366
367
|
declare class KeyValueStoreDataService extends KeyValueStoreDataService_base {}
|
|
367
368
|
//#endregion
|
|
368
369
|
//#region src/keyValueStoreKeys.d.ts
|
|
369
370
|
declare const KeyValueStoreKeysService_base: Effect.Service.Class<KeyValueStoreKeysService, "KeyValueStoreKeysService", {
|
|
370
|
-
readonly dependencies: readonly [
|
|
371
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
371
372
|
readonly effect: Effect.Effect<(this: unknown, input: Omit<StateKeyValueStoreKeysRequest, "at_ledger_state"> & {
|
|
372
373
|
at_ledger_state: AtLedgerState;
|
|
373
|
-
}) => Effect.Effect<
|
|
374
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.StateKeyValueStoreKeysResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GatewayApiClient>;
|
|
374
375
|
}>;
|
|
375
376
|
declare class KeyValueStoreKeysService extends KeyValueStoreKeysService_base {}
|
|
376
377
|
//#endregion
|
|
377
378
|
//#region src/getKeyValueStore.d.ts
|
|
378
379
|
declare const GetKeyValueStoreService_base: Effect.Service.Class<GetKeyValueStoreService, "GetKeyValueStoreService", {
|
|
379
|
-
readonly dependencies: readonly [
|
|
380
|
+
readonly dependencies: readonly [effect_Layer18.Layer<KeyValueStoreKeysService, effect_ConfigError17.ConfigError, never>, effect_Layer18.Layer<KeyValueStoreDataService, effect_ConfigError17.ConfigError, never>];
|
|
380
381
|
readonly effect: Effect.Effect<(this: unknown, input: {
|
|
381
382
|
address: string;
|
|
382
383
|
at_ledger_state: AtLedgerState;
|
|
383
384
|
}) => Effect.Effect<{
|
|
384
385
|
key_value_store_address: string;
|
|
385
|
-
ledger_state:
|
|
386
|
-
entries:
|
|
386
|
+
ledger_state: _radixdlt_babylon_gateway_api_sdk0.LedgerState;
|
|
387
|
+
entries: _radixdlt_babylon_gateway_api_sdk0.StateKeyValueStoreDataResponseItem[];
|
|
387
388
|
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, never, KeyValueStoreKeysService | KeyValueStoreDataService>;
|
|
388
389
|
}>;
|
|
389
390
|
declare class GetKeyValueStoreService extends GetKeyValueStoreService_base {}
|
|
@@ -393,8 +394,8 @@ type GetLedgerStateInput = {
|
|
|
393
394
|
at_ledger_state: AtLedgerState;
|
|
394
395
|
};
|
|
395
396
|
declare const GetLedgerStateService_base: Effect.Service.Class<GetLedgerStateService, "GetLedgerStateService", {
|
|
396
|
-
readonly dependencies: readonly [
|
|
397
|
-
readonly effect: Effect.Effect<(this: unknown, input: GetLedgerStateInput) => Effect.Effect<
|
|
397
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
398
|
+
readonly effect: Effect.Effect<(this: unknown, input: GetLedgerStateInput) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk0.LedgerState, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, never, GatewayApiClient>;
|
|
398
399
|
}>;
|
|
399
400
|
declare class GetLedgerStateService extends GetLedgerStateService_base {}
|
|
400
401
|
//#endregion
|
|
@@ -406,14 +407,14 @@ type GetNftResourceManagersInput = {
|
|
|
406
407
|
options?: StateEntityDetailsOperationRequest['stateEntityDetailsRequest']['opt_ins'];
|
|
407
408
|
};
|
|
408
409
|
declare const GetNftResourceManagersService_base: Effect.Service.Class<GetNftResourceManagersService, "GetNftResourceManagersService", {
|
|
409
|
-
readonly dependencies: readonly [
|
|
410
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>, effect_Layer18.Layer<EntityNonFungiblesPage, effect_ConfigError17.ConfigError, never>, effect_Layer18.Layer<EntityNonFungibleIdsPage, effect_ConfigError17.ConfigError, never>];
|
|
410
411
|
readonly effect: Effect.Effect<(this: unknown, input: GetNftResourceManagersInput) => Effect.Effect<{
|
|
411
412
|
address: string;
|
|
412
413
|
items: {
|
|
413
414
|
resourceAddress: string;
|
|
414
415
|
nftIds: string[];
|
|
415
416
|
}[];
|
|
416
|
-
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
417
|
+
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, EntityNonFungibleIdsPage | GatewayApiClient | EntityNonFungiblesPage>;
|
|
417
418
|
}>;
|
|
418
419
|
declare class GetNftResourceManagersService extends GetNftResourceManagersService_base {}
|
|
419
420
|
//#endregion
|
|
@@ -431,7 +432,7 @@ type GetNonFungibleBalanceInput = {
|
|
|
431
432
|
};
|
|
432
433
|
type GetNonFungibleBalanceOutput = Effect.Effect.Success<Awaited<ReturnType<(typeof GetNonFungibleBalanceService)['Service']>>>;
|
|
433
434
|
declare const GetNonFungibleBalanceService_base: Effect.Service.Class<GetNonFungibleBalanceService, "GetNonFungibleBalanceService", {
|
|
434
|
-
readonly dependencies: readonly [
|
|
435
|
+
readonly dependencies: readonly [effect_Layer18.Layer<NonFungibleData, effect_ConfigError17.ConfigError, never>, effect_Layer18.Layer<GetNftResourceManagersService, effect_ConfigError17.ConfigError, never>];
|
|
435
436
|
readonly effect: Effect.Effect<(this: unknown, input: GetNonFungibleBalanceInput) => Effect.Effect<{
|
|
436
437
|
items: {
|
|
437
438
|
address: string;
|
|
@@ -440,18 +441,18 @@ declare const GetNonFungibleBalanceService_base: Effect.Service.Class<GetNonFung
|
|
|
440
441
|
items: {
|
|
441
442
|
id: string;
|
|
442
443
|
lastUpdatedStateVersion: number;
|
|
443
|
-
sbor:
|
|
444
|
+
sbor: _radixdlt_babylon_gateway_api_sdk0.ProgrammaticScryptoSborValue | undefined;
|
|
444
445
|
isBurned: boolean;
|
|
445
446
|
}[];
|
|
446
447
|
}[];
|
|
447
448
|
}[];
|
|
448
|
-
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
449
|
+
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError17.ConfigError, GetNftResourceManagersService | NonFungibleData>;
|
|
449
450
|
}>;
|
|
450
451
|
declare class GetNonFungibleBalanceService extends GetNonFungibleBalanceService_base {}
|
|
451
452
|
//#endregion
|
|
452
453
|
//#region src/getResourceHolders.d.ts
|
|
453
454
|
declare const GetResourceHoldersService_base: Effect.Service.Class<GetResourceHoldersService, "GetResourceHoldersService", {
|
|
454
|
-
readonly dependencies: readonly [
|
|
455
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
455
456
|
readonly effect: Effect.Effect<(this: unknown, input: {
|
|
456
457
|
resourceAddress: string;
|
|
457
458
|
cursor?: string;
|
|
@@ -514,11 +515,181 @@ type PersonaProof = typeof PersonaProofSchema.Type;
|
|
|
514
515
|
type AccountProof = typeof AccountProofSchema.Type;
|
|
515
516
|
type RolaProof = typeof RolaProofSchema.Type;
|
|
516
517
|
declare const Rola_base: Effect.Service.Class<Rola, "Rola", {
|
|
517
|
-
readonly dependencies: readonly [
|
|
518
|
+
readonly dependencies: readonly [effect_Layer18.Layer<GatewayApiClient, never, never>];
|
|
518
519
|
readonly effect: Effect.Effect<{
|
|
519
520
|
verifySignedChallenge: (input: RolaProof) => Effect.Effect<undefined, VerifyRolaProofError, never>;
|
|
520
521
|
}, never, GatewayApiClient>;
|
|
521
522
|
}>;
|
|
522
523
|
declare class Rola extends Rola_base {}
|
|
523
524
|
//#endregion
|
|
524
|
-
|
|
525
|
+
//#region src/sbor.d.ts
|
|
526
|
+
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"]>;
|
|
527
|
+
type ScryptoSborValueKind = typeof ScryptoSborValueKind.Type;
|
|
528
|
+
declare const ScryptoSborValueBool: Schema.Struct<{
|
|
529
|
+
kind: Schema.Literal<["Bool"]>;
|
|
530
|
+
value: typeof Schema.Boolean;
|
|
531
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
532
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
533
|
+
}>;
|
|
534
|
+
declare const ScryptoSborValueString: Schema.Struct<{
|
|
535
|
+
kind: Schema.Literal<["String"]>;
|
|
536
|
+
value: typeof Schema.String;
|
|
537
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
538
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
539
|
+
}>;
|
|
540
|
+
declare const ScryptoSborValueBytes: Schema.Struct<{
|
|
541
|
+
kind: Schema.Literal<["Bytes"]>;
|
|
542
|
+
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"]>;
|
|
543
|
+
element_type_name: Schema.optional<typeof Schema.String>;
|
|
544
|
+
hex: typeof Schema.String;
|
|
545
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
546
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
547
|
+
}>;
|
|
548
|
+
declare const ScryptoSborValueDecimal: Schema.Struct<{
|
|
549
|
+
kind: Schema.Literal<["Decimal"]>;
|
|
550
|
+
value: typeof Schema.String;
|
|
551
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
552
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
553
|
+
}>;
|
|
554
|
+
declare const ScryptoSborValuePreciseDecimal: Schema.Struct<{
|
|
555
|
+
kind: Schema.Literal<["PreciseDecimal"]>;
|
|
556
|
+
value: typeof Schema.String;
|
|
557
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
558
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
559
|
+
}>;
|
|
560
|
+
declare const ScryptoSborValueReference: Schema.Struct<{
|
|
561
|
+
kind: Schema.Literal<["Reference"]>;
|
|
562
|
+
value: typeof Schema.String;
|
|
563
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
564
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
565
|
+
}>;
|
|
566
|
+
declare const ScryptoSborValueOwn: Schema.Struct<{
|
|
567
|
+
kind: Schema.Literal<["Own"]>;
|
|
568
|
+
value: typeof Schema.String;
|
|
569
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
570
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
571
|
+
}>;
|
|
572
|
+
declare const ScryptoSborValueNonFungibleLocalId: Schema.Struct<{
|
|
573
|
+
kind: Schema.Literal<["NonFungibleLocalId"]>;
|
|
574
|
+
value: typeof Schema.String;
|
|
575
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
576
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
577
|
+
}>;
|
|
578
|
+
declare const ScryptoSborValueI8: Schema.Struct<{
|
|
579
|
+
kind: Schema.Literal<["I8"]>;
|
|
580
|
+
value: typeof Schema.String;
|
|
581
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
582
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
583
|
+
}>;
|
|
584
|
+
declare const ScryptoSborValueI16: Schema.Struct<{
|
|
585
|
+
kind: Schema.Literal<["I16"]>;
|
|
586
|
+
value: typeof Schema.String;
|
|
587
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
588
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
589
|
+
}>;
|
|
590
|
+
declare const ScryptoSborValueI32: Schema.Struct<{
|
|
591
|
+
kind: Schema.Literal<["I32"]>;
|
|
592
|
+
value: typeof Schema.String;
|
|
593
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
594
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
595
|
+
}>;
|
|
596
|
+
declare const ScryptoSborValueI64: Schema.Struct<{
|
|
597
|
+
kind: Schema.Literal<["I64"]>;
|
|
598
|
+
value: typeof Schema.String;
|
|
599
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
600
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
601
|
+
}>;
|
|
602
|
+
declare const ScryptoSborValueI128: Schema.Struct<{
|
|
603
|
+
kind: Schema.Literal<["I128"]>;
|
|
604
|
+
value: typeof Schema.String;
|
|
605
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
606
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
607
|
+
}>;
|
|
608
|
+
declare const ScryptoSborValueU8: Schema.Struct<{
|
|
609
|
+
kind: Schema.Literal<["U8"]>;
|
|
610
|
+
value: typeof Schema.String;
|
|
611
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
612
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
613
|
+
}>;
|
|
614
|
+
declare const ScryptoSborValueU16: Schema.Struct<{
|
|
615
|
+
kind: Schema.Literal<["U16"]>;
|
|
616
|
+
value: typeof Schema.String;
|
|
617
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
618
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
619
|
+
}>;
|
|
620
|
+
declare const ScryptoSborValueU32: Schema.Struct<{
|
|
621
|
+
kind: Schema.Literal<["U32"]>;
|
|
622
|
+
value: typeof Schema.String;
|
|
623
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
624
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
625
|
+
}>;
|
|
626
|
+
declare const ScryptoSborValueU64: Schema.Struct<{
|
|
627
|
+
kind: Schema.Literal<["U64"]>;
|
|
628
|
+
value: typeof Schema.String;
|
|
629
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
630
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
631
|
+
}>;
|
|
632
|
+
declare const ScryptoSborValueU128: Schema.Struct<{
|
|
633
|
+
kind: Schema.Literal<["U128"]>;
|
|
634
|
+
value: typeof Schema.String;
|
|
635
|
+
type_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
636
|
+
field_name: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
637
|
+
}>;
|
|
638
|
+
type ScryptoSborValueBool = typeof ScryptoSborValueBool.Type;
|
|
639
|
+
type ScryptoSborValueString = typeof ScryptoSborValueString.Type;
|
|
640
|
+
type ScryptoSborValueBytes = typeof ScryptoSborValueBytes.Type;
|
|
641
|
+
type ScryptoSborValueDecimal = typeof ScryptoSborValueDecimal.Type;
|
|
642
|
+
type ScryptoSborValuePreciseDecimal = typeof ScryptoSborValuePreciseDecimal.Type;
|
|
643
|
+
type ScryptoSborValueReference = typeof ScryptoSborValueReference.Type;
|
|
644
|
+
type ScryptoSborValueOwn = typeof ScryptoSborValueOwn.Type;
|
|
645
|
+
type ScryptoSborValueNonFungibleLocalId = typeof ScryptoSborValueNonFungibleLocalId.Type;
|
|
646
|
+
type ScryptoSborValueI8 = typeof ScryptoSborValueI8.Type;
|
|
647
|
+
type ScryptoSborValueI16 = typeof ScryptoSborValueI16.Type;
|
|
648
|
+
type ScryptoSborValueI32 = typeof ScryptoSborValueI32.Type;
|
|
649
|
+
type ScryptoSborValueI64 = typeof ScryptoSborValueI64.Type;
|
|
650
|
+
type ScryptoSborValueI128 = typeof ScryptoSborValueI128.Type;
|
|
651
|
+
type ScryptoSborValueU8 = typeof ScryptoSborValueU8.Type;
|
|
652
|
+
type ScryptoSborValueU16 = typeof ScryptoSborValueU16.Type;
|
|
653
|
+
type ScryptoSborValueU32 = typeof ScryptoSborValueU32.Type;
|
|
654
|
+
type ScryptoSborValueU64 = typeof ScryptoSborValueU64.Type;
|
|
655
|
+
type ScryptoSborValueU128 = typeof ScryptoSborValueU128.Type;
|
|
656
|
+
interface ScryptoSborValueArray {
|
|
657
|
+
type_name?: string | null | undefined;
|
|
658
|
+
field_name?: string | null | undefined;
|
|
659
|
+
kind: 'Array';
|
|
660
|
+
element_kind: ScryptoSborValueKind;
|
|
661
|
+
element_type_name?: string | undefined;
|
|
662
|
+
elements: readonly ScryptoSborValueSchema[];
|
|
663
|
+
}
|
|
664
|
+
interface ScryptoSborValueMapEntry {
|
|
665
|
+
key: ScryptoSborValueSchema;
|
|
666
|
+
value: ScryptoSborValueSchema;
|
|
667
|
+
}
|
|
668
|
+
interface ScryptoSborValueMap {
|
|
669
|
+
type_name?: string | null | undefined;
|
|
670
|
+
field_name?: string | null | undefined;
|
|
671
|
+
kind: 'Map';
|
|
672
|
+
key_kind: ScryptoSborValueKind;
|
|
673
|
+
key_type_name?: string | undefined;
|
|
674
|
+
value_kind: ScryptoSborValueKind;
|
|
675
|
+
value_type_name?: string | undefined;
|
|
676
|
+
entries: readonly ScryptoSborValueMapEntry[];
|
|
677
|
+
}
|
|
678
|
+
interface ScryptoSborValueTuple {
|
|
679
|
+
type_name?: string | null | undefined;
|
|
680
|
+
field_name?: string | null | undefined;
|
|
681
|
+
kind: 'Tuple';
|
|
682
|
+
fields: readonly ScryptoSborValueSchema[];
|
|
683
|
+
}
|
|
684
|
+
interface ScryptoSborValueEnum {
|
|
685
|
+
type_name?: string | null | undefined;
|
|
686
|
+
field_name?: string | null | undefined;
|
|
687
|
+
kind: 'Enum';
|
|
688
|
+
variant_id: string;
|
|
689
|
+
variant_name?: string | undefined;
|
|
690
|
+
fields: readonly ScryptoSborValueSchema[];
|
|
691
|
+
}
|
|
692
|
+
type ScryptoSborValueSchema = ScryptoSborValueBool | ScryptoSborValueString | ScryptoSborValueBytes | ScryptoSborValueDecimal | ScryptoSborValuePreciseDecimal | ScryptoSborValueReference | ScryptoSborValueOwn | ScryptoSborValueNonFungibleLocalId | ScryptoSborValueI8 | ScryptoSborValueI16 | ScryptoSborValueI32 | ScryptoSborValueI64 | ScryptoSborValueI128 | ScryptoSborValueU8 | ScryptoSborValueU16 | ScryptoSborValueU32 | ScryptoSborValueU64 | ScryptoSborValueU128 | ScryptoSborValueArray | ScryptoSborValueMap | ScryptoSborValueTuple | ScryptoSborValueEnum;
|
|
693
|
+
declare const ScryptoSborValueSchema: Schema.Schema<ScryptoSborValueSchema>;
|
|
694
|
+
//#endregion
|
|
695
|
+
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: {
|
|
@@ -113,7 +118,8 @@ var GatewayApiClient = class extends Effect.Service()("GatewayApiClient", { effe
|
|
|
113
118
|
getCommittedDetails: wrapMethod(gatewayApiClient.transaction.getCommittedDetails.bind(gatewayApiClient.transaction)),
|
|
114
119
|
innerClient: {
|
|
115
120
|
transactionSubmit: wrapMethod(gatewayApiClient.transaction.innerClient.transactionSubmit.bind(gatewayApiClient.transaction.innerClient)),
|
|
116
|
-
transactionStatus: wrapMethod(gatewayApiClient.transaction.innerClient.transactionStatus.bind(gatewayApiClient.transaction.innerClient))
|
|
121
|
+
transactionStatus: wrapMethod(gatewayApiClient.transaction.innerClient.transactionStatus.bind(gatewayApiClient.transaction.innerClient)),
|
|
122
|
+
transactionPreview: wrapMethod(gatewayApiClient.transaction.innerClient.transactionPreview.bind(gatewayApiClient.transaction.innerClient))
|
|
117
123
|
}
|
|
118
124
|
},
|
|
119
125
|
status: {
|
|
@@ -807,4 +813,137 @@ var Rola = class extends Effect.Service()("Rola", {
|
|
|
807
813
|
}) {};
|
|
808
814
|
|
|
809
815
|
//#endregion
|
|
810
|
-
|
|
816
|
+
//#region src/sbor.ts
|
|
817
|
+
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");
|
|
818
|
+
const ScryptoSborValueBase = Schema.Struct({
|
|
819
|
+
type_name: Schema.optional(Schema.NullOr(Schema.String)),
|
|
820
|
+
field_name: Schema.optional(Schema.NullOr(Schema.String))
|
|
821
|
+
});
|
|
822
|
+
const ScryptoSborValueBool = Schema.Struct({
|
|
823
|
+
...ScryptoSborValueBase.fields,
|
|
824
|
+
kind: Schema.Literal("Bool"),
|
|
825
|
+
value: Schema.Boolean
|
|
826
|
+
});
|
|
827
|
+
const ScryptoSborValueString = Schema.Struct({
|
|
828
|
+
...ScryptoSborValueBase.fields,
|
|
829
|
+
kind: Schema.Literal("String"),
|
|
830
|
+
value: Schema.String
|
|
831
|
+
});
|
|
832
|
+
const ScryptoSborValueBytes = Schema.Struct({
|
|
833
|
+
...ScryptoSborValueBase.fields,
|
|
834
|
+
kind: Schema.Literal("Bytes"),
|
|
835
|
+
element_kind: ScryptoSborValueKind,
|
|
836
|
+
element_type_name: Schema.optional(Schema.String),
|
|
837
|
+
hex: Schema.String
|
|
838
|
+
});
|
|
839
|
+
const ScryptoSborValueDecimal = Schema.Struct({
|
|
840
|
+
...ScryptoSborValueBase.fields,
|
|
841
|
+
kind: Schema.Literal("Decimal"),
|
|
842
|
+
value: Schema.String
|
|
843
|
+
});
|
|
844
|
+
const ScryptoSborValuePreciseDecimal = Schema.Struct({
|
|
845
|
+
...ScryptoSborValueBase.fields,
|
|
846
|
+
kind: Schema.Literal("PreciseDecimal"),
|
|
847
|
+
value: Schema.String
|
|
848
|
+
});
|
|
849
|
+
const ScryptoSborValueReference = Schema.Struct({
|
|
850
|
+
...ScryptoSborValueBase.fields,
|
|
851
|
+
kind: Schema.Literal("Reference"),
|
|
852
|
+
value: Schema.String
|
|
853
|
+
});
|
|
854
|
+
const ScryptoSborValueOwn = Schema.Struct({
|
|
855
|
+
...ScryptoSborValueBase.fields,
|
|
856
|
+
kind: Schema.Literal("Own"),
|
|
857
|
+
value: Schema.String
|
|
858
|
+
});
|
|
859
|
+
const ScryptoSborValueNonFungibleLocalId = Schema.Struct({
|
|
860
|
+
...ScryptoSborValueBase.fields,
|
|
861
|
+
kind: Schema.Literal("NonFungibleLocalId"),
|
|
862
|
+
value: Schema.String
|
|
863
|
+
});
|
|
864
|
+
const ScryptoSborValueI8 = Schema.Struct({
|
|
865
|
+
...ScryptoSborValueBase.fields,
|
|
866
|
+
kind: Schema.Literal("I8"),
|
|
867
|
+
value: Schema.String
|
|
868
|
+
});
|
|
869
|
+
const ScryptoSborValueI16 = Schema.Struct({
|
|
870
|
+
...ScryptoSborValueBase.fields,
|
|
871
|
+
kind: Schema.Literal("I16"),
|
|
872
|
+
value: Schema.String
|
|
873
|
+
});
|
|
874
|
+
const ScryptoSborValueI32 = Schema.Struct({
|
|
875
|
+
...ScryptoSborValueBase.fields,
|
|
876
|
+
kind: Schema.Literal("I32"),
|
|
877
|
+
value: Schema.String
|
|
878
|
+
});
|
|
879
|
+
const ScryptoSborValueI64 = Schema.Struct({
|
|
880
|
+
...ScryptoSborValueBase.fields,
|
|
881
|
+
kind: Schema.Literal("I64"),
|
|
882
|
+
value: Schema.String
|
|
883
|
+
});
|
|
884
|
+
const ScryptoSborValueI128 = Schema.Struct({
|
|
885
|
+
...ScryptoSborValueBase.fields,
|
|
886
|
+
kind: Schema.Literal("I128"),
|
|
887
|
+
value: Schema.String
|
|
888
|
+
});
|
|
889
|
+
const ScryptoSborValueU8 = Schema.Struct({
|
|
890
|
+
...ScryptoSborValueBase.fields,
|
|
891
|
+
kind: Schema.Literal("U8"),
|
|
892
|
+
value: Schema.String
|
|
893
|
+
});
|
|
894
|
+
const ScryptoSborValueU16 = Schema.Struct({
|
|
895
|
+
...ScryptoSborValueBase.fields,
|
|
896
|
+
kind: Schema.Literal("U16"),
|
|
897
|
+
value: Schema.String
|
|
898
|
+
});
|
|
899
|
+
const ScryptoSborValueU32 = Schema.Struct({
|
|
900
|
+
...ScryptoSborValueBase.fields,
|
|
901
|
+
kind: Schema.Literal("U32"),
|
|
902
|
+
value: Schema.String
|
|
903
|
+
});
|
|
904
|
+
const ScryptoSborValueU64 = Schema.Struct({
|
|
905
|
+
...ScryptoSborValueBase.fields,
|
|
906
|
+
kind: Schema.Literal("U64"),
|
|
907
|
+
value: Schema.String
|
|
908
|
+
});
|
|
909
|
+
const ScryptoSborValueU128 = Schema.Struct({
|
|
910
|
+
...ScryptoSborValueBase.fields,
|
|
911
|
+
kind: Schema.Literal("U128"),
|
|
912
|
+
value: Schema.String
|
|
913
|
+
});
|
|
914
|
+
const ScryptoSborValueMapEntrySchema = Schema.suspend(() => Schema.Struct({
|
|
915
|
+
key: ScryptoSborValueSchema,
|
|
916
|
+
value: ScryptoSborValueSchema
|
|
917
|
+
}));
|
|
918
|
+
const ScryptoSborValueArraySchema = Schema.suspend(() => Schema.Struct({
|
|
919
|
+
...ScryptoSborValueBase.fields,
|
|
920
|
+
kind: Schema.Literal("Array"),
|
|
921
|
+
element_kind: ScryptoSborValueKind,
|
|
922
|
+
element_type_name: Schema.optional(Schema.String),
|
|
923
|
+
elements: Schema.Array(ScryptoSborValueSchema)
|
|
924
|
+
}));
|
|
925
|
+
const ScryptoSborValueMapSchema = Schema.suspend(() => Schema.Struct({
|
|
926
|
+
...ScryptoSborValueBase.fields,
|
|
927
|
+
kind: Schema.Literal("Map"),
|
|
928
|
+
key_kind: ScryptoSborValueKind,
|
|
929
|
+
key_type_name: Schema.optional(Schema.String),
|
|
930
|
+
value_kind: ScryptoSborValueKind,
|
|
931
|
+
value_type_name: Schema.optional(Schema.String),
|
|
932
|
+
entries: Schema.Array(ScryptoSborValueMapEntrySchema)
|
|
933
|
+
}));
|
|
934
|
+
const ScryptoSborValueTupleSchema = Schema.suspend(() => Schema.Struct({
|
|
935
|
+
...ScryptoSborValueBase.fields,
|
|
936
|
+
kind: Schema.Literal("Tuple"),
|
|
937
|
+
fields: Schema.Array(ScryptoSborValueSchema)
|
|
938
|
+
}));
|
|
939
|
+
const ScryptoSborValueEnumSchema = Schema.suspend(() => Schema.Struct({
|
|
940
|
+
...ScryptoSborValueBase.fields,
|
|
941
|
+
kind: Schema.Literal("Enum"),
|
|
942
|
+
variant_id: Schema.String,
|
|
943
|
+
variant_name: Schema.optional(Schema.String),
|
|
944
|
+
fields: Schema.Array(ScryptoSborValueSchema)
|
|
945
|
+
}));
|
|
946
|
+
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);
|
|
947
|
+
|
|
948
|
+
//#endregion
|
|
949
|
+
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 };
|