Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changes/added/3186.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add fields to transaction statuses for better parity between preconfirmation and normal statuses
4 changes: 4 additions & 0 deletions crates/client/assets/schema.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ type FailureStatus {
receipts: [Receipt!]!
totalGas: U64!
totalFee: U64!
resolvedOutputs: [ResolvedOutput!]
}

type FeeParameters {
Expand Down Expand Up @@ -900,6 +901,7 @@ type Policies {

type PreconfirmationFailureStatus {
reason: String!
time: Tai64Timestamp!
txPointer: TxPointer!
totalGas: U64!
totalFee: U64!
Expand All @@ -911,6 +913,7 @@ type PreconfirmationFailureStatus {

type PreconfirmationSuccessStatus {
txPointer: TxPointer!
time: Tai64Timestamp!
totalGas: U64!
totalFee: U64!
transactionId: TransactionId!
Expand Down Expand Up @@ -1382,6 +1385,7 @@ type SuccessStatus {
receipts: [Receipt!]!
totalGas: U64!
totalFee: U64!
resolvedOutputs: [ResolvedOutput!]
}

scalar Tai64Timestamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ query TransactionQuery($id: TransactionId!) {
time
}
... on SuccessStatus {
transactionId
blockHeight
time
programState {
Expand Down Expand Up @@ -49,9 +50,40 @@ query TransactionQuery($id: TransactionId!) {
}
totalGas
totalFee
resolvedOutputs {
utxoId
output {
__typename
... on CoinOutput {
to
amount
assetId
}
... on ContractOutput {
inputIndex
balanceRoot
stateRoot
}
... on ChangeOutput {
to
amount
assetId
}
... on VariableOutput {
to
amount
assetId
}
... on ContractCreated {
contract
stateRoot
}
}
}
}
... on PreconfirmationSuccessStatus {
txPointer
time
transactionId
totalFee
totalGas
Expand Down Expand Up @@ -120,6 +152,7 @@ query TransactionQuery($id: TransactionId!) {
reason
}
... on FailureStatus {
transactionId
blockHeight
time
reason
Expand Down Expand Up @@ -159,9 +192,40 @@ query TransactionQuery($id: TransactionId!) {
}
totalGas
totalFee
resolvedOutputs {
utxoId
output {
__typename
... on CoinOutput {
to
amount
assetId
}
... on ContractOutput {
inputIndex
balanceRoot
stateRoot
}
... on ChangeOutput {
to
amount
assetId
}
... on VariableOutput {
to
amount
assetId
}
... on ContractCreated {
contract
stateRoot
}
}
}
}
... on PreconfirmationFailureStatus {
txPointer
time
transactionId
totalFee
totalGas
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ query TransactionsByOwnerQuery($owner: Address!, $after: String, $before: String
time
}
... on SuccessStatus {
transactionId
blockHeight
time
programState {
Expand Down Expand Up @@ -52,9 +53,40 @@ query TransactionsByOwnerQuery($owner: Address!, $after: String, $before: String
}
totalGas
totalFee
resolvedOutputs {
utxoId
output {
__typename
... on CoinOutput {
to
amount
assetId
}
... on ContractOutput {
inputIndex
balanceRoot
stateRoot
}
... on ChangeOutput {
to
amount
assetId
}
... on VariableOutput {
to
amount
assetId
}
... on ContractCreated {
contract
stateRoot
}
}
}
}
... on PreconfirmationSuccessStatus {
txPointer
time
transactionId
totalFee
totalGas
Expand Down Expand Up @@ -123,6 +155,7 @@ query TransactionsByOwnerQuery($owner: Address!, $after: String, $before: String
reason
}
... on FailureStatus {
transactionId
blockHeight
time
reason
Expand Down Expand Up @@ -162,9 +195,40 @@ query TransactionsByOwnerQuery($owner: Address!, $after: String, $before: String
}
totalGas
totalFee
resolvedOutputs {
utxoId
output {
__typename
... on CoinOutput {
to
amount
assetId
}
... on ContractOutput {
inputIndex
balanceRoot
stateRoot
}
... on ChangeOutput {
to
amount
assetId
}
... on VariableOutput {
to
amount
assetId
}
... on ContractCreated {
contract
stateRoot
}
}
}
}
... on PreconfirmationFailureStatus {
txPointer
time
transactionId
totalFee
totalGas
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ query TransactionsQuery($after: String, $before: String, $first: Int, $last: Int
time
}
... on SuccessStatus {
transactionId
blockHeight
time
programState {
Expand Down Expand Up @@ -52,9 +53,40 @@ query TransactionsQuery($after: String, $before: String, $first: Int, $last: Int
}
totalGas
totalFee
resolvedOutputs {
utxoId
output {
__typename
... on CoinOutput {
to
amount
assetId
}
... on ContractOutput {
inputIndex
balanceRoot
stateRoot
}
... on ChangeOutput {
to
amount
assetId
}
... on VariableOutput {
to
amount
assetId
}
... on ContractCreated {
contract
stateRoot
}
}
}
}
... on PreconfirmationSuccessStatus {
txPointer
time
transactionId
totalFee
totalGas
Expand Down Expand Up @@ -123,6 +155,7 @@ query TransactionsQuery($after: String, $before: String, $first: Int, $last: Int
reason
}
... on FailureStatus {
transactionId
blockHeight
time
reason
Expand Down Expand Up @@ -162,9 +195,40 @@ query TransactionsQuery($after: String, $before: String, $first: Int, $last: Int
}
totalGas
totalFee
resolvedOutputs {
utxoId
output {
__typename
... on CoinOutput {
to
amount
assetId
}
... on ContractOutput {
inputIndex
balanceRoot
stateRoot
}
... on ChangeOutput {
to
amount
assetId
}
... on VariableOutput {
to
amount
assetId
}
... on ContractCreated {
contract
stateRoot
}
}
}
}
... on PreconfirmationFailureStatus {
txPointer
time
transactionId
totalFee
totalGas
Expand Down
Loading
Loading