1
1
### NFT Collection Generation Plugin
2
- A plugin for handling NFT collection generation, NFT creation, anNFT Collection Generation Plugin
2
+
3
3
A plugin for handling NFT collection generation, NFT creation, and verification on the Solana blockchain.
4
4
5
5
## Handlers
6
+
6
7
### createCollection
7
8
The createCollection handler generates an NFT collection logo, uploads it to AWS S3, and creates a Solana blockchain collection.
8
9
@@ -18,14 +19,17 @@ const result = await createCollection({
18
19
19
20
console .log (" Collection created:" , result );
20
21
```
22
+
21
23
#### Features
24
+
22
25
Image Generation: Automatically generates a collection logo based on the provided name and theme.
23
26
AWS S3 Integration: Uploads the generated logo and metadata to AWS S3.
24
27
Solana Blockchain: Creates a collection with the generated logo and metadata on the Solana blockchain.
25
28
### createNFT
26
29
The createNFT handler generates individual NFTs for a collection. It includes metadata creation and uploads the NFT information to AWS S3.
27
30
28
31
#### Usage
32
+
29
33
``` typescript
30
34
import { createNFT } from " ./handlers/createNFT.ts" ;
31
35
@@ -42,9 +46,11 @@ console.log("NFT created:", nftResult);
42
46
```
43
47
44
48
### verifyNFT
49
+
45
50
The verifyNFT handler verifies an NFT against its collection using the Solana blockchain.
46
51
47
52
#### Usage
53
+
48
54
``` typescript
49
55
import { verifyNFT } from " ./handlers/verifyNFT.ts" ;
50
56
@@ -59,6 +65,7 @@ console.log("NFT verified:", verificationResult);
59
65
-- -
60
66
61
67
### Example Workflow
68
+
62
69
The plugin provides a streamlined process for generating and verifying NFT collections :
63
70
64
71
` ` ` typescript
@@ -115,6 +122,7 @@ SOLANA_ADMIN_PUBLIC_KEY Admin public key for Solana operations
115
122
SOLANA_ADMIN_PRIVATE_KEY Admin private key for Solana operations
116
123
```
117
124
#### Example Prompts
125
+
118
126
Here are some examples of user prompts to trigger NFT collection generation:
119
127
120
128
"Generate a collection named MyCollection."
@@ -124,6 +132,7 @@ Here are some examples of user prompts to trigger NFT collection generation:
124
132
125
133
126
134
#### Local Testing with TEE Simulator
135
+
127
136
To test locally using a Trusted Execution Environment (TEE) simulator, follow these steps:
128
137
129
138
Pull the simulator Docker image:
@@ -142,13 +151,16 @@ DSTACK_SIMULATOR_ENDPOINT="http://localhost:8090"
142
151
```
143
152
144
153
#### Dependencies
154
+
145
155
This plugin relies on the following services and libraries:
146
156
147
- [ @ai16z /plugin-node ]
148
- [ @ai16z /eliza ]
149
- [ @ai16z /plugin-image-generation ]
157
+ [ @elizaos /plugin-node ]
158
+ [ @elizaos /eliza ]
159
+ [ @elizaos /plugin-image-generation ]
150
160
[ @solana/web3 .js]
161
+
151
162
### Action Configuration
163
+
152
164
#### GENERATE_COLLECTION
153
165
The action for generating NFT collections is configured with the following parameters:
154
166
0 commit comments