Skip to content

Commit

Permalink
Adjust few runtime values for testnet (#667)
Browse files Browse the repository at this point in the history
* adjust few runtime values in for testnet

* adjust native token name and decimal and chainID

* typo fix

---------

Co-authored-by: Freddy Li <[email protected]>
  • Loading branch information
freddyli7 and Freddy Li authored Jun 5, 2024
1 parent 25377d2 commit b9ff2a2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions runtime/testnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand All @@ -1900,7 +1900,8 @@ parameter_types! {
pub BridgeAccounts: BTreeMap<XcmAssetId, AccountId32> = 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
Expand All @@ -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;
Expand Down

0 comments on commit b9ff2a2

Please sign in to comment.