/******************************************************************************* * (c) 2023 unipackage * * Licensed under either the MIT License (the "MIT License") or the Apache License, Version 2.0 * (the "Apache License"). You may not use this file except in compliance with one of these * licenses. You may obtain a copy of the MIT License at * * https://opensource.org/licenses/MIT * * Or the Apache License, Version 2.0 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the MIT License or the Apache License for the specific language governing permissions and * limitations under the respective licenses. ********************************************************************************/ import { FilecoinRPCEngine, RPCResponse } from "@unipackage/net"; import { Tipset } from "../../../basic/tipset/types"; import { Actor } from "../../../basic/actor/types"; import { Balance, MarketBalance } from "../../../basic/balance/types"; import { Cid } from "../../../basic/cid/types"; import { Address } from "../../../basic/address/types"; import { MinerInfo, MinerPower } from "../../types"; interface ParticipantFilecoinOriginRPC { ChainHead(): Promise>; StateGetActor(param: string, chainHead: Array): Promise>; WalletBalance(param: string): Promise>; StateMarketBalance(param: string, chainHead: Array): Promise>; StateMinerInfo(param: string, chainHead: Array): Promise>; StateAccountKey(param: string, chainHead: Array): Promise>; StateMinerPower(param: string, chainHead: Array): Promise>; StateMinerAvailableBalance(param: string, chainHead: Array): Promise>; } declare class ParticipantFilecoinOriginRPC extends FilecoinRPCEngine { } export declare class ParticipantFilecoinRPC extends ParticipantFilecoinOriginRPC { /** * Retrieves the current tipset from the Filecoin chain. * @returns A Promise that resolves to a Result containing the current tipset or an error. */ ChainHead(): Promise>; /** * Retrieves information about a Filecoin actor. * @param param - The actor's address. * @param chainHead - The CIDs of the blocks in the current tipset. * @returns A Promise that resolves to a Result containing the actor's information or an error. */ StateGetActor(param: string, chainHead: Array): Promise>; /** * Retrieves the balance of a Filecoin wallet. * @param param - The wallet's address. * @returns A Promise that resolves to a Result containing the wallet balance or an error. */ WalletBalance(param: string): Promise>; /** * Retrieves the market balance of a Filecoin address. * @param param - The address to query. * @param chainHead - The CIDs of the blocks in the current tipset. * @returns A Promise that resolves to a Result containing the market balance or an error. */ StateMarketBalance(param: string, chainHead: Array): Promise>; /** * Retrieves information about a Filecoin miner. * @param param - The miner's address. * @param chainHead - The CIDs of the blocks in the current tipset. * @returns A Promise that resolves to a Result containing the miner's information or an error. */ StateMinerInfo(param: string, chainHead: Array): Promise>; /** * Retrieves the account key of a Filecoin address. * @param param - The address to query. * @param chainHead - The CIDs of the blocks in the current tipset. * @returns A Promise that resolves to a Result containing the account key or an error. */ StateAccountKey(param: string, chainHead: Array): Promise>; /** * Retrieves power-related information about a Filecoin miner. * @param param - The miner's address. * @param chainHead - The CIDs of the blocks in the current tipset. * @returns A Promise that resolves to a Result containing the miner's power information or an error. */ StateMinerPower(param: string, chainHead: Array): Promise>; /** * Retrieves the available balance of a Filecoin miner. * @param param - The miner's address. * @param chainHead - The CIDs of the blocks in the current tipset. * @returns A Promise that resolves to a Result containing the available balance or an error. */ StateMinerAvailableBalance(param: string, chainHead: Array): Promise>; } export {}; //# sourceMappingURL=index.d.ts.map