Skip to content

Commit

Permalink
fix: stake migration refund package is not correctly handled (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing authored Apr 11, 2024
1 parent cb2e80a commit 0ac8642
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.binance.dex.api</groupId>
<artifactId>binance-dex-api-client</artifactId>
<version>1.1.6</version>
<version>1.1.8</version>

<repositories>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 0ac8642

Please sign in to comment.