Skip to content

Commit b66a998

Browse files
committed
add toolchain
1 parent 0a33b5a commit b66a998

File tree

7 files changed

+69
-52
lines changed

7 files changed

+69
-52
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ libwasmvm_muslc.a
66
tests/test-data.json
77
**/artifacts/*
88
!**/artifacts/*.wasm
9-
.env
9+
.env
10+
11+
.scannerwork/
12+
clippy-report.json

Cargo.lock

+32-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ resolver = "2"
55

66
[workspace.dependencies]
77
cosmwasm-testing-util = { git = "https://github.com/oraichain/cosmwasm-testing-util.git", rev = "24c138c" }
8-
oraiswap = { git = "https://github.com/oraichain/oraiswap.git", rev = "03f4955b" }
8+
oraiswap = { git = "https://github.com/oraichain/oraiswap.git", rev = "29decac" }
9+
cw2 = { version = "1.0.1" }
10+
cw20 = { version = "1.0.1" }
11+
cw20-base = { version = "1.0.1" }
12+
cw-storage-plus = { version = "1.0.1" }
13+
cw-controllers = { version = "1.0.1" }
14+
cw-utils = "0.16.0"
15+
cw20-ics20-msg = { path = "./packages/cw20-ics20-msg" }
16+
cosmwasm-schema = { version = "1.2.8" }
17+
cosmwasm-std = { version = "1.2.8", default-features = false }
18+
cosmwasm-vm = { version = "1.2.8" }
919
# osmosis-test-tube = { git = "https://github.com/oraichain/test-tube.git", rev = "354d580" }
1020

1121
[profile.release]

contracts/cw-ics20-latest/Cargo.toml

+9-10
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,20 @@ backtraces = ["cosmwasm-std/backtraces"]
1818
library = []
1919

2020
[dependencies]
21-
cosmwasm-schema = "=1.2"
22-
cw-utils = "0.16.0"
23-
cw2 = "1.0.1"
24-
cw20 = "1.0.1"
25-
cw20-ics20-msg = { path = "../../packages/cw20-ics20-msg" }
21+
cosmwasm-schema = { workspace = true }
22+
cw-utils = { workspace = true }
23+
cw2 = { workspace = true }
24+
cw20 = { workspace = true }
25+
cw20-ics20-msg = { workspace = true }
2626
oraiswap = { workspace = true }
27-
cosmwasm-std = { version = "=1.2", features = ["ibc3"] }
28-
cw-storage-plus = "1.0.1"
29-
cw-controllers = "1.0.1"
27+
cosmwasm-std = { workspace = true, features = ["ibc3"] }
28+
cw-storage-plus = { workspace = true }
29+
cw-controllers = { workspace = true }
3030
thiserror = { version = "1.0.23" }
3131
sha256 = "=1.1.0"
3232

3333
[dev-dependencies]
34-
cosmwasm-vm = { version = "=1.2" }
34+
cosmwasm-vm = { workspace = true }
3535
# osmosis-test-tube = { workspace = true }
3636
cosmwasm-testing-util = { workspace = true }
3737
anybuf = "0.3.0"
38-
cw-multi-test = "0.16.0"

packages/cw20-ics20-msg/Cargo.toml

+6-7
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ documentation = "https://docs.orai.io"
1111
readme = "README.md"
1212

1313
[dependencies]
14-
cosmwasm-schema = "=1.2"
15-
cosmwasm-std = { version = "=1.2", default-features = false }
16-
cw-storage-plus = "1.0.1"
17-
cw20 = "1.0.1"
18-
bech32 = "0.8.1"
14+
cosmwasm-schema = { workspace = true }
15+
cosmwasm-std = { workspace = true }
16+
cw-storage-plus = { workspace = true }
17+
cw20 = { workspace = true }
1918
oraiswap = { workspace = true }
19+
bech32 = "0.8.1"
2020
anybuf = "0.3.0"
2121

2222
[dev-dependencies]
23-
cw-multi-test = "0.16.0"
2423
cosmwasm-testing-util = { workspace = true }
25-
cosmwasm-vm = { version = "=1.2" }
24+
cosmwasm-vm = { workspace = true }

packages/cw20-ics20-msg/src/converter.rs

+2
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ mod tests {
186186
SystemResult::Ok(ContractResult::Ok(
187187
to_binary(&ConvertInfoResponse {
188188
token_ratio: TokenRatio {
189+
is_mint_burn: false,
189190
info: AssetInfo::Token {
190191
contract_addr: Addr::unchecked("orai123"),
191192
},
@@ -252,6 +253,7 @@ mod tests {
252253
res,
253254
Some(ConvertInfoResponse {
254255
token_ratio: TokenRatio {
256+
is_mint_burn: false,
255257
info: AssetInfo::Token {
256258
contract_addr: Addr::unchecked("orai123"),
257259
},

rust-toolchain.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[toolchain]
2+
channel = "1.76"
3+
components = ["rustfmt", "rust-src", "clippy"]
4+
targets = ["wasm32-unknown-unknown"]
5+
profile = "minimal"

0 commit comments

Comments
 (0)