import { Factory } from "rosie" ; import stellar from "stellar-base" ; import { AccountFlags , AccountThresholds , AccountValues , IAccountFlags } from "../../src/model" ; Factory . define ( "account_values" ) . attr ( "id" , ( ) => stellar . Keypair . random ( ) . publicKey ( ) ) . attr ( "balance" , "19729999500" ) . attr ( "sequenceNumber" , "12884901893" ) . attr ( "numSubentries" , 1 ) . attr ( "inflationDestination" , "" ) . attr ( "homeDomain" , "" ) . attr ( "thresholds" , new AccountThresholds ( { masterWeight : 1 , low : 1 , medium : 1 , high : 1 } ) ) . attr ( "flags" , new AccountFlags ( { authRequired : false , authImmutable : false , authRevocable : false } ) ) . attr ( "lastModified" , 6 ) . attr ( "signers" , [ ] ) ; export default { build ( overrides ? ) { const data = Factory . attributes ( "account_values" , overrides ) ; data . signers = ( overrides && overrides . signers ) || [ ] ; return new AccountValues ( data ) ; } , data ( ) { return Factory . attributes ( "account_values" , { } ) ; } } ;