getCallingFunctionMetadata(Defined in: src/modules/calling-functions.ts:147 retrieves the metadata for a calling function from the rules engine component contract.config
,rulesEngineComponentContract
,policyId
,callingFunctionId
,blockParams
?):Promise
<CallingFunctionHashMapping
>
Parameters
Parameter | Type | Description |
---|---|---|
config | Config | The configuration object containing network and wallet information. |
rulesEngineComponentContract | { abi : ({ anonymous : undefined ; inputs : ({ components : undefined ; internalType : string ; name : string ; type : string ; } | { components : object []; internalType : string ; name : string ; type : string ; })[]; name : string ; outputs : object []; stateMutability : string ; type : string ; } | { anonymous : undefined ; inputs : object []; name : string ; outputs : object []; stateMutability : string ; type : string ; } | { anonymous : boolean ; inputs : object []; name : string ; outputs : undefined ; stateMutability : undefined ; type : string ; })[]; address : `0x${string}` ; } | The contract instance containing the address and ABI |
rulesEngineComponentContract.abi | ({ anonymous : undefined ; inputs : ({ components : undefined ; internalType : string ; name : string ; type : string ; } | { components : object []; internalType : string ; name : string ; type : string ; })[]; name : string ; outputs : object []; stateMutability : string ; type : string ; } | { anonymous : undefined ; inputs : object []; name : string ; outputs : object []; stateMutability : string ; type : string ; } | { anonymous : boolean ; inputs : object []; name : string ; outputs : undefined ; stateMutability : undefined ; type : string ; })[] | - |
rulesEngineComponentContract.address | `0x${string}` | - |
policyId | number | The ID of the policy which the calling function belongs to. |
callingFunctionId ? | string | The calling function ID. |
blockParams ? | ContractBlockParameters | Optional parameters to specify block number or tag for the contract read operation. |
Returns
Promise
<CallingFunctionHashMapping
>
A promise that resolves to CallingFunctionHashMapping.