Skip to content

Commit

Permalink
feat: updated the swap routes query
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrobot committed Oct 30, 2024
1 parent a088c23 commit 0aa058f
Show file tree
Hide file tree
Showing 23 changed files with 1,736 additions and 7,091 deletions.
2,316 changes: 1,337 additions & 979 deletions Cargo.lock

Large diffs are not rendered by default.

46 changes: 30 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
[workspace]
members = ["contracts/*"]
members = [ "contracts/*" ]
resolver = "2"

[profile.release.package.injective-cosmwasm]
codegen-units = 1
incremental = false
[workspace.package]
edition = "2021"

[workspace.dependencies]
cosmwasm-schema = { version = "2.1.1" }
cosmwasm-std = { version = "2.1.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "iterator", "stargate" ] }
cw-multi-test = { version = "0.16.2" }
cw-storage-plus = { version = "2.0.0" }
cw-utils = { version = "2.0.0" }
cw2 = { version = "2.0.0" }
injective-cosmwasm = { version = "0.3.0" }
injective-math = { version = "0.3.0" }
injective-std = { version = "1.13.0" }
injective-test-tube = { version = "1.13.2" }
prost = { version = "0.12.6" }
schemars = { version = "0.8.16", features = [ "enumset" ] }
serde = { version = "1.0.193", default-features = false, features = [ "derive" ] }
serde-json-wasm = { version = "1.0.1" }
serde_json = { version = "1.0.120" }
thiserror = { version = "1.0.52" }

[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
codegen-units = 1
debug = false
debug-assertions = false
codegen-units = 1
panic = 'abort'
incremental = false
overflow-checks = true

[patch.crates-io]
#cw-multi-test = { path = "../cw-multi-test" }
#cw-multi-test = { git = "https://github.com/InjectiveLabs/cw-multi-test.git", branch ="feature/custom_address_generator" }
incremental = false
lto = true
opt-level = 3
overflow-checks = true
panic = 'abort'
rpath = false
3 changes: 2 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ All notable changes to this project will be documented in this file.

-

## [1.0.2] - 2024-03-19
## [1.1.0] - 2024-10-30

### Fixed

- Added pagination to `get_all_routes`
- Bump version of `serde-json-wasm`

## [1.0.1] - 2024-02-24
Expand Down
15 changes: 0 additions & 15 deletions contracts/swap/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions contracts/swap/.gitpod.Dockerfile

This file was deleted.

10 changes: 0 additions & 10 deletions contracts/swap/.gitpod.yml

This file was deleted.

49 changes: 18 additions & 31 deletions contracts/swap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = [ "Markus Waas <[email protected]>" ]
edition = "2021"
name = "swap-contract"
version = "1.0.2"
version = "1.1.0"

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
Expand All @@ -16,38 +16,25 @@ exclude = [
crate-type = [ "cdylib", "rlib" ]

[features]
# for more explicit tests, cargo test --features=backtraces
backtraces = [ "cosmwasm-std/backtraces" ]
# use library feature to disable all instantiate/execute/query exports
library = [ ]

[package.metadata.scripts]
optimize = """docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/workspace-optimizer-arm64:0.12.11
"""

[dependencies]
cosmwasm-std = { version = "1.5.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "iterator", "stargate" ] }
cosmwasm-storage = "1.5.0"
cw-storage-plus = "0.14.0"
cw-utils = "0.14.0"
cw2 = "0.14.0"
injective-cosmwasm = { version = "0.2.18" }
injective-math = { version = "0.2.4" }
injective-protobuf = { version = "0.2.2" }
num-traits = "0.2.15"
protobuf = { version = "2", features = [ "with-bytes" ] }
schemars = "0.8.8"
serde = { version = "1.0.137", default-features = false, features = [ "derive" ] }
serde-json-wasm = "1.0.1"
thiserror = { version = "1.0.31" }
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
cw2 = { workspace = true }
injective-cosmwasm = { workspace = true }
injective-math = { workspace = true }
injective-std = { workspace = true }
prost = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
serde-json-wasm = { workspace = true }
thiserror = { workspace = true }

[dev-dependencies]
cosmos-sdk-proto = { version = "0.19.0", default-features = false }
cosmwasm-schema = "1.5.0"
cw-multi-test = "0.16.2"
injective-std = { version = "0.1.5" }
injective-test-tube = "1.1.7"
prost = "0.11.9"
cosmwasm-schema = { workspace = true }
# cw-multi-test = { workspace = true }
injective-std = { workspace = true }
injective-test-tube = { workspace = true }
70 changes: 0 additions & 70 deletions contracts/swap/msg.rs

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/swap/rustfmt.toml

This file was deleted.

Loading

0 comments on commit 0aa058f

Please sign in to comment.