ethers.js/src.ts/transaction/index.ts

32 lines
866 B
TypeScript
Raw Permalink Normal View History

2022-11-27 21:52:34 -05:00
/**
* Each state-changing operation on Ethereum requires a transaction.
2022-11-27 21:52:34 -05:00
*
2023-02-12 21:21:11 -05:00
* @_section api/transaction:Transactions [about-transactions]
2022-11-27 21:52:34 -05:00
*/
2022-09-05 16:14:43 -04:00
2022-12-02 21:23:13 -05:00
null;
/**
* A single [[AccessList]] entry of storage keys (slots) for an address.
*/
export type AccessListEntry = { address: string, storageKeys: Array<string> };
2022-11-27 21:52:34 -05:00
/**
2022-12-02 21:23:13 -05:00
* An ordered collection of [[AccessList]] entries.
2022-11-27 21:52:34 -05:00
*/
2022-12-02 21:23:13 -05:00
export type AccessList = Array<AccessListEntry>;
2022-09-05 16:14:43 -04:00
2022-12-02 21:23:13 -05:00
/**
* Any ethers-supported access list structure.
*/
2022-09-05 16:14:43 -04:00
export type AccessListish = AccessList |
Array<[ string, Array<string> ]> |
Record<string, Array<string>>;
export { accessListify } from "./accesslist.js";
export { computeAddress, recoverAddress } from "./address.js";
export { Transaction } from "./transaction.js";
2022-12-02 21:23:13 -05:00
export type { TransactionLike } from "./transaction.js";