-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added json rpc eth_getProof (introduced ProofDTO)
- Loading branch information
fedejinich
committed
May 4, 2021
1 parent
6b21709
commit 9807efe
Showing
4 changed files
with
105 additions
and
0 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
61 changes: 61 additions & 0 deletions
61
rskj-core/src/main/java/co/rsk/rpc/modules/eth/getProof/ProofDTO.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,61 @@ | ||
package co.rsk.rpc.modules.eth.getProof; | ||
|
||
import java.util.List; | ||
|
||
public class ProofDTO { | ||
|
||
private String balance; | ||
private String codeHash; | ||
private String nonce; | ||
private String storageHash; | ||
private List<String> accountProof; | ||
private List<StorageProofDTO> storageProof; | ||
|
||
public String getBalance() { | ||
return balance; | ||
} | ||
|
||
public void setBalance(String balance) { | ||
this.balance = balance; | ||
} | ||
|
||
public String getCodeHash() { | ||
return codeHash; | ||
} | ||
|
||
public void setCodeHash(String codeHash) { | ||
this.codeHash = codeHash; | ||
} | ||
|
||
public String getNonce() { | ||
return nonce; | ||
} | ||
|
||
public void setNonce(String nonce) { | ||
this.nonce = nonce; | ||
} | ||
|
||
public String getStorageHash() { | ||
return storageHash; | ||
} | ||
|
||
public void setStorageHash(String storageHash) { | ||
this.storageHash = storageHash; | ||
} | ||
|
||
public List<String> getAccountProof() { | ||
return accountProof; | ||
} | ||
|
||
public void setAccountProof(List<String> accountProof) { | ||
this.accountProof = accountProof; | ||
} | ||
|
||
public List<StorageProofDTO> getStorageProof() { | ||
return storageProof; | ||
} | ||
|
||
public void setStorageProof(List<StorageProofDTO> storageProof) { | ||
this.storageProof = storageProof; | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
rskj-core/src/main/java/co/rsk/rpc/modules/eth/getProof/StorageProofDTO.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,34 @@ | ||
package co.rsk.rpc.modules.eth.getProof; | ||
|
||
import java.util.List; | ||
|
||
public class StorageProofDTO { | ||
|
||
private String key; | ||
private String value; | ||
private List<String> proofs; | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
|
||
public List<String> getProofs() { | ||
return proofs; | ||
} | ||
|
||
public void setProofs(List<String> proofs) { | ||
this.proofs = proofs; | ||
} | ||
} |
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