Skip to content

Commit

Permalink
working on updating the helpers to be multi-chain friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
kakucodes committed Dec 26, 2023
1 parent 36bc0db commit 07b1e24
Show file tree
Hide file tree
Showing 37 changed files with 1,703 additions and 124 deletions.
84 changes: 56 additions & 28 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ wyndex-factory = { git = "https://github.com/wynddao/wynddex.git", tag = "v2.2.0
outpost-utils = { path = "./packages/utils" }
wynd-helpers = { path = "./packages/wynd-helpers" }
terraswap-helpers = { path = "./packages/terraswap-helpers" }
juno-helpers = { path = "./packages/juno-helpers" }
grant-helpers = { path = "./packages/grant-helpers" }
# wyndex-stake = { git = "https://github.com/wynddao/wynddex.git", tag = "v2.2.0" }
osmosis-std = "0.15.3"

Expand Down
2 changes: 0 additions & 2 deletions contracts/comp_prefs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ schemars = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
semver = { workspace = true }
# outpost-utils = { workspace = true }
# juno-helpers = { workspace = true }
cw-orch = { workspace = true, optional = true }


Expand Down
2 changes: 1 addition & 1 deletion contracts/junodca/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ wyndex-multi-hop = { workspace = true }
wynd-stake = { workspace = true }
wynd-helpers = { workspace = true }
outpost-utils = { workspace = true }
juno-helpers = { workspace = true }
grant-helpers = { workspace = true, features = ["juno"] }
balance-token-swap = { workspace = true }
# stake-easy = { workspace = true }
bond-router = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion contracts/junostake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ cw-grant-spec = { workspace = true }
cw-orch = { workspace = true, optional = true }
terraswap-helpers = { workspace = true }
white-whale = { workspace = true }
juno-helpers = { workspace = true }
grant-helpers = { workspace = true, features = ["juno"] }


[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion contracts/junowwmarket/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ cw-grant-spec = { workspace = true }
cw-orch = { workspace = true, optional = true }
terraswap-helpers = { workspace = true }
white-whale = { workspace = true }
juno-helpers = { workspace = true }
grant-helpers = { workspace = true, features = ["juno"] }


[dev-dependencies]
Expand Down
62 changes: 62 additions & 0 deletions contracts/migaloostake/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[package]
name = "ymos-migaloostake-outpost"
authors = ["Marc <marc@yieldmos.com>"]
version = { workspace = true }
edition = { workspace = true }
description = "Yieldmos Migaloo Staking Outpost"

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",
]


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

[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
panic = 'abort'
incremental = false
overflow-checks = true

[features]
# for more explicit tests, cargo test --features=backtraces
backtraces = ["cosmwasm-std/backtraces"]
# use library feature to disable all instantiate/execute/query exports
library = []
interface = ["dep:cw-orch"]


[dependencies]
withdraw-rewards-tax-grant = { workspace = true }
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true }
cosmwasm-storage = { workspace = true }
cw-storage-plus = { workspace = true }
cw2 = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
semver = { workspace = true }
cosmos-sdk-proto = { workspace = true }
cw20 = { workspace = true }
cw20-stake = { workspace = true }
cw20-vesting = { workspace = true }
outpost-utils = { workspace = true }
grant-helpers = { workspace = true, features = ["migaloo"] }
bond-router = { workspace = true }
cw-grant-spec = { workspace = true }
cw-orch = { workspace = true, optional = true }
terraswap-helpers = { workspace = true }
white-whale = { workspace = true }


[dev-dependencies]
cw-multi-test = { workspace = true }
13 changes: 13 additions & 0 deletions contracts/migaloostake/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2023 Marc <marc@yieldmos.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
17 changes: 17 additions & 0 deletions contracts/migaloostake/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Junostake Outpost

Compounding outpost that allows users to specify how they would like to manage their juno staking rewards by percentage. It is intended to be called on a regular basis by Yieldmos so that delegators can manage their rewards in whatever way they would like.

Care has been taken to made the Destination projects modular and easily extendable when new projects/targets become available

## Available Destination Projects

The things you can do with your rewards during any given compounding.

| Destination Project | Status | Note |
| ------------------- | --------- | -------------------------------------------- |
| `Juno Staking` | `working` | Can specify any validator address |
| `Wynd Staking` | `working` | Can specify any valid unbonding period |
| `Neta Staking` | `working` | |
| `Token Swap` | `working` | Can pick any token that's on Wyndex |
| `Wyndex LPs` | `working` | Must specify the given pool contract address |
1 change: 1 addition & 0 deletions contracts/migaloostake/rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
max_width = 125
11 changes: 11 additions & 0 deletions contracts/migaloostake/src/bin/migaloostake_schema.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use cosmwasm_schema::write_api;

use ymos_migaloostake_outpost::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};

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

0 comments on commit 07b1e24

Please sign in to comment.