create account

Aira DAO creation framework tutorial by tonykent

View this thread on: hive.blogpeakd.comecency.com
· @tonykent ·
$28.91
Aira DAO creation framework tutorial
# Aira DAO creation framework tutorial 

![logo](https://avatars3.githubusercontent.com/u/13998040?v=3&s=300)

**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](http://aira.life) 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](https://www.youtube.com/watch?v=qiu-qwQN8Og). 
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](https://github.com/ensrationis).
The team consists of Evgene Radchenko, Alexander Krupenkin, Semyon Pavlov, Alexander Kapitonov, Anastasiia Bakai et al. Please see [team page here](http://aira.life/our-team/).

# 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: 
- [Wings](https://wings.ai)
- [Nexus/dappsys](https://github.com/nexusdev/dappsys)
- [The TAO](https://ryepdx.github.io/the-tao/)

### Why use a framework? 
There are several options if you want to develop DAO:

1. Write it from scratch
2. Fork existing DAO code. For example, [TheDAO](https://github.com/slockit/DAO)
3. 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! 
[The tutorial is HERE](https://ensrationis.gitbooks.io/learning-center-airalab/content/en/preparing_eng.html)

**Please upvote this topic! All rewards will be transferred to the AiraLab team in order to improve the framework and tools**
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authortonykent
permlinkaira-dao-creation-framework-tutorial
categoryblockchain
json_metadata{"tags":["blockchain","crypto-news"],"links":["https://www.youtube.com/watch?v=qiu-qwQN8Og"]}
created2016-07-25 12:18:15
last_update2016-07-25 12:18:15
depth0
children5
last_payout2016-08-25 15:16:30
cashout_time1969-12-31 23:59:59
total_payout_value21.966 HBD
curator_payout_value6.939 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,972
author_reputation1,698,657,442,216
root_title"Aira DAO creation framework tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id344,164
net_rshares7,205,145,590,170
author_curate_reward""
vote details (35)
@blockchainbug ·
$0.06
interesting project, difficult timing after TheDAO hack. do you guys get in touch with Ethereum developers to cross check all works?
👍  
properties (23)
authorblockchainbug
permlinkre-tonykent-aira-dao-creation-framework-tutorial-20160725t122640052z
categoryblockchain
json_metadata{"tags":["blockchain"]}
created2016-07-25 12:26:33
last_update2016-07-25 12:26:33
depth1
children2
last_payout2016-08-25 15:16:30
cashout_time1969-12-31 23:59:59
total_payout_value0.042 HBD
curator_payout_value0.014 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length132
author_reputation3,676,872,303
root_title"Aira DAO creation framework tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id344,299
net_rshares41,051,095,834
author_curate_reward""
vote details (1)
@ensrationis · (edited)
First step is proof-of-concept [DAO factory](https://github.com/airalab/DAO-factory) with [Airalab learning center](https://www.gitbook.com/book/ensrationis/learning-center-airalab/details) in Ethereum **testnet**. Airalab team create public discuss about [Aira core](https://github.com/airalab/core) security next month.
properties (22)
authorensrationis
permlinkre-blockchainbug-re-tonykent-aira-dao-creation-framework-tutorial-20160725t131121978z
categoryblockchain
json_metadata{"tags":["blockchain"],"links":["https://github.com/airalab/DAO-factory"]}
created2016-07-25 13:11:18
last_update2016-07-25 13:12:00
depth2
children0
last_payout2016-08-25 15:16:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length321
author_reputation0
root_title"Aira DAO creation framework tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id345,123
net_rshares0
@tonykent ·
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!
properties (22)
authortonykent
permlinkre-blockchainbug-re-tonykent-aira-dao-creation-framework-tutorial-20160725t160956395z
categoryblockchain
json_metadata{"tags":["blockchain"]}
created2016-07-25 16:09:57
last_update2016-07-25 16:09:57
depth2
children0
last_payout2016-08-25 15:16:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length580
author_reputation1,698,657,442,216
root_title"Aira DAO creation framework tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id349,526
net_rshares0
@cyntechtic ·
cool
👍  
properties (23)
authorcyntechtic
permlinkre-tonykent-aira-dao-creation-framework-tutorial-20170626t120358857z
categoryblockchain
json_metadata{"tags":["blockchain"],"app":"steemit/0.1"}
created2017-06-26 12:04:03
last_update2017-06-26 12:04:03
depth1
children0
last_payout2017-07-03 12:04:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4
author_reputation96,530,407,832
root_title"Aira DAO creation framework tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id6,169,361
net_rshares1,844,894,955
author_curate_reward""
vote details (1)
@itay ·
$0.03
I upvoted You
👍  
properties (23)
authoritay
permlinkre-aira-dao-creation-framework-tutorial
categoryblockchain
json_metadata{}
created2016-08-17 16:25:03
last_update2016-08-17 16:25:03
depth1
children0
last_payout2016-08-25 15:16:30
cashout_time1969-12-31 23:59:59
total_payout_value0.024 HBD
curator_payout_value0.007 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length13
author_reputation5,102,472,394,558
root_title"Aira DAO creation framework tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id855,175
net_rshares57,633,598,921
author_curate_reward""
vote details (1)