diff --git a/tests/params.ts b/packages/translucent-core/params.ts similarity index 97% rename from tests/params.ts rename to packages/translucent-core/params.ts index 7b6466b..1bab634 100644 --- a/tests/params.ts +++ b/packages/translucent-core/params.ts @@ -1,6 +1,6 @@ import { CostModels, ExUnits, Prices, ProtocolVersion } from "@cardano-sdk/core/dist/cjs/Cardano"; -interface ProtocolParameters { +export interface ProtocolParameters { coinsPerUtxoByte: number, maxTxSize: number, minFeeCoefficient: number; diff --git a/packages/translucent-core/types.ts b/packages/translucent-core/types.ts index 14191ac..fb8b338 100644 --- a/packages/translucent-core/types.ts +++ b/packages/translucent-core/types.ts @@ -1,5 +1,6 @@ import * as C from './core' import * as Crypto from './crypto' +export { ProtocolParameters } from "./params" export const Value = C.Serialization.Value export type Value = C.Serialization.Value diff --git a/packages/translucent-query/maestro.ts b/packages/translucent-query/maestro.ts index 03efbd8..b11b41a 100644 --- a/packages/translucent-query/maestro.ts +++ b/packages/translucent-query/maestro.ts @@ -9,6 +9,7 @@ import { Transaction, TransactionOutput, HexBlob, + ProtocolParameters } from '../translucent-core' import { Provider } from './types' @@ -25,7 +26,9 @@ export class Maestro implements Provider { return { "api-key": this.apiKey }; } - getParameters(): Promise {} + getParameters(): Promise { + throw new Error("unimplemented") + } getUnspentOutputs(address: Address): Promise { /* todo: paginate */ diff --git a/packages/translucent-query/types.ts b/packages/translucent-query/types.ts index 2ef7319..4299fdd 100644 --- a/packages/translucent-query/types.ts +++ b/packages/translucent-query/types.ts @@ -7,8 +7,8 @@ import { PlutusData, TransactionId, Transaction, + ProtocolParameters } from '../translucent-core' -import { TxParams } from '../translucent-tx/tx' /** * Interface for the Provider class. @@ -17,9 +17,9 @@ export interface Provider { /** * Retrieves the parameters for a transaction. * - * @returns {Promise} - The parameters for a transaction. + * @returns {Promise} - The parameters for a transaction. */ - getParameters(): Promise + getParameters(): Promise /** * Retrieves the unspent outputs for a given address.