Skip to content

Commit

Permalink
update to ogmios v6
Browse files Browse the repository at this point in the history
  • Loading branch information
joacohoyos committed Jul 22, 2024
1 parent 40bd760 commit ca119e4
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 354 deletions.
4 changes: 1 addition & 3 deletions dist/esm/src/types/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { C } from "../core/mod.js";
type CostModel = Record<string, number>;
export type CostModels = Record<PlutusVersion, CostModel>;
export type CostModels = Record<PlutusVersion, Array<number>>;
export interface Configuration {
enableChangeSplitting: boolean;
changeNativeAssetChunkSize: number;
Expand Down Expand Up @@ -252,4 +251,3 @@ export type Metadata = {
decimals?: number;
};
};
export {};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jpg-store/lucid-cardano",
"version": "0.12.3",
"version": "0.13.0",
"license": "MIT",
"description": "This is a fork of the original Lucid repo compiled into CommonJS. For more information check https://github.com/spacebudz/lucid",
"repository": "https://github.com/jpg-store/lucid",
Expand Down
8 changes: 3 additions & 5 deletions src/types/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { C } from "../core/mod.ts";

type CostModel = Record<string, number>;

export type CostModels = Record<PlutusVersion, CostModel>;
export type CostModels = Record<PlutusVersion, Array<number>>;

export interface Configuration {
enableChangeSplitting: boolean;
Expand Down Expand Up @@ -37,7 +35,7 @@ export interface Provider {
/** Query UTxOs by address or payment credential filtered by a specific unit. */
getUtxosWithUnit(
addressOrCredential: Address | Credential,
unit: Unit
unit: Unit,
): Promise<UTxO[]>;
/** Query a UTxO by a unit. It needs to be an NFT (or optionally the entire supply in one UTxO). */
getUtxoByUnit(unit: Unit): Promise<UTxO>;
Expand Down Expand Up @@ -189,7 +187,7 @@ export interface Wallet {
signTx(tx: C.Transaction): Promise<C.TransactionWitnessSet>;
signMessage(
address: Address | RewardAddress,
payload: Payload
payload: Payload,
): Promise<SignedMessage>;
submitTx(signedTx: Transaction): Promise<TxHash>;
}
Expand Down
Loading

0 comments on commit ca119e4

Please sign in to comment.