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

100% Statements 51/51
100% Branches 0/0
100% Functions 0/0
100% Lines 51/51

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 521x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/**
 *  Each state-changing operation on Ethereum requires a transaction.
 *
 *  @_section api/transaction:Transactions  [about-transactions]
 */
 
null;
 
import type { BigNumberish } from "../utils/maths.js";
import type { Signature, SignatureLike } from "../crypto/index.js";
 
/**
 *  A single [[AccessList]] entry of storage keys (slots) for an address.
 */
export type AccessListEntry = { address: string, storageKeys: Array<string> };
 
/**
 *  An ordered collection of [[AccessList]] entries.
 */
export type AccessList = Array<AccessListEntry>;
 
/**
 *  Any ethers-supported access list structure.
 */
export type AccessListish = AccessList |
                            Array<[ string, Array<string> ]> |
                            Record<string, Array<string>>;
 
// Keep here?
export interface Authorization {
    address: string;
    nonce: bigint;
    chainId: bigint;
    signature: Signature;
}
 
export type AuthorizationLike = {
    address: string;
    nonce: BigNumberish;
    chainId: BigNumberish;
    signature: SignatureLike
};
 
export { accessListify } from "./accesslist.js";
export { authorizationify } from "./authorization.js";
export { computeAddress, recoverAddress } from "./address.js";
export { Transaction } from "./transaction.js";
 
export type {
    Blob, BlobLike, KzgLibrary, KzgLibraryLike, TransactionLike
} from "./transaction.js";