Documentation
Preparing search index...
@mysten/sui
transactions
ObjectCache
Class ObjectCache
Index
Constructors
constructor
Methods
apply
Effects
as
Plugin
clear
clear
Custom
clear
Owned
Objects
delete
Custom
delete
Objects
get
Custom
get
Move
Function
Definition
get
Objects
set
Custom
Constructors
constructor
new
ObjectCache
(
__namedParameters
:
ObjectCacheOptions
)
:
ObjectCache
Parameters
__namedParameters
:
ObjectCacheOptions
Returns
ObjectCache
Methods
apply
Effects
applyEffects
(
effects
:
EnumOutputShapeWithKeys
<
{
V1
:
{
created
:
[
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
string
;
ConsensusV2
:
{
authenticator
:
{
$kind
:
"SingleOwner"
;
SingleOwner
:
string
}
;
startVersion
:
string
;
}
;
Immutable
:
true
;
ObjectOwner
:
string
;
Shared
:
{
initialSharedVersion
:
string
}
;
}
,
|
"AddressOwner"
|
"ObjectOwner"
|
"Shared"
|
"Immutable"
|
"ConsensusV2"
,
>
,
]
[]
;
deleted
:
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
[]
;
dependencies
:
string
[]
;
eventsDigest
:
null
|
string
;
executedEpoch
:
string
;
gasObject
:
[
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
string
;
ConsensusV2
:
{
authenticator
:
{
$kind
:
"SingleOwner"
;
SingleOwner
:
string
}
;
startVersion
:
string
;
}
;
Immutable
:
true
;
ObjectOwner
:
string
;
Shared
:
{
initialSharedVersion
:
string
}
;
}
,
|
"AddressOwner"
|
"ObjectOwner"
|
"Shared"
|
"Immutable"
|
"ConsensusV2"
,
>
,
]
;
gasUsed
:
{
computationCost
:
string
;
nonRefundableStorageFee
:
string
;
storageCost
:
string
;
storageRebate
:
string
;
}
;
modifiedAtVersions
:
[
string
,
string
]
[]
;
mutated
:
[
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
string
;
ConsensusV2
:
{
authenticator
:
{
$kind
:
"SingleOwner"
;
SingleOwner
:
string
}
;
startVersion
:
string
;
}
;
Immutable
:
true
;
ObjectOwner
:
string
;
Shared
:
{
initialSharedVersion
:
string
}
;
}
,
|
"AddressOwner"
|
"ObjectOwner"
|
"Shared"
|
"Immutable"
|
"ConsensusV2"
,
>
,
]
[]
;
sharedObjects
:
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
[]
;
status
:
EnumOutputShapeWithKeys
<
{
Failed
:
{
command
:
null
|
string
;
error
:
EnumOutputShapeWithKeys
<
{
AddressDeniedForCoin
:
{
address
:
string
;
coinType
:
string
}
;
ArityMismatch
:
true
;
CertificateDenied
:
true
;
CircularObjectOwnership
:
{
object
:
string
}
;
CoinBalanceOverflow
:
true
;
CoinTypeGlobalPause
:
{
coinType
:
string
}
;
CommandArgumentError
:
{
argIdx
:
number
;
kind
:
EnumOutputShapeWithKeys
<
{
IndexOutOfBounds
:
...
;
InvalidArgumentToPrivateEntryFunction
:
...
;
InvalidBCSBytes
:
...
;
InvalidGasCoinUsage
:
...
;
InvalidObjectByMutRef
:
...
;
InvalidObjectByValue
:
...
;
InvalidResultArity
:
...
;
InvalidUsageOfPureArg
:
...
;
InvalidValueUsage
:
...
;
SecondaryIndexOutOfBounds
:
...
;
SharedObjectOperationNotAllowed
:
...
;
TypeMismatch
:
...
;
}
,
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
;
}
;
EffectsTooLarge
:
{
currentSize
:
string
;
maxSize
:
string
}
;
ExecutionCancelledDueToRandomnessUnavailable
:
true
;
ExecutionCancelledDueToSharedObjectCongestion
:
{
congestedObjects
:
string
[]
;
}
;
FeatureNotYetSupported
:
true
;
FunctionNotFound
:
true
;
InputObjectDeleted
:
true
;
InsufficientCoinBalance
:
true
;
InsufficientGas
:
true
;
InvalidGasObject
:
true
;
InvalidPublicFunctionReturnType
:
{
idx
:
number
}
;
InvalidTransferObject
:
true
;
InvariantViolation
:
true
;
MoveAbort
:
[
{
function
:
number
;
functionName
:
(...)
|
(...)
;
instruction
:
number
;
module
:
{
address
:
...
;
name
:
...
}
;
}
,
string
,
]
;
MoveObjectTooBig
:
{
maxObjectSize
:
string
;
objectSize
:
string
}
;
MovePackageTooBig
:
{
maxObjectSize
:
string
;
objectSize
:
string
}
;
MovePrimitiveRuntimeError
:
|
null
|
{
function
:
number
;
functionName
:
(...)
|
(...)
;
instruction
:
number
;
module
:
{
address
:
...
;
name
:
...
}
;
}
;
NonEntryFunctionInvoked
:
true
;
PackageUpgradeError
:
{
upgradeError
:
EnumOutputShapeWithKeys
<
{
DigestDoesNotMatch
:
...
;
IncompatibleUpgrade
:
...
;
NotAPackage
:
...
;
PackageIDDoesNotMatch
:
...
;
UnableToFetchPackage
:
...
;
UnknownUpgradePolicy
:
...
;
}
,
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
;
}
;
PublishErrorNonZeroAddress
:
true
;
PublishUpgradeDependencyDowngrade
:
true
;
PublishUpgradeMissingDependency
:
true
;
SharedObjectOperationNotAllowed
:
true
;
SuiMoveVerificationError
:
true
;
SuiMoveVerificationTimedout
:
true
;
TypeArgumentError
:
{
argumentIdx
:
number
;
kind
:
EnumOutputShapeWithKeys
<
{
ConstraintNotSatisfied
:
...
;
TypeNotFound
:
...
}
,
(...)
|
(...)
,
>
;
}
;
TypeArityMismatch
:
true
;
UnusedValueWithoutDrop
:
{
resultIdx
:
number
;
secondaryIdx
:
number
}
;
VMInvariantViolation
:
true
;
VMVerificationOrDeserializationError
:
true
;
WrittenObjectsTooLarge
:
{
currentSize
:
string
;
maxSize
:
string
}
;
}
,
|
"PackageUpgradeError"
|
"SharedObjectOperationNotAllowed"
|
"CommandArgumentError"
|
"TypeArgumentError"
|
"InsufficientGas"
|
"InvalidGasObject"
|
"InvariantViolation"
|
"FeatureNotYetSupported"
|
"MoveObjectTooBig"
|
"MovePackageTooBig"
|
"CircularObjectOwnership"
|
"InsufficientCoinBalance"
|
"CoinBalanceOverflow"
|
"PublishErrorNonZeroAddress"
|
"SuiMoveVerificationError"
|
"MovePrimitiveRuntimeError"
|
"MoveAbort"
|
"VMVerificationOrDeserializationError"
|
"VMInvariantViolation"
|
"FunctionNotFound"
|
"ArityMismatch"
|
"TypeArityMismatch"
|
"NonEntryFunctionInvoked"
|
"UnusedValueWithoutDrop"
|
"InvalidPublicFunctionReturnType"
|
"InvalidTransferObject"
|
"EffectsTooLarge"
|
"PublishUpgradeMissingDependency"
|
"PublishUpgradeDependencyDowngrade"
|
"WrittenObjectsTooLarge"
|
"CertificateDenied"
|
"SuiMoveVerificationTimedout"
|
"InputObjectDeleted"
|
"ExecutionCancelledDueToSharedObjectCongestion"
|
"AddressDeniedForCoin"
|
"CoinTypeGlobalPause"
|
"ExecutionCancelledDueToRandomnessUnavailable"
,
>
;
}
;
Success
:
true
;
}
,
"Success"
|
"Failed"
,
>
;
transactionDigest
:
string
;
unwrapped
:
[
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
string
;
ConsensusV2
:
{
authenticator
:
{
$kind
:
"SingleOwner"
;
SingleOwner
:
string
}
;
startVersion
:
string
;
}
;
Immutable
:
true
;
ObjectOwner
:
string
;
Shared
:
{
initialSharedVersion
:
string
}
;
}
,
|
"AddressOwner"
|
"ObjectOwner"
|
"Shared"
|
"Immutable"
|
"ConsensusV2"
,
>
,
]
[]
;
unwrappedThenDeleted
:
{
digest
:
string
;
objectId
:
string
;
version
:
string
;
}
[]
;
wrapped
:
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
[]
;
}
;
V2
:
{
auxDataDigest
:
null
|
string
;
changedObjects
:
[
string
,
{
idOperation
:
EnumOutputShapeWithKeys
<
{
Created
:
true
;
Deleted
:
true
;
None
:
true
}
,
"None"
|
"Created"
|
"Deleted"
,
>
;
inputState
:
EnumOutputShapeWithKeys
<
{
Exist
:
[
[
string
,
string
]
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
...
;
ConsensusV2
:
...
;
Immutable
:
...
;
ObjectOwner
:
...
;
Shared
:
...
;
}
,
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
,
]
;
NotExist
:
true
;
}
,
"NotExist"
|
"Exist"
,
>
;
outputState
:
EnumOutputShapeWithKeys
<
{
NotExist
:
true
;
ObjectWrite
:
[
string
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
...
;
ConsensusV2
:
...
;
Immutable
:
...
;
ObjectOwner
:
...
;
Shared
:
...
;
}
,
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
,
]
;
PackageWrite
:
[
string
,
string
]
;
}
,
"NotExist"
|
"ObjectWrite"
|
"PackageWrite"
,
>
;
}
,
]
[]
;
dependencies
:
string
[]
;
eventsDigest
:
null
|
string
;
executedEpoch
:
string
;
gasObjectIndex
:
null
|
number
;
gasUsed
:
{
computationCost
:
string
;
nonRefundableStorageFee
:
string
;
storageCost
:
string
;
storageRebate
:
string
;
}
;
lamportVersion
:
string
;
status
:
EnumOutputShapeWithKeys
<
{
Failed
:
{
command
:
null
|
string
;
error
:
EnumOutputShapeWithKeys
<
{
AddressDeniedForCoin
:
{
address
:
string
;
coinType
:
string
}
;
ArityMismatch
:
true
;
CertificateDenied
:
true
;
CircularObjectOwnership
:
{
object
:
string
}
;
CoinBalanceOverflow
:
true
;
CoinTypeGlobalPause
:
{
coinType
:
string
}
;
CommandArgumentError
:
{
argIdx
:
number
;
kind
:
EnumOutputShapeWithKeys
<
{
IndexOutOfBounds
:
...
;
InvalidArgumentToPrivateEntryFunction
:
...
;
InvalidBCSBytes
:
...
;
InvalidGasCoinUsage
:
...
;
InvalidObjectByMutRef
:
...
;
InvalidObjectByValue
:
...
;
InvalidResultArity
:
...
;
InvalidUsageOfPureArg
:
...
;
InvalidValueUsage
:
...
;
SecondaryIndexOutOfBounds
:
...
;
SharedObjectOperationNotAllowed
:
...
;
TypeMismatch
:
...
;
}
,
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
;
}
;
EffectsTooLarge
:
{
currentSize
:
string
;
maxSize
:
string
}
;
ExecutionCancelledDueToRandomnessUnavailable
:
true
;
ExecutionCancelledDueToSharedObjectCongestion
:
{
congestedObjects
:
string
[]
;
}
;
FeatureNotYetSupported
:
true
;
FunctionNotFound
:
true
;
InputObjectDeleted
:
true
;
InsufficientCoinBalance
:
true
;
InsufficientGas
:
true
;
InvalidGasObject
:
true
;
InvalidPublicFunctionReturnType
:
{
idx
:
number
}
;
InvalidTransferObject
:
true
;
InvariantViolation
:
true
;
MoveAbort
:
[
{
function
:
number
;
functionName
:
(...)
|
(...)
;
instruction
:
number
;
module
:
{
address
:
...
;
name
:
...
}
;
}
,
string
,
]
;
MoveObjectTooBig
:
{
maxObjectSize
:
string
;
objectSize
:
string
}
;
MovePackageTooBig
:
{
maxObjectSize
:
string
;
objectSize
:
string
}
;
MovePrimitiveRuntimeError
:
|
null
|
{
function
:
number
;
functionName
:
(...)
|
(...)
;
instruction
:
number
;
module
:
{
address
:
...
;
name
:
...
}
;
}
;
NonEntryFunctionInvoked
:
true
;
PackageUpgradeError
:
{
upgradeError
:
EnumOutputShapeWithKeys
<
{
DigestDoesNotMatch
:
...
;
IncompatibleUpgrade
:
...
;
NotAPackage
:
...
;
PackageIDDoesNotMatch
:
...
;
UnableToFetchPackage
:
...
;
UnknownUpgradePolicy
:
...
;
}
,
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
;
}
;
PublishErrorNonZeroAddress
:
true
;
PublishUpgradeDependencyDowngrade
:
true
;
PublishUpgradeMissingDependency
:
true
;
SharedObjectOperationNotAllowed
:
true
;
SuiMoveVerificationError
:
true
;
SuiMoveVerificationTimedout
:
true
;
TypeArgumentError
:
{
argumentIdx
:
number
;
kind
:
EnumOutputShapeWithKeys
<
{
ConstraintNotSatisfied
:
...
;
TypeNotFound
:
...
}
,
(...)
|
(...)
,
>
;
}
;
TypeArityMismatch
:
true
;
UnusedValueWithoutDrop
:
{
resultIdx
:
number
;
secondaryIdx
:
number
}
;
VMInvariantViolation
:
true
;
VMVerificationOrDeserializationError
:
true
;
WrittenObjectsTooLarge
:
{
currentSize
:
string
;
maxSize
:
string
}
;
}
,
|
"PackageUpgradeError"
|
"SharedObjectOperationNotAllowed"
|
"CommandArgumentError"
|
"TypeArgumentError"
|
"InsufficientGas"
|
"InvalidGasObject"
|
"InvariantViolation"
|
"FeatureNotYetSupported"
|
"MoveObjectTooBig"
|
"MovePackageTooBig"
|
"CircularObjectOwnership"
|
"InsufficientCoinBalance"
|
"CoinBalanceOverflow"
|
"PublishErrorNonZeroAddress"
|
"SuiMoveVerificationError"
|
"MovePrimitiveRuntimeError"
|
"MoveAbort"
|
"VMVerificationOrDeserializationError"
|
"VMInvariantViolation"
|
"FunctionNotFound"
|
"ArityMismatch"
|
"TypeArityMismatch"
|
"NonEntryFunctionInvoked"
|
"UnusedValueWithoutDrop"
|
"InvalidPublicFunctionReturnType"
|
"InvalidTransferObject"
|
"EffectsTooLarge"
|
"PublishUpgradeMissingDependency"
|
"PublishUpgradeDependencyDowngrade"
|
"WrittenObjectsTooLarge"
|
"CertificateDenied"
|
"SuiMoveVerificationTimedout"
|
"InputObjectDeleted"
|
"ExecutionCancelledDueToSharedObjectCongestion"
|
"AddressDeniedForCoin"
|
"CoinTypeGlobalPause"
|
"ExecutionCancelledDueToRandomnessUnavailable"
,
>
;
}
;
Success
:
true
;
}
,
"Success"
|
"Failed"
,
>
;
transactionDigest
:
string
;
unchangedSharedObjects
:
[
string
,
EnumOutputShapeWithKeys
<
{
Cancelled
:
string
;
MutateDeleted
:
string
;
PerEpochConfig
:
true
;
ReadDeleted
:
string
;
ReadOnlyRoot
:
[
string
,
string
]
;
}
,
|
"ReadOnlyRoot"
|
"MutateDeleted"
|
"ReadDeleted"
|
"Cancelled"
|
"PerEpochConfig"
,
>
,
]
[]
;
}
;
}
,
"V1"
|
"V2"
,
>
,
)
:
Promise
<
void
>
Parameters
effects
:
EnumOutputShapeWithKeys
<
{
V1
:
{
created
:
[
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
string
;
ConsensusV2
:
{
authenticator
:
{
$kind
:
"SingleOwner"
;
SingleOwner
:
string
}
;
startVersion
:
string
;
}
;
Immutable
:
true
;
ObjectOwner
:
string
;
Shared
:
{
initialSharedVersion
:
string
}
;
}
,
"AddressOwner"
|
"ObjectOwner"
|
"Shared"
|
"Immutable"
|
"ConsensusV2"
,
>
,
]
[]
;
deleted
:
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
[]
;
dependencies
:
string
[]
;
eventsDigest
:
null
|
string
;
executedEpoch
:
string
;
gasObject
:
[
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
string
;
ConsensusV2
:
{
authenticator
:
{
$kind
:
"SingleOwner"
;
SingleOwner
:
string
}
;
startVersion
:
string
;
}
;
Immutable
:
true
;
ObjectOwner
:
string
;
Shared
:
{
initialSharedVersion
:
string
}
;
}
,
"AddressOwner"
|
"ObjectOwner"
|
"Shared"
|
"Immutable"
|
"ConsensusV2"
,
>
,
]
;
gasUsed
:
{
computationCost
:
string
;
nonRefundableStorageFee
:
string
;
storageCost
:
string
;
storageRebate
:
string
;
}
;
modifiedAtVersions
:
[
string
,
string
]
[]
;
mutated
:
[
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
string
;
ConsensusV2
:
{
authenticator
:
{
$kind
:
"SingleOwner"
;
SingleOwner
:
string
}
;
startVersion
:
string
;
}
;
Immutable
:
true
;
ObjectOwner
:
string
;
Shared
:
{
initialSharedVersion
:
string
}
;
}
,
"AddressOwner"
|
"ObjectOwner"
|
"Shared"
|
"Immutable"
|
"ConsensusV2"
,
>
,
]
[]
;
sharedObjects
:
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
[]
;
status
:
EnumOutputShapeWithKeys
<
{
Failed
:
{
command
:
null
|
string
;
error
:
EnumOutputShapeWithKeys
<
{
AddressDeniedForCoin
:
{
address
:
string
;
coinType
:
string
}
;
ArityMismatch
:
true
;
CertificateDenied
:
true
;
CircularObjectOwnership
:
{
object
:
string
}
;
CoinBalanceOverflow
:
true
;
CoinTypeGlobalPause
:
{
coinType
:
string
}
;
CommandArgumentError
:
{
argIdx
:
number
;
kind
:
EnumOutputShapeWithKeys
<
{
IndexOutOfBounds
:
...
;
InvalidArgumentToPrivateEntryFunction
:
...
;
InvalidBCSBytes
:
...
;
InvalidGasCoinUsage
:
...
;
InvalidObjectByMutRef
:
...
;
InvalidObjectByValue
:
...
;
InvalidResultArity
:
...
;
InvalidUsageOfPureArg
:
...
;
InvalidValueUsage
:
...
;
SecondaryIndexOutOfBounds
:
...
;
SharedObjectOperationNotAllowed
:
...
;
TypeMismatch
:
...
;
}
,
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
;
}
;
EffectsTooLarge
:
{
currentSize
:
string
;
maxSize
:
string
}
;
ExecutionCancelledDueToRandomnessUnavailable
:
true
;
ExecutionCancelledDueToSharedObjectCongestion
:
{
congestedObjects
:
string
[]
;
}
;
FeatureNotYetSupported
:
true
;
FunctionNotFound
:
true
;
InputObjectDeleted
:
true
;
InsufficientCoinBalance
:
true
;
InsufficientGas
:
true
;
InvalidGasObject
:
true
;
InvalidPublicFunctionReturnType
:
{
idx
:
number
}
;
InvalidTransferObject
:
true
;
InvariantViolation
:
true
;
MoveAbort
:
[
{
function
:
number
;
functionName
:
(...)
|
(...)
;
instruction
:
number
;
module
:
{
address
:
...
;
name
:
...
}
;
}
,
string
,
]
;
MoveObjectTooBig
:
{
maxObjectSize
:
string
;
objectSize
:
string
}
;
MovePackageTooBig
:
{
maxObjectSize
:
string
;
objectSize
:
string
}
;
MovePrimitiveRuntimeError
:
|
null
|
{
function
:
number
;
functionName
:
(...)
|
(...)
;
instruction
:
number
;
module
:
{
address
:
...
;
name
:
...
}
;
}
;
NonEntryFunctionInvoked
:
true
;
PackageUpgradeError
:
{
upgradeError
:
EnumOutputShapeWithKeys
<
{
DigestDoesNotMatch
:
...
;
IncompatibleUpgrade
:
...
;
NotAPackage
:
...
;
PackageIDDoesNotMatch
:
...
;
UnableToFetchPackage
:
...
;
UnknownUpgradePolicy
:
...
;
}
,
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
;
}
;
PublishErrorNonZeroAddress
:
true
;
PublishUpgradeDependencyDowngrade
:
true
;
PublishUpgradeMissingDependency
:
true
;
SharedObjectOperationNotAllowed
:
true
;
SuiMoveVerificationError
:
true
;
SuiMoveVerificationTimedout
:
true
;
TypeArgumentError
:
{
argumentIdx
:
number
;
kind
:
EnumOutputShapeWithKeys
<
{
ConstraintNotSatisfied
:
...
;
TypeNotFound
:
...
}
,
(...)
|
(...)
,
>
;
}
;
TypeArityMismatch
:
true
;
UnusedValueWithoutDrop
:
{
resultIdx
:
number
;
secondaryIdx
:
number
}
;
VMInvariantViolation
:
true
;
VMVerificationOrDeserializationError
:
true
;
WrittenObjectsTooLarge
:
{
currentSize
:
string
;
maxSize
:
string
}
;
}
,
|
"PackageUpgradeError"
|
"SharedObjectOperationNotAllowed"
|
"CommandArgumentError"
|
"TypeArgumentError"
|
"InsufficientGas"
|
"InvalidGasObject"
|
"InvariantViolation"
|
"FeatureNotYetSupported"
|
"MoveObjectTooBig"
|
"MovePackageTooBig"
|
"CircularObjectOwnership"
|
"InsufficientCoinBalance"
|
"CoinBalanceOverflow"
|
"PublishErrorNonZeroAddress"
|
"SuiMoveVerificationError"
|
"MovePrimitiveRuntimeError"
|
"MoveAbort"
|
"VMVerificationOrDeserializationError"
|
"VMInvariantViolation"
|
"FunctionNotFound"
|
"ArityMismatch"
|
"TypeArityMismatch"
|
"NonEntryFunctionInvoked"
|
"UnusedValueWithoutDrop"
|
"InvalidPublicFunctionReturnType"
|
"InvalidTransferObject"
|
"EffectsTooLarge"
|
"PublishUpgradeMissingDependency"
|
"PublishUpgradeDependencyDowngrade"
|
"WrittenObjectsTooLarge"
|
"CertificateDenied"
|
"SuiMoveVerificationTimedout"
|
"InputObjectDeleted"
|
"ExecutionCancelledDueToSharedObjectCongestion"
|
"AddressDeniedForCoin"
|
"CoinTypeGlobalPause"
|
"ExecutionCancelledDueToRandomnessUnavailable"
,
>
;
}
;
Success
:
true
;
}
,
"Success"
|
"Failed"
,
>
;
transactionDigest
:
string
;
unwrapped
:
[
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
string
;
ConsensusV2
:
{
authenticator
:
{
$kind
:
"SingleOwner"
;
SingleOwner
:
string
}
;
startVersion
:
string
;
}
;
Immutable
:
true
;
ObjectOwner
:
string
;
Shared
:
{
initialSharedVersion
:
string
}
;
}
,
"AddressOwner"
|
"ObjectOwner"
|
"Shared"
|
"Immutable"
|
"ConsensusV2"
,
>
,
]
[]
;
unwrappedThenDeleted
:
{
digest
:
string
;
objectId
:
string
;
version
:
string
;
}
[]
;
wrapped
:
{
digest
:
string
;
objectId
:
string
;
version
:
string
}
[]
;
}
;
V2
:
{
auxDataDigest
:
null
|
string
;
changedObjects
:
[
string
,
{
idOperation
:
EnumOutputShapeWithKeys
<
{
Created
:
true
;
Deleted
:
true
;
None
:
true
}
,
"None"
|
"Created"
|
"Deleted"
,
>
;
inputState
:
EnumOutputShapeWithKeys
<
{
Exist
:
[
[
string
,
string
]
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
...
;
ConsensusV2
:
...
;
Immutable
:
...
;
ObjectOwner
:
...
;
Shared
:
...
;
}
,
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
,
]
;
NotExist
:
true
;
}
,
"NotExist"
|
"Exist"
,
>
;
outputState
:
EnumOutputShapeWithKeys
<
{
NotExist
:
true
;
ObjectWrite
:
[
string
,
EnumOutputShapeWithKeys
<
{
AddressOwner
:
...
;
ConsensusV2
:
...
;
Immutable
:
...
;
ObjectOwner
:
...
;
Shared
:
...
;
}
,
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
,
]
;
PackageWrite
:
[
string
,
string
]
;
}
,
"NotExist"
|
"ObjectWrite"
|
"PackageWrite"
,
>
;
}
,
]
[]
;
dependencies
:
string
[]
;
eventsDigest
:
null
|
string
;
executedEpoch
:
string
;
gasObjectIndex
:
null
|
number
;
gasUsed
:
{
computationCost
:
string
;
nonRefundableStorageFee
:
string
;
storageCost
:
string
;
storageRebate
:
string
;
}
;
lamportVersion
:
string
;
status
:
EnumOutputShapeWithKeys
<
{
Failed
:
{
command
:
null
|
string
;
error
:
EnumOutputShapeWithKeys
<
{
AddressDeniedForCoin
:
{
address
:
string
;
coinType
:
string
}
;
ArityMismatch
:
true
;
CertificateDenied
:
true
;
CircularObjectOwnership
:
{
object
:
string
}
;
CoinBalanceOverflow
:
true
;
CoinTypeGlobalPause
:
{
coinType
:
string
}
;
CommandArgumentError
:
{
argIdx
:
number
;
kind
:
EnumOutputShapeWithKeys
<
{
IndexOutOfBounds
:
...
;
InvalidArgumentToPrivateEntryFunction
:
...
;
InvalidBCSBytes
:
...
;
InvalidGasCoinUsage
:
...
;
InvalidObjectByMutRef
:
...
;
InvalidObjectByValue
:
...
;
InvalidResultArity
:
...
;
InvalidUsageOfPureArg
:
...
;
InvalidValueUsage
:
...
;
SecondaryIndexOutOfBounds
:
...
;
SharedObjectOperationNotAllowed
:
...
;
TypeMismatch
:
...
;
}
,
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
;
}
;
EffectsTooLarge
:
{
currentSize
:
string
;
maxSize
:
string
}
;
ExecutionCancelledDueToRandomnessUnavailable
:
true
;
ExecutionCancelledDueToSharedObjectCongestion
:
{
congestedObjects
:
string
[]
;
}
;
FeatureNotYetSupported
:
true
;
FunctionNotFound
:
true
;
InputObjectDeleted
:
true
;
InsufficientCoinBalance
:
true
;
InsufficientGas
:
true
;
InvalidGasObject
:
true
;
InvalidPublicFunctionReturnType
:
{
idx
:
number
}
;
InvalidTransferObject
:
true
;
InvariantViolation
:
true
;
MoveAbort
:
[
{
function
:
number
;
functionName
:
(...)
|
(...)
;
instruction
:
number
;
module
:
{
address
:
...
;
name
:
...
}
;
}
,
string
,
]
;
MoveObjectTooBig
:
{
maxObjectSize
:
string
;
objectSize
:
string
}
;
MovePackageTooBig
:
{
maxObjectSize
:
string
;
objectSize
:
string
}
;
MovePrimitiveRuntimeError
:
|
null
|
{
function
:
number
;
functionName
:
(...)
|
(...)
;
instruction
:
number
;
module
:
{
address
:
...
;
name
:
...
}
;
}
;
NonEntryFunctionInvoked
:
true
;
PackageUpgradeError
:
{
upgradeError
:
EnumOutputShapeWithKeys
<
{
DigestDoesNotMatch
:
...
;
IncompatibleUpgrade
:
...
;
NotAPackage
:
...
;
PackageIDDoesNotMatch
:
...
;
UnableToFetchPackage
:
...
;
UnknownUpgradePolicy
:
...
;
}
,
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
,
>
;
}
;
PublishErrorNonZeroAddress
:
true
;
PublishUpgradeDependencyDowngrade
:
true
;
PublishUpgradeMissingDependency
:
true
;
SharedObjectOperationNotAllowed
:
true
;
SuiMoveVerificationError
:
true
;
SuiMoveVerificationTimedout
:
true
;
TypeArgumentError
:
{
argumentIdx
:
number
;
kind
:
EnumOutputShapeWithKeys
<
{
ConstraintNotSatisfied
:
...
;
TypeNotFound
:
...
}
,
(...)
|
(...)
,
>
;
}
;
TypeArityMismatch
:
true
;
UnusedValueWithoutDrop
:
{
resultIdx
:
number
;
secondaryIdx
:
number
}
;
VMInvariantViolation
:
true
;
VMVerificationOrDeserializationError
:
true
;
WrittenObjectsTooLarge
:
{
currentSize
:
string
;
maxSize
:
string
}
;
}
,
|
"PackageUpgradeError"
|
"SharedObjectOperationNotAllowed"
|
"CommandArgumentError"
|
"TypeArgumentError"
|
"InsufficientGas"
|
"InvalidGasObject"
|
"InvariantViolation"
|
"FeatureNotYetSupported"
|
"MoveObjectTooBig"
|
"MovePackageTooBig"
|
"CircularObjectOwnership"
|
"InsufficientCoinBalance"
|
"CoinBalanceOverflow"
|
"PublishErrorNonZeroAddress"
|
"SuiMoveVerificationError"
|
"MovePrimitiveRuntimeError"
|
"MoveAbort"
|
"VMVerificationOrDeserializationError"
|
"VMInvariantViolation"
|
"FunctionNotFound"
|
"ArityMismatch"
|
"TypeArityMismatch"
|
"NonEntryFunctionInvoked"
|
"UnusedValueWithoutDrop"
|
"InvalidPublicFunctionReturnType"
|
"InvalidTransferObject"
|
"EffectsTooLarge"
|
"PublishUpgradeMissingDependency"
|
"PublishUpgradeDependencyDowngrade"
|
"WrittenObjectsTooLarge"
|
"CertificateDenied"
|
"SuiMoveVerificationTimedout"
|
"InputObjectDeleted"
|
"ExecutionCancelledDueToSharedObjectCongestion"
|
"AddressDeniedForCoin"
|
"CoinTypeGlobalPause"
|
"ExecutionCancelledDueToRandomnessUnavailable"
,
>
;
}
;
Success
:
true
;
}
,
"Success"
|
"Failed"
,
>
;
transactionDigest
:
string
;
unchangedSharedObjects
:
[
string
,
EnumOutputShapeWithKeys
<
{
Cancelled
:
string
;
MutateDeleted
:
string
;
PerEpochConfig
:
true
;
ReadDeleted
:
string
;
ReadOnlyRoot
:
[
string
,
string
]
;
}
,
|
"ReadOnlyRoot"
|
"MutateDeleted"
|
"ReadDeleted"
|
"Cancelled"
|
"PerEpochConfig"
,
>
,
]
[]
;
}
;
}
,
"V1"
|
"V2"
,
>
Returns
Promise
<
void
>
as
Plugin
asPlugin
()
:
TransactionPlugin
Returns
TransactionPlugin
clear
clear
()
:
Promise
<
void
>
Returns
Promise
<
void
>
clear
Custom
clearCustom
()
:
Promise
<
void
>
Returns
Promise
<
void
>
clear
Owned
Objects
clearOwnedObjects
()
:
Promise
<
void
>
Returns
Promise
<
void
>
delete
Custom
deleteCustom
(
key
:
string
)
:
Promise
<
void
>
Parameters
key
:
string
Returns
Promise
<
void
>
delete
Objects
deleteObjects
(
ids
:
string
[]
)
:
Promise
<
void
>
Parameters
ids
:
string
[]
Returns
Promise
<
void
>
get
Custom
getCustom
<
T
>
(
key
:
string
)
:
Promise
<
null
|
T
>
Type Parameters
T
Parameters
key
:
string
Returns
Promise
<
null
|
T
>
get
Move
Function
Definition
getMoveFunctionDefinition
(
ref
:
{
function
:
string
;
module
:
string
;
package
:
string
}
,
)
:
Promise
<
null
|
MoveFunctionCacheEntry
>
Parameters
ref
:
{
function
:
string
;
module
:
string
;
package
:
string
}
Returns
Promise
<
null
|
MoveFunctionCacheEntry
>
get
Objects
getObjects
(
ids
:
string
[]
)
:
Promise
<
(
null
|
ObjectCacheEntry
)
[]
>
Parameters
ids
:
string
[]
Returns
Promise
<
(
null
|
ObjectCacheEntry
)
[]
>
set
Custom
setCustom
<
T
>
(
key
:
string
,
value
:
T
)
:
Promise
<
void
>
Type Parameters
T
Parameters
key
:
string
value
:
T
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
apply
Effects
as
Plugin
clear
clear
Custom
clear
Owned
Objects
delete
Custom
delete
Objects
get
Custom
get
Move
Function
Definition
get
Objects
set
Custom
Documentation
Loading...