isPermissionedAdmin(Defined in: src/modules/foreign-calls.ts:549 Returns whether a an admin address is on the permission list for a specific foreign call.config,rulesEngineForeignCallContract,foreignCallAddress,signature,admin,blockParams?):Promise<boolean>
Parameters
| Parameter | Type | Description |
|---|---|---|
config | Config | The configuration object containing network and wallet information. |
rulesEngineForeignCallContract | { abi: ({ anonymous: undefined; inputs: ({ components: undefined; internalType: string; name: string; type: string; } | { components: ({ components: undefined; internalType: string; name: string; type: string; } | { components: …[]; internalType: string; name: string; type: string; })[]; internalType: string; name: string; type: string; })[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: undefined; inputs: ({ components: undefined; internalType: string; name: string; type: string; } | { components: ({ components: undefined; internalType: string; name: string; type: string; } | { components: …[]; internalType: string; name: string; type: string; })[]; internalType: string; name: string; type: string; })[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: boolean; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; })[]; address: `0x${string}`; } | An object representing the Rules Engine Component Contract, |
rulesEngineForeignCallContract.abi | ({ anonymous: undefined; inputs: ({ components: undefined; internalType: string; name: string; type: string; } | { components: ({ components: undefined; internalType: string; name: string; type: string; } | { components: …[]; internalType: string; name: string; type: string; })[]; internalType: string; name: string; type: string; })[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: undefined; inputs: ({ components: undefined; internalType: string; name: string; type: string; } | { components: ({ components: undefined; internalType: string; name: string; type: string; } | { components: …[]; internalType: string; name: string; type: string; })[]; internalType: string; name: string; type: string; })[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: boolean; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; })[] | - |
rulesEngineForeignCallContract.address | `0x${string}` | - |
foreignCallAddress | `0x${string}` | The address of the foreign call to check permissions for. |
signature | string | The signature of the foreign call to check permissions for. |
admin? | `0x${string}` | The address of the admin to check permissions for. |
blockParams? | ContractBlockParameters | Optional parameters to specify block number or tag for the contract read operation. containing its address and ABI. |
Returns
Promise<boolean>
A promise that resolves to a boolean.