@tevm/voltaire / primitives/Selector
primitives/Selector
Type Aliases
SelectorLike
SelectorLike =Defined in: src/primitives/Selector/SelectorType.ts:8SelectorType|string|Uint8Array
SelectorType
SelectorType =Defined in: src/primitives/Selector/SelectorType.ts:3Uint8Array&object
Type Declaration
[brand]
readonly[brand]:"Selector"
length
readonlylength:4
Variables
Selector
Defined in: src/primitives/Selector/index.ts:46constSelector:object
Type Declaration
equals()
equals: (Check if two Selectors are equala,b) =>boolean
Parameters
a
SelectorType
b
SelectorType
Returns
boolean
from()
from: (Create Selector from various input typesvalue) =>SelectorType
Parameters
value
SelectorLike
Returns
SelectorType
fromHex()
fromHex: (Create Selector from hex stringhex) =>SelectorType
Parameters
hex
string
Returns
SelectorType
fromSignature()
fromSignature: (Compute Selector from function signaturesignature) =>SelectorType
Parameters
signature
string
Returns
SelectorType
toHex()
toHex: (Convert Selector to hex stringselector) =>string
Parameters
selector
SelectorType
Returns
string
SIZE
Defined in: src/primitives/Selector/SelectorType.ts:10constSIZE:4=4
Functions
equals()
equals(Defined in: src/primitives/Selector/index.ts:41 Check if two Selectors are equala,b):boolean
Parameters
a
SelectorType
b
SelectorType
Returns
boolean
from()
from(Defined in: src/primitives/Selector/index.ts:13 Create Selector from various input typesvalue):SelectorType
Parameters
value
SelectorLike
Returns
SelectorType
fromHex()
fromHex(Defined in: src/primitives/Selector/index.ts:20 Create Selector from hex stringhex):SelectorType
Parameters
hex
string
Returns
SelectorType
fromSignature()
fromSignature(Defined in: src/primitives/Selector/index.ts:27 Compute Selector from function signaturesignature):SelectorType
Parameters
signature
string
Returns
SelectorType
toHex()
toHex(Defined in: src/primitives/Selector/index.ts:34 Convert Selector to hex stringselector):string
Parameters
selector
SelectorType
Returns
string
