Skip to content

Commit b42beaf

Browse files
committed
add pinocchio nft-operations example
1 parent 3fe6d97 commit b42beaf

16 files changed

Lines changed: 2295 additions & 1 deletion

File tree

‎Cargo.lock‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ members = [
5252

5353
# tokens
5454
"tokens/escrow/pinocchio/program",
55+
"tokens/nft-operations/pinocchio/program",
5556
"tokens/transfer-tokens/pinocchio/program",
5657
"tokens/token-2022/mint-close-authority/native/program",
5758
"tokens/token-2022/non-transferable/native/program",

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ How to store state that changes size in Solana.
137137

138138
Create an NFT collection, mint NFTs, and verify NFTs as part of a collection using Metaplex Token Metadata.
139139

140-
[anchor](./tokens/nft-operations/anchor)
140+
[anchor](./tokens/nft-operations/anchor) [pinocchio](./tokens/nft-operations/pinocchio)
141141

142142
### Minting a token from inside a program
143143

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# This script is for quick building & deploying of the program.
4+
# It also serves as a reference for the commands used for building & deploying Solana programs.
5+
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
6+
7+
cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target/so
8+
solana program deploy ./program/target/so/program.so
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"type": "module",
3+
"scripts": {
4+
"postinstall": "node prepare.mjs",
5+
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
6+
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",
7+
"build": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target/so",
8+
"deploy": "solana program deploy ./program/target/so/program.so"
9+
},
10+
"dependencies": {
11+
"@solana/web3.js": "^1.98.4",
12+
"borsh": "^2.0.0"
13+
},
14+
"devDependencies": {
15+
"@types/bn.js": "^5.1.0",
16+
"@types/chai": "^4.3.1",
17+
"@types/mocha": "^9.1.1",
18+
"chai": "^4.3.4",
19+
"mocha": "^9.0.3",
20+
"solana-bankrun": "^0.3.0",
21+
"ts-mocha": "^10.0.0",
22+
"typescript": "^4.3.5"
23+
}
24+
}

0 commit comments

Comments
 (0)