neardevhub-bos
neardevhub-bos copied to clipboard
Locations still using legacy devhub contract (devgovgigs.near)
Recently we've migrated contract data from devgovgigs.near to devhub.near (all access control, addons, and communities)
Posts are still stored on devgovgigs.near.
These are the remaining functions in code using the legacy contract:
- [ ] get_root_members -- admin panel
- [ ] remove_member
- [ ] has_moderator
- [ ] get_featured_communities
- [ ] get_access_control_info -- was causing failing tests in funding and create
- [ ] get_all_authors -- used when filtering posts
- [ ] get_all_labels -- used when creating posts
- [ ] get_post
- [ ] get_posts
- [ ] get_posts_by_author
- [ ] get_posts_by_label
- [ ] edit_post
- [ ] add_post
- [ ] grant notify permissions from devhub contract when posting
- [ ] add_like
- [ ] get_all_post_ids
- [ ] is_allowed_to_use_labels
- [ ] get_all_allowed_labels
- [ ] add_member (teams via admin panel)
- [ ] edit_member
We should migrate the data on the contract and then fix the usage in code when ready.
Legacy code for posts and labels should utilize the devhub-adapter rather than duplicate Near.call.