Skip to content

Fund-admin-pallet: udpate project information #260

@tlacloc

Description

@tlacloc

Description

We need to store the information of the state of the latest drawdowns on the project info

Suggested Solution

Add three new attributes for the project structure as

pub struct ProjectData<T: Config> {
    pub builder: Option<BoundedVec<T::AccountId, T::MaxBuildersPerProject>>,
    pub investor: Option<BoundedVec<T::AccountId, T::MaxInvestorsPerProject>>,
    pub issuer: Option<BoundedVec<T::AccountId, T::MaxIssuersPerProject>>,
    pub regional_center: Option<BoundedVec<T::AccountId, T::MaxRegionalCenterPerProject>>,
    pub title: FieldName,
    pub description: FieldDescription,
    pub image: CID,
    pub address: FieldName, 
    pub status: ProjectStatus,
    pub inflation_rate: Option<u32>,
    pub creation_date: u64,
    pub completion_date: u64,
    pub registration_date: u64,
    pub updated_date: u64,
    pub eb5_status: DrawdownStatus,
    pub construction_loan_status: DrawdownStatus,
    pub developer_equity_status: DrawdownStatus,
}

Alternatives

Add a new structure that handles that information instead of storing it in each attribute on the projects

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfund adminChanges related to the fund admin pallet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions