d
d
docs
Search…
Ecosystem.sol

The ecosystem for ElasticDAO

The ecosystem contract is used for storing core DAO data, it inherits the EternalModel contract. The EternalModel contract is an implementation of the Eternal Storage pattern. ElasticDAO network can read and/or write from this contract.
1
struct Instance {
2
address daoAddress;
3
address daoModelAddress;
4
address ecosystemModelAddress;
5
address tokenHolderModelAddress;
6
address tokenModelAddress;
7
address configuratorAddress;
8
address governanceTokenAddress;
9
}
Copied!
    daoAddress - is an address of unique user ID
    daoModelAddress - is an address of the DAO model
    ecosystemModelAddress - is an address of the ecosystem model
    tokenHolderModelAddress - is an address of the token holder
    tokenModelAddress - is an address of a token
    configuratorAddress - is an address of the DAO configurator
    governanceTokenAddress - is an address of the governance token

Functionality

List of events:

List of functions:

Events

Serialized

1
event Serialized(address indexed _daoAddress);
Copied!

Functions

deserialize

Translates the data from the key-value pairs to a struct
1
function deserialize(address _daoAddress) external view returns (Instance memory record) {...}
Copied!

parameters

1
@param _daoAddress - address of the unique user ID
Copied!

exists

Checks if the address already exists in the DAO (externally)
1
function exists(address _daoAddress) external view returns (bool recordExists) {...}
Copied!

parameters

1
@param _daoAddress - address of the unique user ID
Copied!

serialize

Translates the data from the concerned struct to key-value pairs
1
function serialize(Instance memory _record) external preventReentry {...}
Copied!

parameters

1
@param _record Instance
Copied!

_exists

Checks if the address already exists in the DAO (internally)
1
function _exists(address _daoAddress) internal view returns (bool recordExists) {...}
Copied!
Last modified 7mo ago