import { BlockchainPort } from '@core/domain/blockchain/port' ; import Web3 from 'web3' ; class EthereumBlockchainAdapter implements BlockchainPort { constructor ( private readonly web3 ) { } getBlockNumber ( ) { return this . web3 . eth . getBlockNumber ( ) ; } } export default EthereumBlockchainAdapter ;