|
|
News
Dev Log: Version v0.6 - 26 September 2024
On 16. Sep 2024, 00:27:35 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.
|
|
|
|