Smartcontract documentation for region
Regions are geographically centered locations where SEEDS Citizens may decide to base off their operations.
They are covered in the SEEDS Game Guide, **Regional Accounts**.
Regions are created using the `create` action, however it only becomes active as long as enough people `join` the Region.
Members can also choose to `leave` the Region.
The founder account may call `addrole` on member accounts for specifying their roles on the Regions.
Actions
- addrole / addrole Add a named `role` to a member of the Region.
- create / create Creates a new Region.
- join / join Allows people to join a Region.
- leave / leave This is called when one wants to leave a Region.
- leaverole / leaverole Allows the account owner to leave a Role.
- removerdc / removerdc The founder will invoke that to remove a Region, removing all members.
- removemember / removemember The founder removes a specific Region member.
- removerole / removerole The founder removes someone from a Role.
- reset / reset
- setfounder / setfounder This is called by the founder to change the founder of a Region.
Events
Tables
ABI Extensions
Structs
addrole
- region / name
- admin / name
- account / name
- role / name
config_float_table
- param / name
- value / float64
- description / string
- impact / name
config_table
- param / name
- value / uint64
- description / string
- impact / name
create
- founder / name
- rgnaccount / name
- description / string
- locationJson / string
- latitude / float32
- longitude / float32
- publicKey / string
delay_table
- account / name
- apply_vote_delay / bool
- joined_date_timestamp / uint64
harvest_balance_table
- region / name
- balance / asset
join
- region / name
- account / name
leave
- region / name
- account / name
leaverole
- region / name
- account / name
members_table
- region / name
- account / name
- joined_date / time_point
region_table
- id / name
- founder / name
- status / name
- description / string
- locationjson / string
- latitude / float32
- longitude / float32
- members_count / uint64
- created_at / time_point
removemember
- region / name
- admin / name
- account / name
removergn
removerole
- region / name
- admin / name
- account / name
reset
roles_table
- account / name
- role / name
- joined_date / time_point
setfounder
- region / name
- founder / name
- new_founder / name
size_table
- account / name
- balance / asset
user_table
- account / name
- status / name
- type / name
- nickname / string
- image / string
- story / string
- roles / string
- skills / string
- interests / string
- reputation / uint64
- timestamp / uint64