Skip to content

Commit

Permalink
Merge pull request #30 from hadronlabs-org/feat/proposal-votes
Browse files Browse the repository at this point in the history
Validators proposals voting calculation contract
  • Loading branch information
oldremez authored Feb 26, 2024
2 parents 945a8ff + 9a566c4 commit 242002b
Show file tree
Hide file tree
Showing 41 changed files with 3,433 additions and 80 deletions.
86 changes: 66 additions & 20 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ members = [
"contracts/token",
"contracts/validators-set",
"contracts/rewards-manager",
"contracts/proposal-votes-poc",
"contracts/provider-proposals-poc",
"contracts/strategy",
"contracts/pump",
"contracts/hook-tester",
Expand All @@ -28,7 +30,7 @@ cosmwasm-std = { version = "1.5.2", default-features = false, features = [
"stargate",
"cosmwasm_1_2",
] }
neutron-sdk = { package = "neutron-sdk", git = "https://github.com/neutron-org/neutron-sdk", branch = "feat/LIDO-68-query-siginig-info" }
neutron-sdk = { package = "neutron-sdk", git = "https://github.com/neutron-org/neutron-sdk", branch = "feat/proposal-votes" }

cosmos-sdk-proto = { version = "0.20.0", default-features = false }
cw-ownable = { version = "0.5.1", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions contracts/proposal-votes-poc/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
schema = "run --bin lido-proposal-votes-poc-schema"
46 changes: 46 additions & 0 deletions contracts/proposal-votes-poc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[package]
authors = ["Albert Andrejev <[email protected]>"]
description = "Contract to control proposals voting process"
edition = "2021"
name = "lido-proposal-votes-poc"
version = "1.0.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.
"contract.wasm",
"hash.txt",
]

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

[lib]
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 = []

[dependencies]
cosmos-sdk-proto = { workspace = true }
prost = { workspace = true }
prost-types = { workspace = true }
tendermint-proto = { workspace = true }
thiserror = { workspace = true }

cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true }
cw2 = { workspace = true }
cw-storage-plus = { workspace = true }
cw-ownable = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
serde-json-wasm = { workspace = true }

neutron-sdk = { workspace = true }
lido-staking-base = { workspace = true }
lido-helpers = { workspace = true }

[dev-dependencies]
cw-multi-test = { workspace = true }
3 changes: 3 additions & 0 deletions contracts/proposal-votes-poc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# LIDO Proposal votes contract

** This is POC contract. **
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use cosmwasm_schema::write_api;
use lido_staking_base::msg::proposal_votes::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};

fn main() {
write_api! {
instantiate: InstantiateMsg,
query: QueryMsg,
execute: ExecuteMsg,
migrate: MigrateMsg
}
}
Loading

0 comments on commit 242002b

Please sign in to comment.