From 77abd771a900b501eea50db6f6762ed0e29ad93a Mon Sep 17 00:00:00 2001 From: Mateusz Galazyn Date: Fri, 28 Nov 2025 19:08:47 +0100 Subject: [PATCH] feat(cardano): simplify `Asset` type Since currently both of the variants of `quantity` can store negative values, there is no point of having them both if they serve the same purpose. --- proto/utxorpc/v1beta/cardano/cardano.proto | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/proto/utxorpc/v1beta/cardano/cardano.proto b/proto/utxorpc/v1beta/cardano/cardano.proto index ff22309..10b3d9a 100644 --- a/proto/utxorpc/v1beta/cardano/cardano.proto +++ b/proto/utxorpc/v1beta/cardano/cardano.proto @@ -48,10 +48,7 @@ message Datum { // Represents a custom asset in the Cardano blockchain. message Asset { bytes name = 1; // Name of the custom asset. - oneof quantity { - BigInt output_coin = 2; // Quantity of the custom asset in case of an output. - BigInt mint_coin = 3; // Quantity of the custom asset in case of a mint (can be negative for burning). - } + BigInt quantity = 2; // Quantity of the custom asset. This can be negative only if it is in a `Tx.mint` field and the transaction is burning tokens. } // Represents a multi-asset group in the Cardano blockchain.