import { UpdateWeb3Values } from '../state' ; import { IEthereum } from './metamask' ; export abstract class BaseAdapter { protected readonly allowedChainIds : number [ ] ; protected onError : ( error : any ) => void ; constructor ( allowedChainIDs , onError ? ) { this . allowedChainIds = allowedChainIDs ; this . onError = onError ; } protected abstract updateHandler ( values ) ; protected abstract closeHandler ( ) ; public abstract enable ( updateHandler , closeHandler ) ; public abstract disable ( ) ; public abstract getProvider ( ) ; public abstract getChainId ( ) ; public abstract getAccount ( ) ; }