Skip to content

Commit

Permalink
integration testcases wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek-1857 committed Apr 7, 2024
1 parent 1f45877 commit 1afdd4a
Show file tree
Hide file tree
Showing 20 changed files with 2,181 additions and 2,102 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions contracts/external/snip20-reference-impl/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ impl InstantiateMsg {
pub struct InitConfig {
/// Indicates whether the total supply is public or should be kept secret.
/// default: False
public_total_supply: Option<bool>,
pub public_total_supply: Option<bool>,
/// Indicates whether deposit functionality should be enabled
/// default: False
enable_deposit: Option<bool>,
pub enable_deposit: Option<bool>,
/// Indicates whether redeem functionality should be enabled
/// default: False
enable_redeem: Option<bool>,
pub enable_redeem: Option<bool>,
/// Indicates whether mint functionality should be enabled
/// default: False
enable_mint: Option<bool>,
pub enable_mint: Option<bool>,
/// Indicates whether burn functionality should be enabled
/// default: False
enable_burn: Option<bool>,
pub enable_burn: Option<bool>,
/// Indicated whether an admin can modify supported denoms
/// default: False
can_modify_denoms: Option<bool>,
pub can_modify_denoms: Option<bool>,
}

impl InitConfig {
Expand Down
6 changes: 3 additions & 3 deletions contracts/external/snip721-reference-impl/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::royalties::{DisplayRoyaltyInfo, RoyaltyInfo};
use crate::token::{Extension, Metadata};

/// Instantiation message
#[derive(Serialize, Deserialize, JsonSchema)]
#[derive(Serialize, Deserialize, JsonSchema, Debug, Clone)]
pub struct InstantiateMsg {
/// name of token contract
pub name: String,
Expand Down Expand Up @@ -105,7 +105,7 @@ pub struct PostInstantiateCallback {
pub send: Vec<Coin>,
}

#[derive(Serialize, Deserialize, JsonSchema)]
#[derive(Serialize, Deserialize, JsonSchema, Debug, Clone)]
#[serde(rename_all = "snake_case")]
pub enum ExecuteMsg {
/// mint new token
Expand Down Expand Up @@ -413,7 +413,7 @@ pub enum ExecuteMsg {
}

/// permission access level
#[derive(Serialize, Deserialize, JsonSchema, Debug)]
#[derive(Serialize, Deserialize, JsonSchema, Debug, Clone)]
#[serde(rename_all = "snake_case")]
pub enum AccessLevel {
/// approve permission only for the specified token
Expand Down
4 changes: 2 additions & 2 deletions contracts/external/snip721-roles/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use shade_protocol::utils::asset::RawContract;

use crate::snip721::{self, Snip721ExecuteMsg, Snip721QueryMsg};

#[derive(Serialize, Deserialize, JsonSchema)]
#[derive(Serialize, Deserialize, JsonSchema, Debug, Clone)]
pub struct InstantiateMsg {
/// Code ID for snip721 token contract.
pub code_id: u64,
Expand Down Expand Up @@ -35,7 +35,7 @@ pub struct InstantiateResponse {
pub code_hash: String,
}

#[derive(Serialize, Deserialize, JsonSchema)]
#[derive(Serialize, Deserialize, JsonSchema, Debug, Clone)]
pub enum ExecuteMsg {
Snip721Execute(Box<Snip721ExecuteMsg>),
ExtensionExecute(ExecuteExt),
Expand Down
4 changes: 2 additions & 2 deletions contracts/external/snip721-roles/src/snip721.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub struct PostInstantiateCallback {
pub send: Vec<Coin>,
}

#[derive(Serialize, Deserialize, JsonSchema)]
#[derive(Serialize, Deserialize, JsonSchema, Debug, Clone)]
#[serde(rename_all = "snake_case")]
pub enum Snip721ExecuteMsg {
/// mint new token
Expand Down Expand Up @@ -411,7 +411,7 @@ impl HandleCallback for Snip721ExecuteMsg {
}

/// permission access level
#[derive(Serialize, Deserialize, JsonSchema, Debug)]
#[derive(Serialize, Deserialize, JsonSchema, Debug, Clone)]
#[serde(rename_all = "snake_case")]
pub enum AccessLevel {
/// approve permission only for the specified token
Expand Down
Loading

0 comments on commit 1afdd4a

Please sign in to comment.