Preparing search index...
The search index is not available
@sentio/sdk
@sentio/sdk
aptos
MoveCoder
Class MoveCoder
Hierarchy (
View Summary
)
AbstractMoveCoder
<
MoveModuleBytecode
,
Event
|
MoveResource
>
MoveCoder
Index
Constructors
constructor
Properties
adapter
module
Mapping
Methods
contains
decode
decode
Array
decode
Big
Int
decode
Call
Result
decoded
Struct
decode
Event
decode
Function
Payload
decode
Resource
decode
Type
encode
encode
Array
filter
And
Decode
Events
filter
And
Decode
Resources
filter
And
Decode
Struct
get
Move
Function
get
Move
Struct
load
load
Internal
Constructors
constructor
new
MoveCoder
(
client
:
Aptos
)
:
MoveCoder
Parameters
client
:
Aptos
Returns
MoveCoder
Properties
adapter
adapter
:
ChainAdapter
<
MoveModuleBytecode
,
Event
|
MoveResource
>
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
(
data
:
any
,
type
:
TypeDescriptor
<
any
>
)
:
Promise
<
any
>
Parameters
data
:
any
type
:
TypeDescriptor
<
any
>
Returns
Promise
<
any
>
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
extends
Event
|
MoveResource
>
(
typeStruct
:
ST
,
)
:
Promise
<
undefined
|
DecodedStruct
<
ST
,
T
>
>
Type Parameters
T
ST
extends
Event
|
MoveResource
Parameters
typeStruct
:
ST
Returns
Promise
<
undefined
|
DecodedStruct
<
ST
,
T
>
>
decode
Event
decodeEvent
<
T
>
(
event
:
Event
)
:
Promise
<
undefined
|
TypedEventInstance
<
T
>
>
Type Parameters
T
Parameters
event
:
Event
Returns
Promise
<
undefined
|
TypedEventInstance
<
T
>
>
decode
Function
Payload
decodeFunctionPayload
<
T
extends
any
[]
>
(
payload
:
EntryFunctionPayloadResponse
,
)
:
Promise
<
TypedFunctionPayload
<
T
>
>
Type Parameters
T
extends
any
[]
Parameters
payload
:
EntryFunctionPayloadResponse
Returns
Promise
<
TypedFunctionPayload
<
T
>
>
decode
Resource
decodeResource
<
T
>
(
res
:
MoveResource
)
:
Promise
<
undefined
|
TypedMoveResource
<
T
>
>
Type Parameters
T
Parameters
res
:
MoveResource
Returns
Promise
<
undefined
|
TypedMoveResource
<
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
Events
filterAndDecodeEvents
<
T
>
(
type
:
string
|
TypeDescriptor
<
T
>
,
resources
:
Event
[]
,
)
:
Promise
<
TypedEventInstance
<
T
>
[]
>
Type Parameters
T
Parameters
type
:
string
|
TypeDescriptor
<
T
>
resources
:
Event
[]
Returns
Promise
<
TypedEventInstance
<
T
>
[]
>
filter
And
Decode
Resources
filterAndDecodeResources
<
T
>
(
type
:
string
|
TypeDescriptor
<
T
>
,
resources
:
MoveResource
[]
,
)
:
Promise
<
TypedMoveResource
<
T
>
[]
>
Type Parameters
T
Parameters
type
:
string
|
TypeDescriptor
<
T
>
resources
:
MoveResource
[]
Returns
Promise
<
TypedMoveResource
<
T
>
[]
>
filter
And
Decode
Struct
filterAndDecodeStruct
<
T
,
ST
extends
Event
|
MoveResource
>
(
typeMatcher
:
TypeDescriptor
<
T
>
,
structsWithTags
:
ST
[]
,
)
:
Promise
<
DecodedStruct
<
ST
,
T
>
[]
>
Type Parameters
T
ST
extends
Event
|
MoveResource
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
>
load
load
(
module
:
MoveModuleBytecode
,
address
:
string
)
:
InternalMoveModule
Parameters
module
:
MoveModuleBytecode
address
:
string
Returns
InternalMoveModule
Protected
load
Internal
loadInternal
(
module
:
InternalMoveModule
,
address
:
string
)
:
void
Parameters
module
:
InternalMoveModule
address
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
adapter
module
Mapping
Methods
contains
decode
decode
Array
decode
Big
Int
decode
Call
Result
decoded
Struct
decode
Event
decode
Function
Payload
decode
Resource
decode
Type
encode
encode
Array
filter
And
Decode
Events
filter
And
Decode
Resources
filter
And
Decode
Struct
get
Move
Function
get
Move
Struct
load
load
Internal
@sentio/sdk
Loading...