package Ġfund . cyber . pump . ethereum . client Ċ Ċ import Ġfund . cyber . search . json Deserializer Ċ import Ġorg . web 3 j . protocol . core . methods . response . Eth Block Ċ import Ġorg . web 3 j . protocol . core . methods . response . Eth Get Transaction Receipt Ċ import Ġorg . web 3 j . protocol . core . methods . response . Transaction Ċ import Ġorg . web 3 j . protocol . parity . methods . response . Par ity Tr aces Response ĊĊ Ċ class ĠPar ity TestData Ġ{ ĊĊĠĠĠ Ġfun Ġget Block ( number : ĠLong ): ĠE th Block Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġblock Resource Location Ġ= Ġjava Class . getResource ("/ client / parity - data / block /$ number . json ") ĊĠĠĠĠĠĠĠ Ġreturn Ġjson Deserializer . readValue ( block Resource Location , ĠE th Block :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Receipt ( tx Hash : ĠString ): ĠE th Get Transaction Receipt Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġreceipt Resource Location Ġ= Ġjava Class . getResource ("/ client / parity - data / receipt s /$ tx Hash . json ") ĊĠĠĠĠĠĠĠ Ġreturn Ġjson Deserializer . readValue ( receipt Resource Location , ĠE th Get Transaction Receipt :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Tr aces ( block Number : ĠLong ): ĠPar ity Tr aces Response Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġtraces Resource Location Ġ= Ġjava Class . getResource ("/ client / parity - data / traces /$ block Number . json ") ĊĠĠĠĠĠĠĠ Ġreturn Ġjson Deserializer . readValue ( traces Resource Location , ĠPar ity Tr aces Response :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Un cle ( block Hash : ĠString , Ġindex : ĠLong ): ĠE th Block Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġun cle Resource Location Ġ= Ġjava Class . getResource ("/ client / parity - data / unc les /${ block Hash }_ $ index . json ") ĊĠĠĠĠĠĠĠ Ġreturn Ġjson Deserializer . readValue ( unc le Resource Location , ĠE th Block :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Tx ( hash : ĠString ): ĠTransaction Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġtx Resource Location Ġ= Ġjava Class . getResource ("/ client / parity - data / transaction /$ hash . json ") ĊĠĠĠĠĠĠĠ Ġreturn Ġjson Deserializer . readValue ( tx Resource Location , ĠTransaction :: class . java ) ĊĠĠĠ Ġ} Ċ Ċ } ĊĊ