Skip to content

Commit 8d80d7b

Browse files
committed
Change from tracing to storage read replay recording
1 parent f76c96f commit 8d80d7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+514
-967
lines changed

Cargo.lock

Lines changed: 48 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ fuel-core-xtask = { version = "0.0.0", path = "./xtask" }
8787
fuel-gas-price-algorithm = { version = "0.40.0", path = "crates/fuel-gas-price-algorithm" }
8888

8989
# Fuel dependencies
90-
fuel-vm-private = { path = "../fuel-vm/fuel-vm", package = "fuel-vm", default-features = false }
91-
# fuel-vm-private = { git = "https://github.com/FuelLabs/fuel-vm", branch = "dento/execution-trace", package = "fuel-vm", default-features = false }
92-
# fuel-vm-private = { version = "0.58.2", package = "fuel-vm", default-features = false }
90+
fuel-vm-private = { version = "0.58.2", package = "fuel-vm", default-features = false }
9391

9492
# Common dependencies
9593
anyhow = "1.0"

crates/client/assets/schema.sdl

Lines changed: 7 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ type Mutation {
736736
"""
737737
Get execution trace for an already-executed transaction.
738738
"""
739-
executionTraceBlock(height: U32!, trigger: TraceTrigger!): [TraceTransactionExecutionStatus!]!
739+
storageReadReplay(height: U32!): [[StorageReadReplayEvent!]!]!
740740
"""
741741
Submits transaction to the `TxPool`.
742742

@@ -1122,6 +1122,12 @@ type StateTransitionPurpose {
11221122
root: Bytes32!
11231123
}
11241124

1125+
type StorageReadReplayEvent {
1126+
column: String!
1127+
key: HexString!
1128+
value: HexString
1129+
}
1130+
11251131

11261132
type SubmittedStatus {
11271133
time: Tai64Timestamp!
@@ -1174,71 +1180,6 @@ type SuccessStatus {
11741180

11751181
scalar Tai64Timestamp
11761182

1177-
type TraceFailureStatus {
1178-
programState: ProgramState
1179-
reason: String!
1180-
receipts: [Receipt!]!
1181-
executionTrace: [TraceFrame!]!
1182-
totalGas: U64!
1183-
totalFee: U64!
1184-
}
1185-
1186-
type TraceFrame {
1187-
"""
1188-
Register values
1189-
"""
1190-
registers: [U64!]!
1191-
"""
1192-
Changes to memory `(address, bytes)` that occurred since the last frame
1193-
"""
1194-
memoryDiff: [TraceFrameMemoryPatch!]!
1195-
"""
1196-
How many of the original receipts have been produced by this point
1197-
"""
1198-
receiptCount: Int!
1199-
}
1200-
1201-
type TraceFrameMemoryPatch {
1202-
"""
1203-
Start address
1204-
"""
1205-
start: Int!
1206-
"""
1207-
Bytes of data
1208-
"""
1209-
bytes: HexString!
1210-
}
1211-
1212-
type TraceSuccessStatus {
1213-
programState: ProgramState
1214-
receipts: [Receipt!]!
1215-
executionTrace: [TraceFrame!]!
1216-
totalGas: U64!
1217-
totalFee: U64!
1218-
}
1219-
1220-
type TraceTransactionExecutionStatus {
1221-
id: TransactionId!
1222-
status: TraceTransactionStatus!
1223-
receipts: [Receipt!]!
1224-
}
1225-
1226-
union TraceTransactionStatus = TraceSuccessStatus | TraceFailureStatus
1227-
1228-
"""
1229-
One of the films in the Star Wars Trilogy
1230-
"""
1231-
enum TraceTrigger {
1232-
"""
1233-
After each instruction
1234-
"""
1235-
ON_INSTRUCTION
1236-
"""
1237-
After an instruction has created a receipt
1238-
"""
1239-
ON_RECEIPT
1240-
}
1241-
12421183
type Transaction {
12431184
id: TransactionId!
12441185
inputAssetIds: [AssetId!]

0 commit comments

Comments
 (0)