Skip to content

Commit

Permalink
added mirrorbox
Browse files Browse the repository at this point in the history
  • Loading branch information
siriustaikun committed Feb 28, 2023
1 parent f463608 commit abba4ea
Show file tree
Hide file tree
Showing 32 changed files with 3,765 additions and 4 deletions.
30 changes: 30 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,33 @@ opt-level = 3
overflow-checks = true
panic = 'abort'
rpath = false

[workspace.dependencies]
cosmwasm-std = { version = "1.1", features = ["ibc3"] }
cosmwasm-storage = { version = "1.1" }
cosmwasm-schema = { version = "1.1" }
cw-utils = "0.16"
thiserror = { version = "1.0.30" }
cw-storage-plus = "0.16"
cw2 = "0.16"
cw20 = "0.16"
cw721 = "0.16"
cw20-base = "0.16"
cw-multi-test = "0.16"
cw721-base = "0.16"
cw-controllers = "0.16"
anyhow = { version = "1.0.51" }
cw4-group = "0.16"
rand = "0.8"
cw4 = "0.16"
cw3 = "0.16"
serde = "1.0"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0", features = ["derive"] }
wynd-utils = "0.4.1"

cw-paginate = { version = "v1.0.0", git = "https://github.com/DA0-DA0/dao-contracts.git" }
cw20-stake-v1 = { package = "cw20-stake", version = "0.2.6", git = "https://github.com/DA0-DA0/dao-contracts.git", tag = "v1.0.0" }
cw-utils-v1 = { package = "cw-utils", version = "0.13" }
cw-ownable = { git = "https://github.com/steak-enjoyers/cw-plus-plus", rev = "50d4d9333305894457e5028072a0465f4635b15b" }
4 changes: 4 additions & 0 deletions archive/cw20-stake/.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"
36 changes: 36 additions & 0 deletions archive/cw20-stake/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[package]
name = "cw20-stake"
version = "2.0.3"
authors = ["Ben2x4 <[email protected]>"]
edition = "2018"
repository = "https://github.com/DA0-DA0/cw-dao/contracts/cw20-stake"
description = "CW20 token that can be staked and staked balance can be queried at any height"

[lib]
crate-type = ["cdylib", "rlib"]

[features]
backtraces = ["cosmwasm-std/backtraces"]
# use library feature to disable all instantiate/execute/query exports
library = []

[dependencies]
cosmwasm-std = { workspace = true }
cosmwasm-storage = { workspace = true }
cosmwasm-schema = { workspace = true }
cw-storage-plus = { workspace = true }
cw-controllers = { workspace = true }
cw20 = { workspace = true }
cw-utils = { workspace = true }
cw20-base = { workspace = true, features = ["library"] }
cw2 = { workspace = true }
thiserror = { workspace = true }
cw-paginate = { workspace = true }
cw-ownable = { workspace = true }

cw20-stake-v1 = { workspace = true, features = ["library"] }
cw-utils-v1 = { workspace = true }

[dev-dependencies]
cw-multi-test = { workspace = true }
anyhow = { workspace = true }
5 changes: 5 additions & 0 deletions archive/cw20-stake/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CW20 Stake

This is a basic implementation of a cw20 staking contract. Staked
tokens can be unbonded with a configurable unbonding period. Staked
balances can be queried at any arbitrary height by external contracts.
11 changes: 11 additions & 0 deletions archive/cw20-stake/examples/schema.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use cosmwasm_schema::write_api;
use cw20_stake::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};

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

0 comments on commit abba4ea

Please sign in to comment.