Skip to content

Commit

Permalink
updating osmosis changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kakucodes committed Jan 10, 2024
1 parent 90642e4 commit 4b0e8ae
Show file tree
Hide file tree
Showing 49 changed files with 3,556 additions and 98 deletions.
82 changes: 73 additions & 9 deletions Cargo.lock

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

21 changes: 3 additions & 18 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ outpost-utils = { path = "./packages/utils" }
wynd-helpers = { path = "./packages/wynd-helpers" }
terraswap-helpers = { path = "./packages/terraswap-helpers" }
# wyndex-stake = { git = "https://github.com/wynddao/wynddex.git", tag = "v2.2.0" }
osmosis-std = "0.15.3"
osmosis-std = "0.21.0"

osmosis-helpers = { path = "./packages/osmosis-helpers" }
mars-red-bank-types = "1.0.0"
Expand Down Expand Up @@ -78,27 +78,12 @@ sail-destinations = { path = "./packages/sail-destinations" }
osmosis-destinations = { path = "./packages/osmosis-destinations" }


[profile.release.package.ymos-junostake-outpost]
codegen-units = 1
incremental = false

[profile.release.package.ymos-wyndstake-outpost]
codegen-units = 1
incremental = false

[profile.release.package.ymos-wyndlp-outpost]
codegen-units = 1
incremental = false

[profile.release.package.ymos-osmostake-outpost]
codegen-units = 1
incremental = false


[profile.release]
rpath = false
lto = true
overflow-checks = true
opt-level = 3
debug = false
debug-assertions = false
codegen-units = 1
incremental = false
64 changes: 64 additions & 0 deletions contracts/migaloostake/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[package]
name = "ymos-migaloostake-outpost"
authors = ["Marc <[email protected]>"]
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 }

cw-grant-spec = { workspace = true }
cw-orch = { workspace = true, optional = true }
terraswap-helpers = { workspace = true }
white-whale = { workspace = true }
universal-destinations = { workspace = true }
migaloo-destinations = { workspace = true }
sail-destinations = { 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 <[email protected]>

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 4b0e8ae

Please sign in to comment.