import { DataEntryValues , IDataEntryValues } from "../data_entry_values" ; import { publicKeyFromXDR } from "../../util/xdr" ; export class DataEntryValuesFactory { public static fromXDR ( xdr ) { const accountID = publicKeyFromXDR ( xdr ) ; const data = { accountID , name : xdr . dataName ( ) . toString ( ) , value : xdr . dataValue ( ) . toString ( ) } ; return new DataEntryValues ( data ) ; } }