package Ġcom . then ew b oston . utils Ċ Ċ import Ġkotlinx . serialization . encode ToString Ċ import Ġkotlinx . serialization . json . Json Ċ Ċ object ĠBank API Json Mapper Ġ{ ĊĊĠĠĠ Ġconst Ġval ĠVALID ATORS _ ENDPOINT Ġ= Ġ" validators " ĊĠĠĠ Ġconst Ġval ĠS INGLE _ VALID ATOR _ ENDPOINT Ġ= ĠVALID ATORS _ ENDPOINT ĊĠĠĠĠĠĠĠ Ġ. plus ("/ 6 8 7 1 9 1 3 5 8 1 c 3 e 6 8 9 c 9 f 3 9 8 5 3 a 7 7 e 7 2 6 3 a 9 6 fd 3 8 5 9 6 e 9 1 3 9 f 4 0 a 3 6 7 e 2 8 3 6 4 da 5 3 ") ĊĠĠĠ Ġconst Ġval ĠCONFIG _ ENDPOINT Ġ= Ġ" config " ĊĠĠĠ Ġconst Ġval ĠB AN KS _ ENDPOINT Ġ= Ġ" b anks " ĊĠĠĠ Ġconst Ġval ĠB AN KS _ TR UST _ ENDPOINT Ġ= ĠB AN KS _ ENDPOINT ĊĠĠĠĠĠĠĠ Ġ. plus ("/ 3 5 f 4 c 9 8 8 f 4 2 5 8 0 9 ca 7 f 5 d 0 b 3 1 9 cdf 8 f 7 d 7 aba 1 b 0 6 4 fd 0 efc 8 5 d 6 1 fa 0 f 4 d 0 5 1 4 5 ") ĊĠĠĠ Ġconst Ġval ĠAC COUNT S _ ENDPOINT Ġ= Ġ" accounts " ĊĠĠĠ Ġconst Ġval ĠB ANK _ TRANSACTION S _ ENDPOINT Ġ= Ġ" bank _ transactions " ĊĠĠĠ Ġconst Ġval ĠBLOCK S _ ENDPOINT Ġ= Ġ" blocks " ĊĠĠĠ Ġconst Ġval ĠINVALID _ BLOCKS _ ENDPOINT Ġ= Ġ" invalid _ blocks " ĊĊĠĠĠ Ġfun Ġmap B anks ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . b anks ()) ĊĊĠĠĠ Ġfun Ġmap Accounts ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . accounts ()) ĊĊĠĠĠ Ġfun Ġmap Account ToJson ( trust : ĠDouble ): ĠString Ġ= ĠJson . encode ToString ( Mocks . account ( trust )) ĊĊĠĠĠ Ġfun Ġmap Empty Account ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . empty Account ()) ĊĊĠĠĠ Ġfun Ġmap Blocks ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . blocks ()) ĊĊĠĠĠ Ġfun Ġmap Bank Detail ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . bank Details ()) ĊĊĠĠĠ Ġfun Ġmap Validators ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . validators ()) ĊĊĠĠĠ Ġfun Ġmap Validator ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . validator ()) ĊĊĠĠĠ Ġfun Ġmap Bank Transactions ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . bank Transactions ()) ĊĊĠĠĠ Ġfun Ġmap InternalServerError ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . internal ServerError ()) ĊĊĠĠĠ Ġfun Ġmap Bank Trust Response ToJson ( trust : ĠDouble ): ĠString Ġ= ĠJson . encode ToString ( Mocks . bank Trust Response ( trust )) ĊĊĠĠĠ Ġfun Ġmap Invalid Bank Trust Response ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . empty Bank Trust Response ()) ĊĊĠĠĠ Ġfun Ġmap Invalid Blocks ToJson (): ĠString Ġ= ĠJson . encode ToString ( Mocks . invalid Blocks ()) ĊĊĠĠĠ Ġfun Ġmap Invalid Block ToJson ( block Identifier : ĠString ): ĠString Ġ= ĠJson . encode ToString ( Mocks . invalid Block ( block Identifier )) ĊĊĠĠĠ Ġfun Ġmap Invalid Response For Invalid Blocks Request (): ĠString Ġ= ĠJson . encode ToString ( Mocks . empty Invalid Block ()) ĊĊĠĠĠ Ġfun Ġmap Block ToJson ( balance Key : ĠString ): ĠString Ġ= ĠJson . encode ToString ( Mocks . post Block ( balance Key )) ĊĊĠĠĠ Ġfun Ġmap Block Response For Block Request (): ĠString Ġ= ĠJson . encode ToString ( Mocks . empty Block ()) Ċ } Ċ