Code Monkey home page Code Monkey logo

wax-developer's People

Contributors

3dkrender avatar abhi3700rapid avatar azientar avatar blocksbarcelona avatar cc32d9 avatar coachbjork avatar currentxchange avatar includenull avatar leonardofficial avatar matthewdarwin avatar michaeljyeates avatar mushini avatar nftstonkers avatar nkcss avatar phanhuy111 avatar pnx avatar rakeden avatar rossco99 avatar styphoiz avatar sukeshtedla avatar techmanwax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wax-developer's Issues

Dockerize Setup

Is your feature request related to a problem? Please describe.
to remove OS specific requirements, I'd like to add a dockerized version.

Describe the solution you'd like
Use docker to host the dev server, which will later enable us to have github actions for build-tests.

Describe alternatives you've considered
Remove necessity to run the dev-server, when editing and previewing can be achieved through gitpod or github code.

Additional context
none

Docs: General Stylings

Styling ToDo's

  • Searchbox
  • navigation top-right
  • sidebar items (margin/fonts/arrows)
  • language Switch
  • Content Components

Repo: Readme

The repository should have a brief README containing the most important information.
This can include:

  • Project Introduction
  • Contribution Guidelines
  • ...

Content: Persona Definition

Is your feature request related to a problem? Please describe.
Currently docs are wide-ranged and cover to many different categories in the navigation.
The structure can be improved and thus digestibility of information.

Describe the solution you'd like
Put roughly the docs shall be restructured to cover the 5 most common personas interacting with developer documentations:

  • Node Operation
  • API Service
  • Smart Contract Development
  • Client-Side Development
  • Creators and Creator Tools

Describe alternatives you've considered
tbd in this discussion: #88

Content: About WAX

Briefing for docs content about WAX

What is WAX?
This page aims to provide an overview and introduction to the WAX blockchain. It should cover the fundamental concepts of WAX, such as its purpose, key features, and its role within the broader blockchain ecosystem. The content should explain how WAX facilitates the creation, trading, and ownership of digital assets, including NFTs and collectibles. It should also touch upon the technical aspects of the WAX blockchain, such as its consensus mechanism and interoperability capabilities.

Why WAX?
This page should highlight the unique value proposition of WAX and the reasons why individuals or businesses should consider using the platform. The content should discuss the benefits of WAX, such as its user-friendly infrastructure, scalability, low transaction fees, and the large and active community it offers. It should also mention any specific use cases or success stories that demonstrate the advantages of leveraging WAX for digital asset creation, trading, and community engagement.

WAX Consensus
This page should focus on explaining the consensus mechanism employed by the WAX blockchain. It should delve into the details of how consensus is achieved, whether it's through a delegated proof-of-stake (DPoS) mechanism. The content should outline the benefits of the chosen consensus mechanism, such as scalability, security, and energy efficiency. It should also touch upon any specific features or enhancements implemented within the WAX consensus mechanism.

What is the WAXP token?
This page should provide an in-depth explanation of the WAXP token, which is the native cryptocurrency of the WAX blockchain. The content should cover the utility and functions of the WAXP token within the ecosystem, including its role in transaction fees, staking, voting, or governance activities. It should also mention any specific tokenomics or distribution mechanisms related to the WAXP token, along with potential benefits or incentives for token holders.

WAX Governance
OIG will write this

(WAX Interoperability)
This page should focus on the interoperability capabilities of the WAX blockchain. The content should explain how WAX can interact and integrate with other blockchains or external systems, enabling seamless data transfer, asset portability, or cross-chain functionality. It should highlight the benefits of interoperability, such as increased liquidity, expanded user base, and enhanced utility for digital assets created on WAX.

Wherever possible please expand on each topic, providing detailed explanations, examples, and relevant visuals to create a comprehensive and informative documentation site.

'RNG Basics" issues

In rng_basics.md they describe that you can use the transaction hash to generate a signing_value inside your contract.

The big issue is, this generates a 256-bit value, which isn't the last parameter that is passed to the function, when the function expects a 64-bit integer followed by the caller.

I figured I'd see if there was some magic I wasn't accounting for, but no, when you actually do this, it will take the bits after the first 64-bits at the caller value, resulting in a random caller and this failing the auth check in the orng.wax contract.

