Skip to content

Commit 804deef

Browse files
committed
update to ogmios v6
1 parent 40bd760 commit 804deef

File tree

3 files changed

+35
-353
lines changed

3 files changed

+35
-353
lines changed

dist/esm/src/types/types.d.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { C } from "../core/mod.js";
2-
type CostModel = Record<string, number>;
3-
export type CostModels = Record<PlutusVersion, CostModel>;
2+
export type CostModels = Record<PlutusVersion, Array<number>>;
43
export interface Configuration {
54
enableChangeSplitting: boolean;
65
changeNativeAssetChunkSize: number;
@@ -252,4 +251,3 @@ export type Metadata = {
252251
decimals?: number;
253252
};
254253
};
255-
export {};

src/types/types.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { C } from "../core/mod.ts";
22

3-
type CostModel = Record<string, number>;
4-
5-
export type CostModels = Record<PlutusVersion, CostModel>;
3+
export type CostModels = Record<PlutusVersion, Array<number>>;
64

75
export interface Configuration {
86
enableChangeSplitting: boolean;
@@ -37,7 +35,7 @@ export interface Provider {
3735
/** Query UTxOs by address or payment credential filtered by a specific unit. */
3836
getUtxosWithUnit(
3937
addressOrCredential: Address | Credential,
40-
unit: Unit
38+
unit: Unit,
4139
): Promise<UTxO[]>;
4240
/** Query a UTxO by a unit. It needs to be an NFT (or optionally the entire supply in one UTxO). */
4341
getUtxoByUnit(unit: Unit): Promise<UTxO>;
@@ -189,7 +187,7 @@ export interface Wallet {
189187
signTx(tx: C.Transaction): Promise<C.TransactionWitnessSet>;
190188
signMessage(
191189
address: Address | RewardAddress,
192-
payload: Payload
190+
payload: Payload,
193191
): Promise<SignedMessage>;
194192
submitTx(signedTx: Transaction): Promise<TxHash>;
195193
}

0 commit comments

Comments
 (0)