package Ġcom . wallet connect . wallet connect v 2 . engine . model . mapper Ċ Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . Expiry VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . PublicKey Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . Topic VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . client sync . common . MetaData VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . client sync . common . Relay Protocol Options VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . client sync . common . Session Participant VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . client sync . pair ing . params . Pair ing Params VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . client sync . pair ing . payload . Session Pro poser VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . client sync . session . params . Session Params VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . json Rpc . Json Rpc Response VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . sequence . Pair ing VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . sequence . Session VO Ċ import Ġcom . wallet connect . wallet connect v 2 . core . model . vo . sync . WC Request VO Ċ import Ġcom . wallet connect . wallet connect v 2 . engine . model . Engine DO Ċ import Ġcom . wallet connect . wallet connect v 2 . util . Empty Ċ import Ġjava . net . URI Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠEngine DO . Wallet Connect Uri . to Absolute String (): ĠString Ġ= ĊĠĠĠ Ġ" wc :${ topic . value }@ $ version ? ${ getQuery ()} & sym Key =${ sym Key . key As Hex }" Ċ Ċ private Ġfun ĠEngine DO . Wallet Connect Uri . getQuery (): ĠString Ġ{ ĊĠĠĠ Ġvar Ġquery Ġ= Ġ" relay - protocol =${ relay . protocol }" ĊĠĠĠ Ġif Ġ( relay . data Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġquery Ġ= Ġ"$ query & relay - data =${ relay . data }" ĊĠĠĠ Ġ} ĊĠĠĠ Ġreturn Ġquery Ċ } Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠEngine DO . App MetaData . to MetaData VO () Ġ= ĊĠĠĠ ĠMeta Data VO ( name , Ġdescription , Ġurl , Ġicons ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠMeta Data VO . to Engine DO MetaData (): ĠEngine DO . App MetaData Ġ= ĊĠĠĠ ĠEngine DO . App MetaData ( name , Ġdescription , Ġurl , Ġicons ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠPair ing Params VO . Session Pro pose Params . to Engine DO Session Proposal (): ĠEngine DO . Session Proposal Ġ= ĊĠĠĠ ĠEngine DO . Session Proposal ( ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġthis . pro poser . metadata . name , ĊĠĠĠĠĠĠĠ Ġdescription Ġ= Ġthis . pro poser . metadata . description , ĊĠĠĠĠĠĠĠ Ġurl Ġ= Ġthis . pro poser . metadata . url , ĊĠĠĠĠĠĠĠ Ġicons Ġ= Ġthis . pro poser . metadata . icons . map Ġ{ ĠURI ( it ) Ġ}, ĊĠĠĠĠĠĠĠ Ġchains Ġ= Ġthis . chains , ĊĠĠĠĠĠĠĠ Ġmethods Ġ= Ġthis . methods , ĊĠĠĠĠĠĠĠ Ġevents Ġ= Ġthis . events , ĊĠĠĠĠĠĠĠ Ġpro poser PublicKey Ġ= Ġthis . pro poser . publicKey , ĊĠĠĠĠĠĠĠ Ġaccounts Ġ= ĠlistOf (), ĊĠĠĠĠĠĠĠ Ġrelay Protocol Ġ= Ġrelay s . first (). protocol , ĊĠĠĠĠĠĠĠ Ġrelay Data Ġ= Ġrelay s . first (). data ĊĠĠĠ Ġ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠSession Params VO . Session Request Params . to Engine DO Session Request ( request : ĠWC Request VO , Ġpeer MetaData VO : ĠMeta Data VO ?): ĠEngine DO . Session Request Ġ= ĊĠĠĠ ĠEngine DO . Session Request ( ĊĠĠĠĠĠĠĠ Ġtopic Ġ= Ġrequest . topic . value , ĊĠĠĠĠĠĠĠ Ġchain Id Ġ= Ġchain Id , ĊĠĠĠĠĠĠĠ Ġpeer App MetaData Ġ= Ġpeer MetaData VO ?. to Engine DO App MetaData (), ĊĠĠĠĠĠĠĠ Ġrequest Ġ= ĠEngine DO . Session Request . JSON RPC Request ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġid Ġ= Ġrequest . id , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmethod Ġ= Ġthis . request . method , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparams Ġ= Ġthis . request . params . toString () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠSession Params VO . Delete Params . to Engine Do Delete Session ( topic : ĠTopic VO ): ĠEngine DO . Session Delete Ġ= ĊĠĠĠ ĠEngine DO . Session Delete ( topic . value , Ġmessage ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠSession Params VO . Event Params . to Engine DO Session Event ( topic : ĠTopic VO ): ĠEngine DO . Session Event Ġ= ĊĠĠĠ ĠEngine DO . Session Event ( topic . value , Ġevent . name , Ġevent . data . toString (), Ġchain Id ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠSession VO . to Engine DO Approved Session VO ( topic : ĠTopic VO ): ĠEngine DO . Session Ġ= ĊĠĠĠ ĠEngine DO . Session ( ĊĠĠĠĠĠĠĠ Ġtopic , Ġexpiry , Ġaccounts , Ġmethods , Ġevents , ĊĠĠĠĠĠĠĠ ĠEngine DO . App MetaData ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġself MetaData ?. name Ġ?: ĠString . Empty , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġself MetaData ?. description Ġ?: ĠString . Empty , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġself MetaData ?. url Ġ?: ĠString . Empty , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġself MetaData ?. icons ?. map Ġ{ Ġicon Uri Ġ-> Ġicon Uri Ġ} Ġ?: ĠlistOf ()) ĊĠĠĠ Ġ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠSession VO . to Engine DO Approved Session VO (): ĠEngine DO . Session Ġ= ĊĠĠĠ ĠEngine DO . Session ( ĊĠĠĠĠĠĠĠ Ġtopic , Ġexpiry , Ġaccounts , Ġmethods , Ġevents , ĊĠĠĠĠĠĠĠ Ġself MetaData ?. to Engine DO App MetaData () ĊĠĠĠ Ġ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠSession VO . to Engine DO Session Update Expiry ( expiry VO : ĠExp iry VO ): ĠEngine DO . Session Update Expiry Ġ= ĊĠĠĠ ĠEngine DO . Session Update Expiry ( ĊĠĠĠĠĠĠĠ Ġtopic , Ġexpiry VO , Ġaccounts , Ġmethods , Ġevents , ĊĠĠĠĠĠĠĠ Ġself MetaData ?. to Engine DO App MetaData () ĊĠĠĠ Ġ) Ċ Ċ @ Jvm Synt hetic Ċ private Ġfun ĠMeta Data VO . to Engine DO App MetaData (): ĠEngine DO . App MetaData Ġ= ĊĠĠĠ ĠEngine DO . App MetaData ( name , Ġdescription , Ġurl , Ġicons ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠPair ing VO . to Engine DO Set tled Pair ing (): ĠEngine DO . Pair ing Set tle Ġ= ĊĠĠĠ ĠEngine DO . Pair ing Set tle ( topic , Ġpeer MetaData ?. to Engine DO App MetaData ()) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠSession VO . to Session Approved (): ĠEngine DO . Session Approved Ġ= ĊĠĠĠ ĠEngine DO . Session Approved ( ĊĠĠĠĠĠĠĠ Ġtopic . value , ĊĠĠĠĠĠĠĠ Ġpeer MetaData ?. to Engine DO MetaData (), ĊĠĠĠĠĠĠĠ Ġaccounts , Ġmethods , Ġevents , ĊĠĠĠ Ġ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠPair ing Params VO . Session Pro pose Params . to Session Set tle Params ( ĊĠĠĠ Ġself Participant : ĠSession Participant VO , ĊĠĠĠ Ġsession Expiry : ĠLong , ĊĠĠĠ Ġaccounts : ĠList < String >, ĊĠĠĠ Ġmethods : ĠList < String >, ĊĠĠĠ Ġevents : ĠList < String >, Ċ ): ĠSession Params VO . Session Set tle Params Ġ= ĊĠĠĠ ĠSession Params VO . Session Set tle Params ( ĊĠĠĠĠĠĠĠ Ġrelay Ġ= ĠRelay Protocol Options VO ( relay s . first (). protocol , Ġrelay s . first (). data ), ĊĠĠĠĠĠĠĠ Ġcontroller Ġ= Ġself Participant , ĊĠĠĠĠĠĠĠ Ġaccounts Ġ= Ġaccounts , ĊĠĠĠĠĠĠĠ Ġmethods Ġ= Ġmethods , ĊĠĠĠĠĠĠĠ Ġevents Ġ= Ġevents , ĊĠĠĠĠĠĠĠ Ġexpiry Ġ= Ġsession Expiry ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun Ġto Session Pro pose Params ( ĊĠĠĠ Ġrelay : ĠRelay Protocol Options VO , ĊĠĠĠ Ġchains : ĠList < String >, Ġmethods : ĠList < String >, Ġevents : ĠList < String >, ĊĠĠĠ Ġself PublicKey : ĠPublicKey , ĊĠĠĠ ĠmetaData : ĠEngine DO . App MetaData , Ċ ) Ġ= ĠPair ing Params VO . Session Pro pose Params ( ĊĠĠĠ Ġrelay s Ġ= ĠlistOf ( relay ), ĊĠĠĠ Ġpro poser Ġ= ĠSession Pro poser VO ( self PublicKey . key As Hex , ĠmetaData . to MetaData VO ()), ĊĠĠĠ Ġchains , Ġmethods , Ġevents Ċ ) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠJson Rpc Response VO . Json Rpc Result . to Engine Json Rpc Result (): ĠEngine DO . Json Rpc Response . Json Rpc Result Ġ= ĊĠĠĠ ĠEngine DO . Json Rpc Response . Json Rpc Result ( id Ġ= Ġid , Ġresult Ġ= Ġresult . toString ()) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠJson Rpc Response VO . Json Rpc Error . to Engine Json Rpc Error (): ĠEngine DO . Json Rpc Response . Json Rpc Error Ġ= ĊĠĠĠ ĠEngine DO . Json Rpc Response . Json Rpc Error ( id Ġ= Ġid , Ġerror Ġ= ĠEngine DO . Json Rpc Response . Error ( error . code , Ġerror . message )) Ċ Ċ @ Jvm Synt hetic Ċ internal Ġfun ĠPair ing Params VO . Session Pro pose Params . to Session Approve Params ( self PublicKey : ĠPublicKey ): ĠSession Params VO . Approval Params Ġ= ĊĠĠĠ ĠSession Params VO . Approval Params ( ĊĠĠĠĠĠĠĠ Ġrelay Ġ= ĠRelay Protocol Options VO ( relay s . first (). protocol , Ġrelay s . first (). data ), ĊĠĠĠĠĠĠĠ Ġresponder PublicKey Ġ= Ġself PublicKey . key As Hex ) ĊĊ