image

You could do something like this (I tested & verified it), but that would not guarantee 'no collissions' as advertised in the article.

uint64_t uint64_t_from_txhash(){
  auto size = transaction_size();
  char buf[size];
  auto read = read_transaction(buf, size);
  check(size == read, "read_transaction() has failed.");
  auto tx_signing_value = sha256(buf, size);
  auto tx_raw_signing_value = tx_signing_value.extract_as_byte_array().data();
  uint64_t result;
  memcpy(&result, &tx_raw_signing_value, sizeof(uint64_t));
  return result;
}

Also, minor note; if you introduce stuff that require imports, please add them to the article/have a lookup somewhere (sha256 requires an import of <eosio/crypto.hpp>

Migrate to Vuepress

Is your feature request related to a problem? Please describe.
While we see some limitations in terms of layouti, SEO and we hacked some elemental features, it could be time to move to something more customisable and maintainable

Describe the solution you'd like
An alternative solution is https://vuepress.vuejs.org/

Including a vast variety of plugins to elaborate features for the docs
Localisation: https://vuepress.vuejs.org/guide/i18n.html
Search: https://vuepress.vuejs.org/plugin/official/plugin-search.html#vuepress-plugin-search

CI building main

Is your feature request related to a problem? Please describe.
We want to make sure, that the site is being built by gh-pages

Describe the solution you'd like
Add CI through github actions. Require CI in PRs to be run before merging.

Describe alternatives you've considered
none.

Additional context

  • run with local config
  • build site with custom theme

Repo: Contributer Guide and Wiki

Is your feature request related to a problem? Please describe.
For the developer documentation relaunch we moved to a new static-site generator: vuepress.
The way we contribute to and modify the docs has changed only slightly

Describe the solution you'd like
Write a simple guide for people interested into contributing. This shall include:

  • Setting up local development instance for testing changes
  • Modify content on single pages through "EditLinks"
  • How to change sidebar navigation

Contribution Guidelines

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Wiki for editors

Is your feature request related to a problem? Please describe.
prepare a wiki for editors

Describe the solution you'd like
step-by-step guide.

fix broken links

Describe the bug
broken link on website

To Reproduce
Click any link on the website, it's mostly broken

Expected behavior
links should redirect to the correct page

Content: Add ChildToC to overviews

Add a Child-ToC component to overview pages, since those didn't have any text added yet.

The following ToC can be inserted into overviews:

<ChildTableOfContents :max="2" title="More inside this section" />

Fix broken links across docs

A few broken links appear when deep checking the site.

Error URL Anchor Text Linked From
Too many redirections https://www.hetzner.com/_ray/pow Hetzner [302 from https://www.hetzner.com/dedicated-rootserver] [302 from https://www.hetzner.com/_ray/pow] [302 from https://www.hetzner.com/_ray/pow] [302 from https://www.hetzner.com/_ray/pow] [302 from https://www.hetzner.com/_ray/pow] [302 from https://www.hetzner.com/_ray/pow] [302 from https://www.hetzner.com/_ray/pow] [302 from https://www.hetzner.com/_ray/pow] [302 from https://www.hetzner.com/_ray/pow] [302 from https://www.hetzner.com/_ray/pow] https://developer.wax.io/en/wax-infrastructure/api-archive-guide.html
404 Not Found https://developer.wax.io/en/getting-started/chains-json chains.json https://developer.wax.io/en/wax-bp/bp-json.html
404 Not Found https://developer.wax.io/en/waa_waxjs_qstart WAX Cloud Wallet Quickstart https://developer.wax.io/en/dapp-development/convert_eos.html
404 Not Found https://github.com/worldwide-asset-exchange/wax-blockchain/tree/develop/samples/mainnet Running a WAX node https://developer.wax.io/en/dapp-development/docker-setup/
404 Not Found https://github.com/worldwide-asset-exchange/wax-blockchain/tree/develop/scripts wax-blockchain/scripts https://developer.wax.io/en/dapp-development/wax-blockchain-setup/
403 Forbidden https://testnet.waxsweden.org/ https://testnet.waxsweden.org https://developer.wax.io/en/dapp-development/dapp_environments.html
-1 Invalid URL http://127.0.0.1:8888/ http://127.0.0.1:8888 https://developer.wax.io/en/dapp-development/dapp_environments.html
404 Not Found https://github.com/worldwide-asset-exchange/wax-blockchain/tree/develop/samples/eos-studio How to use EOS Studio with WAX https://developer.wax.io/en/dapp-development/dapp_environments.html
-1 Not found: The host name in the certificate is invalid or does not match https://www.dfuse.io/ dfuse https://developer.wax.io/en/dapp-development/dapp_environments.html
404 Not Found https://developer.wax.io/en/dapp_account Create Accounts https://developer.wax.io/en/dapp-development/smart-contract-quickstart/dapp_dev_deploy.html
403 Forbidden https://www.emc.com/collateral/white-papers/h11300-pkcs-1v2-2-rsa-cryptography-standard-wp.pdf RSA Cryptography Standard https://developer.wax.io/en/api-reference/cdt_api.html
404 Not Found https://eosio.github.io/eosio.cdt/1.6.0/group__types.html Types https://developer.wax.io/en/api-reference/cdt_api.html
-1 Not found: The server name or address could not be resolved https://en/dapp-development/wax-blockchain-setup/ WAX Blockchain Setup https://developer.wax.io/en/tools/blockchain_tools.html
404 Not Found https://developer.wax.io/en/deploy_source WAX-CDT Deploy https://developer.wax.io/en/tutorials/create-wax-rng-smart-contract/rng_deploy.html
-1 Not found: The host name in the certificate is invalid or does not match https://www.simpleassets.io/ Simple Assets https://developer.wax.io/en/tutorials/howto_simpleassets/
404 Not Found https://developer.wax.io/es/wax-cloud-wallet/ Wax Cloud Wallet https://developer.wax.io/index_es.html
404 Not Found https://developer.wax.io/es/wax-cloud-wallet/waxjs/ WaxJS https://developer.wax.io/index_es.html
404 Not Found https://developer.wax.io/img/wax_sticker.png img/src https://developer.wax.io/en/tutorials/howto_simpleassets/nft_use.html
404 Not Found https://developer.wax.io/de/dapp-development/ dApp-Entwicklung https://developer.wax.io/de/wax-cloud-wallet/waxjs/waxjs_qstart.html
404 Not Found https://developer.wax.io/de/dapp-development/wax-cdt/ WAX Contract Development Toolkit (WAX-CDT) https://developer.wax.io/de/api-reference/cdt_api.html
404 Not Found https://developer.wax.io/es/tutorials/blockchain_uninstall Desinstalar WAX https://developer.wax.io/es/dapp-development/wax-blockchain-setup/blockchain_install.html
404 Not Found https://developer.wax.io/es/troubleshooting/ Problemas frecuentes https://developer.wax.io/es/dapp-development/wax-blockchain-setup/blockchain_install.html
404 Not Found https://developer.wax.io/es/tools/blockchain_tools Herramientas de la blockchain https://developer.wax.io/es/dapp-development/wax-blockchain-setup/blockchain_install.html
404 Not Found https://developer.wax.io/es/tools/cdt_options opciones de WAX-CDT https://developer.wax.io/es/dapp-development/wax-cdt/cdt_cpp.html
404 Not Found https://developer.wax.io/es/tools/ricardian_contract contratos https://developer.wax.io/es/dapp-development/wax-cdt/cdt_cpp.html
404 Not Found https://developer.wax.io/es/tools/ricardian_clause cláusulas ricardianas https://developer.wax.io/es/dapp-development/wax-cdt/cdt_cpp.html
404 Not Found https://developer.wax.io/es/tutorials/cdt_uninstall desinstalar WAX-CDT https://developer.wax.io/es/dapp-development/wax-cdt/cdt_install.html
404 Not Found https://developer.wax.io/es/waa_waxjs_qstart Inicio rápido de WAX Cloud Wallet https://developer.wax.io/es/dapp-development/convert_eos.html
404 Not Found https://developer.wax.io/es/dapp_account Crear una cuenta de WAX https://developer.wax.io/es/dapp-development/smart-contract-quickstart/dapp_dev_deploy.html
404 Not Found https://developer.wax.io/es/tools/os Supported Operating Systems https://developer.wax.io/es/dapp-development/wax-blockchain-setup/
404 Not Found https://developer.wax.io/docs\dapp-development\wax-blockchain-setup Configuración de la Blockchain de WAX https://developer.wax.io/es/dapp-development/docker-setup/docker_qstart_manage.html
404 Not Found https://developer.wax.io/assets/img/docker_root.jpg img/src https://developer.wax.io/es/dapp-development/docker-setup/docker_qstart_use.html
404 Not Found https://developer.wax.io/assets/img/docker_results.jpg img/src https://developer.wax.io/es/dapp-development/docker-setup/docker_qstart_use.html

Fix: Post-Launch

Some immediate changes are needed here:

Presentation of Docs

Is your feature request related to a problem? Please describe.
Some small improvements can be made to get more out of the docs.

Describe the solution you'd like

Some suggestions for improvements

  • Navigation anchored on the left, like it is now on screens < 1080px
  • changes to fonts:
    • mb after headlines increased
    • headlines shall be bold
    • paragraph line-height -15%
    • new monospaced font for codeblocks
    • anchor color darker

New Content Elements

Linking to other Pages
Screenshot 2023-02-02 at 15 39 52

Inside Guides Next/Prev Article, at the end of pages
Screenshot 2023-02-02 at 15 41 29

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Content: Request Client Development Guides

Issue/Problem

Recommendations and Example of various Clients and their respective implementation of Wallet Handling:
It's unclear to outline a recommended way of building your client side App, when all of the tooling is scattered around and sometimes lacks proper documentation.
A common place to start is usually UAL

Possible Solution

Client Framework

  • React.js - SPA
  • Vue.js - SPA
  • Next.js - SSR
  • Nuxt.js - SSR

Main Scope is to focus the tooling on a broad developer Audience

Code Bundlers
Commonly used bundlers, such as:

  • Webpack
  • Vite
  • rollup/alternatives

There's hurdles now, which we can elaborate on while providing examples. Especially some polyfills needed for Buffer and global namespace, which @includenull mention earlier this week on TG:

Lack of pollyfills and bad documentation don't make it easy to use a lot of these "web3" packages with newer versions of React. So I hope these will give people a jump start.

Wallet & Wallet Adapters

  • ual-wax
  • ual-anchor
  • ual-wombat
  • ual-ledger
  • others

A Simple example in different implementations is a must and shall cover the following features:

  • Authenticate a wallet
  • Display Basic Wallet info, e.g. balance, stake, ...
  • Simple Form to transact 0.0001 U to someone
  • Query custom token balance
  • Authentication Session & clearing

Additional context

https://github.com/EOSIO/ual-eosio-reference-authenticator
https://github.com/eosdac/ual-wax
https://github.com/greymass/ual-anchor
https://github.com/pinknetworkx/ual-wombat
https://github.com/EOSIO/ual-ledger
... starteos & scatter

https://github.com/EOSIO/ual-reactjs-renderer
https://github.com/EOSIO/ual-plainjs-renderer

Examples:
https://github.com/includenull/wax-ual-demo-cra
https://github.com/includenull/wax-ual-demo-vite

Layout and Styling Tasks

Is your feature request related to a problem? Please describe.
Some Layout and Styling needs to be applied. The requirements are in a shared figma design.
For ease of coordination I am listing the most apparent styling issues here.

General Styling

  • Webfont (H1-H6 + Content)
  • font-sizes and font-colors
  • proper color-palette changes to theme

Components

  • Navbar-Component: Language Switch
  • Navbar-Component: Dark-Mode Toggle
  • Navbar-Component: Brand above (remove from Navbar)
  • Hero-Banner (Background-Image + Headline + Subtitle)

Layouts

  • Layout with Sidebar always visible
  • Header-Layout with only right slot, inside page content
  • Page-Layout: TOC below Title with scroll-anchors to content Headlines
  • Layout with Hero-Banner (Content for Hero-Banner from frontmatter)

Additional context

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.