Skip to main content

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

MemberType
accountAddress
executorAccountAddressAddress
publicClientPublicClient<Transport, TChain>
upgradeExecutorAddressAddress

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

ParameterTypeDescription
upgradeExecutorPrepareAddExecutorTransactionRequestParamsUpgradeExecutorPrepareAddExecutorTransactionRequestParams<TChain>UpgradeExecutorPrepareAddExecutorTransactionRequestParams

Returns

Promise<any>

Promise - the transaction request

Example

const addExecutorTransactionRequest = await upgradeExecutorPrepareAddExecutorTransactionRequest({
account: newExecutorAccountAddress,
upgradeExecutorAddress: coreContracts.upgradeExecutor,
executorAccountAddress: deployer.address,
publicClient,
});

Source

src/upgradeExecutorPrepareAddExecutorTransactionRequest.ts:49