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 contract to cosmwasm 1.1.2 #71

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
331 changes: 215 additions & 116 deletions Cargo.lock

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "wasmswap"
version = "1.0.0-beta"
version = "1.1.2"
authors = ["ben2x4 <ben2x4@protonmail.com>"]
edition = "2018"
edition = "2021"
description = "Cosmwasm AMM"
license = "Apache-2.0"
repository = "https://github.com/Wasmswap/wasmswap-contracts"
Expand Down Expand Up @@ -36,17 +36,16 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cw0 = { version = "0.10.0" }
cw2 = { version = "0.11" }
cw20 = { version = "0.10.0" }
cw20-base = { version = "0.10.0", features = ["library"] }
cosmwasm-std = { version = "1.0.0-beta" }
cosmwasm-storage = { version = "1.0.0-beta" }
cw-storage-plus = "0.10"
schemars = "0.8.3"
serde = { version = "1.0.127", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.26" }
cw0 = "0.10.3"
SylvestreG marked this conversation as resolved.
Show resolved Hide resolved
cw2 = "0.15.0"
cw20 = "0.15.0"
cosmwasm-schema = "1.1.2"
cw20-base = { version = "0.15.0", features = ["library"] }
cosmwasm-std = { version = "1.1.2" }
cosmwasm-storage = { version = "1.1.2" }
SylvestreG marked this conversation as resolved.
Show resolved Hide resolved
cw-storage-plus = "0.15.0"
schemars = "0.8.10"
serde = { version = "1.0.144", default-features = false, features = ["derive"] }
SylvestreG marked this conversation as resolved.
Show resolved Hide resolved
thiserror = { version = "1.0.35" }

[dev-dependencies]
SylvestreG marked this conversation as resolved.
Show resolved Hide resolved
cosmwasm-schema = { version = "1.0.0-beta" }
cw-multi-test = { version = "0.10.3" }
cw-multi-test = { version = "0.15.0" }
33 changes: 8 additions & 25 deletions examples/schema.rs
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
use std::env::current_dir;
use std::fs::create_dir_all;

use cosmwasm_schema::{export_schema, remove_schemas, schema_for};

use cw20::BalanceResponse;
use wasmswap::msg::{
ExecuteMsg, InfoResponse, InstantiateMsg, MigrateMsg, QueryMsg, Token1ForToken2PriceResponse,
Token2ForToken1PriceResponse,
};
use wasmswap::state::Token;
use cosmwasm_schema::write_api;
use wasmswap::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};

fn main() {
let mut out_dir = current_dir().unwrap();
out_dir.push("../schema");
create_dir_all(&out_dir).unwrap();
remove_schemas(&out_dir).unwrap();

export_schema(&schema_for!(InstantiateMsg), &out_dir);
export_schema(&schema_for!(ExecuteMsg), &out_dir);
export_schema(&schema_for!(QueryMsg), &out_dir);
export_schema(&schema_for!(Token), &out_dir);
export_schema(&schema_for!(BalanceResponse), &out_dir);
export_schema(&schema_for!(InfoResponse), &out_dir);
export_schema(&schema_for!(Token1ForToken2PriceResponse), &out_dir);
export_schema(&schema_for!(Token2ForToken1PriceResponse), &out_dir);
export_schema(&schema_for!(MigrateMsg), &out_dir);
write_api! {
instantiate: InstantiateMsg,
execute: ExecuteMsg,
query: QueryMsg,
migrate: MigrateMsg
}
}
19 changes: 0 additions & 19 deletions schema/balance_response.json

This file was deleted.

Loading