@radix-effects/gateway 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +66 -66
- package/dist/index.js +14 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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, TransactionPreviewOperationRequest } from "@radixdlt/babylon-gateway-api-sdk";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { RolaError } from "@radixdlt/rola";
|
|
6
|
-
import * as
|
|
6
|
+
import * as effect_ConfigError0 from "effect/ConfigError";
|
|
7
7
|
import * as effect_Types0 from "effect/Types";
|
|
8
8
|
import * as effect_Cause0 from "effect/Cause";
|
|
9
9
|
import * as effect_Layer0 from "effect/Layer";
|
|
@@ -92,24 +92,24 @@ declare const GatewayApiClient_base: Effect.Service.Class<GatewayApiClient, "Gat
|
|
|
92
92
|
readonly effect: Effect.Effect<{
|
|
93
93
|
networkId: number;
|
|
94
94
|
state: {
|
|
95
|
-
getEntityDetailsVaultAggregated: (addresses: string[], options?:
|
|
96
|
-
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>;
|
|
97
97
|
innerClient: {
|
|
98
|
-
stateEntityDetails: (requestParameters:
|
|
99
|
-
entityFungiblesPage: (requestParameters:
|
|
100
|
-
entityNonFungiblesPage: (requestParameters:
|
|
101
|
-
entityNonFungibleIdsPage: (requestParameters:
|
|
102
|
-
entityNonFungibleResourceVaultPage: (requestParameters:
|
|
103
|
-
keyValueStoreKeys: (requestParameters:
|
|
104
|
-
keyValueStoreData: (requestParameters:
|
|
105
|
-
nonFungibleData: (requestParameters:
|
|
106
|
-
nonFungibleLocation: (requestParameters:
|
|
107
|
-
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>;
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
110
|
stream: {
|
|
111
111
|
innerClient: {
|
|
112
|
-
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>;
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
115
|
transaction: {
|
|
@@ -125,21 +125,21 @@ declare const GatewayApiClient_base: Effect.Service.Class<GatewayApiClient, "Gat
|
|
|
125
125
|
balanceChanges: boolean;
|
|
126
126
|
receiptOutput: boolean;
|
|
127
127
|
manifestInstructions: boolean;
|
|
128
|
-
} | 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>;
|
|
129
129
|
innerClient: {
|
|
130
|
-
transactionSubmit: (requestParameters:
|
|
131
|
-
transactionStatus: (requestParameters:
|
|
132
|
-
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>;
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
135
|
status: {
|
|
136
|
-
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>;
|
|
137
137
|
innerClient: {
|
|
138
|
-
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>;
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
141
|
extensions: {
|
|
142
|
-
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>;
|
|
143
143
|
};
|
|
144
144
|
rawClient: GatewayApiClient$1;
|
|
145
145
|
}, never, never>;
|
|
@@ -185,26 +185,26 @@ declare const validateAtLedgerStateInput: (input: unknown) => Effect.Effect<AtLe
|
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region src/state/entityFungiblesPage.d.ts
|
|
187
187
|
type EntityFungiblesPageInput = Omit<EntityFungiblesPageRequest['stateEntityFungiblesPageRequest'], 'at_ledger_state'> & {
|
|
188
|
-
at_ledger_state
|
|
188
|
+
at_ledger_state?: AtLedgerState;
|
|
189
189
|
};
|
|
190
190
|
declare const EntityFungiblesPage_base: Effect.Service.Class<EntityFungiblesPage, "EntityFungiblesPage", {
|
|
191
|
-
readonly effect: Effect.Effect<(this: unknown, input: EntityFungiblesPageInput) => Effect.Effect<
|
|
191
|
+
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
192
|
}>;
|
|
193
193
|
declare class EntityFungiblesPage extends EntityFungiblesPage_base {}
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region src/state/nonFungibleData.d.ts
|
|
196
196
|
declare const NonFungibleData_base: Effect.Service.Class<NonFungibleData, "NonFungibleData", {
|
|
197
|
-
readonly effect: Effect.Effect<(this: unknown, input: Omit<
|
|
198
|
-
at_ledger_state
|
|
199
|
-
}) => Effect.Effect<
|
|
197
|
+
readonly effect: Effect.Effect<(this: unknown, input: Omit<_radixdlt_babylon_gateway_api_sdk6.StateNonFungibleDataRequest, "at_ledger_state"> & {
|
|
198
|
+
at_ledger_state?: AtLedgerState;
|
|
199
|
+
}) => 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>;
|
|
200
200
|
}>;
|
|
201
201
|
declare class NonFungibleData extends NonFungibleData_base {}
|
|
202
202
|
//#endregion
|
|
203
203
|
//#region src/state/entityNonFungiblesPage.d.ts
|
|
204
204
|
declare const EntityNonFungiblesPage_base: Effect.Service.Class<EntityNonFungiblesPage, "EntityNonFungiblesPage", {
|
|
205
|
-
readonly effect: Effect.Effect<(this: unknown, input: Omit<
|
|
206
|
-
at_ledger_state
|
|
207
|
-
}) => Effect.Effect<
|
|
205
|
+
readonly effect: Effect.Effect<(this: unknown, input: Omit<_radixdlt_babylon_gateway_api_sdk6.StateEntityNonFungiblesPageRequest, "at_ledger_state"> & {
|
|
206
|
+
at_ledger_state?: AtLedgerState;
|
|
207
|
+
}) => 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>;
|
|
208
208
|
}>;
|
|
209
209
|
declare class EntityNonFungiblesPage extends EntityNonFungiblesPage_base {}
|
|
210
210
|
//#endregion
|
|
@@ -242,11 +242,11 @@ type GetEntityDetailsInput = GetEntityDetailsVaultAggregatedParameters[0];
|
|
|
242
242
|
type GetEntityDetailsOptions = GetEntityDetailsVaultAggregatedParameters[1];
|
|
243
243
|
type GetEntityDetailsState = GetEntityDetailsVaultAggregatedParameters[2];
|
|
244
244
|
declare const GetEntityDetailsVaultAggregated_base: Effect.Service.Class<GetEntityDetailsVaultAggregated, "GetEntityDetailsVaultAggregated", {
|
|
245
|
-
readonly effect: Effect.Effect<(this: unknown, input: string[], options:
|
|
245
|
+
readonly effect: Effect.Effect<(this: unknown, input: string[], options: _radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsOptions | undefined, at_ledger_state?: {
|
|
246
246
|
state_version: number;
|
|
247
247
|
} | {
|
|
248
248
|
timestamp: Date;
|
|
249
|
-
}) => Effect.Effect<
|
|
249
|
+
} | undefined) => 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>;
|
|
250
250
|
}>;
|
|
251
251
|
declare class GetEntityDetailsVaultAggregated extends GetEntityDetailsVaultAggregated_base {}
|
|
252
252
|
//#endregion
|
|
@@ -254,7 +254,7 @@ declare class GetEntityDetailsVaultAggregated extends GetEntityDetailsVaultAggre
|
|
|
254
254
|
type GetNonFungibleIdsInput = {
|
|
255
255
|
vaultAddress: string;
|
|
256
256
|
resourceAddress: string;
|
|
257
|
-
at_ledger_state
|
|
257
|
+
at_ledger_state?: AtLedgerState;
|
|
258
258
|
address: string;
|
|
259
259
|
cursor?: string;
|
|
260
260
|
};
|
|
@@ -262,7 +262,7 @@ declare const EntityNonFungibleIdsPage_base: Effect.Service.Class<EntityNonFungi
|
|
|
262
262
|
readonly effect: Effect.Effect<(this: unknown, input: GetNonFungibleIdsInput) => Effect.Effect<{
|
|
263
263
|
ids: string[];
|
|
264
264
|
address: string;
|
|
265
|
-
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
265
|
+
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
266
266
|
}>;
|
|
267
267
|
declare class EntityNonFungibleIdsPage extends EntityNonFungibleIdsPage_base {}
|
|
268
268
|
//#endregion
|
|
@@ -270,10 +270,10 @@ declare class EntityNonFungibleIdsPage extends EntityNonFungibleIdsPage_base {}
|
|
|
270
270
|
type StateEntityDetailsParameters = Parameters<(typeof GatewayApiClient)['Service']['state']['innerClient']['stateEntityDetails']>;
|
|
271
271
|
type StateEntityDetailsInput = StateEntityDetailsParameters[0]['stateEntityDetailsRequest'];
|
|
272
272
|
declare const StateEntityDetails_base: Effect.Service.Class<StateEntityDetails, "StateEntityDetails", {
|
|
273
|
-
readonly effect: Effect.Effect<(this: unknown, input:
|
|
274
|
-
ledger_state:
|
|
275
|
-
items:
|
|
276
|
-
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
273
|
+
readonly effect: Effect.Effect<(this: unknown, input: _radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsRequest) => Effect.Effect<{
|
|
274
|
+
ledger_state: _radixdlt_babylon_gateway_api_sdk6.LedgerState;
|
|
275
|
+
items: _radixdlt_babylon_gateway_api_sdk6.StateEntityDetailsResponseItem[];
|
|
276
|
+
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient>;
|
|
277
277
|
}>;
|
|
278
278
|
declare class StateEntityDetails extends StateEntityDetails_base {}
|
|
279
279
|
//#endregion
|
|
@@ -282,8 +282,8 @@ declare const GetNonFungibleLocationService_base: Effect.Service.Class<GetNonFun
|
|
|
282
282
|
readonly effect: Effect.Effect<(this: unknown, input: {
|
|
283
283
|
resourceAddress: string;
|
|
284
284
|
nonFungibleIds: string[];
|
|
285
|
-
at_ledger_state
|
|
286
|
-
}) => Effect.Effect<
|
|
285
|
+
at_ledger_state?: AtLedgerState;
|
|
286
|
+
}) => 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>;
|
|
287
287
|
}>;
|
|
288
288
|
declare class GetNonFungibleLocationService extends GetNonFungibleLocationService_base {}
|
|
289
289
|
//#endregion
|
|
@@ -297,10 +297,10 @@ declare class EntityNotFoundError$2 extends EntityNotFoundError_base<{
|
|
|
297
297
|
type GetAddressByNonFungibleServiceInput = {
|
|
298
298
|
resourceAddress: string;
|
|
299
299
|
nonFungibleId: string;
|
|
300
|
-
at_ledger_state
|
|
300
|
+
at_ledger_state?: AtLedgerState;
|
|
301
301
|
};
|
|
302
302
|
declare const GetAddressByNonFungibleService_base: Effect.Service.Class<GetAddressByNonFungibleService, "GetAddressByNonFungibleService", {
|
|
303
|
-
readonly dependencies: readonly [effect_Layer0.Layer<GetNonFungibleLocationService,
|
|
303
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GetNonFungibleLocationService, effect_ConfigError0.ConfigError, GatewayApiClient>];
|
|
304
304
|
readonly effect: Effect.Effect<(this: unknown, input: GetAddressByNonFungibleServiceInput) => Effect.Effect<{
|
|
305
305
|
address: string;
|
|
306
306
|
resourceAddress: string;
|
|
@@ -316,11 +316,11 @@ declare class InvalidComponentStateError {
|
|
|
316
316
|
constructor(error: unknown);
|
|
317
317
|
}
|
|
318
318
|
declare const GetComponentStateService_base: Effect.Service.Class<GetComponentStateService, "GetComponentStateService", {
|
|
319
|
-
readonly dependencies: readonly [effect_Layer0.Layer<GetEntityDetailsVaultAggregated,
|
|
319
|
+
readonly dependencies: readonly [effect_Layer0.Layer<GetEntityDetailsVaultAggregated, effect_ConfigError0.ConfigError, GatewayApiClient>];
|
|
320
320
|
readonly effect: Effect.Effect<{
|
|
321
321
|
run: <T extends StructDefinition, R extends boolean>(this: unknown, input: {
|
|
322
322
|
addresses: string[];
|
|
323
|
-
at_ledger_state
|
|
323
|
+
at_ledger_state?: AtLedgerState;
|
|
324
324
|
schema: StructSchema<T, R>;
|
|
325
325
|
options?: GetEntityDetailsOptions;
|
|
326
326
|
}) => Effect.Effect<{
|
|
@@ -335,20 +335,20 @@ declare class GetComponentStateService extends GetComponentStateService_base {}
|
|
|
335
335
|
//#region src/getFungibleBalance.d.ts
|
|
336
336
|
type GetFungibleBalanceOutput = Effect.Effect.Success<Awaited<ReturnType<(typeof GetFungibleBalance)['Service']>>>;
|
|
337
337
|
type GetFungibleBalanceInput = Omit<StateEntityDetailsOperationRequest['stateEntityDetailsRequest'], 'at_ledger_state'> & {
|
|
338
|
-
at_ledger_state
|
|
338
|
+
at_ledger_state?: AtLedgerState;
|
|
339
339
|
options?: StateEntityDetailsOperationRequest['stateEntityDetailsRequest']['opt_ins'];
|
|
340
340
|
};
|
|
341
341
|
declare const GetFungibleBalance_base: Effect.Service.Class<GetFungibleBalance, "GetFungibleBalance", {
|
|
342
|
-
readonly dependencies: readonly [effect_Layer0.Layer<EntityFungiblesPage,
|
|
342
|
+
readonly dependencies: readonly [effect_Layer0.Layer<EntityFungiblesPage, effect_ConfigError0.ConfigError, GatewayApiClient>, effect_Layer0.Layer<StateEntityDetails, effect_ConfigError0.ConfigError, GatewayApiClient>];
|
|
343
343
|
readonly effect: Effect.Effect<(this: unknown, input: GetFungibleBalanceInput) => Effect.Effect<{
|
|
344
344
|
address: string;
|
|
345
345
|
items: {
|
|
346
346
|
amount: BigNumber;
|
|
347
347
|
resource_address: string;
|
|
348
|
-
explicit_metadata?:
|
|
348
|
+
explicit_metadata?: _radixdlt_babylon_gateway_api_sdk6.EntityMetadataCollection;
|
|
349
349
|
last_updated_at_state_version: number;
|
|
350
350
|
}[];
|
|
351
|
-
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
351
|
+
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, EntityFungiblesPage | StateEntityDetails>;
|
|
352
352
|
}>;
|
|
353
353
|
declare class GetFungibleBalance extends GetFungibleBalance_base {}
|
|
354
354
|
//#endregion
|
|
@@ -356,58 +356,58 @@ declare class GetFungibleBalance extends GetFungibleBalance_base {}
|
|
|
356
356
|
declare const KeyValueStoreDataService_base: Effect.Service.Class<KeyValueStoreDataService, "KeyValueStoreDataService", {
|
|
357
357
|
readonly dependencies: readonly [];
|
|
358
358
|
readonly effect: Effect.Effect<(this: unknown, input: Omit<StateKeyValueStoreDataRequest, "at_ledger_state"> & {
|
|
359
|
-
at_ledger_state
|
|
360
|
-
}) => Effect.Effect<
|
|
359
|
+
at_ledger_state?: AtLedgerState;
|
|
360
|
+
}) => 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>;
|
|
361
361
|
}>;
|
|
362
362
|
declare class KeyValueStoreDataService extends KeyValueStoreDataService_base {}
|
|
363
363
|
//#endregion
|
|
364
364
|
//#region src/keyValueStoreKeys.d.ts
|
|
365
365
|
declare const KeyValueStoreKeysService_base: Effect.Service.Class<KeyValueStoreKeysService, "KeyValueStoreKeysService", {
|
|
366
366
|
readonly effect: Effect.Effect<(this: unknown, input: Omit<StateKeyValueStoreKeysRequest, "at_ledger_state"> & {
|
|
367
|
-
at_ledger_state
|
|
368
|
-
}) => Effect.Effect<
|
|
367
|
+
at_ledger_state?: AtLedgerState;
|
|
368
|
+
}) => 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>;
|
|
369
369
|
}>;
|
|
370
370
|
declare class KeyValueStoreKeysService extends KeyValueStoreKeysService_base {}
|
|
371
371
|
//#endregion
|
|
372
372
|
//#region src/getKeyValueStore.d.ts
|
|
373
373
|
declare const GetKeyValueStoreService_base: Effect.Service.Class<GetKeyValueStoreService, "GetKeyValueStoreService", {
|
|
374
|
-
readonly dependencies: readonly [effect_Layer0.Layer<KeyValueStoreKeysService,
|
|
374
|
+
readonly dependencies: readonly [effect_Layer0.Layer<KeyValueStoreKeysService, effect_ConfigError0.ConfigError, GatewayApiClient>, effect_Layer0.Layer<KeyValueStoreDataService, effect_ConfigError0.ConfigError, GatewayApiClient>];
|
|
375
375
|
readonly effect: Effect.Effect<(this: unknown, input: {
|
|
376
376
|
address: string;
|
|
377
|
-
at_ledger_state
|
|
377
|
+
at_ledger_state?: AtLedgerState;
|
|
378
378
|
}) => Effect.Effect<{
|
|
379
379
|
key_value_store_address: string;
|
|
380
|
-
ledger_state:
|
|
381
|
-
entries:
|
|
380
|
+
ledger_state: _radixdlt_babylon_gateway_api_sdk6.LedgerState;
|
|
381
|
+
entries: _radixdlt_babylon_gateway_api_sdk6.StateKeyValueStoreDataResponseItem[];
|
|
382
382
|
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, never, KeyValueStoreKeysService | KeyValueStoreDataService>;
|
|
383
383
|
}>;
|
|
384
384
|
declare class GetKeyValueStoreService extends GetKeyValueStoreService_base {}
|
|
385
385
|
//#endregion
|
|
386
386
|
//#region src/getLedgerState.d.ts
|
|
387
387
|
type GetLedgerStateInput = {
|
|
388
|
-
at_ledger_state
|
|
388
|
+
at_ledger_state?: AtLedgerState;
|
|
389
389
|
};
|
|
390
390
|
declare const GetLedgerStateService_base: Effect.Service.Class<GetLedgerStateService, "GetLedgerStateService", {
|
|
391
|
-
readonly effect: Effect.Effect<(this: unknown, input: GetLedgerStateInput) => Effect.Effect<
|
|
391
|
+
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>;
|
|
392
392
|
}>;
|
|
393
393
|
declare class GetLedgerStateService extends GetLedgerStateService_base {}
|
|
394
394
|
//#endregion
|
|
395
395
|
//#region src/getNftResourceManagers.d.ts
|
|
396
396
|
type GetNftResourceManagersInput = {
|
|
397
397
|
addresses: string[];
|
|
398
|
-
at_ledger_state
|
|
398
|
+
at_ledger_state?: AtLedgerState;
|
|
399
399
|
resourceAddresses?: string[];
|
|
400
400
|
options?: StateEntityDetailsOperationRequest['stateEntityDetailsRequest']['opt_ins'];
|
|
401
401
|
};
|
|
402
402
|
declare const GetNftResourceManagersService_base: Effect.Service.Class<GetNftResourceManagersService, "GetNftResourceManagersService", {
|
|
403
|
-
readonly dependencies: readonly [effect_Layer0.Layer<EntityNonFungiblesPage,
|
|
403
|
+
readonly dependencies: readonly [effect_Layer0.Layer<EntityNonFungiblesPage, effect_ConfigError0.ConfigError, GatewayApiClient>, effect_Layer0.Layer<EntityNonFungibleIdsPage, effect_ConfigError0.ConfigError, GatewayApiClient>];
|
|
404
404
|
readonly effect: Effect.Effect<(this: unknown, input: GetNftResourceManagersInput) => Effect.Effect<{
|
|
405
405
|
address: string;
|
|
406
406
|
items: {
|
|
407
407
|
resourceAddress: string;
|
|
408
408
|
nftIds: string[];
|
|
409
409
|
}[];
|
|
410
|
-
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
410
|
+
}[], AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, GatewayApiClient | EntityNonFungiblesPage | EntityNonFungibleIdsPage>;
|
|
411
411
|
}>;
|
|
412
412
|
declare class GetNftResourceManagersService extends GetNftResourceManagersService_base {}
|
|
413
413
|
//#endregion
|
|
@@ -419,13 +419,13 @@ declare class InvalidInputError {
|
|
|
419
419
|
}
|
|
420
420
|
type GetNonFungibleBalanceInput = {
|
|
421
421
|
addresses: string[];
|
|
422
|
-
at_ledger_state
|
|
422
|
+
at_ledger_state?: AtLedgerState;
|
|
423
423
|
resourceAddresses?: string[];
|
|
424
424
|
options?: StateEntityDetailsOperationRequest['stateEntityDetailsRequest']['opt_ins'];
|
|
425
425
|
};
|
|
426
426
|
type GetNonFungibleBalanceOutput = Effect.Effect.Success<Awaited<ReturnType<(typeof GetNonFungibleBalanceService)['Service']>>>;
|
|
427
427
|
declare const GetNonFungibleBalanceService_base: Effect.Service.Class<GetNonFungibleBalanceService, "GetNonFungibleBalanceService", {
|
|
428
|
-
readonly dependencies: readonly [effect_Layer0.Layer<NonFungibleData,
|
|
428
|
+
readonly dependencies: readonly [effect_Layer0.Layer<NonFungibleData, effect_ConfigError0.ConfigError, GatewayApiClient>, effect_Layer0.Layer<GetNftResourceManagersService, effect_ConfigError0.ConfigError, GatewayApiClient>];
|
|
429
429
|
readonly effect: Effect.Effect<(this: unknown, input: GetNonFungibleBalanceInput) => Effect.Effect<{
|
|
430
430
|
items: {
|
|
431
431
|
address: string;
|
|
@@ -434,12 +434,12 @@ declare const GetNonFungibleBalanceService_base: Effect.Service.Class<GetNonFung
|
|
|
434
434
|
items: {
|
|
435
435
|
id: string;
|
|
436
436
|
lastUpdatedStateVersion: number;
|
|
437
|
-
sbor:
|
|
437
|
+
sbor: _radixdlt_babylon_gateway_api_sdk6.ProgrammaticScryptoSborValue | undefined;
|
|
438
438
|
isBurned: boolean;
|
|
439
439
|
}[];
|
|
440
440
|
}[];
|
|
441
441
|
}[];
|
|
442
|
-
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>,
|
|
442
|
+
}, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError, never>, effect_ConfigError0.ConfigError, NonFungibleData | GetNftResourceManagersService>;
|
|
443
443
|
}>;
|
|
444
444
|
declare class GetNonFungibleBalanceService extends GetNonFungibleBalanceService_base {}
|
|
445
445
|
//#endregion
|
|
@@ -693,7 +693,7 @@ declare class TransactionPreviewError extends TransactionPreviewError_base<{
|
|
|
693
693
|
declare const PreviewTransaction_base: Effect.Service.Class<PreviewTransaction, "PreviewTransaction", {
|
|
694
694
|
readonly effect: Effect.Effect<(this: unknown, input: {
|
|
695
695
|
payload: TransactionPreviewOperationRequest["transactionPreviewRequest"];
|
|
696
|
-
}) => Effect.Effect<
|
|
696
|
+
}) => Effect.Effect<_radixdlt_babylon_gateway_api_sdk6.TransactionPreviewResponse, AccountLockerNotFoundError | InvalidRequestError | EntityNotFoundError | InternalServerError | InvalidEntityError | InvalidTransactionError | NotSyncedUpError | TransactionNotFoundError | ErrorResponse | RateLimitExceededError | ResponseError | UnknownGatewayError | TransactionPreviewError, never>, never, GatewayApiClient>;
|
|
697
697
|
}>;
|
|
698
698
|
declare class PreviewTransaction extends PreviewTransaction_base {}
|
|
699
699
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -145,11 +145,13 @@ var EntityFungiblesPage = class extends Effect.Service()("EntityFungiblesPage",
|
|
|
145
145
|
});
|
|
146
146
|
return Effect.fnUntraced(function* (input) {
|
|
147
147
|
const result = yield* entityFungiblesPage(input);
|
|
148
|
+
const paginationState = { state_version: result.ledger_state.state_version };
|
|
148
149
|
let nextCursor = result?.next_cursor;
|
|
149
150
|
const items = result?.items ?? [];
|
|
150
151
|
while (nextCursor) {
|
|
151
152
|
const result$1 = yield* entityFungiblesPage({
|
|
152
153
|
...input,
|
|
154
|
+
at_ledger_state: paginationState,
|
|
153
155
|
cursor: nextCursor
|
|
154
156
|
});
|
|
155
157
|
nextCursor = result$1.next_cursor;
|
|
@@ -253,20 +255,21 @@ var EntityNonFungibleIdsPage = class extends Effect.Service()("EntityNonFungible
|
|
|
253
255
|
const gatewayClient = yield* GatewayApiClient;
|
|
254
256
|
const pageSize = yield* Config.number("GatewayApi__Endpoint__StateEntityDetailsPageSize").pipe(Config.withDefault(100));
|
|
255
257
|
return Effect.fn(function* (input) {
|
|
256
|
-
const makeRequest = (cursor) => gatewayClient.state.innerClient.entityNonFungibleIdsPage({ stateEntityNonFungibleIdsPageRequest: {
|
|
258
|
+
const makeRequest = (cursor, at_ledger_state) => gatewayClient.state.innerClient.entityNonFungibleIdsPage({ stateEntityNonFungibleIdsPageRequest: {
|
|
257
259
|
resource_address: input.resourceAddress,
|
|
258
260
|
vault_address: input.vaultAddress,
|
|
259
261
|
address: input.address,
|
|
260
|
-
at_ledger_state: input.at_ledger_state,
|
|
262
|
+
at_ledger_state: at_ledger_state ?? input.at_ledger_state,
|
|
261
263
|
cursor,
|
|
262
264
|
limit_per_page: pageSize
|
|
263
265
|
} });
|
|
264
266
|
const result = yield* makeRequest(input.cursor);
|
|
267
|
+
const paginationState = { state_version: result.ledger_state.state_version };
|
|
265
268
|
let next_cursor = result.next_cursor;
|
|
266
269
|
const totalCount = result.total_count ?? 0;
|
|
267
270
|
const ids = [...result.items];
|
|
268
271
|
while (next_cursor && totalCount > 0) {
|
|
269
|
-
const result$1 = yield* makeRequest(next_cursor);
|
|
272
|
+
const result$1 = yield* makeRequest(next_cursor, paginationState);
|
|
270
273
|
ids.push(...result$1.items);
|
|
271
274
|
next_cursor = result$1.next_cursor;
|
|
272
275
|
}
|
|
@@ -422,7 +425,8 @@ var GetFungibleBalance = class extends Effect.Service()("GetFungibleBalance", {
|
|
|
422
425
|
at_ledger_state: input.at_ledger_state,
|
|
423
426
|
aggregation_level: "Global"
|
|
424
427
|
});
|
|
425
|
-
|
|
428
|
+
const paginationState = { state_version: stateEntityDetailsResults.ledger_state.state_version };
|
|
429
|
+
return yield* Effect.forEach(stateEntityDetailsResults.items, (item) => getAggregatedFungibleBalance(item, paginationState), { concurrency }).pipe(Effect.map((results) => results.flat()));
|
|
426
430
|
});
|
|
427
431
|
})
|
|
428
432
|
}) {};
|
|
@@ -472,12 +476,13 @@ var GetKeyValueStoreService = class extends Effect.Service()("GetKeyValueStoreSe
|
|
|
472
476
|
key_value_store_address: input.address,
|
|
473
477
|
at_ledger_state: input.at_ledger_state
|
|
474
478
|
});
|
|
479
|
+
const paginationState = { state_version: keyResults.ledger_state.state_version };
|
|
475
480
|
const allKeys = [...keyResults.items];
|
|
476
481
|
let nextCursor = keyResults.next_cursor;
|
|
477
482
|
while (nextCursor) {
|
|
478
483
|
const nextKeyResults = yield* keyValueStoreKeysService({
|
|
479
484
|
key_value_store_address: input.address,
|
|
480
|
-
at_ledger_state:
|
|
485
|
+
at_ledger_state: paginationState,
|
|
481
486
|
cursor: nextCursor
|
|
482
487
|
});
|
|
483
488
|
allKeys.push(...nextKeyResults.items);
|
|
@@ -486,7 +491,7 @@ var GetKeyValueStoreService = class extends Effect.Service()("GetKeyValueStoreSe
|
|
|
486
491
|
return yield* keyValueStoreDataService({
|
|
487
492
|
key_value_store_address: input.address,
|
|
488
493
|
keys: allKeys.map(({ key }) => ({ key_json: key.programmatic_json })),
|
|
489
|
-
at_ledger_state:
|
|
494
|
+
at_ledger_state: paginationState
|
|
490
495
|
}).pipe(Effect.map((res) => {
|
|
491
496
|
const { key_value_store_address, ledger_state } = res[0];
|
|
492
497
|
return {
|
|
@@ -611,10 +616,11 @@ var GetNftResourceManagersService = class extends Effect.Service()("GetNftResour
|
|
|
611
616
|
optIns,
|
|
612
617
|
at_ledger_state: input.at_ledger_state
|
|
613
618
|
});
|
|
619
|
+
const paginationState = stateEntityDetailsResults[0] ? { state_version: stateEntityDetailsResults[0].ledger_state.state_version } : input.at_ledger_state;
|
|
614
620
|
const resourceManagerResults = yield* Effect.forEach(stateEntityDetailsResults, Effect.fnUntraced(function* (stateEntityDetails) {
|
|
615
621
|
return yield* getResourceManagers({
|
|
616
622
|
items: stateEntityDetails.items,
|
|
617
|
-
at_ledger_state:
|
|
623
|
+
at_ledger_state: paginationState,
|
|
618
624
|
aggregationLevel: AGGREGATION_LEVEL,
|
|
619
625
|
optIns,
|
|
620
626
|
filterResourceAddresses
|
|
@@ -624,7 +630,7 @@ var GetNftResourceManagersService = class extends Effect.Service()("GetNftResour
|
|
|
624
630
|
const nftIds = yield* Effect.forEach(resourceManagerResult.resourceManagers, (resourceManager) => getNftIds({
|
|
625
631
|
resourceManager,
|
|
626
632
|
optIns,
|
|
627
|
-
at_ledger_state:
|
|
633
|
+
at_ledger_state: paginationState,
|
|
628
634
|
address: resourceManagerResult.address
|
|
629
635
|
}));
|
|
630
636
|
return {
|