Variable: Commands
const
Commands:object
Simple helpers used to construct transactions:
Type declaration
MoveCall()
Parameters
• input: object
| object
Returns
TransactionShape
<"MoveCall"
>
TransferObjects()
Parameters
• objects: (object
| object
| object
| object
)[]
• address: object
| object
| object
| object
Returns
TransactionShape
<"TransferObjects"
>
SplitCoins()
Parameters
• coin: object
| object
| object
| object
• amounts: (object
| object
| object
| object
)[]
Returns
TransactionShape
<"SplitCoins"
>
MergeCoins()
Parameters
• destination: object
| object
| object
| object
• sources: (object
| object
| object
| object
)[]
Returns
TransactionShape
<"MergeCoins"
>
Publish()
Parameters
• __namedParameters
• __namedParameters.modules: string
[] | number
[][]
• __namedParameters.dependencies: string
[]
Returns
TransactionShape
<"Publish"
>
Upgrade()
Parameters
• __namedParameters
• __namedParameters.modules: string
[] | number
[][]
• __namedParameters.dependencies: string
[]
• __namedParameters.package: string
• __namedParameters.ticket: object
| object
| object
| object
Returns
TransactionShape
<"Upgrade"
>
MakeMoveVec()
Parameters
• __namedParameters
• __namedParameters.type?: string
• __namedParameters.elements: (object
| object
| object
| object
)[]
Returns
TransactionShape
<"MakeMoveVec"
>
Intent()
Parameters
• __namedParameters
• __namedParameters.name: string
• __namedParameters.inputs?: Record
<string
, object
| object
| object
| object
| (object
| object
| object
| object
)[]> = {}
• __namedParameters.data?: Record
<string
, unknown
> = {}
Returns
TransactionShape
<"$Intent"
>