import { AnyApi , FixedPointNumber , Token } from '@acala-network/sdk-core' ; import { Observable } from 'rxjs' ; import { Storage } from '../storage' ; import { GlobalVault } from './type' ; type GlobalObservable = Observable < GlobalVault > ; type PriceObservable = Observable < FixedPointNumber > ; export class Vault { constructor ( private api , private price$ , private global$ ) { } static create ( api , price$ ) { return new Vault ( api , price$ ) ; } private get storages ( ) { return { 'collateral-params' : ( token ) => { return Storage . create ; } } ; } }