import { makeAutoObservable } from 'mobx' ; import { NetworkState } from '../lib/NetworkState' ; import { CallParams } from '../../../type' ; export class RouterState { address : string ; abi = '' ; network : NetworkState ; constructor ( args ) { Object . assign ( this , args ) ; makeAutoObservable ( this ) ; } test ( args ) { return this . network . execContract ( Object . assign ( { address : this . address , abi : this . abi , method : 'test' } , args ) ) ; } preMulticall ( args ) { return Object . assign ( { address : this . address , abi : this . abi } , args ) ; } }