Skip to main content
renounceCallingContractAdminRole(config, rulesEngineAdminContract, callingContract, renounceAddress, confirmationCount): Promise<void>
Defined in: src/modules/admin.ts:178 Renounce a calling contract admin in the rules engine admin contract. This function renounces an admin for a specific policy.

Parameters

ParameterTypeDescription
configConfig-
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}`-
callingContract`0x${string}`The address of the calling contract to renounce admin for.
renounceAddress`0x${string}`The address to renounce as the admin
confirmationCountnumber-

Returns

Promise<void> A promise

Throws

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