public void setNonce(JsonNode nonce) { this.nonce = deserializeState(nonce); }
@Override public String toString() { return "StateDiff{" + "balance=" + getBalance() + ", code=" + getCode() + ", nonce=" + getNonce() + ", storage=" + getStorage() + '}'; } }
stateDiffMap.put("0x00a0a24b9f0e5ec7aa4c7389b8302fd0123194de", new StateDiff( new StateDiff.ChangedState("0x2067ee238a4648bed5797", "0x2067ee23f5d09db3d0397"), new StateDiff.UnchangedState(), new HashMap<>() )); stateDiffMap.put("0x14772e4f805b4dd2e69bd6d3f9b5edf0dfa5385a", new StateDiff( new StateDiff.ChangedState("0xf85a746b58c1fee", "0xf7eeea1663c73ee"), new StateDiff.UnchangedState(), )); stateDiffMap.put("0x1a4298d0edc00618310e4c26f6479e5cccdfeaf8", new StateDiff( new StateDiff.AddedState("0x0"), new StateDiff.AddedState("0x6060604052361561004a576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806341c0e1b51461004e578063b46300ec14610063575b5b5b005b341561005957600080fd5b61006161006d565b005b61006b6100ff565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156100fc576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff5b5b565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050151561017757600080fd5b5b5600a165627a7a72305820a6f301a38f55ea4c326a17bb26afad4aad7ed9dd49e1954d2b8995595e0ffceb0029"),
@Override public int hashCode() { int result = getBalance() != null ? getBalance().hashCode() : 0; result = 31 * result + (getCode() != null ? getCode().hashCode() : 0); result = 31 * result + (getNonce() != null ? getNonce().hashCode() : 0); result = 31 * result + (getStorage() != null ? getStorage().hashCode() : 0); return result; }
public void setBalance(JsonNode balance) { this.balance = deserializeState(balance); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof StateDiff)) { return false; } StateDiff that = (StateDiff) o; if (getBalance() != null ? !getBalance().equals(that.getBalance()) : that.getBalance() != null) { return false; } if (getCode() != null ? !getCode().equals(that.getCode()) : that.getCode() != null) { return false; } if (getNonce() != null ? !getNonce().equals(that.getNonce()) : that.getNonce() != null) { return false; } return getStorage() != null ? getStorage().equals(that.getStorage()) : that.getStorage() == null; }
public void setCode(JsonNode code) { this.code = deserializeState(code); }
@Override public String toString() { return "StateDiff{" + "balance=" + getBalance() + ", code=" + getCode() + ", nonce=" + getNonce() + ", storage=" + getStorage() + '}'; } }
public void setStorage(Map<String, JsonNode> storage) { this.storage = storage.entrySet().stream() .collect(Collectors.toMap( Map.Entry::getKey, entry -> deserializeState(entry.getValue())) ); }
@Override public int hashCode() { int result = getBalance() != null ? getBalance().hashCode() : 0; result = 31 * result + (getCode() != null ? getCode().hashCode() : 0); result = 31 * result + (getNonce() != null ? getNonce().hashCode() : 0); result = 31 * result + (getStorage() != null ? getStorage().hashCode() : 0); return result; }
public void setCode(JsonNode code) { this.code = deserializeState(code); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof StateDiff)) { return false; } StateDiff that = (StateDiff) o; if (getBalance() != null ? !getBalance().equals(that.getBalance()) : that.getBalance() != null) { return false; } if (getCode() != null ? !getCode().equals(that.getCode()) : that.getCode() != null) { return false; } if (getNonce() != null ? !getNonce().equals(that.getNonce()) : that.getNonce() != null) { return false; } return getStorage() != null ? getStorage().equals(that.getStorage()) : that.getStorage() == null; }
public void setNonce(JsonNode nonce) { this.nonce = deserializeState(nonce); }
public void setBalance(JsonNode balance) { this.balance = deserializeState(balance); }
public void setStorage(Map<String, JsonNode> storage) { this.storage = storage.entrySet().stream() .collect(Collectors.toMap( Map.Entry::getKey, entry -> deserializeState(entry.getValue())) ); }