import stellar from "stellar-base" ; import { AccountFlags , IAccountFlags } from "../account_flags" ; export class AccountFlagsFactory { public static fromValue ( value ) { const fl = stellar . xdr . AccountFlags ; const data = { authRequired : ( value & fl . authRequiredFlag ( ) . value ) > 0 , authRevocable : ( value & fl . authRevocableFlag ( ) . value ) > 0 , authImmutable : ( value & fl . authImmutableFlag ( ) . value ) > 0 } ; return new AccountFlags ( data ) ; } }