import { Connector } from '../../connectors/Connector' ; import { BlockMsg , BlockTemplate , ChainEpoch , MiningBaseInfo , TipSetKey } from '../Types' ; export class JsonRpcMinerMethodGroup { private conn : Connector ; constructor ( conn ) { this . conn = conn ; } param address param chainEpoch param tipSetKey public async getBaseInfo ( address , chainEpoch , tipSetKey ) { const ret = await this . conn . request ( { method : 'Filecoin.MinerGetBaseInfo' , params : [ address , chainEpoch , tipSetKey ] } ) ; return ret ; } param blockTemplate public async createBlock ( blockTemplate ) { const ret = await this . conn . request ( { method : 'Filecoin.MinerCreateBlock' , params : [ blockTemplate ] } ) ; return ret ; } }