โ›ฒSmart contracts architecture

Introduction

The Smart Contracts Architecture of Lay3rs plays a pivotal role in facilitating various aspects of the platform's functionality, including token management, dataset organization, and exploitation license distribution. This section provides an overview of the three key smart contracts deployed within the Lay3rs ecosystem and their respective functionalities.

Smart Contract 1: Token LAY (ERC-20)

The Token LAY smart contract is responsible for managing the Lay3rs native token, LAY, which is an ERC-20 fungible token. This contract defines the characteristics of the LAY token, including its total supply, decimals, name, symbol, and burnable, non-mintable properties. LAY tokens are utilized for contributions to digital twin creation, purchase of licenses for exports, automation of product redistribution, and participation in community mechanics.

๐Ÿช™LAY contract

Smart Contract 2: NFT Dataset (ERC-721)

The NFT Dataset smart contract is designed to manage datasets within the Lay3rs ecosystem. Each dataset, containing a certain amount of data related to a digital twin, is uniquely identified through a Non-Fungible Token (NFT). This contract repurposes the ERC-721 standard and customizes it to adapt to Lay3rs' use case. It tracks different levels of scarcity for each dataset, along with file size and governance details. Minting an NFT associates a structure of objects defining a dataset uniquely, linked to a URI hosted via IPFS for additional metadata.

๐Ÿ—ƒ๏ธNFT Dataset contract

Smart Contract 3: Multi-token Export (ERC-1155)

The Multi-token Export smart contract facilitates the purchase of exploitation licenses for 3D exports within the Lay3rs platform. Utilizing the ERC-1155 standard, this contract defines the multi-token functionality for licensing purposes. Each exploitation license for an export is uniquely identified by an ID and associated with various data, including the owner of the export, smart contract details, URI of IPFS metadata, coefficient size related to the export, and a list of NFT dataset IDs used to create the export. The purchase price of the license is calculated based on the corresponding file's coefficient and the price per coefficient in LAY. Rewards from the purchase are distributed to multiple addresses, including the Lay3rs Supported cause, export owner, project manager, project contract, and data providers of the datasets used to create the export.

๐Ÿ“นNFT Export contract

Smart contract 4: Project

The Project contract in the Lay3rs ecosystem enables crowdfunding and milestone management for various initiatives. Contributors invest LAY tokens, while project managers create, commit, cancel, and postpone milestones to achieve project objectives. Rewards are distributed transparently based on predefined percentages, fostering accountability and incentivizing participation.

๐Ÿ’ฐProject contract

Smart contract 5: DAO Master (Governance)

The DAO Master contract governs the Lay3rs ecosystem, managing proposals and project contracts. It allows the addition and removal of project contracts, ensuring the validity and integrity of projects within the platform. Proposals are created, committed, and executed through off-chain voting processes, providing a decentralized governance framework for Lay3rs' operations.

๐Ÿ—ณ๏ธDAO Master contract

A complete stack

The smart contracts architecture of Lay3rs forms the backbone of the platform's operations, enabling secure and efficient management of tokens, datasets, and exploitation licenses. By deploying these smart contracts, Lay3rs ensures transparency, fairness, and reliability in its ecosystem, facilitating the preservation and distribution of digital heritage assets.

โš™๏ธTestnet

Last updated