Lightency DAO Documentation
- Version: 1.0
- Author: Jaafar Saied
- Created: 6 December, 2022
- Update: 9 Avril, 2023
If you have any questions that are beyond the scope of this documentation, file, Please feel free to email via the contact section .
Introduction
Lightency DAOs
As a web3 energy platform,
Lightency
solution is based on the decentralized autonomous organization’s
concept where we find 3 central governance DAOs: Lightency-Dao,
Treasury-Dao, and the Energy fund-Dao.
Lightency is a multi-faceted holistic Web3 platform that allows
the utilization of the blockchain technology to maximize and
optimize energy distribution and production. Additionally,
Lightency makes use of Decentralized Finance to provide an
alternative funding scheme for green energy projects.
Lightency’s DeFi solution additionally offers crypto enthusiasts
from yield farmers to VCs the opportunity to make a green impact
and offset their carbon footprint while making attractive
returns.
What are DAOs in Lightency ?
What does DAO means ?
Decentralized autonomous organizations
(DAOs) are a type of organization that operates on a blockchain
network, using smart contracts to automate decision-making
processes and other operations. DAOs are designed to be
transparent, democratic, and decentralized, meaning that they
are not controlled by a single entity or individual.
Create responsive video embeds based on the width of the parent by creating an intrinsic ratio that scales on any device.
Near protocol definition
In the context of Lightency ?
In the context of
the Lightency ecosystem
, DAOs play an important role in providing a decentralized
decision-making process for key aspects of the platform's
governance and operations. By leveraging the power of blockchain
technology, DAOs enable members of the Lightency community to
propose and vote on changes to the platform, without the need
for a centralized authority to make all of the key decisions.
The Lightency ecosystem includes several DAOs, including the
Lightency-Dao, Treasury-Dao, and Energy fund-Dao. Each of these
DAOs serves a different purpose within the platform, but all are
designed to promote transparency, democracy, and collaboration
among members of the Lightency community.
Overall, DAOs play a critical role in the Lightency ecosystem,
enabling the platform to operate in a decentralized and
transparent manner. By providing a democratic decision-making
process, DAOs help to ensure that the Lightency project is
aligned with the values and goals of its community, while also
promoting innovation and sustainable practices in the energy
sector.
Technology stack?
Before diving into the specifics of Lightency's documentation, it's essential to understand the technology
stack that underpins our green energy solution. The chosen tech stack plays a crucial role in the overall
performance, scalability, and security of the platform. In the upcoming sections, we will delve deep into
the details of each technology, explaining their significance and how they contribute to the effectiveness
of our solution. By gaining a solid grasp of the tech stack, you'll be better equipped to comprehend and
utilize Lightency's features, making the most out of the documentation provided.
EVM or WASM ?
In the rapidly evolving world of smart contracts, Ethereum has long been the go-to platform, with Solidity
as the default language for EVM-based development. However, Ethereum's limitations, such as slow block
times and high transaction fees, have paved the way for innovative technologies and new public chains.
Among these, WebAssembly (WASM) has emerged as a prominent alternative.
WASM
is a cutting-edge binary format that offers numerous advantages, including compact instruction
size,
quick execution speed, and memory safety. By utilizing smart contracts that run on WASM, blockchain
resources can be used more efficiently, leading to faster block generation and enhanced stability.
Ultimately, this results in an improved user experience.
One of the key features of WASM is its support for multiple front-end development languages, including
Rust, C, C++, TypeScript, and AssemblyScript. When taking into account factors such as compatibility,
toolchain availability, and language security, Rust stands out as an excellent choice for WASM-based
development.
Our choice
Lightency is dedicated to enhancing the security of the entire DeFi ecosystem. To achieve this goal, we
not only provide audit services but also strive to support the community through secure development
practices. Recognizing the numerous benefits of Rust and WASM, we have chosen to focus on this technology
stack and will be sharing a series of insightful content to help you stay informed.
After thoroughly researching various popular public chain projects, we identified the NEAR public chain as
an ideal match for our objectives. NEAR natively supports WASM contracts and facilitates the development
of smart contracts using both Rust and AssemblyScript languages. Consequently, we will base our upcoming
discussions and knowledge-sharing content on the NEAR public chain. Stay tuned for more updates and
resources from Lightency.
Rust
The Rust programming language, developed by Mozilla, boasts impressive execution speeds, efficient memory
usage, and supports both functional and object-oriented programming paradigms. We understand that many
readers might not be well-acquainted with Rust; however, there's no need to worry. Throughout this
documentation, we will guide you in demystifying Rust, enabling you to leverage its capabilities for
developing efficient and secure smart contracts in the context of Lightency's protocol.
IDE :
As you familiarize yourself with the Rust language for Lightency's development, selecting a suitable
Integrated Development Environment (IDE) is crucial. We recommend using Visual Studio Code, complemented
with Rust plugins like Rust-analyzer, to fulfill your everyday development needs. Alternatively, if
possible, consider trying JetBrains CLion with the Rust plugin. Students can access this combination for
free. Both options provide a streamlined development experience, making it easier to harness Rust's
capabilities in the context of our green energy solution.
Install the Rust toolchain :
With a suitable IDE in place, the next step is to download and install Rust. Rust offers a simple and
convenient installation process. For Linux systems, you can quickly download and install Rust by running
the following command, making it effortless to begin developing with our green energy solution:
$ curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh
After the installation is complete, we can check whether the installation is successful $ rustup
--versionby .
RustupAs a manager for Rust toolchains, it provides methods to install, remove, update, select and manage
these toolchains and their associated components. Then we need to add the WASM (WebAssembly) target to the
toolchain by executing the following command:
$ rustup target add wasm32-unknown-unknown