UNPKG

@massalabs/massa-web3

Version:
51 lines 2.17 kB
/** * Operation status. * * @remarks * This enumeration captures the lifecycle stages of a blockchain operation, from initiation to finalization. * * @privateRemarks * Keeps the order of the stages in the lifecycle as it is used by the wait method. */ export var OperationStatus; (function (OperationStatus) { /** * The operation has not been found within the blockchain, either because it is not yet processed or does not exist. */ OperationStatus[OperationStatus["NotFound"] = 0] = "NotFound"; /** * The operation has been recognized and is awaiting inclusion in the blockchain ledger. */ OperationStatus[OperationStatus["PendingInclusion"] = 1] = "PendingInclusion"; /** * The operation has executed successfully; however, the block containing it has not yet been confirmed as final. */ OperationStatus[OperationStatus["SpeculativeSuccess"] = 2] = "SpeculativeSuccess"; /** * The operation has failed; however, the block containing the failure has not yet been confirmed as final. */ OperationStatus[OperationStatus["SpeculativeError"] = 3] = "SpeculativeError"; /** * The operation has executed successfully and the block containing it has been confirmed as final. */ OperationStatus[OperationStatus["Success"] = 4] = "Success"; /** * The operation has failed and the block containing the failure has been confirmed as final. */ OperationStatus[OperationStatus["Error"] = 5] = "Error"; })(OperationStatus || (OperationStatus = {})); /** * Operation types. * * @remarks * The corresponding values are fixed by the node. */ export var OperationType; (function (OperationType) { OperationType[OperationType["Transaction"] = 0] = "Transaction"; OperationType[OperationType["RollBuy"] = 1] = "RollBuy"; OperationType[OperationType["RollSell"] = 2] = "RollSell"; OperationType[OperationType["ExecuteSmartContractBytecode"] = 3] = "ExecuteSmartContractBytecode"; OperationType[OperationType["CallSmartContractFunction"] = 4] = "CallSmartContractFunction"; })(OperationType || (OperationType = {})); //# sourceMappingURL=types.js.map