mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-27 07:01: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:
@@ -1,4 +1,4 @@
|
||||
use nssa_core::{
|
||||
use lee_core::{
|
||||
account::{Account, AccountId},
|
||||
program::ProgramId,
|
||||
};
|
||||
|
||||
@@ -54,6 +54,6 @@ impl fmt::Display for TokenApiError {
|
||||
|
||||
impl Error for TokenApiError {}
|
||||
|
||||
fn parse_token_program_id(value: &str) -> Result<nssa_core::program::ProgramId, TokenApiError> {
|
||||
fn parse_token_program_id(value: &str) -> Result<lee_core::program::ProgramId, TokenApiError> {
|
||||
parse_program_id(value).map_err(|_| TokenApiError::new("bad_request"))
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use nssa_core::account::AccountId;
|
||||
use lee_core::account::AccountId;
|
||||
use risc0_binfmt::ProgramBinary;
|
||||
use serde_json::{json, Value};
|
||||
use token_core::{Instruction, MetadataStandard, NewTokenDefinition, NewTokenMetadata};
|
||||
@@ -18,7 +18,7 @@ use crate::account::{account_id_from_hex, account_id_hex, program_id_bytes};
|
||||
pub fn program_id(request: ProgramIdRequest) -> TokenResult {
|
||||
let elf = hex::decode(&request.elf).map_err(|_| TokenApiError::new("bad_request"))?;
|
||||
let binary = ProgramBinary::decode(&elf).map_err(|_| TokenApiError::new("bad_request"))?;
|
||||
let image_id: nssa_core::program::ProgramId = binary
|
||||
let image_id: lee_core::program::ProgramId = binary
|
||||
.compute_image_id()
|
||||
.map_err(|_| TokenApiError::new("backend_error"))?
|
||||
.into();
|
||||
@@ -298,7 +298,7 @@ fn reject_zero_account_id(account_id: AccountId, code: &'static str) -> Result<(
|
||||
}
|
||||
|
||||
fn plan_response<const N: usize>(
|
||||
program_id: nssa_core::program::ProgramId,
|
||||
program_id: lee_core::program::ProgramId,
|
||||
account_ids: [AccountId; N],
|
||||
signing_requirements: [bool; N],
|
||||
instruction: Instruction,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use nssa_core::{
|
||||
use lee_core::{
|
||||
account::{Account, AccountId, Data, Nonce},
|
||||
program::ProgramId,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user