Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

279 update the foucoco genesis configuration to latest on chain values #282

Merged
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
62d37e4
Changed fee pallet configuration in chain_spec.
adelarja Jul 18, 2023
844fdb8
Changed oracle pallet configuration in chain_spec.
adelarja Jul 18, 2023
7fa9172
Changed oracle pallet configuration in chain_spec. Added Native curre…
adelarja Jul 18, 2023
92f7b19
Changed diaOracleModule pallet configuration in chain_spec.
adelarja Jul 18, 2023
509ad5a
Changed issue pallet configuration in chain_spec.
adelarja Jul 18, 2023
07f28cf
Changed redeem pallet configuration in chain_spec.
adelarja Jul 18, 2023
03de792
Changed replace pallet configuration in chain_spec.
adelarja Jul 18, 2023
e04bdeb
Changed vault_registry pallet configuration in chain_spec.
adelarja Jul 18, 2023
8b2a0ce
Improved code format.
adelarja Jul 18, 2023
0c3c52b
Fixed some misconfigurations.
adelarja Jul 18, 2023
3a32c1d
Added premium redeem factor, and fixed liquidation factor
adelarja Jul 18, 2023
f70aff3
Refactored offchain worker price feeder account generation.
adelarja Jul 18, 2023
7224de4
Code formated
adelarja Jul 18, 2023
a648031
Fixed some issues
adelarja Jul 18, 2023
74e88b5
Improved code format
adelarja Jul 18, 2023
0469acb
Changed currencies names.
adelarja Jul 18, 2023
aa933b3
Separated amplitude and foucoco constants into a separate file, calle…
adelarja Jul 18, 2023
245ebcb
improved format
adelarja Jul 18, 2023
a9020e9
Fixed supported currencies blockchain names.
adelarja Jul 19, 2023
02396c9
Added system collateral ceiling for more currencies.
adelarja Jul 19, 2023
c21a8fb
Removed CurrencyId::Native from minimum_collateral_vault vec.
adelarja Jul 19, 2023
aab6956
Replaced TESTNET_STELLAR_CURRENCY_ID constant
adelarja Jul 19, 2023
8e89895
Merge branch '279-update-the-foucoco-genesis-configuration-to-latest-…
adelarja Jul 19, 2023
e0c860a
Refactored constants names. Added Mainnet issuers.
adelarja Jul 19, 2023
31614f2
Added comment explaining how many days max_delay represents.
adelarja Jul 19, 2023
d0ef71d
Updated spacewalk dependencies
adelarja Jul 19, 2023
c823d49
Deleted unnecessary constant. Removed unused function
adelarja Jul 19, 2023
8f07f7f
Fixed code format
adelarja Jul 19, 2023
9a38158
Reset spec_version and transaction_version back to 1
adelarja Jul 19, 2023
c113f89
Renamed spec_name and impl_name from 'amplitude' to 'foucoco'
adelarja Jul 19, 2023
67a36cf
Added INITIAL_FOUCOCO_VALIDATORS constant. This constant is passed in…
adelarja Jul 19, 2023
5b1654a
Deleted XCM(1) tokens from the initial balance.
adelarja Jul 19, 2023
881ec49
Added COLLATOR_ADDITIONAL constant.
adelarja Jul 19, 2023
a1a2ca7
Fixed code format
adelarja Jul 19, 2023
44d113a
Removed unnecessary imports
adelarja Jul 19, 2023
55be2ec
Change signatories of Foucoco chain spec
TorstenStueber Jul 20, 2023
0c4f66f
Add new Foucoco chain spec
TorstenStueber Jul 20, 2023
bdd487a
Change relay chain in Foucoco chain spec
TorstenStueber Jul 20, 2023
e1f67e5
Fixed merge conflicts
adelarja Jul 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ codec = { package = "parity-scale-codec", version = "3.0.0" }
serde = { version = "1.0.145", features = ["derive"] }
jsonrpsee = { version = "0.16.2", features = ["server"] }

