-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two-step ownership transfer for staking contracts (#597)
* cw20-stake-external-rewards two-step ownership transfer. * Remove manager from cw20-stake-external-rewards. * Update to latest cw-ownable version. * Add v1 -> v2 migration for cw20-stake-reward-distributor. * Two-step ownership transfers for cw20-stake-external-rewards * v1 -> v2 migration for cw20-stake-external-rewards. * Remove manager from cw20-stake. * Two-step ownership transfer for cw20-stake * Add v1->v2 migration for stake-cw20. * Move v2 config to new storage key in staking contracts.
- Loading branch information
Showing
36 changed files
with
2,125 additions
and
1,322 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
[package] | ||
name = "stake-cw20-external-rewards" | ||
name = "cw20-stake-external-rewards" | ||
version = "2.0.0-beta" | ||
authors = ["Ben2x4 <[email protected]>"] | ||
authors = ["Ben2x4 <[email protected]>", "ekez <[email protected]>"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/DA0-DA0/cw-dao/contracts/cw20-stakeable" | ||
description = "CW20 token that can be staked and staked balance can be queried at any height" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
@@ -25,9 +22,12 @@ cw20 = { workspace = true } | |
cw-utils = { workspace = true } | ||
cw20-base = { workspace = true, features = ["library"] } | ||
cw2 = { workspace = true } | ||
|
||
thiserror = { workspace = true } | ||
cw20-stake = { workspace = true, features = ["library"]} | ||
cw-ownable = { workspace = true } | ||
|
||
cw20-stake-external-rewards-v1 = { workspace = true } | ||
cw20-013 = { package = "cw20", version = "0.13" } | ||
|
||
[dev-dependencies] | ||
cw-multi-test = { workspace = true } | ||
|
2 changes: 1 addition & 1 deletion
2
contracts/staking/cw20-stake-external-rewards/examples/schema.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.