Technical Architecture
Building Blocks of Crossroads: Myth: Smart Contracts
The technical architecture of Crossroads: Myth is designed to handle various in-game mechanisms efficiently.
It comprises a multitude of controllers, each tasked with the smooth functioning of different aspects of the game.
Crossroads's Contracts and Controllers
Below is an overview of each contract:
Game Controller: Serving as the core contract binding all contracts and controllers, this controller governs the primary functions and configurations of the game.
Player Controller: This controller oversees player activities such as leveling up and refreshing of Action Points (AP), functioning as the main repository for player-related game data.
Party Controller: Handling player party management, this controller allows creating new parties, sending invites, responding to invites, updating information, leadership management, and supervises the updating of party experience and lore.
Squad Controller: Responsible for player squads, this controller looks after their creation, updates, deletion, and the management of units within player squads.
Quest Controller: This controller manages quest data, performing tasks such as random allocation of tiles as per preset configuration for new quests, and handles the progression of parties that have embarked on a quest.
Booster Pack Controller: Handling the operation of booster packs, it manages item probabilities and facilitates the unpacking of booster packs.
Guild Controllers: Comprising of the Guild and Guild Factory, these controllers supervise the creation and management of guilds. Guild Research takes care of the research activities within the guilds.
Land Controller: This controller manages the aspects related to players' lands, including deployment, undeployment, upgrading, and resource production capabilities.
Repository Contracts: These contracts encompass various data and attributes for units, items, and monsters.
Lore Controller: This oversees the Lorekeeper functionality, including settings and configurations for standard and premium offerings. It handles Lorekeeper records and actions, manages player lore requests, and processes applications for Lorekeeper positions.
Randomizer: Responsible for the random generation of numbers for various mechanisms such as the combat system.
Referral Controller: This controller manages the referral system of Crossroads: Myth, ranging from setting initial referrer's address to confirming referrals and claiming of referral rewards.
Dungeon Controller: This manages all the dungeon-based activities and events from guilds such as the creation of new dungeons.
Tokens: There are various types of tokens used within Crossroads: Myth
Resource Tokens: These are fungible tokens for use of in-game currency such as Gold
Multi-Asset Tokens: These are tokens for more complex types such as Units, Monsters, and Items
Non-Fungible Tokens: These are non-fungible tokens used for Land and Companions
Soulbound Tokens: These are soulbound tokens tied to a player's wallet and used as achievement tokens
Staking and Governance
The following contracts handle the management of CRDS tokens with the community.
Staking Controller: This handles the staking and unstaking of CRDS tokens, as well as the calculation and distribution of accrued rewards.
Representative Controller: This manages the representatives in the Crossroads Community - players who wish to have an active role in the game's direction by contributing and voting on governance suggestions and recommendations.
Governance Controller: This handles the management of governance suggestions and recommendations from representatives
Last updated