You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: resolve.rs
    path of file: ./repos/nox/crates/subnet-resolver/src
    
    the code of the file until where you have to start completion: use crate::error::ResolveSubnetError;

use ethabi::ParamType::{Address, Array, FixedBytes, Tuple, Uint};
use ethabi::{Function, ParamType, StateMutability, Token};
use jsonrpsee::core::client::ClientT;
use jsonrpsee::http_client::HttpClientBuilder;
use jsonrpsee::rpc_params;

use chain_data::{next_opt, parse_peer_id, ChainDataError};
use hex_utils::decode_hex;
use serde::{
    
pub fn parse_chain_data(data: &str) -> Result<Vec<Token>, ChainDataError> {
    if data.is_empty() {
        return Err(ChainDataError::Empty);
    }
    let data = decode_hex(data).map_err(ChainDataError::DecodeHex)?;
    let signature: ParamType = Array(Box::new(Tuple(vec![
        // bytes32 id
        FixedBytes(32),
        // bytes32 workerId
        FixedBytes(32),
        // bytes32 peerId
        FixedBytes(32),
        // address provider
        Address,
        // uint256 joinedEpoch
        Uint(256),
    ])));
    Ok(ethabi::decode(&[signature], &data)?)
}