proposeNewForeignCallAdmin(config, rulesEngineAdminContract, foreignCallAddress, newAdminAddress, functionSelector): Promise<void>
Propose a new foreign call admin in the rules engine admin contract. This function proposes a new admin for a specific foreign call.

Parameters

ParameterTypeDescription
configConfigThe configuration object containing network and wallet information.
rulesEngineAdminContractobjectThe contract instance containing the address and ABI
rulesEngineAdminContract.abi(object | object | object)[]-
rulesEngineAdminContract.address`0x${string}`-
foreignCallAddress`0x${string}`The address of the foreign call contract to set the admin for.
newAdminAddress`0x${string}`The address to propose as the new admin
functionSelectorstringThe selector for the specific foreign call

Returns

Promise<void> A promise.

Throws

Will retry indefinitely on contract interaction failure, with a delay between attempts.

Defined in

src/modules/admin.ts:316