From 99e91e570266859d2b7333e31d0099fc6babb003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Guimar=C3=A3es?= Date: Fri, 13 Dec 2024 16:06:16 +0000 Subject: [PATCH] feat(aptos): rename files without js- --- .../families/aptos/bridge/{js.ts => index.ts} | 14 +++--- .../aptos/{js-broadcast.ts => broadcast.ts} | 0 ...uildTransaction.ts => buildTransaction.ts} | 0 ...ateTransaction.ts => createTransaction.ts} | 0 ...axSpendable.ts => estimateMaxSpendable.ts} | 0 ...ransaction.ts => getFeesForTransaction.ts} | 2 +- ...ctionStatus.ts => getTransactionStatus.ts} | 0 ...reTransaction.ts => prepareTransaction.ts} | 2 +- .../{js-signOperation.ts => signOperation.ts} | 2 +- ...-synchronisation.ts => synchronisation.ts} | 0 pnpm-lock.yaml | 49 ------------------- 11 files changed, 10 insertions(+), 59 deletions(-) rename libs/ledger-live-common/src/families/aptos/bridge/{js.ts => index.ts} (65%) rename libs/ledger-live-common/src/families/aptos/{js-broadcast.ts => broadcast.ts} (100%) rename libs/ledger-live-common/src/families/aptos/{js-buildTransaction.ts => buildTransaction.ts} (100%) rename libs/ledger-live-common/src/families/aptos/{js-createTransaction.ts => createTransaction.ts} (100%) rename libs/ledger-live-common/src/families/aptos/{js-estimateMaxSpendable.ts => estimateMaxSpendable.ts} (100%) rename libs/ledger-live-common/src/families/aptos/{js-getFeesForTransaction.ts => getFeesForTransaction.ts} (98%) rename libs/ledger-live-common/src/families/aptos/{js-getTransactionStatus.ts => getTransactionStatus.ts} (100%) rename libs/ledger-live-common/src/families/aptos/{js-prepareTransaction.ts => prepareTransaction.ts} (94%) rename libs/ledger-live-common/src/families/aptos/{js-signOperation.ts => signOperation.ts} (97%) rename libs/ledger-live-common/src/families/aptos/{js-synchronisation.ts => synchronisation.ts} (100%) diff --git a/libs/ledger-live-common/src/families/aptos/bridge/js.ts b/libs/ledger-live-common/src/families/aptos/bridge/index.ts similarity index 65% rename from libs/ledger-live-common/src/families/aptos/bridge/js.ts rename to libs/ledger-live-common/src/families/aptos/bridge/index.ts index 6d86c61d7fea..88d9dc18bc16 100644 --- a/libs/ledger-live-common/src/families/aptos/bridge/js.ts +++ b/libs/ledger-live-common/src/families/aptos/bridge/index.ts @@ -2,13 +2,13 @@ import type { AccountBridge, CurrencyBridge } from "@ledgerhq/types-live"; import type { Transaction } from "../types"; import { makeAccountBridgeReceive } from "../../../bridge/jsHelpers"; -import { sync, scanAccounts } from "../js-synchronisation"; -import getTransactionStatus from "../js-getTransactionStatus"; -import prepareTransaction from "../js-prepareTransaction"; -import createTransaction from "../js-createTransaction"; -import estimateMaxSpendable from "../js-estimateMaxSpendable"; -import signOperation from "../js-signOperation"; -import broadcast from "../js-broadcast"; +import { sync, scanAccounts } from "../synchronisation"; +import getTransactionStatus from "../getTransactionStatus"; +import prepareTransaction from "../prepareTransaction"; +import createTransaction from "../createTransaction"; +import estimateMaxSpendable from "../estimateMaxSpendable"; +import signOperation from "../signOperation"; +import broadcast from "../broadcast"; const receive = makeAccountBridgeReceive(); diff --git a/libs/ledger-live-common/src/families/aptos/js-broadcast.ts b/libs/ledger-live-common/src/families/aptos/broadcast.ts similarity index 100% rename from libs/ledger-live-common/src/families/aptos/js-broadcast.ts rename to libs/ledger-live-common/src/families/aptos/broadcast.ts diff --git a/libs/ledger-live-common/src/families/aptos/js-buildTransaction.ts b/libs/ledger-live-common/src/families/aptos/buildTransaction.ts similarity index 100% rename from libs/ledger-live-common/src/families/aptos/js-buildTransaction.ts rename to libs/ledger-live-common/src/families/aptos/buildTransaction.ts diff --git a/libs/ledger-live-common/src/families/aptos/js-createTransaction.ts b/libs/ledger-live-common/src/families/aptos/createTransaction.ts similarity index 100% rename from libs/ledger-live-common/src/families/aptos/js-createTransaction.ts rename to libs/ledger-live-common/src/families/aptos/createTransaction.ts diff --git a/libs/ledger-live-common/src/families/aptos/js-estimateMaxSpendable.ts b/libs/ledger-live-common/src/families/aptos/estimateMaxSpendable.ts similarity index 100% rename from libs/ledger-live-common/src/families/aptos/js-estimateMaxSpendable.ts rename to libs/ledger-live-common/src/families/aptos/estimateMaxSpendable.ts diff --git a/libs/ledger-live-common/src/families/aptos/js-getFeesForTransaction.ts b/libs/ledger-live-common/src/families/aptos/getFeesForTransaction.ts similarity index 98% rename from libs/ledger-live-common/src/families/aptos/js-getFeesForTransaction.ts rename to libs/ledger-live-common/src/families/aptos/getFeesForTransaction.ts index cfa741d2e959..9f686025cb66 100644 --- a/libs/ledger-live-common/src/families/aptos/js-getFeesForTransaction.ts +++ b/libs/ledger-live-common/src/families/aptos/getFeesForTransaction.ts @@ -3,7 +3,7 @@ import { log } from "@ledgerhq/logs"; import type { Account } from "@ledgerhq/types-live"; import BigNumber from "bignumber.js"; import { AptosAPI } from "./api"; -import buildTransaction from "./js-buildTransaction"; +import buildTransaction from "./buildTransaction"; import { DEFAULT_GAS, DEFAULT_GAS_PRICE, ESTIMATE_GAS_MUL } from "./logic"; import type { Transaction, TransactionErrors } from "./types"; diff --git a/libs/ledger-live-common/src/families/aptos/js-getTransactionStatus.ts b/libs/ledger-live-common/src/families/aptos/getTransactionStatus.ts similarity index 100% rename from libs/ledger-live-common/src/families/aptos/js-getTransactionStatus.ts rename to libs/ledger-live-common/src/families/aptos/getTransactionStatus.ts diff --git a/libs/ledger-live-common/src/families/aptos/js-prepareTransaction.ts b/libs/ledger-live-common/src/families/aptos/prepareTransaction.ts similarity index 94% rename from libs/ledger-live-common/src/families/aptos/js-prepareTransaction.ts rename to libs/ledger-live-common/src/families/aptos/prepareTransaction.ts index f59b63a50ff1..eb8963ca7bdf 100644 --- a/libs/ledger-live-common/src/families/aptos/js-prepareTransaction.ts +++ b/libs/ledger-live-common/src/families/aptos/prepareTransaction.ts @@ -2,7 +2,7 @@ import type { Account } from "@ledgerhq/types-live"; import BigNumber from "bignumber.js"; import { AptosAPI } from "./api"; -import { getEstimatedGas } from "./js-getFeesForTransaction"; +import { getEstimatedGas } from "./getFeesForTransaction"; import type { Transaction } from "./types"; import { getMaxSendBalance } from "./logic"; diff --git a/libs/ledger-live-common/src/families/aptos/js-signOperation.ts b/libs/ledger-live-common/src/families/aptos/signOperation.ts similarity index 97% rename from libs/ledger-live-common/src/families/aptos/js-signOperation.ts rename to libs/ledger-live-common/src/families/aptos/signOperation.ts index e00bbffcda3e..c0d62db60ead 100644 --- a/libs/ledger-live-common/src/families/aptos/js-signOperation.ts +++ b/libs/ledger-live-common/src/families/aptos/signOperation.ts @@ -2,7 +2,7 @@ import type { Transaction } from "./types"; import { Observable } from "rxjs"; import { withDevice } from "../../hw/deviceAccess"; import { encodeOperationId } from "../../operation"; -import buildTransaction from "./js-buildTransaction"; +import buildTransaction from "./buildTransaction"; import BigNumber from "bignumber.js"; import type { diff --git a/libs/ledger-live-common/src/families/aptos/js-synchronisation.ts b/libs/ledger-live-common/src/families/aptos/synchronisation.ts similarity index 100% rename from libs/ledger-live-common/src/families/aptos/js-synchronisation.ts rename to libs/ledger-live-common/src/families/aptos/synchronisation.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 48b6369e5796..804c62a8bcda 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1849,55 +1849,6 @@ importers: specifier: ^29.1.1 version: 29.1.5(jest@29.7.0)(typescript@5.4.3) - libs/coin-modules/coin-aptos: - dependencies: - '@ledgerhq/coin-framework': - specifier: workspace:^ - version: link:../../coin-framework - '@ledgerhq/cryptoassets': - specifier: workspace:^ - version: link:../../ledgerjs/packages/cryptoassets - '@ledgerhq/devices': - specifier: workspace:* - version: link:../../ledgerjs/packages/devices - '@ledgerhq/types-live': - specifier: workspace:^ - version: link:../../ledgerjs/packages/types-live - bignumber.js: - specifier: ^9.1.2 - version: 9.1.2 - invariant: - specifier: ^2.2.4 - version: 2.2.4 - devDependencies: - '@faker-js/faker': - specifier: ^8.4.1 - version: 8.4.1 - '@ledgerhq/types-cryptoassets': - specifier: workspace:^ - version: link:../../ledgerjs/packages/types-cryptoassets - '@types/invariant': - specifier: ^2.2.37 - version: 2.2.37 - '@types/jest': - specifier: ^29.5.12 - version: 29.5.12 - dotenv: - specifier: ^16.4.5 - version: 16.4.5 - expect: - specifier: ^27.4.6 - version: 27.5.1 - jest: - specifier: ^29.7.0 - version: 29.7.0 - ts-jest: - specifier: ^29.1.1 - version: 29.1.5(jest@29.7.0)(typescript@5.6.3) - typescript: - specifier: ^5.4.5 - version: 5.6.3 - libs/coin-modules/coin-bitcoin: dependencies: '@ledgerhq/coin-framework':