-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
241 update spacewalk dependencies and configure the lp token for use …
…with the zenlink pallet (#246) * Implemented initial draft code for the conversion between ZenlinkAssetId and Spacewalk assets. * added PARA_CHAIN_ID constant * Fixed shifting issue * Improved format and added hard-coded values for Stellar assets * Added BRL, TZS and USDC issuers * Added StellarNative * Added Err(()) return to match statement * Fixed type issues * Added TryFrom for WrappedCurrency to CurrencyId. Improved format * changed 'zenlink_id_to_currency_id' function * Added unit tests for the conversion functions * Abstracted methods into separate file * Changed module * Refactored runtime configuration of zenlink * Improved code format. Added unit tests * Update Cargo.toml deleted unnecessary dependencies. * Update Cargo.toml Updated spacewalk dependencies. * Extended statement to check also the issuer in the match of conversion function for stellar assets. * Renamed test varible and test name. * Refactored zenlink_id_to_currency_id function. Now it checks that the asset chain_id and the parachain_id are the same. * Added unit test for Err result when converting between zenlink asset and spacewalk asset. * Added stellar module with issuer definitions. * Changed spacewalk dependency commit hash * Fixed spacewalk dependencies in node * Implemented GenerateLpAssetId to change the generate_lp_asset_id function, allowing us to use a discriminant of 3 for the Zenlink LP token. * Refactored zenlink stuffs in runtime common. Added zenlink configuration to amplitude. * Added zenlink protocol runtime api configuration for pendulum. Signed-off-by: adelarja <[email protected]> * Fixed primite issue * Deleted unnecessary brackets * Updated spacewalk dependencies hash * Added comment with USDC issuer address. Co-authored-by: Marcel Ebert <[email protected]> * Added comment with BRL issuer address. Co-authored-by: Marcel Ebert <[email protected]> * Added comment with TZS issuer address. Co-authored-by: Marcel Ebert <[email protected]> --------- Signed-off-by: adelarja <[email protected]> Co-authored-by: Marcel Ebert <[email protected]>
- Loading branch information
Showing
11 changed files
with
455 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN | ||
pub const USDC_ISSUER: [u8; 32] = [ | ||
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, | ||
]; | ||
|
||
// GDVKY2GU2DRXWTBEYJJWSFXIGBZV6AZNBVVSUHEPZI54LIS6BA7DVVSP | ||
pub const BRL_ISSUER: [u8; 32] = [ | ||
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, | ||
]; | ||
|
||
// GA2MSSZKJOU6RNL3EJKH3S5TB5CDYTFQFWRYFGUJVIN5I6AOIRTLUHTO | ||
pub const TZS_ISSUER: [u8; 32] = [ | ||
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, | ||
]; |
Oops, something went wrong.