Skip to content

Commit

Permalink
Merge pull request #5 from ComposableFi/dz/5
Browse files Browse the repository at this point in the history
bug: fixing clean up, simulate, solve, cancel issues
  • Loading branch information
dzmitry-lahoda authored Nov 21, 2023
2 parents 434dd0e + 3617e05 commit f085b4d
Show file tree
Hide file tree
Showing 20 changed files with 396 additions and 186 deletions.
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -314,4 +314,17 @@ cython_debug/

.env
.ssh/**
.secrets/**
.secrets/**
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix
.vscode/settings.json
22 changes: 12 additions & 10 deletions Cargo.lock

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

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ derive_more = { version = "0.99.17", default-features = false, features = [
hex = { version = "^0.4.3", default-features = false }
num = { version = "^0.4.1", default-features = false }

prost-build = { version = "^0.12.1" }
prost-build = { version = "^0.12.2" }

cosmwasm-std = { version = "^1.5.0", features = [
"iterator",
], default-features = false }
cw-controllers = { version = "^1.1.1", default-features = false }
sylvia = { version = "^0.9.0", default-features = false }
sylvia = { version = "^0.9.1", default-features = false }
schemars = { version = "^0.8.16", default-features = false }
cosmwasm-schema = { version = "^1.5.0", default-features = false }
serde = { version = "^1.0.192", default-features = false }
Expand All @@ -60,7 +60,8 @@ rust_decimal_macros = "^1.33"
rand_distr = "^0.4.3"
strum = "^0.25"
strum_macros = "^0.25"
tuples = { version = "^1.12.0" }
tuples = { version = "^1.14.0" }


bip32 = { version = "^0.5.1", default-features = false, features = ["alloc", "secp256k1", "mnemonic", "bip39"] }
bip32 = { version = "^0.5.1", default-features = false, features = ["alloc", "secp256k1", "mnemonic", "bip39"] }
prost-types = { version = "^0.12.3", default-features = false }
4 changes: 2 additions & 2 deletions contracts/cosmwasm/order/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ impl OrderContract<'_> {
pub fn timeout(
&self,
ctx: ExecCtx,
_orders: Vec<OrderId>,
_solutions: Vec<Addr>,
orders: Vec<OrderId>,
solutions: Vec<Addr>,
) -> StdResult<Response> {
let orders: Result<Vec<(u128, OrderItem)>, _> = self
.orders
Expand Down
2 changes: 1 addition & 1 deletion devnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#clear && cargo run --bin mantis -- --centauri "http://localhost:26657" --osmosis "localhost:36657" --neutron "localhost:46657" --cvm-contract "centauri1" --wallet "mnemonic" --order-contract "centauri1"


RUST_TRACE=trace cargo run --bin mantis -- --rpc-centauri "https://composable-rpc.polkachu.com:443" --grpc-centauri "https://composable-grpc.polkachu.com:22290" --osmosis "todo" --neutron "todo" --cvm-contract "centauri1wpf2szs4uazej8pe7g8vlck34u24cvxx7ys0esfq6tuw8yxygzuqpjsn0d" --wallet "$WALLET" --order-contract "centauri1lnyecncq9akyk8nk0qlppgrq6yxktr68483ahryn457x9ap4ty2sthjcyt"
RUST_TRACE=trace cargo run --bin mantis -- --rpc-centauri "https://composable-rpc.polkachu.com:443" --grpc-centauri "https://composable-grpc.polkachu.com:22290" --osmosis "todo" --neutron "todo" --cvm-contract "centauri1wpf2szs4uazej8pe7g8vlck34u24cvxx7ys0esfq6tuw8yxygzuqpjsn0d" --wallet "$WALLET" --order-contract "centauri1lnyecncq9akyk8nk0qlppgrq6yxktr68483ahryn457x9ap4ty2sthjcyt" --simulate "1000000ppica,1ibc/EF48E6B1A1A19F47ECAEA62F5670C37C0580E86A9E88498B7E393EB6F49F33C0"
5 changes: 4 additions & 1 deletion mantis/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ itertools = { workspace = true }
derive_more = { workspace = true }
serde-json-wasm = { workspace = true }
tuples = { workspace = true }
cosmwasm-std = {workspace = true}
cosmwasm-std = {workspace = true}

serde ={ workspace = true }
prost-types = {workspace = true}
Loading

0 comments on commit f085b4d

Please sign in to comment.