NEAR-DevHub / neardevhub-contract

DevHub Portal Product Contract (Hosted on NEAR Blockchain) – Includes other instances (e.g. Infrastructure, Events)
https://neardevhub.org
19 stars 15 forks source link

Addon Cleanup #74

Closed elliotBraem closed 11 months ago

elliotBraem commented 11 months ago

After implementing the new addon framework, we have some pieces of the community struct and contract that are no longer used.

This is the current struct:

pub struct Community {
    pub admins: Vec<AccountId>,
    pub handle: CommunityHandle,
    pub name: String,
    pub tag: String,
    pub description: String,
    pub logo_url: String,
    pub banner_url: String,
    pub bio_markdown: Option<String>,
    pub github_handle: Option<String>,
    pub telegram_handle: Vec<String>,
    pub twitter_handle: Option<String>,
    pub website_url: Option<String>,
    pub github: Option<String>, // remove
    pub board: Option<String>, // remove
    pub wiki1: Option<WikiPage>, //remove
    pub wiki2: Option<WikiPage>, //remove
    pub features: CommunityFeatureFlags, //remove
    pub addons: Vec<CommunityAddOn>,
}

We can remove "github", "board", "wiki1", "wiki2", "features".

With these removed, we can also remove some functions:

There may be more, I would recommend a thorough search.

Tguntenaar commented 11 months ago

I will pick this up right now