diff --git a/crates/humanode-peer/src/chain_spec.rs b/crates/humanode-peer/src/chain_spec.rs index 313d620b2..363d73e4b 100644 --- a/crates/humanode-peer/src/chain_spec.rs +++ b/crates/humanode-peer/src/chain_spec.rs @@ -5,10 +5,11 @@ use std::{collections::BTreeMap, str::FromStr}; use crypto_utils::{authority_keys_from_seed, get_account_id_from_seed}; use hex_literal::hex; use humanode_runtime::{ - opaque::SessionKeys, robonode, AccountId, BabeConfig, Balance, BalancesConfig, BioauthConfig, - BootnodesConfig, ChainPropertiesConfig, EVMConfig, EthereumChainIdConfig, EthereumConfig, - EvmAccountsMappingConfig, GenesisConfig, GrandpaConfig, ImOnlineConfig, SessionConfig, - Signature, SudoConfig, SystemConfig, TokenClaimsConfig, WASM_BINARY, + opaque::SessionKeys, robonode, token_claims::types::ClaimInfo, AccountId, BabeConfig, Balance, + BalancesConfig, BioauthConfig, BootnodesConfig, ChainPropertiesConfig, EVMConfig, + EthereumAddress, EthereumChainIdConfig, EthereumConfig, EvmAccountsMappingConfig, + GenesisConfig, GrandpaConfig, ImOnlineConfig, SessionConfig, Signature, SudoConfig, + SystemConfig, TokenClaimsConfig, WASM_BINARY, }; use pallet_im_online::sr25519::AuthorityId as ImOnlineId; use sc_chain_spec_derive::{ChainSpecExtension, ChainSpecGroup}; @@ -238,7 +239,7 @@ fn testnet_genesis( ), ( humanode_runtime::TokenClaimsPot::account_id(), - EXISTANTIAL_DEPOSIT, + EXISTANTIAL_DEPOSIT + DEV_ACCOUNT_BALANCE, ), ]; pot_accounts @@ -339,8 +340,14 @@ fn testnet_genesis( treasury_pot: Default::default(), token_claims_pot: Default::default(), token_claims: TokenClaimsConfig { - claims: vec![], - total_claimable: Some(0), + claims: vec![( + EthereumAddress(hex!("6be02d1d3665660d22ff9624b7be0551ee1ac91b")), + ClaimInfo { + balance: DEV_ACCOUNT_BALANCE, + vesting: Some(vec![].try_into().unwrap()), + }, + )], + total_claimable: Some(DEV_ACCOUNT_BALANCE), }, } } diff --git a/crates/humanode-runtime/src/lib.rs b/crates/humanode-runtime/src/lib.rs index 93735b24d..0f25202a2 100644 --- a/crates/humanode-runtime/src/lib.rs +++ b/crates/humanode-runtime/src/lib.rs @@ -13,6 +13,7 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); // A few exports that help ease life for downstream crates. use codec::{alloc::string::ToString, Decode, Encode, MaxEncodedLen}; +pub use eip712_common::EthereumAddress; use fp_rpc::TransactionStatus; use frame_support::traits::LockIdentifier; pub use frame_support::{ @@ -39,6 +40,7 @@ use pallet_grandpa::{ use pallet_im_online::sr25519::AuthorityId as ImOnlineId; use pallet_session::historical as pallet_session_historical; pub use pallet_timestamp::Call as TimestampCall; +pub use pallet_token_claims as token_claims; use primitives_auth_ticket::OpaqueAuthTicket; use scale_info::TypeInfo; #[cfg(feature = "std")]