Skip to content

Commit

Permalink
Merge pull request #5 from cybercongress/release_gift
Browse files Browse the repository at this point in the history
  • Loading branch information
cyborgshead authored Jan 13, 2022
2 parents ce16de4 + d94d7dd commit 40a29c7
Show file tree
Hide file tree
Showing 8 changed files with 460 additions and 102 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions contracts/cw-cyber-airdrop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ cw0 = "0.10"
cw2 = "0.10"
cw20 = "0.10"
cosmwasm-std = { version = "1.0.0-beta" }
cw-utils = { version = "0.11.0" }
cosmwasm-crypto = { version = "1.0.0-beta" }
cw-storage-plus = "0.10"
schemars = "0.8.3"
Expand Down
23 changes: 22 additions & 1 deletion contracts/cw-cyber-airdrop/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cosmwasm_std::{RecoverPubkeyError, StdError, VerificationError};
use cosmwasm_std::{OverflowError, RecoverPubkeyError, StdError, VerificationError};
use hex::FromHexError;
use thiserror::Error;

Expand All @@ -16,6 +16,9 @@ pub enum ContractError {
#[error("{0}")]
Verification(#[from] VerificationError),

#[error("{0}")]
Overflow(#[from] OverflowError),

#[error("Unauthorized")]
Unauthorized {},

Expand All @@ -25,6 +28,21 @@ pub enum ContractError {
#[error("Already claimed")]
Claimed {},

#[error("Not claimed")]
NotClaimed {},

#[error("Not activated")]
NotActivated {},

#[error("Stage released")]
StageReleased {},

#[error("Gift released")]
GiftReleased {},

#[error("Empty release state")]
EmptyReleaseState {},

#[error("Wrong length")]
WrongLength {},

Expand All @@ -33,4 +51,7 @@ pub enum ContractError {

#[error("Address is not eligible to claim airdrop, {msg}")]
IsNotEligible { msg: String },

#[error("Gift is over")]
GiftIsOver {},
}
Loading

0 comments on commit 40a29c7

Please sign in to comment.