package Ġorg . erg op l atform . ui logic . wallet . addresses Ċ Ċ import Ġorg . erg op l atform . pers istance . I App Database Ċ import Ġorg . erg op l atform . pers istance . Wallet Db Provider Ċ Ċ class ĠWallet Address Dialog Ui Logic Ġ{ ĊĠĠĠ Ġsuspend Ġfun Ġdelete Wallet Address ( database : ĠI App Database , Ġaddr Id : ĠLong ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġwallet Db Provider Ġ= Ġdatabase . wallet Db Provider ĊĠĠĠĠĠĠĠ Ġwallet Db Provider . with Transaction Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġwallet Address Ġ= Ġwallet Db Provider . load Wallet Address ( addr Id ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġwallet Address ?. public Address ?. let Ġ{ Ġpublic Address Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġwallet Db Provider . delete Address State ( public Address ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġwallet Db Provider . delete Tokens By Address ( public Address ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdatabase . transaction Db Provider . delete Address Transactions ( public Address ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġwallet Db Provider . delete Wallet Address ( addr Id ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġsave Wallet Address Label ( database : ĠWallet Db Provider , Ġaddr Id : ĠLong , Ġlabel : ĠString ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġdatabase . update Wallet Address Label ( addr Id , Ġif Ġ( label . isNull Or Blank ()) Ġnull Ġelse Ġlabel ) ĊĠĠĠ Ġ} Ċ }