Last active
November 26, 2021 17:50
-
-
Save jamland/00a88e29829353ce8cb91a347efcbb0e to your computer and use it in GitHub Desktop.
Revisions
-
jamland revised this gist
Oct 30, 2021 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,10 +12,12 @@ ### 1. Build Install dependencies inside `js` folder ```bash cd metaplex/js yarn install yarn bootstrap yarn build ``` -
jamland revised this gist
Sep 27, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -61,7 +61,7 @@ metaplex create_candy_machine -e devnet -k path_to_your_keypair Set sale start date ```bash metaplex update_candy_machine -d "20 Sep 2021 10:12:00 GMT" -k path_to_your_keypair ``` Mint NFT to your wallet -
jamland revised this gist
Sep 27, 2021 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -133,8 +133,6 @@ The main modifications are: Example usage: ```bash metaplex create_candy_machine --env devnet --keypair /Users/crisp/.config/solana/id.json --spl-token 91MgcgxP8vNg66bb9YDPLdBVbMo5spM9uHbWho85A117 --spl-token-account AQiwnd9uVyY39n32ZWnmpwEgBeq9TQJsBHeq3jWDKpvf metaplex mint_one_token --env devnet --keypair /Users/crisp/.config/solana/id.json --spl-token-account AQiwnd9uVyY39n32ZWnmpwEgBeq9TQJsBHeq3jWDKpvf -
jamland revised this gist
Sep 27, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,7 @@ npx pkg . -d --targets node14-macos-x64 --output bin/macos/metaplex Add metaplex cli to $PATH ```bash sudo cp bin/macos/metaplex /usr/local/bin ``` Alternatively use can use unpacked version after `build` with node command: -
jamland revised this gist
Sep 27, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -77,7 +77,7 @@ spl-token accounts ## Assets Folder * Folder with file pairs named from with growing integer numbers starting from 0.png and 0.json * the image has to be a `PNG` * JSON format can be checked out here: https://docs.metaplex.com/nft-standard. example below: ```json { -
jamland revised this gist
Sep 27, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Add metaplex cli to $PATH cp bin/macos/metaplex /usr/local/bin ``` Alternatively use can use unpacked version after `build` with node command: ``` node ./build/candy-machine-cli.js -
jamland revised this gist
Sep 27, 2021 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,8 @@ ## Quick Start ### 1. Build Install dependencies in the root of this folder ```bash @@ -31,6 +33,14 @@ Add metaplex cli to $PATH cp bin/macos/metaplex /usr/local/bin ``` alternatively use can you unpacked version after `build` with node command: ``` node ./build/candy-machine-cli.js ``` ### 2. Use Upload assets to the arweave and register for candy-machine (get keypair path with `solana config get`). Should follow [Metaplex NFT Standard](https://docs.metaplex.com/nft-standard) ```bash -
jamland revised this gist
Sep 22, 2021 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -123,7 +123,9 @@ The main modifications are: Example usage: ```bash metaplex upload ./ --env devnet --keypair /Users/crisp/.config/solana/id.json 0 -n 1 metaplex create_candy_machine --env devnet --keypair /Users/crisp/.config/solana/id.json --spl-token 91MgcgxP8vNg66bb9YDPLdBVbMo5spM9uHbWho85A117 --spl-token-account AQiwnd9uVyY39n32ZWnmpwEgBeq9TQJsBHeq3jWDKpvf metaplex mint_one_token --env devnet --keypair /Users/crisp/.config/solana/id.json --spl-token-account AQiwnd9uVyY39n32ZWnmpwEgBeq9TQJsBHeq3jWDKpvf ``` -
jamland revised this gist
Sep 22, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -112,6 +112,7 @@ spl-token accounts ] } } ``` ## SPL Token use -
jamland revised this gist
Sep 22, 2021 . 1 changed file with 15 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -111,4 +111,18 @@ spl-token accounts } ] } } ## SPL Token use The main modifications are: `create_candy_machine` has two new options `spl-token` and `spl-token-account`. `spl-token` specifies the spl token to price the mint in. `spl-token-account` specifies the token account the mint payments are sent to. `mint_one_token` has one new option `spl-token-account`. This specifies the token account the user wishes to pay from. Example usage: ```bash metaplex upload ./ --env devnet --keypair /Users/crisp/.config/solana/id.json 0 -n 1 metaplex create_candy_machine --env devnet --keypair /Users/crisp/.config/solana/id.json --spl-token 91MgcgxP8vNg66bb9YDPLdBVbMo5spM9uHbWho85A117 --spl-token-account AQiwnd9uVyY39n32ZWnmpwEgBeq9TQJsBHeq3jWDKpvf metaplex mint_one_token --env devnet --keypair /Users/crisp/.config/solana/id.json --spl-token-account AQiwnd9uVyY39n32ZWnmpwEgBeq9TQJsBHeq3jWDKpvf ``` -
jamland revised this gist
Sep 17, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ # @metaplex/cli aka Candy Machine Help ## Format * Folder with files named from 0-1.png -
jamland created this gist
Sep 17, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,114 @@ # Candy Machine! aka @metaplex/cli ## Format * Folder with files named from 0-1.png * JSON file with attributes, format - Array with indices matching images - Contains: title, description and array of traits ({"display_type":"number","trait_type":"generation","value":2}) ## Quick Start Install dependencies in the root of this folder ```bash yarn install yarn build ``` Build `metaplex` cli tool ```bash yarn run package:macos // or npx pkg . -d --targets node14-macos-x64 --output bin/macos/metaplex ``` Add metaplex cli to $PATH ```bash cp bin/macos/metaplex /usr/local/bin ``` Upload assets to the arweave and register for candy-machine (get keypair path with `solana config get`). Should follow [Metaplex NFT Standard](https://docs.metaplex.com/nft-standard) ```bash metaplex upload ./assets --env devnet -k path_to_your_keypair ``` Verify assets ```bash metaplex verify -k path_to_your_keypair ``` Start candy_machine ```bash metaplex create_candy_machine -e devnet -k path_to_your_keypair ``` Set sale start date ```bash metaplex set_start_date -d "09 Sep 2021 15:20:00 GMT" -k path_to_your_keypair ``` Mint NFT to your wallet ```bash metaplex mint_one_token -e devnet -k path_to_your_keypair ``` Verify NFT inside your wallet. Should be one new token with balance `1` ```bash spl-token accounts ``` ## Assets Folder * Folder with file pairs named from with growing integer numbers starting from 0.png and 0.json * the image HAS TO be a `PNG` * JSON format can be checked out here: https://docs.metaplex.com/nft-standard. example below: ```json { "name": "Solflare X NFT", "symbol": "", "description": "Celebratory Solflare NFT for the Solflare X launch", "seller_fee_basis_points": 0, "image": "image.png", "animation_url": "https://www.arweave.net/efgh1234?ext=mp4", "external_url": "https://solflare.com", "attributes": [ { "trait_type": "web", "value": "yes" }, { "trait_type": "mobile", "value": "yes" }, { "trait_type": "extension", "value": "yes" } ], "collection": { "name": "Solflare X NFT", "family": "Solflare" }, "properties": { "files": [ { "uri": "image.png", "type": "image/png" }, ], "category": "image", "creators": [ { "address": "creator_sol_address", "share": 100 } ] } }