use alloy_primitives::{Bytes, U128};
use jsonrpsee::{core::RpcResult, proc_macros::rpc};
#[cfg_attr(not(feature = "client"), rpc(server, namespace = "miner"))]
#[cfg_attr(feature = "client", rpc(server, client, namespace = "miner"))]
pub trait MinerApi {
#[method(name = "setExtra")]
fn set_extra(&self, record: Bytes) -> RpcResult<bool>;
#[method(name = "setGasPrice")]
fn set_gas_price(&self, gas_price: U128) -> RpcResult<bool>;
#[method(name = "setGasLimit")]
fn set_gas_limit(&self, gas_price: U128) -> RpcResult<bool>;
}