package Ġnetwork . com merc io . sdk . ky c Ċ Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġnetwork . com merc io . s ac co . Network Info Ċ import Ġnetwork . com merc io . s ac co . Wallet Ċ import Ġnetwork . com merc io . sdk . entities . ky c . Buy Membership Ċ import Ġnetwork . com merc io . sdk . entities . ky c . Membership Type Ċ import Ġorg . junit . Assert Ċ import Ġorg . junit . Test Ċ import Ġorg . ke thereum . bip 3 9 . generate Mnemonic Ċ import Ġorg . ke thereum . bip 3 9 . word lists . WORD LIST _ EN GL ISH ĊĊ Ċ class ĠBu y Membership Helper Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Buy Membership Helper Ġfrom Wallet Ġcreate Ġcorrectly ĠBu y Membership `() Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġnetwork Info Ġ= ĠNetwork Info ( be ch 3 2 H rp Ġ= Ġ" did : com :", Ġlcd Url Ġ= Ġ"") ĊĊĠĠĠĠĠĠĠ Ġval Ġnew User Mnemonic Ġ= Ġgenerate Mnemonic ( strength Ġ= Ġ 2 5 6 , Ġword List Ġ= ĠWORD LIST _ EN GL ISH ). split (" Ġ") ĊĠĠĠĠĠĠĠ Ġval Ġnew User Wallet Ġ= ĠWallet . derive ( new User Mnemonic , Ġnetwork Info ) ĊĠĠĠĠĠĠĠ Ġval Ġwallet T sp Ġ= Ġ" did : com : id " ĊĊĠĠĠĠĠĠĠ Ġval Ġexpected Buy Membership Ġ= ĠBu y Membership ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmembership Type Ġ= ĠMembers hip Type . G OLD , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbuy er Did Ġ= Ġnew User Wallet . be ch 3 2 Address , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġt sp Ġ= Ġwallet T sp ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġbuy Membership Ġ= ĠBu y Membership Helper . from Wallet ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġwallet Ġ= Ġnew User Wallet , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmembership Type Ġ= ĠMembers hip Type . G OLD , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġt sp Ġ= Ġwallet T sp ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( expected Buy Membership . toString (), Ġbuy Membership . toString ()) ĊĠĠĠ Ġ} Ċ }