@rsksmart/rif-storage-pinning
Version:
Application for providing your storage space to other to use in exchange of RIF Tokens
45 lines (44 loc) • 2.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessageCodesEnum = exports.JobState = exports.Strategy = exports.CommunicationTransport = exports.Providers = void 0;
var Providers;
(function (Providers) {
Providers["IPFS"] = "ipfs";
})(Providers = exports.Providers || (exports.Providers = {}));
var CommunicationTransport;
(function (CommunicationTransport) {
CommunicationTransport["Cache"] = "cache";
CommunicationTransport["Libp2p"] = "libp2p";
})(CommunicationTransport = exports.CommunicationTransport || (exports.CommunicationTransport = {}));
var Strategy;
(function (Strategy) {
Strategy["Blockchain"] = "blockchain";
Strategy["Marketplace"] = "marketplace";
})(Strategy = exports.Strategy || (exports.Strategy = {}));
var JobState;
(function (JobState) {
JobState["RUNNING"] = "running";
JobState["BACKOFF"] = "backoff";
JobState["CREATED"] = "created";
JobState["ERRORED"] = "errored";
JobState["FINISHED"] = "finished";
})(JobState = exports.JobState || (exports.JobState = {}));
/****************************************************************************************
* Communications
*/
var MessageCodesEnum;
(function (MessageCodesEnum) {
MessageCodesEnum["I_GENERAL"] = "I_GEN";
MessageCodesEnum["I_AGREEMENT_NEW"] = "I_AGR_NEW";
MessageCodesEnum["I_AGREEMENT_STOPPED"] = "I_AGR_STOP";
MessageCodesEnum["I_AGREEMENT_EXPIRED"] = "I_AGR_EXP";
MessageCodesEnum["I_HASH_START"] = "I_HASH_START";
MessageCodesEnum["I_HASH_PINNED"] = "I_HASH_STOP";
MessageCodesEnum["I_MULTIADDR_ANNOUNCEMENT"] = "I_ADDR_ANNOUNCE";
MessageCodesEnum["I_RESEND_LATEST_MESSAGES"] = "I_RESEND";
MessageCodesEnum["W_GENERAL"] = "W_GEN";
MessageCodesEnum["W_HASH_RETRY"] = "W_HASH_RETRY";
MessageCodesEnum["E_GENERAL"] = "E_GEN";
MessageCodesEnum["E_HASH_NOT_FOUND"] = "E_HASH_404";
MessageCodesEnum["E_AGREEMENT_SIZE_LIMIT_EXCEEDED"] = "E_AGR_SIZE_OVERFLOW";
})(MessageCodesEnum = exports.MessageCodesEnum || (exports.MessageCodesEnum = {}));