From 558ee875d9acbf92d2e60801c1c3894b6c127a71 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Wed, 27 May 2026 20:57:47 -0300 Subject: [PATCH] refactor!:move all LEZ related crates under a new directory --- .github/workflows/bench-regression.yml | 2 +- .github/workflows/publish_images.yml | 8 +-- Cargo.lock | 8 +++ Cargo.toml | 68 +++++++++--------- Justfile | 16 ++--- README.md | 22 +++--- completions/README.md | 2 +- docker-compose.override.yml | 4 +- docker-compose.yml | 6 +- docs/LEZ testnet v0.1 tutorials/keycard.md | 16 ++--- examples/program_deployment/README.md | 4 +- .../src/bin/run_hello_world.rs | 2 +- .../src/bin/run_hello_world_private.rs | 2 +- .../bin/run_hello_world_through_tail_call.rs | 2 +- ...n_hello_world_through_tail_call_private.rs | 2 +- .../bin/run_hello_world_with_authorization.rs | 2 +- ...uthorization_through_tail_call_with_pda.rs | 2 +- .../bin/run_hello_world_with_move_function.rs | 2 +- lez/Cargo.toml | 12 ++++ {common => lez/common}/Cargo.toml | 0 {common => lez/common}/src/block.rs | 0 {common => lez/common}/src/borsh_base64.rs | 0 {common => lez/common}/src/config.rs | 0 {common => lez/common}/src/lib.rs | 0 {common => lez/common}/src/test_utils.rs | 0 {common => lez/common}/src/transaction.rs | 0 .../docker-all-in-one/indexer_config.json | 0 .../docker-all-in-one/sequencer_config.json | 0 .../explorer_service}/.gitignore | 0 .../explorer_service}/Cargo.toml | 0 .../explorer_service}/Dockerfile | 0 .../explorer_service}/README.md | 0 .../explorer_service}/docker-compose.yml | 2 +- .../explorer_service}/public/explorer.css | 0 .../explorer_service}/src/api.rs | 0 .../src/components/account_preview.rs | 0 .../src/components/block_preview.rs | 0 .../explorer_service}/src/components/mod.rs | 0 .../src/components/transaction_preview.rs | 0 .../explorer_service}/src/format_utils.rs | 0 .../explorer_service}/src/lib.rs | 0 .../explorer_service}/src/main.rs | 0 .../src/pages/account_page.rs | 0 .../explorer_service}/src/pages/block_page.rs | 0 .../explorer_service}/src/pages/main_page.rs | 0 .../explorer_service}/src/pages/mod.rs | 0 .../src/pages/transaction_page.rs | 0 {indexer => lez/indexer}/core/Cargo.toml | 0 .../indexer}/core/src/block_store.rs | 0 {indexer => lez/indexer}/core/src/config.rs | 0 {indexer => lez/indexer}/core/src/lib.rs | 0 {indexer => lez/indexer}/ffi/Cargo.toml | 0 {indexer => lez/indexer}/ffi/build.rs | 0 {indexer => lez/indexer}/ffi/cbindgen.toml | 0 {indexer => lez/indexer}/ffi/indexer_ffi.h | 0 .../indexer}/ffi/src/api/client.rs | 0 .../indexer}/ffi/src/api/lifecycle.rs | 0 .../indexer}/ffi/src/api/memory.rs | 0 {indexer => lez/indexer}/ffi/src/api/mod.rs | 0 {indexer => lez/indexer}/ffi/src/api/query.rs | 0 .../indexer}/ffi/src/api/result.rs | 0 .../indexer}/ffi/src/api/types/account.rs | 0 .../indexer}/ffi/src/api/types/block.rs | 0 .../indexer}/ffi/src/api/types/mod.rs | 0 .../indexer}/ffi/src/api/types/transaction.rs | 0 .../indexer}/ffi/src/api/types/vectors.rs | 0 {indexer => lez/indexer}/ffi/src/client.rs | 0 {indexer => lez/indexer}/ffi/src/errors.rs | 0 {indexer => lez/indexer}/ffi/src/indexer.rs | 0 {indexer => lez/indexer}/ffi/src/lib.rs | 0 {indexer => lez/indexer}/ffi/src/runtime.rs | 0 {indexer => lez/indexer}/service/Cargo.toml | 0 {indexer => lez/indexer}/service/Dockerfile | 0 .../service/configs/indexer_config.json | 0 .../indexer}/service/docker-compose.yml | 4 +- .../indexer}/service/protocol/Cargo.toml | 0 .../indexer}/service/protocol/src/convert.rs | 0 .../indexer}/service/protocol/src/lib.rs | 0 .../indexer}/service/rpc/Cargo.toml | 0 .../indexer}/service/rpc/src/lib.rs | 0 {indexer => lez/indexer}/service/src/lib.rs | 0 {indexer => lez/indexer}/service/src/main.rs | 0 .../indexer}/service/src/mock_service.rs | 0 .../indexer}/service/src/service.rs | 0 .../keycard_wallet}/Cargo.toml | 0 .../keycard_applets/LEE_keycard.cap | Bin .../keycard_wallet}/keycard_applets/math.cap | Bin .../keycard_wallet}/python/keycard_wallet.py | 0 .../keycard_wallet}/src/lib.rs | 0 .../keycard_wallet}/src/python_path.rs | 0 .../keycard_wallet}/tests/keycard_tests.sh | 0 .../keycard_wallet}/wallet_with_keycard.sh | 6 +- {mempool => lez/mempool}/Cargo.toml | 0 {mempool => lez/mempool}/src/lib.rs | 0 {sequencer => lez/sequencer}/core/Cargo.toml | 0 .../sequencer}/core/src/block_publisher.rs | 0 .../sequencer}/core/src/block_store.rs | 0 .../sequencer}/core/src/config.rs | 0 {sequencer => lez/sequencer}/core/src/lib.rs | 0 {sequencer => lez/sequencer}/core/src/mock.rs | 0 .../sequencer}/service/Cargo.toml | 0 .../sequencer}/service/Dockerfile | 0 .../configs/debug/sequencer_config.json | 0 .../configs/docker/sequencer_config.json | 0 .../sequencer}/service/docker-compose.yml | 4 +- .../sequencer}/service/protocol/Cargo.toml | 0 .../sequencer}/service/protocol/src/lib.rs | 0 .../sequencer}/service/rpc/Cargo.toml | 0 .../sequencer}/service/rpc/src/lib.rs | 0 .../sequencer}/service/src/lib.rs | 0 .../sequencer}/service/src/main.rs | 0 .../sequencer}/service/src/service.rs | 0 lez/src/lib.rs | 2 + {storage => lez/storage}/Cargo.toml | 0 {storage => lez/storage}/src/cells/mod.rs | 0 .../storage}/src/cells/shared_cells.rs | 0 {storage => lez/storage}/src/error.rs | 0 .../storage}/src/indexer/indexer_cells.rs | 0 {storage => lez/storage}/src/indexer/mod.rs | 0 .../storage}/src/indexer/read_multiple.rs | 0 .../storage}/src/indexer/read_once.rs | 0 .../storage}/src/indexer/write_atomic.rs | 0 .../storage}/src/indexer/write_non_atomic.rs | 0 {storage => lez/storage}/src/lib.rs | 0 {storage => lez/storage}/src/sequencer/mod.rs | 0 .../storage}/src/sequencer/sequencer_cells.rs | 0 .../testnet_initial_state}/Cargo.toml | 0 .../testnet_initial_state}/src/lib.rs | 0 {wallet-ffi => lez/wallet-ffi}/Cargo.toml | 0 {wallet-ffi => lez/wallet-ffi}/build.rs | 0 {wallet-ffi => lez/wallet-ffi}/cbindgen.toml | 0 {wallet-ffi => lez/wallet-ffi}/src/account.rs | 0 {wallet-ffi => lez/wallet-ffi}/src/error.rs | 0 {wallet-ffi => lez/wallet-ffi}/src/keys.rs | 0 {wallet-ffi => lez/wallet-ffi}/src/lib.rs | 0 {wallet-ffi => lez/wallet-ffi}/src/pinata.rs | 0 {wallet-ffi => lez/wallet-ffi}/src/sync.rs | 0 .../wallet-ffi}/src/transfer.rs | 0 {wallet-ffi => lez/wallet-ffi}/src/types.rs | 0 {wallet-ffi => lez/wallet-ffi}/src/wallet.rs | 0 {wallet-ffi => lez/wallet-ffi}/wallet_ffi.h | 0 {wallet => lez/wallet}/Cargo.toml | 0 .../wallet}/configs/debug/wallet_config.json | 0 {wallet => lez/wallet}/src/account.rs | 0 {wallet => lez/wallet}/src/account_manager.rs | 0 {wallet => lez/wallet}/src/cli/account.rs | 0 {wallet => lez/wallet}/src/cli/chain.rs | 0 {wallet => lez/wallet}/src/cli/config.rs | 0 {wallet => lez/wallet}/src/cli/group.rs | 0 {wallet => lez/wallet}/src/cli/keycard.rs | 0 {wallet => lez/wallet}/src/cli/mod.rs | 0 .../wallet}/src/cli/programs/amm.rs | 0 .../wallet}/src/cli/programs/ata.rs | 0 .../wallet}/src/cli/programs/mod.rs | 0 .../src/cli/programs/native_token_transfer.rs | 0 .../wallet}/src/cli/programs/pinata.rs | 0 .../wallet}/src/cli/programs/token.rs | 0 {wallet => lez/wallet}/src/config.rs | 0 {wallet => lez/wallet}/src/helperfunctions.rs | 0 {wallet => lez/wallet}/src/lib.rs | 0 {wallet => lez/wallet}/src/main.rs | 0 {wallet => lez/wallet}/src/poller.rs | 0 .../wallet}/src/program_facades/amm.rs | 0 .../wallet}/src/program_facades/ata.rs | 0 .../wallet}/src/program_facades/mod.rs | 0 .../native_token_transfer/deshielded.rs | 0 .../native_token_transfer/mod.rs | 0 .../native_token_transfer/private.rs | 0 .../native_token_transfer/public.rs | 0 .../native_token_transfer/shielded.rs | 0 .../wallet}/src/program_facades/pinata.rs | 0 .../wallet}/src/program_facades/token.rs | 0 {wallet => lez/wallet}/src/signing.rs | 0 {wallet => lez/wallet}/src/storage.rs | 0 .../wallet}/src/storage/key_chain.rs | 0 .../wallet}/src/storage/persistent.rs | 0 176 files changed, 112 insertions(+), 88 deletions(-) create mode 100644 lez/Cargo.toml rename {common => lez/common}/Cargo.toml (100%) rename {common => lez/common}/src/block.rs (100%) rename {common => lez/common}/src/borsh_base64.rs (100%) rename {common => lez/common}/src/config.rs (100%) rename {common => lez/common}/src/lib.rs (100%) rename {common => lez/common}/src/test_utils.rs (100%) rename {common => lez/common}/src/transaction.rs (100%) rename {configs => lez/configs}/docker-all-in-one/indexer_config.json (100%) rename {configs => lez/configs}/docker-all-in-one/sequencer_config.json (100%) rename {explorer_service => lez/explorer_service}/.gitignore (100%) rename {explorer_service => lez/explorer_service}/Cargo.toml (100%) rename {explorer_service => lez/explorer_service}/Dockerfile (100%) rename {explorer_service => lez/explorer_service}/README.md (100%) rename {explorer_service => lez/explorer_service}/docker-compose.yml (88%) rename {explorer_service => lez/explorer_service}/public/explorer.css (100%) rename {explorer_service => lez/explorer_service}/src/api.rs (100%) rename {explorer_service => lez/explorer_service}/src/components/account_preview.rs (100%) rename {explorer_service => lez/explorer_service}/src/components/block_preview.rs (100%) rename {explorer_service => lez/explorer_service}/src/components/mod.rs (100%) rename {explorer_service => lez/explorer_service}/src/components/transaction_preview.rs (100%) rename {explorer_service => lez/explorer_service}/src/format_utils.rs (100%) rename {explorer_service => lez/explorer_service}/src/lib.rs (100%) rename {explorer_service => lez/explorer_service}/src/main.rs (100%) rename {explorer_service => lez/explorer_service}/src/pages/account_page.rs (100%) rename {explorer_service => lez/explorer_service}/src/pages/block_page.rs (100%) rename {explorer_service => lez/explorer_service}/src/pages/main_page.rs (100%) rename {explorer_service => lez/explorer_service}/src/pages/mod.rs (100%) rename {explorer_service => lez/explorer_service}/src/pages/transaction_page.rs (100%) rename {indexer => lez/indexer}/core/Cargo.toml (100%) rename {indexer => lez/indexer}/core/src/block_store.rs (100%) rename {indexer => lez/indexer}/core/src/config.rs (100%) rename {indexer => lez/indexer}/core/src/lib.rs (100%) rename {indexer => lez/indexer}/ffi/Cargo.toml (100%) rename {indexer => lez/indexer}/ffi/build.rs (100%) rename {indexer => lez/indexer}/ffi/cbindgen.toml (100%) rename {indexer => lez/indexer}/ffi/indexer_ffi.h (100%) rename {indexer => lez/indexer}/ffi/src/api/client.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/lifecycle.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/memory.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/mod.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/query.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/result.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/types/account.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/types/block.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/types/mod.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/types/transaction.rs (100%) rename {indexer => lez/indexer}/ffi/src/api/types/vectors.rs (100%) rename {indexer => lez/indexer}/ffi/src/client.rs (100%) rename {indexer => lez/indexer}/ffi/src/errors.rs (100%) rename {indexer => lez/indexer}/ffi/src/indexer.rs (100%) rename {indexer => lez/indexer}/ffi/src/lib.rs (100%) rename {indexer => lez/indexer}/ffi/src/runtime.rs (100%) rename {indexer => lez/indexer}/service/Cargo.toml (100%) rename {indexer => lez/indexer}/service/Dockerfile (100%) rename {indexer => lez/indexer}/service/configs/indexer_config.json (100%) rename {indexer => lez/indexer}/service/docker-compose.yml (81%) rename {indexer => lez/indexer}/service/protocol/Cargo.toml (100%) rename {indexer => lez/indexer}/service/protocol/src/convert.rs (100%) rename {indexer => lez/indexer}/service/protocol/src/lib.rs (100%) rename {indexer => lez/indexer}/service/rpc/Cargo.toml (100%) rename {indexer => lez/indexer}/service/rpc/src/lib.rs (100%) rename {indexer => lez/indexer}/service/src/lib.rs (100%) rename {indexer => lez/indexer}/service/src/main.rs (100%) rename {indexer => lez/indexer}/service/src/mock_service.rs (100%) rename {indexer => lez/indexer}/service/src/service.rs (100%) rename {keycard_wallet => lez/keycard_wallet}/Cargo.toml (100%) rename {keycard_wallet => lez/keycard_wallet}/keycard_applets/LEE_keycard.cap (100%) rename {keycard_wallet => lez/keycard_wallet}/keycard_applets/math.cap (100%) rename {keycard_wallet => lez/keycard_wallet}/python/keycard_wallet.py (100%) rename {keycard_wallet => lez/keycard_wallet}/src/lib.rs (100%) rename {keycard_wallet => lez/keycard_wallet}/src/python_path.rs (100%) rename {keycard_wallet => lez/keycard_wallet}/tests/keycard_tests.sh (100%) rename {keycard_wallet => lez/keycard_wallet}/wallet_with_keycard.sh (61%) rename {mempool => lez/mempool}/Cargo.toml (100%) rename {mempool => lez/mempool}/src/lib.rs (100%) rename {sequencer => lez/sequencer}/core/Cargo.toml (100%) rename {sequencer => lez/sequencer}/core/src/block_publisher.rs (100%) rename {sequencer => lez/sequencer}/core/src/block_store.rs (100%) rename {sequencer => lez/sequencer}/core/src/config.rs (100%) rename {sequencer => lez/sequencer}/core/src/lib.rs (100%) rename {sequencer => lez/sequencer}/core/src/mock.rs (100%) rename {sequencer => lez/sequencer}/service/Cargo.toml (100%) rename {sequencer => lez/sequencer}/service/Dockerfile (100%) rename {sequencer => lez/sequencer}/service/configs/debug/sequencer_config.json (100%) rename {sequencer => lez/sequencer}/service/configs/docker/sequencer_config.json (100%) rename {sequencer => lez/sequencer}/service/docker-compose.yml (81%) rename {sequencer => lez/sequencer}/service/protocol/Cargo.toml (100%) rename {sequencer => lez/sequencer}/service/protocol/src/lib.rs (100%) rename {sequencer => lez/sequencer}/service/rpc/Cargo.toml (100%) rename {sequencer => lez/sequencer}/service/rpc/src/lib.rs (100%) rename {sequencer => lez/sequencer}/service/src/lib.rs (100%) rename {sequencer => lez/sequencer}/service/src/main.rs (100%) rename {sequencer => lez/sequencer}/service/src/service.rs (100%) create mode 100644 lez/src/lib.rs rename {storage => lez/storage}/Cargo.toml (100%) rename {storage => lez/storage}/src/cells/mod.rs (100%) rename {storage => lez/storage}/src/cells/shared_cells.rs (100%) rename {storage => lez/storage}/src/error.rs (100%) rename {storage => lez/storage}/src/indexer/indexer_cells.rs (100%) rename {storage => lez/storage}/src/indexer/mod.rs (100%) rename {storage => lez/storage}/src/indexer/read_multiple.rs (100%) rename {storage => lez/storage}/src/indexer/read_once.rs (100%) rename {storage => lez/storage}/src/indexer/write_atomic.rs (100%) rename {storage => lez/storage}/src/indexer/write_non_atomic.rs (100%) rename {storage => lez/storage}/src/lib.rs (100%) rename {storage => lez/storage}/src/sequencer/mod.rs (100%) rename {storage => lez/storage}/src/sequencer/sequencer_cells.rs (100%) rename {testnet_initial_state => lez/testnet_initial_state}/Cargo.toml (100%) rename {testnet_initial_state => lez/testnet_initial_state}/src/lib.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/Cargo.toml (100%) rename {wallet-ffi => lez/wallet-ffi}/build.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/cbindgen.toml (100%) rename {wallet-ffi => lez/wallet-ffi}/src/account.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/src/error.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/src/keys.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/src/lib.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/src/pinata.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/src/sync.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/src/transfer.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/src/types.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/src/wallet.rs (100%) rename {wallet-ffi => lez/wallet-ffi}/wallet_ffi.h (100%) rename {wallet => lez/wallet}/Cargo.toml (100%) rename {wallet => lez/wallet}/configs/debug/wallet_config.json (100%) rename {wallet => lez/wallet}/src/account.rs (100%) rename {wallet => lez/wallet}/src/account_manager.rs (100%) rename {wallet => lez/wallet}/src/cli/account.rs (100%) rename {wallet => lez/wallet}/src/cli/chain.rs (100%) rename {wallet => lez/wallet}/src/cli/config.rs (100%) rename {wallet => lez/wallet}/src/cli/group.rs (100%) rename {wallet => lez/wallet}/src/cli/keycard.rs (100%) rename {wallet => lez/wallet}/src/cli/mod.rs (100%) rename {wallet => lez/wallet}/src/cli/programs/amm.rs (100%) rename {wallet => lez/wallet}/src/cli/programs/ata.rs (100%) rename {wallet => lez/wallet}/src/cli/programs/mod.rs (100%) rename {wallet => lez/wallet}/src/cli/programs/native_token_transfer.rs (100%) rename {wallet => lez/wallet}/src/cli/programs/pinata.rs (100%) rename {wallet => lez/wallet}/src/cli/programs/token.rs (100%) rename {wallet => lez/wallet}/src/config.rs (100%) rename {wallet => lez/wallet}/src/helperfunctions.rs (100%) rename {wallet => lez/wallet}/src/lib.rs (100%) rename {wallet => lez/wallet}/src/main.rs (100%) rename {wallet => lez/wallet}/src/poller.rs (100%) rename {wallet => lez/wallet}/src/program_facades/amm.rs (100%) rename {wallet => lez/wallet}/src/program_facades/ata.rs (100%) rename {wallet => lez/wallet}/src/program_facades/mod.rs (100%) rename {wallet => lez/wallet}/src/program_facades/native_token_transfer/deshielded.rs (100%) rename {wallet => lez/wallet}/src/program_facades/native_token_transfer/mod.rs (100%) rename {wallet => lez/wallet}/src/program_facades/native_token_transfer/private.rs (100%) rename {wallet => lez/wallet}/src/program_facades/native_token_transfer/public.rs (100%) rename {wallet => lez/wallet}/src/program_facades/native_token_transfer/shielded.rs (100%) rename {wallet => lez/wallet}/src/program_facades/pinata.rs (100%) rename {wallet => lez/wallet}/src/program_facades/token.rs (100%) rename {wallet => lez/wallet}/src/signing.rs (100%) rename {wallet => lez/wallet}/src/storage.rs (100%) rename {wallet => lez/wallet}/src/storage/key_chain.rs (100%) rename {wallet => lez/wallet}/src/storage/persistent.rs (100%) diff --git a/.github/workflows/bench-regression.yml b/.github/workflows/bench-regression.yml index 83bad1db..d5d9568a 100644 --- a/.github/workflows/bench-regression.yml +++ b/.github/workflows/bench-regression.yml @@ -2,7 +2,7 @@ on: pull_request: paths: - "tools/crypto_primitives_bench/**" - - "key_protocol/**" + - "lez/key_protocol/**" - "lee/core/**" - ".github/workflows/bench-regression.yml" diff --git a/.github/workflows/publish_images.yml b/.github/workflows/publish_images.yml index dbf6a68d..bfddda6b 100644 --- a/.github/workflows/publish_images.yml +++ b/.github/workflows/publish_images.yml @@ -13,18 +13,18 @@ jobs: matrix: include: - name: sequencer_service - dockerfile: ./sequencer/service/Dockerfile + dockerfile: ./lez/sequencer/service/Dockerfile build_args: | STANDALONE=false - name: sequencer_service-standalone - dockerfile: ./sequencer/service/Dockerfile + dockerfile: ./lez/sequencer/service/Dockerfile build_args: | STANDALONE=true - name: indexer_service - dockerfile: ./indexer/service/Dockerfile + dockerfile: ./lez/indexer/service/Dockerfile build_args: "" - name: explorer_service - dockerfile: ./explorer_service/Dockerfile + dockerfile: ./lez/explorer_service/Dockerfile build_args: "" steps: - uses: actions/checkout@v5 diff --git a/Cargo.lock b/Cargo.lock index 0814f9c1..e31642ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4864,6 +4864,14 @@ dependencies = [ "tachys", ] +[[package]] +name = "lez" +version = "0.1.0" +dependencies = [ + "indexer_core", + "sequencer_core", +] + [[package]] name = "libc" version = "0.2.186" diff --git a/Cargo.toml b/Cargo.toml index 8e317a0b..30b3287d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,12 +5,12 @@ license = "MIT or Apache-2.0" resolver = "3" members = [ "integration_tests", - "storage", + "lez/storage", "lee/key_protocol", - "mempool", - "wallet", - "wallet-ffi", - "common", + "lez/mempool", + "lez/wallet", + "lez/wallet-ffi", + "lez/common", "lee/state_machine", "lee/state_machine/core", "programs/amm/core", @@ -24,15 +24,15 @@ members = [ "programs/faucet/core", "programs/bridge/core", "programs/vault/core", - "sequencer/core", - "sequencer/service", - "sequencer/service/protocol", - "sequencer/service/rpc", - "indexer/core", - "indexer/service", - "indexer/service/protocol", - "indexer/service/rpc", - "explorer_service", + "lez/sequencer/core", + "lez/sequencer/service", + "lez/sequencer/service/protocol", + "lez/sequencer/service/rpc", + "lez/indexer/core", + "lez/indexer/service", + "lez/indexer/service/protocol", + "lez/indexer/service/rpc", + "lez/explorer_service", "program_methods", "program_methods/guest", "test_program_methods", @@ -40,9 +40,10 @@ members = [ "examples/program_deployment", "examples/program_deployment/methods", "examples/program_deployment/methods/guest", - "testnet_initial_state", - "indexer/ffi", - "keycard_wallet", + "lez/testnet_initial_state", + "lez/indexer/ffi", + "lez", + "lez/keycard_wallet", "test_fixtures", "tools/cycle_bench", "tools/crypto_primitives_bench", @@ -52,21 +53,22 @@ members = [ [workspace.dependencies] lee = { path = "lee/state_machine" } lee_core = { path = "lee/state_machine/core" } -common = { path = "common" } -mempool = { path = "mempool" } -storage = { path = "storage" } +common = { path = "lez/common" } +mempool = { path = "lez/mempool" } +storage = { path = "lez/storage" } key_protocol = { path = "lee/key_protocol" } -sequencer_core = { path = "sequencer/core" } -sequencer_service_protocol = { path = "sequencer/service/protocol" } -sequencer_service_rpc = { path = "sequencer/service/rpc" } -sequencer_service = { path = "sequencer/service" } -indexer_core = { path = "indexer/core" } -indexer_service = { path = "indexer/service" } -indexer_service_protocol = { path = "indexer/service/protocol" } -indexer_service_rpc = { path = "indexer/service/rpc" } -wallet = { path = "wallet" } -wallet-ffi = { path = "wallet-ffi", default-features = false } -indexer_ffi = { path = "indexer/ffi" } +sequencer_core = { path = "lez/sequencer/core" } +sequencer_service_protocol = { path = "lez/sequencer/service/protocol" } +sequencer_service_rpc = { path = "lez/sequencer/service/rpc" } +sequencer_service = { path = "lez/sequencer/service" } +indexer_core = { path = "lez/indexer/core" } +indexer_service = { path = "lez/indexer/service" } +indexer_service_protocol = { path = "lez/indexer/service/protocol" } +indexer_service_rpc = { path = "lez/indexer/service/rpc" } +wallet = { path = "lez/wallet" } +wallet-ffi = { path = "lez/wallet-ffi", default-features = false } +indexer_ffi = { path = "lez/indexer/ffi" } +lez = { path = "lez" } clock_core = { path = "programs/clock/core" } token_core = { path = "programs/token/core" } token_program = { path = "programs/token" } @@ -79,8 +81,8 @@ faucet_core = { path = "programs/faucet/core" } bridge_core = { path = "programs/bridge/core" } vault_core = { path = "programs/vault/core" } test_program_methods = { path = "test_program_methods" } -testnet_initial_state = { path = "testnet_initial_state" } -keycard_wallet = { path = "keycard_wallet" } +testnet_initial_state = { path = "lez/testnet_initial_state" } +keycard_wallet = { path = "lez/keycard_wallet" } test_fixtures = { path = "test_fixtures" } tokio = { version = "1.50", features = [ diff --git a/Justfile b/Justfile index 62886247..83c9dd0c 100644 --- a/Justfile +++ b/Justfile @@ -36,13 +36,13 @@ run-bedrock: docker compose up # Run Sequencer -[working-directory: 'sequencer/service'] +[working-directory: 'lez/sequencer/service'] run-sequencer: @echo "🧠 Running sequencer" RUST_LOG=info RISC0_DEV_MODE=1 cargo run --release -p sequencer_service configs/debug/sequencer_config.json # Run Indexer -[working-directory: 'indexer/service'] +[working-directory: 'lez/indexer/service'] run-indexer mock="": @echo "🔍 Running indexer" @if [ "{{mock}}" = "mock" ]; then \ @@ -54,13 +54,13 @@ run-indexer mock="": fi # Run Explorer -[working-directory: 'explorer_service'] +[working-directory: 'lez/explorer_service'] run-explorer: @echo "🌐 Running explorer" RUST_LOG=info cargo leptos serve # Run Wallet -[working-directory: 'wallet'] +[working-directory: 'lez/wallet'] run-wallet +args: @echo "🔑 Running wallet" LEE_WALLET_HOME_DIR=$(pwd)/configs/debug cargo run --release -p wallet -- {{args}} @@ -68,9 +68,9 @@ run-wallet +args: # Clean runtime data clean: @echo "🧹 Cleaning run artifacts" - rm -rf sequencer/service/bedrock_signing_key - rm -rf sequencer/service/rocksdb - rm -rf indexer/service/rocksdb - rm -rf wallet/configs/debug/storage.json + rm -rf lez/sequencer/service/bedrock_signing_key + rm -rf lez/sequencer/service/rocksdb + rm -rf lez/indexer/service/rocksdb + rm -rf lez/wallet/configs/debug/storage.json rm -rf rocksdb cd bedrock && docker compose down -v diff --git a/README.md b/README.md index 3d259a6d..f1ae82dc 100644 --- a/README.md +++ b/README.md @@ -152,17 +152,17 @@ The sequencer and logos blockchain node can be run locally: - `cargo build --all-features` - `./target/debug/logos-blockchain-node --deployment nodes/node/standalone-deployment-config.yaml nodes/node/standalone-node-config.yaml` - - Alternatively (WARNING: This node is outdated) go to `logos-blockchain/lssa/` repo and run the node from docker: + - Alternatively (WARNING: This node is outdated) go to `logos-blockchain/logos-execution-zone/` repo and run the node from docker: - `cd bedrock` - Change line 14 of `docker-compose.yml` from `"0:18080/tcp"` into `"8080:18080/tcp"` - `docker compose up` - 2. On another terminal go to the `logos-blockchain/lssa` repo and run indexer service: - - `RUST_LOG=info cargo run -p indexer_service indexer/service/configs/indexer_config.json` + 2. On another terminal go to the `logos-blockchain/logos-execution-zone` repo and run indexer service: + - `RUST_LOG=info cargo run -p indexer_service lez/indexer/service/configs/indexer_config.json` - 3. On another terminal go to the `logos-blockchain/lssa` repo and run the sequencer: - - `RUST_LOG=info cargo run -p sequencer_service sequencer/service/configs/debug/sequencer_config.json` - 4. (To run the explorer): on another terminal go to `logos-blockchain/lssa/explorer_service` and run the following: + 3. On another terminal go to the `logos-blockchain/logos-execution-zone` repo and run the sequencer: + - `RUST_LOG=info cargo run -p sequencer_service lez/sequencer/service/configs/debug/sequencer_config.json` + 4. (To run the explorer): on another terminal go to `logos-blockchain/logos-execution-zone/lez/explorer_service` and run the following: - `cargo install cargo-leptos` - `cargo leptos build --release` - `cargo leptos serve --release` @@ -171,9 +171,9 @@ The sequencer and logos blockchain node can be run locally: After stopping services above you need to remove 3 folders to start cleanly: 1. In the `logos-blockchain/logos-blockchain` folder `state` (not needed in case of docker setup) - 2. In the `lssa` folder `sequencer/service/rocksdb` - 3. In the `lssa` file `sequencer/service/bedrock_signing_key` - 4. In the `lssa` folder `indexer/service/rocksdb` + 2. In the `logos-execution-zone` folder `lez/sequencer/service/rocksdb` + 3. In the `logos-execution-zone` file `lez/sequencer/service/bedrock_signing_key` + 4. In the `logos-execution-zone` folder `lez/indexer/service/rocksdb` ### Normal mode (`just` commands) We provide a `Justfile` for developer and user needs, you can run the whole setup with it. The only difference will be that logos-blockchain (bedrock) will be started from docker. @@ -220,7 +220,7 @@ This will use a wallet binary built from this repo and not the one installed in ### Standalone mode The sequencer can be run in standalone mode with: ```bash -RUST_LOG=info cargo run --features standalone -p sequencer_service sequencer/service/configs/debug +RUST_LOG=info cargo run --features standalone -p sequencer_service lez/sequencer/service/configs/debug ``` ## Running with Docker @@ -231,7 +231,7 @@ You can run the whole setup with Docker: docker compose up ``` -With that you can send transactions from local wallet to the Sequencer running inside Docker using `wallet/configs/debug` as well as exploring blocks by opening `http://localhost:8080`. +With that you can send transactions from local wallet to the Sequencer running inside Docker using `lez/wallet/configs/debug` as well as exploring blocks by opening `http://localhost:8080`. ## Caution for local image builds diff --git a/completions/README.md b/completions/README.md index b12f1823..297b9570 100644 --- a/completions/README.md +++ b/completions/README.md @@ -1,6 +1,6 @@ # Wallet CLI Completion -Completion scripts for the LSSA `wallet` command. +Completion scripts for the LEZ `wallet` command. ## ZSH diff --git a/docker-compose.override.yml b/docker-compose.override.yml index db955b23..a7fddca6 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -12,13 +12,13 @@ services: - logos-blockchain-node-0 - indexer_service volumes: - - ./configs/docker-all-in-one/sequencer_config.json:/etc/sequencer_service/sequencer_config.json + - ./lez/configs/docker-all-in-one/sequencer_config.json:/etc/sequencer_service/sequencer_config.json indexer_service: depends_on: - logos-blockchain-node-0 volumes: - - ./configs/docker-all-in-one/indexer_config.json:/etc/indexer_service/indexer_config.json + - ./lez/configs/docker-all-in-one/indexer_config.json:/etc/indexer_service/indexer_config.json explorer_service: depends_on: diff --git a/docker-compose.yml b/docker-compose.yml index 4fd3910f..3644b2aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,8 @@ include: - path: bedrock/docker-compose.yml - path: - sequencer/service/docker-compose.yml + lez/sequencer/service/docker-compose.yml - path: - indexer/service/docker-compose.yml + lez/indexer/service/docker-compose.yml - path: - explorer_service/docker-compose.yml + lez/explorer_service/docker-compose.yml diff --git a/docs/LEZ testnet v0.1 tutorials/keycard.md b/docs/LEZ testnet v0.1 tutorials/keycard.md index 38feea4f..81b154e3 100644 --- a/docs/LEZ testnet v0.1 tutorials/keycard.md +++ b/docs/LEZ testnet v0.1 tutorials/keycard.md @@ -16,28 +16,28 @@ Installation: 1. Install math applet on your keycard; this process only needs to be done once. In the root of repo: ``` sudo apt-get install -y default-jdk - wget https://github.com/martinpaljak/GlobalPlatformPro/releases/download/v25.10.20/gp.jar -P keycard_wallet/keycard_applets - cd keycard_wallet/keycard_applets + wget https://github.com/martinpaljak/GlobalPlatformPro/releases/download/v25.10.20/gp.jar -P lez/keycard_wallet/keycard_applets + cd lez/keycard_wallet/keycard_applets java -jar gp.jar --key c212e073ff8b4bbfaff4de8ab655221f --load math.cap ``` 2. Install `keycard-desktop` from [github](https://github.com/choppu/keycard-desktop) - Keycard Desktop is used to install the LEE key protocol to a blank keycard. - - Select (Re)Install Applet and upload the key binary (`keycard_wallet/keycard_applets/LEE_keycard.cap`). + - Select (Re)Install Applet and upload the key binary (`lez/keycard_wallet/keycard_applets/LEE_keycard.cap`). ![keycard-desktop.png](keycard-desktop.png) - **Important:** keycard can only connect with one application at a time; if Keycard-Desktop is using keycard then Wallet CLI cannot access the same keycard, and vice-versa. ## Wallet with Keycard -Keycard functionality is available to Wallet CLI by setting up the following Python virtual environment. The steps below can also be run via `keycard_wallet/wallet_with_keycard.sh`. +Keycard functionality is available to Wallet CLI by setting up the following Python virtual environment. The steps below can also be run via `lez/keycard_wallet/wallet_with_keycard.sh`. ```bash # Install appropriate version of `keycard-py`. -git clone --branch lee-schnorr --single-branch https://github.com/bitgamma/keycard-py.git keycard_wallet/python/keycard-py +git clone --branch lee-schnorr --single-branch https://github.com/bitgamma/keycard-py.git lez/keycard_wallet/python/keycard-py # Set up virtual environment. python3 -m venv venv source venv/bin/activate pip install pyscard mnemonic ecdsa pyaes -pip install -e keycard_wallet/python/keycard-py +pip install -e lez/keycard_wallet/python/keycard-py ``` **Important**: Keycard wallet commands only work within the virtual environment. @@ -215,10 +215,10 @@ Transaction hash is 7d4c1b8e2f903a56fd19084b3c8b25d07e8f243829bc50addf6e2c78b4b0 ## Testing -Tests for Keycard commands are in `keycard_wallet/tests/keycard_tests.sh`. Run from the repo root with a Keycard connected: +Tests for Keycard commands are in `lez/keycard_wallet/tests/keycard_tests.sh`. Run from the repo root with a Keycard connected: ```bash -bash keycard_wallet/tests/keycard_tests.sh +bash lez/keycard_wallet/tests/keycard_tests.sh ``` ## SigningGroups diff --git a/examples/program_deployment/README.md b/examples/program_deployment/README.md index 331e8a7d..6d1bde25 100644 --- a/examples/program_deployment/README.md +++ b/examples/program_deployment/README.md @@ -13,7 +13,7 @@ cargo install --path wallet --force ``` # 1. Run the sequencer -From the project’s root directory, start the sequencer by following [these instructions](https://github.com/logos-blockchain/lssa#run-the-sequencer-and-node). +From the project’s root directory, start the sequencer by following [these instructions](https://github.com/logos-blockchain/logos-execution-zone#run-the-sequencer-and-node). ## Checking and setting up the wallet For sanity let's check that the wallet can connect to it. @@ -28,7 +28,7 @@ For this tutorial, use: `program-tutorial` You should see `✅All looks good!` if everything went well. # 2. Compile the example programs -In a second terminal, from the `lssa` root directory, compile the example Risc0 programs: +In a second terminal, from the `logos-execution-zone` root directory, compile the example Risc0 programs: ```bash cargo risczero build --manifest-path examples/program_deployment/methods/guest/Cargo.toml ``` diff --git a/examples/program_deployment/src/bin/run_hello_world.rs b/examples/program_deployment/src/bin/run_hello_world.rs index ffba4173..ef5545f7 100644 --- a/examples/program_deployment/src/bin/run_hello_world.rs +++ b/examples/program_deployment/src/bin/run_hello_world.rs @@ -11,7 +11,7 @@ use wallet::WalletCore; // // cargo risczero build --manifest-path examples/program_deployment/methods/guest/Cargo.toml // -// Note: you must run the above command from the root of the `lssa` repository. +// Note: you must run the above command from the root of the `logos-execution-zone` repository. // Note: The compiled binary file is stored in // methods/guest/target/riscv32im-risc0-zkvm-elf/docker/hello_world.bin // diff --git a/examples/program_deployment/src/bin/run_hello_world_private.rs b/examples/program_deployment/src/bin/run_hello_world_private.rs index 07dca9c4..088eb19a 100644 --- a/examples/program_deployment/src/bin/run_hello_world_private.rs +++ b/examples/program_deployment/src/bin/run_hello_world_private.rs @@ -5,7 +5,7 @@ use wallet::{AccountIdentity, WalletCore}; // // cargo risczero build --manifest-path examples/program_deployment/methods/guest/Cargo.toml // -// Note: you must run the above command from the root of the `lssa` repository. +// Note: you must run the above command from the root of the `logos-execution-zone` repository. // Note: The compiled binary file is stored in // methods/guest/target/riscv32im-risc0-zkvm-elf/docker/hello_world.bin // diff --git a/examples/program_deployment/src/bin/run_hello_world_through_tail_call.rs b/examples/program_deployment/src/bin/run_hello_world_through_tail_call.rs index 084afadd..a5f449e1 100644 --- a/examples/program_deployment/src/bin/run_hello_world_through_tail_call.rs +++ b/examples/program_deployment/src/bin/run_hello_world_through_tail_call.rs @@ -11,7 +11,7 @@ use wallet::WalletCore; // // cargo risczero build --manifest-path examples/program_deployment/methods/guest/Cargo.toml // -// Note: you must run the above command from the root of the `lssa` repository. +// Note: you must run the above command from the root of the `logos-execution-zone` repository. // Note: The compiled binary file is stored in // methods/guest/target/riscv32im-risc0-zkvm-elf/docker/simple_tail_call.bin // diff --git a/examples/program_deployment/src/bin/run_hello_world_through_tail_call_private.rs b/examples/program_deployment/src/bin/run_hello_world_through_tail_call_private.rs index 6d05f28b..4983afdb 100644 --- a/examples/program_deployment/src/bin/run_hello_world_through_tail_call_private.rs +++ b/examples/program_deployment/src/bin/run_hello_world_through_tail_call_private.rs @@ -10,7 +10,7 @@ use wallet::{AccountIdentity, WalletCore}; // // cargo risczero build --manifest-path examples/program_deployment/methods/guest/Cargo.toml // -// Note: you must run the above command from the root of the `lssa` repository. +// Note: you must run the above command from the root of the `logos-execution-zone` repository. // Note: The compiled binary file is stored in // methods/guest/target/riscv32im-risc0-zkvm-elf/docker/simple_tail_call.bin // diff --git a/examples/program_deployment/src/bin/run_hello_world_with_authorization.rs b/examples/program_deployment/src/bin/run_hello_world_with_authorization.rs index 414ae9ef..15fc028a 100644 --- a/examples/program_deployment/src/bin/run_hello_world_with_authorization.rs +++ b/examples/program_deployment/src/bin/run_hello_world_with_authorization.rs @@ -11,7 +11,7 @@ use wallet::WalletCore; // // cargo risczero build --manifest-path examples/program_deployment/methods/guest/Cargo.toml // -// Note: you must run the above command from the root of the `lssa` repository. +// Note: you must run the above command from the root of the `logos-execution-zone` repository. // Note: The compiled binary file is stored in // methods/guest/target/riscv32im-risc0-zkvm-elf/docker/hello_world_with_authorization.bin // diff --git a/examples/program_deployment/src/bin/run_hello_world_with_authorization_through_tail_call_with_pda.rs b/examples/program_deployment/src/bin/run_hello_world_with_authorization_through_tail_call_with_pda.rs index fa0d3548..2b0e05ed 100644 --- a/examples/program_deployment/src/bin/run_hello_world_with_authorization_through_tail_call_with_pda.rs +++ b/examples/program_deployment/src/bin/run_hello_world_with_authorization_through_tail_call_with_pda.rs @@ -17,7 +17,7 @@ use wallet::WalletCore; // // cargo risczero build --manifest-path examples/program_deployment/methods/guest/Cargo.toml // -// Note: you must run the above command from the root of the `lssa` repository. +// Note: you must run the above command from the root of the `logos-execution-zone` repository. // Note: The compiled binary file is stored in // methods/guest/target/riscv32im-risc0-zkvm-elf/docker/simple_tail_call.bin // diff --git a/examples/program_deployment/src/bin/run_hello_world_with_move_function.rs b/examples/program_deployment/src/bin/run_hello_world_with_move_function.rs index 72b1db1e..3b175bda 100644 --- a/examples/program_deployment/src/bin/run_hello_world_with_move_function.rs +++ b/examples/program_deployment/src/bin/run_hello_world_with_move_function.rs @@ -8,7 +8,7 @@ use wallet::{AccountIdentity, WalletCore}; // // cargo risczero build --manifest-path examples/program_deployment/methods/guest/Cargo.toml // -// Note: you must run the above command from the root of the `lssa` repository. +// Note: you must run the above command from the root of the `logos-execution-zone` repository. // Note: The compiled binary file is stored in // methods/guest/target/riscv32im-risc0-zkvm-elf/docker/hello_world_with_move_function.bin // diff --git a/lez/Cargo.toml b/lez/Cargo.toml new file mode 100644 index 00000000..40aa19df --- /dev/null +++ b/lez/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "lez" +version = "0.1.0" +edition = "2024" +license = { workspace = true } + +[lints] +workspace = true + +[dependencies] +sequencer_core.workspace = true +indexer_core.workspace = true diff --git a/common/Cargo.toml b/lez/common/Cargo.toml similarity index 100% rename from common/Cargo.toml rename to lez/common/Cargo.toml diff --git a/common/src/block.rs b/lez/common/src/block.rs similarity index 100% rename from common/src/block.rs rename to lez/common/src/block.rs diff --git a/common/src/borsh_base64.rs b/lez/common/src/borsh_base64.rs similarity index 100% rename from common/src/borsh_base64.rs rename to lez/common/src/borsh_base64.rs diff --git a/common/src/config.rs b/lez/common/src/config.rs similarity index 100% rename from common/src/config.rs rename to lez/common/src/config.rs diff --git a/common/src/lib.rs b/lez/common/src/lib.rs similarity index 100% rename from common/src/lib.rs rename to lez/common/src/lib.rs diff --git a/common/src/test_utils.rs b/lez/common/src/test_utils.rs similarity index 100% rename from common/src/test_utils.rs rename to lez/common/src/test_utils.rs diff --git a/common/src/transaction.rs b/lez/common/src/transaction.rs similarity index 100% rename from common/src/transaction.rs rename to lez/common/src/transaction.rs diff --git a/configs/docker-all-in-one/indexer_config.json b/lez/configs/docker-all-in-one/indexer_config.json similarity index 100% rename from configs/docker-all-in-one/indexer_config.json rename to lez/configs/docker-all-in-one/indexer_config.json diff --git a/configs/docker-all-in-one/sequencer_config.json b/lez/configs/docker-all-in-one/sequencer_config.json similarity index 100% rename from configs/docker-all-in-one/sequencer_config.json rename to lez/configs/docker-all-in-one/sequencer_config.json diff --git a/explorer_service/.gitignore b/lez/explorer_service/.gitignore similarity index 100% rename from explorer_service/.gitignore rename to lez/explorer_service/.gitignore diff --git a/explorer_service/Cargo.toml b/lez/explorer_service/Cargo.toml similarity index 100% rename from explorer_service/Cargo.toml rename to lez/explorer_service/Cargo.toml diff --git a/explorer_service/Dockerfile b/lez/explorer_service/Dockerfile similarity index 100% rename from explorer_service/Dockerfile rename to lez/explorer_service/Dockerfile diff --git a/explorer_service/README.md b/lez/explorer_service/README.md similarity index 100% rename from explorer_service/README.md rename to lez/explorer_service/README.md diff --git a/explorer_service/docker-compose.yml b/lez/explorer_service/docker-compose.yml similarity index 88% rename from explorer_service/docker-compose.yml rename to lez/explorer_service/docker-compose.yml index 28c4c9c7..7b699a39 100644 --- a/explorer_service/docker-compose.yml +++ b/lez/explorer_service/docker-compose.yml @@ -1,6 +1,6 @@ services: explorer_service: - image: lssa/explorer_service + image: lez/explorer_service build: context: .. dockerfile: explorer_service/Dockerfile diff --git a/explorer_service/public/explorer.css b/lez/explorer_service/public/explorer.css similarity index 100% rename from explorer_service/public/explorer.css rename to lez/explorer_service/public/explorer.css diff --git a/explorer_service/src/api.rs b/lez/explorer_service/src/api.rs similarity index 100% rename from explorer_service/src/api.rs rename to lez/explorer_service/src/api.rs diff --git a/explorer_service/src/components/account_preview.rs b/lez/explorer_service/src/components/account_preview.rs similarity index 100% rename from explorer_service/src/components/account_preview.rs rename to lez/explorer_service/src/components/account_preview.rs diff --git a/explorer_service/src/components/block_preview.rs b/lez/explorer_service/src/components/block_preview.rs similarity index 100% rename from explorer_service/src/components/block_preview.rs rename to lez/explorer_service/src/components/block_preview.rs diff --git a/explorer_service/src/components/mod.rs b/lez/explorer_service/src/components/mod.rs similarity index 100% rename from explorer_service/src/components/mod.rs rename to lez/explorer_service/src/components/mod.rs diff --git a/explorer_service/src/components/transaction_preview.rs b/lez/explorer_service/src/components/transaction_preview.rs similarity index 100% rename from explorer_service/src/components/transaction_preview.rs rename to lez/explorer_service/src/components/transaction_preview.rs diff --git a/explorer_service/src/format_utils.rs b/lez/explorer_service/src/format_utils.rs similarity index 100% rename from explorer_service/src/format_utils.rs rename to lez/explorer_service/src/format_utils.rs diff --git a/explorer_service/src/lib.rs b/lez/explorer_service/src/lib.rs similarity index 100% rename from explorer_service/src/lib.rs rename to lez/explorer_service/src/lib.rs diff --git a/explorer_service/src/main.rs b/lez/explorer_service/src/main.rs similarity index 100% rename from explorer_service/src/main.rs rename to lez/explorer_service/src/main.rs diff --git a/explorer_service/src/pages/account_page.rs b/lez/explorer_service/src/pages/account_page.rs similarity index 100% rename from explorer_service/src/pages/account_page.rs rename to lez/explorer_service/src/pages/account_page.rs diff --git a/explorer_service/src/pages/block_page.rs b/lez/explorer_service/src/pages/block_page.rs similarity index 100% rename from explorer_service/src/pages/block_page.rs rename to lez/explorer_service/src/pages/block_page.rs diff --git a/explorer_service/src/pages/main_page.rs b/lez/explorer_service/src/pages/main_page.rs similarity index 100% rename from explorer_service/src/pages/main_page.rs rename to lez/explorer_service/src/pages/main_page.rs diff --git a/explorer_service/src/pages/mod.rs b/lez/explorer_service/src/pages/mod.rs similarity index 100% rename from explorer_service/src/pages/mod.rs rename to lez/explorer_service/src/pages/mod.rs diff --git a/explorer_service/src/pages/transaction_page.rs b/lez/explorer_service/src/pages/transaction_page.rs similarity index 100% rename from explorer_service/src/pages/transaction_page.rs rename to lez/explorer_service/src/pages/transaction_page.rs diff --git a/indexer/core/Cargo.toml b/lez/indexer/core/Cargo.toml similarity index 100% rename from indexer/core/Cargo.toml rename to lez/indexer/core/Cargo.toml diff --git a/indexer/core/src/block_store.rs b/lez/indexer/core/src/block_store.rs similarity index 100% rename from indexer/core/src/block_store.rs rename to lez/indexer/core/src/block_store.rs diff --git a/indexer/core/src/config.rs b/lez/indexer/core/src/config.rs similarity index 100% rename from indexer/core/src/config.rs rename to lez/indexer/core/src/config.rs diff --git a/indexer/core/src/lib.rs b/lez/indexer/core/src/lib.rs similarity index 100% rename from indexer/core/src/lib.rs rename to lez/indexer/core/src/lib.rs diff --git a/indexer/ffi/Cargo.toml b/lez/indexer/ffi/Cargo.toml similarity index 100% rename from indexer/ffi/Cargo.toml rename to lez/indexer/ffi/Cargo.toml diff --git a/indexer/ffi/build.rs b/lez/indexer/ffi/build.rs similarity index 100% rename from indexer/ffi/build.rs rename to lez/indexer/ffi/build.rs diff --git a/indexer/ffi/cbindgen.toml b/lez/indexer/ffi/cbindgen.toml similarity index 100% rename from indexer/ffi/cbindgen.toml rename to lez/indexer/ffi/cbindgen.toml diff --git a/indexer/ffi/indexer_ffi.h b/lez/indexer/ffi/indexer_ffi.h similarity index 100% rename from indexer/ffi/indexer_ffi.h rename to lez/indexer/ffi/indexer_ffi.h diff --git a/indexer/ffi/src/api/client.rs b/lez/indexer/ffi/src/api/client.rs similarity index 100% rename from indexer/ffi/src/api/client.rs rename to lez/indexer/ffi/src/api/client.rs diff --git a/indexer/ffi/src/api/lifecycle.rs b/lez/indexer/ffi/src/api/lifecycle.rs similarity index 100% rename from indexer/ffi/src/api/lifecycle.rs rename to lez/indexer/ffi/src/api/lifecycle.rs diff --git a/indexer/ffi/src/api/memory.rs b/lez/indexer/ffi/src/api/memory.rs similarity index 100% rename from indexer/ffi/src/api/memory.rs rename to lez/indexer/ffi/src/api/memory.rs diff --git a/indexer/ffi/src/api/mod.rs b/lez/indexer/ffi/src/api/mod.rs similarity index 100% rename from indexer/ffi/src/api/mod.rs rename to lez/indexer/ffi/src/api/mod.rs diff --git a/indexer/ffi/src/api/query.rs b/lez/indexer/ffi/src/api/query.rs similarity index 100% rename from indexer/ffi/src/api/query.rs rename to lez/indexer/ffi/src/api/query.rs diff --git a/indexer/ffi/src/api/result.rs b/lez/indexer/ffi/src/api/result.rs similarity index 100% rename from indexer/ffi/src/api/result.rs rename to lez/indexer/ffi/src/api/result.rs diff --git a/indexer/ffi/src/api/types/account.rs b/lez/indexer/ffi/src/api/types/account.rs similarity index 100% rename from indexer/ffi/src/api/types/account.rs rename to lez/indexer/ffi/src/api/types/account.rs diff --git a/indexer/ffi/src/api/types/block.rs b/lez/indexer/ffi/src/api/types/block.rs similarity index 100% rename from indexer/ffi/src/api/types/block.rs rename to lez/indexer/ffi/src/api/types/block.rs diff --git a/indexer/ffi/src/api/types/mod.rs b/lez/indexer/ffi/src/api/types/mod.rs similarity index 100% rename from indexer/ffi/src/api/types/mod.rs rename to lez/indexer/ffi/src/api/types/mod.rs diff --git a/indexer/ffi/src/api/types/transaction.rs b/lez/indexer/ffi/src/api/types/transaction.rs similarity index 100% rename from indexer/ffi/src/api/types/transaction.rs rename to lez/indexer/ffi/src/api/types/transaction.rs diff --git a/indexer/ffi/src/api/types/vectors.rs b/lez/indexer/ffi/src/api/types/vectors.rs similarity index 100% rename from indexer/ffi/src/api/types/vectors.rs rename to lez/indexer/ffi/src/api/types/vectors.rs diff --git a/indexer/ffi/src/client.rs b/lez/indexer/ffi/src/client.rs similarity index 100% rename from indexer/ffi/src/client.rs rename to lez/indexer/ffi/src/client.rs diff --git a/indexer/ffi/src/errors.rs b/lez/indexer/ffi/src/errors.rs similarity index 100% rename from indexer/ffi/src/errors.rs rename to lez/indexer/ffi/src/errors.rs diff --git a/indexer/ffi/src/indexer.rs b/lez/indexer/ffi/src/indexer.rs similarity index 100% rename from indexer/ffi/src/indexer.rs rename to lez/indexer/ffi/src/indexer.rs diff --git a/indexer/ffi/src/lib.rs b/lez/indexer/ffi/src/lib.rs similarity index 100% rename from indexer/ffi/src/lib.rs rename to lez/indexer/ffi/src/lib.rs diff --git a/indexer/ffi/src/runtime.rs b/lez/indexer/ffi/src/runtime.rs similarity index 100% rename from indexer/ffi/src/runtime.rs rename to lez/indexer/ffi/src/runtime.rs diff --git a/indexer/service/Cargo.toml b/lez/indexer/service/Cargo.toml similarity index 100% rename from indexer/service/Cargo.toml rename to lez/indexer/service/Cargo.toml diff --git a/indexer/service/Dockerfile b/lez/indexer/service/Dockerfile similarity index 100% rename from indexer/service/Dockerfile rename to lez/indexer/service/Dockerfile diff --git a/indexer/service/configs/indexer_config.json b/lez/indexer/service/configs/indexer_config.json similarity index 100% rename from indexer/service/configs/indexer_config.json rename to lez/indexer/service/configs/indexer_config.json diff --git a/indexer/service/docker-compose.yml b/lez/indexer/service/docker-compose.yml similarity index 81% rename from indexer/service/docker-compose.yml rename to lez/indexer/service/docker-compose.yml index b690a180..e9189cfc 100644 --- a/indexer/service/docker-compose.yml +++ b/lez/indexer/service/docker-compose.yml @@ -1,9 +1,9 @@ services: indexer_service: - image: lssa/indexer_service + image: lez/indexer_service build: context: ../.. - dockerfile: indexer/service/Dockerfile + dockerfile: lez/indexer/service/Dockerfile container_name: indexer_service ports: - "8779:8779" diff --git a/indexer/service/protocol/Cargo.toml b/lez/indexer/service/protocol/Cargo.toml similarity index 100% rename from indexer/service/protocol/Cargo.toml rename to lez/indexer/service/protocol/Cargo.toml diff --git a/indexer/service/protocol/src/convert.rs b/lez/indexer/service/protocol/src/convert.rs similarity index 100% rename from indexer/service/protocol/src/convert.rs rename to lez/indexer/service/protocol/src/convert.rs diff --git a/indexer/service/protocol/src/lib.rs b/lez/indexer/service/protocol/src/lib.rs similarity index 100% rename from indexer/service/protocol/src/lib.rs rename to lez/indexer/service/protocol/src/lib.rs diff --git a/indexer/service/rpc/Cargo.toml b/lez/indexer/service/rpc/Cargo.toml similarity index 100% rename from indexer/service/rpc/Cargo.toml rename to lez/indexer/service/rpc/Cargo.toml diff --git a/indexer/service/rpc/src/lib.rs b/lez/indexer/service/rpc/src/lib.rs similarity index 100% rename from indexer/service/rpc/src/lib.rs rename to lez/indexer/service/rpc/src/lib.rs diff --git a/indexer/service/src/lib.rs b/lez/indexer/service/src/lib.rs similarity index 100% rename from indexer/service/src/lib.rs rename to lez/indexer/service/src/lib.rs diff --git a/indexer/service/src/main.rs b/lez/indexer/service/src/main.rs similarity index 100% rename from indexer/service/src/main.rs rename to lez/indexer/service/src/main.rs diff --git a/indexer/service/src/mock_service.rs b/lez/indexer/service/src/mock_service.rs similarity index 100% rename from indexer/service/src/mock_service.rs rename to lez/indexer/service/src/mock_service.rs diff --git a/indexer/service/src/service.rs b/lez/indexer/service/src/service.rs similarity index 100% rename from indexer/service/src/service.rs rename to lez/indexer/service/src/service.rs diff --git a/keycard_wallet/Cargo.toml b/lez/keycard_wallet/Cargo.toml similarity index 100% rename from keycard_wallet/Cargo.toml rename to lez/keycard_wallet/Cargo.toml diff --git a/keycard_wallet/keycard_applets/LEE_keycard.cap b/lez/keycard_wallet/keycard_applets/LEE_keycard.cap similarity index 100% rename from keycard_wallet/keycard_applets/LEE_keycard.cap rename to lez/keycard_wallet/keycard_applets/LEE_keycard.cap diff --git a/keycard_wallet/keycard_applets/math.cap b/lez/keycard_wallet/keycard_applets/math.cap similarity index 100% rename from keycard_wallet/keycard_applets/math.cap rename to lez/keycard_wallet/keycard_applets/math.cap diff --git a/keycard_wallet/python/keycard_wallet.py b/lez/keycard_wallet/python/keycard_wallet.py similarity index 100% rename from keycard_wallet/python/keycard_wallet.py rename to lez/keycard_wallet/python/keycard_wallet.py diff --git a/keycard_wallet/src/lib.rs b/lez/keycard_wallet/src/lib.rs similarity index 100% rename from keycard_wallet/src/lib.rs rename to lez/keycard_wallet/src/lib.rs diff --git a/keycard_wallet/src/python_path.rs b/lez/keycard_wallet/src/python_path.rs similarity index 100% rename from keycard_wallet/src/python_path.rs rename to lez/keycard_wallet/src/python_path.rs diff --git a/keycard_wallet/tests/keycard_tests.sh b/lez/keycard_wallet/tests/keycard_tests.sh similarity index 100% rename from keycard_wallet/tests/keycard_tests.sh rename to lez/keycard_wallet/tests/keycard_tests.sh diff --git a/keycard_wallet/wallet_with_keycard.sh b/lez/keycard_wallet/wallet_with_keycard.sh similarity index 61% rename from keycard_wallet/wallet_with_keycard.sh rename to lez/keycard_wallet/wallet_with_keycard.sh index bcd87bd3..7a43bb57 100755 --- a/keycard_wallet/wallet_with_keycard.sh +++ b/lez/keycard_wallet/wallet_with_keycard.sh @@ -1,12 +1,12 @@ #!/bin/bash -cargo install --path wallet --force +cargo install --path lez/wallet --force # Install appropriate version of `keycard-py`. -git clone --branch lee-schnorr --single-branch https://github.com/bitgamma/keycard-py.git keycard_wallet/python/keycard-py +git clone --branch lee-schnorr --single-branch https://github.com/bitgamma/keycard-py.git lez/keycard_wallet/python/keycard-py # Set up virtual environment. python3 -m venv venv source venv/bin/activate pip install pyscard mnemonic ecdsa pyaes -pip install -e keycard_wallet/python/keycard-py \ No newline at end of file +pip install -e lez/keycard_wallet/python/keycard-py \ No newline at end of file diff --git a/mempool/Cargo.toml b/lez/mempool/Cargo.toml similarity index 100% rename from mempool/Cargo.toml rename to lez/mempool/Cargo.toml diff --git a/mempool/src/lib.rs b/lez/mempool/src/lib.rs similarity index 100% rename from mempool/src/lib.rs rename to lez/mempool/src/lib.rs diff --git a/sequencer/core/Cargo.toml b/lez/sequencer/core/Cargo.toml similarity index 100% rename from sequencer/core/Cargo.toml rename to lez/sequencer/core/Cargo.toml diff --git a/sequencer/core/src/block_publisher.rs b/lez/sequencer/core/src/block_publisher.rs similarity index 100% rename from sequencer/core/src/block_publisher.rs rename to lez/sequencer/core/src/block_publisher.rs diff --git a/sequencer/core/src/block_store.rs b/lez/sequencer/core/src/block_store.rs similarity index 100% rename from sequencer/core/src/block_store.rs rename to lez/sequencer/core/src/block_store.rs diff --git a/sequencer/core/src/config.rs b/lez/sequencer/core/src/config.rs similarity index 100% rename from sequencer/core/src/config.rs rename to lez/sequencer/core/src/config.rs diff --git a/sequencer/core/src/lib.rs b/lez/sequencer/core/src/lib.rs similarity index 100% rename from sequencer/core/src/lib.rs rename to lez/sequencer/core/src/lib.rs diff --git a/sequencer/core/src/mock.rs b/lez/sequencer/core/src/mock.rs similarity index 100% rename from sequencer/core/src/mock.rs rename to lez/sequencer/core/src/mock.rs diff --git a/sequencer/service/Cargo.toml b/lez/sequencer/service/Cargo.toml similarity index 100% rename from sequencer/service/Cargo.toml rename to lez/sequencer/service/Cargo.toml diff --git a/sequencer/service/Dockerfile b/lez/sequencer/service/Dockerfile similarity index 100% rename from sequencer/service/Dockerfile rename to lez/sequencer/service/Dockerfile diff --git a/sequencer/service/configs/debug/sequencer_config.json b/lez/sequencer/service/configs/debug/sequencer_config.json similarity index 100% rename from sequencer/service/configs/debug/sequencer_config.json rename to lez/sequencer/service/configs/debug/sequencer_config.json diff --git a/sequencer/service/configs/docker/sequencer_config.json b/lez/sequencer/service/configs/docker/sequencer_config.json similarity index 100% rename from sequencer/service/configs/docker/sequencer_config.json rename to lez/sequencer/service/configs/docker/sequencer_config.json diff --git a/sequencer/service/docker-compose.yml b/lez/sequencer/service/docker-compose.yml similarity index 81% rename from sequencer/service/docker-compose.yml rename to lez/sequencer/service/docker-compose.yml index cede8143..d9c7c2be 100644 --- a/sequencer/service/docker-compose.yml +++ b/lez/sequencer/service/docker-compose.yml @@ -1,9 +1,9 @@ services: sequencer_service: - image: lssa/sequencer_service + image: lez/sequencer_service build: context: ../.. - dockerfile: sequencer/service/Dockerfile + dockerfile: lez/sequencer/service/Dockerfile container_name: sequencer_service ports: - "3040:3040" diff --git a/sequencer/service/protocol/Cargo.toml b/lez/sequencer/service/protocol/Cargo.toml similarity index 100% rename from sequencer/service/protocol/Cargo.toml rename to lez/sequencer/service/protocol/Cargo.toml diff --git a/sequencer/service/protocol/src/lib.rs b/lez/sequencer/service/protocol/src/lib.rs similarity index 100% rename from sequencer/service/protocol/src/lib.rs rename to lez/sequencer/service/protocol/src/lib.rs diff --git a/sequencer/service/rpc/Cargo.toml b/lez/sequencer/service/rpc/Cargo.toml similarity index 100% rename from sequencer/service/rpc/Cargo.toml rename to lez/sequencer/service/rpc/Cargo.toml diff --git a/sequencer/service/rpc/src/lib.rs b/lez/sequencer/service/rpc/src/lib.rs similarity index 100% rename from sequencer/service/rpc/src/lib.rs rename to lez/sequencer/service/rpc/src/lib.rs diff --git a/sequencer/service/src/lib.rs b/lez/sequencer/service/src/lib.rs similarity index 100% rename from sequencer/service/src/lib.rs rename to lez/sequencer/service/src/lib.rs diff --git a/sequencer/service/src/main.rs b/lez/sequencer/service/src/main.rs similarity index 100% rename from sequencer/service/src/main.rs rename to lez/sequencer/service/src/main.rs diff --git a/sequencer/service/src/service.rs b/lez/sequencer/service/src/service.rs similarity index 100% rename from sequencer/service/src/service.rs rename to lez/sequencer/service/src/service.rs diff --git a/lez/src/lib.rs b/lez/src/lib.rs new file mode 100644 index 00000000..81d0de04 --- /dev/null +++ b/lez/src/lib.rs @@ -0,0 +1,2 @@ +pub use indexer_core::IndexerCore; +pub use sequencer_core::SequencerCore; diff --git a/storage/Cargo.toml b/lez/storage/Cargo.toml similarity index 100% rename from storage/Cargo.toml rename to lez/storage/Cargo.toml diff --git a/storage/src/cells/mod.rs b/lez/storage/src/cells/mod.rs similarity index 100% rename from storage/src/cells/mod.rs rename to lez/storage/src/cells/mod.rs diff --git a/storage/src/cells/shared_cells.rs b/lez/storage/src/cells/shared_cells.rs similarity index 100% rename from storage/src/cells/shared_cells.rs rename to lez/storage/src/cells/shared_cells.rs diff --git a/storage/src/error.rs b/lez/storage/src/error.rs similarity index 100% rename from storage/src/error.rs rename to lez/storage/src/error.rs diff --git a/storage/src/indexer/indexer_cells.rs b/lez/storage/src/indexer/indexer_cells.rs similarity index 100% rename from storage/src/indexer/indexer_cells.rs rename to lez/storage/src/indexer/indexer_cells.rs diff --git a/storage/src/indexer/mod.rs b/lez/storage/src/indexer/mod.rs similarity index 100% rename from storage/src/indexer/mod.rs rename to lez/storage/src/indexer/mod.rs diff --git a/storage/src/indexer/read_multiple.rs b/lez/storage/src/indexer/read_multiple.rs similarity index 100% rename from storage/src/indexer/read_multiple.rs rename to lez/storage/src/indexer/read_multiple.rs diff --git a/storage/src/indexer/read_once.rs b/lez/storage/src/indexer/read_once.rs similarity index 100% rename from storage/src/indexer/read_once.rs rename to lez/storage/src/indexer/read_once.rs diff --git a/storage/src/indexer/write_atomic.rs b/lez/storage/src/indexer/write_atomic.rs similarity index 100% rename from storage/src/indexer/write_atomic.rs rename to lez/storage/src/indexer/write_atomic.rs diff --git a/storage/src/indexer/write_non_atomic.rs b/lez/storage/src/indexer/write_non_atomic.rs similarity index 100% rename from storage/src/indexer/write_non_atomic.rs rename to lez/storage/src/indexer/write_non_atomic.rs diff --git a/storage/src/lib.rs b/lez/storage/src/lib.rs similarity index 100% rename from storage/src/lib.rs rename to lez/storage/src/lib.rs diff --git a/storage/src/sequencer/mod.rs b/lez/storage/src/sequencer/mod.rs similarity index 100% rename from storage/src/sequencer/mod.rs rename to lez/storage/src/sequencer/mod.rs diff --git a/storage/src/sequencer/sequencer_cells.rs b/lez/storage/src/sequencer/sequencer_cells.rs similarity index 100% rename from storage/src/sequencer/sequencer_cells.rs rename to lez/storage/src/sequencer/sequencer_cells.rs diff --git a/testnet_initial_state/Cargo.toml b/lez/testnet_initial_state/Cargo.toml similarity index 100% rename from testnet_initial_state/Cargo.toml rename to lez/testnet_initial_state/Cargo.toml diff --git a/testnet_initial_state/src/lib.rs b/lez/testnet_initial_state/src/lib.rs similarity index 100% rename from testnet_initial_state/src/lib.rs rename to lez/testnet_initial_state/src/lib.rs diff --git a/wallet-ffi/Cargo.toml b/lez/wallet-ffi/Cargo.toml similarity index 100% rename from wallet-ffi/Cargo.toml rename to lez/wallet-ffi/Cargo.toml diff --git a/wallet-ffi/build.rs b/lez/wallet-ffi/build.rs similarity index 100% rename from wallet-ffi/build.rs rename to lez/wallet-ffi/build.rs diff --git a/wallet-ffi/cbindgen.toml b/lez/wallet-ffi/cbindgen.toml similarity index 100% rename from wallet-ffi/cbindgen.toml rename to lez/wallet-ffi/cbindgen.toml diff --git a/wallet-ffi/src/account.rs b/lez/wallet-ffi/src/account.rs similarity index 100% rename from wallet-ffi/src/account.rs rename to lez/wallet-ffi/src/account.rs diff --git a/wallet-ffi/src/error.rs b/lez/wallet-ffi/src/error.rs similarity index 100% rename from wallet-ffi/src/error.rs rename to lez/wallet-ffi/src/error.rs diff --git a/wallet-ffi/src/keys.rs b/lez/wallet-ffi/src/keys.rs similarity index 100% rename from wallet-ffi/src/keys.rs rename to lez/wallet-ffi/src/keys.rs diff --git a/wallet-ffi/src/lib.rs b/lez/wallet-ffi/src/lib.rs similarity index 100% rename from wallet-ffi/src/lib.rs rename to lez/wallet-ffi/src/lib.rs diff --git a/wallet-ffi/src/pinata.rs b/lez/wallet-ffi/src/pinata.rs similarity index 100% rename from wallet-ffi/src/pinata.rs rename to lez/wallet-ffi/src/pinata.rs diff --git a/wallet-ffi/src/sync.rs b/lez/wallet-ffi/src/sync.rs similarity index 100% rename from wallet-ffi/src/sync.rs rename to lez/wallet-ffi/src/sync.rs diff --git a/wallet-ffi/src/transfer.rs b/lez/wallet-ffi/src/transfer.rs similarity index 100% rename from wallet-ffi/src/transfer.rs rename to lez/wallet-ffi/src/transfer.rs diff --git a/wallet-ffi/src/types.rs b/lez/wallet-ffi/src/types.rs similarity index 100% rename from wallet-ffi/src/types.rs rename to lez/wallet-ffi/src/types.rs diff --git a/wallet-ffi/src/wallet.rs b/lez/wallet-ffi/src/wallet.rs similarity index 100% rename from wallet-ffi/src/wallet.rs rename to lez/wallet-ffi/src/wallet.rs diff --git a/wallet-ffi/wallet_ffi.h b/lez/wallet-ffi/wallet_ffi.h similarity index 100% rename from wallet-ffi/wallet_ffi.h rename to lez/wallet-ffi/wallet_ffi.h diff --git a/wallet/Cargo.toml b/lez/wallet/Cargo.toml similarity index 100% rename from wallet/Cargo.toml rename to lez/wallet/Cargo.toml diff --git a/wallet/configs/debug/wallet_config.json b/lez/wallet/configs/debug/wallet_config.json similarity index 100% rename from wallet/configs/debug/wallet_config.json rename to lez/wallet/configs/debug/wallet_config.json diff --git a/wallet/src/account.rs b/lez/wallet/src/account.rs similarity index 100% rename from wallet/src/account.rs rename to lez/wallet/src/account.rs diff --git a/wallet/src/account_manager.rs b/lez/wallet/src/account_manager.rs similarity index 100% rename from wallet/src/account_manager.rs rename to lez/wallet/src/account_manager.rs diff --git a/wallet/src/cli/account.rs b/lez/wallet/src/cli/account.rs similarity index 100% rename from wallet/src/cli/account.rs rename to lez/wallet/src/cli/account.rs diff --git a/wallet/src/cli/chain.rs b/lez/wallet/src/cli/chain.rs similarity index 100% rename from wallet/src/cli/chain.rs rename to lez/wallet/src/cli/chain.rs diff --git a/wallet/src/cli/config.rs b/lez/wallet/src/cli/config.rs similarity index 100% rename from wallet/src/cli/config.rs rename to lez/wallet/src/cli/config.rs diff --git a/wallet/src/cli/group.rs b/lez/wallet/src/cli/group.rs similarity index 100% rename from wallet/src/cli/group.rs rename to lez/wallet/src/cli/group.rs diff --git a/wallet/src/cli/keycard.rs b/lez/wallet/src/cli/keycard.rs similarity index 100% rename from wallet/src/cli/keycard.rs rename to lez/wallet/src/cli/keycard.rs diff --git a/wallet/src/cli/mod.rs b/lez/wallet/src/cli/mod.rs similarity index 100% rename from wallet/src/cli/mod.rs rename to lez/wallet/src/cli/mod.rs diff --git a/wallet/src/cli/programs/amm.rs b/lez/wallet/src/cli/programs/amm.rs similarity index 100% rename from wallet/src/cli/programs/amm.rs rename to lez/wallet/src/cli/programs/amm.rs diff --git a/wallet/src/cli/programs/ata.rs b/lez/wallet/src/cli/programs/ata.rs similarity index 100% rename from wallet/src/cli/programs/ata.rs rename to lez/wallet/src/cli/programs/ata.rs diff --git a/wallet/src/cli/programs/mod.rs b/lez/wallet/src/cli/programs/mod.rs similarity index 100% rename from wallet/src/cli/programs/mod.rs rename to lez/wallet/src/cli/programs/mod.rs diff --git a/wallet/src/cli/programs/native_token_transfer.rs b/lez/wallet/src/cli/programs/native_token_transfer.rs similarity index 100% rename from wallet/src/cli/programs/native_token_transfer.rs rename to lez/wallet/src/cli/programs/native_token_transfer.rs diff --git a/wallet/src/cli/programs/pinata.rs b/lez/wallet/src/cli/programs/pinata.rs similarity index 100% rename from wallet/src/cli/programs/pinata.rs rename to lez/wallet/src/cli/programs/pinata.rs diff --git a/wallet/src/cli/programs/token.rs b/lez/wallet/src/cli/programs/token.rs similarity index 100% rename from wallet/src/cli/programs/token.rs rename to lez/wallet/src/cli/programs/token.rs diff --git a/wallet/src/config.rs b/lez/wallet/src/config.rs similarity index 100% rename from wallet/src/config.rs rename to lez/wallet/src/config.rs diff --git a/wallet/src/helperfunctions.rs b/lez/wallet/src/helperfunctions.rs similarity index 100% rename from wallet/src/helperfunctions.rs rename to lez/wallet/src/helperfunctions.rs diff --git a/wallet/src/lib.rs b/lez/wallet/src/lib.rs similarity index 100% rename from wallet/src/lib.rs rename to lez/wallet/src/lib.rs diff --git a/wallet/src/main.rs b/lez/wallet/src/main.rs similarity index 100% rename from wallet/src/main.rs rename to lez/wallet/src/main.rs diff --git a/wallet/src/poller.rs b/lez/wallet/src/poller.rs similarity index 100% rename from wallet/src/poller.rs rename to lez/wallet/src/poller.rs diff --git a/wallet/src/program_facades/amm.rs b/lez/wallet/src/program_facades/amm.rs similarity index 100% rename from wallet/src/program_facades/amm.rs rename to lez/wallet/src/program_facades/amm.rs diff --git a/wallet/src/program_facades/ata.rs b/lez/wallet/src/program_facades/ata.rs similarity index 100% rename from wallet/src/program_facades/ata.rs rename to lez/wallet/src/program_facades/ata.rs diff --git a/wallet/src/program_facades/mod.rs b/lez/wallet/src/program_facades/mod.rs similarity index 100% rename from wallet/src/program_facades/mod.rs rename to lez/wallet/src/program_facades/mod.rs diff --git a/wallet/src/program_facades/native_token_transfer/deshielded.rs b/lez/wallet/src/program_facades/native_token_transfer/deshielded.rs similarity index 100% rename from wallet/src/program_facades/native_token_transfer/deshielded.rs rename to lez/wallet/src/program_facades/native_token_transfer/deshielded.rs diff --git a/wallet/src/program_facades/native_token_transfer/mod.rs b/lez/wallet/src/program_facades/native_token_transfer/mod.rs similarity index 100% rename from wallet/src/program_facades/native_token_transfer/mod.rs rename to lez/wallet/src/program_facades/native_token_transfer/mod.rs diff --git a/wallet/src/program_facades/native_token_transfer/private.rs b/lez/wallet/src/program_facades/native_token_transfer/private.rs similarity index 100% rename from wallet/src/program_facades/native_token_transfer/private.rs rename to lez/wallet/src/program_facades/native_token_transfer/private.rs diff --git a/wallet/src/program_facades/native_token_transfer/public.rs b/lez/wallet/src/program_facades/native_token_transfer/public.rs similarity index 100% rename from wallet/src/program_facades/native_token_transfer/public.rs rename to lez/wallet/src/program_facades/native_token_transfer/public.rs diff --git a/wallet/src/program_facades/native_token_transfer/shielded.rs b/lez/wallet/src/program_facades/native_token_transfer/shielded.rs similarity index 100% rename from wallet/src/program_facades/native_token_transfer/shielded.rs rename to lez/wallet/src/program_facades/native_token_transfer/shielded.rs diff --git a/wallet/src/program_facades/pinata.rs b/lez/wallet/src/program_facades/pinata.rs similarity index 100% rename from wallet/src/program_facades/pinata.rs rename to lez/wallet/src/program_facades/pinata.rs diff --git a/wallet/src/program_facades/token.rs b/lez/wallet/src/program_facades/token.rs similarity index 100% rename from wallet/src/program_facades/token.rs rename to lez/wallet/src/program_facades/token.rs diff --git a/wallet/src/signing.rs b/lez/wallet/src/signing.rs similarity index 100% rename from wallet/src/signing.rs rename to lez/wallet/src/signing.rs diff --git a/wallet/src/storage.rs b/lez/wallet/src/storage.rs similarity index 100% rename from wallet/src/storage.rs rename to lez/wallet/src/storage.rs diff --git a/wallet/src/storage/key_chain.rs b/lez/wallet/src/storage/key_chain.rs similarity index 100% rename from wallet/src/storage/key_chain.rs rename to lez/wallet/src/storage/key_chain.rs diff --git a/wallet/src/storage/persistent.rs b/lez/wallet/src/storage/persistent.rs similarity index 100% rename from wallet/src/storage/persistent.rs rename to lez/wallet/src/storage/persistent.rs