diff --git a/pom.xml b/pom.xml index 5e81d35..11d56d7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.binance.dex.api binance-dex-api-client - 1.1.6 + 1.1.8 diff --git a/src/main/java/com/binance/dex/api/client/crosschain/ContentEnum.java b/src/main/java/com/binance/dex/api/client/crosschain/ContentEnum.java index c2ce6f6..5aa1951 100644 --- a/src/main/java/com/binance/dex/api/client/crosschain/ContentEnum.java +++ b/src/main/java/com/binance/dex/api/client/crosschain/ContentEnum.java @@ -26,6 +26,9 @@ public enum ContentEnum { CrossStakeSynPack(16, 0, CrossStakeSyn.class), CrossStakeRefundPack(16, 1, CrossStakeRefund.class), CrossStakeFailAckPack(16, 2, CrossStakeFailAck.class), + StakeMigrationSynPack(17, 0, StakeMigrationRefund.class), + StakeMigrationAckPack(17, 1, StakeMigrationRefund.class), + StakeMigrationFailAckPack(17, 2, StakeMigrationRefund.class), ; private Integer channelId; diff --git a/src/main/java/com/binance/dex/api/client/crosschain/content/StakeMigrationRefund.java b/src/main/java/com/binance/dex/api/client/crosschain/content/StakeMigrationRefund.java new file mode 100644 index 0000000..6bb2a91 --- /dev/null +++ b/src/main/java/com/binance/dex/api/client/crosschain/content/StakeMigrationRefund.java @@ -0,0 +1,23 @@ +package com.binance.dex.api.client.crosschain.content; + +import com.binance.dex.api.client.crosschain.*; +import com.binance.dex.api.client.encoding.message.common.Bech32AddressValue; +import com.binance.dex.api.client.encoding.message.common.EthAddressValue; +import lombok.Getter; +import lombok.Setter; + + +@Getter +@Setter +public class StakeMigrationRefund extends Content { + + private EthAddressValue operatorAddress; + private EthAddressValue delegatorAddress; + private Bech32AddressValue refundAddress; + private UnsignedNumber amount; + + @Override + protected void setHrp(String hrp) { + this.refundAddress.setHrp(hrp); + } +}