Skip to content

Commit 8f09488

Browse files
committed
wip: checkpoint of in-progress rename and ID-alignment sweeps
Snapshot so agent work survives container recycling; verified states land in the following commits. https://claude.ai/code/session_01VPj6WLMxD5KL6NwvUvuz1K
1 parent f24722d commit 8f09488

27 files changed

Lines changed: 836 additions & 292 deletions

File tree

tokens/create-token/quasar/src/tests.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ fn token_account(address: Pubkey, mint: Pubkey, owner: Pubkey, amount: u64) -> A
5353
)
5454
}
5555

56-
/// Mark specific account indices as signers.
57-
fn with_signers(mut ix: Instruction, indices: &[usize]) -> Instruction {
58-
for &i in indices {
59-
ix.accounts[i].is_signer = true;
60-
}
61-
ix
62-
}
63-
6456
/// Build create_token instruction data.
6557
/// Wire format: [discriminator: u8 = 0] [decimals: u8]
6658
fn build_create_token_data(decimals: u8) -> Vec<u8> {

tokens/nft-minter/anchor/programs/nft-minter/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub mod nft_minter {
1818
use super::*;
1919

2020
pub fn mint_nft(
21-
context: Context<CreateToken>,
21+
context: Context<MintNftAccountConstraints>,
2222
nft_name: String,
2323
nft_symbol: String,
2424
nft_uri: String,
@@ -96,7 +96,7 @@ pub mod nft_minter {
9696
}
9797

9898
#[derive(Accounts)]
99-
pub struct CreateToken<'info> {
99+
pub struct MintNftAccountConstraints<'info> {
100100
#[account(mut)]
101101
pub payer: Signer<'info>,
102102

tokens/nft-minter/anchor/programs/nft-minter/tests/test_nft_minter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn test_mint_nft() {
9898
nft_uri: "https://example.com/nft.json".to_string(),
9999
}
100100
.data(),
101-
nft_minter::accounts::CreateToken {
101+
nft_minter::accounts::MintNftAccountConstraints {
102102
payer: payer.pubkey(),
103103
metadata_account,
104104
edition_account,

tokens/nft-minter/quasar/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod quasar_nft_minter {
1919
// PR #195 made the capacity bound on `String<N>` mandatory.
2020
#[instruction(discriminator = 0)]
2121
pub fn mint_nft(
22-
ctx: Ctx<MintNft>,
22+
ctx: Ctx<MintNftAccountConstraints>,
2323
nft_name: String<32>,
2424
nft_symbol: String<10>,
2525
nft_uri: String<200>,
@@ -30,7 +30,7 @@ mod quasar_nft_minter {
3030

3131
/// All accounts needed to mint an NFT in one transaction.
3232
#[derive(Accounts)]
33-
pub struct MintNft {
33+
pub struct MintNftAccountConstraints {
3434
#[account(mut)]
3535
pub payer: Signer,
3636

@@ -76,7 +76,7 @@ pub struct MintNft {
7676

7777
#[inline(always)]
7878
fn handle_mint_nft(
79-
accounts: &mut MintNft,
79+
accounts: &mut MintNftAccountConstraints,
8080
nft_name: &str,
8181
nft_symbol: &str,
8282
nft_uri: &str,

tokens/nft-operations/anchor/Anchor.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cluster = "localnet"
1616
wallet = "~/.config/solana/id.json"
1717

1818
[scripts]
19-
# Only run bankrun tests - the validator tests (mint-nft.ts) need Metaplex Token
20-
# Metadata cloned from mainnet which is too slow/unreliable in CI.
21-
# bankrun.test.ts uses a local fixture (tests/fixtures/token_metadata.so).
19+
# Rust + LiteSVM tests; they load Metaplex Token Metadata from the local
20+
# fixture (tests/fixtures/mpl_token_metadata.so) instead of cloning it from
21+
# mainnet, which is too slow/unreliable in CI.
2222
test = "cargo test"

0 commit comments

Comments
 (0)