Skip to content

Commit

Permalink
Added first draft DAO registry contract.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed May 26, 2023
1 parent 9261bb3 commit a84fbad
Show file tree
Hide file tree
Showing 22 changed files with 4,903 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Cargo.lock

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

6 changes: 6 additions & 0 deletions contracts/external/dao-registry/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
36 changes: 36 additions & 0 deletions contracts/external/dao-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[package]
name = "dao-registry"
authors = ["Noah Saso"]
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
version = { workspace = true }

[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]
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true }
cw-denom = { workspace = true }
cw-ownable = { workspace = true }
cw-paginate = { workspace = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
cw2 = { workspace = true }
cw20 = { workspace = true }
cw721 = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
cw-multi-test = { workspace = true }
cw20-base = { workspace = true }
dao-testing = { workspace = true }
5 changes: 5 additions & 0 deletions contracts/external/dao-registry/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# dao-registry

This contract enables the registration of DAOs and associated unique names. Like
domain names, a fee is charged on a given interval for registration, and
registrations can be renewed at most one registration period in advance.
10 changes: 10 additions & 0 deletions contracts/external/dao-registry/examples/schema.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use cosmwasm_schema::write_api;
use dao_registry::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};

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

0 comments on commit a84fbad

Please sign in to comment.