Skip to content

Using IPFS

Caleb Hataj edited this page Mar 31, 2023 · 3 revisions

You need at least three files to upload to the marketplace for each design.

  • PNG/JPG image - acts as the thumbnail
  • GLB file - A 3D viewer that rotates and gives greater detail of the design
  • STL file - one of more files that are the files a 3D printer operator needs to print the design

PNG/JPG File

The PNG/JPG should be close to 500px X 500px in size. you can use any screen copying or built in image generator.

GLB File

The GLB file can be directly generated from most organic modeling or CAD software.
If generating from organic modeling software, make sure your vector resolution is as low as possible while still maintaining detail. This keeps the file size small for faster uploading and processing time on the website.
The website includes a link to a GLB generator for STL files.
image

STL File

STL files can be exported from most CAD and organic modelling software.

Both of these programs have some of the largest online communities with countless tutorials and video's to get started learning.

Uploading files to IPFS

Adosia aims to be as decentralized as possible. For this reason files linked to the marketplace are uploaded to IPFS (Inter Planetary File system) for storage. There are a number of ways to do this, and for a hobbyist, there are plenty of free options.
For this tutorial we will be using Pinata, a popular IPFS Gateway and pinning platform that makes it simple for anyone to upload their own files. \

Create a Pinata Account

Head to Pinata and click "Start Building in the top right to create a free account.
image

Upload files

Once logged in Click on "Add Files" in the top right to start the upload process.
image
You can upload files single at a time, or as a folder. For this tutorial we will upload all the files needed for the marketplace individually.

Select the File you intend to upload.
image
Wait for the file to upload
image
Note: IPFS uploads can be slow. Best to be patient.

Once uploading is complete we can see the file in our list of uploaded files. Note the "Content Identifier (CID) in red.
This is the string of text we need to input into the Adosia Market upload form for each file detailed in the next section.
image
At this point the upload to IPFS is complete.

Start Selling

Click on "Start Selling" on the website header
image

Select the desired category of the object you are uploading
image

Enter a name for your design
image

Enter the IPFS CID's for your design files generated in the previous section
NOTE: the quantity information you need to enter in the STL form input.
Read all directions carefully
image
Each file starts with "ipfs://" followed by the CID generated by uploading to IPFS in the previous section.

Select if the design is free or a purchased design
image

If a paid design is selected, please enter the price you as the designer want, in ADA, to receive if your design gets ordered to be printed.
image

Select "Upload New Design" to submit your form.
NOTE: This is an area that needs thorough testing. When files are uploaded to IPFS, they have to "populate" or spread out on the network.
if you get errors at while submitting saying "The IPFS file is invalid", you may have to wait up to a few hours and try again. We're not sure on the exact amount of time it takes for files to spread across the IPFS network for adosia to see them as valid.
image
This is an example of the error you might get.