Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

metaplex-program-library

> 开发工具
Open source

Smart contracts maintained by the Metaplex team

648 stars0 likes2 views
WebsiteGitHub

About

Smart contracts maintained by the Metaplex team

Metaplex Program Library

Metaplex smart contracts and SDK.

Metaplex Contracts

Name Rust Crate npm Package
Auction House Crate [![NPM][mpl-auction-house-nimg-long]][mpl-auction-house-npm]
Auctioneer Crate [![NPM][mpl-auctioneer-nimg-long]][mpl-auctioneer-npm]
Bubblegum Crate [![NPM][mpl-bubblegum-nimg-long]][mpl-bubblegum-npm]
Candy Machine Core Crate [![NPM][mpl-candy-machine-core-nimg-long]][mpl-candy-machine-core-npm]
Candy Machine Crate [![NPM][mpl-candy-machine-nimg-long]][mpl-candy-machine-npm]
Fixed Price Sale Crate [![NPM][mpl-fixed-price-sale-nimg-long]][mpl-fixed-price-sale-npm]
Gumdrop Crate [![NPM][mpl-gumdrop-nimg-long]][mpl-gumdrop-npm]
NFT Packs Crate [![NPM][mpl-nft-packs-nimg-long]][mpl-nft-packs-npm]
Token Entangler Crate [![NPM][mpl-token-entangler-nimg-long]][mpl-token-entangler-npm]
Token Metadata Crate [![NPM][mpl-token-metadata-nimg-long]][mpl-token-metadata-npm]

Hydra now lives in its own repository: https://github.com/metaplex-foundation/mpl-hydra

Development

Setting up Rust Tests

Run the build.sh script with the name of the program to build the shared object and put it in a directory called test-programs in the root of the project.

E.g.:

bash
./build.sh auction-house

Running with all builds all programs.

Versioning and Publishing Packages

Smart contract SDK packages are versioned independently since a contract isn't necessarily coupled to other contracts.

We use the following (pre|post)(version|publish) npm scripts to manage related checks, tagging, committing and pushing the version bump.

  • preversion: ensures that the package builds and its tests pass
  • postversion: adds and commits the version bump and adds a tag indicating package name and new version, i.e. @metaplex-foundation/[email protected]
  • prepublishOnly: ensures that the package builds and its tests pass again (just to be really sure)
  • postpublish: pushes the committed change and new tag to GitHub

In order to version and then publish a package just run the following commands from the folder of the package you want to update:

  • npm version
  • npm publish

As you note if version + publish succeeds the scripts end up pushing those updates to the master branch. Therefore, please ensure to be on and up to date master branch before running them. Please don't ever publish from another branch but only from the main one with only PR approved changes merged.

Rust Crates

Package Link Version
Auction House mpl-auction-house Crate
Auctioneer mpl-auctioneer Crate
Bubblegum mpl-bubblegum Crate
Candy Machine Core mpl-candy-machine-core Crate
Testing Utils mpl-testing-utils Crate
Utils mpl-utils Crate
Fixed Price Sale mpl-fixed-price-sale Crate
Gumdrop mpl-gumdrop Crate
NFT Packs mpl-nft-packs Crate
Token Entangler mpl-token-entangler Crate
Token Metadata mpl-token-metadata ![Crate][mpl-token-metadata-img]

npm Packages

Package Link Version
Auction House [mpl-auction-house][mpl-auction-house-npm] [![NPM][mpl-auction-house-nimg]][mpl-auction-house-npm]
Auctioneer [mpl-auctioneer][mpl-auctioneer-npm] [![NPM][mpl-auctioneer-nimg]][mpl-auctioneer-npm]
Bubblegum [mpl-bubblegum][mpl-bubblegum-npm] [![NPM][mpl-bubblegum-nimg]][mpl-bubblegum-npm]
Candy Machine Core [mpl-candy-machine-core][mpl-candy-machine-core-npm] [![NPM][mpl-candy-machine-core-nimg]][mpl-candy-machine-core-npm]
Candy Machine [mpl-candy-machine][mpl-candy-machine-npm] [![NPM][mpl-candy-machine-nimg]][mpl-candy-machine-npm]
Fixed Price Sale [mpl-fixed-price-sale][mpl-fixed-price-sale-npm] [![NPM][mpl-fixed-price-sale-nimg]][mpl-fixed-price-sale-npm]
Gumdrop [mpl-gumdrop][mpl-gumdrop-npm] [![NPM][mpl-gumdrop-nimg]][mpl-gumdrop-npm]
NFT Packs [mpl-nft-packs][mpl-nft-packs-npm] [![NPM][mpl-nft-packs-nimg]][mpl-nft-packs-npm]
Token Entangler [mpl-token-entangler][mpl-token-entangler-npm] [![NPM][mpl-token-entangler-nimg]][mpl-token-entangler-npm]
Token Metadata [mpl-token-metadata][mpl-token-metadata-npm] [![NPM][mpl-token-metadata-nimg]][mpl-token-metadata-npm]

Reporting security issues

To report a security issue, please follow the guidance on the SECURITY page.

License

The Rust/Cargo programs are licensed under the “Apache-style” [Metaplex(TM) NFT Open Source License][metaplex-nft-license] and the JS/TS client libraries are licensed under either the [MIT][mit-license] or the [Apache][apache-license] licenses.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustblockchaindigital-assetsmetaplexnft

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具