@@ -58,6 +58,38 @@ describe('Xrp MPT Tokens', function () {
5858 names . should . containEql ( 'txrp:feesec' ) ;
5959 } ) ;
6060
61+ it ( 'should register mainnet MPT tokens xrp:kld and xrp:key' , function ( ) {
62+ const names = XrpMptToken . createTokenConstructors ( ) . map ( ( { name } ) => name ) ;
63+ names . should . containEql ( 'xrp:kld' ) ;
64+ names . should . containEql ( 'xrp:key' ) ;
65+ } ) ;
66+
67+ it ( 'should return correct constants for xrp:kld' , function ( ) {
68+ const kld = bitgo . coin ( 'xrp:kld' ) as XrpMptToken ;
69+ kld . getChain ( ) . should . equal ( 'xrp:kld' ) ;
70+ kld . getBaseChain ( ) . should . equal ( 'xrp' ) ;
71+ kld . getFullName ( ) . should . equal ( 'XRP MPT Token' ) ;
72+ kld . getBaseFactor ( ) . should . equal ( 1000000 ) ; // assetScale 6 → 10^6
73+ kld . coin . should . equal ( 'xrp' ) ;
74+ kld . network . should . equal ( 'Mainnet' ) ;
75+ kld . decimalPlaces . should . equal ( 6 ) ;
76+ kld . contractAddress . should . equal ( '061B3FA2C51CC6B8BEF8E672C70638FCB4D474427155A753' ) ;
77+ kld . canTransfer . should . equal ( true ) ;
78+ } ) ;
79+
80+ it ( 'should return correct constants for xrp:key' , function ( ) {
81+ const key = bitgo . coin ( 'xrp:key' ) as XrpMptToken ;
82+ key . getChain ( ) . should . equal ( 'xrp:key' ) ;
83+ key . getBaseChain ( ) . should . equal ( 'xrp' ) ;
84+ key . getFullName ( ) . should . equal ( 'XRP MPT Token' ) ;
85+ key . getBaseFactor ( ) . should . equal ( 1000000 ) ; // assetScale 6 → 10^6
86+ key . coin . should . equal ( 'xrp' ) ;
87+ key . network . should . equal ( 'Mainnet' ) ;
88+ key . decimalPlaces . should . equal ( 6 ) ;
89+ key . contractAddress . should . equal ( '0634CF15DADB8E4C44F8CEAFF89B3A9FED52604FEE1A184F' ) ;
90+ key . canTransfer . should . equal ( true ) ;
91+ } ) ;
92+
6193 it ( 'should return constants for txrp:sec0' , function ( ) {
6294 mptCoin . getChain ( ) . should . equal ( 'txrp:sec0' ) ;
6395 mptCoin . getBaseChain ( ) . should . equal ( 'txrp' ) ;
0 commit comments