Preparing search index...
The search index is not available
@lit-protocol/js-sdk
@lit-protocol/js-sdk
pkp-client/src
ethers
ethers
utils
_TypedDataEncoder
Class _TypedDataEncoder
Hierarchy
_TypedDataEncoder
Index
Constructors
constructor
Properties
_encoder
Cache
_types
primary
Type
types
Methods
_get
Encoder
_visit
encode
encode
Data
encode
Type
get
Encoder
hash
hash
Struct
visit
encode
from
get
Payload
get
Primary
Type
hash
hash
Domain
hash
Struct
resolve
Names
Constructors
constructor
new _
Typed
Data
Encoder
(
types
:
Record
<
string
,
TypedDataField
[]
>
)
:
_TypedDataEncoder
Parameters
types:
Record
<
string
,
TypedDataField
[]
>
Returns
_TypedDataEncoder
Properties
Readonly
_encoder
Cache
_encoder
Cache
:
Record
<
string
,
(
(
value
:
any
)
=>
string
)
>
Readonly
_types
_types
:
Record
<
string
,
string
>
Readonly
primary
Type
primary
Type
:
string
Readonly
types
types
:
Record
<
string
,
TypedDataField
[]
>
Methods
_get
Encoder
_get
Encoder
(
type
:
string
)
:
(
(
value
:
any
)
=>
string
)
Parameters
type:
string
Returns
(
(
value
:
any
)
=>
string
)
(
value
:
any
)
:
string
Parameters
value:
any
Returns
string
_visit
_visit
(
type
:
string
, value
:
any
, callback
:
(
(
type
:
string
, data
:
any
)
=>
any
)
)
:
any
Parameters
type:
string
value:
any
callback:
(
(
type
:
string
, data
:
any
)
=>
any
)
(
type
:
string
, data
:
any
)
:
any
Parameters
type:
string
data:
any
Returns
any
Returns
any
encode
encode
(
value
:
Record
<
string
,
any
>
)
:
string
Parameters
value:
Record
<
string
,
any
>
Returns
string
encode
Data
encode
Data
(
type
:
string
, value
:
any
)
:
string
Parameters
type:
string
value:
any
Returns
string
encode
Type
encode
Type
(
name
:
string
)
:
string
Parameters
name:
string
Returns
string
get
Encoder
get
Encoder
(
type
:
string
)
:
(
(
value
:
any
)
=>
string
)
Parameters
type:
string
Returns
(
(
value
:
any
)
=>
string
)
(
value
:
any
)
:
string
Parameters
value:
any
Returns
string
hash
hash
(
value
:
Record
<
string
,
any
>
)
:
string
Parameters
value:
Record
<
string
,
any
>
Returns
string
hash
Struct
hash
Struct
(
name
:
string
, value
:
Record
<
string
,
any
>
)
:
string
Parameters
name:
string
value:
Record
<
string
,
any
>
Returns
string
visit
visit
(
value
:
Record
<
string
,
any
>
, callback
:
(
(
type
:
string
, data
:
any
)
=>
any
)
)
:
any
Parameters
value:
Record
<
string
,
any
>
callback:
(
(
type
:
string
, data
:
any
)
=>
any
)
(
type
:
string
, data
:
any
)
:
any
Parameters
type:
string
data:
any
Returns
any
Returns
any
Static
encode
encode
(
domain
:
TypedDataDomain
, types
:
Record
<
string
,
TypedDataField
[]
>
, value
:
Record
<
string
,
any
>
)
:
string
Parameters
domain:
TypedDataDomain
types:
Record
<
string
,
TypedDataField
[]
>
value:
Record
<
string
,
any
>
Returns
string
Static
from
from
(
types
:
Record
<
string
,
TypedDataField
[]
>
)
:
_TypedDataEncoder
Parameters
types:
Record
<
string
,
TypedDataField
[]
>
Returns
_TypedDataEncoder
Static
get
Payload
get
Payload
(
domain
:
TypedDataDomain
, types
:
Record
<
string
,
TypedDataField
[]
>
, value
:
Record
<
string
,
any
>
)
:
any
Parameters
domain:
TypedDataDomain
types:
Record
<
string
,
TypedDataField
[]
>
value:
Record
<
string
,
any
>
Returns
any
Static
get
Primary
Type
get
Primary
Type
(
types
:
Record
<
string
,
TypedDataField
[]
>
)
:
string
Parameters
types:
Record
<
string
,
TypedDataField
[]
>
Returns
string
Static
hash
hash
(
domain
:
TypedDataDomain
, types
:
Record
<
string
,
TypedDataField
[]
>
, value
:
Record
<
string
,
any
>
)
:
string
Parameters
domain:
TypedDataDomain
types:
Record
<
string
,
TypedDataField
[]
>
value:
Record
<
string
,
any
>
Returns
string
Static
hash
Domain
hash
Domain
(
domain
:
TypedDataDomain
)
:
string
Parameters
domain:
TypedDataDomain
Returns
string
Static
hash
Struct
hash
Struct
(
name
:
string
, types
:
Record
<
string
,
TypedDataField
[]
>
, value
:
Record
<
string
,
any
>
)
:
string
Parameters
name:
string
types:
Record
<
string
,
TypedDataField
[]
>
value:
Record
<
string
,
any
>
Returns
string
Static
resolve
Names
resolve
Names
(
domain
:
TypedDataDomain
, types
:
Record
<
string
,
TypedDataField
[]
>
, value
:
Record
<
string
,
any
>
, resolveName
:
(
(
name
:
string
)
=>
Promise
<
string
>
)
)
:
Promise
<
{
domain
:
TypedDataDomain
;
value
:
any
;
}
>
Parameters
domain:
TypedDataDomain
types:
Record
<
string
,
TypedDataField
[]
>
value:
Record
<
string
,
any
>
resolveName:
(
(
name
:
string
)
=>
Promise
<
string
>
)
(
name
:
string
)
:
Promise
<
string
>
Parameters
name:
string
Returns
Promise
<
string
>
Returns
Promise
<
{
domain
:
TypedDataDomain
;
value
:
any
;
}
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@lit-
protocol/js-
sdk
access-
control-
conditions/src
auth-
browser/src
cosmos
Connect
eth
Connect
sol
Connect
auth-
helpers/src
bls-
sdk/src
constants/src
contracts-
sdk/src
core/src
crypto/src
ecdsa-
sdk/src
encryption/src
lit-
auth-
client/src
lit-
node-
client-
nodejs/src
lit-
node-
client/src
logger/src
misc-
browser/src
misc/src
nacl/src
pkp-
base/src
pkp-
client/src
ethers
ethers
constants
providers
utils
RLP
base64
pkp-
cosmos/src
Long
pkp-
ethers/src
pkp-
sui/src
pkp-
walletconnect/src
sev-
snp-
utils-
sdk/src
types/src
uint8arrays/src
wrapped-
keys-
lit-
actions/src
wrapped-
keys/src
_
Typed
Data
Encoder
constructor
_encoder
Cache
_types
primary
Type
types
_get
Encoder
_visit
encode
encode
Data
encode
Type
get
Encoder
hash
hash
Struct
visit
encode
from
get
Payload
get
Primary
Type
hash
hash
Domain
hash
Struct
resolve
Names
Generated using
TypeDoc