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-25 13:19:00 +02:00
parent 730053dcc7
commit b1bfa0ac01
86 changed files with 134 additions and 139 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ edition = "2021"
workspace = true
[dependencies]
nssa = { workspace = true }
nssa_core = { workspace = true, features = ["host", "test_utils"] }
lee = { workspace = true }
lee_core = { workspace = true, features = ["host", "test_utils"] }
clock_core = { git = "https://github.com/logos-blockchain/logos-execution-zone.git", tag = "v0.2.2" }
amm_core = { workspace = true }
token_core = { workspace = true }
+6 -6
View File
@@ -8,12 +8,12 @@ use amm_core::{
MINIMUM_LIQUIDITY,
};
use clock_core::{ClockAccountData, CLOCK_01_PROGRAM_ACCOUNT_ID};
use nssa::{
use lee::{
error::LeeError,
program_deployment_transaction::{self, ProgramDeploymentTransaction},
public_transaction, PrivateKey, PublicKey, PublicTransaction, V03State,
};
use nssa_core::account::{Account, AccountId, Data, Nonce};
use lee_core::account::{Account, AccountId, Data, Nonce};
use token_core::{TokenDefinition, TokenHolding};
struct Keys;
@@ -40,15 +40,15 @@ impl Keys {
}
impl Ids {
fn token_program() -> nssa_core::program::ProgramId {
fn token_program() -> lee_core::program::ProgramId {
token_methods::TOKEN_ID
}
fn amm_program() -> nssa_core::program::ProgramId {
fn amm_program() -> lee_core::program::ProgramId {
amm_methods::AMM_ID
}
fn twap_oracle_program() -> nssa_core::program::ProgramId {
fn twap_oracle_program() -> lee_core::program::ProgramId {
twap_oracle_methods::TWAP_ORACLE_ID
}
@@ -1873,7 +1873,7 @@ fn amm_create_price_observations_without_current_tick_account_fails() {
/// state. `RecordTick` reads this account (`CLOCK_01_PROGRAM_ACCOUNT_ID`), so the TWAP tests use it
/// to simulate the passage of time between observations.
///
/// rc6 moved the clock program out of `nssa` into the separate system-programs crate (gated behind
/// rc6 moved the clock program out of `lee` into the separate system-programs crate (gated behind
/// the guest-building `artifacts` feature), so the clock can no longer be ticked by submitting a
/// real clock transaction here. Instead we set the account state directly via
/// `force_insert_account`, matching how the upstream rc6 state-machine tests seed accounts.
+4 -4
View File
@@ -1,7 +1,7 @@
use std::collections::HashMap;
use ata_core::{compute_ata_seed, get_associated_token_account_id};
use nssa::{
use lee::{
execute_and_prove,
privacy_preserving_transaction::{
circuit::ProgramWithDependencies, Message, PrivacyPreservingTransaction, WitnessSet,
@@ -10,7 +10,7 @@ use nssa::{
program_deployment_transaction::{self, ProgramDeploymentTransaction},
public_transaction, PrivateKey, PublicKey, PublicTransaction, V03State,
};
use nssa_core::{
use lee_core::{
account::{Account, AccountId, AccountWithMetadata, Data, Nonce},
encryption::ViewingPublicKey,
InputAccountIdentity, NullifierPublicKey, NullifierSecretKey,
@@ -36,11 +36,11 @@ impl Keys {
}
impl Ids {
fn token_program() -> nssa_core::program::ProgramId {
fn token_program() -> lee_core::program::ProgramId {
token_methods::TOKEN_ID
}
fn ata_program() -> nssa_core::program::ProgramId {
fn ata_program() -> lee_core::program::ProgramId {
ata_methods::ATA_ID
}
@@ -1,9 +1,9 @@
use clock_core::{ClockAccountData, CLOCK_01_PROGRAM_ACCOUNT_ID};
use nssa::{
use lee::{
program_deployment_transaction::{self, ProgramDeploymentTransaction},
public_transaction, PrivateKey, PublicKey, PublicTransaction, V03State,
};
use nssa_core::account::{Account, AccountId, Data, Nonce};
use lee_core::account::{Account, AccountId, Data, Nonce};
use stablecoin_core::{
compute_position_pda, compute_position_vault_pda, compute_protocol_parameters_pda,
compute_redemption_price_state_pda, compute_stability_fee_accumulator_pda,
@@ -35,11 +35,11 @@ impl Keys {
}
impl Ids {
fn token_program() -> nssa_core::program::ProgramId {
fn token_program() -> lee_core::program::ProgramId {
token_methods::TOKEN_ID
}
fn stablecoin_program() -> nssa_core::program::ProgramId {
fn stablecoin_program() -> lee_core::program::ProgramId {
stablecoin_methods::STABLECOIN_ID
}
@@ -264,7 +264,7 @@ fn state_for_stablecoin_tests() -> V03State {
Accounts::collateral_definition_init(),
);
state.force_insert_account(Ids::user_holding(), Accounts::user_holding_init());
// Seed the owner as a non-default-owned account. In nssa, balance-holding user
// Seed the owner as a non-default-owned account. In lee, balance-holding user
// accounts are owned by a system program (see lee `system_accounts` / the
// `time_locked_transfer` sender), not the default program. A default-owned owner
// works the first time it signs (its pre-state is still `Account::default()`), but
+4 -4
View File
@@ -1,11 +1,11 @@
use nssa::{
use lee::{
execute_and_prove,
privacy_preserving_transaction::{Message, PrivacyPreservingTransaction, WitnessSet},
program::Program,
program_deployment_transaction::{self, ProgramDeploymentTransaction},
public_transaction, PrivateKey, PublicKey, PublicTransaction, V03State,
};
use nssa_core::{
use lee_core::{
account::{Account, AccountId, AccountWithMetadata, Data, Nonce},
encryption::ViewingPublicKey,
Commitment, InputAccountIdentity, NullifierPublicKey, NullifierSecretKey,
@@ -35,11 +35,11 @@ impl Keys {
}
impl Ids {
fn token_program() -> nssa_core::program::ProgramId {
fn token_program() -> lee_core::program::ProgramId {
token_methods::TOKEN_ID
}
fn foreign_token_program() -> nssa_core::program::ProgramId {
fn foreign_token_program() -> lee_core::program::ProgramId {
[0xfeed_u32; 8]
}