Commit Graph
278 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 Polyakov 879cd5096a fix: update configuration files 2026-05-15 01:34:01 +03: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 927c24de68 Merge branch 'main' into schouhy/diversify-private-pdas-by-identifier 2026-05-11 18:57:44 -03:00
Sergio Chouhy a9baf5d3dc rename progam 2026-05-11 17:09:46 -03:00
Sergio Chouhy d648505d89 fmt, clippy 2026-05-08 22:15:57 -03:00
Sergio Chouhy e9c0aa0858 handle comments 2026-05-08 21:41:48 -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
Pravdyvy f3472ce87a Merge branch 'main' into Pravdyvy/indexer-query-api 2026-05-05 14:39:14 +03:00
Petar Radovic 5bcb1d468b unstaged file 2026-05-01 09:25:37 +02:00
Petar Radovic c263a98231 address comments 2026-05-01 09:12:24 +02:00
Petar Radovic 0920e086d9 merge main 2026-04-30 11:21:01 +02:00
Petar Radovic 265a269da0 remove indexer dep from sequencer: 2026-04-30 11:13:50 +02:00
Sergio Chouhy 72756e8622 Merge branch 'main' into schouhy/generalize-npk-to-multiple-accounts 2026-04-29 12:28:05 -03:00
Petar Radovic 798b89839c checkpoints 2026-04-29 14:05:23 +02:00
Petar Radovic 6bcbe058ed merge master 2026-04-29 10:33:07 +02:00
Pravdyvy 89ea884207 feat: working queries 2026-04-28 19:36:23 +03:00
Sergio Chouhy f512a3bf0f refactor wallet config to use identifiers instead of the redundant account_id field 2026-04-27 23:12:30 -03:00
Pravdyvy 02949e961a Merge branch 'main' into Pravdyvy/indexer-ffi-spawns-rpc-for-communication 2026-04-27 13:58:10 +03:00
Pravdyvy 063ad8e476 Merge branch 'main' into Pravdyvy/indexer-query-api 2026-04-24 16:32:06 +03:00
Sergio Chouhy 7c45b5af3c Merge branch 'main' into schouhy/generalize-npk-to-multiple-accounts 2026-04-24 01:04:55 -03:00
Pravdyvy 9fc2e39c10 feat: first query api 2026-04-23 17:07:19 +03:00
Pravdyvy ad6a55c55d fix: lint fix 1 2026-04-22 07:42:02 +03:00
Pravdyvy 33557b122f fix: comments fix 1 2026-04-21 17:46:16 +03:00
Moudy d1fd6fe945 fix: clippy issue 2026-04-16 19:07:27 +02:00
Sergio Chouhy 985f610cea wip 2026-04-15 15:42:04 -03:00
Sergio Chouhy dae617c673 wip: add dummy identifier 2026-04-14 18:02:38 -03:00
Pravdyvy b864ff22d4 Merge branch 'main' into Pravdyvy/indexer-ffi-spawns-rpc-for-communication 2026-04-14 10:58:18 +03:00
Pravdyvy dd3ac54318 fix: all ffi tests added 2026-04-14 10:51:57 +03:00
Pravdyvy 5fc397c2ee fix: ci fix 2026-04-13 15:53:31 +03:00
Pravdyvy 5f86e597d5 fix: tests running 2026-04-13 13:34:01 +03:00
Petar Radovic e6ad1d3eea resubmit interval 2026-04-09 14:35:51 +02: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
Sergio Chouhy 99071a4ef9 Merge branch 'main' into schouhy/add-block-context 2026-03-26 21:23:36 -03:00
Pravdyvy 9c90930bd6 Merge branch 'main' into Pravdyvy/hardcoded-initial-state 2026-03-20 14:55:42 +02:00
Sergio Chouhy 607a34058d Merge branch 'main' into schouhy/add-block-context 2026-03-20 09:52:16 -03:00
Sergio Chouhy 0d46f0798a clippy 2026-03-19 18:55:02 -03:00
Daniil Polyakov 7b20a83379 fix: fixes after rebase & address comments 2026-03-20 00:48:04 +03:00
Daniil Polyakov 325960d696 feat: remove override_rust_log from wallet config 2026-03-20 00:48:04 +03:00
Daniil Polyakov b631ef02c6 fix: final fixes & polishing 2026-03-20 00:47:37 +03:00