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

add, remove and get featured communities #42

Closed jaswinder6991 closed 1 year ago

jaswinder6991 commented 1 year ago

This PR addresses the issue https://github.com/near/neardevhub-contract/issues/36 Adding featured-communities on the contract side. I have added 4 functions here.

  1. add_featured_community
  2. get_featured_communitiesl
  3. delete_featured_community
  4. is_moderator (helper function for checking if the signer is a moderator.)

I am new to this, so don't really know much about migrations. Hence I have added something from some little research I did. Let me know if it needs to be changed.

carina-akaia commented 1 year ago

Closes #36

carina-akaia commented 1 year ago

@ailisp since we'll also need to add a migration for this update, I could implement it in case no one else can tackle this.

frol commented 1 year ago

@near-akaia-root I will push my migration code that we produced over the call shortly. Please, don't jump on it yet.

ailisp commented 1 year ago

@frol do we need to add migration tests in this PR?

frol commented 1 year ago

@ailisp I believe it should be a separate PR to address #35.