import { Assignable , SCHEMA } from '../solanaBorsh' ; export class UserDetailsData extends Assignable { alias : string ; addressBook : string ; static fromAccount ( accountData ) { return UserDetailsData . decode < UserDetailsData > ( accountData ) ; } static empty ( alias ) { return new UserDetailsData ( { alias , addressBook : '' , } ) ; } } SCHEMA . set ( UserDetailsData , { kind : 'struct' , fields : [ [ 'alias' , 'string' ] , [ 'addressBook' , 'string' ] , ] , } ) ;