@lucid-evolution/provider 0.1.97 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,7 +1,53 @@
1
- import { Provider, ProtocolParameters, Address, Credential, UTxO, Unit, OutRef, RewardAddress, Delegation, DatumHash, Datum, TxHash, Transaction, EvalRedeemer, UnixTime, Lovelace, Assets, OutputData } from '@lucid-evolution/core-types';
1
+ import { Provider, ProtocolParameters, Address, Credential, UTxO, Unit, OutRef, RewardAddress, RewardAccountState, Delegation, DatumHash, Datum, TxHash, TransactionStatusOptions, TransactionStatus, Transaction, EvalRedeemer, PolicyId, UnixTime, Lovelace, Assets, OutputData } from '@lucid-evolution/core-types';
2
2
  import * as effect_Cause from 'effect/Cause';
3
3
  import * as effect_Types from 'effect/Types';
4
4
 
5
+ type ProviderTransportProtocol = "kupo" | "ogmios";
6
+ type ProviderErrorKind = "http" | "timeout" | "transport" | "decode" | "json_rpc" | "aborted" | "unknown";
7
+ type KupmiosErrorOptions = {
8
+ /** Optional only for compatibility with the former `{ cause }` constructor. */
9
+ protocol?: ProviderTransportProtocol;
10
+ /** Optional only for compatibility with the former `{ cause }` constructor. */
11
+ operation?: string;
12
+ cause?: unknown;
13
+ kind?: ProviderErrorKind;
14
+ status?: number;
15
+ retryable?: boolean;
16
+ retryAfterMs?: number;
17
+ message?: string;
18
+ };
19
+ declare class KupmiosError extends Error {
20
+ readonly _tag: string;
21
+ readonly provider: "Kupmios";
22
+ readonly protocol?: ProviderTransportProtocol;
23
+ readonly operation: string;
24
+ readonly kind: ProviderErrorKind;
25
+ readonly status?: number;
26
+ readonly retryable: boolean;
27
+ readonly retryAfterMs?: number;
28
+ readonly cause?: unknown;
29
+ constructor(options: KupmiosErrorOptions);
30
+ }
31
+ type OgmiosJsonRpcErrorOptions = {
32
+ code: number;
33
+ message: string;
34
+ data?: unknown;
35
+ method?: string;
36
+ id: number | null;
37
+ operation?: string;
38
+ status?: number;
39
+ retryAfterMs?: number;
40
+ cause?: unknown;
41
+ };
42
+ declare class OgmiosJsonRpcError extends KupmiosError {
43
+ readonly _tag = "OgmiosJsonRpcError";
44
+ readonly code: number;
45
+ readonly data?: unknown;
46
+ readonly method?: string;
47
+ readonly id: number | null;
48
+ constructor(options: OgmiosJsonRpcErrorOptions);
49
+ }
50
+
5
51
  declare class Blockfrost implements Provider {
6
52
  url: string;
7
53
  projectId: string;
@@ -12,25 +58,29 @@ declare class Blockfrost implements Provider {
12
58
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
13
59
  getUtxoByUnit(unit: Unit): Promise<UTxO>;
14
60
  getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>;
61
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
15
62
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
16
63
  getDatum(datumHash: DatumHash): Promise<Datum>;
17
64
  awaitTx(txHash: TxHash, checkInterval?: number): Promise<boolean>;
65
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
18
66
  submitTx(tx: Transaction): Promise<TxHash>;
19
67
  private blockfrostUtxosToUtxos;
20
68
  evaluateTx(tx: Transaction, additionalUTxOs?: UTxO[]): Promise<EvalRedeemer[]>;
21
69
  }
22
70
 
23
- declare const KupmiosError_base: new <A extends Record<string, any> = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
24
- readonly _tag: "KupmiosError";
25
- } & Readonly<A>;
26
- declare class KupmiosError extends KupmiosError_base<{
27
- cause?: unknown;
28
- }> {
29
- get message(): string;
71
+ interface KupmiosOptions {
72
+ readonly ogmiosHeader?: Record<string, string>;
73
+ readonly kupoHeader?: Record<string, string>;
74
+ /** One-shot Kupo and Ogmios request deadline in milliseconds. @default 30000 */
75
+ readonly requestTimeoutMs?: number;
76
+ /** Overall transaction confirmation deadline in milliseconds. @default 160000 */
77
+ readonly awaitTxTimeoutMs?: number;
30
78
  }
31
79
  /**
32
80
  * Provides support for interacting with both Kupo and Ogmios APIs.
33
81
  *
82
+ * Requires Kupo v2.10.0 or later.
83
+ *
34
84
  * @example Using Local URLs (No Authentication):
35
85
  * ```typescript
36
86
  * const kupmios = new Kupmios(
@@ -61,19 +111,21 @@ declare class KupmiosError extends KupmiosError_base<{
61
111
  declare class Kupmios implements Provider {
62
112
  private readonly kupoUrl;
63
113
  private readonly ogmiosUrl;
64
- private readonly headers?;
65
- constructor(kupoUrl: string, ogmiosUrl: string, headers?: {
66
- ogmiosHeader?: Record<string, string>;
67
- kupoHeader?: Record<string, string>;
68
- });
114
+ private readonly options;
115
+ private readonly requestTimeoutMs;
116
+ private readonly awaitTxTimeoutMs;
117
+ constructor(kupoUrl: string, ogmiosUrl: string, options?: KupmiosOptions);
69
118
  getProtocolParameters(): Promise<ProtocolParameters>;
70
119
  getTreasury(): Promise<bigint>;
71
120
  getUtxos(addressOrCredential: Address | Credential): Promise<UTxO[]>;
72
121
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
122
+ getUtxosWithPolicy(addressOrCredential: Address | Credential, policyId: PolicyId): Promise<UTxO[]>;
73
123
  getUtxoByUnit(unit: Unit): Promise<UTxO>;
74
124
  getUtxosByOutRef(outRefs: Array<OutRef>): Promise<UTxO[]>;
125
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
75
126
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
76
127
  getDatum(datumHash: DatumHash): Promise<Datum>;
128
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
77
129
  awaitTx(txHash: TxHash, checkInterval?: number): Promise<boolean>;
78
130
  submitTx(cbor: Transaction): Promise<TxHash>;
79
131
  evaluateTx(tx: Transaction, additionalUTxOs?: UTxO[]): Promise<EvalRedeemer[]>;
@@ -81,6 +133,8 @@ declare class Kupmios implements Provider {
81
133
 
82
134
  /** Concatentation of txHash + outputIndex */
83
135
  type FlatOutRef = string;
136
+ declare const EMULATOR_PROVIDER_BRAND: unique symbol;
137
+ declare const isEmulatorProvider: (provider: Provider | undefined) => provider is Emulator;
84
138
  type EmulatorAccount = {
85
139
  seedPhrase: string;
86
140
  address: Address;
@@ -91,6 +145,7 @@ type EmulatorAccount = {
91
145
  declare function generateEmulatorAccountFromPrivateKey(assets: Assets): EmulatorAccount;
92
146
  declare function generateEmulatorAccount(assets: Assets): EmulatorAccount;
93
147
  declare class Emulator implements Provider {
148
+ readonly [EMULATOR_PROVIDER_BRAND] = true;
94
149
  ledger: Record<FlatOutRef, {
95
150
  utxo: UTxO;
96
151
  spent: boolean;
@@ -113,8 +168,16 @@ declare class Emulator implements Provider {
113
168
  protocolParameters: ProtocolParameters;
114
169
  datumTable: Record<DatumHash, Datum>;
115
170
  treasury: Lovelace;
171
+ transactionHistory: Record<TxHash, {
172
+ status: "pending";
173
+ } | {
174
+ status: "confirmed";
175
+ blockHeight: number;
176
+ slot: number;
177
+ }>;
116
178
  constructor(accounts: EmulatorAccount[], protocolParameters?: ProtocolParameters, treasury?: Lovelace);
117
179
  now(): UnixTime;
180
+ private confirmPendingTransactions;
118
181
  awaitSlot(length?: number): void;
119
182
  awaitBlock(height?: number): void;
120
183
  getUtxos(addressOrCredential: Address | Credential): Promise<UTxO[]>;
@@ -124,8 +187,10 @@ declare class Emulator implements Provider {
124
187
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
125
188
  getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>;
126
189
  getUtxoByUnit(unit: string): Promise<UTxO>;
190
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
127
191
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
128
192
  awaitTx(txHash: string): Promise<boolean>;
193
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
129
194
  /**
130
195
  * Emulates the behaviour of the reward distribution at epoch boundaries.
131
196
  * Stake keys need to be registered and delegated like on a real chain in order to receive rewards.
@@ -154,9 +219,11 @@ declare class Maestro implements Provider {
154
219
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
155
220
  getUtxoByUnit(unit: Unit): Promise<UTxO>;
156
221
  getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>;
222
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
157
223
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
158
224
  getDatum(datumHash: DatumHash): Promise<Datum>;
159
225
  awaitTx(txHash: TxHash, checkInterval?: number): Promise<boolean>;
226
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
160
227
  submitTx(tx: Transaction): Promise<TxHash>;
161
228
  private commonHeaders;
162
229
  private requireAmountsAsStrings;
@@ -211,11 +278,13 @@ declare class Koios implements Provider {
211
278
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
212
279
  getUtxoByUnit(unit: Unit): Promise<UTxO>;
213
280
  getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>;
281
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
214
282
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
215
283
  getDatum(datumHash: DatumHash): Promise<Datum>;
216
284
  awaitTx(txHash: TxHash, checkInterval?: number): Promise<boolean>;
285
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
217
286
  submitTx(tx: Transaction): Promise<TxHash>;
218
287
  evaluateTx(tx: Transaction, additionalUTxOs?: UTxO[]): Promise<EvalRedeemer[]>;
219
288
  }
220
289
 
221
- export { Blockfrost, Emulator, type EmulatorAccount, Koios, KoiosError, Kupmios, KupmiosError, Maestro, type MaestroConfig, type MaestroSupportedNetworks, generateEmulatorAccount, generateEmulatorAccountFromPrivateKey };
290
+ export { Blockfrost, Emulator, type EmulatorAccount, Koios, KoiosError, Kupmios, KupmiosError, type KupmiosErrorOptions, type KupmiosOptions, Maestro, type MaestroConfig, type MaestroSupportedNetworks, OgmiosJsonRpcError, type OgmiosJsonRpcErrorOptions, type ProviderErrorKind, type ProviderTransportProtocol, generateEmulatorAccount, generateEmulatorAccountFromPrivateKey, isEmulatorProvider };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,53 @@
1
- import { Provider, ProtocolParameters, Address, Credential, UTxO, Unit, OutRef, RewardAddress, Delegation, DatumHash, Datum, TxHash, Transaction, EvalRedeemer, UnixTime, Lovelace, Assets, OutputData } from '@lucid-evolution/core-types';
1
+ import { Provider, ProtocolParameters, Address, Credential, UTxO, Unit, OutRef, RewardAddress, RewardAccountState, Delegation, DatumHash, Datum, TxHash, TransactionStatusOptions, TransactionStatus, Transaction, EvalRedeemer, PolicyId, UnixTime, Lovelace, Assets, OutputData } from '@lucid-evolution/core-types';
2
2
  import * as effect_Cause from 'effect/Cause';
3
3
  import * as effect_Types from 'effect/Types';
4
4
 
5
+ type ProviderTransportProtocol = "kupo" | "ogmios";
6
+ type ProviderErrorKind = "http" | "timeout" | "transport" | "decode" | "json_rpc" | "aborted" | "unknown";
7
+ type KupmiosErrorOptions = {
8
+ /** Optional only for compatibility with the former `{ cause }` constructor. */
9
+ protocol?: ProviderTransportProtocol;
10
+ /** Optional only for compatibility with the former `{ cause }` constructor. */
11
+ operation?: string;
12
+ cause?: unknown;
13
+ kind?: ProviderErrorKind;
14
+ status?: number;
15
+ retryable?: boolean;
16
+ retryAfterMs?: number;
17
+ message?: string;
18
+ };
19
+ declare class KupmiosError extends Error {
20
+ readonly _tag: string;
21
+ readonly provider: "Kupmios";
22
+ readonly protocol?: ProviderTransportProtocol;
23
+ readonly operation: string;
24
+ readonly kind: ProviderErrorKind;
25
+ readonly status?: number;
26
+ readonly retryable: boolean;
27
+ readonly retryAfterMs?: number;
28
+ readonly cause?: unknown;
29
+ constructor(options: KupmiosErrorOptions);
30
+ }
31
+ type OgmiosJsonRpcErrorOptions = {
32
+ code: number;
33
+ message: string;
34
+ data?: unknown;
35
+ method?: string;
36
+ id: number | null;
37
+ operation?: string;
38
+ status?: number;
39
+ retryAfterMs?: number;
40
+ cause?: unknown;
41
+ };
42
+ declare class OgmiosJsonRpcError extends KupmiosError {
43
+ readonly _tag = "OgmiosJsonRpcError";
44
+ readonly code: number;
45
+ readonly data?: unknown;
46
+ readonly method?: string;
47
+ readonly id: number | null;
48
+ constructor(options: OgmiosJsonRpcErrorOptions);
49
+ }
50
+
5
51
  declare class Blockfrost implements Provider {
6
52
  url: string;
7
53
  projectId: string;
@@ -12,25 +58,29 @@ declare class Blockfrost implements Provider {
12
58
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
13
59
  getUtxoByUnit(unit: Unit): Promise<UTxO>;
14
60
  getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>;
61
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
15
62
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
16
63
  getDatum(datumHash: DatumHash): Promise<Datum>;
17
64
  awaitTx(txHash: TxHash, checkInterval?: number): Promise<boolean>;
65
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
18
66
  submitTx(tx: Transaction): Promise<TxHash>;
19
67
  private blockfrostUtxosToUtxos;
20
68
  evaluateTx(tx: Transaction, additionalUTxOs?: UTxO[]): Promise<EvalRedeemer[]>;
21
69
  }
22
70
 
23
- declare const KupmiosError_base: new <A extends Record<string, any> = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
24
- readonly _tag: "KupmiosError";
25
- } & Readonly<A>;
26
- declare class KupmiosError extends KupmiosError_base<{
27
- cause?: unknown;
28
- }> {
29
- get message(): string;
71
+ interface KupmiosOptions {
72
+ readonly ogmiosHeader?: Record<string, string>;
73
+ readonly kupoHeader?: Record<string, string>;
74
+ /** One-shot Kupo and Ogmios request deadline in milliseconds. @default 30000 */
75
+ readonly requestTimeoutMs?: number;
76
+ /** Overall transaction confirmation deadline in milliseconds. @default 160000 */
77
+ readonly awaitTxTimeoutMs?: number;
30
78
  }
31
79
  /**
32
80
  * Provides support for interacting with both Kupo and Ogmios APIs.
33
81
  *
82
+ * Requires Kupo v2.10.0 or later.
83
+ *
34
84
  * @example Using Local URLs (No Authentication):
35
85
  * ```typescript
36
86
  * const kupmios = new Kupmios(
@@ -61,19 +111,21 @@ declare class KupmiosError extends KupmiosError_base<{
61
111
  declare class Kupmios implements Provider {
62
112
  private readonly kupoUrl;
63
113
  private readonly ogmiosUrl;
64
- private readonly headers?;
65
- constructor(kupoUrl: string, ogmiosUrl: string, headers?: {
66
- ogmiosHeader?: Record<string, string>;
67
- kupoHeader?: Record<string, string>;
68
- });
114
+ private readonly options;
115
+ private readonly requestTimeoutMs;
116
+ private readonly awaitTxTimeoutMs;
117
+ constructor(kupoUrl: string, ogmiosUrl: string, options?: KupmiosOptions);
69
118
  getProtocolParameters(): Promise<ProtocolParameters>;
70
119
  getTreasury(): Promise<bigint>;
71
120
  getUtxos(addressOrCredential: Address | Credential): Promise<UTxO[]>;
72
121
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
122
+ getUtxosWithPolicy(addressOrCredential: Address | Credential, policyId: PolicyId): Promise<UTxO[]>;
73
123
  getUtxoByUnit(unit: Unit): Promise<UTxO>;
74
124
  getUtxosByOutRef(outRefs: Array<OutRef>): Promise<UTxO[]>;
125
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
75
126
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
76
127
  getDatum(datumHash: DatumHash): Promise<Datum>;
128
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
77
129
  awaitTx(txHash: TxHash, checkInterval?: number): Promise<boolean>;
78
130
  submitTx(cbor: Transaction): Promise<TxHash>;
79
131
  evaluateTx(tx: Transaction, additionalUTxOs?: UTxO[]): Promise<EvalRedeemer[]>;
@@ -81,6 +133,8 @@ declare class Kupmios implements Provider {
81
133
 
82
134
  /** Concatentation of txHash + outputIndex */
83
135
  type FlatOutRef = string;
136
+ declare const EMULATOR_PROVIDER_BRAND: unique symbol;
137
+ declare const isEmulatorProvider: (provider: Provider | undefined) => provider is Emulator;
84
138
  type EmulatorAccount = {
85
139
  seedPhrase: string;
86
140
  address: Address;
@@ -91,6 +145,7 @@ type EmulatorAccount = {
91
145
  declare function generateEmulatorAccountFromPrivateKey(assets: Assets): EmulatorAccount;
92
146
  declare function generateEmulatorAccount(assets: Assets): EmulatorAccount;
93
147
  declare class Emulator implements Provider {
148
+ readonly [EMULATOR_PROVIDER_BRAND] = true;
94
149
  ledger: Record<FlatOutRef, {
95
150
  utxo: UTxO;
96
151
  spent: boolean;
@@ -113,8 +168,16 @@ declare class Emulator implements Provider {
113
168
  protocolParameters: ProtocolParameters;
114
169
  datumTable: Record<DatumHash, Datum>;
115
170
  treasury: Lovelace;
171
+ transactionHistory: Record<TxHash, {
172
+ status: "pending";
173
+ } | {
174
+ status: "confirmed";
175
+ blockHeight: number;
176
+ slot: number;
177
+ }>;
116
178
  constructor(accounts: EmulatorAccount[], protocolParameters?: ProtocolParameters, treasury?: Lovelace);
117
179
  now(): UnixTime;
180
+ private confirmPendingTransactions;
118
181
  awaitSlot(length?: number): void;
119
182
  awaitBlock(height?: number): void;
120
183
  getUtxos(addressOrCredential: Address | Credential): Promise<UTxO[]>;
@@ -124,8 +187,10 @@ declare class Emulator implements Provider {
124
187
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
125
188
  getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>;
126
189
  getUtxoByUnit(unit: string): Promise<UTxO>;
190
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
127
191
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
128
192
  awaitTx(txHash: string): Promise<boolean>;
193
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
129
194
  /**
130
195
  * Emulates the behaviour of the reward distribution at epoch boundaries.
131
196
  * Stake keys need to be registered and delegated like on a real chain in order to receive rewards.
@@ -154,9 +219,11 @@ declare class Maestro implements Provider {
154
219
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
155
220
  getUtxoByUnit(unit: Unit): Promise<UTxO>;
156
221
  getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>;
222
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
157
223
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
158
224
  getDatum(datumHash: DatumHash): Promise<Datum>;
159
225
  awaitTx(txHash: TxHash, checkInterval?: number): Promise<boolean>;
226
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
160
227
  submitTx(tx: Transaction): Promise<TxHash>;
161
228
  private commonHeaders;
162
229
  private requireAmountsAsStrings;
@@ -211,11 +278,13 @@ declare class Koios implements Provider {
211
278
  getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>;
212
279
  getUtxoByUnit(unit: Unit): Promise<UTxO>;
213
280
  getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>;
281
+ getRewardAccount(rewardAddress: RewardAddress): Promise<RewardAccountState>;
214
282
  getDelegation(rewardAddress: RewardAddress): Promise<Delegation>;
215
283
  getDatum(datumHash: DatumHash): Promise<Datum>;
216
284
  awaitTx(txHash: TxHash, checkInterval?: number): Promise<boolean>;
285
+ getTransactionStatus(txHash: TxHash, options?: TransactionStatusOptions): Promise<TransactionStatus>;
217
286
  submitTx(tx: Transaction): Promise<TxHash>;
218
287
  evaluateTx(tx: Transaction, additionalUTxOs?: UTxO[]): Promise<EvalRedeemer[]>;
219
288
  }
220
289
 
221
- export { Blockfrost, Emulator, type EmulatorAccount, Koios, KoiosError, Kupmios, KupmiosError, Maestro, type MaestroConfig, type MaestroSupportedNetworks, generateEmulatorAccount, generateEmulatorAccountFromPrivateKey };
290
+ export { Blockfrost, Emulator, type EmulatorAccount, Koios, KoiosError, Kupmios, KupmiosError, type KupmiosErrorOptions, type KupmiosOptions, Maestro, type MaestroConfig, type MaestroSupportedNetworks, OgmiosJsonRpcError, type OgmiosJsonRpcErrorOptions, type ProviderErrorKind, type ProviderTransportProtocol, generateEmulatorAccount, generateEmulatorAccountFromPrivateKey, isEmulatorProvider };