UNPKG

ocn-registry

Version:

Oli-systems OCN registry smart contracts

54 lines (51 loc) 2.37 kB
"use strict"; /* Copyright 2019-2020 eMobilify GmbH Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Role = exports.ProposalState = exports.PaymentStatus = exports.RecognizedError = void 0; class RecognizedError extends Error { constructor(message) { super(message); this.name = "CustomError"; Object.setPrototypeOf(this, RecognizedError.prototype); } } exports.RecognizedError = RecognizedError; var PaymentStatus; (function (PaymentStatus) { PaymentStatus[PaymentStatus["PENDING"] = 0] = "PENDING"; PaymentStatus[PaymentStatus["PAYMENT_UP_TO_DATE"] = 1] = "PAYMENT_UP_TO_DATE"; PaymentStatus[PaymentStatus["INSUFFICIENT_FUNDS"] = 2] = "INSUFFICIENT_FUNDS"; PaymentStatus[PaymentStatus["INACTIVE"] = 3] = "INACTIVE"; })(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {})); var ProposalState; (function (ProposalState) { ProposalState[ProposalState["Pending"] = 0] = "Pending"; ProposalState[ProposalState["Active"] = 1] = "Active"; ProposalState[ProposalState["Canceled"] = 2] = "Canceled"; ProposalState[ProposalState["Defeated"] = 3] = "Defeated"; ProposalState[ProposalState["Succeeded"] = 4] = "Succeeded"; ProposalState[ProposalState["Queued"] = 5] = "Queued"; ProposalState[ProposalState["Expired"] = 6] = "Expired"; ProposalState[ProposalState["Executed"] = 7] = "Executed"; })(ProposalState = exports.ProposalState || (exports.ProposalState = {})); var Role; (function (Role) { Role[Role["CPO"] = 0] = "CPO"; Role[Role["EMSP"] = 1] = "EMSP"; Role[Role["NAP"] = 2] = "NAP"; Role[Role["NSP"] = 3] = "NSP"; Role[Role["OTHER"] = 4] = "OTHER"; Role[Role["SCSP"] = 5] = "SCSP"; })(Role = exports.Role || (exports.Role = {})); //# sourceMappingURL=types.js.map