package Ġcom . r 3 . cord a . lib . tokens . sample . flows . e vol vable N ft Ċ Ċ import Ġcom . r 3 . cord a . lib . tokens . builder . Non F ung ible Token Builder Ċ import Ġcom . r 3 . cord a . lib . tokens . contracts . utilities . amount Ċ import Ġcom . r 3 . cord a . lib . tokens . money . Fi at Currency Ċ import Ġcom . r 3 . cord a . lib . tokens . sample . states . House Token Ċ import Ġcom . r 3 . cord a . lib . tokens . sample . states . Json Represent able House NFT Ċ import Ġcom . r 3 . cord a . lib . tokens . workflows . flows . rpc . Create E vol vable Tokens Ċ import Ġcom . r 3 . cord a . lib . tokens . workflows . flows . rpc . Issue Tokens Ċ import Ġnet . cord a . v 5 . application . flows . Flow Ċ import Ġnet . cord a . v 5 . application . flows . Json Constructor Ċ import Ġnet . cord a . v 5 . application . flows . Rpc Start Flow Request Parameters Ċ import Ġnet . cord a . v 5 . application . flows . Start able By RPC Ċ import Ġnet . cord a . v 5 . application . flows . flow services . Flow Engine Ċ import Ġnet . cord a . v 5 . application . flows . flow services . Flow Identity Ċ import Ġnet . cord a . v 5 . application . injection . C ord a Inject Ċ import Ġnet . cord a . v 5 . application . services . crypto . Hash ing Service Ċ import Ġnet . cord a . v 5 . application . services . json . Json Marshall ing Service Ċ import Ġnet . cord a . v 5 . application . services . json . parse Json Ċ import Ġnet . cord a . v 5 . base . annotations . Suspend able Ċ import Ġnet . cord a . v 5 . ledger . Unique Identifier Ċ import Ġnet . cord a . v 5 . ledger . contracts . Transaction State Ċ import Ġnet . cord a . v 5 . ledger . services . Not ary Lookup Service Ċ Ċ @ Start able By RPC Ċ class ĠCreate House Token Ġ@ Json Constructor Ġconstructor ( ĊĠĠĠ Ġval Ġinput Params : ĠRpc Start Flow Request Parameters Ċ ) Ġ: ĠFlow < Json Represent able House NFT > Ġ{ ĊĊĠĠĠ Ġ@ C ord a Inject ĊĠĠĠ Ġlateinit Ġvar Ġnot ary Lookup Service : ĠNot ary Lookup Service ĊĊĠĠĠ Ġ@ C ord a Inject ĊĠĠĠ Ġlateinit Ġvar Ġflow Engine : ĠFlow Engine ĊĊĠĠĠ Ġ@ C ord a Inject ĊĠĠĠ Ġlateinit Ġvar Ġflow Identity : ĠFlow Identity ĊĊĠĠĠ Ġ@ C ord a Inject ĊĠĠĠ Ġlateinit Ġvar Ġjson Marshall ing Service : ĠJson Marshall ing Service ĊĊĠĠĠ Ġ@ C ord a Inject ĊĠĠĠ Ġlateinit Ġvar Ġhashing Service : ĠHash ing Service ĊĊĠĠĠ Ġ@ Suspend able ĊĠĠĠ Ġoverride Ġfun Ġcall (): ĠJson Represent able House NFT Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġparams : ĠMap < String , ĠString > Ġ= Ġjson Marshall ing Service . parse Json ( input Params . parameters In Json ) ĊĠĠĠĠĠĠĠ Ġval Ġaddress : ĠString Ġ= Ġparams [" address "] !! ĊĠĠĠĠĠĠĠ Ġval Ġcurrency Code : ĠString Ġ= Ġparams [" currency Code "] !! ĊĠĠĠĠĠĠĠ Ġval Ġvalue : ĠDouble Ġ= Ġparams [" value "] !!. toDouble () ĊĊĠĠĠĠĠĠĠ Ġval Ġnot ary Ġ= Ġnot ary Lookup Service . not ary Id entities . first () ĊĊĠĠĠĠĠĠĠ Ġval Ġhouse Ġ= ĠHouse Token ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġaddress , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġamount ( value , ĠF iat Currency . getInstance ( currency Code )), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠlistOf ( flow Identity . our Identity ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlinear Id Ġ= ĠUnique Identifier () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġval Ġtransaction State Ġ= ĠTransaction State ( house , Ġnot ary Ġ= Ġnot ary ) ĊĠĠĠĠĠĠĠ Ġflow Engine . sub Flow ( Create E vol vable Tokens ( transaction State )) ĊĊĠĠĠĠĠĠĠ Ġval Ġhouse Token Ġ= ĠNon F ung ible Token Builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. of TokenType ( house . to Pointer < House Token >()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. iss ued By ( flow Identity . our Identity ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. held By ( flow Identity . our Identity ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build Non F ung ible Token ( hash ing Service ) ĊĊĠĠĠĠĠĠĠ Ġflow Engine . sub Flow ( Issue Tokens ( listOf ( house Token ))) ĊĊĠĠĠĠĠĠĠ Ġreturn ĠJson Represent able House NFT ( house Token ) ĊĠĠĠ Ġ} Ċ } Ċ