This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add getProof to provider * Format updates * Add docs * Remove fill_tx method, not sure how it got there * Fix removed Trace type * Remove test, eth_getProof not supported by ganache
- Loading branch information
Showing
5 changed files
with
61 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,6 @@ pub use txpool::*; | |
|
||
mod trace; | ||
pub use trace::*; | ||
|
||
mod proof; | ||
pub use proof::*; |
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,19 @@ | ||
use crate::types::{Bytes, H256, U256}; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Default, Clone, PartialEq, Deserialize, Serialize)] | ||
pub struct StorageProof { | ||
pub key: H256, | ||
pub proof: Vec<Bytes>, | ||
pub value: U256, | ||
} | ||
|
||
#[derive(Debug, Default, Clone, PartialEq, Deserialize, Serialize)] | ||
pub struct EIP1186ProofResponse { | ||
balance: U256, | ||
code_hash: H256, | ||
nonce: U256, | ||
storage_hash: H256, | ||
account_proof: Vec<Bytes>, | ||
storage_proof: Vec<StorageProof>, | ||
} |
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