Skip to content

Commit

Permalink
fix extensions make it as array, add Builder and AllArgsConstructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwheeze committed Apr 14, 2024
1 parent b7038ec commit b92cf94
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ public class CommentOptions extends Operation {
private short percentSteemDollars;
private boolean allowVotes;
private boolean allowCurationRewards;
@JsonDeserialize(using = ToStringDeserializer.class)
private String extensions;
private String[] extensions;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ public class DelegateVestingSharesWithInterest extends Operation {
String delegatee;
Asset vestingShares;
int interestRate;
@JsonDeserialize(using = ToStringDeserializer.class)
private String extensions;
private String[] extensions;
}
2 changes: 2 additions & 0 deletions src/main/java/bitwheeze/golos/goloslib/model/op/Donate.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

Expand All @@ -12,6 +13,7 @@
@JsonDeserialize(using = JsonDeserializer.None.class)
@OpName("donate")
@AllArgsConstructor
@Builder
public class Donate extends Operation {
private String from;
private String to;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/bitwheeze/golos/goloslib/model/op/Invite.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ public class Invite extends Operation {
String creator;
Asset balance;
String inviteKey;
@JsonDeserialize(using = ToStringDeserializer.class)
private String extensions;
private String[] extensions;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import bitwheeze.golos.goloslib.model.Asset;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@JsonDeserialize(using = JsonDeserializer.None.class)
@OpName("limit_order_create")
@AllArgsConstructor
@Builder
public class LimitOrderCreate extends Operation {
private String owner;
private long orderid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@

import bitwheeze.golos.goloslib.model.Asset;
import bitwheeze.golos.goloslib.model.ToStringDeserializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@OpName("transfer_from_tip")
@AllArgsConstructor
@Builder
public class TransferFromTip extends Operation {
private String from;
private String to;
private Asset amount;
private String memo;
@JsonDeserialize(using = ToStringDeserializer.class)
private String extensions;
private String[] extensions;
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
package bitwheeze.golos.goloslib.model.op;

import bitwheeze.golos.goloslib.model.Asset;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.*;

@Data
@ToString
@OpName("withdraw_vesting")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WithdrawVesting extends Operation {
String account;
Asset vestingShares;
Expand Down

0 comments on commit b92cf94

Please sign in to comment.