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:

  1. Game Controller: Serving as the core contract binding all contracts and controllers, this controller governs the primary functions and configurations of the game.

  2. 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.

  3. 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.

  4. Squad Controller: Responsible for player squads, this controller looks after their creation, updates, deletion, and the management of units within player squads.

  5. 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.

  6. Booster Pack Controller: Handling the operation of booster packs, it manages item probabilities and facilitates the unpacking of booster packs.

  7. 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.

  8. Land Controller: This controller manages the aspects related to players' lands, including deployment, undeployment, upgrading, and resource production capabilities.

  9. Repository Contracts: These contracts encompass various data and attributes for units, items, and monsters.

  10. 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.

  11. Randomizer: Responsible for the random generation of numbers for various mechanisms such as the combat system.

  12. 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.

  13. Dungeon Controller: This manages all the dungeon-based activities and events from guilds such as the creation of new dungeons.

  14. Tokens: There are various types of tokens used within Crossroads: Myth

    1. Resource Tokens: These are fungible tokens for use of in-game currency such as Gold

    2. Multi-Asset Tokens: These are tokens for more complex types such as Units, Monsters, and Items

    3. Non-Fungible Tokens: These are non-fungible tokens used for Land and Companions

    4. 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.

  1. Staking Controller: This handles the staking and unstaking of CRDS tokens, as well as the calculation and distribution of accrued rewards.

  2. 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.

  3. Governance Controller: This handles the management of governance suggestions and recommendations from representatives

Last updated