proposeNewCallingContractAdmin(config, rulesEngineAdminContract, callingContractAddress, newAdminAddress, confirmationCount): Promise<void>
Defined in: src/modules/admin.ts:165 Propose a new calling contract admin in the rules engine admin contract. This function proposes a new admin for a specific calling contract.

Parameters

ParameterTypeDescription
configConfigThe configuration object containing network and wallet information.
rulesEngineAdminContract{ abi: ({ anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: boolean; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; } | { anonymous: undefined; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; })[]; address: `0x${string}`; }The contract instance containing the address and ABI
rulesEngineAdminContract.abi({ anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: boolean; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; } | { anonymous: undefined; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; })[]-
rulesEngineAdminContract.address`0x${string}`-
callingContractAddress`0x${string}`The address of the calling contract to set the admin for.
newAdminAddress`0x${string}`The address to propose as the new admin
confirmationCountnumber-

Returns

Promise<void> A promise.

Throws

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