hardhat
Version:
Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
17 lines • 1.07 kB
TypeScript
import type { L1HardforkName, OpHardforkName } from "./types/hardfork.js";
import type { EdrNetworkAccountsConfig, EdrNetworkForkingConfig } from "../../../../types/config.js";
import type { ChainType } from "../../../../types/network.js";
import { type AccountOverride } from "@nomicfoundation/edr";
export declare function getGenesisStateAndOwnedAccounts(accountsConfig: EdrNetworkAccountsConfig, forkingConfig: EdrNetworkForkingConfig | undefined, chainType: ChainType, hardforkName: L1HardforkName | OpHardforkName): Promise<{
genesisState: Map<string, AccountOverride>;
ownedAccounts: Array<{
secretKey: string;
balance: bigint;
}>;
}>;
/**
* Returns the local predeploys for the given hardfork and chain type.
*/
export declare function getChainGenesisState(hardforkName: L1HardforkName | OpHardforkName, chainType: ChainType): AccountOverride[];
export declare function mergeGenesisState(genesisState: Map<string, AccountOverride>, chainGenesisState: readonly AccountOverride[]): void;
//# sourceMappingURL=genesis-state.d.ts.map