andromedaprotocol/andromeda-core

[Crowdfund] Set up contract instantiation

Closed this issue · 0 comments

Description

Initialize the crowdfund ado with minimum necessary campaign metadata so that it can be started from scratch again.

Implementation

Contract at this point should be instantiated with the following information:

Any dependencies/issues that need resolved before this feature/enhancement can be implemented.

  • denom to be used for the campaign
  • campaign title, description, expiration time, etc

There should be predefined stages for the campaign as well in the following format.

pub enum CampaignStage {
  /// Stage when all necessary environment is set to start campaign
  READY,
  /// Stage when campaign is being carried out
  ONGOING,
  /// Stage when campaign is finished successfully
  SUCCEED,
  /// Stage when campaign failed to meet the target cap before expiration
  FAILED,
}

Dependencies

None

Acceptance Criteria

  • An ADO that allows a user to instantiate with campaign meta data
  • Unit tests