Skip to content

Commit 811f9f7

Browse files
authored
Support for eth_getProof RPC (#2986)
1 parent d9acf1c commit 811f9f7

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# CHANGELOG
22

3+
## 3.2.1
4+
5+
Upgrade priority: Low. Recommended for users of parachains.
6+
7+
Contributed:
8+
9+
- Adjust metadata `.asV12` type signature (Thanks to https://github.com/yjhmelody)
10+
11+
Changes:
12+
13+
- Add `api.{errors, events, query, tx}.<section>.<name>.is(...)`
14+
- Remove support for staking pre Substrate 2.0
15+
- Add all frontier types & RPCs
16+
- Support `AccountInfo` with new provider/consumer refCount structure
17+
- Additional Cumulus parachain types
18+
- Consistently format number JSON based on bitLength
19+
- Cleanup metadata -> api dependencies
20+
- Update `@polkadot/util` to 5.2.1
21+
22+
323
## 3.1.1 Dec 20, 2020
424

525
Upgrade priority: Low. Recommended for users of parachains.

packages/types/src/interfaces/eth/definitions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ const types: DefinitionsTypes = {
222222
logsBloom: 'EthBloom'
223223
},
224224
EthWork: {
225-
pow_hash: 'H256',
226-
seed_hash: 'H256',
225+
powHash: 'H256',
226+
seedHash: 'H256',
227227
target: 'H256',
228228
number: 'Option<u64>'
229229
}

packages/types/src/interfaces/eth/rpc.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ export const rpc: DefinitionsRpc = {
123123
],
124124
type: 'Vec<EthLog>'
125125
},
126+
getProof: {
127+
description: 'Returns proof for account and storage.',
128+
params: [
129+
{ name: 'address', type: 'H160' },
130+
{ name: 'storageKeys', type: 'Vec<H256>' },
131+
{ name: 'number', type: 'BlockNumber' }
132+
],
133+
type: 'EthAccount'
134+
},
126135
getStorageAt: {
127136
description: 'Returns content of the storage at given address.',
128137
params: [

0 commit comments

Comments
 (0)