WAS LAYER

WAS Layer

The WAS Layer is the central layer that manages business logic and data flow between the Web Layer and the Blockchain Layer. It processes user interactions generated at the Web Layer and relays them to the Blockchain Layer, while simultaneously acting as a bridge that maintains compatibility with existing Web2 systems. This design enables users to enjoy Web2-level convenience alongside Web3-based rewards, without requiring a steep learning curve.

WAS Layer Components

  1. Smart Contracts This component executes on-chain logic for the issuance, trading, and distribution of FTs and NFTs. User actions originating from the Web Layer—such as payments, minting, airdrops, and revenue distribution—are converted into smart contract calls and recorded on BNB Chain.

  2. Collector The Collector module aggregates all blockchain transactions and event logs in real time. Events such as NFT minting, trading, and transfers are continuously captured and reflected in internal databases and cache servers. This real-time synchronization ensures that user activity is immediately reflected, enabling instant rankings, queries, and reward calculations.

  3. API Server The API Server provides standardized APIs to the Web Layer for functions including user authentication, wallet integration, NFT listings and transaction history queries, and NFT minting requests. When necessary, it also directly invokes smart contracts or performs database queries.

  4. Gateway Server The Gateway Server receives UIDs, photo data, and system information from the existing Web2 Life4Cuts infrastructure, converts them into Web3-compatible formats, and forwards them to the API Server and Collector. This gateway enables seamless data migration and synchronization from Web2 to Web3.

The WAS Layer goes beyond a simple middleware component—it functions as a real-time synchronization engine that combines the scalability and usability of Web2 with the trust, transparency, and reliability of Web3. This flexible architecture provides a strong foundation for future expansions, including DAO functionality, personalized NFT reward systems, and brand-level customization.

Last updated