-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
117 additions
and
22 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
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,7 +1,26 @@ | ||
use cosmwasm_schema::cw_serde; | ||
use schemars::JsonSchema; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use cosmwasm_std::Addr; | ||
use cw_storage_plus::{Item, Map}; | ||
|
||
pub const USER_NONCE: Map<Addr, u128> = Map::new("USER_NONCE"); | ||
#[cw_serde] | ||
pub struct ChangeOwnerRequest { | ||
pub new_owner: Addr, | ||
pub approved_by: Vec<Addr>, | ||
} | ||
|
||
impl Default for ChangeOwnerRequest { | ||
fn default() -> Self { | ||
ChangeOwnerRequest { | ||
new_owner: Addr::unchecked(""), // or some other default value | ||
approved_by: Vec::new(), | ||
} | ||
} | ||
} | ||
|
||
|
||
pub const Owner: Item<Addr> = Item::new("owner"); | ||
pub const RECOVERY_HELPERS: Item<Vec<Addr>> = Item::new("recovery_helpers"); | ||
pub const CHANGE_OWNER_REQUEST: Item<ChangeOwnerRequest> = Item::new("change_owner_request"); |