@radix-effects/gateway 0.3.1 → 0.3.2
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 +68 -67
- package/dist/index.js +1 -0
- 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_sdk6 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_Layer0 from "effect/Layer";
|
|
7
|
+
import * as effect_ConfigError0 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";
|
|
@@ -90,25 +90,26 @@ declare class UnknownGatewayError extends UnknownGatewayError_base<{
|
|
|
90
90
|
}> {}
|
|
91
91
|
declare const GatewayApiClient_base: Effect.Service.Class<GatewayApiClient, "GatewayApiClient", {
|
|
92
92
|
readonly effect: Effect.Effect<{
|
|
93
|
+
networkId: number;
|
|
93
94
|
state: {
|
|
94
|
-
getEntityDetailsVaultAggregated: (addresses: string[], options?:
|
|
95
|
-
getValidators: (cursor?: string | undefined) => Effect.Effect<
|
|
95
|
+
getEntityDetailsVaultAggregated: (addresses: string[], options?: _radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsOptions | undefined, ledgerState?: _radixdlt_babylon_gateway_api_sdk6.LedgerStateSelector | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsVaultResponseItem[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
96
|
+
getValidators: (cursor?: string | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.ValidatorCollection, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
96
97
|
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:
|
|
98
|
+
stateEntityDetails: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
99
|
+
entityFungiblesPage: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.EntityFungiblesPageRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateEntityFungiblesPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
100
|
+
entityNonFungiblesPage: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.EntityNonFungiblesPageRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateEntityNonFungiblesPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
101
|
+
entityNonFungibleIdsPage: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.EntityNonFungibleIdsPageRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateEntityNonFungibleIdsPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
102
|
+
entityNonFungibleResourceVaultPage: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.EntityNonFungibleResourceVaultPageRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateEntityNonFungibleResourceVaultsPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
103
|
+
keyValueStoreKeys: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.KeyValueStoreKeysRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateKeyValueStoreKeysResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
104
|
+
keyValueStoreData: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.KeyValueStoreDataRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateKeyValueStoreDataResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
105
|
+
nonFungibleData: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.NonFungibleDataRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateNonFungibleDataResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
106
|
+
nonFungibleLocation: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.NonFungibleLocationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateNonFungibleLocationResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
107
|
+
nonFungibleIds: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.NonFungibleIdsRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateNonFungibleIdsResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
107
108
|
};
|
|
108
109
|
};
|
|
109
110
|
stream: {
|
|
110
111
|
innerClient: {
|
|
111
|
-
streamTransactions: (requestParameters:
|
|
112
|
+
streamTransactions: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.StreamTransactionsOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StreamTransactionsResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
112
113
|
};
|
|
113
114
|
};
|
|
114
115
|
transaction: {
|
|
@@ -124,21 +125,21 @@ declare const GatewayApiClient_base: Effect.Service.Class<GatewayApiClient, "Gat
|
|
|
124
125
|
balanceChanges: boolean;
|
|
125
126
|
receiptOutput: boolean;
|
|
126
127
|
manifestInstructions: boolean;
|
|
127
|
-
} | undefined) => Effect.Effect<
|
|
128
|
+
} | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.TransactionCommittedDetailsResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
128
129
|
innerClient: {
|
|
129
|
-
transactionSubmit: (requestParameters:
|
|
130
|
-
transactionStatus: (requestParameters:
|
|
131
|
-
transactionPreview: (requestParameters:
|
|
130
|
+
transactionSubmit: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.TransactionSubmitOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.TransactionSubmitResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
131
|
+
transactionStatus: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.TransactionStatusOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.TransactionStatusResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
132
|
+
transactionPreview: (requestParameters: _radixdlt_babylon_gateway_api_sdk6.TransactionPreviewOperationRequest, initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.TransactionPreviewResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
132
133
|
};
|
|
133
134
|
};
|
|
134
135
|
status: {
|
|
135
|
-
getCurrent: () => Effect.Effect<
|
|
136
|
+
getCurrent: () => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.GatewayStatusResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
136
137
|
innerClient: {
|
|
137
|
-
gatewayStatus: (initOverrides?: RequestInit |
|
|
138
|
+
gatewayStatus: (initOverrides?: RequestInit | _radixdlt_babylon_gateway_api_sdk6.InitOverrideFunction | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.GatewayStatusResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
138
139
|
};
|
|
139
140
|
};
|
|
140
141
|
extensions: {
|
|
141
|
-
getResourceHolders: (resourceAddress: string, cursor?: string | undefined) => Effect.Effect<
|
|
142
|
+
getResourceHolders: (resourceAddress: string, cursor?: string | undefined) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.ResourceHoldersResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>;
|
|
142
143
|
};
|
|
143
144
|
rawClient: GatewayApiClient$1;
|
|
144
145
|
}, never, never>;
|
|
@@ -187,26 +188,26 @@ type EntityFungiblesPageInput = Omit<EntityFungiblesPageRequest['stateEntityFung
|
|
|
187
188
|
at_ledger_state: AtLedgerState;
|
|
188
189
|
};
|
|
189
190
|
declare const EntityFungiblesPage_base: Effect.Service.Class<EntityFungiblesPage, "EntityFungiblesPage", {
|
|
190
|
-
readonly dependencies: readonly [
|
|
191
|
-
readonly effect: Effect.Effect<(this: unknown, input: EntityFungiblesPageInput) => Effect.Effect<
|
|
191
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
192
|
+
readonly effect: Effect.Effect<(this: unknown, input: EntityFungiblesPageInput) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.FungibleResourcesCollectionItem[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
192
193
|
}>;
|
|
193
194
|
declare class EntityFungiblesPage extends EntityFungiblesPage_base {}
|
|
194
195
|
//#endregion
|
|
195
196
|
//#region src/state/nonFungibleData.d.ts
|
|
196
197
|
declare const NonFungibleData_base: Effect.Service.Class<NonFungibleData, "NonFungibleData", {
|
|
197
|
-
readonly dependencies: readonly [
|
|
198
|
-
readonly effect: Effect.Effect<(this: unknown, input: Omit<
|
|
198
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
199
|
+
readonly effect: Effect.Effect<(this: unknown, input: Omit<_radixdlt_babylon_gateway_api_sdk6.StateNonFungibleDataRequest, "at_ledger_state"> & {
|
|
199
200
|
at_ledger_state: AtLedgerState;
|
|
200
|
-
}) => Effect.Effect<
|
|
201
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateNonFungibleDetailsResponseItem[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
201
202
|
}>;
|
|
202
203
|
declare class NonFungibleData extends NonFungibleData_base {}
|
|
203
204
|
//#endregion
|
|
204
205
|
//#region src/state/entityNonFungiblesPage.d.ts
|
|
205
206
|
declare const EntityNonFungiblesPage_base: Effect.Service.Class<EntityNonFungiblesPage, "EntityNonFungiblesPage", {
|
|
206
|
-
readonly dependencies: readonly [
|
|
207
|
-
readonly effect: Effect.Effect<(this: unknown, input: Omit<
|
|
207
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
208
|
+
readonly effect: Effect.Effect<(this: unknown, input: Omit<_radixdlt_babylon_gateway_api_sdk6.StateEntityNonFungiblesPageRequest, "at_ledger_state"> & {
|
|
208
209
|
at_ledger_state: AtLedgerState;
|
|
209
|
-
}) => Effect.Effect<
|
|
210
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateEntityNonFungiblesPageResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
210
211
|
}>;
|
|
211
212
|
declare class EntityNonFungiblesPage extends EntityNonFungiblesPage_base {}
|
|
212
213
|
//#endregion
|
|
@@ -217,19 +218,19 @@ declare const ValidatorSchema: z.ZodObject<{
|
|
|
217
218
|
lsuResourceAddress: z.ZodString;
|
|
218
219
|
claimNftResourceAddress: z.ZodString;
|
|
219
220
|
}, "strip", z.ZodTypeAny, {
|
|
220
|
-
name: string;
|
|
221
221
|
address: string;
|
|
222
|
+
name: string;
|
|
222
223
|
lsuResourceAddress: string;
|
|
223
224
|
claimNftResourceAddress: string;
|
|
224
225
|
}, {
|
|
225
|
-
name: string;
|
|
226
226
|
address: string;
|
|
227
|
+
name: string;
|
|
227
228
|
lsuResourceAddress: string;
|
|
228
229
|
claimNftResourceAddress: string;
|
|
229
230
|
}>;
|
|
230
231
|
type Validator = z.infer<typeof ValidatorSchema>;
|
|
231
232
|
declare const GetValidators_base: Effect.Service.Class<GetValidators, "GetValidators", {
|
|
232
|
-
readonly dependencies: readonly [
|
|
233
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
233
234
|
readonly effect: Effect.Effect<(this: unknown) => Effect.Effect<{
|
|
234
235
|
address: string;
|
|
235
236
|
name: string;
|
|
@@ -245,12 +246,12 @@ type GetEntityDetailsInput = GetEntityDetailsVaultAggregatedParameters[0];
|
|
|
245
246
|
type GetEntityDetailsOptions = GetEntityDetailsVaultAggregatedParameters[1];
|
|
246
247
|
type GetEntityDetailsState = GetEntityDetailsVaultAggregatedParameters[2];
|
|
247
248
|
declare const GetEntityDetailsVaultAggregated_base: Effect.Service.Class<GetEntityDetailsVaultAggregated, "GetEntityDetailsVaultAggregated", {
|
|
248
|
-
readonly dependencies: readonly [
|
|
249
|
-
readonly effect: Effect.Effect<(this: unknown, input: string[], options:
|
|
249
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
250
|
+
readonly effect: Effect.Effect<(this: unknown, input: string[], options: _radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsOptions | undefined, at_ledger_state: {
|
|
250
251
|
state_version: number;
|
|
251
252
|
} | {
|
|
252
253
|
timestamp: Date;
|
|
253
|
-
}) => Effect.Effect<
|
|
254
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsVaultResponseItem[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
254
255
|
}>;
|
|
255
256
|
declare class GetEntityDetailsVaultAggregated extends GetEntityDetailsVaultAggregated_base {}
|
|
256
257
|
//#endregion
|
|
@@ -263,22 +264,22 @@ type GetNonFungibleIdsInput = {
|
|
|
263
264
|
cursor?: string;
|
|
264
265
|
};
|
|
265
266
|
declare const EntityNonFungibleIdsPage_base: Effect.Service.Class<EntityNonFungibleIdsPage, "EntityNonFungibleIdsPage", {
|
|
266
|
-
readonly dependencies: readonly [
|
|
267
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
267
268
|
readonly effect: Effect.Effect<(this: unknown, input: GetNonFungibleIdsInput) => Effect.Effect<{
|
|
268
269
|
ids: string[];
|
|
269
270
|
address: string;
|
|
270
|
-
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
271
|
+
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
271
272
|
}>;
|
|
272
273
|
declare class EntityNonFungibleIdsPage extends EntityNonFungibleIdsPage_base {}
|
|
273
274
|
//#endregion
|
|
274
275
|
//#region src/getNonFungibleLocation.d.ts
|
|
275
276
|
declare const GetNonFungibleLocationService_base: Effect.Service.Class<GetNonFungibleLocationService, "GetNonFungibleLocationService", {
|
|
276
|
-
readonly dependencies: readonly [
|
|
277
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
277
278
|
readonly effect: Effect.Effect<(this: unknown, input: {
|
|
278
279
|
resourceAddress: string;
|
|
279
280
|
nonFungibleIds: string[];
|
|
280
281
|
at_ledger_state: AtLedgerState;
|
|
281
|
-
}) => Effect.Effect<
|
|
282
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateNonFungibleLocationResponse[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
282
283
|
}>;
|
|
283
284
|
declare class GetNonFungibleLocationService extends GetNonFungibleLocationService_base {}
|
|
284
285
|
//#endregion
|
|
@@ -295,7 +296,7 @@ type GetAddressByNonFungibleServiceInput = {
|
|
|
295
296
|
at_ledger_state: AtLedgerState;
|
|
296
297
|
};
|
|
297
298
|
declare const GetAddressByNonFungibleService_base: Effect.Service.Class<GetAddressByNonFungibleService, "GetAddressByNonFungibleService", {
|
|
298
|
-
readonly dependencies: readonly [
|
|
299
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GetNonFungibleLocationService, effect_ConfigError0.ConfigError, never>];
|
|
299
300
|
readonly effect: Effect.Effect<(this: unknown, input: GetAddressByNonFungibleServiceInput) => Effect.Effect<{
|
|
300
301
|
address: string;
|
|
301
302
|
resourceAddress: string;
|
|
@@ -311,7 +312,7 @@ declare class InvalidComponentStateError {
|
|
|
311
312
|
constructor(error: unknown);
|
|
312
313
|
}
|
|
313
314
|
declare const GetComponentStateService_base: Effect.Service.Class<GetComponentStateService, "GetComponentStateService", {
|
|
314
|
-
readonly dependencies: readonly [
|
|
315
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GetEntityDetailsVaultAggregated, effect_ConfigError0.ConfigError, never>];
|
|
315
316
|
readonly effect: Effect.Effect<{
|
|
316
317
|
run: <T extends StructDefinition, R extends boolean>(this: unknown, input: {
|
|
317
318
|
addresses: string[];
|
|
@@ -329,11 +330,11 @@ declare class GetComponentStateService extends GetComponentStateService_base {}
|
|
|
329
330
|
//#endregion
|
|
330
331
|
//#region src/state/stateEntityDetails.d.ts
|
|
331
332
|
declare const StateEntityDetails_base: Effect.Service.Class<StateEntityDetails, "StateEntityDetails", {
|
|
332
|
-
readonly dependencies: readonly [
|
|
333
|
-
readonly effect: Effect.Effect<(this: unknown, input:
|
|
334
|
-
ledger_state:
|
|
335
|
-
items:
|
|
336
|
-
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
333
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
334
|
+
readonly effect: Effect.Effect<(this: unknown, input: _radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsRequest) => Effect.Effect<{
|
|
335
|
+
ledger_state: _radixdlt_babylon_gateway_api_sdk6.LedgerState;
|
|
336
|
+
items: _radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsResponseItem[];
|
|
337
|
+
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
337
338
|
}>;
|
|
338
339
|
declare class StateEntityDetails extends StateEntityDetails_base {}
|
|
339
340
|
//#endregion
|
|
@@ -344,47 +345,47 @@ type GetFungibleBalanceInput = Omit<StateEntityDetailsOperationRequest['stateEnt
|
|
|
344
345
|
options?: StateEntityDetailsOperationRequest['stateEntityDetailsRequest']['opt_ins'];
|
|
345
346
|
};
|
|
346
347
|
declare const GetFungibleBalance_base: Effect.Service.Class<GetFungibleBalance, "GetFungibleBalance", {
|
|
347
|
-
readonly dependencies: readonly [
|
|
348
|
+
readonly dependencies: readonly [effect_Layer0.Layer<EntityFungiblesPage, effect_ConfigError0.ConfigError, never>, effect_Layer0.Layer<StateEntityDetails, effect_ConfigError0.ConfigError, never>];
|
|
348
349
|
readonly effect: Effect.Effect<(this: unknown, input: GetFungibleBalanceInput) => Effect.Effect<{
|
|
349
350
|
address: string;
|
|
350
351
|
items: {
|
|
351
352
|
amount: BigNumber;
|
|
352
353
|
resource_address: string;
|
|
353
|
-
explicit_metadata?:
|
|
354
|
+
explicit_metadata?: _radixdlt_babylon_gateway_api_sdk6.EntityMetadataCollection;
|
|
354
355
|
last_updated_at_state_version: number;
|
|
355
356
|
}[];
|
|
356
|
-
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
357
|
+
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, EntityFungiblesPage | StateEntityDetails>;
|
|
357
358
|
}>;
|
|
358
359
|
declare class GetFungibleBalance extends GetFungibleBalance_base {}
|
|
359
360
|
//#endregion
|
|
360
361
|
//#region src/keyValueStoreData.d.ts
|
|
361
362
|
declare const KeyValueStoreDataService_base: Effect.Service.Class<KeyValueStoreDataService, "KeyValueStoreDataService", {
|
|
362
|
-
readonly dependencies: readonly [
|
|
363
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
363
364
|
readonly effect: Effect.Effect<(this: unknown, input: Omit<StateKeyValueStoreDataRequest, "at_ledger_state"> & {
|
|
364
365
|
at_ledger_state: AtLedgerState;
|
|
365
|
-
}) => Effect.Effect<
|
|
366
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateKeyValueStoreDataResponse[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
366
367
|
}>;
|
|
367
368
|
declare class KeyValueStoreDataService extends KeyValueStoreDataService_base {}
|
|
368
369
|
//#endregion
|
|
369
370
|
//#region src/keyValueStoreKeys.d.ts
|
|
370
371
|
declare const KeyValueStoreKeysService_base: Effect.Service.Class<KeyValueStoreKeysService, "KeyValueStoreKeysService", {
|
|
371
|
-
readonly dependencies: readonly [
|
|
372
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
372
373
|
readonly effect: Effect.Effect<(this: unknown, input: Omit<StateKeyValueStoreKeysRequest, "at_ledger_state"> & {
|
|
373
374
|
at_ledger_state: AtLedgerState;
|
|
374
|
-
}) => Effect.Effect<
|
|
375
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.StateKeyValueStoreKeysResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
375
376
|
}>;
|
|
376
377
|
declare class KeyValueStoreKeysService extends KeyValueStoreKeysService_base {}
|
|
377
378
|
//#endregion
|
|
378
379
|
//#region src/getKeyValueStore.d.ts
|
|
379
380
|
declare const GetKeyValueStoreService_base: Effect.Service.Class<GetKeyValueStoreService, "GetKeyValueStoreService", {
|
|
380
|
-
readonly dependencies: readonly [
|
|
381
|
+
readonly dependencies: readonly [effect_Layer0.Layer<KeyValueStoreKeysService, effect_ConfigError0.ConfigError, never>, effect_Layer0.Layer<KeyValueStoreDataService, effect_ConfigError0.ConfigError, never>];
|
|
381
382
|
readonly effect: Effect.Effect<(this: unknown, input: {
|
|
382
383
|
address: string;
|
|
383
384
|
at_ledger_state: AtLedgerState;
|
|
384
385
|
}) => Effect.Effect<{
|
|
385
386
|
key_value_store_address: string;
|
|
386
|
-
ledger_state:
|
|
387
|
-
entries:
|
|
387
|
+
ledger_state: _radixdlt_babylon_gateway_api_sdk6.LedgerState;
|
|
388
|
+
entries: _radixdlt_babylon_gateway_api_sdk6.StateKeyValueStoreDataResponseItem[];
|
|
388
389
|
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, never, KeyValueStoreKeysService | KeyValueStoreDataService>;
|
|
389
390
|
}>;
|
|
390
391
|
declare class GetKeyValueStoreService extends GetKeyValueStoreService_base {}
|
|
@@ -394,8 +395,8 @@ type GetLedgerStateInput = {
|
|
|
394
395
|
at_ledger_state: AtLedgerState;
|
|
395
396
|
};
|
|
396
397
|
declare const GetLedgerStateService_base: Effect.Service.Class<GetLedgerStateService, "GetLedgerStateService", {
|
|
397
|
-
readonly dependencies: readonly [
|
|
398
|
-
readonly effect: Effect.Effect<(this: unknown, input: GetLedgerStateInput) => Effect.Effect<
|
|
398
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
399
|
+
readonly effect: Effect.Effect<(this: unknown, input: GetLedgerStateInput) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.LedgerState, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, never, GatewayApiClient>;
|
|
399
400
|
}>;
|
|
400
401
|
declare class GetLedgerStateService extends GetLedgerStateService_base {}
|
|
401
402
|
//#endregion
|
|
@@ -407,14 +408,14 @@ type GetNftResourceManagersInput = {
|
|
|
407
408
|
options?: StateEntityDetailsOperationRequest['stateEntityDetailsRequest']['opt_ins'];
|
|
408
409
|
};
|
|
409
410
|
declare const GetNftResourceManagersService_base: Effect.Service.Class<GetNftResourceManagersService, "GetNftResourceManagersService", {
|
|
410
|
-
readonly dependencies: readonly [
|
|
411
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>, effect_Layer0.Layer<EntityNonFungiblesPage, effect_ConfigError0.ConfigError, never>, effect_Layer0.Layer<EntityNonFungibleIdsPage, effect_ConfigError0.ConfigError, never>];
|
|
411
412
|
readonly effect: Effect.Effect<(this: unknown, input: GetNftResourceManagersInput) => Effect.Effect<{
|
|
412
413
|
address: string;
|
|
413
414
|
items: {
|
|
414
415
|
resourceAddress: string;
|
|
415
416
|
nftIds: string[];
|
|
416
417
|
}[];
|
|
417
|
-
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
418
|
+
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient | EntityNonFungiblesPage | EntityNonFungibleIdsPage>;
|
|
418
419
|
}>;
|
|
419
420
|
declare class GetNftResourceManagersService extends GetNftResourceManagersService_base {}
|
|
420
421
|
//#endregion
|
|
@@ -432,7 +433,7 @@ type GetNonFungibleBalanceInput = {
|
|
|
432
433
|
};
|
|
433
434
|
type GetNonFungibleBalanceOutput = Effect.Effect.Success<Awaited<ReturnType<(typeof GetNonFungibleBalanceService)['Service']>>>;
|
|
434
435
|
declare const GetNonFungibleBalanceService_base: Effect.Service.Class<GetNonFungibleBalanceService, "GetNonFungibleBalanceService", {
|
|
435
|
-
readonly dependencies: readonly [
|
|
436
|
+
readonly dependencies: readonly [effect_Layer0.Layer<NonFungibleData, effect_ConfigError0.ConfigError, never>, effect_Layer0.Layer<GetNftResourceManagersService, effect_ConfigError0.ConfigError, never>];
|
|
436
437
|
readonly effect: Effect.Effect<(this: unknown, input: GetNonFungibleBalanceInput) => Effect.Effect<{
|
|
437
438
|
items: {
|
|
438
439
|
address: string;
|
|
@@ -441,18 +442,18 @@ declare const GetNonFungibleBalanceService_base: Effect.Service.Class<GetNonFung
|
|
|
441
442
|
items: {
|
|
442
443
|
id: string;
|
|
443
444
|
lastUpdatedStateVersion: number;
|
|
444
|
-
sbor:
|
|
445
|
+
sbor: _radixdlt_babylon_gateway_api_sdk6.ProgrammaticScryptoSborValue | undefined;
|
|
445
446
|
isBurned: boolean;
|
|
446
447
|
}[];
|
|
447
448
|
}[];
|
|
448
449
|
}[];
|
|
449
|
-
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
450
|
+
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, NonFungibleData | GetNftResourceManagersService>;
|
|
450
451
|
}>;
|
|
451
452
|
declare class GetNonFungibleBalanceService extends GetNonFungibleBalanceService_base {}
|
|
452
453
|
//#endregion
|
|
453
454
|
//#region src/getResourceHolders.d.ts
|
|
454
455
|
declare const GetResourceHoldersService_base: Effect.Service.Class<GetResourceHoldersService, "GetResourceHoldersService", {
|
|
455
|
-
readonly dependencies: readonly [
|
|
456
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
456
457
|
readonly effect: Effect.Effect<(this: unknown, input: {
|
|
457
458
|
resourceAddress: string;
|
|
458
459
|
cursor?: string;
|
|
@@ -515,7 +516,7 @@ type PersonaProof = typeof PersonaProofSchema.Type;
|
|
|
515
516
|
type AccountProof = typeof AccountProofSchema.Type;
|
|
516
517
|
type RolaProof = typeof RolaProofSchema.Type;
|
|
517
518
|
declare const Rola_base: Effect.Service.Class<Rola, "Rola", {
|
|
518
|
-
readonly dependencies: readonly [
|
|
519
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GatewayApiClient, never, never>];
|
|
519
520
|
readonly effect: Effect.Effect<{
|
|
520
521
|
verifySignedChallenge: (input: RolaProof) => Effect.Effect<undefined, VerifyRolaProofError, never>;
|
|
521
522
|
}, never, GatewayApiClient>;
|
package/dist/index.js
CHANGED
|
@@ -97,6 +97,7 @@ var GatewayApiClient = class extends Effect.Service()("GatewayApiClient", { effe
|
|
|
97
97
|
})), Effect.retry({ while: (error) => error._tag === "RateLimitExceededError" }));
|
|
98
98
|
};
|
|
99
99
|
return {
|
|
100
|
+
networkId,
|
|
100
101
|
state: {
|
|
101
102
|
getEntityDetailsVaultAggregated: wrapMethod(gatewayApiClient.state.getEntityDetailsVaultAggregated.bind(gatewayApiClient.state)),
|
|
102
103
|
getValidators: wrapMethod(gatewayApiClient.state.getValidators.bind(gatewayApiClient.state)),
|