@@ -332,6 +332,11 @@ type DryRunFailureStatus {
332332 totalFee: U64!
333333}
334334
335+ type DryRunStorageReads {
336+ txStatuses: [DryRunTransactionExecutionStatus!]!
337+ storageReads: [StorageReadReplayEvent!]!
338+ }
339+
335340type DryRunSuccessStatus {
336341 programState: ProgramState
337342 receipts: [Receipt!]!
@@ -900,7 +905,7 @@ type PreconfirmationFailureStatus {
900905 transactionId: TransactionId!
901906 transaction: Transaction
902907 receipts: [Receipt!]
903- resolvedOutputs: [Output !]
908+ resolvedOutputs: [ResolvedOutput !]
904909}
905910
906911type PreconfirmationSuccessStatus {
@@ -910,7 +915,7 @@ type PreconfirmationSuccessStatus {
910915 transactionId: TransactionId!
911916 transaction: Transaction
912917 receipts: [Receipt!]
913- resolvedOutputs: [Output !]
918+ resolvedOutputs: [ResolvedOutput !]
914919}
915920
916921input Predicate {
@@ -1055,6 +1060,11 @@ type Query {
10551060 """
10561061 dryRun(txs: [HexString!]!, utxoValidation: Boolean, gasPrice: U64, blockHeight: U32): [DryRunTransactionExecutionStatus!]!
10571062 """
1063+ Execute a dry-run of multiple transactions using a fork of current state, no changes are committed.
1064+ Also records accesses, so the execution can be replicated locally.
1065+ """
1066+ dryRunRecordStorageReads(txs: [HexString!]!, utxoValidation: Boolean, gasPrice: U64, blockHeight: U32): DryRunStorageReads!
1067+ """
10581068 Get execution trace for an already-executed block.
10591069 """
10601070 storageReadReplay(height: U32!): [StorageReadReplayEvent!]!
@@ -1226,6 +1236,11 @@ input RequiredBalance {
12261236 changePolicy: ChangePolicy!
12271237}
12281238
1239+ type ResolvedOutput {
1240+ utxoId: UtxoId!
1241+ output: Output!
1242+ }
1243+
12291244enum ReturnType {
12301245 RETURN
12311246 RETURN_DATA
@@ -1276,6 +1291,10 @@ input SpendQueryElementInput {
12761291 The maximum number of currencies for selection.
12771292 """
12781293 max: U16
1294+ """
1295+ If true, returns available coins instead of failing when the requested amount is unavailable.
1296+ """
1297+ allowPartial: Boolean
12791298}
12801299
12811300type SqueezedOutStatus {
@@ -1329,7 +1348,11 @@ type Subscription {
13291348 """
13301349 The ID of the transaction
13311350 """
1332- id: TransactionId!
1351+ id: TransactionId!,
1352+ """
1353+ If true, accept to receive the preconfirmation status
1354+ """
1355+ includePreconfirmation: Boolean
13331356 ): TransactionStatus!
13341357 """
13351358 Submits transaction to the `TxPool` and await either success or failure.
@@ -1338,9 +1361,9 @@ type Subscription {
13381361 """
13391362 Submits the transaction to the `TxPool` and returns a stream of events.
13401363 Compared to the `submitAndAwait`, the stream also contains
1341- `SubmittedStatus` as an intermediate state.
1364+ `SubmittedStatus` and potentially preconfirmation as an intermediate state.
13421365 """
1343- submitAndAwaitStatus(tx: HexString!, estimatePredicates: Boolean): TransactionStatus!
1366+ submitAndAwaitStatus(tx: HexString!, estimatePredicates: Boolean, includePreconfirmation: Boolean ): TransactionStatus!
13441367 contractStorageSlots(contractId: ContractId!): StorageSlot!
13451368 contractStorageBalances(contractId: ContractId!): ContractBalance!
13461369}
@@ -1382,7 +1405,7 @@ type Transaction {
13821405 outputContract: ContractOutput
13831406 witnesses: [HexString!]
13841407 receiptsRoot: Bytes32
1385- status: TransactionStatus
1408+ status(includePreconfirmation: Boolean) : TransactionStatus
13861409 script: HexString
13871410 scriptData: HexString
13881411 bytecodeWitnessIndex: U16
0 commit comments