|
|
News
Dev Log: Version v0.9 - 10 October 2024
On 25. Sep 2024, 01:56:31 by Rux
Enhanced Trading Functionality
Integration of RXCG Token Transfers:
Implemented a new function sendRXCG to handle the transfer of RXCG tokens from the player's wallet to the MoonsBank smart contract.
The function includes real-time transaction status updates, providing feedback to the user at each step of the process.
Added a confirmation step to ensure transactions are verified on the blockchain before updating the user interface.
Backend Synchronization:
Integrated the updateBackend functionality directly within the sendRXCG function to streamline the process.
This ensures that the user's balance is updated on the backend immediately after a successful transaction, reducing the risk of discrepancies between the on-chain and in-game balances.
User Interface Enhancements:
Updated the trading interface to display real-time transaction statuses, including initialization, transaction submission, and confirmation.
Improved the visibility of the "Start Trade" and "Finish Trade" buttons, making the trading process more intuitive for users.
Bug Fixes and Code Refinements
Charge Variable Definition:
Fixed an issue where the charge variable was not defined, causing errors during the trading process.
Ensured that the charge variable is correctly initialized and accessible throughout the trading script.
Error Handling Improvements:
Enhanced error handling within the sendRXCG function to provide more detailed feedback to users in case of transaction failures.
Added logging for backend responses to facilitate easier debugging and monitoring of the trading process.
Backend and Smart Contract Updates
Smart Contract ABI Integration:
Consolidated the smart contract ABI definitions to ensure they are accessible across all relevant functions.
This change reduces redundancy and potential errors related to ABI definitions, streamlining the development process.
Transaction Confirmation Logic:
Improved the logic for waiting for transaction confirmations, ensuring that the user interface accurately reflects the transaction status.
This includes a loop that checks for transaction receipts and updates the user interface accordingly.
Upcoming Features:
Mission Rewards Integration:
We are working on integrating mission rewards with automatic token distribution, allowing players to earn RXCG tokens through gameplay activities.
This feature will leverage smart contract interactions to automate the reward process, enhancing the overall gaming experience.
Enhanced User Experience:
Future updates will focus on further improving the user interface and experience, making blockchain interactions seamless and intuitive for all players.
This includes additional real-time feedback mechanisms and more detailed transaction histories.
This update continues our commitment to providing a fully integrated blockchain gaming experience, with significant improvements to both the frontend and backend systems. Stay tuned for more exciting features and enhancements in the coming updates!
Dev Log: Version v0.8 - 24 September 2024
On 18. Sep 2024, 00:05:56 by Rux
Web3 Wallet Integration
A major update was made to the wallet integration system. Players can now seamlessly connect their Metamask wallet directly from the game interface. Upon connection, the wallet address is stored, and players can view both their in-game and wallet balances of RXCG tokens.
The “Connect Wallet” button was automatically hidden after the wallet is connected, enhancing the user experience by removing unnecessary steps.
Wallet and In-Game Balance Display
Players can now clearly see both their wallet and in-game balances, expressed in RXCG tokens, with real-time conversion to USD. The balances are displayed using commas for better readability (e.g., 996,000 RXCG).
Real-time RXCG price data is pulled from CoinMarketCap via a server-side PHP script (updatePriceRXCGCMC.php), ensuring the USD values are always up-to-date.
Improved User Experience for Token Interactions
Updated the user interface to show the conversion of RXCG tokens into USD for both wallet and in-game balances. The new display provides a clearer understanding of token value in the game ecosystem.
Balances update dynamically upon connecting the wallet, and users can track their funds both on-chain (wallet) and within the game environment (MoonsBank smart contract).
Backend Improvements
The previous run_dark_matter.php file has been replaced with a more efficient updatePriceRXCGCMC.php file, handling the backend API request to fetch RXCG token price in USD.
Adjustments were made to the Web3 connection logic, ensuring smoother interaction between the game’s frontend and blockchain network. This ensures that the balance and transaction details update reliably in both wallet and in-game sections.
CSS Updates
Minor UI adjustments were implemented, including the automatic hiding of the “Connect Wallet” button post-connection and improvements in balance display for a cleaner, more polished look.
Upcoming Features:
We plan to integrate mission rewards with automatic token distribution and streamline the process for earning RXCG tokens through gameplay activities. This will tie into the next phase of development, focusing on smart contract interactions for automated gameplay rewards.
This update marks another step toward a fully integrated blockchain gaming experience, with both UX/UI improvements and backend upgrades.
Dev Log: Version v0.7 - 19 September 2024
On 16. Sep 2024, 14:35:27 by Rux
1. Transition to tRXCG BEP20 Token on Testnet
We have successfully transitioned from using native testnet BNB to the tRXCG BEP20 token for all in-game blockchain transactions. This change is part of our ongoing effort to align the game’s economy with the official RXCG token structure that will be used in the live game.
tRXCG is now fully integrated into the MoonsBank smart contract for in-game deposits, withdrawals, and player-to-player transfers.
2. Faucet Contract for Beta Testers
A Faucet Contract has been deployed on the testnet, allowing beta testers to claim 1000 tRXCG tokens per request. This will help users easily acquire test tokens for evaluating different features of the game without needing real funds.
The faucet can be accessed from the game interface via a new “Faucet” button, which will send 1000 tRXCG directly to the player's account on the blockchain. This allows for smoother testing of in-game transactions and mechanics.
3. Updated Game Integration
The game now fully supports tRXCG tokens for all transactions, and the switch from BNB to tRXCG has been implemented both in the frontend and backend systems. The faucet is connected directly to the MoonsBank smart contract, ensuring seamless token transfers for testing purposes.
Testers are encouraged to use the faucet to claim tokens and explore the features of the game, such as upgrading buildings, transferring tokens, and engaging in gameplay using tRXCG.
4. Improvements and Future Plans
Balance Visibility: Players can now see both Wallet and In-Game balances, allowing for clearer tracking of tRXCG tokens during testing.
Future improvements will focus on automating token rewards from missions and expanding the smart contract features for more dynamic in-game interactions.
This update marks an important milestone as we move closer to live deployment, with a robust system for token transactions now in place. We encourage all testers to provide feedback on the new features.
Dev Log: Version v0.6 - 14 September 2024
On 16. Sep 2024, 14:34:54 by Rux
MoonsBank Smart Contract v5 Deployment
The latest version of the MoonsBank smart contract (v5) has been deployed, featuring key enhancements to improve user experience and ensure better functionality in managing RXCG tokens.
Key Features Added
MetaMask Wallet Detection: Fixed wallet detection issue. Users are now properly prompted to connect their MetaMask wallet or install it if not detected.
Error Handling Enhancements: Improved the handling of Internal JSON-RPC errors by updating the ABI and contract initialization processes. This resolves issues where users were unable to connect their wallets or execute functions.
ABI Adjustments: The contract ABI was restructured to optimize function calls and ensure smoother interactions between the game and blockchain.
Contract and ABI Initialization Fix
Fixed a critical bug where the initContract function was returning an error due to the detection process of the Ethereum wallet. The system now properly initializes Web3 and contracts only after confirming MetaMask is installed and accessible.
New Token Approval Workflow
Implemented a new token approval process within the game. This ensures that tokens are approved for spending before deposits, preventing issues with insufficient approvals during transactions.
Improved Frontend Wallet Integration
Adjusted the wallet connection flow to better handle MetaMask’s state. Users are automatically prompted to connect their wallet if a previous session was detected.
Updated the deposit and withdrawal sections to become visible only after a successful wallet connection, streamlining the user experience.
Bug Fixes
Resolved MetaMask Wallet Detection Issue: The game now properly detects if MetaMask is installed and provides a more detailed error message if it isn't.
Fixed Wallet Setup Errors: Corrected an issue that caused wallet setup to fail, leading to a smoother connection experience.
Improved Token Approval Workflow: Fixed issues with approving tokens for the game, ensuring the process works without errors.
Testing and Deployment
Full testing of the new v5 contract was conducted to verify functionality. Wallet connection, token approval, deposit, and withdrawal functions all passed successfully, confirming the system works as intended.
MoonsBank v5 has been successfully deployed and is now the main contract handling RXCG token operations within the game. All frontend and backend updates are live, enhancing the blockchain experience for players.
DevLog: New Smart Contract MoonsBank v3 - 14 September 2024
On 14. Sep 2024, 21:58:45 by Rux
1. MoonsBank Smart Contract - v3 Deployment:
A new version of the MoonsBank smart contract (v3) has been successfully deployed. This version includes optimized functionality for RXCG token management, including deposits, withdrawals, token distribution, and transfers between users.
2. Key Features Added:
Deposit RXCG: Players can deposit RXCG tokens directly into their game account using the depositRXCG() function.
Withdraw RXCG: Players can withdraw their RXCG balance using the withdrawRXCG() function.
Distribute RXCG: The owner can distribute RXCG tokens to specific players using distributeRXCG(address player, uint256 amount) function.
Transfer RXCG: Players can transfer RXCG to each other using transferRXCG(address to, uint256 amount).
View Balances: Players and the admin can view individual player balances with the balanceOf(address player) function, and the Moons Bank's balance via getMoonsBankBalance().
3. Proxy Contract Integration:
The proxy contract allows for seamless upgrades without losing player data or balance records. The current contract functions through the proxy located at 0x90cdec7ac6fdb54db652dbf66e9bbcafb788cb71, which forwards all function calls to the latest version of the MoonsBank contract.
4. Updated Game Integration:
The game now connects to the new proxy contract, ensuring smooth deposit and withdrawal transactions using the new v3 contract.
Address Updates in Code: All ABI references and contract addresses have been updated in the frontend and backend code to reflect the proxy address. The correct ABI for v3 MoonsBank is used to ensure proper communication between the game and the blockchain.
5. Frontend Adjustments:
Wallet Connection: The game’s connectWallet function now initializes via the proxy address, ensuring the wallet is interacting with the most recent version of the contract.
Balance Handling: Corrected balance fetch from the contract using balanceOf and updated the user interface to reflect real-time balances on both the contract and user wallet.
6. Bug Fixes:
Internal JSON-RPC Error Fixed: Resolved the issue that was causing RPC errors during wallet connection. This was due to using an outdated ABI and incorrect contract references.
Smart Contract Proxy Communication: Corrected issues with communication between the frontend and smart contract proxy. Players can now deposit, withdraw, and view balances correctly via the new contract.
7. Testing and Deployment:
Completed testing of all critical functions (deposit, withdraw, transfer) to ensure that the proxy correctly interacts with the new v3 contract.
Dev Log: Version v0.4 - 14 September 2024
On 14. Sep 2024, 14:29:47 by Rux
New Features and Changes:
Wallet Connection Enhancements:
The Metamask wallet will now stay connected even when users navigate to other pages or refresh the overview. The wallet address is stored in localStorage and automatically restored upon revisiting the game.
Added detailed console logs in the wallet connection process to assist in tracking user connections and identifying any issues.
Improved User Interface for RXCG Transactions:
Enhanced the design and functionality of the deposit and withdrawal sections to ensure smoother interaction with the blockchain.
The "Deposit" and "Withdraw" buttons are now only displayed once the wallet is successfully connected, minimizing confusion for users.
Blockchain Interactions Optimized:
Smart contract balance retrieval now happens automatically once the wallet is connected, ensuring the player can instantly see both their in-game and wallet balances.
Improved error handling and user feedback when connecting to the blockchain or during transactions, ensuring users are informed of any issues.
Bug Fixes and Optimizations:
Fixed: Wallet connection status now properly reflects the connected state across different pages and refreshes.
Fixed: Balances are accurately displayed after deposit or withdrawal actions without needing to refresh the page.
Optimization: Reduced the load time for wallet interactions and improved feedback for pending blockchain confirmations.
Dev Log: Version v0.3 - 9 September 20234
On 09. Sep 2024, 01:48:38 by Rux
⚙️ New Features and Changes:
Building Tabs Implementation
Tabs in the Buildings Section: To streamline the building management process, we’ve added tabs to separate Mines and Energy buildings. This makes it easier to focus on specific building types.
Mines Tab includes Metal Mine, Crystal Mine, and Deuterium Refinery, each with a detailed "Big View" where players can manage building upgrades.
Energy Tab includes energy-focused buildings such as the Solar Plant, Fusion Reactor, and Energy Storage.
The system now remembers which tab was last opened, so you won't lose your place after building or upgrading!
Bug Fixes and Optimizations:
Fixed: Switching between Mines and Energy tabs no longer causes overlap issues.
Fixed: Tooltip display and costs on the building cards are now fully functional.
Optimization: Improved the user interface flow when performing building actions—fewer unnecessary page reloads, with players staying on the relevant tab after an action.
Moons - Mobile ready
On 02. Sep 2024, 17:37:28 by Rux
We recommend using the Brave browser because it comes with its own integrated web3 wallet, similar to MetaMask but even better in our opinion since it's built directly into the browser. With MetaMask, you need to open a separate browser, which can be a bit tedious.
Steps to Use Moons via Brave Browser:
Download Brave Browser:
After downloading and installing Brave, open the browser and go to the Wallet section.
Create or Import a Wallet:
You can either create a new wallet directly in the Brave browser or import your private key from MetaMask if you already have one.
Set Up Binance Smart Chain (BSC) Testnet:
The game is currently on the Binance Smart Chain Testnet. To add the BSC Testnet to your wallet, go to testnet.bscscan.com, scroll to the bottom of the page, and click on Add BSC Network to MetaMask. Brave will prompt you to switch to the BSC Testnet, just accept the prompt.
Get Test BNB for Transactions:
https://www.bnbchain.org/en/testnet-faucet
Open the BSC Testnet Faucet, enter your wallet address, and you'll receive 0.3 BNB every day. This is enough to test deposits and withdrawals with the smart contract.
Enjoy and Have Fun!
Feel free to explore and test the Moons platform with your mobile setup.
Rux, RXC Games
Dev Log: Version v0.2 - 2nd September 2024
On 02. Sep 2024, 12:58:35 by Rux
Summary of Work:
1. Web3 Ecosystem Integration:
Register and Wallet Binding:
Successfully integrated wallet binding functionality during user registration.
Users can now register their wallet addresses directly during the sign-up process, streamlining their interaction with the Web3 ecosystem.
Ensured secure storage and retrieval of wallet addresses in the database.
Wallet Address Handling:
Improved backend handling of wallet addresses, ensuring they are correctly linked to user accounts during transactions.
Added error handling and validation to confirm the authenticity of Ethereum addresses during registration and deposit processes.
2. Deposit and Withdraw Functions:
Deposit Implementation:
Enhanced the addRXCG function to allow seamless deposit of RXCG tokens via the smart contract.
Transactions are now confirmed on-chain before updating user balances in the backend.
Withdraw Implementation:
Implemented withdrawFunds functionality, allowing users to withdraw RXCG tokens from their account to their wallet.
Improved the feedback loop, ensuring users receive real-time updates during the withdrawal process.
Smart Contract Interaction:
Optimized the interaction between the front-end and smart contract, reducing transaction times and improving reliability.
Debugged and fixed issues related to gas estimation and transaction failures on the blockchain.
3. Backend and Database Enhancements:
Session Management:
Overhauled session management, ensuring consistent and secure handling of user sessions during Web3 interactions.
Fixed bugs related to session timeouts and user ID mismatches that affected wallet operations.
Transaction Logging and Debugging:
Enhanced logging mechanisms to provide detailed transaction insights, aiding in quick debugging and ensuring data integrity.
Implemented a robust error-handling system that gracefully manages transaction failures, with clear messaging to users.
4. Frontend Improvements:
User Interface Updates:
Improved the user interface to provide clearer instructions and feedback during wallet connections, deposits, and withdrawals.
Added a status message display to inform users about the progress and success of their transactions in real-time.
User Experience Testing:
Conducted thorough UX testing to identify and address pain points in the deposit and withdrawal processes.
Streamlined the steps required to connect wallets and perform transactions, making the process more intuitive.
Next Steps:
Security Audits:
Perform a comprehensive security audit on the smart contract interactions and wallet binding processes.
Implement additional security measures to protect against potential vulnerabilities in the Web3 integration.
Feature Expansion:
Begin working on additional smart contract features, such as staking and rewards distribution.
Explore multi-chain support to allow interactions with other blockchains beyond Binance Smart Chain.
Further Testing:
Continue testing the Web3 features under different network conditions and user scenarios.
Gather feedback from early beta users to refine the system and address any remaining issues before the next release.
Dev Log: Version v0.1 - 30th August 2024
On 02. Sep 2024, 12:58:57 by Rux
Dev Log: Version v0.1 - 30th August 2024
Summary of Work:
1. Wallet Integration:
Implemented the connectWallet function to enable users to connect their Metamask wallet with the application.
The application now successfully retrieves the connected wallet address and attempts to store it in the database.
Identified and resolved several issues related to session handling and user ID retrieval during wallet connection.
Refined error handling and logging to provide better feedback during the wallet connection process.
2. Deposit and Withdraw Functionality:
Ensured that the existing addRXCG and withdrawFunds functions work seamlessly with the backend to update user balances.
Updated the updateRXCG.php script to handle both wallet address registration and balance updates more effectively.
Fixed several bugs that were causing issues with recording transactions in the database.
3. Backend Enhancements:
Improved the logic in updateRXCG.php to ensure that wallet addresses are correctly associated with user accounts.
Refactored the backend to better handle cases where users have not yet linked a wallet address.
4. Debugging and Testing:
Added extensive debugging outputs to the console for easier tracking of wallet connection and transaction processes.
Conducted multiple rounds of testing, especially focusing on edge cases like unregistered wallet addresses and session issues.
Next Steps:
Continue refining the backend, focusing on session management and ensuring all wallet-related functions work reliably.
Further testing of the smart contract integration, especially under different user scenarios.
Prepare for the next version, focusing on enhancing the user experience and implementing additional smart contract features.
|
|
|
|