import { TransferHistoryItem } from '../../types'; export declare const COIN_MOVING_HISTORY_QUERY_BY_USER = "query coinMovingHistories($limit: Int, $offset: Int, $address: Bytes!) {\n coinMovingHistories(\n first: $limit\n skip: $offset\n orderBy: createdAt\n orderDirection: desc\n where: {or: [\n {sender: $address},\n {recipient: $address}\n ]}\n ) {\n movingType\n amount\n createdAt\n id\n metadata\n recipient {\n id\n name\n pictureHash\n }\n sender {\n id\n name\n pictureHash\n }\n token {\n id\n }\n recipientName\n senderName\n recipientTokenHolder {\n balance\n }\n txHash\n }\n}"; export declare const COIN_MOVING_HISTORY_QUERY_BY_SENDER_AND_RECIPIENT = "query coinMovingHistories($limit: Int, $offset: Int, $me: Bytes!, $other: Bytes!) {\n coinMovingHistories(\n first: $limit\n skip: $offset\n orderBy: createdAt\n orderDirection: desc\n where: {\n or: [\n { sender: $me, recipient: $other },\n { sender: $other, recipient: $me }\n ]\n }\n ) {\n movingType\n amount\n createdAt\n id\n metadata\n recipient {\n id\n name\n pictureHash\n }\n sender {\n id\n name\n pictureHash\n }\n token {\n id\n }\n recipientName\n senderName\n recipientTokenHolder {\n balance\n }\n txHash\n }\n}"; export declare const COIN_MOVING_HISTORY_QUERY_BY_TOKEN = "query coinMovingHistories($limit: Int, $offset: Int, $token: Bytes!) {\n coinMovingHistories(\n first: $limit\n skip: $offset\n orderBy: createdAt\n orderDirection: desc\n where: {token: $token}\n ) {\n movingType\n amount\n createdAt\n id\n metadata\n recipient {\n id\n name\n pictureHash\n }\n sender {\n id\n name\n pictureHash\n }\n token {\n id\n }\n recipientName\n senderName\n recipientTokenHolder {\n balance\n }\n txHash\n }\n}"; export declare const COIN_MOVING_HISTORY_QUERY_BY_TOKEN_AND_TYPE = "query coinMovingHistories($limit: Int, $offset: Int, $token: Bytes!, $type: String!) {\n coinMovingHistories(\n first: $limit\n skip: $offset\n orderBy: createdAt\n orderDirection: desc\n where: {token: $token, movingType: $type}\n ) {\n movingType\n amount\n createdAt\n id\n metadata\n recipient {\n id\n name\n pictureHash\n }\n sender {\n id\n name\n pictureHash\n }\n token {\n id\n }\n recipientName\n senderName\n recipientTokenHolder {\n balance\n }\n txHash\n }\n}"; export interface CoinMovingHistoriesEntity { coinMovingHistories: { id: string; movingType: string; token: { id: string; }; sender: { id: string; name?: string; pictureHash?: string; }; recipient: { id: string; name?: string; pictureHash?: string; }; recipientName?: string; senderName?: string; recipientTokenHolder?: { balance: string; }; amount: string; metadata: string; txHash: string; createdAt: string; }[]; } export declare function transform(entities: CoinMovingHistoriesEntity): TransferHistoryItem[]; //# sourceMappingURL=coin-moving.d.ts.map