Constant fuel_core_client::SCHEMA_SDL

source ยท
pub const SCHEMA_SDL: &[u8] = b"scalar Address\n\nscalar AssetId\n\ntype Balance {\n\towner: Address!\n\tamount: U64!\n\tassetId: AssetId!\n}\n\ntype BalanceConnection {\n\t\"\"\"\n\tInformation to aid in pagination.\n\t\"\"\"\n\tpageInfo: PageInfo!\n\t\"\"\"\n\tA list of edges.\n\t\"\"\"\n\tedges: [BalanceEdge!]!\n\t\"\"\"\n\tA list of nodes.\n\t\"\"\"\n\tnodes: [Balance!]!\n}\n\n\"\"\"\nAn edge in a connection.\n\"\"\"\ntype BalanceEdge {\n\t\"\"\"\n\tA cursor for use in pagination\n\t\"\"\"\n\tcursor: String!\n\t\"\"\"\n\tThe item at the end of the edge\n\t\"\"\"\n\tnode: Balance!\n}\n\ninput BalanceFilterInput {\n\t\"\"\"\n\tFilter coins based on the `owner` field\n\t\"\"\"\n\towner: Address!\n}\n\ntype Block {\n\tversion: BlockVersion!\n\tid: BlockId!\n\theight: U32!\n\theader: Header!\n\tconsensus: Consensus!\n\ttransactions: [Transaction!]!\n}\n\ntype BlockConnection {\n\t\"\"\"\n\tInformation to aid in pagination.\n\t\"\"\"\n\tpageInfo: PageInfo!\n\t\"\"\"\n\tA list of edges.\n\t\"\"\"\n\tedges: [BlockEdge!]!\n\t\"\"\"\n\tA list of nodes.\n\t\"\"\"\n\tnodes: [Block!]!\n}\n\n\"\"\"\nAn edge in a connection.\n\"\"\"\ntype BlockEdge {\n\t\"\"\"\n\tA cursor for use in pagination\n\t\"\"\"\n\tcursor: String!\n\t\"\"\"\n\tThe item at the end of the edge\n\t\"\"\"\n\tnode: Block!\n}\n\nscalar BlockId\n\nenum BlockVersion {\n\tV1\n}\n\n\n\"\"\"\nBreakpoint, defined as a tuple of contract ID and relative PC offset inside it\n\"\"\"\ninput Breakpoint {\n\tcontract: ContractId!\n\tpc: U64!\n}\n\nscalar Bytes32\n\ntype ChainInfo {\n\tname: String!\n\tlatestBlock: Block!\n\tdaHeight: U64!\n\tconsensusParameters: ConsensusParameters!\n\tgasCosts: GasCosts!\n}\n\ntype ChangeOutput {\n\tto: Address!\n\tamount: U64!\n\tassetId: AssetId!\n}\n\ntype Coin {\n\tutxoId: UtxoId!\n\towner: Address!\n\tamount: U64!\n\tassetId: AssetId!\n\t\"\"\"\n\tTxPointer - the height of the block this coin was created in\n\t\"\"\"\n\tblockCreated: U32!\n\t\"\"\"\n\tTxPointer - the index of the transaction that created this coin\n\t\"\"\"\n\ttxCreatedIdx: U16!\n}\n\ntype CoinConnection {\n\t\"\"\"\n\tInformation to aid in pagination.\n\t\"\"\"\n\tpageInfo: PageInfo!\n\t\"\"\"\n\tA list of edges.\n\t\"\"\"\n\tedges: [CoinEdge!]!\n\t\"\"\"\n\tA list of nodes.\n\t\"\"\"\n\tnodes: [Coin!]!\n}\n\n\"\"\"\nAn edge in a connection.\n\"\"\"\ntype CoinEdge {\n\t\"\"\"\n\tA cursor for use in pagination\n\t\"\"\"\n\tcursor: String!\n\t\"\"\"\n\tThe item at the end of the edge\n\t\"\"\"\n\tnode: Coin!\n}\n\ninput CoinFilterInput {\n\t\"\"\"\n\tReturns coins owned by the `owner`.\n\t\"\"\"\n\towner: Address!\n\t\"\"\"\n\tReturns coins only with `asset_id`.\n\t\"\"\"\n\tassetId: AssetId\n}\n\ntype CoinOutput {\n\tto: Address!\n\tamount: U64!\n\tassetId: AssetId!\n}\n\n\"\"\"\nThe schema analog of the [`coins::CoinType`].\n\"\"\"\nunion CoinType = Coin | MessageCoin\n\nunion Consensus = Genesis | PoAConsensus\n\ntype ConsensusParameters {\n\tversion: ConsensusParametersVersion!\n\ttxParams: TxParameters!\n\tpredicateParams: PredicateParameters!\n\tscriptParams: ScriptParameters!\n\tcontractParams: ContractParameters!\n\tfeeParams: FeeParameters!\n\tbaseAssetId: AssetId!\n\tblockGasLimit: U64!\n\tchainId: U64!\n\tgasCosts: GasCosts!\n\tprivilegedAddress: Address!\n}\n\ntype ConsensusParametersPurpose {\n\twitnessIndex: U16!\n\tchecksum: Bytes32!\n}\n\nenum ConsensusParametersVersion {\n\tV1\n}\n\ntype Contract {\n\tid: ContractId!\n\tbytecode: HexString!\n\tsalt: Salt!\n}\n\ntype ContractBalance {\n\tcontract: ContractId!\n\tamount: U64!\n\tassetId: AssetId!\n}\n\ntype ContractBalanceConnection {\n\t\"\"\"\n\tInformation to aid in pagination.\n\t\"\"\"\n\tpageInfo: PageInfo!\n\t\"\"\"\n\tA list of edges.\n\t\"\"\"\n\tedges: [ContractBalanceEdge!]!\n\t\"\"\"\n\tA list of nodes.\n\t\"\"\"\n\tnodes: [ContractBalance!]!\n}\n\n\"\"\"\nAn edge in a connection.\n\"\"\"\ntype ContractBalanceEdge {\n\t\"\"\"\n\tA cursor for use in pagination\n\t\"\"\"\n\tcursor: String!\n\t\"\"\"\n\tThe item at the end of the edge\n\t\"\"\"\n\tnode: ContractBalance!\n}\n\ninput ContractBalanceFilterInput {\n\t\"\"\"\n\tFilter assets based on the `contractId` field\n\t\"\"\"\n\tcontract: ContractId!\n}\n\ntype ContractCreated {\n\tcontract: ContractId!\n\tstateRoot: Bytes32!\n}\n\nscalar ContractId\n\ntype ContractOutput {\n\tinputIndex: U16!\n\tbalanceRoot: Bytes32!\n\tstateRoot: Bytes32!\n}\n\ntype ContractParameters {\n\tversion: ContractParametersVersion!\n\tcontractMaxSize: U64!\n\tmaxStorageSlots: U64!\n}\n\nenum ContractParametersVersion {\n\tV1\n}\n\nunion DependentCost = LightOperation | HeavyOperation\n\ntype DryRunFailureStatus {\n\tprogramState: ProgramState\n\treason: String!\n\treceipts: [Receipt!]!\n\ttotalGas: U64!\n\ttotalFee: U64!\n}\n\ntype DryRunSuccessStatus {\n\tprogramState: ProgramState\n\treceipts: [Receipt!]!\n\ttotalGas: U64!\n\ttotalFee: U64!\n}\n\ntype DryRunTransactionExecutionStatus {\n\tid: TransactionId!\n\tstatus: DryRunTransactionStatus!\n\treceipts: [Receipt!]!\n}\n\nunion DryRunTransactionStatus = DryRunSuccessStatus | DryRunFailureStatus\n\ntype EstimateGasPrice {\n\tgasPrice: U64!\n}\n\ninput ExcludeInput {\n\t\"\"\"\n\tUtxos to exclude from the selection.\n\t\"\"\"\n\tutxos: [UtxoId!]!\n\t\"\"\"\n\tMessages to exclude from the selection.\n\t\"\"\"\n\tmessages: [Nonce!]!\n}\n\ntype FailureStatus {\n\ttransactionId: TransactionId!\n\tblock: Block!\n\ttime: Tai64Timestamp!\n\treason: String!\n\tprogramState: ProgramState\n\treceipts: [Receipt!]!\n\ttotalGas: U64!\n\ttotalFee: U64!\n}\n\ntype FeeParameters {\n\tversion: FeeParametersVersion!\n\tgasPriceFactor: U64!\n\tgasPerByte: U64!\n}\n\nenum FeeParametersVersion {\n\tV1\n}\n\n\ntype GasCosts {\n\tversion: GasCostsVersion!\n\tadd: U64!\n\taddi: U64!\n\taloc: U64!\n\tand: U64!\n\tandi: U64!\n\tbal: U64!\n\tbhei: U64!\n\tbhsh: U64!\n\tburn: U64!\n\tcb: U64!\n\tcfei: U64!\n\tcfsi: U64!\n\tdiv: U64!\n\tdivi: U64!\n\tecr1: U64!\n\teck1: U64!\n\ted19: U64!\n\teq: U64!\n\texp: U64!\n\texpi: U64!\n\tflag: U64!\n\tgm: U64!\n\tgt: U64!\n\tgtf: U64!\n\tji: U64!\n\tjmp: U64!\n\tjne: U64!\n\tjnei: U64!\n\tjnzi: U64!\n\tjmpf: U64!\n\tjmpb: U64!\n\tjnzf: U64!\n\tjnzb: U64!\n\tjnef: U64!\n\tjneb: U64!\n\tlb: U64!\n\tlog: U64!\n\tlt: U64!\n\tlw: U64!\n\tmint: U64!\n\tmlog: U64!\n\tmodOp: U64!\n\tmodi: U64!\n\tmoveOp: U64!\n\tmovi: U64!\n\tmroo: U64!\n\tmul: U64!\n\tmuli: U64!\n\tmldv: U64!\n\tnoop: U64!\n\tnot: U64!\n\tor: U64!\n\tori: U64!\n\tpoph: U64!\n\tpopl: U64!\n\tpshh: U64!\n\tpshl: U64!\n\tret: U64!\n\trvrt: U64!\n\tsb: U64!\n\tsll: U64!\n\tslli: U64!\n\tsrl: U64!\n\tsrli: U64!\n\tsrw: U64!\n\tsub: U64!\n\tsubi: U64!\n\tsw: U64!\n\tsww: U64!\n\ttime: U64!\n\ttr: U64!\n\ttro: U64!\n\twdcm: U64!\n\twqcm: U64!\n\twdop: U64!\n\twqop: U64!\n\twdml: U64!\n\twqml: U64!\n\twddv: U64!\n\twqdv: U64!\n\twdmd: U64!\n\twqmd: U64!\n\twdam: U64!\n\twqam: U64!\n\twdmm: U64!\n\twqmm: U64!\n\txor: U64!\n\txori: U64!\n\talocDependentCost: DependentCost!\n\tcall: DependentCost!\n\tccp: DependentCost!\n\tcroo: DependentCost!\n\tcsiz: DependentCost!\n\tk256: DependentCost!\n\tldc: DependentCost!\n\tlogd: DependentCost!\n\tmcl: DependentCost!\n\tmcli: DependentCost!\n\tmcp: DependentCost!\n\tmcpi: DependentCost!\n\tmeq: DependentCost!\n\tretd: DependentCost!\n\ts256: DependentCost!\n\tscwq: DependentCost!\n\tsmo: DependentCost!\n\tsrwq: DependentCost!\n\tswwq: DependentCost!\n\tcontractRoot: DependentCost!\n\tstateRoot: DependentCost!\n\tvmInitialization: DependentCost!\n\tnewStoragePerByte: U64!\n}\n\nenum GasCostsVersion {\n\tV1\n}\n\ntype Genesis {\n\t\"\"\"\n\tThe chain configs define what consensus type to use, what settlement layer to use,\n\trules of block validity, etc.\n\t\"\"\"\n\tchainConfigHash: Bytes32!\n\t\"\"\"\n\tThe Binary Merkle Tree root of all genesis coins.\n\t\"\"\"\n\tcoinsRoot: Bytes32!\n\t\"\"\"\n\tThe Binary Merkle Tree root of state, balances, contracts code hash of each contract.\n\t\"\"\"\n\tcontractsRoot: Bytes32!\n\t\"\"\"\n\tThe Binary Merkle Tree root of all genesis messages.\n\t\"\"\"\n\tmessagesRoot: Bytes32!\n\t\"\"\"\n\tThe Binary Merkle Tree root of all processed transaction ids.\n\t\"\"\"\n\ttransactionsRoot: Bytes32!\n}\n\ntype Header {\n\t\"\"\"\n\tVersion of the header\n\t\"\"\"\n\tversion: HeaderVersion!\n\t\"\"\"\n\tHash of the header\n\t\"\"\"\n\tid: BlockId!\n\t\"\"\"\n\tThe layer 1 height of messages and events to include since the last layer 1 block number.\n\t\"\"\"\n\tdaHeight: U64!\n\t\"\"\"\n\tThe version of the consensus parameters used to create this block.\n\t\"\"\"\n\tconsensusParametersVersion: U32!\n\t\"\"\"\n\tThe version of the state transition bytecode used to create this block.\n\t\"\"\"\n\tstateTransitionBytecodeVersion: U32!\n\t\"\"\"\n\tNumber of transactions in this block.\n\t\"\"\"\n\ttransactionsCount: U16!\n\t\"\"\"\n\tNumber of message receipts in this block.\n\t\"\"\"\n\tmessageReceiptCount: U32!\n\t\"\"\"\n\tMerkle root of transactions.\n\t\"\"\"\n\ttransactionsRoot: Bytes32!\n\t\"\"\"\n\tMerkle root of message receipts in this block.\n\t\"\"\"\n\tmessageOutboxRoot: Bytes32!\n\t\"\"\"\n\tMerkle root of inbox events in this block.\n\t\"\"\"\n\teventInboxRoot: Bytes32!\n\t\"\"\"\n\tFuel block height.\n\t\"\"\"\n\theight: U32!\n\t\"\"\"\n\tMerkle root of all previous block header hashes.\n\t\"\"\"\n\tprevRoot: Bytes32!\n\t\"\"\"\n\tThe block producer time.\n\t\"\"\"\n\ttime: Tai64Timestamp!\n\t\"\"\"\n\tHash of the application header.\n\t\"\"\"\n\tapplicationHash: Bytes32!\n}\n\nenum HeaderVersion {\n\tV1\n}\n\ntype HeavyOperation {\n\tbase: U64!\n\tgasPerUnit: U64!\n}\n\nscalar HexString\n\n\nunion Input = InputCoin | InputContract | InputMessage\n\ntype InputCoin {\n\tutxoId: UtxoId!\n\towner: Address!\n\tamount: U64!\n\tassetId: AssetId!\n\ttxPointer: TxPointer!\n\twitnessIndex: Int!\n\tpredicateGasUsed: U64!\n\tpredicate: HexString!\n\tpredicateData: HexString!\n}\n\ntype InputContract {\n\tutxoId: UtxoId!\n\tbalanceRoot: Bytes32!\n\tstateRoot: Bytes32!\n\ttxPointer: TxPointer!\n\tcontractId: ContractId!\n}\n\ntype InputMessage {\n\tsender: Address!\n\trecipient: Address!\n\tamount: U64!\n\tnonce: Nonce!\n\twitnessIndex: U16!\n\tpredicateGasUsed: U64!\n\tdata: HexString!\n\tpredicate: HexString!\n\tpredicateData: HexString!\n}\n\n\ntype LatestGasPrice {\n\tgasPrice: U64!\n\tblockHeight: U32!\n}\n\ntype LightOperation {\n\tbase: U64!\n\tunitsPerGas: U64!\n}\n\ntype MerkleProof {\n\tproofSet: [Bytes32!]!\n\tproofIndex: U64!\n}\n\ntype Message {\n\tamount: U64!\n\tsender: Address!\n\trecipient: Address!\n\tnonce: Nonce!\n\tdata: HexString!\n\tdaHeight: U64!\n}\n\ntype MessageCoin {\n\tsender: Address!\n\trecipient: Address!\n\tnonce: Nonce!\n\tamount: U64!\n\tassetId: AssetId!\n\tdaHeight: U64!\n}\n\ntype MessageConnection {\n\t\"\"\"\n\tInformation to aid in pagination.\n\t\"\"\"\n\tpageInfo: PageInfo!\n\t\"\"\"\n\tA list of edges.\n\t\"\"\"\n\tedges: [MessageEdge!]!\n\t\"\"\"\n\tA list of nodes.\n\t\"\"\"\n\tnodes: [Message!]!\n}\n\n\"\"\"\nAn edge in a connection.\n\"\"\"\ntype MessageEdge {\n\t\"\"\"\n\tA cursor for use in pagination\n\t\"\"\"\n\tcursor: String!\n\t\"\"\"\n\tThe item at the end of the edge\n\t\"\"\"\n\tnode: Message!\n}\n\ntype MessageProof {\n\tmessageProof: MerkleProof!\n\tblockProof: MerkleProof!\n\tmessageBlockHeader: Header!\n\tcommitBlockHeader: Header!\n\tsender: Address!\n\trecipient: Address!\n\tnonce: Nonce!\n\tamount: U64!\n\tdata: HexString!\n}\n\nenum MessageState {\n\tUNSPENT\n\tSPENT\n\tNOT_FOUND\n}\n\ntype MessageStatus {\n\tstate: MessageState!\n}\n\ntype Mutation {\n\t\"\"\"\n\tInitialize a new debugger session, returning its ID.\n\tA new VM instance is spawned for each session.\n\tThe session is run in a separate database transaction,\n\ton top of the most recent node state.\n\t\"\"\"\n\tstartSession: ID!\n\t\"\"\"\n\tEnd debugger session.\n\t\"\"\"\n\tendSession(id: ID!): Boolean!\n\t\"\"\"\n\tReset the VM instance to the initial state.\n\t\"\"\"\n\treset(id: ID!): Boolean!\n\t\"\"\"\n\tExecute a single fuel-asm instruction.\n\t\"\"\"\n\texecute(id: ID!, op: String!): Boolean!\n\t\"\"\"\n\tSet single-stepping mode for the VM instance.\n\t\"\"\"\n\tsetSingleStepping(id: ID!, enable: Boolean!): Boolean!\n\t\"\"\"\n\tSet a breakpoint for a VM instance.\n\t\"\"\"\n\tsetBreakpoint(id: ID!, breakpoint: Breakpoint!): Boolean!\n\t\"\"\"\n\tRun a single transaction in given session until it\n\thits a breakpoint or completes.\n\t\"\"\"\n\tstartTx(id: ID!, txJson: String!): RunResult!\n\t\"\"\"\n\tResume execution of the VM instance after a breakpoint.\n\tRuns until the next breakpoint or until the transaction completes.\n\t\"\"\"\n\tcontinueTx(id: ID!): RunResult!\n\t\"\"\"\n\tExecute a dry-run of multiple transactions using a fork of current state, no changes are committed.\n\t\"\"\"\n\tdryRun(txs: [HexString!]!, utxoValidation: Boolean, gasPrice: U64): [DryRunTransactionExecutionStatus!]!\n\t\"\"\"\n\tSubmits transaction to the `TxPool`.\n\t\n\tReturns submitted transaction if the transaction is included in the `TxPool` without problems.\n\t\"\"\"\n\tsubmit(tx: HexString!): Transaction!\n\t\"\"\"\n\tSequentially produces `blocks_to_produce` blocks. The first block starts with\n\t`start_timestamp`. If the block production in the [`crate::service::Config`] is\n\t`Trigger::Interval { block_time }`, produces blocks with `block_time ` intervals between\n\tthem. The `start_timestamp` is the timestamp in seconds.\n\t\"\"\"\n\tproduceBlocks(startTimestamp: Tai64Timestamp, blocksToProduce: U32!): U32!\n}\n\ntype NodeInfo {\n\tutxoValidation: Boolean!\n\tvmBacktrace: Boolean!\n\tmaxTx: U64!\n\tmaxDepth: U64!\n\tnodeVersion: String!\n\tpeers: [PeerInfo!]!\n}\n\nscalar Nonce\n\nunion Output = CoinOutput | ContractOutput | ChangeOutput | VariableOutput | ContractCreated\n\n\"\"\"\nA separate `Breakpoint` type to be used as an output, as a single\ntype cannot act as both input and output type in async-graphql\n\"\"\"\ntype OutputBreakpoint {\n\tcontract: ContractId!\n\tpc: U64!\n}\n\n\"\"\"\nInformation about pagination in a connection\n\"\"\"\ntype PageInfo {\n\t\"\"\"\n\tWhen paginating backwards, are there more items?\n\t\"\"\"\n\thasPreviousPage: Boolean!\n\t\"\"\"\n\tWhen paginating forwards, are there more items?\n\t\"\"\"\n\thasNextPage: Boolean!\n\t\"\"\"\n\tWhen paginating backwards, the cursor to continue.\n\t\"\"\"\n\tstartCursor: String\n\t\"\"\"\n\tWhen paginating forwards, the cursor to continue.\n\t\"\"\"\n\tendCursor: String\n}\n\ntype PeerInfo {\n\t\"\"\"\n\tThe libp2p peer id\n\t\"\"\"\n\tid: String!\n\t\"\"\"\n\tThe advertised multi-addrs that can be used to connect to this peer\n\t\"\"\"\n\taddresses: [String!]!\n\t\"\"\"\n\tThe self-reported version of the client the peer is using\n\t\"\"\"\n\tclientVersion: String\n\t\"\"\"\n\tThe last reported height of the peer\n\t\"\"\"\n\tblockHeight: U32\n\t\"\"\"\n\tThe last heartbeat from this peer in unix epoch time ms\n\t\"\"\"\n\tlastHeartbeatMs: U64!\n\t\"\"\"\n\tThe internal fuel p2p reputation of this peer\n\t\"\"\"\n\tappScore: Float!\n}\n\ntype PoAConsensus {\n\t\"\"\"\n\tGets the signature of the block produced by `PoA` consensus.\n\t\"\"\"\n\tsignature: Signature!\n}\n\ntype Policies {\n\ttip: U64\n\twitnessLimit: U64\n\tmaturity: U32\n\tmaxFee: U64\n}\n\ntype PredicateParameters {\n\tversion: PredicateParametersVersion!\n\tmaxPredicateLength: U64!\n\tmaxPredicateDataLength: U64!\n\tmaxGasPerPredicate: U64!\n\tmaxMessageDataLength: U64!\n}\n\nenum PredicateParametersVersion {\n\tV1\n}\n\ntype ProgramState {\n\treturnType: ReturnType!\n\tdata: HexString!\n}\n\ntype Query {\n\t\"\"\"\n\tRead register value by index.\n\t\"\"\"\n\tregister(id: ID!, register: U32!): U64!\n\t\"\"\"\n\tRead read a range of memory bytes.\n\t\"\"\"\n\tmemory(id: ID!, start: U32!, size: U32!): String!\n\tbalance(owner: Address!, assetId: AssetId!): Balance!\n\tbalances(filter: BalanceFilterInput!, first: Int, after: String, last: Int, before: String): BalanceConnection!\n\tblock(id: BlockId, height: U32): Block\n\tblocks(first: Int, after: String, last: Int, before: String): BlockConnection!\n\tchain: ChainInfo!\n\ttransaction(id: TransactionId!): Transaction\n\ttransactions(first: Int, after: String, last: Int, before: String): TransactionConnection!\n\ttransactionsByOwner(owner: Address!, first: Int, after: String, last: Int, before: String): TransactionConnection!\n\t\"\"\"\n\tEstimate the predicate gas for the provided transaction\n\t\"\"\"\n\testimatePredicates(tx: HexString!): Transaction!\n\t\"\"\"\n\tReturns all possible receipts for test purposes.\n\t\"\"\"\n\tallReceipts: [Receipt!]!\n\t\"\"\"\n\tReturns true when the GraphQL API is serving requests.\n\t\"\"\"\n\thealth: Boolean!\n\t\"\"\"\n\tGets the coin by `utxo_id`.\n\t\"\"\"\n\tcoin(utxoId: UtxoId!): Coin\n\t\"\"\"\n\tGets all unspent coins of some `owner` maybe filtered with by `asset_id` per page.\n\t\"\"\"\n\tcoins(filter: CoinFilterInput!, first: Int, after: String, last: Int, before: String): CoinConnection!\n\t\"\"\"\n\tFor each `query_per_asset`, get some spendable coins(of asset specified by the query) owned by\n\t`owner` that add up at least the query amount. The returned coins can be spent.\n\tThe number of coins is optimized to prevent dust accumulation.\n\t\n\tThe query supports excluding and maximum the number of coins.\n\t\n\tReturns:\n\tThe list of spendable coins per asset from the query. The length of the result is\n\tthe same as the length of `query_per_asset`. The ordering of assets and `query_per_asset`\n\tis the same.\n\t\"\"\"\n\tcoinsToSpend(owner: Address!, queryPerAsset: [SpendQueryElementInput!]!, excludedIds: ExcludeInput): [[CoinType!]!]!\n\tcontract(id: ContractId!): Contract\n\tcontractBalance(contract: ContractId!, asset: AssetId!): ContractBalance!\n\tcontractBalances(filter: ContractBalanceFilterInput!, first: Int, after: String, last: Int, before: String): ContractBalanceConnection!\n\tnodeInfo: NodeInfo!\n\tlatestGasPrice: LatestGasPrice!\n\testimateGasPrice(blockHorizon: U32): EstimateGasPrice!\n\tmessage(nonce: Nonce!): Message\n\tmessages(owner: Address, first: Int, after: String, last: Int, before: String): MessageConnection!\n\tmessageProof(transactionId: TransactionId!, nonce: Nonce!, commitBlockId: BlockId, commitBlockHeight: U32): MessageProof\n\tmessageStatus(nonce: Nonce!): MessageStatus!\n\trelayedTransactionStatus(id: RelayedTransactionId!): RelayedTransactionStatus\n}\n\ntype Receipt {\n\tid: ContractId\n\tpc: U64\n\tis: U64\n\tto: ContractId\n\ttoAddress: Address\n\tamount: U64\n\tassetId: AssetId\n\tgas: U64\n\tparam1: U64\n\tparam2: U64\n\tval: U64\n\tptr: U64\n\tdigest: Bytes32\n\treason: U64\n\tra: U64\n\trb: U64\n\trc: U64\n\trd: U64\n\tlen: U64\n\treceiptType: ReceiptType!\n\tresult: U64\n\tgasUsed: U64\n\tdata: HexString\n\tsender: Address\n\trecipient: Address\n\tnonce: Nonce\n\t\"\"\"\n\tSet in the case of a Panic receipt to indicate a missing contract input id\n\t\"\"\"\n\tcontractId: ContractId\n\tsubId: Bytes32\n}\n\nenum ReceiptType {\n\tCALL\n\tRETURN\n\tRETURN_DATA\n\tPANIC\n\tREVERT\n\tLOG\n\tLOG_DATA\n\tTRANSFER\n\tTRANSFER_OUT\n\tSCRIPT_RESULT\n\tMESSAGE_OUT\n\tMINT\n\tBURN\n}\n\ntype RelayedTransactionFailed {\n\tblockHeight: U32!\n\tfailure: String!\n}\n\nscalar RelayedTransactionId\n\nunion RelayedTransactionStatus = RelayedTransactionFailed\n\nenum ReturnType {\n\tRETURN\n\tRETURN_DATA\n\tREVERT\n}\n\ntype RunResult {\n\tstate: RunState!\n\tbreakpoint: OutputBreakpoint\n\tjsonReceipts: [String!]!\n}\n\nenum RunState {\n\tCOMPLETED\n\tBREAKPOINT\n}\n\nscalar Salt\n\ntype ScriptParameters {\n\tversion: ScriptParametersVersion!\n\tmaxScriptLength: U64!\n\tmaxScriptDataLength: U64!\n}\n\nenum ScriptParametersVersion {\n\tV1\n}\n\nscalar Signature\n\ninput SpendQueryElementInput {\n\t\"\"\"\n\tIdentifier of the asset to spend.\n\t\"\"\"\n\tassetId: AssetId!\n\t\"\"\"\n\tTarget amount for the query.\n\t\"\"\"\n\tamount: U64!\n\t\"\"\"\n\tThe maximum number of currencies for selection.\n\t\"\"\"\n\tmax: U32\n}\n\ntype SqueezedOutStatus {\n\treason: String!\n}\n\ntype StateTransitionPurpose {\n\troot: Bytes32!\n}\n\n\ntype SubmittedStatus {\n\ttime: Tai64Timestamp!\n}\n\ntype Subscription {\n\t\"\"\"\n\tReturns a stream of status updates for the given transaction id.\n\tIf the current status is [`TransactionStatus::Success`], [`TransactionStatus::SqueezedOut`]\n\tor [`TransactionStatus::Failed`] the stream will return that and end immediately.\n\tIf the current status is [`TransactionStatus::Submitted`] this will be returned\n\tand the stream will wait for a future update.\n\t\n\tThis stream will wait forever so it\'s advised to use within a timeout.\n\t\n\tIt is possible for the stream to miss an update if it is polled slower\n\tthen the updates arrive. In such a case the stream will close without\n\ta status. If this occurs the stream can simply be restarted to return\n\tthe latest status.\n\t\"\"\"\n\tstatusChange(id: TransactionId!): TransactionStatus!\n\t\"\"\"\n\tSubmits transaction to the `TxPool` and await either confirmation or failure.\n\t\"\"\"\n\tsubmitAndAwait(tx: HexString!): TransactionStatus!\n}\n\ntype SuccessStatus {\n\ttransactionId: TransactionId!\n\tblock: Block!\n\ttime: Tai64Timestamp!\n\tprogramState: ProgramState\n\treceipts: [Receipt!]!\n\ttotalGas: U64!\n\ttotalFee: U64!\n}\n\nscalar Tai64Timestamp\n\ntype Transaction {\n\tid: TransactionId!\n\tinputAssetIds: [AssetId!]\n\tinputContracts: [ContractId!]\n\tinputContract: InputContract\n\tpolicies: Policies\n\tscriptGasLimit: U64\n\tmaturity: U32\n\tmintAmount: U64\n\tmintAssetId: AssetId\n\tmintGasPrice: U64\n\ttxPointer: TxPointer\n\tisScript: Boolean!\n\tisCreate: Boolean!\n\tisMint: Boolean!\n\tisUpgrade: Boolean!\n\tisUpload: Boolean!\n\tinputs: [Input!]\n\toutputs: [Output!]!\n\toutputContract: ContractOutput\n\twitnesses: [HexString!]\n\treceiptsRoot: Bytes32\n\tstatus: TransactionStatus\n\tscript: HexString\n\tscriptData: HexString\n\tbytecodeWitnessIndex: U16\n\tsalt: Salt\n\tstorageSlots: [HexString!]\n\tbytecodeRoot: Bytes32\n\tsubsectionIndex: U16\n\tsubsectionsNumber: U16\n\tproofSet: [Bytes32!]\n\tupgradePurpose: UpgradePurpose\n\t\"\"\"\n\tReturn the transaction bytes using canonical encoding\n\t\"\"\"\n\trawPayload: HexString!\n}\n\ntype TransactionConnection {\n\t\"\"\"\n\tInformation to aid in pagination.\n\t\"\"\"\n\tpageInfo: PageInfo!\n\t\"\"\"\n\tA list of edges.\n\t\"\"\"\n\tedges: [TransactionEdge!]!\n\t\"\"\"\n\tA list of nodes.\n\t\"\"\"\n\tnodes: [Transaction!]!\n}\n\n\"\"\"\nAn edge in a connection.\n\"\"\"\ntype TransactionEdge {\n\t\"\"\"\n\tA cursor for use in pagination\n\t\"\"\"\n\tcursor: String!\n\t\"\"\"\n\tThe item at the end of the edge\n\t\"\"\"\n\tnode: Transaction!\n}\n\nscalar TransactionId\n\nunion TransactionStatus = SubmittedStatus | SuccessStatus | SqueezedOutStatus | FailureStatus\n\ntype TxParameters {\n\tversion: TxParametersVersion!\n\tmaxInputs: U16!\n\tmaxOutputs: U16!\n\tmaxWitnesses: U32!\n\tmaxGasPerTx: U64!\n\tmaxSize: U64!\n\tmaxBytecodeSubsections: U16!\n}\n\nenum TxParametersVersion {\n\tV1\n}\n\nscalar TxPointer\n\nscalar U16\n\nscalar U32\n\nscalar U64\n\nunion UpgradePurpose = ConsensusParametersPurpose | StateTransitionPurpose\n\nscalar UtxoId\n\ntype VariableOutput {\n\tto: Address!\n\tamount: U64!\n\tassetId: AssetId!\n}\n\nschema {\n\tquery: Query\n\tmutation: Mutation\n\tsubscription: Subscription\n}\n";
Expand description

The GraphQL schema used by the library.