Skip to content

Commit

Permalink
Renaming for consistency for other projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiosaurus committed Feb 2, 2024
1 parent 1ca9ba9 commit 4ab1292
Show file tree
Hide file tree
Showing 28 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CARGO_TERM_COLOR=always
NODE_VERSION=16.x
PROGRAMS=["mpl-inscription"]
PROGRAMS=["inscription"]
RUST_VERSION=1.70.0
SOLANA_VERSION=1.16.18
COMMIT_USER_NAME=github-actions
Expand Down
2 changes: 1 addition & 1 deletion .github/file-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ program_common: &program_common

mpl_inscription: &mpl_inscription
- *program_common
- "programs/mpl-inscription/**"
- "programs/inscription/**"

programs: &programs
- *mpl_inscription
Expand Down
10 changes: 5 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"rust-analyzer.linkedProjects": [
"./clients/rust/Cargo.toml",
"./programs/mpl-inscription/Cargo.toml",
]
}
"rust-analyzer.linkedProjects": [
"./clients/rust/Cargo.toml",
"./programs/inscription/Cargo.toml"
]
}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
Inscribing is the practice of treating the Solana blockchain as a form of data storage, much like Arweave or IPFS. While other data storage providers provide their own immutability and data integrity guarantees, there is demand for data directly on the native chain of the underlying NFT. Features such as dynamic metadata and images, on-chain attribute orders, and trait locked smart contracts all become possible with inscribed metadata.

Metaplex inscriptions have two operating modes:
* Metadata inscribing
* Direct data storage

- Metadata inscribing
- Direct data storage

In both modes binary data of any format can be directly written to the chain through the Metaplex Inscription program. In addition, the Metaplex SDKs provide direct support for inscribing schemas commonly used for NFTs (i.e. JSON and Image formats).

The Metadata inscribing method creates a PDA attached to a mint account, the same way Metadata is attached to a token mint. The JSON and image data of the NFT can then be written directly to the chain in the PDA. This method provides a backup of the NFT data in the event that current data storage providers should ever go down and means the asset is “fully on Solana.”
The Metadata inscribing method creates a PDA attached to a mint account, the same way Metadata is attached to a token mint. The JSON and image data of the NFT can then be written directly to the chain in the PDA. This method provides a backup of the NFT data in the event that current data storage providers should ever go down and means the asset is “fully on Solana.”

Mint inscriptions also include a ranking, which offers a FCFS rarity claim when inscribing an NFT. Using a sharded counter to prevent resource contention, the Mint inscriptions are globally ranked based on their minting order.
The direct data storage can be used as a direct alternative to providers like Arweave and IPFS, rather than as a backup. JSON and Image data can be written directly to the chain. One small caveat of this method is that a gateway is required to enable maximum ecosystem support, much like ar.io, arweave.net, gateway.ipfs.io, etc.
Expand All @@ -19,7 +20,7 @@ The Metaplex Inscription program is queued up for a full audit to prevent any se

This project contains the following programs:

- [Mpl Inscription](./programs/mpl-inscription/README.md) `1NSCRfGeyo7wPUazGbaPBUsTM49e1k2aXewHGARfzSo`
- [Mpl Inscription](./programs/inscription/README.md) `1NSCRfGeyo7wPUazGbaPBUsTM49e1k2aXewHGARfzSo`

You will need a Rust version compatible with BPF to compile the program, currently we recommend using Rust 1.68.0.

Expand Down
2 changes: 1 addition & 1 deletion configs/kinobi.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const clientDir = path.join(__dirname, "..", "clients");
const idlDir = path.join(__dirname, "..", "idls");

// Instanciate Kinobi.
const kinobi = k.createFromIdls([path.join(idlDir, "mpl_inscription.json")]);
const kinobi = k.createFromIdls([path.join(idlDir, "mpl_inscription_program.json")]);

// Update programs.
kinobi.update(
Expand Down
4 changes: 2 additions & 2 deletions configs/shank.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const programDir = path.join(__dirname, "..", "programs");

generateIdl({
generator: "shank",
programName: "mpl_inscription",
programName: "mpl_inscription_program",
programId: "1NSCRfGeyo7wPUazGbaPBUsTM49e1k2aXewHGARfzSo",
idlDir,
binaryInstallDir,
programDir: path.join(programDir, "mpl-inscription"),
programDir: path.join(programDir, "inscription"),
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "0.1.0",
"name": "mpl_inscription",
"name": "mpl_inscription_program",
"instructions": [
{
"name": "Initialize",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "mpl-inscription"
name = "mpl-inscription-program"
version = "0.1.0"
edition = "2021"
readme = "./README.md"
Expand All @@ -17,6 +17,6 @@ num-traits = "^0.2"
solana-program = "~1.16"
thiserror = "^1.0"
mpl-utils = "0.3.1"
serde_json = { version = "1.0.108", features = ["std"]}
serde_json = { version = "1.0.108", features = ["std"] }
mpl-token-metadata = "3.2.3"
spl-token = { version = "4.0.0", features = ["no-entrypoint"] }
spl-token = { version = "4.0.0", features = ["no-entrypoint"] }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4ab1292

Please sign in to comment.