import { Address, PublicClient, Transport, Chain } from 'viem'; /** * Type for the params of the {@link upgradeExecutorPrepareAddExecutorTransactionRequest} function */ export type UpgradeExecutorPrepareAddExecutorTransactionRequestParams = { account: Address; upgradeExecutorAddress: Address; executorAccountAddress: Address; publicClient: PublicClient; }; /** * Prepares a transaction to grant the executor role to a new account * * - Example: [Add new executor account to UpgradeExecutor](https://github.com/OffchainLabs/arbitrum-orbit-sdk/blob/main/examples/upgrade-executor-add-account/index.ts) * * @param {UpgradeExecutorPrepareAddExecutorTransactionRequestParams} upgradeExecutorPrepareAddExecutorTransactionRequestParams {@link UpgradeExecutorPrepareAddExecutorTransactionRequestParams} * @param {Address} upgradeExecutorPrepareAddExecutorTransactionRequestParams.account - Address of the account to be granted the executor role * @param {Address} upgradeExecutorPrepareAddExecutorTransactionRequestParams.upgradeExecutorAddress - Address of the UpgradeExecutor contract * @param {Address} upgradeExecutorPrepareAddExecutorTransactionRequestParams.executorAccountAddress - Address of the account that already has the executor role (will send the transaction) * @param {PublicClient} upgradeExecutorPrepareAddExecutorTransactionRequestParams.publicClient - The chain Viem Public Client * * @returns Promise<{@link PrepareTransactionRequestReturnType}> - the transaction request * * @example * const addExecutorTransactionRequest = await upgradeExecutorPrepareAddExecutorTransactionRequest({ * account: newExecutorAccountAddress, * upgradeExecutorAddress: coreContracts.upgradeExecutor, * executorAccountAddress: deployer.address, * publicClient, * }); */ export declare function upgradeExecutorPrepareAddExecutorTransactionRequest({ account, upgradeExecutorAddress, executorAccountAddress, publicClient, }: UpgradeExecutorPrepareAddExecutorTransactionRequestParams): Promise<{ chainId: number; data?: `0x${string}` | undefined; from: `0x${string}`; gas?: bigint | undefined; nonce?: number | undefined; to?: `0x${string}` | null | undefined; value?: bigint | undefined; gasPrice?: bigint | undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; accessList?: undefined; type?: "legacy" | undefined; account: `0x${string}` | import("viem").Account; chain: Chain | null | undefined; } | { chainId: number; data?: `0x${string}` | undefined; from: `0x${string}`; gas?: bigint | undefined; nonce?: number | undefined; to?: `0x${string}` | null | undefined; value?: bigint | undefined; gasPrice?: bigint | undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; accessList?: import("viem").AccessList | undefined; type?: "eip2930" | undefined; account: `0x${string}` | import("viem").Account; chain: Chain | null | undefined; } | { chainId: number; data?: `0x${string}` | undefined; from: `0x${string}`; gas?: bigint | undefined; nonce?: number | undefined; to?: `0x${string}` | null | undefined; value?: bigint | undefined; gasPrice?: undefined; maxFeePerGas?: bigint | undefined; maxPriorityFeePerGas?: bigint | undefined; accessList?: import("viem").AccessList | undefined; type?: "eip1559" | undefined; account: `0x${string}` | import("viem").Account; chain: Chain | null | undefined; }>;