@radix-effects/gateway 0.2.0 → 0.3.0

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