by Oleh Mykhaylovych | Apr 15, 2024 | Gaming, Technical, WAX
In this article, we will analyze the creation of leaderboards and consider the implementation of a leaderboard for user resources and their overall mining rate. New tables struct [[eosio::table]] lboard_j { name account; uint64_t points; uint64_t primary_key()...
by Oleh Mykhaylovych | Apr 15, 2024 | Gaming, Technical, WAX
In addition to the previous articles integrating it into a ReactJS interface, and reading data from a WAX smart contract table, we will also dive deeper into swaps. We will look at the use of WAX tokens or NFTs in games and how user/player governance works. Token...
by Oleh Mykhaylovych | Apr 15, 2024 | Gaming, Technical, WAX
In this article, we will develop a voting system that will allow users to provide developers with suggestions or change the value of game changes. Creating configs table struct [[eosio::table]] mconfig_j { std::string variable_name; std::string variable_type;...
by Oleh Mykhaylovych | Apr 15, 2024 | Gaming, Technical, WAX
To delve into token staking and its role in governance, we begin by setting up a new table to manage the staking process. This table will track the staked tokens and their corresponding voting rights, crucial for enabling players to participate in key decision-making...
by Oleh Mykhaylovych | Apr 15, 2024 | Gaming, Technical, WAX
In this article, we’re building on previous discussions about upgrading items by introducing a method to exchange resources for tokens. We’ll add a new table to track resources, where each entry includes a `key_id` (numerical ID for the resource),...