Using Sugar To Create Candy Machine for NFT Launch - solana

I have been going through the Sugar CLI for the first time and was hoping to clarify a couple of things to make sure I am creating the Candy Machine correctly. It's clear from the documentation (https://docs.metaplex.com/developer-tools/sugar/configuration) that the creators wallet should now be added to the Candy Machine config file.
But where should sellerFeeBasisPoints and collection properies go? Does it hurt anything if they are present on both the config file and each metadata file?
For the collection property - is this taken care of with the new collection.json and collection.png? Does this need to be present at all on either the config or the metadata file?
Appreciate any clarifications!

sellerFeeBasisPoints goes into the configuration file, like creators.
It doesnt hurt anyone if they are present on both metadata and config, but the one inside the metadata wont matter at all because its deprecated, the important is the one inside the config file.
collections is managed with collection.json and collection.png, you dont need to set anything extra on metadata or config file, you just need the collection metadata and collection image, so sugar will deploy this metadata into the selected storage, then will create and mint ur collection NFT and finally will attach that collection NFT publicKey to all NFTs that will be minted from the created candy machine. If you dont provide the collection.json and collection.png, then you will have to create and mint the collection NFT by yourself and then manually add that collection to each minted NFT that doesnt have a collection attached.

Related

Some NFT images minted from Candy Machine V2 are not displayed

I created Candy Machine and I noticed that some NFT images are not displayed neither on wallet or solscan. Metadata and images were uploaded and pinned on Pinata using Candy Machine upload command which finished successfully.
Here is an example of broken NFT.The metadata URI is pointed to: and image is pointing to. I looked at metadata several times and could not find what is the issue and why is this happening to some of the NFTs (here is the example of valid NFT that does not have this problem).
Questions:
What is the problem with metadata which is causing image not to be displayed?
What is the best way to fix this? Metadata are mutable and I am planing to use metaboss to update URI of metadata file. Is this correct way of fixing this problem?
If you look at the URI metadata on solscan here
https://solscan.io/token/4ToXb3aD5YLpXqyZhcdp5ynpbXXFFjKjsaw1x94CTd7A#metadata
and swap to the URI version of the metadata for some reason it's returning an object keypair value out of every single character in the JSON for some reason, extremely weird. I'd highly recommended reuploading this JSON metadata file and then updating the metadata URI in the NFT to make the changes.
Metaboss is a great tool as you have researched that can do this for you.
Upload new Metadata json to ipfs or arweave.
Use Metaboss to udpate the NFT's metadata URI.
Hopefully this fixes your issue.
While not a conclusive answer as to "why" this happened, I don't really know the why. This is my first time in all the NFT's that I've seen that have behaved this way upon an upload and displaying the metadata.
If that doesn't fix your issue please stop by the Metaplex Discord server and chat with us there. :)
Edit: After further inspection it turns out your JSON file is of an invalid structure for this particular NFT so will definately need replacing.
Tony Boyle has a great point with updating your json.
Your problem gets visible when you run the json through a JSON validator.
It will show that you have too many } in there. Therefore parsing the JSON fails in solscan, phantom etc.
What you have to do is
Modify the metadata to be a valid JSON file
upload it again
update the NFT uri e.g. with metaboss (if you need to update multiple NFTs) or if its just one / a few https://sol-tools.tonyboyle.io/update-nft

How to extend Solana spl_token program to add more functionality?

SPL_Token program contains lots of features, but I want to add more additional checks as per customer requirement. So I want to create custom spl_token program by extending original spl_token code
e.g. Lets say, I want to limit maximum token that can be transferred to any account in single transaction.
Also I want program_id of my custom program, to be used in assigned_program_id(as shown in solana explorer) of any account which is created.
Any help is appreciated.
If you want your custom program id to be used, you simply need to fork the SPL token code to add your changes.
The code for the base token program exists at https://github.com/solana-labs/solana-program-library/tree/master/token/program, and if you're making small changes, it'll be easiest to change and deploy that.
If the changes are more involved, you can add a new extension to the token-2022 program, found at https://github.com/solana-labs/solana-program-library/tree/master/token/program-2022
To add a new extension, you need to add the state and instructions required for the extension, and whether it exists on a mint or account. Here is a sample pull request to add an extension allowing for mints to be closed: https://github.com/solana-labs/solana-program-library/pull/2754
Note that wallets and dapps will not be compatible with another program id, and it will take some time before they can accept more than one token program id.

Adding CodeableConcept element to FHIR resource 'extension'

I am new to FHIR and HL7.
I need to add a new element to ChargeItemDefinition resource and this element data type is CodeableConcept.
I think we need to create a new StructureDefinition with a CodeableConcept field and then register it on the server and make an extension in ChargeItemDefinition.
I tried a tool like Forge to make a custom profile, but creating a new profile or extension is disabled.
But I can't make it after days of trying, does anyone have an example of this or is anyone able to help me?
Forge should perfectly allow you to create a profile based on ChargeItem, if you want to add extensions to that profile. With Forge for FHIR STU3 or R4 (depending on what version you want to use): Open a project folder > New > New Profile > Select Charge Item.
However, without knowing your use case it is hard to judge whether this is what you need. If you share a good description of the use case on chat.fhir.org in the 'implementers' channel people can generally quickly advise you on the best way.

How do I run/call/kickoff an external program (custom code) whenever certain attributes or objects are added or modified in OpenDJ’s database?

How do I run/call/kickoff an external program (custom code) whenever certain attributes or objects are added or modified in OpenDJ’s database?
Here is my real world need. (Feel free to change my thought direction entirely).
Whenever a new email address gets created or changed in the OpenDJ database I want to initiate some java code that does some email verification/validation (send the “click here” link with a token to prove the user owns the email they just signed up with).
I know, I could use OpenIDM/AM to accomplish this but to take this a step further I need to validate other information and other credentials (custom) which users supply that are not supported by OpenIDM/AM suites.
Initiating/calling custom code upon ADD or MODIFY of specific objects and attributes is what I want and would like to know how to accomplish this. Preferably without having to scrape logs.
Please Help.
Chad
OpenDJ has a plugin interface where you can plug Java calls on Add or Modify. A sample of this kind of plugin is the attribute uniqueness which verifies that some attributes have a unique value in the directory.
The plugin interface javadoc can be found here : http://docs.forgerock.org/en/opendj/2.6.0/javadoc/org/opends/server/api/plugin/DirectoryServerPlugin.html

Parse.com: How do I create a clone of one App

We are collaborators on a Parse.com App and we need to recreate the App in another account as we are ending our relationship with the original App creators.
We have copied all the classes and exported all the data from the previous App but are getting errors with the JavaSript API (Access Denied/403 issue). Has anyone else experienced this? What did you do to overcome the problem?
Thanks!
The Parse.com dashboard has export to JSON which you can then import from the data browser on your second app.
Object IDs will not be preserved.
One big thing to be aware of:
Any referenced PFFiles are NOT exported, so all the references in your rows are not valid, as the new database is not part of the ACL of the old PFFiles.
Either export+import the PFFiles manually, or change the ACLs, if that is indeed possible.

Resources