Improvements to the documentation and Quickstart flows #668
Labels
Type: Documentation
Improvements or additions to documentation
Type: Enhancement
New feature or request
Prerequisites section
We should add a list of prerequisites e.g. node.js, a Unix based operating system (Mac or Linux) etc
Quickstart Section
YOUR_INFURA_PROJECT_ID
,metadataCacheUri
, andproviderUri
Simple flow
It would be good to provide code examples that work as-is so that the user can just copy and paste them to get started, without having to edit them. This helps make the quick start even quicker and is very useful for beginners who are not familiar with the tech.
We should also add the terminal commands that are required for making new files, installing dependencies, compiling typescript, and running the files.
There are various issues with the code snippets that we should improve to make it easier for beginners:
Snippet 1:
await
is not inside anasync
functionocean
is not definedDataTokens
is not definedcontracts
is not definedfactoryABI
is not defineddatatokensABI
is not definedweb3
is not definedSnippet 2:
Each of the environmental variables should be explained so that the user knows what values to enter where to get them from.
Snippet 4:
await
is outside anasync
functionSnippet 5:
getInstance()
expects 1 argument but there are 0.download()
Expected 5 arguments, but got 4.Marketplace flow:
Snippet 1:
await
is outside anasync
functionLogLevel
is not definedSnippet 2:
service1
is not definedSnippet 3:
tokenAddress
is not definedSnippet 4:
await
is outside anasync
functionSnippet 5:
price
is not definedassert
has not been importedThe text was updated successfully, but these errors were encountered: