-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Serkan Reis
committed
Jan 27, 2025
1 parent
bf909df
commit a69769b
Showing
8 changed files
with
93 additions
and
16 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
contracts/reserve-auction/src/tests/setup/setup_royalty_registry.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use super::setup_contracts::contract_royalty_registry; | ||
use cosmwasm_std::{Addr, Decimal}; | ||
use cw_multi_test::Executor; | ||
use sg_multi_test::StargazeApp; | ||
use stargaze_royalty_registry::msg::InstantiateMsg as RoyaltyRegistryInstantiateMsg; | ||
use stargaze_royalty_registry::state::Config as RoyaltyRegistryConfig; | ||
|
||
pub fn setup_royalty_registry(router: &mut StargazeApp, creator: Addr) -> Addr { | ||
let code_id = router.store_code(contract_royalty_registry()); | ||
router | ||
.instantiate_contract( | ||
code_id, | ||
creator.clone(), | ||
&RoyaltyRegistryInstantiateMsg { | ||
config: RoyaltyRegistryConfig { | ||
update_wait_period: 24 * 60 * 60, | ||
max_share_delta: Decimal::percent(10), | ||
}, | ||
}, | ||
&[], | ||
"RoyaltyRegistry", | ||
None, | ||
) | ||
.unwrap() | ||
} |
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