Constant QUERY

Source
pub const QUERY: &str = "query Chains {\n  chains {\n    list\n    default\n  }\n}\n\nquery ChainOutbox($chainId: ChainId!, $target: Target!) {\n  chain(chainId: $chainId) {\n    outboxes {\n      entry(key: $target) {\n        key\n        value {\n          nextHeightToSchedule\n          queue {\n            entries\n          }\n        }\n      }\n    }\n  }\n}\n\nquery ChainChannel($chainId: ChainId!, $channelFullName: ChannelFullName!) {\n  chain(chainId: $chainId) {\n    channels {\n      entry(key: $channelFullName) {\n        key\n        value {\n          subscribers\n          blockHeights {\n            entries\n          }\n        }\n      }\n    }\n  }\n}\n\nquery ChainInbox($chainId: ChainId!, $origin: Origin!) {\n  chain(chainId: $chainId) {\n    inboxes {\n      entry(key: $origin) {\n        key\n        value {\n          nextCursorToAdd {\n            height\n            index\n          }\n          nextCursorToRemove {\n            height\n            index\n          }\n          addedBundles {\n            entries {\n              height\n              timestamp\n              certificateHash\n              transactionIndex\n              messages {\n                authenticatedSigner\n                grant\n                refundGrantTo\n                kind\n                index\n                message\n              }\n            }\n          }\n          removedBundles {\n            entries {\n              height\n              timestamp\n              certificateHash\n              transactionIndex\n              messages {\n                authenticatedSigner\n                grant\n                refundGrantTo\n                kind\n                index\n                message\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\nquery Chain(\n  $chainId: ChainId!,\n  $inboxesInput: MapInput_Origin_742d451b,\n  $outboxesInput: MapInput_Target_7aac1e1c,\n  $channelsInput: MapInput_ChannelFullName_3b59bf69,\n) {\n  chain(chainId: $chainId) {\n    chainId\n    executionState {\n      system {\n        description\n        epoch\n        adminId\n        subscriptions {\n          chainId\n          name\n        }\n        ownership\n        balance\n        timestamp\n      }\n    }\n    executionStateHash\n    tipState {\n      blockHash\n      nextBlockHeight\n    }\n    manager\n    confirmedLog {\n      entries\n    }\n    receivedLog {\n      entries {\n        chainId\n        height\n      }\n    }\n    inboxes {\n      keys\n      entries(input: $inboxesInput) {\n        key\n        value {\n          nextCursorToAdd {\n            height\n            index\n          }\n          nextCursorToRemove {\n            height\n            index\n          }\n          addedBundles {\n            entries {\n              height\n              timestamp\n              certificateHash\n              transactionIndex\n              messages {\n                authenticatedSigner\n                grant\n                refundGrantTo\n                kind\n                index\n                message\n              }\n            }\n          }\n          removedBundles {\n            entries {\n              height\n              timestamp\n              certificateHash\n              transactionIndex\n              messages {\n                authenticatedSigner\n                grant\n                refundGrantTo\n                kind\n                index\n                message\n              }\n            }\n          }\n        }\n      }\n    }\n    outboxes {\n      keys\n      entries(input: $outboxesInput) {\n        key\n        value {\n          nextHeightToSchedule\n          queue {\n            entries\n          }\n        }\n      }\n    }\n    outboxCounters\n    channels {\n      keys\n      entries(input: $channelsInput) {\n        key\n        value {\n          subscribers\n          blockHeights {\n            entries\n          }\n        }\n      }\n    }\n\n  }\n}\n\nquery Applications($chainId: ChainId!) {\n  applications(chainId: $chainId) {\n    id\n    link\n    description\n  }\n}\n\nquery Block($hash: CryptoHash, $chainId: ChainId!) {\n  block(hash: $hash, chainId: $chainId) {\n    hash\n    value {\n      status\n      executedBlock {\n        block {\n          chainId\n          epoch\n          height\n          timestamp\n          authenticatedSigner\n          previousBlockHash\n          incomingBundles {\n            origin\n            bundle {\n              height\n              timestamp\n              certificateHash\n              transactionIndex\n              messages {\n                authenticatedSigner\n                grant\n                refundGrantTo\n                kind\n                index\n                message\n              }\n            }\n            action\n          }\n          operations\n        }\n        outcome {\n          messages {\n            destination\n            authenticatedSigner\n            grant\n            refundGrantTo\n            kind\n            message\n          }\n          stateHash\n          oracleResponses\n          events {\n            streamId {\n              applicationId\n              streamName\n            }\n            key\n            value\n          }\n        }\n      }\n    }\n  }\n}\n\nquery Blocks($from: CryptoHash, $chainId: ChainId!, $limit: Int) {\n  blocks(from: $from, chainId: $chainId, limit: $limit) {\n    hash\n    value {\n      status\n      executedBlock {\n        block {\n          chainId\n          epoch\n          height\n          timestamp\n          authenticatedSigner\n          previousBlockHash\n          incomingBundles {\n            origin\n            bundle {\n              height\n              timestamp\n              certificateHash\n              transactionIndex\n              messages {\n                authenticatedSigner\n                grant\n                refundGrantTo\n                kind\n                index\n                message\n              }\n            }\n            action\n          }\n          operations\n        }\n        outcome {\n          messages {\n            destination\n            authenticatedSigner\n            grant\n            refundGrantTo\n            kind\n            message\n          }\n          stateHash\n          oracleResponses\n          events {\n            streamId {\n              applicationId\n              streamName\n            }\n            key\n            value\n          }\n        }\n      }\n    }\n  }\n}\n\nsubscription Notifications($chainId: ChainId!) {\n  notifications(chainId: $chainId)\n}\n\nmutation Transfer($chainId: ChainId!, $recipient: ChainId!, $amount: Amount!) {\n  transfer(chainId: $chainId, recipient: { Account: { chain_id: $recipient } }, amount: $amount)\n}\n";