mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-26 22:51:14 +00:00
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:
@@ -80,7 +80,7 @@ async function saveShot(app, name) {
|
||||
function resolveTokenD() {
|
||||
const out = execFileSync("wallet", ["account", "id", "--account-id", "token-d-def"], {
|
||||
encoding: "utf8",
|
||||
env: { ...process.env, LEE_WALLET_HOME_DIR: WALLET_HOME, NSSA_WALLET_HOME_DIR: WALLET_HOME },
|
||||
env: { ...process.env, LEE_WALLET_HOME_DIR: WALLET_HOME },
|
||||
});
|
||||
const id = (out.match(/[1-9A-HJ-NP-Za-km-z]{32,44}/) || [])[0];
|
||||
if (!id)
|
||||
|
||||
@@ -51,12 +51,10 @@ cd "$REPO_ROOT"
|
||||
# TEST WALLET — isolated + deterministic
|
||||
###############################################################################
|
||||
|
||||
# Dedicated wallet home for tests. Kept out of git (see .gitignore). Exported
|
||||
# under both env var names so whichever the installed `wallet`/`spel` expects is
|
||||
# satisfied (the current wallet uses LEE_WALLET_HOME_DIR).
|
||||
# Dedicated wallet home for tests. Kept out of git (see .gitignore). The v0.2.x
|
||||
# wallet/spel read LEE_WALLET_HOME_DIR (the old NSSA_WALLET_HOME_DIR is unused).
|
||||
TEST_WALLET_HOME="${TEST_WALLET_HOME:-$SCRIPT_DIR/.wallet}"
|
||||
export LEE_WALLET_HOME_DIR="$TEST_WALLET_HOME"
|
||||
export NSSA_WALLET_HOME_DIR="$TEST_WALLET_HOME"
|
||||
|
||||
# The deterministic test seed. A wallet restored from this mnemonic yields the
|
||||
# same account ids every time, which is why they can be shared/pinned.
|
||||
|
||||
@@ -67,7 +67,6 @@ QT_FORCE_STDERR_LOGGING=1 \
|
||||
QML_DISABLE_DISK_CACHE=1 \
|
||||
QML_INSPECTOR_PORT="${inspector_port}" \
|
||||
LEE_WALLET_HOME_DIR="${wallet_home}" \
|
||||
NSSA_WALLET_HOME_DIR="${wallet_home}" \
|
||||
LD_LIBRARY_PATH="${bundle_root}/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" \
|
||||
"${basecamp_bin}" --user-dir "${run_root}/user" -platform offscreen \
|
||||
>"${run_root}/basecamp.log" 2>&1 &
|
||||
|
||||
Reference in New Issue
Block a user