In Web3 gaming, demands are more complex compared to traditional games. Traditional games manage centralized assets through integrated solutions linked to centralized payment methods. In contrast, Web3 faces intricate asset types and management operations without uniform service standards for token exchange, NFT transactions, lending, transfers, and fiat payments.
Features
To offer players and developers an experience akin to traditional internet products and financial services with Web3 assets, Oneness Gaming Intent Layer introduces Adapter for unified asset management. Adapter achieves this by modularizing and encapsulating Web3 services into protocols:
Abstraction and Encapsulation
Abstracting complex Web3 interaction logic into modular protocols for tasks like transaction processing, smart contract interaction, and data querying.
Standardized Interfaces
Defining APIs to ensure seamless connection and communication across modules.
Ease of Integration
Simplifying integration for developers without deep blockchain expertise; they can utilize module interfaces for desired functionalities.
Modules
The Token Swap Module handles the exchange of token assets. Typically, it integrates with a set of decentralized exchange (DEX) contracts to facilitate asset trading. Users can invoke smart contracts through this module to execute asset exchanges, and can also pre-set exchange rates for various tokens to ensure that user expectations are met during execution requests.
DEX Contract Integration: Interfaces with smart contracts of decentralized exchanges (DEXs) to perform asset exchange operations on-chain. This often involves integration with major DEX platforms and interaction with their APIs.
Exchange Rate Management: Allows users to pre-set exchange rates for various tokens, ensuring compliance with user expectations during exchange requests. This involves interfacing with external data sources for real-time market rate information and conducting rate conversions and updates.
The NFT Swap Module specializes in handling the exchange of NFT assets within blockchain games.
NFT Marketplace Integration: Interfaces with smart contracts of NFT marketplaces or platforms to conduct on-chain exchanges of NFT assets. This may entail integration with prominent NFT marketplaces and interaction with their APIs.
Exchange Rate Management: Allows users to pre-set exchange rates for different NFT assets to meet personalized needs. This may require interaction with external data sources for real-time market information and NFT asset valuation data.
The NFT Lending Module manages lending needs for NFT assets in games. Unlike the exchange module, lending involves temporary authorization or freezing of assets, typically involving processes such as interest rates, collateral, and repayment.
Lending/Leasing Contract Integration: Interfaces with corresponding lending contracts, usually provided by DeFi platforms. These contracts support operations such as borrowing, depositing, withdrawing, liquidation, and repayment, and specify parameters like lending rates and collateral requirements.
Collateral Management: Manages storage, transfer, and return of collateral assets during lending, ensuring effective management and protection of collateral assets throughout the lending cycle.
The Bridge Module facilitates cross-chain transfer and interaction of assets between different blockchain networks. This module enables seamless asset transfers between different blockchains, fostering interoperability within cross-chain gaming ecosystems.
On-Chain Contract Integration: Interfaces with cross-chain bridge contracts on source and target chains. Contracts on the source chain lock users' assets, while contracts on the target chain release assets and ensure their legality.
Cross-Chain Asset Locking and Unlocking: When users initiate cross-chain transfer requests, the module calls source chain bridge contracts to lock user assets on the source chain and generate corresponding cross-chain transfer proofs. Once the transfer is complete, the module calls target chain bridge contracts to unlock user assets on the target chain and transfer them to the specified address.
Cross-Chain Transfer Proof Verification: Ensures the security and validity of cross-chain transfers by verifying the legitimacy of cross-chain transfer proofs. This may involve verifying signatures, hashes, or other proof attributes to ensure that cross-chain transfer operations are generated by legitimate source chain contracts.
The On-off-ramp Payment Module handles financial payment operations for users within games.
Payment Gateway Integration: Interfaces with various payment gateways to support fund inflow and outflow operations through different payment methods, including bank payments, e-wallets, and third-party payment platforms. Each payment gateway may provide different APIs and interfaces, and the module integrates and configures based on the requirements of the connected payment gateway.
Payment Service Provider Management: Supports user fund operations by integrating third-party exchange services, such as cryptocurrency exchanges or trading service providers, enabling users to convert fiat currency into cryptocurrencies when needed. Users can also add their trusted service providers.