module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}
module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}
module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}
module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}
module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}

spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev = "ae95aa32f3cff47c5ff26d27af81540569bf81d3"}
spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev = "0e3ead7a89570099b724b8c71b1fb13e1646bdcc"}

# Local
amplitude-runtime = {path = "../runtime/amplitude"}
Expand Down
194 changes: 109 additions & 85 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ use sp_runtime::{
};
use spacewalk_primitives::{oracle::Key, Asset, CurrencyId, CurrencyId::XCM, VaultCurrencyPair};

use crate::constants::amplitude::*;

use crate::constants::pendulum;

/// Specialized `ChainSpec` for the normal parachain runtime.
Expand All @@ -33,52 +35,6 @@ pub type DevelopmentChainSpec =
/// The default XCM version to set in genesis config.
const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;

const AMPLITUDE_PARACHAIN_ID: u32 = 2124;
const AMPLITUDE_INITIAL_ISSUANCE: Balance = 200_000_000 * UNIT;
const INITIAL_ISSUANCE_PER_SIGNATORY: Balance = 200 * UNIT;
const INITIAL_COLLATOR_STAKING: Balance = 10_010 * UNIT;

const TOKEN_DECIMALS: u32 = 12;

const INITIAL_AMPLITUDE_SUDO_SIGNATORIES: [&str; 5] = [
"6nJwMD3gk36fe6pMRL2UpbwAEjDdjjxdngQGShe753pyAvCT",
"6i4xDEE1Q2Bv8tnJtgD4jse4YTAzzCwCJVUehRQ93hCqKp8f",
"6n62KZWvmZHgeyEXTvQFmoHRMqjKfFWvQVsApkePekuNfek5",
"6kwxQBRKMadrY9Lq3K8gZXkw1UkjacpqYhcqvX3AqmN9DofF",
"6kKHwcpCVC18KepwvdMSME8Q7ZTNr1RoRUrFDH9AdAmhL3Pt",
];

const INITIAL_AMPLITUDE_VALIDATORS: [&str; 8] = [
"6mTATq7Ug9RPk4s8aMv5H7WVZ7RvwrJ1JitbYMXWPhanzqiv",
"6n8WiWqjEB8nCNRo5mxXc89FqhuMd2dgXNSrzuPxoZSnatnL",
"6ic56zZmjqo746yifWzcNxxzxLe3pRo8WNitotniUQvgKnyU",
"6gvFApEyYj4EavJP26mwbVu7YxFBYZ9gaJFB7gv5gA6vNfze",
"6mz3ymVAsfHotEhHphVRvLLBhMZ2frnwbuvW5QZiMRwJghxE",
"6mpD3zcHcUBkxCjTsGg2tMTfmQZdXLVYZnk4UkN2XAUTLkRe",
"6mGcZntk59RK2JfxfdmprgDJeByVUgaffMQYkp1ZeoEKeBJA",
"6jq7obxC7AxhWeJNzopwYidKNNe48cLrbGSgB2zs2SuRTWGA",
];

// For mainnet USDC issued by centre.io
const MAINNET_DEFAULT_WRAPPED_CURRENCY_ID: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 {
code: *b"USDC",
issuer: [
59, 153, 17, 56, 14, 254, 152, 139, 160, 168, 144, 14, 177, 207, 228, 79, 54, 111, 125,
190, 148, 107, 237, 7, 114, 64, 247, 246, 36, 223, 21, 197,
],
});

// For Testnet USDC issued by the testnet issuer
const TESTNET_DEFAULT_WRAPPED_CURRENCY_ID: CurrencyId = CurrencyId::AlphaNum4(
*b"USDC",
[
20, 209, 150, 49, 176, 55, 23, 217, 171, 154, 54, 110, 16, 50, 30, 226, 102, 231, 46, 199,
108, 171, 97, 144, 240, 161, 51, 109, 72, 34, 159, 139,
],
);

