Skip to content

Commit e941658

Browse files
authored
Merge pull request #25 from burnt-labs/feat/treasury
Treasury Contract
2 parents 60ebe25 + 5a2375b commit e941658

28 files changed

+637
-21
lines changed

Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
members = [
3-
"account"
3+
"contracts/*",
44
]
55

66
[profile.release]
@@ -9,18 +9,16 @@ overflow-checks = true # Disable integer overflow checks.
99

1010

1111
[workspace.dependencies]
12-
cosmos-sdk-proto = { version = "0.19", default-features = false }
1312
cosmwasm-schema = "=1.4.1"
1413
cosmwasm-std = { version = "=1.4.1", features = ["stargate"] }
1514
cw2 = "1.1.1"
1615
cw-storage-plus = "1.1.0"
1716
cw-utils = "1.0.2"
1817
hex = "0.4"
19-
prost = "0.11"
2018
sha2 = { version = "0.10.8", features = ["oid"]}
2119
thiserror = "1"
2220
tiny-keccak = { version = "2", features = ["keccak"] }
23-
serde = { version = "1.0.145", default-features = false, features = ["derive"] }
21+
serde = { version = "1.0.203", default-features = false, features = ["derive"] }
2422
serde_json = "1.0.87"
2523
schemars = "0.8.10"
2624
ripemd = "0.1.3"
@@ -30,3 +28,8 @@ phf = { version = "0.11.2", features = ["macros"] }
3028
rsa = { version = "0.9.2" }
3129
getrandom = { version = "0.2.10", features = ["custom"] }
3230
p256 = {version = "0.13.2", features = ["ecdsa-core", "arithmetic", "serde"]}
31+
prost = {version = "0.11.2", default-features = false, features = ["prost-derive"]}
32+
cosmos-sdk-proto = {git = "https://github.com/burnt-labs/cosmos-rust.git", rev = "9108ae0517bd9fd543c0662e06598032a642e426", default-features = false, features = ["cosmwasm", "xion"]}
33+
osmosis-std-derive = "0.13.2"
34+
prost-types = "0.12.6"
35+
pbjson-types = "0.6.0"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
```bash
44

5-
docker run --rm -v "$(pwd)":/code \
5+
docker run --rm -v "$(pwd)":/code \
66
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
77
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
8-
cosmwasm/workspace-optimizer:0.14.0
8+
cosmwasm/optimizer:0.15.1
99
```

account/Cargo.toml renamed to contracts/account/Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,5 @@ phf = { workspace = true }
2727
rsa = { workspace = true }
2828
getrandom = { workspace = true }
2929
p256 = { workspace = true }
30-
url = "2.4.1"
31-
coset = "0.3.5"
32-
futures = "0.3.29"
33-
async-trait = "0.1.74"
34-
prost = {version = "0.11.2", default-features = false, features = ["prost-derive"]}
35-
osmosis-std-derive = "0.13.2"
30+
prost = { workspace = true }
31+
osmosis-std-derive = { workspace = true }
File renamed without changes.
File renamed without changes.

account/src/auth/jwt.rs renamed to contracts/account/src/auth/jwt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn verify(
4242
let query = proto::QueryValidateJWTRequest {
4343
aud: aud.to_string(),
4444
sub: sub.to_string(),
45-
sig_bytes: String::from_utf8(sig_bytes.into()).unwrap(),
45+
sig_bytes: String::from_utf8(sig_bytes.into())?,
4646
// tx_hash: challenge,
4747
};
4848

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)