Skip to content

Commit

Permalink
feat: additional kyc check for review stage (#138)
Browse files Browse the repository at this point in the history
Closes NEAR-DevHub/neardevhub-bos#848 - adds
additional kyc check for review stage.

For that, VersionedTimelineStatus along with TimelineStatusV2 is
introduced

Also it removes posts functionality for the following reason:
```bash
Action #0: ExecutionError("Exceeded the prepaid gas.")
```
It arises on calling either `unsafe_self_upgrade` or `unsafe_migrate` on
`test_deploy_contract_self_upgrade` test. Because code size is too big. So
code for posts was removed.
  • Loading branch information
PolyProgrammist authored Jul 6, 2024
1 parent 4ee925c commit dcb78f1
Show file tree
Hide file tree
Showing 27 changed files with 386 additions and 1,733 deletions.
39 changes: 39 additions & 0 deletions src/common/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
use near_sdk::serde::{Deserialize, Serialize};
use near_sdk::borsh::{BorshDeserialize, BorshSerialize};
use near_sdk::{NearSchema, BorshStorageKey, CryptoHash};

#[derive(BorshSerialize, BorshDeserialize, Serialize, Deserialize, Clone, NearSchema)]
#[serde(crate = "near_sdk::serde")]
#[serde(tag = "post_version")]
#[borsh(crate = "near_sdk::borsh")]
pub enum VersionedPost {
V0,
}


#[derive(BorshSerialize, BorshStorageKey)]
#[borsh(crate = "near_sdk::borsh")]
pub enum StorageKey {
Ideas,
Solutions,
Attestations,
Sponsorships,
Comments,
Posts,
PostToParent,
PostToChildren,
/// Deprecated due to damaged storage state.
LabelToPosts,
LabelToPostsV2,
AuthorToAuthorPosts,
AuthorPosts(CryptoHash),
Communities,
AddOns,
Proposals,
LabelToProposals,
AuthorProposals,
RFPs,
LabelToRFPs,
RFPLinkedProposals,
LabelInfo,
}
Loading

0 comments on commit dcb78f1

Please sign in to comment.