import { IAddress } from './web3'; export interface ISubgraphBase { id: string; contractId_: IAddress; timestamp_: string; transactionHash_: IAddress; block_number: string; } export interface ISubgraphUserHistoryItem extends ISubgraphBase { address: IAddress; amount: string; type: 'withdraw-request' | 'deposit' | 'withdraw-processed'; decimals?: number; isInstant?: boolean; } export interface ISubgraphWithdrawProccessed extends ISubgraphBase { processedOn: string; requestedOn: string; receiverAddr: IAddress; assetsAmount: string; } export interface ISubgraphDeposit extends ISubgraphBase { assets: string; sender: IAddress; shares: string; owner: IAddress; senderAddr?: IAddress; amountIn?: string; } export interface ISubgraphWithdrawRequest extends ISubgraphBase { day: string; month: string; year: string; shares: string; assets: string; receiverAddr: IAddress; ownerAddr: IAddress; } export interface ISubgraphWithdraw extends ISubgraphBase { receiver: IAddress; sender: string; assets: string; } export interface ISubgraphTransfer extends ISubgraphBase { from: IAddress; to: IAddress; value: string; }