Skip to content
Merged
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
8 changes: 8 additions & 0 deletions proto/utxorpc/v1alpha/query/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ message ChainPoint {
bytes hash = 2; // Block hash.
}

message AnyChainBlock {
bytes native_bytes = 1; // Original bytes as defined by the chain
oneof chain {
utxorpc.v1alpha.cardano.Block cardano = 2; // A parsed Cardano block.
}
}

// Represents a reference to a transaction output
message TxoRef {
bytes hash = 1; // Tx hash.
Expand Down Expand Up @@ -121,6 +128,7 @@ message AnyChainTx {
oneof chain {
utxorpc.v1alpha.cardano.Tx cardano = 2; // A Cardano transaction.
}
AnyChainBlock block = 3; // Block containing the transaction
}

// Response containing the transaction associated with the requested hash.
Expand Down
8 changes: 8 additions & 0 deletions proto/utxorpc/v1alpha/watch/watch.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ message BlockRef {
bytes hash = 2; // Hash of the content of the block
}

message AnyChainBlock {
bytes native_bytes = 1; // Original bytes as defined by the chain
oneof chain {
utxorpc.v1alpha.cardano.Block cardano = 2; // A parsed Cardano block.
}
}

// Represents a tx pattern from any supported blockchain.
message AnyChainTxPattern {
oneof chain {
Expand Down Expand Up @@ -38,6 +45,7 @@ message AnyChainTx {
oneof chain {
utxorpc.v1alpha.cardano.Tx cardano = 1; // A Cardano transaction.
}
AnyChainBlock block = 2; // Block containing the transaction
}

// Response containing the matching chain transactions.
Expand Down