Aira DAO creation framework tutorial
Please upvote this topic! All rewards will be transferred to the AiraLab team in order to improve the framework and tools
Who am I
My name is Anton and I am proud to present to you the Aira framework (created by AiraLab) tutorial, translated into English (from Russian) by myself. I am a blockchain enthusiast and currently developing specialized Distributed Autonomous Organization (DAO). More on this in my future posts.
Who is on the AiraLab team
AiraLab is a Russian-based company located in Saint Petersburg and Togliatti.
Recently, the Aira team has built a Drone Employee
prototype that features distributed air drone dispatching. Please see this video.
A drone can share airspace with other drones as well as avoid the forbidden zones. All dispatching is done in a completely decentralized way using Ethereum smart-contracts.
The team leader is Sergey lonshakov.
The team consists of Evgene Radchenko, Alexander Krupenkin, Semyon Pavlov, Alexander Kapitonov, Anastasiia Bakai et al. Please see team page here.
What is an Aira framework?
Aira is a DAO creation framework that can help you to quickly launch a new DAO that will include crowdsale support, board of directors, market regulator, and emission regulator modules (etc).
There are other DAO frameworks under development:
Why use a framework?
There are several options if you want to develop DAO:
- Write it from scratch
- Fork existing DAO code. For example, TheDAO
- Use frameworks
Using a framework can be the easiest way to quickly develop and release a DAO. Some frameworks (including Aira) use dynamic instance creation. You send transactions to an Aira builder contract and it builds you your DAO. No need to statically compile contract code and deploy it. Everything is done through building/adding/configuring DAO modules in the Ethereum network directly. Just use geth
or Ethereum Wallet
to send transactions. For example, you can add the ‘Market regulator’ module to your existing DAO and its behaviour will be changed according to the new rules:
// ABI removed for clarity
var BuilderDAOMarketRegulator = [{ ... }];
var builder = web3.eth.contract(BuilderDAOMarketRegulator).at(factory.getModule("Aira BuilderDAOMarketRegulator"));
builder.create(core.getModule('Mars colony shares'), dao_addr, core.getModule('Market'), core.getModule('DAO credit'), {from: eth.accounts[0], gas: 2000000, value: builder.buildingCostWei()});
builder.getLastContract();
// Add regulator to the organization contracts registry
core.setModule("Market regulator", builder.getLastContract(), "github://airalab/core/market/DAOMarketRegulator.sol", true, {from:web3.eth.accounts[0], gas:300000})
core.getModule("Market regulator")
// Switch market into 'regulated' mode
// ABI removed for clarity
var Market = [{ ... }];
var market = web3.eth.contract(Market).at(core.getModule('Market'));
market.setRegulator(true, {from: eth.accounts[0], gas: 100000});
market.regulatorEnabled();
A dynamic style, such as the one Aira gives us, is somewhat restrictive. We can not change the Aira framework code directly, but only by forking it on the github. This is the price we pay for convenience and extra safety (we can do only what is permitted by the Aira team).
Now it's better to go and check the tutorial!
Let's DIVE IN!
Please upvote this topic! All rewards will be transferred to the AiraLab team in order to improve the framework and tools
interesting project, difficult timing after TheDAO hack. do you guys get in touch with Ethereum developers to cross check all works?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
First step is proof-of-concept DAO factory with Airalab learning center in Ethereum testnet. Airalab team create public discuss about Aira core security next month.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I don't think that TheDAO hack would affect Aira. DAOs will emerge. The demand for DAOs is high and will grow even higher. So the Aira is doing a good thing for the whole crypto-community.
To your question about Ethereum devs: Aira is an open-source, so anyone can review the code. When TheDAO released their code, most (even highly experienced) devs didn't see the bug in it) But of course contract review is a required step for a production-ready code! I think that sooner or later Aira will contact some core Ethereum devs in order to do a review.
Thanks for your interest!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I upvoted You
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
cool
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit