isForeignCallAdmin(Defined in: src/modules/admin.ts:433 Determine if address is the foreign call admin. This function determines whether or not an address is the admin for a specific foreign call.config,rulesEngineAdminContract,foreignCallContract,account,functionSelector,blockParams?):Promise<boolean>
Parameters
| Parameter | Type | Description |
|---|---|---|
config | Config | The 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}` | - |
foreignCallContract | `0x${string}` | The address of the contract to check the admin for. |
account | `0x${string}` | The address to check |
functionSelector? | string | The selector for the specific foreign call |
blockParams? | ContractBlockParameters | Optional parameters to specify block number or tag for the contract read operation. |
Returns
Promise<boolean>
whether or not the address is the foreign call admin.