Skip to main content

Type Alias: GetEventArgs<abi, eventName, config, abiEvent, args, FailedToParseArgs>

type GetEventArgs<abi, eventName, config, abiEvent, args, FailedToParseArgs>: true extends FailedToParseArgs ? readonly unknown[] | Record<string, unknown> : args;

Type Parameters

Type ParameterDefault type

abi extends Abi | readonly unknown[]

eventName extends string

config extends EventParameterOptions

DefaultEventParameterOptions

abiEvent extends AbiEvent & object

abi extends Abi ? ExtractAbiEvent<abi, eventName> : AbiEvent & object

args

AbiEventParametersToPrimitiveTypes<abiEvent["inputs"], config>

FailedToParseArgs

[args] extends [never] ? true : false | readonly unknown[] extends args ? true : false

Defined

@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:324