@ledgerhq/coin-tezos 6.10.0 → 6.11.0-nightly.20251210114107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +14 -0
- package/CHANGELOG.md +16 -0
- package/lib/api/index.d.ts.map +1 -1
- package/lib/api/index.js +4 -4
- package/lib/api/index.js.map +1 -1
- package/lib/logic/craftTransaction.js +2 -2
- package/lib/logic/craftTransaction.js.map +1 -1
- package/lib/logic/estimateFees.d.ts.map +1 -1
- package/lib/logic/estimateFees.js +1 -1
- package/lib/logic/estimateFees.js.map +1 -1
- package/lib/logic/listOperations.d.ts.map +1 -1
- package/lib/logic/listOperations.js +1 -1
- package/lib/logic/listOperations.js.map +1 -1
- package/lib/logic/validateIntent.js +1 -1
- package/lib/logic/validateIntent.js.map +1 -1
- package/lib/network/bakers.d.ts.map +1 -1
- package/lib/network/bakers.js +1 -1
- package/lib/network/bakers.js.map +1 -1
- package/lib/test/bot-deviceActions.d.ts.map +1 -1
- package/lib/test/bot-deviceActions.js.map +1 -1
- package/lib/test/bot-specs.d.ts.map +1 -1
- package/lib/test/bot-specs.js.map +1 -1
- package/lib/transaction.d.ts +1 -1
- package/lib/transaction.d.ts.map +1 -1
- package/lib/transaction.js.map +1 -1
- package/lib/types/bridge.fixture.d.ts.map +1 -1
- package/lib/types/bridge.fixture.js.map +1 -1
- package/lib-es/api/index.d.ts.map +1 -1
- package/lib-es/api/index.js +4 -4
- package/lib-es/api/index.js.map +1 -1
- package/lib-es/logic/craftTransaction.js +2 -2
- package/lib-es/logic/craftTransaction.js.map +1 -1
- package/lib-es/logic/estimateFees.d.ts.map +1 -1
- package/lib-es/logic/estimateFees.js +1 -1
- package/lib-es/logic/estimateFees.js.map +1 -1
- package/lib-es/logic/listOperations.d.ts.map +1 -1
- package/lib-es/logic/listOperations.js +1 -1
- package/lib-es/logic/listOperations.js.map +1 -1
- package/lib-es/logic/validateIntent.js +1 -1
- package/lib-es/logic/validateIntent.js.map +1 -1
- package/lib-es/network/bakers.d.ts.map +1 -1
- package/lib-es/network/bakers.js +1 -1
- package/lib-es/network/bakers.js.map +1 -1
- package/lib-es/test/bot-deviceActions.d.ts.map +1 -1
- package/lib-es/test/bot-deviceActions.js.map +1 -1
- package/lib-es/test/bot-specs.d.ts.map +1 -1
- package/lib-es/test/bot-specs.js.map +1 -1
- package/lib-es/transaction.d.ts +1 -1
- package/lib-es/transaction.d.ts.map +1 -1
- package/lib-es/transaction.js.map +1 -1
- package/lib-es/types/bridge.fixture.d.ts.map +1 -1
- package/lib-es/types/bridge.fixture.js.map +1 -1
- package/package.json +9 -9
- package/src/api/index-mainnet.integ.test.ts +2 -3
- package/src/api/index.integ.test.ts +11 -8
- package/src/api/index.test.ts +1 -1
- package/src/api/index.ts +6 -6
- package/src/logic/craftTransaction.integ.test.ts +1 -1
- package/src/logic/craftTransaction.test.ts +3 -3
- package/src/logic/craftTransaction.ts +2 -2
- package/src/logic/estimateFees.integ.test.ts +1 -1
- package/src/logic/estimateFees.ts +1 -1
- package/src/logic/getBalance.test.ts +2 -2
- package/src/logic/listOperations.test.ts +1 -1
- package/src/logic/listOperations.ts +2 -2
- package/src/logic/validateIntent.test.ts +4 -4
- package/src/logic/validateIntent.ts +1 -1
- package/src/network/bakers.test.ts +1 -1
- package/src/network/bakers.ts +1 -1
- package/src/test/bot-deviceActions.ts +1 -1
- package/src/test/bot-specs.ts +1 -1
- package/src/transaction.ts +1 -1
- package/src/types/bridge.fixture.ts +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DeviceAction } from "@ledgerhq/coin-framework/bot/types";
|
|
2
|
-
import type { Transaction } from "../types";
|
|
3
2
|
import {
|
|
4
3
|
deviceActionFlow,
|
|
5
4
|
formatDeviceAmount,
|
|
6
5
|
SpeculosButton,
|
|
7
6
|
} from "@ledgerhq/coin-framework/bot/specs";
|
|
7
|
+
import type { Transaction } from "../types";
|
|
8
8
|
|
|
9
9
|
export const acceptTransaction: DeviceAction<Transaction, any> = deviceActionFlow({
|
|
10
10
|
steps: [
|
package/src/test/bot-specs.ts
CHANGED
|
@@ -5,11 +5,11 @@ import { parseCurrencyUnit } from "@ledgerhq/coin-framework/currencies/index";
|
|
|
5
5
|
import { genericTestDestination, pickSiblings } from "@ledgerhq/coin-framework/bot/specs";
|
|
6
6
|
import type { AppSpec } from "@ledgerhq/coin-framework/bot/types";
|
|
7
7
|
import { DeviceModelId } from "@ledgerhq/devices";
|
|
8
|
+
import { Account } from "@ledgerhq/types-live";
|
|
8
9
|
import { isTezosAccount, type Transaction } from "../types";
|
|
9
10
|
import { getAccountDelegationSync, isAccountDelegating } from "../network/bakers";
|
|
10
11
|
import whitelist from "../network/bakers.whitelist-default";
|
|
11
12
|
import { acceptTransaction } from "./bot-deviceActions";
|
|
12
|
-
import { Account } from "@ledgerhq/types-live";
|
|
13
13
|
|
|
14
14
|
const maxAccount = 12;
|
|
15
15
|
|
package/src/transaction.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BigNumber } from "bignumber.js";
|
|
2
|
-
import type { Transaction, TransactionRaw } from "./types";
|
|
3
2
|
import { formatTransactionStatus } from "@ledgerhq/coin-framework/formatters";
|
|
4
3
|
import {
|
|
5
4
|
fromTransactionCommonRaw,
|
|
@@ -10,6 +9,7 @@ import {
|
|
|
10
9
|
import type { Account } from "@ledgerhq/types-live";
|
|
11
10
|
import { getAccountCurrency } from "@ledgerhq/coin-framework/account/index";
|
|
12
11
|
import { formatCurrencyUnit } from "@ledgerhq/coin-framework/currencies/index";
|
|
12
|
+
import type { Transaction, TransactionRaw } from "./types";
|
|
13
13
|
|
|
14
14
|
export const formatTransaction = (
|
|
15
15
|
{
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import BigNumber from "bignumber.js";
|
|
2
2
|
import { faker } from "@faker-js/faker";
|
|
3
|
+
import { getAbandonSeedAddress } from "@ledgerhq/cryptoassets/abandonseed";
|
|
4
|
+
import { listCryptoCurrencies } from "@ledgerhq/cryptoassets/currencies";
|
|
5
|
+
import { emptyHistoryCache } from "@ledgerhq/coin-framework/account/index";
|
|
3
6
|
import type {
|
|
4
7
|
TezosAccount,
|
|
5
8
|
TezosOperation,
|
|
@@ -7,9 +10,6 @@ import type {
|
|
|
7
10
|
TezosResources,
|
|
8
11
|
Transaction,
|
|
9
12
|
} from "./bridge";
|
|
10
|
-
import { getAbandonSeedAddress } from "@ledgerhq/cryptoassets/abandonseed";
|
|
11
|
-
import { listCryptoCurrencies } from "@ledgerhq/cryptoassets/currencies";
|
|
12
|
-
import { emptyHistoryCache } from "@ledgerhq/coin-framework/account/index";
|
|
13
13
|
|
|
14
14
|
const currency = listCryptoCurrencies(true).find(c => c.id === "tezos")!;
|
|
15
15
|
|