diff --git a/Makefile b/Makefile index 42a1633bf..cd45048ce 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ deploy-local: docker kill stargaze || true docker volume rm -f stargaze_data docker run --rm -d --name stargaze \ - -e DENOM=ustars \ + -e DENOM=ugaze \ -e CHAINID=testing \ -e GAS_LIMIT=$(GAS_LIMIT) \ -p 1317:1317 \ diff --git a/contracts/collections/sg721-updatable/src/contract.rs b/contracts/collections/sg721-updatable/src/contract.rs index 64d98688f..421e9a518 100644 --- a/contracts/collections/sg721-updatable/src/contract.rs +++ b/contracts/collections/sg721-updatable/src/contract.rs @@ -16,9 +16,10 @@ use crate::state::ENABLE_UPDATABLE; use cw721_base::Extension; use cw_utils::nonpayable; -use sg1::checked_fair_burn; +use sg1::transfer_funds_to_launchpad_dao; use sg721_base::ContractError::Unauthorized; use sg721_base::Sg721Contract; +use sg_utils::NATIVE_DENOM; pub type Sg721UpdatableContract<'a> = Sg721Contract<'a, Extension>; const CONTRACT_NAME: &str = "crates.io:sg721-updatable"; @@ -50,7 +51,7 @@ pub fn _instantiate( pub fn execute_enable_updatable( deps: DepsMut, - env: Env, + _env: Env, info: MessageInfo, ) -> Result<Response, ContractError> { let enable_updates = ENABLE_UPDATABLE.load(deps.storage)?; @@ -66,8 +67,7 @@ pub fn execute_enable_updatable( return Err(ContractError::Base(Unauthorized {})); } - // Check fee matches enable updatable fee and add fairburn msg - checked_fair_burn(&info, &env, ENABLE_UPDATABLE_FEE, None, &mut res)?; + transfer_funds_to_launchpad_dao(&info, ENABLE_UPDATABLE_FEE, NATIVE_DENOM, &mut res)?; ENABLE_UPDATABLE.save(deps.storage, &true)?; diff --git a/contracts/factories/base-factory/src/contract.rs b/contracts/factories/base-factory/src/contract.rs index 3b1b34138..76574b34d 100644 --- a/contracts/factories/base-factory/src/contract.rs +++ b/contracts/factories/base-factory/src/contract.rs @@ -7,7 +7,7 @@ use cosmwasm_std::{ use cw2::set_contract_version; use cw_utils::must_pay; use semver::Version; -use sg1::{checked_fair_burn, transfer_funds_to_launchpad_dao}; +use sg1::transfer_funds_to_launchpad_dao; use sg2::msg::UpdateMinterParamsMsg; use sg2::query::{AllowedCollectionCodeIdResponse, AllowedCollectionCodeIdsResponse, Sg2QueryMsg}; use sg2::MinterParams; @@ -53,7 +53,7 @@ pub fn execute( pub fn execute_create_minter( deps: DepsMut, - env: Env, + _env: Env, info: MessageInfo, msg: BaseMinterCreateMsg, ) -> Result<Response, ContractError> { @@ -64,22 +64,13 @@ pub fn execute_create_minter( must_not_be_frozen(¶ms)?; let mut res = Response::new(); - if params.creation_fee.denom == NATIVE_DENOM { - checked_fair_burn( - &info, - &env, - params.creation_fee.amount.u128(), - None, - &mut res, - )?; - } else { - transfer_funds_to_launchpad_dao( - &info, - params.creation_fee.amount.u128(), - ¶ms.creation_fee.denom, - &mut res, - )?; - } + + transfer_funds_to_launchpad_dao( + &info, + params.creation_fee.amount.u128(), + ¶ms.creation_fee.denom, + &mut res, + )?; let msg = WasmMsg::Instantiate { admin: Some(info.sender.to_string()), diff --git a/contracts/factories/open-edition-factory/src/contract.rs b/contracts/factories/open-edition-factory/src/contract.rs index 000e30c57..1f33bfec4 100644 --- a/contracts/factories/open-edition-factory/src/contract.rs +++ b/contracts/factories/open-edition-factory/src/contract.rs @@ -1,3 +1,7 @@ +use base_factory::contract::{ + must_be_allowed_collection, must_not_be_frozen, must_pay_exact_amount, update_params, +}; +use base_factory::ContractError as BaseContractError; #[cfg(not(feature = "library"))] use cosmwasm_std::entry_point; use cosmwasm_std::{ @@ -6,13 +10,7 @@ use cosmwasm_std::{ }; use cw2::set_contract_version; use semver::Version; -use sg_utils::NATIVE_DENOM; - -use base_factory::contract::{ - must_be_allowed_collection, must_not_be_frozen, must_pay_exact_amount, update_params, -}; -use base_factory::ContractError as BaseContractError; -use sg1::{checked_fair_burn, transfer_funds_to_launchpad_dao}; +use sg1::transfer_funds_to_launchpad_dao; use sg2::query::{AllowedCollectionCodeIdResponse, AllowedCollectionCodeIdsResponse, Sg2QueryMsg}; use crate::error::ContractError; @@ -69,22 +67,13 @@ pub fn execute_create_minter( must_not_be_frozen(¶ms)?; let mut res = Response::new(); - if params.creation_fee.denom == NATIVE_DENOM { - checked_fair_burn( - &info, - &env, - params.creation_fee.amount.u128(), - None, - &mut res, - )?; - } else { - transfer_funds_to_launchpad_dao( - &info, - params.creation_fee.amount.u128(), - ¶ms.creation_fee.denom, - &mut res, - )?; - } + + transfer_funds_to_launchpad_dao( + &info, + params.creation_fee.amount.u128(), + ¶ms.creation_fee.denom, + &mut res, + )?; msg.init_msg = OpenEditionMinterInitMsgExtension::validate( msg.init_msg.clone(), diff --git a/contracts/factories/token-merge-factory/src/contract.rs b/contracts/factories/token-merge-factory/src/contract.rs index 3c0086329..43107e29a 100644 --- a/contracts/factories/token-merge-factory/src/contract.rs +++ b/contracts/factories/token-merge-factory/src/contract.rs @@ -8,7 +8,7 @@ use cosmwasm_std::{ use cw2::set_contract_version; use cw_utils::must_pay; use semver::Version; -use sg1::{checked_fair_burn, transfer_funds_to_launchpad_dao}; +use sg1::transfer_funds_to_launchpad_dao; use sg_utils::NATIVE_DENOM; use crate::error::ContractError; @@ -51,7 +51,7 @@ pub fn execute( pub fn execute_create_minter( deps: DepsMut, - env: Env, + _env: Env, info: MessageInfo, msg: TokenMergeMinterCreateMsg, ) -> Result<Response, ContractError> { @@ -67,22 +67,13 @@ pub fn execute_create_minter( ensure!(!params.frozen, ContractError::Frozen {}); let mut res = Response::new(); - if params.creation_fee.denom == NATIVE_DENOM { - checked_fair_burn( - &info, - &env, - params.creation_fee.amount.u128(), - None, - &mut res, - )?; - } else { - transfer_funds_to_launchpad_dao( - &info, - params.creation_fee.amount.u128(), - ¶ms.creation_fee.denom, - &mut res, - )?; - } + + transfer_funds_to_launchpad_dao( + &info, + params.creation_fee.amount.u128(), + ¶ms.creation_fee.denom, + &mut res, + )?; // Check the number of tokens is more than zero and less than the max limit if msg.init_msg.num_tokens == 0 || msg.init_msg.num_tokens > params.max_token_limit { diff --git a/contracts/factories/vending-factory/src/contract.rs b/contracts/factories/vending-factory/src/contract.rs index 798a70c82..96f003f7e 100644 --- a/contracts/factories/vending-factory/src/contract.rs +++ b/contracts/factories/vending-factory/src/contract.rs @@ -9,7 +9,7 @@ use cosmwasm_std::{ use cw2::set_contract_version; use cw_utils::must_pay; use semver::Version; -use sg1::{checked_fair_burn, transfer_funds_to_launchpad_dao}; +use sg1::transfer_funds_to_launchpad_dao; use sg2::query::{AllowedCollectionCodeIdResponse, AllowedCollectionCodeIdsResponse, Sg2QueryMsg}; use sg_utils::NATIVE_DENOM; @@ -53,7 +53,7 @@ pub fn execute( pub fn execute_create_minter( deps: DepsMut, - env: Env, + _env: Env, info: MessageInfo, msg: VendingMinterCreateMsg, ) -> Result<Response, ContractError> { @@ -64,22 +64,13 @@ pub fn execute_create_minter( must_not_be_frozen(¶ms)?; let mut res = Response::new(); - if params.creation_fee.denom == NATIVE_DENOM { - checked_fair_burn( - &info, - &env, - params.creation_fee.amount.u128(), - None, - &mut res, - )?; - } else { - transfer_funds_to_launchpad_dao( - &info, - params.creation_fee.amount.u128(), - ¶ms.creation_fee.denom, - &mut res, - )?; - } + + transfer_funds_to_launchpad_dao( + &info, + params.creation_fee.amount.u128(), + ¶ms.creation_fee.denom, + &mut res, + )?; // Check the number of tokens is more than zero and less than the max limit if msg.init_msg.num_tokens == 0 || msg.init_msg.num_tokens > params.extension.max_token_limit { diff --git a/contracts/minters/base-minter/src/contract.rs b/contracts/minters/base-minter/src/contract.rs index c090f723f..174803cd9 100644 --- a/contracts/minters/base-minter/src/contract.rs +++ b/contracts/minters/base-minter/src/contract.rs @@ -11,7 +11,7 @@ use cosmwasm_std::{ }; use cw2::set_contract_version; use cw_utils::{must_pay, nonpayable, parse_reply_instantiate_data}; -use sg1::checked_fair_burn; +use sg1::transfer_funds_to_launchpad_dao; use sg2::query::Sg2QueryMsg; use sg4::{QueryMsg, Status, StatusResponse, SudoMsg}; use sg721::{ExecuteMsg as Sg721ExecuteMsg, InstantiateMsg as Sg721InstantiateMsg}; @@ -111,7 +111,7 @@ pub fn execute( pub fn execute_mint_sender( deps: DepsMut, - env: Env, + _env: Env, info: MessageInfo, token_uri: String, ) -> Result<Response, ContractError> { @@ -150,7 +150,8 @@ pub fn execute_mint_sender( if network_fee != funds_sent { return Err(ContractError::InvalidMintPrice {}); } - checked_fair_burn(&info, &env, network_fee.u128(), None, &mut res)?; + + transfer_funds_to_launchpad_dao(&info, network_fee.u128(), NATIVE_DENOM, &mut res)?; // Create mint msgs let mint_msg = Sg721ExecuteMsg::<Extension, Empty>::Mint { diff --git a/contracts/minters/token-merge-minter/src/contract.rs b/contracts/minters/token-merge-minter/src/contract.rs index 47dc682ed..76995a2ca 100644 --- a/contracts/minters/token-merge-minter/src/contract.rs +++ b/contracts/minters/token-merge-minter/src/contract.rs @@ -22,10 +22,10 @@ use cw_utils::{may_pay, nonpayable, parse_reply_instantiate_data}; use nois::{int_in_range, shuffle}; use semver::Version; -use sg1::{checked_fair_burn, distribute_mint_fees}; +use sg1::{distribute_mint_fees, transfer_funds_to_launchpad_dao}; use sg4::{Status, StatusResponse, SudoMsg}; use sg721::{ExecuteMsg as Sg721ExecuteMsg, InstantiateMsg as Sg721InstantiateMsg}; -use sg_utils::GENESIS_MINT_START_TIME; +use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; use sha2::{Digest, Sha256}; use std::convert::TryInto; @@ -349,12 +349,10 @@ pub fn execute_shuffle( .query_wasm_smart(config.factory, &FactoryQueryMsg::Params {})?; let factory_params = factory.params; - // Check exact shuffle fee payment included in message - checked_fair_burn( + transfer_funds_to_launchpad_dao( &info, - &env, factory_params.shuffle_fee.amount.u128(), - None, + NATIVE_DENOM, &mut res, )?; diff --git a/contracts/minters/vending-minter-featured/src/contract.rs b/contracts/minters/vending-minter-featured/src/contract.rs index dd43d8868..a07bb2593 100644 --- a/contracts/minters/vending-minter-featured/src/contract.rs +++ b/contracts/minters/vending-minter-featured/src/contract.rs @@ -22,12 +22,12 @@ use cw721_base::Extension; use cw_utils::{may_pay, maybe_addr, nonpayable, parse_reply_instantiate_data}; use semver::Version; -use sg1::{checked_fair_burn, distribute_mint_fees}; +use sg1::{distribute_mint_fees, transfer_funds_to_launchpad_dao}; use sg2::query::Sg2QueryMsg; use sg4::{MinterConfig, Status, StatusResponse, SudoMsg}; use sg721::{ExecuteMsg as Sg721ExecuteMsg, InstantiateMsg as Sg721InstantiateMsg}; use sg_tiered_whitelist::msg::{QueryMsg as TieredWhitelistQueryMsg, StageResponse}; -use sg_utils::GENESIS_MINT_START_TIME; +use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; use sg_whitelist::msg::{ ConfigResponse as WhitelistConfigResponse, HasMemberResponse, QueryMsg as WhitelistQueryMsg, }; @@ -367,12 +367,10 @@ pub fn execute_shuffle( .query_wasm_smart(config.factory, &Sg2QueryMsg::Params {})?; let factory_params = factory.params; - // Check exact shuffle fee payment included in message - checked_fair_burn( + transfer_funds_to_launchpad_dao( &info, - &env, factory_params.extension.shuffle_fee.amount.u128(), - None, + NATIVE_DENOM, &mut res, )?; diff --git a/contracts/minters/vending-minter-merkle-wl-featured/src/contract.rs b/contracts/minters/vending-minter-merkle-wl-featured/src/contract.rs index 3fca11af6..bcc1a8730 100644 --- a/contracts/minters/vending-minter-merkle-wl-featured/src/contract.rs +++ b/contracts/minters/vending-minter-merkle-wl-featured/src/contract.rs @@ -22,11 +22,11 @@ use cw721_base::Extension; use cw_utils::{may_pay, maybe_addr, nonpayable, parse_reply_instantiate_data}; use semver::Version; -use sg1::{checked_fair_burn, distribute_mint_fees}; +use sg1::{distribute_mint_fees, transfer_funds_to_launchpad_dao}; use sg2::query::Sg2QueryMsg; use sg4::{MinterConfig, Status, StatusResponse, SudoMsg}; use sg721::{ExecuteMsg as Sg721ExecuteMsg, InstantiateMsg as Sg721InstantiateMsg}; -use sg_utils::GENESIS_MINT_START_TIME; +use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; use sg_whitelist::msg::{ ConfigResponse as WhitelistConfigResponse, HasMemberResponse, QueryMsg as WhitelistQueryMsg, }; @@ -369,12 +369,10 @@ pub fn execute_shuffle( .query_wasm_smart(config.factory, &Sg2QueryMsg::Params {})?; let factory_params = factory.params; - // Check exact shuffle fee payment included in message - checked_fair_burn( + transfer_funds_to_launchpad_dao( &info, - &env, factory_params.extension.shuffle_fee.amount.u128(), - None, + NATIVE_DENOM, &mut res, )?; diff --git a/contracts/minters/vending-minter-merkle-wl/src/contract.rs b/contracts/minters/vending-minter-merkle-wl/src/contract.rs index a98898dfb..57a06711a 100644 --- a/contracts/minters/vending-minter-merkle-wl/src/contract.rs +++ b/contracts/minters/vending-minter-merkle-wl/src/contract.rs @@ -22,11 +22,11 @@ use cw721_base::Extension; use cw_utils::{may_pay, maybe_addr, nonpayable, parse_reply_instantiate_data}; use nois::{int_in_range, shuffle}; use semver::Version; -use sg1::{checked_fair_burn, distribute_mint_fees}; +use sg1::{distribute_mint_fees, transfer_funds_to_launchpad_dao}; use sg2::query::Sg2QueryMsg; use sg4::{MinterConfig, Status, StatusResponse, SudoMsg}; use sg721::{ExecuteMsg as Sg721ExecuteMsg, InstantiateMsg as Sg721InstantiateMsg}; -use sg_utils::GENESIS_MINT_START_TIME; +use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; use sg_whitelist::msg::{ ConfigResponse as WhitelistConfigResponse, HasMemberResponse, QueryMsg as WhitelistQueryMsg, }; @@ -368,12 +368,10 @@ pub fn execute_shuffle( .query_wasm_smart(config.factory, &Sg2QueryMsg::Params {})?; let factory_params = factory.params; - // Check exact shuffle fee payment included in message - checked_fair_burn( + transfer_funds_to_launchpad_dao( &info, - &env, factory_params.extension.shuffle_fee.amount.u128(), - None, + NATIVE_DENOM, &mut res, )?; diff --git a/contracts/minters/vending-minter-wl-flex-featured/src/contract.rs b/contracts/minters/vending-minter-wl-flex-featured/src/contract.rs index a041b3cfc..a7ac9173a 100644 --- a/contracts/minters/vending-minter-wl-flex-featured/src/contract.rs +++ b/contracts/minters/vending-minter-wl-flex-featured/src/contract.rs @@ -21,12 +21,12 @@ use cw721_base::Extension; use cw_utils::{may_pay, maybe_addr, nonpayable, parse_reply_instantiate_data}; use nois::{int_in_range, shuffle}; use semver::Version; -use sg1::{checked_fair_burn, distribute_mint_fees}; +use sg1::{distribute_mint_fees, transfer_funds_to_launchpad_dao}; use sg2::query::Sg2QueryMsg; use sg4::{MinterConfig, Status, StatusResponse, SudoMsg}; use sg721::{ExecuteMsg as Sg721ExecuteMsg, InstantiateMsg as Sg721InstantiateMsg}; use sg_tiered_whitelist_flex::msg::{QueryMsg as TieredWhitelistQueryMsg, StageResponse}; -use sg_utils::GENESIS_MINT_START_TIME; +use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; use sg_whitelist_flex::msg::{ ConfigResponse as WhitelistConfigResponse, HasMemberResponse, Member, QueryMsg as WhitelistQueryMsg, @@ -355,12 +355,10 @@ pub fn execute_shuffle( .query_wasm_smart(config.factory, &Sg2QueryMsg::Params {})?; let factory_params = factory.params; - // Check exact shuffle fee payment included in message - checked_fair_burn( + transfer_funds_to_launchpad_dao( &info, - &env, factory_params.extension.shuffle_fee.amount.u128(), - None, + NATIVE_DENOM, &mut res, )?; diff --git a/contracts/minters/vending-minter-wl-flex/src/contract.rs b/contracts/minters/vending-minter-wl-flex/src/contract.rs index 67dc50299..82523e648 100644 --- a/contracts/minters/vending-minter-wl-flex/src/contract.rs +++ b/contracts/minters/vending-minter-wl-flex/src/contract.rs @@ -21,12 +21,12 @@ use cw721_base::Extension; use cw_utils::{may_pay, maybe_addr, nonpayable, parse_reply_instantiate_data}; use semver::Version; -use sg1::{checked_fair_burn, distribute_mint_fees}; +use sg1::{distribute_mint_fees, transfer_funds_to_launchpad_dao}; use sg2::query::Sg2QueryMsg; use sg4::{MinterConfig, Status, StatusResponse, SudoMsg}; use sg721::{ExecuteMsg as Sg721ExecuteMsg, InstantiateMsg as Sg721InstantiateMsg}; use sg_tiered_whitelist_flex::msg::{QueryMsg as TieredWhitelistQueryMsg, StageResponse}; -use sg_utils::GENESIS_MINT_START_TIME; +use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; use sg_whitelist_flex::msg::{ ConfigResponse as WhitelistConfigResponse, HasMemberResponse, Member, QueryMsg as WhitelistQueryMsg, @@ -356,12 +356,10 @@ pub fn execute_shuffle( .query_wasm_smart(config.factory, &Sg2QueryMsg::Params {})?; let factory_params = factory.params; - // Check exact shuffle fee payment included in message - checked_fair_burn( + transfer_funds_to_launchpad_dao( &info, - &env, factory_params.extension.shuffle_fee.amount.u128(), - None, + NATIVE_DENOM, &mut res, )?; diff --git a/contracts/minters/vending-minter/src/contract.rs b/contracts/minters/vending-minter/src/contract.rs index 548217b16..bb35d9913 100644 --- a/contracts/minters/vending-minter/src/contract.rs +++ b/contracts/minters/vending-minter/src/contract.rs @@ -23,12 +23,12 @@ use cw_utils::{may_pay, maybe_addr, nonpayable, parse_reply_instantiate_data}; use nois::{int_in_range, shuffle}; use semver::Version; -use sg1::{checked_fair_burn, distribute_mint_fees}; +use sg1::{distribute_mint_fees, transfer_funds_to_launchpad_dao}; use sg2::query::Sg2QueryMsg; use sg4::{MinterConfig, Status, StatusResponse, SudoMsg}; use sg721::{ExecuteMsg as Sg721ExecuteMsg, InstantiateMsg as Sg721InstantiateMsg}; use sg_tiered_whitelist::msg::{QueryMsg as TieredWhitelistQueryMsg, StageResponse}; -use sg_utils::GENESIS_MINT_START_TIME; +use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; use sg_whitelist::msg::{ ConfigResponse as WhitelistConfigResponse, HasMemberResponse, QueryMsg as WhitelistQueryMsg, }; @@ -364,12 +364,10 @@ pub fn execute_shuffle( .query_wasm_smart(config.factory, &Sg2QueryMsg::Params {})?; let factory_params = factory.params; - // Check exact shuffle fee payment included in message - checked_fair_burn( + transfer_funds_to_launchpad_dao( &info, - &env, factory_params.extension.shuffle_fee.amount.u128(), - None, + NATIVE_DENOM, &mut res, )?; diff --git a/contracts/whitelists/tiered-whitelist-flex/src/contract.rs b/contracts/whitelists/tiered-whitelist-flex/src/contract.rs index 36b6bd3f5..61482fc59 100644 --- a/contracts/whitelists/tiered-whitelist-flex/src/contract.rs +++ b/contracts/whitelists/tiered-whitelist-flex/src/contract.rs @@ -25,7 +25,7 @@ use cw_storage_plus::Bound; use cw_utils::{may_pay, maybe_addr, must_pay}; use rust_decimal::prelude::ToPrimitive; use rust_decimal::Decimal; -use sg1::checked_fair_burn; +use sg1::transfer_funds_to_launchpad_dao; use sg_utils::NATIVE_DENOM; // version info for migration info @@ -96,7 +96,7 @@ pub fn instantiate( ADMIN_LIST.save(deps.storage, &admin_config)?; let mut res = Response::new(); - checked_fair_burn(&info, &env, creation_fee, None, &mut res)?; + transfer_funds_to_launchpad_dao(&info, creation_fee, NATIVE_DENOM, &mut res)?; if config.member_limit < config.num_members { return Err(ContractError::MembersExceeded { @@ -359,7 +359,7 @@ pub fn execute_remove_stage( /// Increase member limit. Must include a fee if crossing 1000, 2000, etc member limit. pub fn execute_increase_member_limit( deps: DepsMut, - env: Env, + _env: Env, info: MessageInfo, member_limit: u32, ) -> Result<Response, ContractError> { @@ -390,7 +390,7 @@ pub fn execute_increase_member_limit( let mut res = Response::new(); if upgrade_fee > 0 { - checked_fair_burn(&info, &env, upgrade_fee, None, &mut res)? + transfer_funds_to_launchpad_dao(&info, upgrade_fee, NATIVE_DENOM, &mut res)?; } config.member_limit = member_limit; diff --git a/contracts/whitelists/tiered-whitelist-merkletree/src/contract.rs b/contracts/whitelists/tiered-whitelist-merkletree/src/contract.rs index 7195655b5..cb388a325 100644 --- a/contracts/whitelists/tiered-whitelist-merkletree/src/contract.rs +++ b/contracts/whitelists/tiered-whitelist-merkletree/src/contract.rs @@ -24,7 +24,7 @@ use cw_utils::must_pay; use sg_utils::NATIVE_DENOM; use semver::Version; -use sg1::checked_fair_burn; +use sg1::transfer_funds_to_launchpad_dao; // version info for migration info const CONTRACT_NAME: &str = "crates.io:tiered-whitelist-merkletree"; @@ -63,7 +63,7 @@ pub fn instantiate( validate_stages(&env, &msg.stages)?; let mut res = Response::new(); - checked_fair_burn(&info, &env, CREATION_FEE, None, &mut res)?; + transfer_funds_to_launchpad_dao(&info, CREATION_FEE, NATIVE_DENOM, &mut res)?; let config = Config { stages: msg.stages }; diff --git a/contracts/whitelists/tiered-whitelist/src/contract.rs b/contracts/whitelists/tiered-whitelist/src/contract.rs index 9605d72bb..ac228f73c 100644 --- a/contracts/whitelists/tiered-whitelist/src/contract.rs +++ b/contracts/whitelists/tiered-whitelist/src/contract.rs @@ -25,7 +25,7 @@ use cw_storage_plus::Bound; use cw_utils::{may_pay, maybe_addr, must_pay}; use rust_decimal::prelude::ToPrimitive; use rust_decimal::Decimal; -use sg1::checked_fair_burn; +use sg1::transfer_funds_to_launchpad_dao; use sg_utils::NATIVE_DENOM; // version info for migration info @@ -94,7 +94,7 @@ pub fn instantiate( ADMIN_LIST.save(deps.storage, &admin_config)?; let mut res = Response::new(); - checked_fair_burn(&info, &env, creation_fee, None, &mut res)?; + transfer_funds_to_launchpad_dao(&info, creation_fee, NATIVE_DENOM, &mut res)?; if config.member_limit < config.num_members { return Err(ContractError::MembersExceeded { @@ -359,7 +359,7 @@ pub fn execute_remove_stage( /// Increase member limit. Must include a fee if crossing 1000, 2000, etc member limit. pub fn execute_increase_member_limit( deps: DepsMut, - env: Env, + _env: Env, info: MessageInfo, member_limit: u32, ) -> Result<Response, ContractError> { @@ -390,7 +390,7 @@ pub fn execute_increase_member_limit( let mut res = Response::new(); if upgrade_fee > 0 { - checked_fair_burn(&info, &env, upgrade_fee, None, &mut res)? + transfer_funds_to_launchpad_dao(&info, upgrade_fee, NATIVE_DENOM, &mut res)?; } config.member_limit = member_limit; diff --git a/contracts/whitelists/whitelist-flex/src/contract.rs b/contracts/whitelists/whitelist-flex/src/contract.rs index 060722bdf..a6b5ec3b4 100644 --- a/contracts/whitelists/whitelist-flex/src/contract.rs +++ b/contracts/whitelists/whitelist-flex/src/contract.rs @@ -20,7 +20,7 @@ use cw_storage_plus::Bound; use cw_utils::{may_pay, maybe_addr, must_pay}; use rust_decimal::prelude::ToPrimitive; use rust_decimal::Decimal; -use sg1::checked_fair_burn; +use sg1::transfer_funds_to_launchpad_dao; use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; // version info for migration info @@ -112,7 +112,7 @@ pub fn instantiate( } let mut res = Response::new(); - checked_fair_burn(&info, &env, creation_fee, None, &mut res)?; + transfer_funds_to_launchpad_dao(&info, creation_fee, NATIVE_DENOM, &mut res)?; if config.member_limit < config.num_members { return Err(ContractError::MembersExceeded { @@ -281,7 +281,7 @@ pub fn execute_remove_members( /// Increase member limit. Must include a fee if crossing 1000, 2000, etc member limit. pub fn execute_increase_member_limit( deps: DepsMut, - env: Env, + _env: Env, info: MessageInfo, member_limit: u32, ) -> Result<Response, ContractError> { @@ -312,7 +312,7 @@ pub fn execute_increase_member_limit( let mut res = Response::new(); if upgrade_fee > 0 { - checked_fair_burn(&info, &env, upgrade_fee, None, &mut res)? + transfer_funds_to_launchpad_dao(&info, upgrade_fee, NATIVE_DENOM, &mut res)?; } config.member_limit = member_limit; diff --git a/contracts/whitelists/whitelist-merkletree/src/contract.rs b/contracts/whitelists/whitelist-merkletree/src/contract.rs index cbea683eb..9177519e2 100644 --- a/contracts/whitelists/whitelist-merkletree/src/contract.rs +++ b/contracts/whitelists/whitelist-merkletree/src/contract.rs @@ -22,7 +22,7 @@ use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; use rs_merkle::{algorithms::Sha256, Hasher}; use semver::Version; -use sg1::checked_fair_burn; +use sg1::transfer_funds_to_launchpad_dao; // version info for migration info const CONTRACT_NAME: &str = "crates.io:whitelist-merkletree"; @@ -74,7 +74,7 @@ pub fn instantiate( } let mut res = Response::new(); - checked_fair_burn(&info, &env, CREATION_FEE, None, &mut res)?; + transfer_funds_to_launchpad_dao(&info, CREATION_FEE, NATIVE_DENOM, &mut res)?; let config = Config { start_time: msg.start_time, diff --git a/contracts/whitelists/whitelist-merkletree/src/tests/unit_tests.rs b/contracts/whitelists/whitelist-merkletree/src/tests/unit_tests.rs index bfe163b15..a9b81ef59 100644 --- a/contracts/whitelists/whitelist-merkletree/src/tests/unit_tests.rs +++ b/contracts/whitelists/whitelist-merkletree/src/tests/unit_tests.rs @@ -41,7 +41,7 @@ mod tests { }; let info = mock_info(ADMIN, &[coin(CREATION_AMOUNT, NATIVE_DENOM)]); let res = instantiate(deps, mock_env(), info, msg).unwrap(); - assert_eq!(2, res.messages.len()); + assert_eq!(1, res.messages.len()); assert_eq!(5, res.attributes.len()); } @@ -97,7 +97,7 @@ mod tests { per_address_limit: 1, start_time: GENESIS_START_TIME, end_time: END_TIME, - mint_price: coin(UNIT_AMOUNT, "not_ustars"), + mint_price: coin(UNIT_AMOUNT, "not_ugaze"), admins: vec![ADMIN.to_string()], admins_mutable: false, }, diff --git a/contracts/whitelists/whitelist/src/contract.rs b/contracts/whitelists/whitelist/src/contract.rs index 3bc27e0f4..6c8c6ae19 100644 --- a/contracts/whitelists/whitelist/src/contract.rs +++ b/contracts/whitelists/whitelist/src/contract.rs @@ -20,7 +20,7 @@ use cw_storage_plus::Bound; use cw_utils::{may_pay, maybe_addr, must_pay}; use rust_decimal::prelude::ToPrimitive; use rust_decimal::Decimal; -use sg1::checked_fair_burn; +use sg1::transfer_funds_to_launchpad_dao; use sg_utils::{GENESIS_MINT_START_TIME, NATIVE_DENOM}; // version info for migration info @@ -124,7 +124,7 @@ pub fn instantiate( } let mut res = Response::new(); - checked_fair_burn(&info, &env, creation_fee, None, &mut res)?; + transfer_funds_to_launchpad_dao(&info, creation_fee, NATIVE_DENOM, &mut res)?; if config.member_limit < config.num_members { return Err(ContractError::MembersExceeded { @@ -320,7 +320,7 @@ pub fn execute_update_per_address_limit( /// Increase member limit. Must include a fee if crossing 1000, 2000, etc member limit. pub fn execute_increase_member_limit( deps: DepsMut, - env: Env, + _env: Env, info: MessageInfo, member_limit: u32, ) -> Result<Response, ContractError> { @@ -351,7 +351,7 @@ pub fn execute_increase_member_limit( let mut res = Response::new(); if upgrade_fee > 0 { - checked_fair_burn(&info, &env, upgrade_fee, None, &mut res)? + transfer_funds_to_launchpad_dao(&info, upgrade_fee, NATIVE_DENOM, &mut res)?; } config.member_limit = member_limit; diff --git a/e2e/configs/cosm-orc.yaml b/e2e/configs/cosm-orc.yaml index 4b18ec1e7..8648c9a01 100644 --- a/e2e/configs/cosm-orc.yaml +++ b/e2e/configs/cosm-orc.yaml @@ -1,6 +1,6 @@ chain_cfg: - denom: "ustars" - prefix: "stars" + denom: "ugaze" + prefix: "init" chain_id: "testing" grpc_endpoint: "http://localhost:9090/" gas_prices: 0.1 diff --git a/packages/sg-utils/src/lib.rs b/packages/sg-utils/src/lib.rs index f6fb22773..9a35f9f72 100644 --- a/packages/sg-utils/src/lib.rs +++ b/packages/sg-utils/src/lib.rs @@ -1,3 +1,3 @@ -pub const NATIVE_DENOM: &str = "ustars"; +pub const NATIVE_DENOM: &str = "ugaze"; // 3/11/2022 16:00:00 ET pub const GENESIS_MINT_START_TIME: u64 = 1647032400000000000; diff --git a/packages/sg1/src/lib.rs b/packages/sg1/src/lib.rs index 0faa1b733..4aaa615db 100644 --- a/packages/sg1/src/lib.rs +++ b/packages/sg1/src/lib.rs @@ -246,7 +246,7 @@ mod tests { fair_burn(Addr::unchecked("sender").to_string(), 9u128, None, &mut res); let burn_msg = SubMsg::new(BankMsg::Burn { - amount: coins(4, "ustars".to_string()), + amount: coins(4, "ugaze".to_string()), }); let dist_msg = SubMsg::new(create_fund_fairburn_pool_msg( Addr::unchecked("sender").to_string(), diff --git a/scripts/deploy-base-factory.sh b/scripts/deploy-base-factory.sh index fd30d71a8..26daadb56 100755 --- a/scripts/deploy-base-factory.sh +++ b/scripts/deploy-base-factory.sh @@ -4,8 +4,8 @@ MSG=$(cat <<EOF { "params": { "code_id": $MINTER_CODE_ID, - "creation_fee": { "amount": "250000000", "denom": "ustars" }, - "min_mint_price": { "amount": "5000000", "denom": "ustars" }, + "creation_fee": { "amount": "250000000", "denom": "ugaze" }, + "min_mint_price": { "amount": "5000000", "denom": "ugaze" }, "mint_fee_bps": 10000, "max_trading_offset_secs": 0, "extension": {} @@ -16,7 +16,7 @@ EOF ) starsd tx wasm instantiate $FACTORY_CODE_ID "$MSG" --label "base factory" --no-admin \ - --from test --gas-prices 0.025ustars --gas-adjustment 1.7 --gas auto \ + --from test --gas-prices 0.025ugaze --gas-adjustment 1.7 --gas auto \ --chain-id elgafar-1 --node https://rpc.elgafar-1.stargaze-apis.com:443 \ -b block -o json | jq . diff --git a/scripts/flex/01-init-factory.sh b/scripts/flex/01-init-factory.sh index c0353a459..61ef0da98 100755 --- a/scripts/flex/01-init-factory.sh +++ b/scripts/flex/01-init-factory.sh @@ -6,16 +6,16 @@ MSG=$(cat <<EOF "code_id": $MINTER_CODE_ID, "allowed_sg721_code_ids": [$SG721_BASE_CODE_ID], "frozen": false, - "creation_fee": {"amount": "20000000000", "denom": "ustars"}, - "min_mint_price": {"amount": "0", "denom": "ustars"}, + "creation_fee": {"amount": "20000000000", "denom": "ugaze"}, + "min_mint_price": {"amount": "0", "denom": "ugaze"}, "mint_fee_bps": 500, "max_trading_offset_secs": 604800, "extension": { "max_token_limit": 10000, "max_per_address_limit": 50, - "airdrop_mint_price": { "denom": "ustars", "amount": "0" }, + "airdrop_mint_price": { "denom": "ugaze", "amount": "0" }, "airdrop_mint_fee_bps": 10000, - "shuffle_fee": { "amount": "500000000", "denom": "ustars" } + "shuffle_fee": { "amount": "500000000", "denom": "ugaze" } } } } @@ -26,7 +26,7 @@ echo $MSG starsd tx wasm instantiate $FACTORY_CODE_ID "$MSG" --label "FeaturedFlexVendingMinterFactory" \ --admin $ADMIN \ - --gas-prices 0.025ustars --gas 5000000 \ + --gas-prices 0.025ugaze --gas 5000000 \ --from $ADMIN \ --generate-only > unsignedTx.json diff --git a/scripts/sg721-updatable/01-init-factory.sh b/scripts/sg721-updatable/01-init-factory.sh index 406176b83..0079ad6f8 100755 --- a/scripts/sg721-updatable/01-init-factory.sh +++ b/scripts/sg721-updatable/01-init-factory.sh @@ -12,16 +12,16 @@ MSG=$(cat <<EOF "code_id": $MINTER_CODE_ID, "allowed_sg721_code_ids": [1979], "frozen": false, - "creation_fee": {"amount": "5000000000", "denom": "ustars"}, - "min_mint_price": {"amount": "0", "denom": "ustars"}, + "creation_fee": {"amount": "5000000000", "denom": "ugaze"}, + "min_mint_price": {"amount": "0", "denom": "ugaze"}, "mint_fee_bps": 1000, "max_trading_offset_secs": 604800, "extension": { "max_token_limit": 10000, "max_per_address_limit": 50, - "airdrop_mint_price": { "denom": "ustars", "amount": "0" }, + "airdrop_mint_price": { "denom": "ugaze", "amount": "0" }, "airdrop_mint_fee_bps": 10000, - "shuffle_fee": { "amount": "500000000", "denom": "ustars" } + "shuffle_fee": { "amount": "500000000", "denom": "ugaze" } } } } @@ -31,5 +31,5 @@ echo $MSG starsd tx wasm instantiate $FACTORY_CODE_ID "$MSG" --label "Factory" \ - --no-admin --gas-prices 0.025ustars --gas 500000 --gas-adjustment 1.9 \ + --no-admin --gas-prices 0.025ugaze --gas 500000 --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . diff --git a/scripts/sg721-updatable/02-create-minter.sh b/scripts/sg721-updatable/02-create-minter.sh index dbf7510ee..380813d12 100755 --- a/scripts/sg721-updatable/02-create-minter.sh +++ b/scripts/sg721-updatable/02-create-minter.sh @@ -40,7 +40,7 @@ MSG=$(cat <<EOF "base_token_uri": "ipfs://bafybeiey2heysue3px2tgc523cmjbfjlox5zfzzan5syzdooikdvimtxwq", "start_time": "$(echo $TIME)000000000", "num_tokens": 1000, - "mint_price": { "amount": "50000000", "denom": "ustars" }, + "mint_price": { "amount": "50000000", "denom": "ugaze" }, "per_address_limit": 30 }, "collection_params": { @@ -60,6 +60,6 @@ EOF echo $MSG -starsd tx wasm execute $FACTORY "$MSG" --amount 5000000000ustars \ ---gas-prices 0.025ustars --gas auto --gas-adjustment 1.9 \ +starsd tx wasm execute $FACTORY "$MSG" --amount 5000000000ugaze \ +--gas-prices 0.025ugaze --gas auto --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/sg721-updatable/03-init-wl.sh b/scripts/sg721-updatable/03-init-wl.sh index 0829a823d..ab7392581 100755 --- a/scripts/sg721-updatable/03-init-wl.sh +++ b/scripts/sg721-updatable/03-init-wl.sh @@ -9,12 +9,12 @@ TIME=$(date -v+30S +%s) ENDTIME=$(date -v+3000S +%s) MSG=$(cat <<EOF { - "members": ["stars1cfudsnwnfezvqjnlhtxhssvzneykysc89ad3nm"], + "members": ["init153w5xhuqu3et29lgqk4dsynj6gjn96lrtmeg42"], "start_time": "$(echo $TIME)000000000", "end_time": "$(echo $ENDTIME)000000000", "mint_price": { "amount": "0", - "denom": "ustars" + "denom": "ugaze" }, "per_address_limit": 3, "member_limit": 10, @@ -26,6 +26,6 @@ EOF echo $MSG -starsd tx wasm instantiate $WL_CODE_ID "$MSG" --label "ZeroMintFeeWhitelist" --amount 100000000ustars \ - --no-admin --gas-prices 0.025ustars --gas 500000 --gas-adjustment 1.9 \ +starsd tx wasm instantiate $WL_CODE_ID "$MSG" --label "ZeroMintFeeWhitelist" --amount 100000000ugaze \ + --no-admin --gas-prices 0.025ugaze --gas 500000 --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . diff --git a/scripts/sg721-updatable/exec_batch_update_metadata.sh b/scripts/sg721-updatable/exec_batch_update_metadata.sh index 88555c370..9ce285f29 100755 --- a/scripts/sg721-updatable/exec_batch_update_metadata.sh +++ b/scripts/sg721-updatable/exec_batch_update_metadata.sh @@ -47,5 +47,5 @@ full_tx_msg=$(printf "[%s]" "${msgs[*]}") echo "$full_tx_msg" starsd tx wasm execute $SG721 "$MSG" \ ---gas-prices 0.025ustars --gas auto --gas-adjustment 1.9 \ +--gas-prices 0.025ugaze --gas auto --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/sg721-updatable/exec_freeze_metadata.sh b/scripts/sg721-updatable/exec_freeze_metadata.sh index 2d621a570..e1f3216f7 100755 --- a/scripts/sg721-updatable/exec_freeze_metadata.sh +++ b/scripts/sg721-updatable/exec_freeze_metadata.sh @@ -9,5 +9,5 @@ EOF echo $MSG starsd tx wasm execute $SG721 "$MSG" \ ---gas-prices 0.025ustars --gas auto --gas-adjustment 1.9 \ +--gas-prices 0.025ugaze --gas auto --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/sg721-updatable/exec_mint.sh b/scripts/sg721-updatable/exec_mint.sh index cba71ec07..4192f8cc3 100755 --- a/scripts/sg721-updatable/exec_mint.sh +++ b/scripts/sg721-updatable/exec_mint.sh @@ -8,6 +8,6 @@ EOF echo $MSG -starsd tx wasm execute $MINTER "$MSG" --amount 50000000ustars \ ---gas-prices 0.025ustars --gas auto --gas-adjustment 1.9 \ +starsd tx wasm execute $MINTER "$MSG" --amount 50000000ugaze \ +--gas-prices 0.025ugaze --gas auto --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/sg721-updatable/exec_update_metadata.sh b/scripts/sg721-updatable/exec_update_metadata.sh index 349dcc5df..4db7f3b18 100755 --- a/scripts/sg721-updatable/exec_update_metadata.sh +++ b/scripts/sg721-updatable/exec_update_metadata.sh @@ -18,5 +18,5 @@ EOF echo $MSG starsd tx wasm execute $SG721 "$MSG" \ ---gas-prices 0.025ustars --gas auto --gas-adjustment 1.9 \ +--gas-prices 0.025ugaze --gas auto --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/upload.sh b/scripts/upload.sh index 0989fe293..6d41e44c7 100755 --- a/scripts/upload.sh +++ b/scripts/upload.sh @@ -1,6 +1,6 @@ for d in ./*.wasm; do echo $d; - starsd tx wasm store $d --from test --gas-prices 0.025ustars --gas-adjustment 1.7 --gas auto --chain-id elgafar-1 --node https://rpc.elgafar-1.stargaze-apis.com:443 -b block --yes -o json | jq '.logs' | grep -A 1 code_id + starsd tx wasm store $d --from test --gas-prices 0.025ugaze --gas-adjustment 1.7 --gas auto --chain-id elgafar-1 --node https://rpc.elgafar-1.stargaze-apis.com:443 -b block --yes -o json | jq '.logs' | grep -A 1 code_id echo "-----------------"; done diff --git a/scripts/v0.16.0/01-init-factory.sh b/scripts/v0.16.0/01-init-factory.sh index 4540e959e..6234de3e6 100755 --- a/scripts/v0.16.0/01-init-factory.sh +++ b/scripts/v0.16.0/01-init-factory.sh @@ -6,16 +6,16 @@ MSG=$(cat <<EOF { "params": { "code_id": $MINTER_CODE_ID, - "creation_fee": {"amount": "5000000000", "denom": "ustars"}, - "min_mint_price": {"amount": "10000000", "denom": "ustars"}, + "creation_fee": {"amount": "5000000000", "denom": "ugaze"}, + "min_mint_price": {"amount": "10000000", "denom": "ugaze"}, "mint_fee_bps": 500, "max_trading_offset_secs": 604800, "extension": { "max_token_limit": 10000, "max_per_address_limit": 50, - "airdrop_mint_price": { "denom": "ustars", "amount": "0" }, + "airdrop_mint_price": { "denom": "ugaze", "amount": "0" }, "airdrop_mint_fee_bps": 10000, - "shuffle_fee": { "amount": "500000000", "denom": "ustars" } + "shuffle_fee": { "amount": "500000000", "denom": "ugaze" } } } } @@ -24,5 +24,5 @@ EOF echo $MSG starsd tx wasm instantiate $FACTORY_CODE_ID "$MSG" --label "Factory-v0.16.0" \ - --admin=$ADMIN --gas-prices 0.025ustars --gas 500000 --gas-adjustment 1.9 \ + --admin=$ADMIN --gas-prices 0.025ugaze --gas 500000 --gas-adjustment 1.9 \ --from $ADMIN -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/v0.16.0/02-create-minter.sh b/scripts/v0.16.0/02-create-minter.sh index 365e944a1..185add648 100755 --- a/scripts/v0.16.0/02-create-minter.sh +++ b/scripts/v0.16.0/02-create-minter.sh @@ -13,7 +13,7 @@ MSG=$(cat <<EOF "base_token_uri": "ipfs://QmVnos4WEq5z2zLwX8CR5EkaHyBUiF2RZYQLDWL4gm5DDU", "start_time": "$(echo $TIME)000000000", "num_tokens": 100, - "mint_price": {"amount": "10000000", "denom": "ustars"}, + "mint_price": {"amount": "10000000", "denom": "ugaze"}, "per_address_limit": 5 }, "collection_params": { @@ -39,6 +39,6 @@ EOF echo $MSG -starsd tx wasm execute $FACTORY "$MSG" --amount 5000000000ustars \ - --gas-prices 0.025ustars --gas 2000000 --gas-adjustment 1.9 \ +starsd tx wasm execute $FACTORY "$MSG" --amount 5000000000ugaze \ + --gas-prices 0.025ugaze --gas 2000000 --gas-adjustment 1.9 \ --from $ADMIN -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/v0.16.0/03-mint.sh b/scripts/v0.16.0/03-mint.sh index ffc83c5b3..52a994010 100755 --- a/scripts/v0.16.0/03-mint.sh +++ b/scripts/v0.16.0/03-mint.sh @@ -8,6 +8,6 @@ EOF echo $MSG -starsd tx wasm execute $MINTER "$MSG" --amount 10000000ustars \ - --gas-prices 0.025ustars --gas 500000 --gas-adjustment 1.9 \ +starsd tx wasm execute $MINTER "$MSG" --amount 10000000ugaze \ + --gas-prices 0.025ugaze --gas 500000 --gas-adjustment 1.9 \ --from $ADMIN -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/v0.16.0/04-migrate.sh b/scripts/v0.16.0/04-migrate.sh index dafa40894..8c087f8d6 100755 --- a/scripts/v0.16.0/04-migrate.sh +++ b/scripts/v0.16.0/04-migrate.sh @@ -3,5 +3,5 @@ SG721=stars1naqvlqkh8yccuwv6a566hdt4flrrz5933lhva0jmsp2kgjhuh3zqf6avr4 SG721_UPDATABLE_CODE_ID=2051 starsd tx wasm migrate $SG721 $SG721_UPDATABLE_CODE_ID "{}" \ - --gas-prices 0.025ustars --gas 2000000 --gas-adjustment 1.9 \ + --gas-prices 0.025ugaze --gas 2000000 --gas-adjustment 1.9 \ --from $ADMIN -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/v0.16.0/05-pay-updatable-fee.sh b/scripts/v0.16.0/05-pay-updatable-fee.sh index 6c3985bb7..f90509f88 100755 --- a/scripts/v0.16.0/05-pay-updatable-fee.sh +++ b/scripts/v0.16.0/05-pay-updatable-fee.sh @@ -13,6 +13,6 @@ EOF echo $MSG -starsd tx wasm execute $SG721 "$MSG" --amount 500000000ustars \ - --gas-prices 0.025ustars --gas 2000000 --gas-adjustment 1.9 \ +starsd tx wasm execute $SG721 "$MSG" --amount 500000000ugaze \ + --gas-prices 0.025ugaze --gas 2000000 --gas-adjustment 1.9 \ --from $ADMIN -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/v0.16.0/06-update-metadata.sh b/scripts/v0.16.0/06-update-metadata.sh index a057b977f..2818a32b4 100755 --- a/scripts/v0.16.0/06-update-metadata.sh +++ b/scripts/v0.16.0/06-update-metadata.sh @@ -14,5 +14,5 @@ EOF echo $MSG starsd tx wasm execute $SG721 "$MSG" \ - --gas-prices 0.025ustars --gas 2000000 --gas-adjustment 1.9 \ + --gas-prices 0.025ugaze --gas 2000000 --gas-adjustment 1.9 \ --from $ADMIN -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/vending-init.sh b/scripts/vending-init.sh index bc8807aa5..3a0609889 100755 --- a/scripts/vending-init.sh +++ b/scripts/vending-init.sh @@ -4,16 +4,16 @@ MSG=$(cat <<EOF { "params": { "code_id": $MINTER_CODE_ID, - "creation_fee": { "amount": "1000000000", "denom": "ustars" }, - "min_mint_price": { "amount": "50000000", "denom": "ustars" }, + "creation_fee": { "amount": "1000000000", "denom": "ugaze" }, + "min_mint_price": { "amount": "50000000", "denom": "ugaze" }, "mint_fee_bps": 1000, "max_trading_offset_secs": 1209600, "extension": { "max_token_limit": 10000, "max_per_address_limit": 50, - "airdrop_mint_price": { "amount": "0", "denom": "ustars" }, + "airdrop_mint_price": { "amount": "0", "denom": "ugaze" }, "airdrop_mint_fee_bps": 0, - "shuffle_fee": { "amount": "100000000", "denom": "ustars" } + "shuffle_fee": { "amount": "100000000", "denom": "ugaze" } } } } @@ -22,7 +22,7 @@ EOF ) starsd tx wasm instantiate $FACTORY_CODE_ID "$MSG" --label "vending factory" --no-admin \ - --from mainnet-spot --gas-prices 0.025ustars --gas-adjustment 1.7 --gas auto \ + --from mainnet-spot --gas-prices 0.025ugaze --gas-adjustment 1.7 --gas auto \ --chain-id elgafar-1 --node https://rpc.elgafar-1.stargaze-apis.com:443 \ -b block -o json | jq . diff --git a/scripts/zero-mint-fee/01-init-factory.sh b/scripts/zero-mint-fee/01-init-factory.sh index 406176b83..0079ad6f8 100755 --- a/scripts/zero-mint-fee/01-init-factory.sh +++ b/scripts/zero-mint-fee/01-init-factory.sh @@ -12,16 +12,16 @@ MSG=$(cat <<EOF "code_id": $MINTER_CODE_ID, "allowed_sg721_code_ids": [1979], "frozen": false, - "creation_fee": {"amount": "5000000000", "denom": "ustars"}, - "min_mint_price": {"amount": "0", "denom": "ustars"}, + "creation_fee": {"amount": "5000000000", "denom": "ugaze"}, + "min_mint_price": {"amount": "0", "denom": "ugaze"}, "mint_fee_bps": 1000, "max_trading_offset_secs": 604800, "extension": { "max_token_limit": 10000, "max_per_address_limit": 50, - "airdrop_mint_price": { "denom": "ustars", "amount": "0" }, + "airdrop_mint_price": { "denom": "ugaze", "amount": "0" }, "airdrop_mint_fee_bps": 10000, - "shuffle_fee": { "amount": "500000000", "denom": "ustars" } + "shuffle_fee": { "amount": "500000000", "denom": "ugaze" } } } } @@ -31,5 +31,5 @@ echo $MSG starsd tx wasm instantiate $FACTORY_CODE_ID "$MSG" --label "Factory" \ - --no-admin --gas-prices 0.025ustars --gas 500000 --gas-adjustment 1.9 \ + --no-admin --gas-prices 0.025ugaze --gas 500000 --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . diff --git a/scripts/zero-mint-fee/02-create-zero-fee-minter.sh b/scripts/zero-mint-fee/02-create-zero-fee-minter.sh index 51167f252..0e68fc65a 100755 --- a/scripts/zero-mint-fee/02-create-zero-fee-minter.sh +++ b/scripts/zero-mint-fee/02-create-zero-fee-minter.sh @@ -40,7 +40,7 @@ MSG=$(cat <<EOF "base_token_uri": "ipfs://bafybeiey2heysue3px2tgc523cmjbfjlox5zfzzan5syzdooikdvimtxwq", "start_time": "$(echo $TIME)000000000", "num_tokens": 1000, - "mint_price": { "amount": "0", "denom": "ustars" }, + "mint_price": { "amount": "0", "denom": "ugaze" }, "per_address_limit": 30 }, "collection_params": { @@ -60,6 +60,6 @@ EOF echo $MSG -starsd tx wasm execute $FACTORY "$MSG" --amount 5000000000ustars \ ---gas-prices 0.025ustars --gas auto --gas-adjustment 1.9 \ +starsd tx wasm execute $FACTORY "$MSG" --amount 5000000000ugaze \ +--gas-prices 0.025ugaze --gas auto --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/zero-mint-fee/03-init-wl.sh b/scripts/zero-mint-fee/03-init-wl.sh index 99c68718d..21702727f 100755 --- a/scripts/zero-mint-fee/03-init-wl.sh +++ b/scripts/zero-mint-fee/03-init-wl.sh @@ -14,7 +14,7 @@ MSG=$(cat <<EOF "end_time": "$(echo $ENDTIME)000000000", "mint_price": { "amount": "0", - "denom": "ustars" + "denom": "ugaze" }, "per_address_limit": 3, "member_limit": 10, @@ -26,6 +26,6 @@ EOF echo $MSG -starsd tx wasm instantiate $WL_CODE_ID "$MSG" --label "ZeroMintFeeWhitelist" --amount 100000000ustars \ - --no-admin --gas-prices 0.025ustars --gas 500000 --gas-adjustment 1.9 \ +starsd tx wasm instantiate $WL_CODE_ID "$MSG" --label "ZeroMintFeeWhitelist" --amount 100000000ugaze \ + --no-admin --gas-prices 0.025ugaze --gas 500000 --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . diff --git a/scripts/zero-mint-fee/04-create-min-mint-minter.sh b/scripts/zero-mint-fee/04-create-min-mint-minter.sh index dbf7510ee..380813d12 100755 --- a/scripts/zero-mint-fee/04-create-min-mint-minter.sh +++ b/scripts/zero-mint-fee/04-create-min-mint-minter.sh @@ -40,7 +40,7 @@ MSG=$(cat <<EOF "base_token_uri": "ipfs://bafybeiey2heysue3px2tgc523cmjbfjlox5zfzzan5syzdooikdvimtxwq", "start_time": "$(echo $TIME)000000000", "num_tokens": 1000, - "mint_price": { "amount": "50000000", "denom": "ustars" }, + "mint_price": { "amount": "50000000", "denom": "ugaze" }, "per_address_limit": 30 }, "collection_params": { @@ -60,6 +60,6 @@ EOF echo $MSG -starsd tx wasm execute $FACTORY "$MSG" --amount 5000000000ustars \ ---gas-prices 0.025ustars --gas auto --gas-adjustment 1.9 \ +starsd tx wasm execute $FACTORY "$MSG" --amount 5000000000ugaze \ +--gas-prices 0.025ugaze --gas auto --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/zero-mint-fee/05-exec-set-wl.sh b/scripts/zero-mint-fee/05-exec-set-wl.sh index 6a46f9435..f73fdfef6 100755 --- a/scripts/zero-mint-fee/05-exec-set-wl.sh +++ b/scripts/zero-mint-fee/05-exec-set-wl.sh @@ -13,5 +13,5 @@ EOF echo $MSG starsd tx wasm execute $MINTER "$MSG" \ ---gas-prices 0.025ustars --gas auto --gas-adjustment 1.9 \ +--gas-prices 0.025ugaze --gas auto --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . \ No newline at end of file diff --git a/scripts/zero-mint-fee/06-init-mint-fee-factory.sh b/scripts/zero-mint-fee/06-init-mint-fee-factory.sh index 7cbc6fddd..fc0fa794b 100755 --- a/scripts/zero-mint-fee/06-init-mint-fee-factory.sh +++ b/scripts/zero-mint-fee/06-init-mint-fee-factory.sh @@ -12,16 +12,16 @@ MSG=$(cat <<EOF "code_id": $MINTER_CODE_ID, "allowed_sg721_code_ids": [1979], "frozen": false, - "creation_fee": {"amount": "5000000000", "denom": "ustars"}, - "min_mint_price": {"amount": "50000000", "denom": "ustars"}, + "creation_fee": {"amount": "5000000000", "denom": "ugaze"}, + "min_mint_price": {"amount": "50000000", "denom": "ugaze"}, "mint_fee_bps": 1000, "max_trading_offset_secs": 604800, "extension": { "max_token_limit": 10000, "max_per_address_limit": 50, - "airdrop_mint_price": { "denom": "ustars", "amount": "0" }, + "airdrop_mint_price": { "denom": "ugaze", "amount": "0" }, "airdrop_mint_fee_bps": 10000, - "shuffle_fee": { "amount": "500000000", "denom": "ustars" } + "shuffle_fee": { "amount": "500000000", "denom": "ugaze" } } } } @@ -31,5 +31,5 @@ echo $MSG starsd tx wasm instantiate $FACTORY_CODE_ID "$MSG" --label "Factory" \ - --no-admin --gas-prices 0.025ustars --gas 500000 --gas-adjustment 1.9 \ + --no-admin --gas-prices 0.025ugaze --gas 500000 --gas-adjustment 1.9 \ --from $KEY -y -b block -o json | jq . diff --git a/test-suite/src/common_setup/keeper.rs b/test-suite/src/common_setup/keeper.rs index 1d376ebc3..cd525cf9e 100644 --- a/test-suite/src/common_setup/keeper.rs +++ b/test-suite/src/common_setup/keeper.rs @@ -48,7 +48,7 @@ impl Module for StargazeStargateKeeper { // field 1 is the denom // field 2 is the amount let denom = decoded_amount.string(1).unwrap(); - assert_eq!("ustars", denom); + assert_eq!("ugaze", denom); let amount = decoded_amount.string(2).unwrap(); let msg = BankMsg::Send { to_address: "fairburn_pool".to_owned(), diff --git a/test-suite/src/open_edition_minter/tests/complete_mint_all_outcomes_validation.rs b/test-suite/src/open_edition_minter/tests/complete_mint_all_outcomes_validation.rs index 9cf6df813..efe16d998 100644 --- a/test-suite/src/open_edition_minter/tests/complete_mint_all_outcomes_validation.rs +++ b/test-suite/src/open_edition_minter/tests/complete_mint_all_outcomes_validation.rs @@ -130,7 +130,7 @@ fn check_mint_revenues_distribution(num_tokens: Option<u32>, end_minter_time: Op ); assert_eq!( res.err().unwrap().source().unwrap().to_string(), - "IncorrectPaymentAmount 100ustars != 100000000ustars" + "IncorrectPaymentAmount 100ugaze != 100000000ugaze" ); // Invalid price @@ -143,7 +143,7 @@ fn check_mint_revenues_distribution(num_tokens: Option<u32>, end_minter_time: Op ); assert_eq!( res.err().unwrap().source().unwrap().to_string(), - "IncorrectPaymentAmount 200000000ustars != 100000000ustars" + "IncorrectPaymentAmount 200000000ugaze != 100000000ugaze" ); // Invalid price @@ -151,7 +151,7 @@ fn check_mint_revenues_distribution(num_tokens: Option<u32>, end_minter_time: Op let res = router.execute_contract(buyer.clone(), minter_addr.clone(), &mint_msg, &[]); assert_eq!( res.err().unwrap().source().unwrap().to_string(), - "IncorrectPaymentAmount 0ustars != 100000000ustars" + "IncorrectPaymentAmount 0ugaze != 100000000ugaze" ); // Invalid denom diff --git a/test-suite/src/sg721_base/tests/integration_tests.rs b/test-suite/src/sg721_base/tests/integration_tests.rs index f891d5313..445bc7673 100644 --- a/test-suite/src/sg721_base/tests/integration_tests.rs +++ b/test-suite/src/sg721_base/tests/integration_tests.rs @@ -27,7 +27,7 @@ mod tests { const GOVERNANCE: &str = "governance"; const ADMIN: &str = "admin"; - const NATIVE_DENOM: &str = "ustars"; + const NATIVE_DENOM: &str = "ugaze"; pub fn assert_error(res: Result<AppResponse, Error>, expected: String) { assert_eq!(res.unwrap_err().source().unwrap().to_string(), expected); diff --git a/test-suite/src/sg_eth_airdrop/constants/claim_constants.rs b/test-suite/src/sg_eth_airdrop/constants/claim_constants.rs index 674d66784..c54319448 100644 --- a/test-suite/src/sg_eth_airdrop/constants/claim_constants.rs +++ b/test-suite/src/sg_eth_airdrop/constants/claim_constants.rs @@ -4,4 +4,4 @@ pub const MOCK_MINTER_ADDR_STR: &str = "contract1"; pub const STARGAZE_WALLET_01: &str = "0xstargaze_wallet_01"; pub const STARGAZE_WALLET_02: &str = "0xstargaze_wallet_02"; pub const CONFIG_PLAINTEXT: &str = "My Stargaze address is {wallet} and I want a Winter Pal."; -pub const NATIVE_DENOM: &str = "ustars"; +pub const NATIVE_DENOM: &str = "ugaze"; diff --git a/test-suite/src/sg_eth_airdrop/setup/mock_minter_contract.rs b/test-suite/src/sg_eth_airdrop/setup/mock_minter_contract.rs index 3127a9ae9..2177fe889 100644 --- a/test-suite/src/sg_eth_airdrop/setup/mock_minter_contract.rs +++ b/test-suite/src/sg_eth_airdrop/setup/mock_minter_contract.rs @@ -61,7 +61,7 @@ fn query_config() -> ConfigResponse { sg721_address: "some_sg721_address".to_string(), sg721_code_id: 4, start_time: Timestamp::from_seconds(30), - mint_price: Coin::new(1000, "ustars"), + mint_price: Coin::new(1000, "ugaze"), factory: "some_factory".to_string(), } } diff --git a/test-suite/src/splits/tests/integration_tests.rs b/test-suite/src/splits/tests/integration_tests.rs index a0eb95143..fcb316062 100644 --- a/test-suite/src/splits/tests/integration_tests.rs +++ b/test-suite/src/splits/tests/integration_tests.rs @@ -280,7 +280,7 @@ mod tests { #[test] fn distribute_non_member() { - const DENOM: &str = "ustars"; + const DENOM: &str = "ugaze"; let init_funds = coins(100, DENOM); let mut app = mock_app_builder_init_funds(&init_funds); @@ -299,7 +299,7 @@ mod tests { #[test] fn distribute() { - const DENOM: &str = "ustars"; + const DENOM: &str = "ugaze"; let init_funds = coins(100, DENOM); let mut app = mock_app_builder_init_funds(&init_funds); @@ -337,7 +337,7 @@ mod tests { #[test] fn distribute_under_funded() { - const DENOM: &str = "ustars"; + const DENOM: &str = "ugaze"; let init_funds = coins(79, DENOM); let mut app = mock_app_builder_init_funds(&init_funds); @@ -359,7 +359,7 @@ mod tests { #[test] fn distribute_amount_with_remaining_balance() { - const DENOM: &str = "ustars"; + const DENOM: &str = "ugaze"; let init_funds = coins(479, DENOM); let mut app = mock_app_builder_init_funds(&init_funds); @@ -397,7 +397,7 @@ mod tests { #[test] fn distribute_with_too_many_members() { - const DENOM: &str = "ustars"; + const DENOM: &str = "ugaze"; let init_funds = coins(255, DENOM); let mut app = mock_app_builder_init_funds(&init_funds); @@ -418,7 +418,7 @@ mod tests { #[test] fn distribute_with_zero_weight_members() { - const DENOM: &str = "ustars"; + const DENOM: &str = "ugaze"; let init_funds = coins(255, DENOM); let mut app = mock_app_builder_init_funds(&init_funds); @@ -453,7 +453,7 @@ mod tests { #[test] fn distribute_with_group_changes() { - const DENOM: &str = "ustars"; + const DENOM: &str = "ugaze"; let init_funds = coins(199, DENOM); let mut app = mock_app_builder_init_funds(&init_funds); diff --git a/test-suite/src/vending_minter/tests/mint_and_burn.rs b/test-suite/src/vending_minter/tests/mint_and_burn.rs index 94d10c567..3e16fb2a6 100644 --- a/test-suite/src/vending_minter/tests/mint_and_burn.rs +++ b/test-suite/src/vending_minter/tests/mint_and_burn.rs @@ -128,7 +128,7 @@ fn update_discount_mint_price() { assert_eq!( res.current_price, Coin { - denom: "ustars".to_string(), + denom: "ugaze".to_string(), amount: Uint128::new(MINT_PRICE + 1) } ); @@ -165,21 +165,21 @@ fn update_discount_mint_price() { assert_eq!( res.public_price, Coin { - denom: "ustars".to_string(), + denom: "ugaze".to_string(), amount: Uint128::new(MINT_PRICE + 1) } ); assert_eq!( res.current_price, Coin { - denom: "ustars".to_string(), + denom: "ugaze".to_string(), amount: Uint128::new(MINT_PRICE - 5) } ); assert_eq!( res.discount_price, Some(Coin { - denom: "ustars".to_string(), + denom: "ugaze".to_string(), amount: Uint128::new(MINT_PRICE - 5) }) ); @@ -260,7 +260,7 @@ fn update_discount_mint_price() { assert_eq!( res.current_price, Coin { - denom: "ustars".to_string(), + denom: "ugaze".to_string(), amount: Uint128::new(MINT_PRICE + 1) } ); diff --git a/test-suite/src/whitelist/tests/unit_tests.rs b/test-suite/src/whitelist/tests/unit_tests.rs index 9b4786e2f..b5b712ab7 100644 --- a/test-suite/src/whitelist/tests/unit_tests.rs +++ b/test-suite/src/whitelist/tests/unit_tests.rs @@ -33,9 +33,9 @@ fn setup_contract(deps: DepsMut) { admins: vec![ADMIN.to_string(), SECOND_ADMIN.to_string()], admins_mutable: true, }; - let info = mock_info(ADMIN, &[coin(100_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(100_000_000, "ugaze")]); let res = instantiate(deps, mock_env(), info, msg).unwrap(); - assert_eq!(2, res.messages.len()); + assert_eq!(1, res.messages.len()); } #[test] @@ -45,19 +45,19 @@ fn proper_initialization() { } #[test] -fn not_ustars_denom() { +fn not_ugaze_denom() { let mut deps = mock_dependencies(); let msg = InstantiateMsg { members: vec!["adsfsa".to_string()], start_time: END_TIME, end_time: END_TIME, - mint_price: coin(UNIT_AMOUNT, "not_ustars"), + mint_price: coin(UNIT_AMOUNT, "not_ugaze"), per_address_limit: 1, member_limit: 1000, admins: vec![ADMIN.to_string()], admins_mutable: true, }; - let info = mock_info(ADMIN, &[coin(100_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(100_000_000, "ugaze")]); let res = instantiate(deps.as_mut(), mock_env(), info, msg); assert!(res.is_ok()); } @@ -69,13 +69,13 @@ fn improper_initialization_invalid_creation_fee() { members: vec!["adsfsa".to_string()], start_time: END_TIME, end_time: END_TIME, - mint_price: coin(UNIT_AMOUNT, "ustars"), + mint_price: coin(UNIT_AMOUNT, "ugaze"), per_address_limit: 1, member_limit: 3000, admins: vec![ADMIN.to_string()], admins_mutable: true, }; - let info = mock_info(ADMIN, &[coin(100_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(100_000_000, "ugaze")]); let err = instantiate(deps.as_mut(), mock_env(), info, msg).unwrap_err(); assert_eq!( err.to_string(), @@ -100,7 +100,7 @@ fn improper_initialization_dedup() { admins: vec![ADMIN.to_string()], admins_mutable: true, }; - let info = mock_info(ADMIN, &[coin(100_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(100_000_000, "ugaze")]); let _res = instantiate(deps.as_mut(), mock_env(), info, msg).unwrap(); let res = query_config(deps.as_ref(), mock_env()).unwrap(); assert_eq!(1, res.num_members); @@ -118,7 +118,7 @@ fn check_start_time_after_end_time() { admins: vec![ADMIN.to_string()], admins_mutable: true, }; - let info = mock_info(ADMIN, &[coin(100_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(100_000_000, "ugaze")]); let mut deps = mock_dependencies(); instantiate(deps.as_mut(), mock_env(), info, msg).unwrap_err(); } @@ -287,9 +287,9 @@ fn query_members_pagination() { admins: vec![ADMIN.to_string()], admins_mutable: true, }; - let info = mock_info(ADMIN, &[coin(100_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(100_000_000, "ugaze")]); let res = instantiate(deps.as_mut(), mock_env(), info, msg).unwrap(); - assert_eq!(2, res.messages.len()); + assert_eq!(1, res.messages.len()); let mut all_elements: Vec<String> = vec![]; @@ -342,55 +342,55 @@ fn increase_member_limit() { // needs upgrade fee let msg = ExecuteMsg::IncreaseMemberLimit(1001); - let info = mock_info(ADMIN, &[coin(100_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(100_000_000, "ugaze")]); let res = execute(deps.as_mut(), mock_env(), info, msg); assert!(res.is_ok()); // 0 upgrade fee let msg = ExecuteMsg::IncreaseMemberLimit(1002); - let info = mock_info(ADMIN, &[coin(0, "ustars")]); + let info = mock_info(ADMIN, &[coin(0, "ugaze")]); let res = execute(deps.as_mut(), mock_env(), info, msg); assert!(res.is_ok()); // 0 upgrade fee, fails when including a fee // don't allow updating to the same number of memebers let msg = ExecuteMsg::IncreaseMemberLimit(1002); - let info = mock_info(ADMIN, &[coin(1, "ustars")]); + let info = mock_info(ADMIN, &[coin(1, "ugaze")]); execute(deps.as_mut(), mock_env(), info, msg).unwrap_err(); // 0 upgrade fee, fails when including a fee let msg = ExecuteMsg::IncreaseMemberLimit(1003); - let info = mock_info(ADMIN, &[coin(1, "ustars")]); + let info = mock_info(ADMIN, &[coin(1, "ugaze")]); let err = execute(deps.as_mut(), mock_env(), info, msg).unwrap_err(); assert_eq!(err.to_string(), "IncorrectCreationFee 1 < 0"); // 0 upgrade fee let msg = ExecuteMsg::IncreaseMemberLimit(1502); - let info = mock_info(ADMIN, &[coin(0, "ustars")]); + let info = mock_info(ADMIN, &[coin(0, "ugaze")]); let res = execute(deps.as_mut(), mock_env(), info, msg); assert!(res.is_ok()); // 0 upgrade fee let msg = ExecuteMsg::IncreaseMemberLimit(2000); - let info = mock_info(ADMIN, &[coin(0, "ustars")]); + let info = mock_info(ADMIN, &[coin(0, "ugaze")]); let res = execute(deps.as_mut(), mock_env(), info, msg); assert!(res.is_ok()); // needs upgrade fee let msg = ExecuteMsg::IncreaseMemberLimit(2002); - let info = mock_info(ADMIN, &[coin(100_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(100_000_000, "ugaze")]); let res = execute(deps.as_mut(), mock_env(), info, msg); assert!(res.is_ok()); // needs upgrade fee let msg = ExecuteMsg::IncreaseMemberLimit(4002); - let info = mock_info(ADMIN, &[coin(200_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(200_000_000, "ugaze")]); let res = execute(deps.as_mut(), mock_env(), info, msg); assert!(res.is_ok()); // over MAX_MEMBERS, Invalid member limit let msg = ExecuteMsg::IncreaseMemberLimit(6000); - let info = mock_info(ADMIN, &[coin(400_000_000, "ustars")]); + let info = mock_info(ADMIN, &[coin(400_000_000, "ugaze")]); let err = execute(deps.as_mut(), mock_env(), info, msg).unwrap_err(); assert_eq!( err.to_string(),