Skip to content

Commit 15060d6

Browse files
author
Dev Kalra
authored
[cosmwasm] Osmosis multiple fee token support (#763)
* osmosis txfee supoort * add get update fee for denom * query for tx fee support * add fee checker * add comment * implement osmosis code * correct err response * fix bugs * cargo update * disable rust feature * return bool instead of result * add wormhole comment * tests added * address feedback * improve comments * cargo update
1 parent 42ddfb6 commit 15060d6

File tree

9 files changed

+1191
-557
lines changed

9 files changed

+1191
-557
lines changed

target_chains/cosmwasm/Cargo.lock

Lines changed: 796 additions & 504 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

target_chains/cosmwasm/contracts/pyth/Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ description = "Pyth price receiver"
99
crate-type = ["cdylib", "rlib"]
1010

1111
[features]
12-
# IMPORTANT: if you want to build for injective, enable the default feature below
12+
# IMPORTANT: if you want to build for injective or osmosis, enable injective default feature for injective
13+
# and osmosis default feature for osmosis
1314
# default=["injective"]
15+
# default=["osmosis"]
1416
backtraces = ["cosmwasm-std/backtraces"]
1517
# use library feature to disable all init/handle/query exports
1618
library = []
1719
injective = ["dep:serde_repr"]
20+
osmosis=["pyth-sdk-cw/osmosis"]
1821

1922
[dependencies]
2023
cosmwasm-std = { version = "1.0.0" }
@@ -24,9 +27,7 @@ serde = { version = "1.0.103", default-features = false, features = ["derive"] }
2427
serde_derive = { version = "1.0.103"}
2528
serde_repr = { version="0.1", optional = true}
2629
terraswap = "2.4.0"
27-
wormhole-bridge-terra-2 = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.14.8", features = ["library"] }
2830
thiserror = { version = "1.0.20" }
29-
k256 = { version = "0.9.4", default-features = false, features = ["ecdsa"] }
3031
sha3 = { version = "0.9.1", default-features = false }
3132
generic-array = { version = "0.14.4" }
3233
hex = "0.4.2"
@@ -36,6 +37,7 @@ pyth-wormhole-attester-sdk = { path = "../../../../wormhole_attester/sdk/rust" }
3637
pyth-sdk = "0.7.0"
3738
byteorder = "1.4.3"
3839
cosmwasm-schema = "1.1.9"
40+
osmosis-std = "0.15.2"
3941
pyth-sdk-cw = { path = "../../sdk/rust" }
4042

4143
[dev-dependencies]

0 commit comments

Comments
 (0)