Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Abstract v0.21 #53

Merged
merged 9 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/target

artifacts

Cargo.lock

.env
Expand Down
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ daemon = ["interface", "cw-orch/daemon"]
cosmwasm-std = { version = "1.5.3" }
cosmwasm-schema = { version = "1.5.3" }
cw-controllers = { version = "1.1.2" }
cw-storage-plus = "1.1.0"
cw-storage-plus = "1.2.0"
thiserror = { version = "1.0.50" }
schemars = "0.8"
cw-asset = { version = "3.0.0" }
abstract-app = { version = "0.20" }
abstract-app = { version = "0.21.0" }

# Dependencies for interface
cw-orch = { version = "0.19.1", optional = true }
cw-orch = { version = "0.20.1", optional = true }

[dev-dependencies]
app = { path = ".", features = ["interface"] }
abstract-client = { version = "0.20" }
abstract-app = { version = "0.20", features = ["test-utils"] }
abstract-client = { version = "0.21.0" }
abstract-app = { version = "0.21", features = ["test-utils"] }
speculoos = "0.11.0"
semver = "1.0"
dotenv = "0.15.0"
env_logger = "0.10.0"
cw-orch = { version = "0.19.1" }
cw-orch = { version = "0.20.1" }
clap = { version = "4.3.7", features = ["derive"] }
Binary file removed artifacts/app.wasm
Binary file not shown.
1 change: 0 additions & 1 deletion artifacts/checksums.txt

This file was deleted.

1 change: 0 additions & 1 deletion artifacts/checksums_intermediate.txt

This file was deleted.

2 changes: 1 addition & 1 deletion template-setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

mv example.env .env
cp example.env .env

# Function to prompt for 'y' input
prompt_confirmation() {
Expand Down
15 changes: 9 additions & 6 deletions tests/integration.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use abstract_app::abstract_testing::OWNER;
use abstract_app::objects::namespace::Namespace;

use abstract_client::AbstractClient;
Expand All @@ -20,15 +19,19 @@ use cosmwasm_std::{coins, Addr};
#[allow(clippy::type_complexity)]
fn setup(
count: i32,
) -> anyhow::Result<(AbstractClient<Mock>, Application<Mock, AppInterface<Mock>>)> {
// Create a sender
let sender = Addr::unchecked(OWNER);
) -> anyhow::Result<(
AbstractClient<MockBech32>,
Application<MockBech32, AppInterface<MockBech32>>,
)> {
// Create a sender and mock env
let mock = MockBech32::new("mock");
let sender = mock.sender();
let namespace = Namespace::from_id(APP_ID)?;

// You can set up Abstract with a builder.
let client = AbstractClient::builder(Mock::new(&sender)).build()?;
let client = AbstractClient::builder(mock).build()?;
// The client supports setting balances for addresses and configuring ANS.
client.set_balance(&sender, &coins(123, "ucosm"))?;
client.set_balance(sender, &coins(123, "ucosm"))?;

// Build a Publisher Account
let publisher = client.publisher_builder(namespace).build()?;
Expand Down
20 changes: 0 additions & 20 deletions tests/wasm.rs

This file was deleted.

Loading