@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.
Files changed (73) hide show
  1. package/.eslintrc.js +14 -0
  2. package/CHANGELOG.md +16 -0
  3. package/lib/api/index.d.ts.map +1 -1
  4. package/lib/api/index.js +4 -4
  5. package/lib/api/index.js.map +1 -1
  6. package/lib/logic/craftTransaction.js +2 -2
  7. package/lib/logic/craftTransaction.js.map +1 -1
  8. package/lib/logic/estimateFees.d.ts.map +1 -1
  9. package/lib/logic/estimateFees.js +1 -1
  10. package/lib/logic/estimateFees.js.map +1 -1
  11. package/lib/logic/listOperations.d.ts.map +1 -1
  12. package/lib/logic/listOperations.js +1 -1
  13. package/lib/logic/listOperations.js.map +1 -1
  14. package/lib/logic/validateIntent.js +1 -1
  15. package/lib/logic/validateIntent.js.map +1 -1
  16. package/lib/network/bakers.d.ts.map +1 -1
  17. package/lib/network/bakers.js +1 -1
  18. package/lib/network/bakers.js.map +1 -1
  19. package/lib/test/bot-deviceActions.d.ts.map +1 -1
  20. package/lib/test/bot-deviceActions.js.map +1 -1
  21. package/lib/test/bot-specs.d.ts.map +1 -1
  22. package/lib/test/bot-specs.js.map +1 -1
  23. package/lib/transaction.d.ts +1 -1
  24. package/lib/transaction.d.ts.map +1 -1
  25. package/lib/transaction.js.map +1 -1
  26. package/lib/types/bridge.fixture.d.ts.map +1 -1
  27. package/lib/types/bridge.fixture.js.map +1 -1
  28. package/lib-es/api/index.d.ts.map +1 -1
  29. package/lib-es/api/index.js +4 -4
  30. package/lib-es/api/index.js.map +1 -1
  31. package/lib-es/logic/craftTransaction.js +2 -2
  32. package/lib-es/logic/craftTransaction.js.map +1 -1
  33. package/lib-es/logic/estimateFees.d.ts.map +1 -1
  34. package/lib-es/logic/estimateFees.js +1 -1
  35. package/lib-es/logic/estimateFees.js.map +1 -1
  36. package/lib-es/logic/listOperations.d.ts.map +1 -1
  37. package/lib-es/logic/listOperations.js +1 -1
  38. package/lib-es/logic/listOperations.js.map +1 -1
  39. package/lib-es/logic/validateIntent.js +1 -1
  40. package/lib-es/logic/validateIntent.js.map +1 -1
  41. package/lib-es/network/bakers.d.ts.map +1 -1
  42. package/lib-es/network/bakers.js +1 -1
  43. package/lib-es/network/bakers.js.map +1 -1
  44. package/lib-es/test/bot-deviceActions.d.ts.map +1 -1
  45. package/lib-es/test/bot-deviceActions.js.map +1 -1
  46. package/lib-es/test/bot-specs.d.ts.map +1 -1
  47. package/lib-es/test/bot-specs.js.map +1 -1
  48. package/lib-es/transaction.d.ts +1 -1
  49. package/lib-es/transaction.d.ts.map +1 -1
  50. package/lib-es/transaction.js.map +1 -1
  51. package/lib-es/types/bridge.fixture.d.ts.map +1 -1
  52. package/lib-es/types/bridge.fixture.js.map +1 -1
  53. package/package.json +9 -9
  54. package/src/api/index-mainnet.integ.test.ts +2 -3
  55. package/src/api/index.integ.test.ts +11 -8
  56. package/src/api/index.test.ts +1 -1
  57. package/src/api/index.ts +6 -6
  58. package/src/logic/craftTransaction.integ.test.ts +1 -1
  59. package/src/logic/craftTransaction.test.ts +3 -3
  60. package/src/logic/craftTransaction.ts +2 -2
  61. package/src/logic/estimateFees.integ.test.ts +1 -1
  62. package/src/logic/estimateFees.ts +1 -1
  63. package/src/logic/getBalance.test.ts +2 -2
  64. package/src/logic/listOperations.test.ts +1 -1
  65. package/src/logic/listOperations.ts +2 -2
  66. package/src/logic/validateIntent.test.ts +4 -4
  67. package/src/logic/validateIntent.ts +1 -1
  68. package/src/network/bakers.test.ts +1 -1
  69. package/src/network/bakers.ts +1 -1
  70. package/src/test/bot-deviceActions.ts +1 -1
  71. package/src/test/bot-specs.ts +1 -1
  72. package/src/transaction.ts +1 -1
  73. 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: [
@@ -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
 
@@ -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