Skip to content

Commit 1ac6a88

Browse files
committed
Remove boot / cw-orch, get cw-multi-test working with custom messages
1 parent 1bef4d8 commit 1ac6a88

File tree

8 files changed

+209
-160
lines changed

8 files changed

+209
-160
lines changed

Cargo.lock

+1-67
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/external/cw-abc/Cargo.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ crate-type = ["cdylib", "rlib"]
2020
backtraces = ["cosmwasm-std/backtraces"]
2121
# use library feature to disable all instantiate/execute/query exports
2222
library = []
23-
boot = ["dep:cw-orch"]
23+
# interface = ["dep:cw-orch"] # Adds the dependency when the feature is enabled
2424

2525
[dependencies]
2626
cw-utils = { workspace = true }
@@ -35,18 +35,17 @@ rust_decimal = "1.14.3"
3535
integer-sqrt = "0.1.5"
3636
integer-cbrt = "0.1.2"
3737
getrandom = { version = "0.2", features = ["js"] }
38-
# TODO publish this
38+
# TODO publish this and move to workspace
3939
token-bindings = { git = "https://github.com/CosmosContracts/token-bindings", rev = "1412b94" }
4040
cw-ownable = { workspace = true }
4141
cw-paginate-storage = { workspace = true }
42-
cw-orch = { version = "0.13.3", optional = true, git = "https://github.com/AbstractSDK/cw-orchestrator", branch = "main" }
42+
# cw-orch = { version = "0.13.3", optional = true }
4343

4444
[dev-dependencies]
4545
# TODO move to workspace
4646
speculoos = "0.11.0"
47-
#cw-multi-test = { version = "0.16.0" }
4847
anyhow = { workspace = true }
49-
cw-abc = { path = ".", features = ["boot"] }
48+
cw-multi-test = { workspace = true }
5049

5150
[profile.release]
5251
rpath = false

contracts/external/cw-abc/src/boot.rs

-43
This file was deleted.

contracts/external/cw-abc/src/contract.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ use std::collections::HashSet;
66

77
use token_bindings::{TokenFactoryMsg, TokenFactoryQuery, TokenMsg};
88

9-
use crate::abc::CurveFn;
9+
use crate::abc::{CommonsPhase, CurveFn};
1010
use crate::curves::DecimalPlaces;
1111
use crate::error::ContractError;
1212
use crate::msg::{ExecuteMsg, InstantiateMsg, QueryMsg, UpdatePhaseConfigMsg};
1313
use crate::state::{
14-
CurveState, CURVE_STATE, CURVE_TYPE, HATCHER_ALLOWLIST, PHASE_CONFIG, SUPPLY_DENOM,
14+
CurveState, CURVE_STATE, CURVE_TYPE, HATCHER_ALLOWLIST, PHASE, PHASE_CONFIG, SUPPLY_DENOM,
1515
};
1616
use crate::{commands, queries};
1717
use cw_utils::nonpayable;
1818

1919
// version info for migration info
20-
pub(crate) const CONTRACT_NAME: &str = "crates.io:cw20-abc";
20+
pub(crate) const CONTRACT_NAME: &str = "crates.io:cw-abc";
2121
const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");
2222

2323
// By default, the prefix for token factory tokens is "factory"
@@ -86,6 +86,9 @@ pub fn instantiate(
8686

8787
PHASE_CONFIG.save(deps.storage, &phase_config)?;
8888

89+
// TODO don't hardcode this?
90+
PHASE.save(deps.storage, &CommonsPhase::Hatch)?;
91+
8992
cw_ownable::initialize_owner(deps.storage, deps.api, Some(info.sender.as_str()))?;
9093

9194
Ok(Response::default().add_message(create_supply_denom_msg))

0 commit comments

Comments
 (0)