diff --git a/CHANGELOG.md b/CHANGELOG.md index bf5fa5cd0af..f48e1e4dc8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -561,6 +561,7 @@ Released with 1.0.0-beta.37 code base. ### Security - `npm audit fix` to address vulnerabilities and update libraries (#5014) + ## [Unreleased] ## [1.7.5] @@ -569,7 +570,8 @@ Released with 1.0.0-beta.37 code base. - Replace xhr2-cookies deps to cross-fetch for web3-providers-http (#5085) ### Added -- Documentation details about `maxFeePerGas` and `maxPriorityFeePerGas` (#5121) +- Documentation details about `maxFeePerGas` and `maxPriorityFeePerGas` (#5121) +- Added `createAccessList` types in web3.eth (#5146) ### Fixed - Fix typos in web3-eth-accounts.rst & TESTING.md (#5047) @@ -580,5 +582,5 @@ Released with 1.0.0-beta.37 code base. ### Security -- Updated `got` lib version and fixed other libs using npm audit fix +- Updated `got` lib version and fixed other libs using npm audit fix diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts index 88953985734..b7499a0c49f 100644 --- a/packages/web3-eth/types/index.d.ts +++ b/packages/web3-eth/types/index.d.ts @@ -364,6 +364,17 @@ export class Eth { callback?: (error: Error, gas: number) => void ): Promise; + createAccessList( + transactionConfig: TransactionConfig, + callback?: (error: Error, result: CreateAccessList) => void + ): Promise; + + createAccessList( + transactionConfig: TransactionConfig, + defaultBlock: BlockNumber, + callback?: (error: Error, result: CreateAccessList) => void + ): Promise; + getPastLogs( options: PastLogsOptions, callback?: (error: Error, logs: Log[]) => void @@ -441,6 +452,17 @@ export interface BlockTransactionString extends BlockTransactionBase { transactions: string[]; } +export interface AccessTuple { + address: string; + storageKeys: string[]; +} + +export interface CreateAccessList { + accessList: AccessTuple[]; + error?: string; + gasUsed: string; +} + export interface GetProof { address: string; balance: string;