Skip to content

Commit

Permalink
Merge pull request #79 from EuclidProtocol/feat/forwarding-contract
Browse files Browse the repository at this point in the history
Forwarding Contract and Refund Logic fix in escrow forwarding
  • Loading branch information
SlayerAnsh authored Dec 16, 2024
2 parents fbf17f0 + c335854 commit b9de31c
Show file tree
Hide file tree
Showing 40 changed files with 1,135 additions and 252 deletions.
99 changes: 99 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resolver = "2"
members = [
"contracts/hub/*",
"contracts/liquidity/*",
"contracts/forwarding/*",
"contracts/common/*",
"packages/*",
"tests-integration",
Expand All @@ -25,6 +26,7 @@ strip = true
euclid = { path = "./packages/euclid" }
euclid-ibc = { path = "./packages/euclid_ibc" }
euclid-utils = { path = "./packages/euclid_utils" }
forwarding = { path = "./packages/forwarding" }

cosmwasm-std = "1.5.3"
cosmwasm-schema = "1.5.0"
Expand Down
4 changes: 4 additions & 0 deletions contracts/forwarding/astroport-forwarding/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[alias]
wasm = "build --release --lib --target wasm32-unknown-unknown"
unit-test = "test --lib"
schema = "run --bin schema"
11 changes: 11 additions & 0 deletions contracts/forwarding/astroport-forwarding/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.rs]
indent_size = 4
16 changes: 16 additions & 0 deletions contracts/forwarding/astroport-forwarding/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Build results
/target
/schema

# Cargo+Git helper file (https://github.com/rust-lang/cargo/blob/0.44.1/src/cargo/sources/git/utils.rs#L320-L327)
.cargo-ok

# Text file backups
**/*.rs.bk

# macOS
.DS_Store

# IDEs
*.iml
.idea
58 changes: 58 additions & 0 deletions contracts/forwarding/astroport-forwarding/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[package]
name = "astroport-forwarding"
version = "0.2.0"
authors = ["Anshudhar Kumar Singh <[email protected]>"]
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["cdylib", "rlib"]

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

[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=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/optimizer:0.15.0
"""

[dependencies]
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true, features = [
"cosmwasm_1_2",
# Enable this if you only deploy to chains that have CosmWasm 1.4 or higher
# "cosmwasm_1_4",
"ibc3",
] }
cw-storage-plus = { workspace = true }
cw2 = { workspace = true }
cw20 = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true, default-features = false, features = ["derive"] }
thiserror = { workspace = true }
euclid = { workspace = true }
forwarding = { workspace = true }
cw-orch = "=0.24.1"
astroport = { git = "https://github.com/astroport-fi/astroport-core", branch = "main" }
cw-utils = { workspace = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
cw-multi-test = { workspace = true }
mock = { workspace = true }
Loading

0 comments on commit b9de31c

Please sign in to comment.