Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add aptos bot tests #8598

Merged
merged 34 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0d49ddc
feat: add aptos bot testing
jccguimaraes Dec 4, 2024
5c65571
feat(aptos): add coin feature flag for testnet
jccguimaraes Dec 6, 2024
2f62c5b
feat(aptos): update keywords
jccguimaraes Dec 10, 2024
6baf759
fix(aptos): add bot test into families aptos
jccguimaraes Dec 13, 2024
cd528c8
feat(aptos): update typo
jccguimaraes Dec 13, 2024
dfd4bb8
feat(aptos): add tag? to transaction
jccguimaraes Dec 13, 2024
74e1c10
feat(aptos): rename files without js-
jccguimaraes Dec 13, 2024
6ba945c
feat(aptos): rename bot specs file
jccguimaraes Dec 13, 2024
6858fd8
fix(aptos): add missing files
jccguimaraes Dec 16, 2024
62de7d4
fix(aptos): add missing files
jccguimaraes Dec 16, 2024
a0bcaa0
adding aptos to supported test currencies
Wozacosta Dec 16, 2024
6e13da6
fix(aptos): add missing files
jccguimaraes Dec 17, 2024
3f29857
fix(aptos): check send 50% mutation
jccguimaraes Dec 18, 2024
55568a8
chore: update aptos bot spec
jccguimaraes Dec 19, 2024
85b0464
chore: update aptos bot spec
jccguimaraes Dec 19, 2024
65709bf
Merge branch 'feat/integrate-aptos' into feat/live-14004_bot_tests
jccguimaraes Dec 19, 2024
bcee140
chore: update aptos bot spec
jccguimaraes Dec 19, 2024
f56fb53
Merge branch 'feat/integrate-aptos' into feat/live-14004_bot_tests
jccguimaraes Dec 26, 2024
65039f3
Merge branch 'feat/integrate-aptos' into feat/live-14004_bot_tests
jccguimaraes Dec 26, 2024
7ef563a
fix: remove coin:aptos
jccguimaraes Dec 26, 2024
c861401
fix: remove noble package and add js-sha3
jccguimaraes Dec 26, 2024
21823ff
fix: remove noble package and add js-sha3
jccguimaraes Dec 26, 2024
f1c4bb2
fix: revert pnpm-lock file
jccguimaraes Dec 26, 2024
6168bef
fix: reverting changes, attempt to fix tests
jccguimaraes Dec 27, 2024
6b7e908
fix: reverting changes, attempt to fix tests
jccguimaraes Dec 27, 2024
ecf880e
fix: adding missing pieces
jccguimaraes Dec 27, 2024
b7edf49
fix: reverting changes, attempt to fix tests
jccguimaraes Dec 27, 2024
de3ab9e
fix: reverting changes, attempt to fix tests
jccguimaraes Dec 27, 2024
056267d
fix: reverting changes, attempt to fix tests
jccguimaraes Dec 27, 2024
6dbe405
fix: reverting changes, attempt to fix tests
jccguimaraes Dec 27, 2024
a6f78da
fix: remove unneeded code
jccguimaraes Dec 27, 2024
9187667
fix: add dependencies to resolver
jccguimaraes Dec 27, 2024
598a05a
fix: revert dependencies
jccguimaraes Dec 30, 2024
5b8a95b
fix: revert dependencies
jccguimaraes Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pnpmfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function readPackage(pkg, context) {
// Is there another way without adding them explicitly ?
addDependencies("tronweb", {
"aes-js": "*",
"@noble/hashes": "*",
"@noble/hashes": "1.6.1",
"@noble/secp256k1": "*",
"@ethersproject/bytes": "*",
"@ethersproject/bignumber": "*",
Expand Down
4 changes: 2 additions & 2 deletions apps/cli/src/live-common-setup-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { WALLET_API_VERSION } from "@ledgerhq/live-common/wallet-api/constants";
setWalletAPIVersion(WALLET_API_VERSION);

setSupportedCurrencies([
"aptos",
"aptos_testnet",
"bitcoin",
"ethereum",
"bsc",
Expand Down Expand Up @@ -92,8 +94,6 @@ setSupportedCurrencies([
"lukso",
"filecoin",
"linea",
"aptos",
"aptos_testnet",
"ton",
"linea_sepolia",
"blast",
Expand Down
1 change: 1 addition & 0 deletions apps/ledger-live-desktop/scripts/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = (path, options) => {
"@solana/codecs-numbers",
"@solana/codecs-strings",
"@solana/options",
"@aptos-labs/aptos-client",
]);

if (pkgNamesToTarget.has(pkg.name)) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions apps/ledger-live-desktop/tests/page/drawer/send.drawer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { step } from "tests/misc/reporters/step";
import { Drawer } from "tests/component/drawer.component";
import { expect } from "@playwright/test";
import { NFTTransaction, Transaction } from "@ledgerhq/live-common/e2e/models/Transaction";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { test } from "../../fixtures/common";
import { Account } from "@ledgerhq/live-common/e2e/enum/Account";
import { Fee } from "@ledgerhq/live-common/e2e/enum/Fee";
import { OperationType } from "@ledgerhq/live-common/e2e/enum/OperationType";
Expand Down
1 change: 1 addition & 0 deletions apps/ledger-live-mobile/scripts/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = (path, options) => {
"@solana/codecs-numbers",
"@solana/codecs-strings",
"@solana/options",
"@aptos-labs/aptos-client",
]);

if (pkgNamesToTarget.has(pkg.name)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type { Device } from "@ledgerhq/live-common/hw/actions/types";
import type { Operation } from "@ledgerhq/types-live";
import type { Transaction, TransactionStatus } from "@ledgerhq/live-common/generated/types";
import type { Transaction as EvmTransaction, GasOptions } from "@ledgerhq/coin-evm/types/index";
import type { Transaction as AptosTransaction } from "@ledgerhq/live-common/families/aptos/types";
import type { TransactionBroadcastError } from "@ledgerhq/live-common/errors/transactionBroadcastErrors";
import type {
CardanoAccount,
Expand Down Expand Up @@ -173,21 +172,6 @@ export type SendFundsNavigatorStackParamList = {
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.AptosCustomFees]: {
accountId: string;
parentId?: string;
transaction: AptosTransaction;
setCustomFees?: (transaction: Partial<AptosTransaction>) => void;
setTransaction?: Result<AptosTransaction>["setTransaction"];
currentNavigation:
| ScreenName.SignTransactionSummary
| ScreenName.SendSummary
| ScreenName.SwapForm;
nextNavigation:
| ScreenName.SignTransactionSelectDevice
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.EvmCustomFees]: {
accountId: string;
parentId?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Transaction, TransactionStatus } from "@ledgerhq/live-common/generated/types";
import type { Transaction as EvmTransaction, GasOptions } from "@ledgerhq/coin-evm/types/index";
import type { Transaction as AptosTransaction } from "@ledgerhq/live-common/families/aptos/types";
import type {
CardanoAccount,
Transaction as CardanoTransaction,
Expand Down Expand Up @@ -122,19 +121,6 @@ export type SignTransactionNavigatorParamList = {
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.AptosCustomFees]: {
accountId: string;
parentId?: string;
transaction: AptosTransaction;
currentNavigation:
| ScreenName.SignTransactionSummary
| ScreenName.SendSummary
| ScreenName.SwapForm;
nextNavigation:
| ScreenName.SignTransactionSelectDevice
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.EvmCustomFees]: {
accountId: string;
parentId?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import type {
SwapPendingOperation,
SwapOperation,
} from "../../../screens/Swap/types";
import type { Transaction as AptosTransaction } from "@ledgerhq/live-common/families/aptos/types";
import type {
CardanoAccount,
Transaction as CardanoTransaction,
Expand Down Expand Up @@ -133,19 +132,6 @@ export type SwapNavigatorParamList = {
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.AptosCustomFees]: {
accountId: string;
parentId?: string;
transaction: AptosTransaction;
currentNavigation:
| ScreenName.SignTransactionSummary
| ScreenName.SendSummary
| ScreenName.SwapForm;
nextNavigation:
| ScreenName.SignTransactionSelectDevice
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.EvmCustomFees]: {
accountId: string;
parentId?: string;
Expand Down
Loading
Loading