@sentio/sdk
Preparing search index...
move
AbstractMoveCoder
Class AbstractMoveCoder<ModuleType, StructType>
Abstract
Type Parameters
ModuleType
StructType
Hierarchy (
View Summary
)
AbstractMoveCoder
MoveCoder
MoveCoder
MoveCoder
Index
Constructors
constructor
Properties
accounts
adapter
module
Mapping
Methods
contains
decode
decode
Array
decode
Big
Int
decode
Call
Result
decoded
Struct
decode
Type
encode
encode
Array
filter
And
Decode
Struct
get
Move
Function
get
Move
Struct
load
load
Internal
maybe
Get
Move
Enum
Constructors
Protected
constructor
new
AbstractMoveCoder
<
ModuleType
,
StructType
>
(
adapter
:
ChainAdapter
<
ModuleType
,
StructType
>
,
)
:
AbstractMoveCoder
<
ModuleType
,
StructType
>
Type Parameters
ModuleType
StructType
Parameters
adapter
:
ChainAdapter
<
ModuleType
,
StructType
>
Returns
AbstractMoveCoder
<
ModuleType
,
StructType
>
Properties
Protected
accounts
accounts
:
Set
<
string
>
adapter
adapter
:
ChainAdapter
<
ModuleType
,
StructType
>
Protected
module
Mapping
moduleMapping
:
Map
<
string
,
InternalMoveModule
>
Methods
contains
contains
(
account
:
string
,
name
:
string
)
:
boolean
Parameters
account
:
string
name
:
string
Returns
boolean
Protected
decode
decode
<
T
>
(
data
:
any
,
type
:
TypeDescriptor
<
T
>
)
:
Promise
<
T
>
Type Parameters
T
Parameters
data
:
any
type
:
TypeDescriptor
<
T
>
Returns
Promise
<
T
>
decode
Array
decodeArray
(
entries
:
any
[]
,
types
:
TypeDescriptor
<
any
>
[]
,
strict
?:
boolean
,
)
:
Promise
<
any
[]
>
Parameters
entries
:
any
[]
types
:
TypeDescriptor
<
any
>
[]
Optional
strict
:
boolean
Returns
Promise
<
any
[]
>
Protected
decode
Big
Int
decodeBigInt
(
data
:
any
)
:
bigint
Parameters
data
:
any
Returns
bigint
decode
Call
Result
decodeCallResult
(
res
:
any
[]
,
func
:
string
)
:
Promise
<
any
[]
>
Parameters
res
:
any
[]
func
:
string
Returns
Promise
<
any
[]
>
Protected
decoded
Struct
decodedStruct
<
T
,
ST
>
(
typeStruct
:
ST
)
:
Promise
<
undefined
|
DecodedStruct
<
ST
,
T
>
>
Type Parameters
T
ST
Parameters
typeStruct
:
ST
Returns
Promise
<
undefined
|
DecodedStruct
<
ST
,
T
>
>
decode
Type
decodeType
<
T
,
ST
>
(
typeStruct
:
ST
,
type
:
TypeDescriptor
<
T
>
,
)
:
Promise
<
undefined
|
T
>
Type Parameters
T
ST
Parameters
typeStruct
:
ST
type
:
TypeDescriptor
<
T
>
Returns
Promise
<
undefined
|
T
>
encode
encode
(
data
:
any
)
:
any
Parameters
data
:
any
Returns
any
encode
Array
encodeArray
(
entriesDecoded
:
any
[]
)
:
any
[]
Parameters
entriesDecoded
:
any
[]
Returns
any
[]
filter
And
Decode
Struct
filterAndDecodeStruct
<
T
,
ST
>
(
typeMatcher
:
TypeDescriptor
<
T
>
,
structsWithTags
:
ST
[]
,
)
:
Promise
<
DecodedStruct
<
ST
,
T
>
[]
>
Type Parameters
T
ST
Parameters
typeMatcher
:
TypeDescriptor
<
T
>
structsWithTags
:
ST
[]
Returns
Promise
<
DecodedStruct
<
ST
,
T
>
[]
>
get
Move
Function
getMoveFunction
(
type
:
string
)
:
Promise
<
InternalMoveFunction
>
Parameters
type
:
string
Returns
Promise
<
InternalMoveFunction
>
get
Move
Struct
getMoveStruct
(
type
:
string
)
:
Promise
<
InternalMoveStruct
>
Parameters
type
:
string
Returns
Promise
<
InternalMoveStruct
>
Abstract
load
load
(
module
:
ModuleType
,
address
:
string
)
:
InternalMoveModule
Parameters
module
:
ModuleType
address
:
string
Returns
InternalMoveModule
Protected
load
Internal
loadInternal
(
module
:
InternalMoveModule
,
address
:
string
)
:
void
Parameters
module
:
InternalMoveModule
address
:
string
Returns
void
maybe
Get
Move
Enum
maybeGetMoveEnum
(
type
:
string
)
:
Promise
<
undefined
|
InternalMoveEnum
>
Parameters
type
:
string
Returns
Promise
<
undefined
|
InternalMoveEnum
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
accounts
adapter
module
Mapping
Methods
contains
decode
decode
Array
decode
Big
Int
decode
Call
Result
decoded
Struct
decode
Type
encode
encode
Array
filter
And
Decode
Struct
get
Move
Function
get
Move
Struct
load
load
Internal
maybe
Get
Move
Enum
@sentio/sdk
Loading...