This file contains 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 characters
# Taken from https://stackoverflow.com/a/69256259 | |
# Usage: python3 PrivateKeyStringToFile.py <String Private Key> | |
import base58 | |
import sys | |
byte_array = base58.b58decode(sys.argv[1]) | |
json_string = "[" + ",".join(map(lambda b: str(b), byte_array)) + "]" | |
print(json_string) |
This file contains 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 characters
// Usage `node GenerateNftConfigFiles.js` | |
const fs = require('fs') | |
const totalNFTSize = 10000; | |
for (let index = 0; index < totalNFTSize; index++) { | |
const content = { | |
"name": `<NAME>`, | |
"symbol": `<SYM>`, |
This file contains 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 characters
# Reference for the video: https://youtu.be/asnupAj-IJg | |
# Create Keypair | |
solana-keygen new --outfile ~/live/payer.json | |
# Set Keypair | |
solana config set --keypair ~/live/payer.json | |
# Set Network to devnet | |
solana config set --url https://metaplex.devnet.rpcpool.com |
This file contains 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 characters
# Verify installation of dependencies | |
git version | |
node --version | |
yarn --version | |
ts-node --version | |
solana --version | |
spl-token --version | |
# Create and fund wallet | |
solana-keygen new --outfile ./wallet/solana/devnet.json |
This file contains 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 characters
# Reference for the video: https://youtu.be/K2ykv9IffdA | |
## Create wallets | |
# BkuPyM8HV8Ea1RhwpydEjJ2YKMjXA81KxKME2AVXaCRW | |
solana-keygen new --outfile ~/KeyStrokes/nft/wallets/Payer.json | |
# CQdR5xa2u85GiBpt9hBMrcHN9Z6Jf6QNN1jjaAg7TPBu | |
solana-keygen new --outfile ~/KeyStrokes/nft/wallets/Minter.json |
This file contains 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 characters
# Verify that the required tools are installed | |
git version | |
node --version | |
yarn --version | |
ts-node --version | |
solana --version | |
# Setup Metaplex | |
git clone https://github.com/metaplex-foundation/metaplex.git ./metaplex | |
yarn install --cwd ./metaplex/js/ |
This file contains 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 characters
### Setup Sugar | |
bash <(curl -sSf https://sugar.metaplex.com/install.sh) | |
sugar --version | |
### Setup wallets | |
# Setup Solana Tool Suite | |
sh -c "$(curl -sSfL https://release.solana.com/v1.10.32/install)" | |
solana --version |
This file contains 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 characters
# Launching NFT Collection using Candy Machine V3 | |
# https://youtu.be/0KHv1dMV8zU | |
# Setup Solana Tool Suite | |
solana --version | |
solana-keygen --version | |
# Setup Sugar alpha version | |
chmod 755 sugarCM3 | |
./sugarCM3 --version |
This file contains 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 characters
{ | |
"number": 10, | |
"symbol": "NB", | |
"sellerFeeBasisPoints": 500, | |
"isMutable": true, | |
"isSequential": false, | |
"creators": [ | |
{ | |
"address": "3icSnuo5kFS7BE5HPXLMrz1x1duK7bt69PJ4vvg2LDV9", | |
"share": 100 |
This file contains 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 characters
function getTotalSquares(x, y) { | |
let total = 0; | |
for (let loop = 0; loop < Math.min(x, y); loop++) { | |
total += ((x-loop) * (y-loop)); | |
} | |
return total; | |
} | |
console.log(getTotalSquares(4, 11)); |
OlderNewer