Skip to content
Merged
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
23 changes: 14 additions & 9 deletions proto/utxorpc/v1beta/cardano/cardano.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ message TxInput {
bytes tx_hash = 1; // Hash of the previous transaction.
uint32 output_index = 2; // Index of the output in the previous transaction.
TxOutput as_output = 3; // Content of the input represented as output of the related transaction
Redeemer redeemer = 4; // Redeemer for the Plutus script.
optional Redeemer redeemer = 4; // Redeemer for the Plutus script.
}

// Represents a transaction output in the Cardano blockchain.
message TxOutput {
bytes address = 1; // Address receiving the output.
BigInt coin = 2; // Amount of ADA in the output.
repeated Multiasset assets = 3; // Additional native (non-ADA) assets in the output.
Datum datum = 4; // Plutus data associated with the output.
Script script = 5; // Script associated with the output.
optional Datum datum = 4; // Plutus data associated with the output.
optional Script script = 5; // Script associated with the output.
}

message Datum {
bytes hash = 1; // Hash of this datum as seen on-chain
PlutusData payload = 2; // Parsed Plutus data payload
bytes original_cbor = 3; // Original cbor-encoded data as seen on-chain
optional PlutusData payload = 2; // Parsed Plutus data payload
optional bytes original_cbor = 3; // Original cbor-encoded data as seen on-chain
}

// Represents a custom asset in the Cardano blockchain.
Expand Down Expand Up @@ -152,7 +152,7 @@ message HardForkInitiationAction {
}

message TreasuryWithdrawalsAction {
repeated WithdrawalAmount withdrawals = 1; // A map of the withdrawals to make
repeated WithdrawalAmount withdrawals = 1; // A list of the withdrawals to make
bytes policy_hash = 2;
}

Expand Down Expand Up @@ -245,11 +245,13 @@ message Constr {
}

// Represents a big integer for Plutus data in Cardano.
// The representation here follows CBOR specification for bignums:
// https://www.rfc-editor.org/rfc/rfc8949.html#name-bignums section 3.4.3.
message BigInt {
oneof big_int {
int64 int = 1;
bytes big_u_int = 2;
bytes big_n_int = 3;
int64 int = 1; // Stores value fitting within int64 range
bytes big_u_int = 2; // Stores unsigned value exceeding int64 range
bytes big_n_int = 3; // Stores negative value `n` exceeding int64 range as `-1 - n`
}
}

Expand Down Expand Up @@ -287,6 +289,7 @@ message Script {
bytes plutus_v1 = 2; // Plutus V1 script.
bytes plutus_v2 = 3; // Plutus V2 script.
bytes plutus_v3 = 4; // Plutus V3 script.
bytes plutus_v4 = 5; // Plutus V4 script.
}
}

Expand Down Expand Up @@ -592,6 +595,7 @@ message CostModels {
CostModel plutus_v1 = 1;
CostModel plutus_v2 = 2;
CostModel plutus_v3 = 3;
CostModel plutus_v4 = 4;
}

message VotingThresholds {
Expand Down Expand Up @@ -759,6 +763,7 @@ message CostModelMap {
CostModel plutus_v1 = 1;
CostModel plutus_v2 = 2;
CostModel plutus_v3 = 3;
CostModel plutus_v4 = 4;
}

// Unified Genesis configuration containing all parameters from all eras
Expand Down
Loading