Explorar o código

tony/added image and metadata generators

tonyboylehub hai 1 ano
pai
achega
f2c68d0a57

+ 2 - 2
markdoc/partials/token-standard-full.md

@@ -12,11 +12,11 @@
 
 
 ---
 ---
 
 
-- **symbol**
+<!-- - **symbol**
 - string
 - string
 - Symbol of the asset.
 - Symbol of the asset.
 
 
----
+--- -->
 
 
 - **description**
 - **description**
 - string
 - string

+ 19 - 5
src/pages/candy-machine-4/preparing-assets.md

@@ -6,16 +6,31 @@ description: How to prepare your files and assets for CMV4.
 
 
 ## Asset Files
 ## Asset Files
 
 
-Explain asset files and what we'll be achieving in this pages outcome.
+Create an Asset requires a a few different files that will need to be prepared in advance.
+
+- Artwork/Animation/Models/Audio
+- JSON Metadata files.
 
 
 ## Preparing Images
 ## Preparing Images
 
 
-Explain the preperation for images. Best resoluations/file sizes.
+While there are no inherant rules regarding images, it's in best practice to optimize you images to be as `web deliverable` as possible. You need to take into account that not all users may not have access to a super quick broadband connection. Users might be in remote areas where accesss to the internet is sparse so trying to get your user to view a 8mb image may impact their experiance with your project.
 
 
 ## Preparing JSON Metadata
 ## Preparing JSON Metadata
 
 
-Explain the JSON metadata file and give and example.
+Your json metadata files will be following the same Token Standard used by the other Metaplex standards of nfts, pNfts, and cNfts.
+
+{% partial file="token-standard-full.md" /%}
+
+## Image and Metadata Generators
 
 
+There are several automated scripts and websites where you can supply the generator with your art layers and some basic information about your project and it will generate x number of Asset Image and JSON Metadata combos based on your paramenters given.
+
+| Name                                                        | type   | Difficulty | Requirements | Free |
+| ----------------------------------------------------------- | ------ | ---------- | ------------ | ---- |
+| [nftchef](https://github.com/nftchef/art-engine)            | script | ⭐⭐⭐⭐   | JS knowledge | ✅   |
+| [hashlips](https://github.com/HashLips/hashlips_art_engine) | script | ⭐⭐⭐⭐   | JS knowledge | ✅   |
+| [Nft Art Generator](https://nft-generator.art/)             | web UI | ⭐⭐       |              |      |
+| [bueno](https://bueno.art/generator)                        | web UI | unknown    |              |      |
 
 
 ## Uploading Files
 ## Uploading Files
 
 
@@ -47,5 +62,4 @@ Explain the storage options available for the image and metadata files.
 
 
 ## Create Collection Asset
 ## Create Collection Asset
 
 
-
-Explain how to create the Collection Asset and it's role in the Candy Machine V4
+Explain how to create the Collection Asset and it's role in the Candy Machine V4

+ 67 - 6
src/pages/candy-machine-4/update.md

@@ -1,20 +1,50 @@
 ---
 ---
-title: Updating a CMV4
-metaTitle: Updating a CMV4
+title: Updating a Candy Machine
+metaTitle: Updating a Candy Machine
 description: Learn how to update your CMV4 and it's various settings.
 description: Learn how to update your CMV4 and it's various settings.
 ---
 ---
 
 
-## Args
+## Updating a CMV4
+
+### Args
 
 
 Available arguments that can be passed into the createCandyMachineV2 function.
 Available arguments that can be passed into the createCandyMachineV2 function.
 
 
-| name         | type   |
-| ------------ | ------ |
+| name         | type      |
+| ------------ | --------- |
 | candyMachine | publicKey |
 | candyMachine | publicKey |
-| data         | link   |
+| data         | link      |
 
 
 Some settings are unabled to be changed/updated once minting has started.
 Some settings are unabled to be changed/updated once minting has started.
 
 
+#### data
+
+| key                | value                      |
+| ------------------ | -------------------------- |
+| itemsAvailable     | number                     |
+| isMutable          | boolean                    |
+| configLineSettings | Option<ConfigLineSettings> |
+| hiddenSettings     | Option<HiddenSettings>     |
+
+{% dialect-switcher title="data object" %}
+{% dialect title="JavaScript" id="js" %}
+
+```ts
+data =  {
+    itemsAvailable: number | bigint;
+    isMutable: boolean;
+    configLineSettings: OptionOrNullable<ConfigLineSettingsArgs>;
+    hiddenSettings: OptionOrNullable<HiddenSettingsArgs>;
+}
+```
+
+{% /dialect %}
+{% /dialect-switcher %}
+
+##### itemsAvailable
+
+### Example
+
 {% dialect-switcher title="Create a Candy Machine with configLineSettings" %}
 {% dialect-switcher title="Create a Candy Machine with configLineSettings" %}
 {% dialect title="JavaScript" id="js" %}
 {% dialect title="JavaScript" id="js" %}
 
 
@@ -36,3 +66,34 @@ await updateCandyMachine(umi, {
 
 
 {% /dialect %}
 {% /dialect %}
 {% /dialect-switcher %}
 {% /dialect-switcher %}
+
+## Assigning a new Authority to the Candy Machine
+
+There maybe scenarios where you may wish to transfer the Candy Machine authority across to a new address. This can be achieved with the `setMintAuthority` function.
+
+export declare type SetMintAuthorityInstructionAccounts = {
+/** Candy Machine account. \*/
+candyMachine: PublicKey | Pda;
+/** Candy Machine authority _/
+authority?: Signer;
+/\*\* New candy machine authority _/
+mintAuthority: Signer;
+};
+
+{% dialect-switcher title="Create a Candy Machine with configLineSettings" %}
+{% dialect title="JavaScript" id="js" %}
+
+```ts
+import { setMintAuthority } from '@metaplex-foundation/mpl-core-candy-machine'
+
+const candyMachine = publicKey('11111111111111111111111111111111')
+const newAuthority = publicKey('22222222222222222222222222222222')
+
+await setMintAuthority(umi, {
+  candyMachine,
+  mintAuthority: newAuthority,
+}).sendAndConfirm(umi)
+```
+
+{% /dialect %}
+{% /dialect-switcher %}