Constructors
constructor
new ObjectCache(__namedParameters: ObjectCacheOptions): ObjectCache Parameters
- __namedParameters: ObjectCacheOptions
Methods
applyEffects
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>
asPlugin
clear
Returns Promise<void>
clearCustom
clearCustom(): Promise<void> Returns Promise<void>
clearOwnedObjects
clearOwnedObjects(): Promise<void> Returns Promise<void>
deleteCustom
deleteCustom(key: string): Promise<void> Returns Promise<void>
deleteObjects
deleteObjects(ids: string[]): Promise<void> Returns Promise<void>
getCustom
getCustom<T>(key: string): Promise<null | T> Returns Promise<null | T>
getMoveFunctionDefinition
getMoveFunctionDefinition( ref: { function: string; module: string; package: string },): Promise<null | MoveFunctionCacheEntry> Parameters
- ref: { function: string; module: string; package: string }
Returns Promise<null | MoveFunctionCacheEntry>
getObjects
getObjects(ids: string[]): Promise<(
null | ObjectCacheEntry)
[]> Returns Promise<(null | ObjectCacheEntry)[]>
setCustom
setCustom<T>(key: string, value: T): Promise<void> Returns Promise<void>