import { GraphQLResolveInfo } from "graphql"; export type NetworkContext = { rpc_url: string; fetchOptions?: RequestInit; }; export type SignTransactionContext = (hash: Uint8Array, serialized_transaction?: { chain_id: string; transaction_header: string; transaction_body: string; }, transaction?: any) => Promise; export type Context = { network(root: any, args: any, info: GraphQLResolveInfo): NetworkContext; signTransaction?: SignTransactionContext; };