Smartcontract documentation for organization
Organizations are an essential part of SEEDS, enabling regeneration to take place in the many contexts the new society will need.
They are covered on the SEEDS COnstitution, Part 2, Section 1 **Organization Accounts**.
A new Organization can be created by pushing the `create` action, after doing the `deposit` (from onboarding contract) for the sponsoring amount.
Organizations can get **Reputable** and **Regenerative** status, if they meet the Constitution requisites in terms of
Contribution Scores and Regen Scores, this is started using the `makeregen` and `makereptable` actions.
The Org owner can add people invoking the `addmember` action, and remove using the `removemember` action.
The owner / manager can also change member roles using the `changerole` action.
Another very important aspect of Organization are their APPs, that can be used to track usage and allow the Org to get more bonus.
To create an APP, the manager / owner calls `registerapp` (and then `banapp` to remove).
Each daily use by the APP must call the `appuse` action to inform that.
Actions
- addmember / addmember Adds a member to the Organization
- addregen / addregen Adds Regenerative score to the Organization.
- appuse / appuse Called to indicate daily Org APP usage.
- banapp / banapp Bans an APP from the Organization.
- changeowner / changeowner Let's the Org owner pass it along to some other account.
- changerole / changerole Change the role for an Org member.
- cleandau / cleandau
- cleandaus / cleandaus Batch cleans the DAU from all Org apps.
- create / create Creates a new Organization, proving the sponsor has allocated enough funds
- destroy / destroy Destroys an Organization, called by the owner.
- makeregen / makeregen Converts and Org status to Regenerative if all pre-requisites are met.
- makereptable / makereptable Converts and Org status to Reputable if all pre-requisites are met.
- makesustnble / makesustnble
- makethrivble / makethrivble
- rankregen / rankregen Ranks a batch or Orgs in terms of Regenerative score.
- rankregens / rankregens Batch ranks all Orgs based on Regenerative score.
- refund / refund Refunds the Org creation fees.
- registerapp / registerapp Registers a new APP to the Org.
- removemember / removemember Removes a member from the Org.
- reset / reset
- scoreorgs / scoreorgs Called periodically to calculate Org scores.
- scoretrxs / scoretrxs Called to recalculate Org transaction scores.
- subregen / subregen Subtracts Regenerative points from the Org score.
- testregensc / testregensc
- teststatus / teststatus
Events
Tables
ABI Extensions
Structs
addmember
- organization / name
- owner / name
- account / name
- role / name
addregen
- organization / name
- account / name
- amount / uint64
app_table
- app_name / name
- org_name / name
- app_long_name / string
- is_banned / bool
- number_of_uses / uint64
appuse
- appname / name
- account / name
avg_vote_table
- org_name / name
- total_sum / int64
- num_votes / uint64
- average / int64
banapp
cbs_organization_table
- org_name / name
- community_building_score / uint32
- rank / uint64
changeowner
- organization / name
- owner / name
- account / name
changerole
- organization / name
- owner / name
- account / name
- new_role / name
cleandau
- appname / name
- timestamp / uint64
- start / uint64
cleandaus
config_table
- param / name
- value / uint64
- description / string
- impact / name
create
- sponsor / name
- orgaccount / name
- orgfullname / string
- publicKey / string
dau_history_table
- dau_history_id / uint64
- account / name
- date / uint64
- number_app_uses / uint64
dau_table
- account / name
- date / uint64
- number_app_uses / uint64
destroy
- orgname / name
- sponsor / name
makeregen
makereptable
makesustnble
makethrivble
members_table
- account / name
- role / name
org_tx_table
- id / uint64
- other / name
- in / bool
- quantity / asset
- timestamp / uint64
organization_table
- org_name / name
- owner / name
- status / uint64
- regen / int64
- reputation / uint64
- voice / uint64
- planted / asset
planted_table
- account / name
- planted / asset
- rank / uint64
rankregen
- start / uint64
- chunk / uint64
- chunksize / uint64
rankregens
ref_table
- referrer / name
- invited / name
refund
- beneficiary / name
- quantity / asset
regen_score_table
- org_name / name
- regen_avg / int64
- rank / uint64
registerapp
- owner / name
- organization / name
- appname / name
- applongname / string
removemember
- organization / name
- owner / name
- account / name
rep_table
- account / name
- rep / uint32
- rank / uint64
reset
scoreorgs
scoretrxs
size_table
- account / name
- balance / asset
subregen
- organization / name
- account / name
- amount / uint64
testregensc
- organization / name
- score / uint64
teststatus
- organization / name
- status / uint64
totals_table
- account / name
- total_volume / uint64
- total_number_of_transactions / uint64
- total_incoming_from_rep_orgs / uint64
- total_outgoing_to_rep_orgs / uint64
vote_table
- account / name
- timestamp / uint64
- regen_points / int64