Built to Last. Built for Play. A comprehensive Web3 gaming ecosystem that combines NFTs, on-chain assets, and Play-to-Earn (P2E) mechanics.
LithosProtocol is a comprehensive Web3 gaming ecosystem built on Ethereum.
LithosProtocol Ecosystem
├── Frontend (Web App, Unity Game, Mobile App, Admin Panel)
├── Backend (API Server, Indexer, Cache, Analytics)
└── Blockchain (Smart Contracts, RPC Node, IPFS Storage)
Core Contracts (12):
Enhanced Contracts (5):
P2 Contracts (1):
All contracts follow these patterns:
GovernanceToken
├── ERC20Upgradeable
├── ERC20BurnableUpgradeable
├── ERC20PausableUpgradeable
├── ERC20VotesUpgradeable
├── OwnableUpgradeable
├── AccessControlUpgradeable
└── UUPSUpgradeable
$GOV (Governance Token)
$PLAY (Utility Token)
Sources (Inflationary):
Sinks (Deflationary):
1. Quest System
2. PvP Battle System
3. Crafting System
4. Asset Progression
struct PlayerData {
uint256 level;
uint256 experience;
uint256 pvpWins;
uint256 pvpLosses;
uint256 pvpRating;
uint256 totalDamageDealt;
uint256 totalDamageTaken;
bool isActive;
uint256 lastActivityTime;
}
All 18 contracts implement:
Structure:
LithosProtocolSDK
├── player: PlayerModule
├── token: TokenModule
├── nft: NFTModule
├── game: GameModule
├── marketplace: MarketplaceModule
├── staking: StakingModule
├── vesting: VestingModule
├── config: NetworkConfig
├── provider: Provider
├── signer: Signer
└── logger: DebugLogger
Supported Networks:
Platform Support:
| Script | Purpose | Networks |
|---|---|---|
| DeployContracts.s.sol | Deploy core contracts | All |
| DeployAllContracts.s.sol | Deploy all contracts (P0) | All |
| DeployCompleteSystem.s.sol | Deploy complete system (P0 + P1) | All |
| DeployCompleteSystemWithP2.s.sol | Deploy complete system with P2 | All |
| Issue | Cause | Solution |
|---|---|---|
| Transaction reverted | Insufficient gas | Increase gas limit |
| Transaction reverted | Insufficient balance | Get more tokens |
| Transaction reverted | Not approved | Approve token spending |
| Transaction reverted | Not owner | Use owner account |
| Transaction reverted | Paused | Wait for unpause |
| Event not detected | Wrong network | Check network |
| Contract not found | Wrong address | Verify address |
forge test -vv| Version | Date | Changes |
|---|---|---|
| 1.0.0 | 2024-01 | Initial release |
| 1.1.0 | 2024-02 | Added V2 contracts |
| 1.2.0 | 2024-03 | Added P2 features |
| 1.3.0 | 2024-04 | Documentation updates |
Apache License 2.0
Built with love by the LithosProtocol Team