Skip to content

Commit

Permalink
fix: missing export
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Prohaszka <[email protected]>
  • Loading branch information
sprohaszka-ledger committed Jul 17, 2024
1 parent 2798f33 commit 6879a06
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 30 deletions.
28 changes: 6 additions & 22 deletions libs/coin-modules/coin-stellar/.unimportedrc.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,18 @@
{
"entry": [
"src/deviceTransactionConfig.ts",
"src/errors.ts",
"src/hw-getAddress.ts",
"src/serialization.ts",
"src/specs.ts",
"src/transaction.ts"
"src/api/index.ts",
"src/bridge/index.ts",
"src/bridge/deviceTransactionConfig.ts",
"src/signer/index.ts",
"src/test/index.ts",
"src/index.ts"
],
"ignorePatterns": [
"**/node_modules/**",
"**/*.fixture.ts",
"**/*.mock.ts",
"**/*.test.{js,jsx,ts,tsx}"
],
"ignoreUnresolved": [],
"ignoreUnimported": [
"src/bridge/index.ts",
"src/broadcast.ts",
"src/buildOptimisticOperation.ts",
"src/buildTransaction.ts",
"src/cli.ts",
"src/config.ts",
"src/createTransaction.ts",
"src/estimateMaxSpendable.ts",
"src/getTransactionStatus.ts",
"src/prepareTransaction.ts",
"src/signOperation.ts",
"src/synchronization.ts",
"src/tokens.ts"
],
"ignoreUnused": [
"rxjs"
]
Expand Down
4 changes: 4 additions & 0 deletions libs/coin-modules/coin-stellar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
"require": "./lib/bridge/deviceTransactionConfig.js",
"default": "./lib-es/bridge/deviceTransactionConfig.js"
},
"./errors": {
"require": "./lib/types/errors.js",
"default": "./lib-es/types/errors.js"
},
"./logic": {
"require": "./lib/logic/index.js",
"default": "./lib-es/logic/index.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
describe("getAccountShape", () => {
it.todo("returns an AccountShapeInfo");
});
4 changes: 4 additions & 0 deletions libs/coin-modules/coin-stellar/src/logic/estimateFees.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { fetchBaseFee } from "../network";

/**
* Estimate the fees for one transaction
* @see {@link https://developers.stellar.org/docs/learn/fundamentals/fees-resource-limits-metering#inclusion-fee}
*/
export async function estimateFees(): Promise<bigint> {
const fees = await fetchBaseFee();
return BigInt(fees.recommendedFee);
Expand Down
5 changes: 5 additions & 0 deletions libs/coin-modules/coin-stellar/src/test/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
import makeCliTools from "./cli";

export * from "./bridgeDatasetTest";
export { makeCliTools };
export * from "./bot-specs";
export * from "./bot-deviceActions";
20 changes: 12 additions & 8 deletions libs/ledger-live-common/src/families/stellar/setup.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
// Goal of this file is to inject all necessary device/signer dependency to coin-modules
import { Transaction, StellarAccount, TransactionStatus } from "@ledgerhq/coin-stellar/types/index";
import Transport from "@ledgerhq/hw-transport";
import Stellar from "@ledgerhq/hw-app-str";
import type { Bridge } from "@ledgerhq/types-live";
import { StellarCoinConfig } from "@ledgerhq/coin-stellar/config";
import makeCliTools from "@ledgerhq/coin-stellar/cli";
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies";
import { createBridges } from "@ledgerhq/coin-stellar/bridge/index";
import makeCliTools from "@ledgerhq/coin-stellar/test/cli";
import { StellarCoinConfig } from "@ledgerhq/coin-stellar/config";
import stellarResolver from "@ledgerhq/coin-stellar/signer/index";
import type {
StellarAccount,
Transaction,
TransactionStatus,
} from "@ledgerhq/coin-stellar/types/index";
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies";
import Stellar from "@ledgerhq/hw-app-str";
import Transport from "@ledgerhq/hw-transport";
import type { Bridge } from "@ledgerhq/types-live";
import { CreateSigner, createResolver, executeWithSigner } from "../../bridge/setup";
import { Resolver } from "../../hw/getAddress/types";
import { getCurrencyConfiguration } from "../../config";
import { Resolver } from "../../hw/getAddress/types";

const createSigner: CreateSigner<Stellar> = (transport: Transport) => {
return new Stellar(transport);
Expand Down

0 comments on commit 6879a06

Please sign in to comment.