@radix-effects/gateway 0.3.0 → 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 +65 -64
- package/dist/index.js +2 -1
- 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,7 +515,7 @@ 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>;
|
package/dist/index.js
CHANGED
|
@@ -118,7 +118,8 @@ var GatewayApiClient = class extends Effect.Service()("GatewayApiClient", { effe
|
|
|
118
118
|
getCommittedDetails: wrapMethod(gatewayApiClient.transaction.getCommittedDetails.bind(gatewayApiClient.transaction)),
|
|
119
119
|
innerClient: {
|
|
120
120
|
transactionSubmit: wrapMethod(gatewayApiClient.transaction.innerClient.transactionSubmit.bind(gatewayApiClient.transaction.innerClient)),
|
|
121
|
-
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))
|
|
122
123
|
}
|
|
123
124
|
},
|
|
124
125
|
status: {
|