-
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.
launch: deploy stage 28 to 30 (#1602)
- Loading branch information
1 parent
a4eb757
commit 6bc9b63
Showing
8 changed files
with
100 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
use crate::Config; | ||
|
||
use scale_codec::{Decode, Encode}; | ||
|
||
use polkadot_sdk::*; | ||
|
||
use frame_support::traits::LockIdentifier; | ||
use sp_core::Get; | ||
use sp_runtime::traits::AccountIdConversion; | ||
use sp_runtime::RuntimeDebug; | ||
|
||
#[derive(Clone, Encode, Decode, PartialEq, RuntimeDebug, scale_info::TypeInfo)] | ||
#[repr(u8)] | ||
pub enum Application { | ||
Bridging, | ||
OverTheCounter, | ||
} | ||
|
||
impl Application { | ||
/// Retrieve sub id used in virtual wallet generation | ||
pub fn sub_id(&self) -> &'static [u8] { | ||
use Application::*; | ||
|
||
match self { | ||
Bridging => b"bridged-erc20", | ||
OverTheCounter => b"over-the-counter", | ||
} | ||
} | ||
|
||
/// Compute account id of virtual wallet tracking issuance | ||
pub fn account_id<T: Config>(&self) -> T::AccountId { | ||
T::PalletId::get().into_sub_account_truncating(self.sub_id()) | ||
} | ||
|
||
/// Current identifier under which to lock tokens | ||
pub fn lock_id(&self) -> LockIdentifier { | ||
use Application::*; | ||
|
||
match self { | ||
Bridging => *b"bridged0", | ||
OverTheCounter => *b"otclock0", | ||
} | ||
} | ||
} |
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,3 +1,4 @@ | ||
// Include data files here | ||
pub mod v28; | ||
pub mod v29; | ||
pub mod v30; |
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,6 @@ | ||
use crate::airdrops::RawAirdropMintStage; | ||
|
||
use time_primitives::ANLOG; | ||
|
||
pub const AIRDROPS_VALIDATORS_MISSED: RawAirdropMintStage = | ||
&[("an8ZYQStoJTWVqnmnsuSQwzugcxdUX9vBVSdzuCRE9LydDW9U", 160_086 * ANLOG, None)]; |
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