declare const schema = "\n#\n# --Airstack Schemas--\n\nenum AirNetwork {\n ARBITRUM_ONE\n ARWEAVE_MAINNET\n AURORA\n AVALANCHE\n BOBA\n BSC # aka BNB Chain\n CELO\n COSMOS\n CRONOS\n MAINNET # Ethereum Mainnet\n FANTOM\n FUSE\n HARMONY\n JUNO\n MOONBEAM\n MOONRIVER\n NEAR_MAINNET\n OPTIMISM\n OSMOSIS\n matic # aka Polygon\n XDAI # aka Gnosis Chain\n}\n\nenum AirProtocolType {\n GENERIC\n EXCHANGE\n LENDING\n YIELD\n BRIDGE\n DAO\n NFT_MARKET_PLACE\n STAKING\n P2E #play to earn\n LAUNCHPAD\n}\n\nenum AirTokenStandardType {\n ERC1155\n ERC721\n ERC20\n}\n\nenum AirTokenUsageType {\n LP\n REWARD\n STAKE\n MINT\n GENERIC\n}\n\nenum AirProtocolActionType {\n ### NFT Marketplace/Tokens ###\n BUY\n SELL\n MINT\n BURN # TODO check this later\n ### NFT (ex: Poap) ###\n ATTEND\n\n ### P2E (NFT + Utility) ###\n EARN\n\n ### DEX ###\n SWAP\n ADD_LIQUIDITY\n REMOVE_LIQUIDITY\n ADD_TO_FARM\n REMOVE_FROM_FARM\n CLAIM_FARM_REWARD\n\n ### Lending ###\n LEND\n BORROW\n FLASH_LOAN\n\n ### Staking / Delegating ###\n STAKE\n RESTAKE\n UNSTAKE\n DELEGATE\n CLAIM_REWARDS\n}\n\ntype AirExtraData @entity {\n id: ID!\n name: String!\n value: String!\n}\n\ninterface AirEntityStats {\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\ntype AirDailyAggregateEntity implements AirEntityStats @entity {\n id: ID!\n network: AirNetwork!\n contract: AirContract!\n protocolType: AirProtocolType!\n protocolActionType: AirProtocolActionType!\n daySinceEpoch: BigInt!\n startDayTimestamp: BigInt!\n updatedTimestamp: BigInt!\n accounts: [AirDailyAggregateEntityAccount!]\n @derivedFrom(field: \"dailyAggregatedEntity\")\n stats: AirDailyAggregateEntityStats!\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n blockHeight: BigInt!\n extraData: [AirExtraData!]\n}\n\ntype AirDailyAggregateEntityStats @entity {\n id: ID!\n protocolActionType: AirProtocolActionType!\n\n #### NFT Market Place\n # buyStats: AirNFTSaleStats\n # sellStats: AirNFTSaleStats\n # mintStats: AirNFTSaleStats\n # giftStats: AirNFTSaleStats\n\n ##### DEX #####\n addPoolLiquidityStats: AirLiquidityPoolStats\n removePoolLiquidityStats: AirLiquidityPoolStats\n farmPoolRewardStats: AirPoolFarmRewardStats\n swapStats: AirDEXSwapStats\n\n #### Bridge\n #transferStats: AirstackBridgeTransferStats\n\n ### Staking status\n #stakingStats: AirstackStakingStats\n #unstakingStats: AirstackUnStakingStats\n\n ### Lending/Borrowing\n #lendStats: AirstackLendStats\n #borrowStats: AirstackBorrowStats\n #flashLoanStats: AirstackFlashLoanStats\n\n ### DAO Stats\n #proposalStats: AirstackProposalStats\n\n ### P2E Stats\n #earnStats: AirstackEarnStats\n\n ### Social Network Dapps ###\n}\n\ntype AirToken @entity {\n id: ID!\n address: String!\n standard: AirTokenStandardType!\n name: String\n symbol: String\n decimals: Int\n totalSupply: BigInt\n}\n\n#TODO check if this to be moved to NFT setction\ntype AirTokenMetadata @entity {\n id: ID!\n displayContentType: AirTokenDisplayType!\n displayContent: String\n}\n\ntype AirDailyAggregateEntityAccount @entity {\n id: ID!\n account: AirAccount!\n dailyAggregatedEntity: AirDailyAggregateEntity!\n volumeInUSD: BigDecimal!\n index: BigInt! # incrementer for pagination purpose\n}\n\ntype AirAccount @entity {\n id: ID!\n address: String!\n dailyAggregatedEntities: [AirDailyAggregateEntityAccount!]\n @derivedFrom(field: \"account\")\n}\n\ninterface AirTokenStats implements AirEntityStats @entity {\n id: ID!\n #entityStat: AirEntityStats! # for reference\n token: AirToken!\n type: AirTokenUsageType!\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\ntype AirEntityDailyChangeStats @entity {\n id: ID!\n walletCountChangeInPercentage: BigDecimal!\n tokenCountChangeInPercentage: BigDecimal!\n transactionCountChangeInPercentage: BigDecimal!\n volumeInUSDChangeInPercentage: BigDecimal!\n}\n\ntype AirContract @entity {\n id: ID!\n address: String!\n}\n\ntype AirDEXPool @entity {\n id: ID!\n poolAddress: String!\n inputToken: [AirToken!]!\n tokenBalances:[BigInt!]!\n weightage: [BigDecimal!]!\n outputToken: AirToken!\n fee: BigInt!\n}\n\ntype AirLiquidityPoolStats implements AirEntityStats @entity {\n id: ID!\n dexPool: AirDEXPool!\n # IMP: Please add the references carefully. This can be very specific in the actual implementation\n inputTokensStats: [AirLiquidityPoolInputTokenStats!]!\n @derivedFrom(field: \"liquidityPoolStatsRef\")\n outputTokenStats: [AirLiquidityPoolOutputTokenStats!]!\n @derivedFrom(field: \"liquidityPoolStatsRef\")\n transactions: [AirLiquidityPoolTransaction!]!\n @derivedFrom(field: \"liquidityPoolStatsRef\")\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\ntype AirLiquidityPoolInputTokenStats implements AirTokenStats @entity {\n id: ID!\n liquidityPoolStatsRef: AirLiquidityPoolStats! # for reference\n token: AirToken!\n type: AirTokenUsageType!\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\ntype AirLiquidityPoolOutputTokenStats implements AirTokenStats @entity {\n id: ID!\n liquidityPoolStatsRef: AirLiquidityPoolStats! # for reference\n token: AirToken!\n type: AirTokenUsageType!\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\ntype AirLiquidityPoolTransaction @entity {\n id: ID!\n dexPool: AirDEXPool!\n liquidityPoolStatsRef: AirLiquidityPoolStats! # for reference\n hash: String!\n inputTokenTransfers: [AirTokenTransfer!]!\n outputTokenTransfer: AirTokenTransfer!\n}\n\ntype AirTokenTransfer @entity {\n id: ID!\n token: AirToken!\n from: AirAccount!\n to: AirAccount!\n amount: BigInt!\n fee: BigInt\n}\n\ntype AirPoolFarmRewardStats implements AirEntityStats @entity {\n id: ID!\n dexPool: AirDEXPool!\n # IMP: Please add the references carefully. This can be very specific in the actual implementation\n inputTokenStats: [AirTokenStats!]\n outputTokensStats: [AirTokenStats!]\n transactions: [AirPoolFarmTransaction!]!\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\nenum FarmTransactionType {\n STAKE\n UNSTAKE\n CLAIM\n}\n\ntype AirPoolFarmTransaction @entity {\n id: ID!\n hash: String!\n type: FarmTransactionType!\n inputToken: AirToken\n outputToken: AirToken\n inputAmount: BigInt\n outputAmount: BigInt\n}\n\ntype AirDEXSwapStats implements AirEntityStats @entity {\n id: ID!\n dexPool: AirDEXPool!\n inputTokensStats: [AirSwapInputTokenStats!]!\n @derivedFrom(field: \"swapStatsRef\")\n outputTokenStats: [AirSwapOutputTokenStats!]!\n @derivedFrom(field: \"swapStatsRef\")\n transactions: [AirDEXSwapTransaction!]! @derivedFrom(field: \"swapStatsRef\")\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\ntype AirSwapInputTokenStats implements AirTokenStats @entity {\n id: ID!\n swapStatsRef: AirDEXSwapStats! # for reference\n token: AirToken!\n type: AirTokenUsageType!\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\ntype AirSwapOutputTokenStats implements AirTokenStats @entity {\n id: ID!\n swapStatsRef: AirDEXSwapStats! # for reference\n token: AirToken!\n type: AirTokenUsageType!\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\ntype AirDEXSwapTransaction @entity {\n id: ID!\n dexPool: AirDEXPool!\n swapStatsRef: AirDEXSwapStats! # for reference\n hash: String!\n inputTokenTransfer: AirTokenTransfer!\n outputTokenTransfer: AirTokenTransfer!\n}\n\nenum AirTokenDisplayType {\n IMAGE\n VIDEO\n AUDIO\n TEXT_IMAGE\n TEXT\n}\nenum AirNFTTransactionType {\n SALE\n MINT\n GIFT\n}\n\ntype AirNFTSaleStats implements AirEntityStats @entity {\n id: ID!\n token: AirToken!\n # todo: Please check if the derived from can work here.\n transactions: [AirNFTSaleTransaction!]! @derivedFrom(field: \"saleStat\")\n\n walletCount: BigInt!\n tokenCount: BigInt!\n transactionCount: BigInt! # number of transactions (not unique)\n volumeInUSD: BigDecimal! # call price oracle and get the data and +\n dailyChange: AirEntityDailyChangeStats!\n extraData: [AirExtraData!]\n}\n\ntype AirNFTSaleTransaction @entity {\n id: ID!\n hash: String!\n saleStat: AirNFTSaleStats!\n type: AirNFTTransactionType!\n to: AirAccount! #Buyer\n from: AirAccount! #Seller\n transactionToken: AirToken!\n paymentToken: AirToken\n tokenId: BigInt!\n paymentAmount: BigInt\n fees: BigInt\n tokenMetadata: AirTokenMetadata\n}\n\ntype AirMeta @entity{\n id: ID!\n daySinceEpoch: BigInt!\n blockNumber: BigInt!\n}\n"; export default schema; //# sourceMappingURL=airstack-dex-schema.graphql.d.ts.map