#[cfg(feature = "std")]
pub use super::WASM_BINARY;
use super::{ParachainConstraintChecker, Transaction};
use hex_literal::hex;
use inner_runtime::{money::Coin, OuterConstraintChecker as InnerConstraintChecker};
use sp_std::{vec, vec::Vec};
use tuxedo_parachain_core::tuxedo_core::{
verifier::{Sr25519Signature, ThresholdMultiSignature},
ConstraintChecker,
};
const SHAWN_PUB_KEY_BYTES: [u8; 32] =
hex!("d2bf4b844dfefd6772a8843e669f943408966a977e3ae2af1dd78e0f55f4df67");
const ANDREW_PUB_KEY_BYTES: [u8; 32] =
hex!("baa81e58b1b4d053c2e86d93045765036f9d265c7dfe8b9693bbc2c0f048d93a");
pub fn development_genesis_transactions() -> Vec<Transaction> {
let signatories = vec![SHAWN_PUB_KEY_BYTES.into(), ANDREW_PUB_KEY_BYTES.into()];
let user_genesis_transactions = [
Coin::<0>::mint::<_, _, InnerConstraintChecker>(
100,
Sr25519Signature::new(SHAWN_PUB_KEY_BYTES),
)
.transform(),
Coin::<0>::mint::<_, _, InnerConstraintChecker>(
100,
ThresholdMultiSignature::new(1, signatories),
)
.transform(),
]
.into_iter()
.map(Into::into);
let mut genesis_transactions = ParachainConstraintChecker::genesis_transactions();
genesis_transactions.extend(user_genesis_transactions);
genesis_transactions
}
pub fn development_genesis_config() -> serde_json::Value {
serde_json::json!(development_genesis_transactions())
}