Skip to content

Commit

Permalink
Merge pull request #60 from neutron-org/feat/rescueeer
Browse files Browse the repository at this point in the history
Add rescueeer
  • Loading branch information
pr0n00gler authored May 3, 2023
2 parents 04f04a5 + 794c3b8 commit 0a6e234
Show file tree
Hide file tree
Showing 15 changed files with 1,913 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"contracts/subdaos/cwd-subdao-timelock-single",
"contracts/tokenomics/reserve",
"contracts/tokenomics/distribution",
"contracts/misc/rescueeer",

"packages/*",
]
Expand Down
4 changes: 4 additions & 0 deletions contracts/misc/rescueeer/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
unit-test = "test --lib"
schema = "run --example schema"
15 changes: 15 additions & 0 deletions contracts/misc/rescueeer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Build results
/target

# Cargo+Git helper file (https://github.com/rust-lang/cargo/blob/0.44.1/src/cargo/sources/git/utils.rs#L320-L327)
.cargo-ok

# Text file backups
**/*.rs.bk

# macOS
.DS_Store

# IDEs
*.iml
.idea
32 changes: 32 additions & 0 deletions contracts/misc/rescueeer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[package]
name = "rescueeer"
version = "0.2.0"
authors = ["oldremez"]
edition = "2021"
repository = "https://github.com/neutron-org/neutron-dao"
description = "rescuer"

[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 = { version = "1.1.3" }
cosmwasm-std = { version = "1.1.3" }
cosmwasm-storage = { version = "1.1.3" }
cw-storage-plus = "1.0.1"
cw-utils = "1.0.1"
cw-controllers = "1.0.1"
schemars = "0.8"
serde = { version = "1.0.147", default-features = false, features = ["derive"] }
thiserror = { version = "1.0" }
neutron_bindings = { package = "neutron-sdk", version = "0.4.0" }

[dev-dependencies]
cw-multi-test = "0.16.2"
anyhow = "1.0.57"
1 change: 1 addition & 0 deletions contracts/misc/rescueeer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
### Rescueeer
16 changes: 16 additions & 0 deletions contracts/misc/rescueeer/examples/schema.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use std::env::current_dir;
use std::fs::create_dir_all;

use cosmwasm_schema::{export_schema, remove_schemas, schema_for};
use rescueeer::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg};

fn main() {
let mut out_dir = current_dir().unwrap();
out_dir.push("schema");
create_dir_all(&out_dir).unwrap();
remove_schemas(&out_dir).unwrap();

export_schema(&schema_for!(InstantiateMsg), &out_dir);
export_schema(&schema_for!(ExecuteMsg), &out_dir);
export_schema(&schema_for!(MigrateMsg), &out_dir);
}
Loading

0 comments on commit 0a6e234

Please sign in to comment.