@radix-effects/gateway 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ declare class UnknownGatewayError extends UnknownGatewayError_base<{
|
|
|
90
90
|
}> {}
|
|
91
91
|
declare const GatewayApiClient_base: Effect.Service.Class<GatewayApiClient, "GatewayApiClient", {
|
|
92
92
|
readonly effect: Effect.Effect<{
|
|
93
|
+
networkId: number;
|
|
93
94
|
state: {
|
|
94
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>;
|
|
95
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>;
|
|
@@ -128,6 +129,7 @@ declare const GatewayApiClient_base: Effect.Service.Class<GatewayApiClient, "Gat
|
|
|
128
129
|
innerClient: {
|
|
129
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>;
|
|
130
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>;
|
|
131
133
|
};
|
|
132
134
|
};
|
|
133
135
|
status: {
|
|
@@ -216,13 +218,13 @@ declare const ValidatorSchema: z.ZodObject<{
|
|
|
216
218
|
lsuResourceAddress: z.ZodString;
|
|
217
219
|
claimNftResourceAddress: z.ZodString;
|
|
218
220
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
name: string;
|
|
220
221
|
address: string;
|
|
222
|
+
name: string;
|
|
221
223
|
lsuResourceAddress: string;
|
|
222
224
|
claimNftResourceAddress: string;
|
|
223
225
|
}, {
|
|
224
|
-
name: string;
|
|
225
226
|
address: string;
|
|
227
|
+
name: string;
|
|
226
228
|
lsuResourceAddress: string;
|
|
227
229
|
claimNftResourceAddress: string;
|
|
228
230
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -97,6 +97,7 @@ var GatewayApiClient = class extends Effect.Service()("GatewayApiClient", { effe
|
|
|
97
97
|
})), Effect.retry({ while: (error) => error._tag === "RateLimitExceededError" }));
|
|
98
98
|
};
|
|
99
99
|
return {
|
|
100
|
+
networkId,
|
|
100
101
|
state: {
|
|
101
102
|
getEntityDetailsVaultAggregated: wrapMethod(gatewayApiClient.state.getEntityDetailsVaultAggregated.bind(gatewayApiClient.state)),
|
|
102
103
|
getValidators: wrapMethod(gatewayApiClient.state.getValidators.bind(gatewayApiClient.state)),
|
|
@@ -118,7 +119,8 @@ var GatewayApiClient = class extends Effect.Service()("GatewayApiClient", { effe
|
|
|
118
119
|
getCommittedDetails: wrapMethod(gatewayApiClient.transaction.getCommittedDetails.bind(gatewayApiClient.transaction)),
|
|
119
120
|
innerClient: {
|
|
120
121
|
transactionSubmit: wrapMethod(gatewayApiClient.transaction.innerClient.transactionSubmit.bind(gatewayApiClient.transaction.innerClient)),
|
|
121
|
-
transactionStatus: wrapMethod(gatewayApiClient.transaction.innerClient.transactionStatus.bind(gatewayApiClient.transaction.innerClient))
|
|
122
|
+
transactionStatus: wrapMethod(gatewayApiClient.transaction.innerClient.transactionStatus.bind(gatewayApiClient.transaction.innerClient)),
|
|
123
|
+
transactionPreview: wrapMethod(gatewayApiClient.transaction.innerClient.transactionPreview.bind(gatewayApiClient.transaction.innerClient))
|
|
122
124
|
}
|
|
123
125
|
},
|
|
124
126
|
status: {
|