const FOUCOCO_PARACHAIN_ID: u32 = 2124;

/// Helper function to generate a crypto pair from seed
pub fn get_public_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
<TPublic::Pair as Pair>::from_string(&format!("//{}", seed), None)
Expand Down Expand Up @@ -229,6 +185,8 @@ pub fn foucoco_config() -> FoucocoChainSpec {
let sudo_account =
pallet_multisig::Pallet::<foucoco_runtime::Runtime>::multi_account_id(&signatories[..], 3);

let offchain_worker_price_feeder = AccountId::from_ss58check(OFF_CHAIN_WORKER_ADDRESS).unwrap();

FoucocoChainSpec::from_genesis(
// Name
"Foucoco",
Expand All @@ -240,7 +198,7 @@ pub fn foucoco_config() -> FoucocoChainSpec {
// initial collators.
invulnerables.clone(),
signatories.clone(),
vec![sudo_account.clone()],
vec![sudo_account.clone(), offchain_worker_price_feeder.clone()],
sudo_account.clone(),
FOUCOCO_PARACHAIN_ID.into(),
false,
Expand Down Expand Up @@ -512,7 +470,7 @@ fn amplitude_genesis(
start_shutdown: bool,
) -> amplitude_runtime::GenesisConfig {
fn default_pair(currency_id: CurrencyId) -> VaultCurrencyPair<CurrencyId> {
VaultCurrencyPair { collateral: currency_id, wrapped: MAINNET_DEFAULT_WRAPPED_CURRENCY_ID }
VaultCurrencyPair { collateral: currency_id, wrapped: MAINNET_USDC_CURRENCY_ID }
}

let mut balances: Vec<_> = signatories
Expand Down Expand Up @@ -629,7 +587,7 @@ fn amplitude_genesis(
max_delay: u32::MAX,
oracle_keys: vec![
Key::ExchangeRate(CurrencyId::XCM(0)),
Key::ExchangeRate(MAINNET_DEFAULT_WRAPPED_CURRENCY_ID),
Key::ExchangeRate(MAINNET_USDC_CURRENCY_ID),
],
},
vault_registry: amplitude_runtime::VaultRegistryConfig {
Expand Down Expand Up @@ -685,8 +643,11 @@ fn foucoco_genesis(
id: ParaId,
start_shutdown: bool,
) -> foucoco_runtime::GenesisConfig {
fn default_pair(currency_id: CurrencyId) -> VaultCurrencyPair<CurrencyId> {
VaultCurrencyPair { collateral: currency_id, wrapped: TESTNET_DEFAULT_WRAPPED_CURRENCY_ID }
fn get_vault_currency_pair(
collateral: CurrencyId,
wrapped: CurrencyId,
) -> VaultCurrencyPair<CurrencyId> {
VaultCurrencyPair { collateral, wrapped }
}

let mut balances: Vec<_> = signatories
Expand Down Expand Up @@ -776,7 +737,7 @@ fn foucoco_genesis(
},
issue: foucoco_runtime::IssueConfig {
issue_period: foucoco_runtime::DAYS,
issue_minimum_transfer_amount: 1000,
issue_minimum_transfer_amount: 1_000_000_000,
limit_volume_amount: None,
limit_volume_currency_id: XCM(0),
current_volume_amount: 0u32.into(),
Expand All @@ -785,7 +746,7 @@ fn foucoco_genesis(
},
redeem: foucoco_runtime::RedeemConfig {
redeem_period: foucoco_runtime::DAYS,
redeem_minimum_transfer_amount: 1000,
redeem_minimum_transfer_amount: 1_000_000_000,
limit_volume_amount: None,
limit_volume_currency_id: XCM(0),
current_volume_amount: 0u32.into(),
Expand All @@ -794,7 +755,7 @@ fn foucoco_genesis(
},
replace: foucoco_runtime::ReplaceConfig {
replace_period: foucoco_runtime::DAYS,
replace_minimum_transfer_amount: 1000,
replace_minimum_transfer_amount: 1_000_000_000,
},
security: foucoco_runtime::SecurityConfig {
initial_status: if start_shutdown {
Expand All @@ -804,52 +765,115 @@ fn foucoco_genesis(
},
},
oracle: foucoco_runtime::OracleConfig {
max_delay: u32::MAX,
max_delay: 604_800_000, // 7 days
oracle_keys: vec![
Key::ExchangeRate(CurrencyId::XCM(0)),
Key::ExchangeRate(TESTNET_DEFAULT_WRAPPED_CURRENCY_ID),
Key::ExchangeRate(CurrencyId::Native),
ebma marked this conversation as resolved.
Show resolved Hide resolved
Key::ExchangeRate(CurrencyId::Stellar(Asset::StellarNative)),
Key::ExchangeRate(MAINNET_USDC_CURRENCY_ID),
Key::ExchangeRate(MAINNET_BRL_CURRENCY_ID),
Key::ExchangeRate(MAINNET_TZS_CURRENCY_ID),
],
},
vault_registry: foucoco_runtime::VaultRegistryConfig {
minimum_collateral_vault: vec![(XCM(0), 0), (XCM(0), 0)],
punishment_delay: foucoco_runtime::DAYS,
secure_collateral_threshold: vec![(
default_pair(XCM(0)),
FixedU128::checked_from_rational(150, 100).unwrap(),
)],
/* 150% */
premium_redeem_threshold: vec![(
default_pair(XCM(0)),
FixedU128::checked_from_rational(130, 100).unwrap(),
)],
/* 130% */
liquidation_collateral_threshold: vec![(
default_pair(XCM(0)),
FixedU128::checked_from_rational(120, 100).unwrap(),
)],
/* 120% */
system_collateral_ceiling: vec![(
default_pair(XCM(0)),
60_000 * 10u128.pow(TOKEN_DECIMALS),
)],
minimum_collateral_vault: vec![(XCM(0), 3_000_000_000_000)],
punishment_delay: foucoco_runtime::DAYS * 2,
secure_collateral_threshold: vec![
(
adelarja marked this conversation as resolved.
Show resolved Hide resolved
get_vault_currency_pair(XCM(0), MAINNET_USDC_CURRENCY_ID),
FixedU128::checked_from_rational(160, 100).unwrap(),
),
(
get_vault_currency_pair(XCM(0), MAINNET_BRL_CURRENCY_ID),
FixedU128::checked_from_rational(160, 100).unwrap(),
),
(
get_vault_currency_pair(XCM(0), MAINNET_TZS_CURRENCY_ID),
FixedU128::checked_from_rational(160, 100).unwrap(),
),
(
get_vault_currency_pair(XCM(0), CurrencyId::Stellar(Asset::StellarNative)),
FixedU128::checked_from_rational(160, 100).unwrap(),
),
],
/* 140% */
premium_redeem_threshold: vec![
(
get_vault_currency_pair(XCM(0), MAINNET_USDC_CURRENCY_ID),
FixedU128::checked_from_rational(140, 100).unwrap(),
),
(
get_vault_currency_pair(XCM(0), MAINNET_BRL_CURRENCY_ID),
FixedU128::checked_from_rational(140, 100).unwrap(),
),
(
get_vault_currency_pair(XCM(0), MAINNET_TZS_CURRENCY_ID),
FixedU128::checked_from_rational(140, 100).unwrap(),
),
(
get_vault_currency_pair(XCM(0), CurrencyId::Stellar(Asset::StellarNative)),
FixedU128::checked_from_rational(140, 100).unwrap(),
),
],
/* 125% */
liquidation_collateral_threshold: vec![
(
get_vault_currency_pair(XCM(0), MAINNET_USDC_CURRENCY_ID),
FixedU128::checked_from_rational(125, 100).unwrap(),
),
(
get_vault_currency_pair(XCM(0), MAINNET_BRL_CURRENCY_ID),
FixedU128::checked_from_rational(125, 100).unwrap(),
),
(
get_vault_currency_pair(XCM(0), MAINNET_TZS_CURRENCY_ID),
FixedU128::checked_from_rational(125, 100).unwrap(),
),
(
get_vault_currency_pair(XCM(0), CurrencyId::Stellar(Asset::StellarNative)),
FixedU128::checked_from_rational(125, 100).unwrap(),
),
],
system_collateral_ceiling: vec![
(
get_vault_currency_pair(XCM(0), MAINNET_USDC_CURRENCY_ID),
50 * 10u128.pow(TOKEN_DECIMALS),
),
(
get_vault_currency_pair(XCM(0), MAINNET_BRL_CURRENCY_ID),
25 * 10u128.pow(TOKEN_DECIMALS),
),
(
get_vault_currency_pair(XCM(0), MAINNET_TZS_CURRENCY_ID),
25 * 10u128.pow(TOKEN_DECIMALS),
),
(
get_vault_currency_pair(XCM(0), CurrencyId::Stellar(Asset::StellarNative)),
50 * 10u128.pow(TOKEN_DECIMALS),
),
],
},
stellar_relay: foucoco_runtime::StellarRelayConfig::default(),
fee: foucoco_runtime::FeeConfig {
issue_fee: FixedU128::checked_from_rational(15, 10000).unwrap(), // 0.15%
issue_griefing_collateral: FixedU128::checked_from_rational(5, 100000).unwrap(), // 0.005%
redeem_fee: FixedU128::checked_from_rational(5, 1000).unwrap(), // 0.5%
issue_fee: FixedU128::checked_from_rational(1, 1000).unwrap(), // 0.1%
issue_griefing_collateral: FixedU128::checked_from_rational(5, 1000).unwrap(), // 0.5%
redeem_fee: FixedU128::checked_from_rational(1, 1000).unwrap(), // 0.1%
premium_redeem_fee: FixedU128::checked_from_rational(5, 100).unwrap(), // 5%
punishment_fee: FixedU128::checked_from_rational(1, 10).unwrap(), // 10%
replace_griefing_collateral: FixedU128::checked_from_rational(1, 10).unwrap(), // 10%
},
nomination: foucoco_runtime::NominationConfig { is_nomination_enabled: false },
dia_oracle_module: foucoco_runtime::DiaOracleModuleConfig {
authorized_accounts: authorized_oracles,
supported_currencies: vec![foucoco_runtime::AssetId::new(
b"Kusama".to_vec(),
b"KSM".to_vec(),
)],
batching_api: b"http://dia-00.pendulumchain.tech:8070/currencies".to_vec(),
supported_currencies: vec![
foucoco_runtime::AssetId::new(b"Kusama".to_vec(), b"KSM".to_vec()),
foucoco_runtime::AssetId::new(b"Stellar".to_vec(), b"XLM".to_vec()),
foucoco_runtime::AssetId::new(b"FIAT".to_vec(), b"BRL-USD".to_vec()),
foucoco_runtime::AssetId::new(b"FIAT".to_vec(), b"USD-USD".to_vec()),
foucoco_runtime::AssetId::new(b"FIAT".to_vec(), b"TZS-USD".to_vec()),
foucoco_runtime::AssetId::new(b"FIAT".to_vec(), b"MXN-USD".to_vec()),
],
batching_api: b"https://dia-00.pendulumchain.tech/currencies".to_vec(),
coin_infos_map: vec![],
},
}
Expand Down
58 changes: 58 additions & 0 deletions node/src/constants/amplitude.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
use runtime_common::{Balance, UNIT};
ebma marked this conversation as resolved.
Show resolved Hide resolved
use spacewalk_primitives::{oracle::Key, Asset, CurrencyId, CurrencyId::XCM, VaultCurrencyPair};

pub const AMPLITUDE_PARACHAIN_ID: u32 = 2124;
pub const FOUCOCO_PARACHAIN_ID: u32 = 2124;
pub const AMPLITUDE_INITIAL_ISSUANCE: Balance = 200_000_000 * UNIT;
pub const INITIAL_ISSUANCE_PER_SIGNATORY: Balance = 200 * UNIT;
pub const INITIAL_COLLATOR_STAKING: Balance = 10_010 * UNIT;
ebma marked this conversation as resolved.
Show resolved Hide resolved

pub const OFF_CHAIN_WORKER_ADDRESS: &str = "6m69vWMouLarYCbJGJisVaDDpfNGETkD5hsDWf2T7osW4Cn1";

pub const TOKEN_DECIMALS: u32 = 12;

pub const INITIAL_AMPLITUDE_SUDO_SIGNATORIES: [&str; 5] = [
"6nJwMD3gk36fe6pMRL2UpbwAEjDdjjxdngQGShe753pyAvCT",
"6i4xDEE1Q2Bv8tnJtgD4jse4YTAzzCwCJVUehRQ93hCqKp8f",
"6n62KZWvmZHgeyEXTvQFmoHRMqjKfFWvQVsApkePekuNfek5",
"6kwxQBRKMadrY9Lq3K8gZXkw1UkjacpqYhcqvX3AqmN9DofF",
"6kKHwcpCVC18KepwvdMSME8Q7ZTNr1RoRUrFDH9AdAmhL3Pt",
];

pub const INITIAL_AMPLITUDE_VALIDATORS: [&str; 8] = [
ebma marked this conversation as resolved.
Show resolved Hide resolved
"6mTATq7Ug9RPk4s8aMv5H7WVZ7RvwrJ1JitbYMXWPhanzqiv",
"6n8WiWqjEB8nCNRo5mxXc89FqhuMd2dgXNSrzuPxoZSnatnL",
"6ic56zZmjqo746yifWzcNxxzxLe3pRo8WNitotniUQvgKnyU",
"6gvFApEyYj4EavJP26mwbVu7YxFBYZ9gaJFB7gv5gA6vNfze",
"6mz3ymVAsfHotEhHphVRvLLBhMZ2frnwbuvW5QZiMRwJghxE",
"6mpD3zcHcUBkxCjTsGg2tMTfmQZdXLVYZnk4UkN2XAUTLkRe",
"6mGcZntk59RK2JfxfdmprgDJeByVUgaffMQYkp1ZeoEKeBJA",
"6jq7obxC7AxhWeJNzopwYidKNNe48cLrbGSgB2zs2SuRTWGA",
];

// For Mainnet USDC issued by the testnet issuer
pub const MAINNET_USDC_CURRENCY_ID: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 {
ebma marked this conversation as resolved.
Show resolved Hide resolved
code: *b"USDC",
issuer: [
59, 153, 17, 56, 14, 254, 152, 139, 160, 168, 144, 14, 177, 207, 228, 79, 54, 111, 125,
190, 148, 107, 237, 7, 114, 64, 247, 246, 36, 223, 21, 197,
],
});

// For Mainnet BRL issued by the testnet issuer
pub const MAINNET_BRL_CURRENCY_ID: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 {
code: *b"BRL\0",
issuer: [
234, 172, 104, 212, 208, 227, 123, 76, 36, 194, 83, 105, 22, 232, 48, 115, 95, 3, 45, 13,
107, 42, 28, 143, 202, 59, 197, 162, 94, 8, 62, 58,
],
});

// For Mainnet TZS issued by the testnet issuer
pub const MAINNET_TZS_CURRENCY_ID: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 {
code: *b"TZS\0",
issuer: [
52, 201, 75, 42, 75, 169, 232, 181, 123, 34, 84, 125, 203, 179, 15, 68, 60, 76, 176, 45,
163, 130, 154, 137, 170, 27, 212, 120, 14, 68, 102, 186,
],
});
1 change: 1 addition & 0 deletions node/src/constants/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pub mod amplitude;
pub mod pendulum;
Loading
Loading