Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finish adding cw-orch script interface #6

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 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 @@ -154,4 +154,4 @@ dao-pre-propose-single-v241 = { package = "dao-pre-propose-single", version = "=
dao-proposal-multiple-v241 = { package = "dao-proposal-multiple", version = "=2.4.1" }
dao-proposal-single-v241 = { package = "dao-proposal-single", version = "=2.4.1" }
dao-voting-cw4-v241 = { package = "dao-voting-cw4", version = "=2.4.1" }
dao-voting-v241 = { package = "dao-voting", version = "=2.4.1" }
dao-voting-v241 = { package = "dao-voting", version = "=2.4.1" }
2 changes: 1 addition & 1 deletion packages/cw-orch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ dao-voting-cw721-staked.workspace = true
dao-voting-token-staked.workspace = true
dao-rewards-distributor.workspace = true
cw-fund-distributor.workspace = true
serde.workspace = true
serde.workspace = true
4 changes: 2 additions & 2 deletions packages/cw-orch/src/distribution/cw_fund_distributor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use cw_fund_distributor::contract::{execute, instantiate, query};
use cw_fund_distributor::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};

#[interface(InstantiateMsg, ExecuteMsg, QueryMsg, Empty)]
pub struct CwFundDistributor;
pub struct DaoFundsDistributor;

impl<Chain> Uploadable for CwFundDistributor<Chain> {
impl<Chain> Uploadable for DaoFundsDistributor<Chain> {
/// Return the path to the wasm file corresponding to the contract
fn wasm(_chain: &ChainInfoOwned) -> WasmPath {
artifacts_dir_from_workspace!()
Expand Down
2 changes: 1 addition & 1 deletion packages/cw-orch/src/distribution/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod cw_fund_distributor;
mod dao_rewards_distributor;

pub use cw_fund_distributor::CwFundDistributor;
pub use cw_fund_distributor::DaoFundsDistributor;
pub use dao_rewards_distributor::DaoRewardsDistributor;
4 changes: 2 additions & 2 deletions packages/cw-orch/src/staking/cw20_stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use cw20_stake::contract::{execute, instantiate, migrate, query};
use cw20_stake::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};

#[interface(InstantiateMsg, ExecuteMsg, QueryMsg, MigrateMsg)]
pub struct Cw20Stake;
pub struct DaoStakingCw20;

impl<Chain> Uploadable for Cw20Stake<Chain> {
impl<Chain> Uploadable for DaoStakingCw20<Chain> {
/// Return the path to the wasm file corresponding to the contract
fn wasm(_chain: &ChainInfoOwned) -> WasmPath {
artifacts_dir_from_workspace!()
Expand Down
4 changes: 2 additions & 2 deletions packages/cw-orch/src/staking/external_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use cw20_stake_external_rewards::contract::{execute, instantiate, migrate, query
use cw20_stake_external_rewards::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};

#[interface(InstantiateMsg, ExecuteMsg, QueryMsg, MigrateMsg)]
pub struct Cw20StakeExternalRewards;
pub struct DaoStakingCw20ExternalRewards;

impl<Chain> Uploadable for Cw20StakeExternalRewards<Chain> {
impl<Chain> Uploadable for DaoStakingCw20ExternalRewards<Chain> {
/// Return the path to the wasm file corresponding to the contract
fn wasm(_chain: &ChainInfoOwned) -> WasmPath {
artifacts_dir_from_workspace!()
Expand Down
6 changes: 3 additions & 3 deletions packages/cw-orch/src/staking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ mod cw20_stake;
mod external_rewards;
mod reward_distributor;

pub use cw20_stake::Cw20Stake;
pub use external_rewards::Cw20StakeExternalRewards;
pub use reward_distributor::Cw20StakeRewardDistributor;
pub use cw20_stake::DaoStakingCw20;
pub use external_rewards::DaoStakingCw20ExternalRewards;
pub use reward_distributor::DaoStakingCw20RewardDistributor;
4 changes: 2 additions & 2 deletions packages/cw-orch/src/staking/reward_distributor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use cw20_stake_reward_distributor::contract::{execute, instantiate, migrate, que
use cw20_stake_reward_distributor::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};

#[interface(InstantiateMsg, ExecuteMsg, QueryMsg, MigrateMsg)]
pub struct Cw20StakeRewardDistributor;
pub struct DaoStakingCw20RewardDistributor;

impl<Chain> Uploadable for Cw20StakeRewardDistributor<Chain> {
impl<Chain> Uploadable for DaoStakingCw20RewardDistributor<Chain> {
/// Return the path to the wasm file corresponding to the contract
fn wasm(_chain: &ChainInfoOwned) -> WasmPath {
artifacts_dir_from_workspace!()
Expand Down
Loading
Loading