-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
solution: implement missing rpc shortcuts to be on par with JS refere…
…nce lib
- Loading branch information
Showing
8 changed files
with
384 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
polkaj-json-types/src/main/java/io/emeraldpay/polkaj/json/ReadProofJson.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package io.emeraldpay.polkaj.json; | ||
|
||
import io.emeraldpay.polkaj.types.ByteData; | ||
import io.emeraldpay.polkaj.types.Hash256; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
public class ReadProofJson { | ||
private Hash256 at; | ||
private List<ByteData> proof; | ||
|
||
public Hash256 getAt() { | ||
return at; | ||
} | ||
|
||
public void setAt(Hash256 at) { | ||
this.at = at; | ||
} | ||
|
||
public List<ByteData> getProof() { | ||
return proof; | ||
} | ||
|
||
public void setProof(List<ByteData> proof) { | ||
this.proof = proof; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (!(o instanceof ReadProofJson)) return false; | ||
ReadProofJson that = (ReadProofJson) o; | ||
return Objects.equals(at, that.at) && | ||
Objects.equals(proof, that.proof); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(at, proof); | ||
} | ||
} |
Oops, something went wrong.