package Ġjp . co . sor am its u . common . data . network . runtime . binding Ċ Ċ import Ġjp . co . sor am its u . fe ar less _ utils . runtime . Runtime Snapshot Ċ import Ġjp . co . sor am its u . fe ar less _ utils . runtime . definitions . types . Type Ċ import Ġjp . co . sor am its u . fe ar less _ utils . runtime . definitions . types . composite . Struct Ċ import Ġjp . co . sor am its u . fe ar less _ utils . runtime . definitions . types . from Hex OrNull Ċ import Ġjp . co . sor am its u . fe ar less _ utils . runtime . metadata . Runtime Metadata Ċ import Ġjp . co . sor am its u . fe ar less _ utils . runtime . metadata . Storage Entry Ċ import Ġjp . co . sor am its u . fe ar less _ utils . runtime . metadata . module Ċ import Ġjp . co . sor am its u . fe ar less _ utils . runtime . metadata . storage Ċ import Ġkotlin . contracts . Experimental Contracts Ċ import Ġkotlin . contracts . contract Ċ Ċ annotation Ġclass ĠUse Case Binding Ċ Ċ annotation Ġclass ĠHelper Binding Ċ Ċ fun Ġincompatible (): ĠNothing Ġ= Ġthrow ĠIllegalStateException (" Binding Ġis Ġincompatible ") Ċ Ċ type alias ĠB inder < T > Ġ= Ġ( scale : ĠString ?, ĠRuntime Snapshot ) Ġ-> ĠT Ċ type alias ĠB inder With Key < T , ĠK > Ġ= Ġ( scale : ĠString ?, ĠRuntime Snapshot , Ġkey : ĠK ) Ġ-> ĠT Ċ type alias ĠNon Null Binder < T > Ġ= Ġ( scale : ĠString , ĠRuntime Snapshot ) Ġ-> ĠT Ċ type alias ĠNon Null Binder WithType < T > Ġ= Ġ( scale : ĠString , ĠRuntime Snapshot , ĠType <* >) Ġ-> ĠT Ċ type alias ĠB inder WithType < T > Ġ= Ġ( scale : ĠString ?, ĠRuntime Snapshot , ĠType <* >) Ġ-> ĠT Ċ Ċ @ Opt In ( Experimental Contracts :: class ) Ċ inline Ġfun Ġ< re ified ĠT > Ġrequire Type ( dynamic Instance : ĠAny ?): ĠT Ġ{ ĊĊĠĠĠ Ġcontract Ġ{ ĊĠĠĠĠĠĠĠ Ġreturns () Ġimplies Ġ( dynamic Instance Ġis ĠT ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġreturn Ġdynamic Instance Ġas ? ĠT Ġ?: Ġincompatible () Ċ } Ċ Ċ inline Ġfun Ġ< re ified ĠT > ĠAny ?. cast (): ĠT Ġ{ ĊĠĠĠ Ġreturn Ġthis Ġas ? ĠT Ġ?: Ġincompatible () Ċ } Ċ Ċ inline Ġfun Ġ< re ified ĠR > ĠStruct . Instance . get Typed ( key : ĠString ) Ġ= Ġget < R >( key ) Ġ?: Ġincompatible () Ċ Ċ fun ĠStruct . Instance . getList ( key : ĠString ) Ġ= Ġget < List < *> >( key ) Ġ?: Ġincompatible () Ċ Ċ inline Ġfun Ġ< T > Ġbind OrNull ( binder : Ġ() Ġ-> ĠT ): ĠT ? Ġ= Ġrun Catch ing ( binder ). get OrNull () Ċ Ċ fun ĠStorage Entry . returnType () Ġ= Ġtype . value Ġ?: Ġincompatible () Ċ Ċ fun ĠRuntime Metadata . storage ReturnType ( moduleName : ĠString , Ġstorage Name : ĠString ): ĠType < *> Ġ{ ĊĠĠĠ Ġreturn Ġmodule ( moduleName ). storage ( storage Name ). returnType () Ċ } Ċ Ċ fun Ġ< T > ĠType < T >. from Hex Or In compatible ( scale : ĠString , Ġruntime : ĠRuntime Snapshot ) Ġ= Ġfrom Hex OrNull ( runtime , Ġscale ) Ġ?: Ġincompatible () Ċ