Commit Graph
154 Commits
Author SHA1 Message Date
Pravdyvy 3cf35096d1 fix: suggestions fix 2026-08-07 14:39:06 +03:00
Pravdyvy a2b16a886e feat(integration_tests): new context tests 2026-07-30 14:56:04 +03:00
Sergio Chouhy b3eb74cf46 fix(lez/wallet): drop signing with recipient keys 2026-07-24 18:05:40 -03:00
jonesmarvin8 571f35b384 refactor(integration_tests): cleaning up long functions (#533)
* refactoring integration_tests::keys

* refactor integration_tests: extract new_account/send/restored_private_account helpers

Move repeated account-creation and transfer boilerplate into four public
helpers in integration_tests/src/lib.rs (new_account, send,
restored_private_account, assert_public_account_restored), then apply them
across keys.rs, ata.rs, auth_transfer/public.rs, auth_transfer/private.rs,
token.rs, and amm.rs.  Net result: -816 lines of boilerplate.

* Additional refactors

* refactor(integration_tests): apply shared helpers to remaining test files

Use account_balance, get_account, new_account, send, and sync_private
helpers in public.rs, pinata.rs, private_pda.rs, program_deployment.rs,
and token.rs to reduce boilerplate and improve consistency.
2026-07-01 12:13:51 -04:00
Daniil Polyakov 96b28827f6 fix(tests): fix tests 2026-06-24 20:20:40 +03:00
Sergio Chouhy 9f1dc1d24b split indexer integration tests 2026-06-01 23:47:55 -03:00
moudyellaz 563a9ce0f7 refactor: extract test_fixtures crate from integration_tests 2026-05-20 10:08:24 +02:00
Daniil PolyakovandCopilot 9075f30f19 refactor: use system faucet and vaults to supply accounts from genesis
Co-authored-by: Copilot <copilot@github.com>
2026-05-15 01:34:01 +03:00
Daniil Polyakov 5f207a3f02 feat: move initial accounts data into genesis 2026-05-15 01:33:50 +03:00
Sergio Chouhy 355fe3842d rename program 2026-05-11 19:38:28 -03:00
Sergio Chouhy a9baf5d3dc rename progam 2026-05-11 17:09:46 -03:00
Sergio Chouhy fb4ddb055a Merge branch 'main' into schouhy/diversify-private-pdas-by-identifier 2026-05-06 00:22:58 -03:00
Sergio Chouhy 1599fc655c add tests 2026-05-05 21:17:15 -03:00
Petar Radovic c263a98231 address comments 2026-05-01 09:12:24 +02:00
Petar Radovic 265a269da0 remove indexer dep from sequencer: 2026-04-30 11:13:50 +02:00
Pravdyvy 33557b122f fix: comments fix 1 2026-04-21 17:46:16 +03:00
Pravdyvy 1ae7192c7a fix: trying to run tests 2026-04-03 15:50:24 +03:00
r4bbit 3e24ae2736 fix(wallet): use cryptographically secure entropy for mnemonic generation
The mnemonic/wallet generation was using a constant zero-byte array for entropy ([0u8; 32]), making all wallets deterministic based
solely on the password. This commit introduces proper random entropy using OsRng and enables users to back up their recovery phrase.

Changes:

- SeedHolder::new_mnemonic() now uses OsRng for 256-bit random entropy and returns the generated mnemonic
- Added SeedHolder::from_mnemonic() to recover a wallet from an existing mnemonic phrase
- WalletChainStore::new_storage() returns the mnemonic for user backup
- Added WalletChainStore::restore_storage() for recovery from a mnemonic
- WalletCore::new_init_storage() now returns the mnemonic
- Renamed reset_storage to restore_storage, which accepts a mnemonic for recovery
- CLI displays the recovery phrase when a new wallet is created
- RestoreKeys command now prompts for the mnemonic phrase via read_mnemonic_from_stdin()

Note: The password parameter is retained for future storage encryption but is no longer used in seed derivation (empty passphrase is used
 instead). This means the mnemonic alone is sufficient to recover accounts.

Usage:

On first wallet initialization, users will see:
IMPORTANT: Write down your recovery phrase and store it securely.
This is the only way to recover your wallet if you lose access.

Recovery phrase:
  word1 word2 word3 ... word24

To restore keys:
wallet restore-keys --depth 5
Input recovery phrase: <24 words>
Input password: <password>
2026-04-01 16:04:47 +02:00
Daniil Polyakov 7b20a83379 fix: fixes after rebase & address comments 2026-03-20 00:48:04 +03:00
Daniil Polyakov b631ef02c6 fix: final fixes & polishing 2026-03-20 00:47:37 +03:00
Daniil Polyakov 9d87e3b046 fix: fix lints 2026-03-20 00:41:05 +03:00
Daniil Polyakov b254ebb185 feat: refactor sequencer RPC client-side 2026-03-20 00:41:05 +03:00
Daniil Polyakov bffc711470 refactor: move sequencer_ directories into sequencer 2026-03-20 00:36:07 +03:00
Daniil Polyakov 252848a145 feat: update rust to 1.94.0 2026-03-17 21:25:30 +03:00
Daniil Polyakov aa462b66eb feat: add nursery clippy lints 2026-03-17 21:25:30 +03:00
Daniil Polyakov e3b93b6e9a feat: add restriction clippy lints 2026-03-17 21:25:30 +03:00
Daniil Polyakov efe8393ba0 feat: add pedantic clippy lints 2026-03-17 21:25:30 +03:00
Daniil Polyakov 8b5524901c feat: configurable block size limit 2026-02-26 16:21:43 +03:00
Sergio Chouhy 487027d98f Merge pull request #308 from logos-blockchain/Pravdyvy/indexer-state-management
Indexer state management
2026-02-26 09:53:46 -03:00
Daniil Polyakov e71f2fe16a feat: add useful just commands 2026-02-23 17:57:56 +03:00
Pravdyvy 5d228c6d80 Merge branch 'arjentix/fix-sequencer-msg-id' into Pravdyvy/indexer-state-management 2026-02-13 13:37:10 +02:00
Daniil Polyakov d2ce0cd51b fix: run async runtime when dropping TestContext in BlockingTestContext 2026-02-12 19:35:07 +03:00
Daniil Polyakov 09debfa74f feat: implement all-in-one docker compose 2026-02-12 16:31:13 +03:00
Daniil Polyakov 975cfb9ec6 feat: fully integrate Sequencer, Indexer and Explorer with Bedrock 2026-02-12 16:31:13 +03:00
jonesmarvin8 f891f57cab Merge branch 'main' into marvin/public_keys 2026-02-10 09:19:45 -05:00
Pravdyvy 56ff66ccc1 feat: first indexer integration test 2026-02-10 14:03:56 +02:00
Pravdyvy 36407c1d43 Merge branch 'arjentix/full-bedrock-integration' into Pravdyvy/indexer-state-management 2026-02-10 09:14:24 +02:00
Daniil Polyakov f248cf2ae0 feat: implement all-in-one docker compose 2026-02-10 00:27:47 +03:00
Pravdyvy 4afe687e4c Merge branch 'main' into Pravdyvy/indexer-state-management 2026-02-06 17:42:32 +02:00
Daniil Polyakov fdb2979f66 feat: fully integrate Sequencer, Indexer and Explorer with Bedrock 2026-02-06 16:24:35 +03:00
Sergio Chouhy 2fc1ec0fdc Merge branch 'main' into schouhy/add-wallet-ffi-tests 2026-02-04 20:48:36 -03:00
Sergio Chouhy b1840ca68a add test wallet ffi auth-transfer init call 2026-02-04 20:24:57 -03:00
Sergio Chouhy 50b253fa00 move ffi tests to integration tests 2026-02-03 19:07:13 -03:00
Pravdyvy efac8639c3 fix: merge fix 2026-02-03 11:36:07 +02:00
Pravdyvy e1df915357 Merge branch 'arjentix/full-bedrock-integration' into Pravdyvy/indexer-state-management 2026-02-03 11:11:19 +02:00
Daniil Polyakov 71a7905a58 Integrate Indexer Service into integration tests 2026-02-02 19:07:24 +03:00
Sergio Chouhy 6ca020d547 fix deadlock in subscriptions 2026-01-31 19:05:27 -03:00
Daniil Polyakov 71787a70f7 Implement block subscription 2026-01-30 21:53:01 +03:00
Daniil Polyakov e0729a1725 Integrate indexer client into sequencer 2026-01-30 21:53:01 +03:00
Pravdyvy 8fa8cc33d8 fix: config fix 2026-01-30 14:58:41 +02:00