From 66f041afc5fe0e8dfafc4c16eaade30c8c73f9d1 Mon Sep 17 00:00:00 2001 From: Sotatek-HuyLe3a Date: Tue, 20 Aug 2024 09:58:14 +0700 Subject: [PATCH] chore: remove dRep stake distribution query --- .../queries/DRepStakeDistributionQuery.java | 46 ------------------- .../queries/DRepStakeDistributionResult.java | 7 --- 2 files changed, 53 deletions(-) delete mode 100644 core/src/main/java/com/bloxbean/cardano/yaci/core/protocol/localstate/queries/DRepStakeDistributionQuery.java delete mode 100644 core/src/main/java/com/bloxbean/cardano/yaci/core/protocol/localstate/queries/DRepStakeDistributionResult.java diff --git a/core/src/main/java/com/bloxbean/cardano/yaci/core/protocol/localstate/queries/DRepStakeDistributionQuery.java b/core/src/main/java/com/bloxbean/cardano/yaci/core/protocol/localstate/queries/DRepStakeDistributionQuery.java deleted file mode 100644 index 62ac398c..00000000 --- a/core/src/main/java/com/bloxbean/cardano/yaci/core/protocol/localstate/queries/DRepStakeDistributionQuery.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.bloxbean.cardano.yaci.core.protocol.localstate.queries; - -import co.nstant.in.cbor.model.Array; -import co.nstant.in.cbor.model.DataItem; -import co.nstant.in.cbor.model.UnsignedInteger; -import com.bloxbean.cardano.client.transaction.spec.governance.DRep; -import com.bloxbean.cardano.yaci.core.protocol.handshake.messages.AcceptVersion; -import com.bloxbean.cardano.yaci.core.protocol.localstate.api.Era; -import com.bloxbean.cardano.yaci.core.protocol.localstate.api.EraQuery; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.ToString; -import lombok.extern.slf4j.Slf4j; - -import java.util.List; - -@Getter -@ToString -@AllArgsConstructor -@Slf4j -public class DRepStakeDistributionQuery implements EraQuery { - private Era era; - private List dReps; - - public DRepStakeDistributionQuery(List dReps) { - this(Era.Conway, dReps); - } - - @Override - public DataItem serialize(AcceptVersion protocolVersion) { - Array array = new Array(); - array.add(new UnsignedInteger(26)); - - Array dRepArray = new Array(); - dReps.forEach(dRep -> dRepArray.add(dRep.serialize())); - - array.add(dRepArray); - - return wrapWithOuterArray(array); - } - - @Override - public DRepStakeDistributionResult deserializeResult(AcceptVersion protocolVersion, DataItem[] di) { - throw new UnsupportedOperationException("Not implemented yet"); - } -} diff --git a/core/src/main/java/com/bloxbean/cardano/yaci/core/protocol/localstate/queries/DRepStakeDistributionResult.java b/core/src/main/java/com/bloxbean/cardano/yaci/core/protocol/localstate/queries/DRepStakeDistributionResult.java deleted file mode 100644 index 97ac8b35..00000000 --- a/core/src/main/java/com/bloxbean/cardano/yaci/core/protocol/localstate/queries/DRepStakeDistributionResult.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.bloxbean.cardano.yaci.core.protocol.localstate.queries; - -import com.bloxbean.cardano.yaci.core.protocol.localstate.api.QueryResult; - -public class DRepStakeDistributionResult implements QueryResult { - -}