Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,10 @@ Released with 1.0.0-beta.37 code base.
### Security
- `npm audit fix` to address vulnerabilities and update libraries (#5014)


## [Unreleased]

## [1.7.5]
## [1.7.5]

### Added
- add `createAccessList` types in web3.eth (#5146)
22 changes: 22 additions & 0 deletions packages/web3-eth/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,17 @@ export class Eth {
callback?: (error: Error, gas: number) => void
): Promise<number>;

createAccessList(
transactionConfig: TransactionConfig,
callback?: (error: Error, result: CreateAccessList) => void
): Promise<CreateAccessList>;

createAccessList(
transactionConfig: TransactionConfig,
defaultBlock: BlockNumber,
callback?: (error: Error, result: CreateAccessList) => void
): Promise<CreateAccessList>;

getPastLogs(
options: PastLogsOptions,
callback?: (error: Error, logs: Log[]) => void
Expand Down Expand Up @@ -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;
Expand Down