From b9ff2a22a7519029effad3d421018d24974facba Mon Sep 17 00:00:00 2001 From: Freddy Li Date: Wed, 5 Jun 2024 11:51:06 -0400 Subject: [PATCH] Adjust few runtime values for testnet (#667) * adjust few runtime values in for testnet * adjust native token name and decimal and chainID * typo fix --------- Co-authored-by: Freddy Li --- runtime/testnet/src/lib.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/runtime/testnet/src/lib.rs b/runtime/testnet/src/lib.rs index ad39e99fc..f600e1d3c 100644 --- a/runtime/testnet/src/lib.rs +++ b/runtime/testnet/src/lib.rs @@ -1839,9 +1839,9 @@ impl sygma_percentage_feehandler::Config for Runtime { } parameter_types! { - // TNT + // tTNT pub NativeLocation: Location = Location::here(); - pub NativeSygmaResourceId: [u8; 32] = hex_literal::hex!("0000000000000000000000000000000000000000000000000000000000000001"); + pub NativeSygmaResourceId: [u8; 32] = hex_literal::hex!("0000000000000000000000000000000000000000000000000000000000002000"); // SygUSD pub SygUSDLocation: Location = Location::new( @@ -1884,8 +1884,8 @@ parameter_types! { pub const SygmaBridgePalletId: PalletId = PalletId(*b"sygma/01"); - // SygmaBridgeAdminAccountKey Address: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY (Alice) - pub SygmaBridgeAdminAccountKey: [u8; 32] = hex_literal::hex!("d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d"); + // Tangle testnet super admin: 5D2hZnw8Z7kg5LpQiEBb6HPG4V51wYXuKhE7sVhXiUPWj8D1 + pub SygmaBridgeAdminAccountKey: [u8; 32] = hex_literal::hex!("2ab4c35efb6ab82377c2325467103cf46742d288ae1f8917f1d5960f4a1e9065"); pub SygmaBridgeAdminAccount: AccountId = SygmaBridgeAdminAccountKey::get().into(); // SygmaBridgeFeeAccount is a substrate account and used for bridging fee collection @@ -1900,7 +1900,8 @@ parameter_types! { pub BridgeAccounts: BTreeMap = bridge_accounts_generator(); // EIP712ChainID is the chainID that pallet is assigned with, used in EIP712 typed data domain - pub EIP712ChainID: ChainID = U256::from(5); + // For local testing with ./scripts/sygma-setup/execute_proposal_test.js, please change it to 5 + pub EIP712ChainID: ChainID = U256::from(3799); // DestVerifyingContractAddress is a H160 address that is used in proposal signature verification, specifically EIP712 typed data // When relayers signing, this address will be included in the EIP712Domain @@ -1916,7 +1917,7 @@ parameter_types! { (SygUSDLocation::get().into(), SygUSDResourceId::get()), ]; - pub AssetDecimalPairs: Vec<(XcmAssetId, u8)> = vec![(NativeLocation::get().into(), 12u8), (SygUSDLocation::get().into(), 12u8)]; + pub AssetDecimalPairs: Vec<(XcmAssetId, u8)> = vec![(NativeLocation::get().into(), 18u8), (SygUSDLocation::get().into(), 6u8)]; } pub struct ReserveChecker;