Skip to content

Commit 26346ce

Browse files
committed
Address review remarks
1 parent 4b7c119 commit 26346ce

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

cardano-rpc/proto/utxorpc/v1alpha/cardano/cardano.proto

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@ syntax = "proto3";
22

33
package utxorpc.v1alpha.cardano;
44

5-
// Purpose of the redeemer in a transaction.
6-
enum RedeemerPurpose {
7-
REDEEMER_PURPOSE_UNSPECIFIED = 0;
8-
REDEEMER_PURPOSE_SPEND = 1;
9-
REDEEMER_PURPOSE_MINT = 2;
10-
REDEEMER_PURPOSE_CERT = 3;
11-
REDEEMER_PURPOSE_REWARD = 4;
12-
REDEEMER_PURPOSE_VOTE = 5;
13-
REDEEMER_PURPOSE_PROPOSE = 6;
14-
}
15-
16-
// Redeemer information for a Plutus script.
17-
message Redeemer {
18-
RedeemerPurpose purpose = 1; // Purpose of the redeemer.
19-
PlutusData payload = 2; // Plutus data associated with the redeemer.
20-
uint32 index = 3; // Index of the redeemer.
21-
ExUnits ex_units = 4; // Execution units consumed by the redeemer.
22-
bytes original_cbor = 5; // Original cbor-encoded data as seen on-chain
23-
}
24-
255
// Represents a transaction output in the Cardano blockchain.
266
message TxOutput {
277
bytes address = 1; // Address receiving the output.
@@ -37,18 +17,18 @@ message Datum {
3717
bytes original_cbor = 3; // Original cbor-encoded data as seen on-chain
3818
}
3919

20+
// TODO u5c: mint_coin removed
4021
// Represents a custom asset in the Cardano blockchain.
4122
message Asset {
4223
bytes name = 1; // Name of the custom asset.
4324
uint64 output_coin = 2; // Quantity of the custom asset in case of an output.
44-
int64 mint_coin = 3; // Quantity of the custom asset in case of a mint.
4525
}
4626

27+
// TODO u5c: redeemer was removed
4728
// Represents a multi-asset group in the Cardano blockchain.
4829
message MultiAsset {
4930
bytes policy_id = 1; // Policy ID governing the custom assets.
5031
repeated Asset assets = 2; // List of custom assets.
51-
Redeemer redeemer = 3; // Redeemer for the Plutus script.
5232
}
5333

5434
// Represents a native script in Cardano.

cardano-rpc/src/Cardano/Rpc/Server/Internal/Orphans.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,9 @@ instance IsCardanoEra era => Inject (UTxO era) [Proto UtxoRpc.AnyUtxoData] where
131131
defMessage
132132
& #name .~ serialiseToRawBytes assetName
133133
& #outputCoin .~ fromIntegral qty
134-
& #mintCoin .~ 0 -- TODO what is this supposed to mean?
135134
defMessage
136135
& #policyId .~ serialiseToRawBytes pId
137136
& #assets .~ assets
138-
& #redeemer .~ defMessage -- TODO remove this field from proto
139137
datumRpc = case datum of
140138
TxOutDatumNone ->
141139
defMessage

0 commit comments

Comments
 (0)