Skip to content

Latest commit

 

History

History
296 lines (149 loc) · 4.71 KB

File metadata and controls

296 lines (149 loc) · 4.71 KB

@cyberchain/smart-contract-wrapper


@cyberchain/smart-contract-wrapper / EventFragment

Class: EventFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:291

A Fragment which represents an Event.

Extends

Properties

anonymous

readonly anonymous: boolean

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:295

Whether this event is anonymous.


inputs

readonly inputs: readonly ParamType[]

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:213

The inputs for the fragment.

Inherited from

NamedFragment.inputs


name

readonly name: string

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:256

The name of the fragment.

Inherited from

NamedFragment.name


type

readonly type: FragmentType

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:209

The type of the fragment.

Inherited from

NamedFragment.type

Accessors

topicHash

Get Signature

get topicHash(): string

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:303

The Event topic hash.

Returns

string

Methods

format()

format(format?): string

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:307

Returns a string representation of this event as %%format%%.

Parameters

format?

FormatType

Returns

string

Overrides

NamedFragment.format


from()

static from(obj): EventFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:315

Returns a new EventFragment for %%obj%%.

Parameters

obj

any

Returns

EventFragment

Overrides

NamedFragment.from


getTopicHash()

static getTopicHash(name, params?): string

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:311

Return the topic hash for an event with %%name%% and %%params%%.

Parameters

name

string

params?

any[]

Returns

string


isConstructor()

static isConstructor(value): value is ConstructorFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:230

Returns true if %%value%% is a [[ConstructorFragment]].

Parameters

value

any

Returns

value is ConstructorFragment

Inherited from

NamedFragment.isConstructor


isError()

static isError(value): value is ErrorFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:234

Returns true if %%value%% is an [[ErrorFragment]].

Parameters

value

any

Returns

value is ErrorFragment

Inherited from

NamedFragment.isError


isEvent()

static isEvent(value): value is EventFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:238

Returns true if %%value%% is an [[EventFragment]].

Parameters

value

any

Returns

value is EventFragment

Inherited from

NamedFragment.isEvent


isFragment()

static isFragment(value): value is EventFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:320

Returns true and provides a type guard if %%value%% is an EventFragment.

Parameters

value

any

Returns

value is EventFragment


isFunction()

static isFunction(value): value is FunctionFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:242

Returns true if %%value%% is a [[FunctionFragment]].

Parameters

value

any

Returns

value is FunctionFragment

Inherited from

NamedFragment.isFunction


isStruct()

static isStruct(value): value is StructFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:246

Returns true if %%value%% is a [[StructFragment]].

Parameters

value

any

Returns

value is StructFragment

Inherited from

NamedFragment.isStruct