Timelock Execution Event

Methods in Common functions are also available.

Get Raw Data from Execution Data

judger.getRawExecution()

Returns raw data from execution data.

Returns

Returns string of raw data

Example

judger.getRawExecution()
> 0xac1e50250000000000000000000000000000000000000000000000000000000000000035

Get Call Function

judger.getCallFunction()

Returns name of function that this event called.

Returns

Returns string of function name.

judger.getCallFunction()
> "setWithdrawalFee"

Get Call Parameters

judger.getCallParameters()

Returns parameter list of execution event

Returns

Returns object of parameter name and value which cloud be any type of "bigint" "string" or "boolean"

Example

judger.getCallParameters()
> {
    "_newWithdrawalFee": 1000
}

Get Call Parameter value by Parameter name

judger.getCallParameter(name: string)

Likes getCallParameters() but instead of returns all list of parameters this function only returns the value of specific parameter

Parameters

  1. string - name of the execution parameter

Returns

Returns "bigint" "string" or "boolean", or "undefined"if parameter name does not exists

Example

judger.getCallParameter("_newWithdrawalFee")
> 1000

Last updated