upgradeExecutorPrepareAddExecutorTransactionRequest
Type Aliases
UpgradeExecutorPrepareAddExecutorTransactionRequestParams<TChain>
type UpgradeExecutorPrepareAddExecutorTransactionRequestParams<TChain>: object;
Type for the params of the upgradeExecutorPrepareAddExecutorTransactionRequest function
Type parameters
Type parameter |
---|
TChain extends Chain | undefined |
Type declaration
Member | Type |
---|---|
account | Address |
executorAccountAddress | Address |
publicClient | PublicClient <Transport , TChain > |
upgradeExecutorAddress | Address |
Source
src/upgradeExecutorPrepareAddExecutorTransactionRequest.ts:19
Functions
upgradeExecutorPrepareAddExecutorTransactionRequest()
function upgradeExecutorPrepareAddExecutorTransactionRequest<TChain>(upgradeExecutorPrepareAddExecutorTransactionRequestParams: UpgradeExecutorPrepareAddExecutorTransactionRequestParams<TChain>): Promise<any>
Prepares a transaction to grant the executor role to a new account
Type parameters
Type parameter |
---|
TChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type | Description |
---|---|---|
upgradeExecutorPrepareAddExecutorTransactionRequestParams | UpgradeExecutorPrepareAddExecutorTransactionRequestParams <TChain > | UpgradeExecutorPrepareAddExecutorTransactionRequestParams |
Returns
Promise
<any
>
Promise
Example
const addExecutorTransactionRequest = await upgradeExecutorPrepareAddExecutorTransactionRequest({
account: newExecutorAccountAddress,
upgradeExecutorAddress: coreContracts.upgradeExecutor,
executorAccountAddress: deployer.address,
publicClient,
});
Source
src/upgradeExecutorPrepareAddExecutorTransactionRequest.ts:49