refactor: rename nssa/nssa_core → lee/lee_core

Follow the spel fork's `nssa → lee` refactor (chore/update-lez): the
`#[lez_program]` macro now emits `lee_core::…` paths, so the crate must be
referenced by its real name rather than the `nssa_core` alias.

- Cargo.toml: rename the `nssa_core`/`nssa` dep keys to `lee_core`/`lee` and
  drop the now-redundant `package = "lee_core"`/`package = "lee"` aliases
  (dep name == package name).
- Rust: `nssa_core::` → `lee_core::`, `nssa::` → `lee::` across programs,
  modules, and tools.
- Docs: update the library reference in CLAUDE.md and README.md.

Also drop the dead `NSSA_WALLET_HOME_DIR` env var — superseded by
`LEE_WALLET_HOME_DIR`, which is the only wallet-home var any v0.2.x wallet
reads — from the test tooling (setup-amm-testnet.sh, custom-token.mjs,
run-basecamp-e2e.sh) and docs.

Closes #225
This commit is contained in:
r4bbit
2026-08-26 12:32:37 +02:00
parent 1d88e6f3c4
commit 154b41ba5c
90 changed files with 141 additions and 146 deletions
+1 -1
View File
@@ -7,6 +7,6 @@ edition = "2021"
workspace = true
[dependencies]
nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.4", features = ["host"], package = "lee_core" }
lee_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.4", features = ["host"] }
ata_core = { path = "core" }
token_core = { path = "../token/core" }
+1 -1
View File
@@ -7,7 +7,7 @@ edition = "2021"
workspace = true
[dependencies]
nssa_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.4", features = ["host"], package = "lee_core" }
lee_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.4", features = ["host"] }
borsh = { version = "1.5", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
risc0-zkvm = { version = "=3.0.5", default-features = false }
+2 -2
View File
@@ -1,5 +1,5 @@
pub use nssa_core::program::PdaSeed;
use nssa_core::{
pub use lee_core::program::PdaSeed;
use lee_core::{
account::{AccountId, AccountWithMetadata},
program::ProgramId,
};
+1 -1
View File
@@ -9,7 +9,7 @@
use std::str::FromStr;
use ata_core::{compute_ata_seed, get_associated_token_account_id};
use nssa_core::{account::AccountId, program::ProgramId};
use lee_core::{account::AccountId, program::ProgramId};
// Accepts a ProgramId as 8 comma-separated u32 limbs, a 64-char ImageID hex, or a base58
// ImageID. Hex/base58 are decoded as the 32 ImageID bytes read little-endian per u32 word,
+1 -1
View File
@@ -1,4 +1,4 @@
use nssa_core::{
use lee_core::{
account::AccountWithMetadata,
program::{AccountPostState, ChainedCall, ProgramId},
};
+1 -1
View File
@@ -1,4 +1,4 @@
use nssa_core::{
use lee_core::{
account::{Account, AccountWithMetadata},
program::{AccountPostState, ChainedCall, Claim, ProgramId},
};
+7 -7
View File
@@ -1,13 +1,13 @@
use ata_core::{compute_ata_seed, get_associated_token_account_id};
use nssa_core::{
use lee_core::{
account::{Account, AccountId, AccountWithMetadata, Data},
program::{ChainedCall, Claim},
};
use token_core::{TokenDefinition, TokenHolding};
const ATA_PROGRAM_ID: nssa_core::program::ProgramId = [1u32; 8];
const TOKEN_PROGRAM_ID: nssa_core::program::ProgramId = [2u32; 8];
const OTHER_TOKEN_PROGRAM_ID: nssa_core::program::ProgramId = [3u32; 8];
const ATA_PROGRAM_ID: lee_core::program::ProgramId = [1u32; 8];
const TOKEN_PROGRAM_ID: lee_core::program::ProgramId = [2u32; 8];
const OTHER_TOKEN_PROGRAM_ID: lee_core::program::ProgramId = [3u32; 8];
fn owner_id() -> AccountId {
AccountId::new([0x01u8; 32])
@@ -43,7 +43,7 @@ fn definition_account() -> AccountWithMetadata {
metadata_id: None,
authority: None,
}),
nonce: nssa_core::account::Nonce(0),
nonce: lee_core::account::Nonce(0),
},
is_authorized: false,
account_id: definition_id(),
@@ -67,7 +67,7 @@ fn initialized_ata_account() -> AccountWithMetadata {
definition_id: definition_id(),
balance: 100,
}),
nonce: nssa_core::account::Nonce(0),
nonce: lee_core::account::Nonce(0),
},
is_authorized: false,
account_id: ata_id(),
@@ -248,7 +248,7 @@ fn initialized_recipient_account() -> AccountWithMetadata {
definition_id: definition_id(),
balance: 0,
}),
nonce: nssa_core::account::Nonce(0),
nonce: lee_core::account::Nonce(0),
},
is_authorized: false,
account_id: recipient_id(),
+1 -1
View File
@@ -1,4 +1,4 @@
use nssa_core::{
use lee_core::{
account::{Account, AccountWithMetadata},
program::{AccountPostState, ChainedCall, ProgramId},
};