Skip to content

Commit 23e0778

Browse files
mikemaccana-edwardbotMike MacCana
authored andcommitted
chore(token-minter): rename from spl-token-minter
The 'spl-' prefix is redundant. Everything onchain is an SPL token (per Solana's terminology page) — the prefix adds nothing and clutters paths and crate names. The directory, crates, and prose mentions are now just 'token-minter' / 'Token Minter'. Renamed: Directories: tokens/spl-token-minter/ -> tokens/token-minter/ tokens/token-minter/anchor/programs/spl-token-minter/ -> tokens/token-minter/anchor/programs/token-minter/ Crate / package names: spl-token-minter (anchor) -> token-minter spl_token_minter (anchor lib) -> token_minter quasar-spl-token-minter -> quasar-token-minter quasar_spl_token_minter (Quasar.toml) -> quasar_token_minter spl-token-minter-native-program -> token-minter-native-program Source identifiers: Anchor #[program] mod name -> token_minter Anchor.toml [programs.localnet] key -> token_minter Anchor test file: test_spl_token_minter.rs -> test_token_minter.rs Anchor test internal refs (spl_token_minter::*) -> token_minter::* Quasar #[program] mod name -> quasar_token_minter Quasar test .so path -> quasar_token_minter.so Native processor enum SplMinterIntstruction (sic) -> MinterInstruction Native TS enum SplMinterInstruction -> MinterInstruction Native TS describe('SPL Token Minter') -> describe('Token Minter') Native TS it('Create an SPL Token!') -> it('Create a token') Cross-repo path references updated: README.md (root) tokens/nft-minter/README.md tokens/transfer-tokens/README.md tokens/create-token/quasar/src/lib.rs (prose path) .github/.ghaignore (two entries) Verified: - cargo check inside tokens/token-minter/anchor compiles cleanly - git grep 'spl[-_]token[-_]minter' returns zero matches - rename is behaviour-preserving (no program logic changed) Out of scope (pre-existing on this branch, unrelated to rename): - tokens/token-minter/quasar fails cargo check because quasar-spl on branch=master has the zeropod 0.3.0 regression; fix lands when PR #24 is rebased into this branch's base. - tokens/token-minter/native/program does not standalone-compile because it is inside the repo's [workspace] but not listed as a member; same state as tokens/nft-minter/native/program. CI ignores it via .ghaignore.
1 parent e5b7d7c commit 23e0778

36 files changed

Lines changed: 34 additions & 34 deletions

File tree

.github/.ghaignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tools/shank-and-solita/native
99
tokens/pda-mint-authority/native
1010
tokens/nft-minter/native
1111
tokens/transfer-tokens/native
12-
tokens/spl-token-minter/native
12+
tokens/token-minter/native
1313
tokens/create-token/native
1414

1515
tokens/token-swap/anchor
@@ -68,6 +68,6 @@ basics/transfer-sol/steel
6868
tokens/escrow/steel
6969

7070
tokens/pda-mint-authority/steel
71-
tokens/spl-token-minter/steel
71+
tokens/token-minter/steel
7272
tokens/token-swap/steel
7373
tokens/transfer-tokens/steel

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Create an NFT collection, mint NFTs, and verify NFTs as part of a collection usi
157157

158158
Mint tokens from inside your own program using the Classic Token Program.
159159

160-
[⚓ Anchor](./tokens/spl-token-minter/anchor) [💫 Quasar](./tokens/spl-token-minter/quasar) [🦀 Native](./tokens/spl-token-minter/native)
160+
[⚓ Anchor](./tokens/token-minter/anchor) [💫 Quasar](./tokens/token-minter/quasar) [🦀 Native](./tokens/token-minter/native)
161161

162162
### Transfer Tokens
163163

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare_id!("22222222222222222222222222222222222222222222");
1111
/// Creates a token mint and mints initial tokens to the creator's token account.
1212
///
1313
/// The Anchor version uses Metaplex for onchain metadata. Quasar's metadata
14-
/// crate is demonstrated in the `nft-minter` and `spl-token-minter` examples;
14+
/// crate is demonstrated in the `nft-minter` and `token-minter` examples;
1515
/// this example focuses on the core SPL Token operations: creating a mint and
1616
/// minting tokens.
1717
#[program]

tokens/nft-minter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NFT Minter
22

3-
Minting NFTs is the same as [minting any token on Solana](../spl-token-minter/), with one extra step at the end.
3+
Minting NFTs is the same as [minting any token on Solana](../token-minter/), with one extra step at the end.
44

55
When you mint tokens, you can in most cases continue to mint more later, growing the supply. An NFT is supposed to have a supply of **one**, so no more can ever be minted.
66

File renamed without changes.

tokens/spl-token-minter/anchor/Anchor.toml renamed to tokens/token-minter/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resolution = true
66
skip-lint = false
77

88
[programs.localnet]
9-
spl_token_minter = "3of89Z9jwek9zrFgpCWc9jZvQvitpVMxpZNsrAD2vQUD"
9+
token_minter = "3of89Z9jwek9zrFgpCWc9jZvQvitpVMxpZNsrAD2vQUD"
1010

1111
# [registry] section removed — no longer used in Anchor 1.0
1212

File renamed without changes.

tokens/spl-token-minter/anchor/programs/spl-token-minter/Cargo.toml renamed to tokens/token-minter/anchor/programs/token-minter/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "spl-token-minter"
2+
name = "token-minter"
33
version = "0.1.0"
44
description = "Created with Anchor"
55
edition = "2021"
66

77
[lib]
88
crate-type = ["cdylib", "lib"]
9-
name = "spl_token_minter"
9+
name = "token_minter"
1010

1111
[features]
1212
default = []

tokens/spl-token-minter/anchor/programs/spl-token-minter/Xargo.toml renamed to tokens/token-minter/anchor/programs/token-minter/Xargo.toml

File renamed without changes.

0 commit comments

Comments
 (0)