forked from ZSLP/zslpjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
46 lines (46 loc) · 2.1 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"use strict";
/// <reference path="./lib/vendors.d.ts"/>
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./lib/slp"));
__export(require("./lib/utils"));
__export(require("./lib/primatives"));
__export(require("./lib/bitdbnetwork"));
__export(require("./lib/localvalidator"));
__export(require("./lib/bitboxnetwork"));
__export(require("./lib/transactionhelpers"));
var bitcore = require("bitcore-lib-cash");
exports.bitcore = bitcore;
var SlpTransactionType;
(function (SlpTransactionType) {
SlpTransactionType["GENESIS"] = "GENESIS";
SlpTransactionType["MINT"] = "MINT";
SlpTransactionType["SEND"] = "SEND";
})(SlpTransactionType = exports.SlpTransactionType || (exports.SlpTransactionType = {}));
var SlpVersionType;
(function (SlpVersionType) {
SlpVersionType[SlpVersionType["TokenVersionType1"] = 1] = "TokenVersionType1";
SlpVersionType[SlpVersionType["TokenVersionType1_NFT_Child"] = 65] = "TokenVersionType1_NFT_Child";
SlpVersionType[SlpVersionType["TokenVersionType1_NFT_Parent"] = 129] = "TokenVersionType1_NFT_Parent";
})(SlpVersionType = exports.SlpVersionType || (exports.SlpVersionType = {}));
// negative values are bad, 0 = NOT_SLP, positive values are a SLP (token or baton)
var SlpUtxoJudgement;
(function (SlpUtxoJudgement) {
SlpUtxoJudgement["UNKNOWN"] = "UNKNOWN";
SlpUtxoJudgement["INVALID_BATON_DAG"] = "INVALID_BATON_DAG";
SlpUtxoJudgement["INVALID_TOKEN_DAG"] = "INVALID_TOKEN_DAG";
SlpUtxoJudgement["NOT_SLP"] = "NOT_SLP";
SlpUtxoJudgement["SLP_TOKEN"] = "SLP_TOKEN";
SlpUtxoJudgement["SLP_BATON"] = "SLP_BATON";
SlpUtxoJudgement["UNSUPPORTED_TYPE"] = "UNSUPPORTED_TYPE";
})(SlpUtxoJudgement = exports.SlpUtxoJudgement || (exports.SlpUtxoJudgement = {}));
var SlpAddressUtxoResult = /** @class */ (function () {
function SlpAddressUtxoResult() {
this.slpUtxoJudgement = SlpUtxoJudgement.UNKNOWN;
}
return SlpAddressUtxoResult;
}());
exports.SlpAddressUtxoResult = SlpAddressUtxoResult;
//# sourceMappingURL=index.js.map