UNPKG

@spheron/protocol-sdk

Version:
15 lines 1.34 kB
import { NetworkType } from '@config/index'; export declare const fetchSubgraphData: (query: string, variables: Record<string, any> | undefined, networkType: NetworkType) => Promise<any>; export declare const getAllFizzNodesQuery = "\nquery ($first: Int!, $gt: BigInt!) {\n fizzNodes(\n first: $first\n where: {fizzId_gt: $gt}\n orderBy: fizzId\n orderDirection: asc\n ) {\n fizzId\n walletAddress\n attributes {\n id\n category\n units\n }\n providerId\n status\n joinTimestamp\n rewardWallet\n isDenied\n paymentsAccepted {\n id\n }\n spec\n attributes {\n category\n attributeId\n units\n }\n rewardPerEra\n pendingRewards\n lastClaimedEra\n totalLeases\n activeLeases\n earnings {\n earned\n balance\n token {\n name\n }\n }\n slashedAmount\n slashedEras\n region{\n id\n }\n }\n}\n"; export declare const subgraphGetProviders: (networkType: NetworkType) => Promise<{ id: string; providerId: string; spec: string; walletAddress: string; hostUri: string; status: string; region: string; certificate: string; }[]>; export declare const subgraphGetFizzNodeIds: (networkType: NetworkType) => Promise<any[]>; //# sourceMappingURL=subgraph.d.ts.map