postchain-client 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/cjs/index.js +17 -17
- package/built/cjs/index.js.map +1 -1
- package/built/esm/index.js +102 -90
- package/built/esm/index.js.map +1 -1
- package/built/index.d.ts +4 -0
- package/built/index.js +1 -0
- package/built/index.js.map +1 -1
- package/built/src/blockchainClient/blockchainClient.js +1 -1
- package/built/src/blockchainClient/blockchainClient.js.map +1 -1
- package/built/src/blockchainClient/types.d.ts +0 -27
- package/built/src/blockchainClient/types.js.map +1 -1
- package/built/src/formatter.js +1 -1
- package/built/src/formatter.js.map +1 -1
- package/built/umd/index.js +116 -104
- package/built/umd/index.js.map +1 -1
- package/package.json +3 -3
package/built/umd/index.js
CHANGED
|
@@ -6,10 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
|
9
|
-
function getDefaultExportFromCjs (x) {
|
|
10
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
9
|
function getAugmentedNamespace(n) {
|
|
14
10
|
if (n.__esModule) return n;
|
|
15
11
|
var f = n.default;
|
|
@@ -58,7 +54,11 @@
|
|
|
58
54
|
this.octstr();
|
|
59
55
|
});
|
|
60
56
|
|
|
61
|
-
var
|
|
57
|
+
var bnExports$2 = {};
|
|
58
|
+
var bn$2 = {
|
|
59
|
+
get exports(){ return bnExports$2; },
|
|
60
|
+
set exports(v){ bnExports$2 = v; },
|
|
61
|
+
};
|
|
62
62
|
|
|
63
63
|
var _nodeResolve_empty = {};
|
|
64
64
|
|
|
@@ -69,8 +69,6 @@
|
|
|
69
69
|
|
|
70
70
|
var require$$0$3 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
|
|
71
71
|
|
|
72
|
-
bn$2.exports;
|
|
73
|
-
|
|
74
72
|
(function (module) {
|
|
75
73
|
(function (module, exports) {
|
|
76
74
|
|
|
@@ -3514,11 +3512,9 @@
|
|
|
3514
3512
|
var res = this.imod(a._invmp(this.m).mul(this.r2));
|
|
3515
3513
|
return res._forceRed(this);
|
|
3516
3514
|
};
|
|
3517
|
-
})(module, commonjsGlobal);
|
|
3515
|
+
})(module, commonjsGlobal);
|
|
3518
3516
|
} (bn$2));
|
|
3519
3517
|
|
|
3520
|
-
var bnExports$2 = bn$2.exports;
|
|
3521
|
-
|
|
3522
3518
|
class UnexpectedArgumentTypeError extends Error {
|
|
3523
3519
|
constructor(typedArg) {
|
|
3524
3520
|
super(`Cannot parse typedArg ${JSON.stringify(typedArg)}. Unknown type ${typedArg.type}`);
|
|
@@ -3565,7 +3561,7 @@
|
|
|
3565
3561
|
* @returns {string}
|
|
3566
3562
|
*/
|
|
3567
3563
|
function toString(buffer) {
|
|
3568
|
-
return buffer.toString("hex");
|
|
3564
|
+
return buffer.toString("hex").toUpperCase();
|
|
3569
3565
|
}
|
|
3570
3566
|
function toQueryObjectGTV(nameOrObject, queryArguments) {
|
|
3571
3567
|
let name;
|
|
@@ -4245,9 +4241,17 @@
|
|
|
4245
4241
|
|
|
4246
4242
|
var cryptoBrowserify = {};
|
|
4247
4243
|
|
|
4248
|
-
var
|
|
4244
|
+
var browserExports = {};
|
|
4245
|
+
var browser$b = {
|
|
4246
|
+
get exports(){ return browserExports; },
|
|
4247
|
+
set exports(v){ browserExports = v; },
|
|
4248
|
+
};
|
|
4249
4249
|
|
|
4250
|
-
var
|
|
4250
|
+
var safeBufferExports = {};
|
|
4251
|
+
var safeBuffer$1 = {
|
|
4252
|
+
get exports(){ return safeBufferExports; },
|
|
4253
|
+
set exports(v){ safeBufferExports = v; },
|
|
4254
|
+
};
|
|
4251
4255
|
|
|
4252
4256
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4253
4257
|
|
|
@@ -4315,10 +4319,8 @@
|
|
|
4315
4319
|
throw new TypeError('Argument must be a number')
|
|
4316
4320
|
}
|
|
4317
4321
|
return buffer.SlowBuffer(size)
|
|
4318
|
-
};
|
|
4319
|
-
} (safeBuffer$1,
|
|
4320
|
-
|
|
4321
|
-
var safeBufferExports = safeBuffer$1.exports;
|
|
4322
|
+
};
|
|
4323
|
+
} (safeBuffer$1, safeBufferExports));
|
|
4322
4324
|
|
|
4323
4325
|
// limit of Crypto.getRandomValues()
|
|
4324
4326
|
// https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues
|
|
@@ -4369,9 +4371,11 @@
|
|
|
4369
4371
|
return bytes
|
|
4370
4372
|
}
|
|
4371
4373
|
|
|
4372
|
-
var
|
|
4373
|
-
|
|
4374
|
-
|
|
4374
|
+
var inherits_browserExports = {};
|
|
4375
|
+
var inherits_browser = {
|
|
4376
|
+
get exports(){ return inherits_browserExports; },
|
|
4377
|
+
set exports(v){ inherits_browserExports = v; },
|
|
4378
|
+
};
|
|
4375
4379
|
|
|
4376
4380
|
if (typeof Object.create === 'function') {
|
|
4377
4381
|
// implementation from standard node.js 'util' module
|
|
@@ -4401,9 +4405,11 @@
|
|
|
4401
4405
|
};
|
|
4402
4406
|
}
|
|
4403
4407
|
|
|
4404
|
-
var
|
|
4405
|
-
|
|
4406
|
-
|
|
4408
|
+
var readableBrowserExports = {};
|
|
4409
|
+
var readableBrowser = {
|
|
4410
|
+
get exports(){ return readableBrowserExports; },
|
|
4411
|
+
set exports(v){ readableBrowserExports = v; },
|
|
4412
|
+
};
|
|
4407
4413
|
|
|
4408
4414
|
var streamBrowser = require$$0$5.EventEmitter;
|
|
4409
4415
|
|
|
@@ -7448,10 +7454,8 @@
|
|
|
7448
7454
|
exports.Transform = _stream_transform;
|
|
7449
7455
|
exports.PassThrough = _stream_passthrough;
|
|
7450
7456
|
exports.finished = endOfStream;
|
|
7451
|
-
exports.pipeline = pipeline_1;
|
|
7452
|
-
} (readableBrowser,
|
|
7453
|
-
|
|
7454
|
-
var readableBrowserExports = readableBrowser.exports;
|
|
7457
|
+
exports.pipeline = pipeline_1;
|
|
7458
|
+
} (readableBrowser, readableBrowserExports));
|
|
7455
7459
|
|
|
7456
7460
|
var Buffer$C = safeBufferExports.Buffer;
|
|
7457
7461
|
var Transform$5 = readableBrowserExports.Transform;
|
|
@@ -7857,7 +7861,11 @@
|
|
|
7857
7861
|
|
|
7858
7862
|
var ripemd160 = RIPEMD160$4;
|
|
7859
7863
|
|
|
7860
|
-
var
|
|
7864
|
+
var sha_jsExports = {};
|
|
7865
|
+
var sha_js = {
|
|
7866
|
+
get exports(){ return sha_jsExports; },
|
|
7867
|
+
set exports(v){ sha_jsExports = v; },
|
|
7868
|
+
};
|
|
7861
7869
|
|
|
7862
7870
|
var Buffer$z = safeBufferExports.Buffer;
|
|
7863
7871
|
|
|
@@ -8661,8 +8669,6 @@
|
|
|
8661
8669
|
exports$1.sha384 = sha384$1;
|
|
8662
8670
|
exports$1.sha512 = sha512$1;
|
|
8663
8671
|
|
|
8664
|
-
var sha_jsExports = sha_js.exports;
|
|
8665
|
-
|
|
8666
8672
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
8667
8673
|
//
|
|
8668
8674
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -9037,6 +9043,12 @@
|
|
|
9037
9043
|
return new Hmac$2(alg, key)
|
|
9038
9044
|
};
|
|
9039
9045
|
|
|
9046
|
+
var algosExports = {};
|
|
9047
|
+
var algos = {
|
|
9048
|
+
get exports(){ return algosExports; },
|
|
9049
|
+
set exports(v){ algosExports = v; },
|
|
9050
|
+
};
|
|
9051
|
+
|
|
9040
9052
|
var sha224WithRSAEncryption = {
|
|
9041
9053
|
sign: "rsa",
|
|
9042
9054
|
hash: "sha224",
|
|
@@ -9201,7 +9213,9 @@
|
|
|
9201
9213
|
}
|
|
9202
9214
|
};
|
|
9203
9215
|
|
|
9204
|
-
|
|
9216
|
+
(function (module) {
|
|
9217
|
+
module.exports = require$$6;
|
|
9218
|
+
} (algos));
|
|
9205
9219
|
|
|
9206
9220
|
var browser$7 = {};
|
|
9207
9221
|
|
|
@@ -11441,7 +11455,7 @@
|
|
|
11441
11455
|
exports['des-ede'] = {
|
|
11442
11456
|
key: 16,
|
|
11443
11457
|
iv: 0
|
|
11444
|
-
};
|
|
11458
|
+
};
|
|
11445
11459
|
} (modes));
|
|
11446
11460
|
|
|
11447
11461
|
var DES = browserifyDes;
|
|
@@ -11514,12 +11528,16 @@
|
|
|
11514
11528
|
|
|
11515
11529
|
var browser$4 = {};
|
|
11516
11530
|
|
|
11517
|
-
var
|
|
11531
|
+
var brorandExports = {};
|
|
11532
|
+
var brorand = {
|
|
11533
|
+
get exports(){ return brorandExports; },
|
|
11534
|
+
set exports(v){ brorandExports = v; },
|
|
11535
|
+
};
|
|
11518
11536
|
|
|
11519
11537
|
var hasRequiredBrorand;
|
|
11520
11538
|
|
|
11521
11539
|
function requireBrorand () {
|
|
11522
|
-
if (hasRequiredBrorand) return
|
|
11540
|
+
if (hasRequiredBrorand) return brorandExports;
|
|
11523
11541
|
hasRequiredBrorand = 1;
|
|
11524
11542
|
var r;
|
|
11525
11543
|
|
|
@@ -11533,7 +11551,7 @@
|
|
|
11533
11551
|
function Rand(rand) {
|
|
11534
11552
|
this.rand = rand;
|
|
11535
11553
|
}
|
|
11536
|
-
|
|
11554
|
+
brorandExports.Rand = Rand;
|
|
11537
11555
|
|
|
11538
11556
|
Rand.prototype.generate = function generate(len) {
|
|
11539
11557
|
return this._rand(len);
|
|
@@ -11586,7 +11604,7 @@
|
|
|
11586
11604
|
} catch (e) {
|
|
11587
11605
|
}
|
|
11588
11606
|
}
|
|
11589
|
-
return
|
|
11607
|
+
return brorandExports;
|
|
11590
11608
|
}
|
|
11591
11609
|
|
|
11592
11610
|
var mr;
|
|
@@ -12093,11 +12111,17 @@
|
|
|
12093
12111
|
return browser$4;
|
|
12094
12112
|
}
|
|
12095
12113
|
|
|
12096
|
-
var
|
|
12097
|
-
|
|
12098
|
-
|
|
12114
|
+
var signExports = {};
|
|
12115
|
+
var sign$2 = {
|
|
12116
|
+
get exports(){ return signExports; },
|
|
12117
|
+
set exports(v){ signExports = v; },
|
|
12118
|
+
};
|
|
12099
12119
|
|
|
12100
|
-
|
|
12120
|
+
var bnExports$1 = {};
|
|
12121
|
+
var bn$1 = {
|
|
12122
|
+
get exports(){ return bnExports$1; },
|
|
12123
|
+
set exports(v){ bnExports$1 = v; },
|
|
12124
|
+
};
|
|
12101
12125
|
|
|
12102
12126
|
(function (module) {
|
|
12103
12127
|
(function (module, exports) {
|
|
@@ -15447,11 +15471,9 @@
|
|
|
15447
15471
|
var res = this.imod(a._invmp(this.m).mul(this.r2));
|
|
15448
15472
|
return res._forceRed(this);
|
|
15449
15473
|
};
|
|
15450
|
-
})(module, commonjsGlobal);
|
|
15474
|
+
})(module, commonjsGlobal);
|
|
15451
15475
|
} (bn$1));
|
|
15452
15476
|
|
|
15453
|
-
var bnExports$1 = bn$1.exports;
|
|
15454
|
-
|
|
15455
15477
|
var BN$b = bnExports$1;
|
|
15456
15478
|
var randomBytes$2 = browserExports;
|
|
15457
15479
|
|
|
@@ -15622,7 +15644,7 @@
|
|
|
15622
15644
|
return toHex(arr);
|
|
15623
15645
|
else
|
|
15624
15646
|
return arr;
|
|
15625
|
-
};
|
|
15647
|
+
};
|
|
15626
15648
|
} (utils$k));
|
|
15627
15649
|
|
|
15628
15650
|
(function (exports) {
|
|
@@ -15742,7 +15764,7 @@
|
|
|
15742
15764
|
function intFromLE(bytes) {
|
|
15743
15765
|
return new BN(bytes, 'hex', 'le');
|
|
15744
15766
|
}
|
|
15745
|
-
utils.intFromLE = intFromLE;
|
|
15767
|
+
utils.intFromLE = intFromLE;
|
|
15746
15768
|
} (utils$l));
|
|
15747
15769
|
|
|
15748
15770
|
var curve = {};
|
|
@@ -17681,7 +17703,7 @@
|
|
|
17681
17703
|
curve.base = base$1;
|
|
17682
17704
|
curve.short = short;
|
|
17683
17705
|
curve.mont = mont;
|
|
17684
|
-
curve.edwards = edwards;
|
|
17706
|
+
curve.edwards = edwards;
|
|
17685
17707
|
} (curve));
|
|
17686
17708
|
|
|
17687
17709
|
var curves$1 = {};
|
|
@@ -18894,7 +18916,7 @@
|
|
|
18894
18916
|
hash.sha224 = hash.sha.sha224;
|
|
18895
18917
|
hash.sha384 = hash.sha.sha384;
|
|
18896
18918
|
hash.sha512 = hash.sha.sha512;
|
|
18897
|
-
hash.ripemd160 = hash.ripemd.ripemd160;
|
|
18919
|
+
hash.ripemd160 = hash.ripemd.ripemd160;
|
|
18898
18920
|
} (hash$2));
|
|
18899
18921
|
|
|
18900
18922
|
var secp256k1;
|
|
@@ -19891,7 +19913,7 @@
|
|
|
19891
19913
|
'483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',
|
|
19892
19914
|
pre,
|
|
19893
19915
|
],
|
|
19894
|
-
});
|
|
19916
|
+
});
|
|
19895
19917
|
} (curves$1));
|
|
19896
19918
|
|
|
19897
19919
|
var hash$1 = hash$2;
|
|
@@ -20834,14 +20856,16 @@
|
|
|
20834
20856
|
|
|
20835
20857
|
// Protocols
|
|
20836
20858
|
elliptic.ec = requireEc();
|
|
20837
|
-
elliptic.eddsa = eddsa;
|
|
20838
|
-
|
|
20859
|
+
elliptic.eddsa = eddsa;
|
|
20860
|
+
} (elliptic$2));
|
|
20839
20861
|
return elliptic$2;
|
|
20840
20862
|
}
|
|
20841
20863
|
|
|
20842
|
-
var
|
|
20843
|
-
|
|
20844
|
-
|
|
20864
|
+
var bnExports = {};
|
|
20865
|
+
var bn = {
|
|
20866
|
+
get exports(){ return bnExports; },
|
|
20867
|
+
set exports(v){ bnExports = v; },
|
|
20868
|
+
};
|
|
20845
20869
|
|
|
20846
20870
|
(function (module) {
|
|
20847
20871
|
(function (module, exports) {
|
|
@@ -24191,11 +24215,9 @@
|
|
|
24191
24215
|
var res = this.imod(a._invmp(this.m).mul(this.r2));
|
|
24192
24216
|
return res._forceRed(this);
|
|
24193
24217
|
};
|
|
24194
|
-
})(module, commonjsGlobal);
|
|
24218
|
+
})(module, commonjsGlobal);
|
|
24195
24219
|
} (bn));
|
|
24196
24220
|
|
|
24197
|
-
var bnExports = bn.exports;
|
|
24198
|
-
|
|
24199
24221
|
var asn1$3 = {};
|
|
24200
24222
|
|
|
24201
24223
|
var asn1$2 = {};
|
|
@@ -25252,7 +25274,7 @@
|
|
|
25252
25274
|
0x1d: 'charstr',
|
|
25253
25275
|
0x1e: 'bmpstr'
|
|
25254
25276
|
};
|
|
25255
|
-
exports.tagByName = reverse(exports.tag);
|
|
25277
|
+
exports.tagByName = reverse(exports.tag);
|
|
25256
25278
|
} (der$2));
|
|
25257
25279
|
|
|
25258
25280
|
const inherits$3 = inherits_browserExports;
|
|
@@ -25576,7 +25598,7 @@
|
|
|
25576
25598
|
const encoders = exports;
|
|
25577
25599
|
|
|
25578
25600
|
encoders.der = der_1$1;
|
|
25579
|
-
encoders.pem = pem$1;
|
|
25601
|
+
encoders.pem = pem$1;
|
|
25580
25602
|
} (encoders));
|
|
25581
25603
|
|
|
25582
25604
|
var decoders = {};
|
|
@@ -25970,7 +25992,7 @@
|
|
|
25970
25992
|
const decoders = exports;
|
|
25971
25993
|
|
|
25972
25994
|
decoders.der = der_1;
|
|
25973
|
-
decoders.pem = pem;
|
|
25995
|
+
decoders.pem = pem;
|
|
25974
25996
|
} (decoders));
|
|
25975
25997
|
|
|
25976
25998
|
(function (exports) {
|
|
@@ -26029,7 +26051,7 @@
|
|
|
26029
26051
|
|
|
26030
26052
|
Entity.prototype.encode = function encode(data, enc, /* internal */ reporter) {
|
|
26031
26053
|
return this._getEncoder(enc).encode(data, reporter);
|
|
26032
|
-
};
|
|
26054
|
+
};
|
|
26033
26055
|
} (api));
|
|
26034
26056
|
|
|
26035
26057
|
var base = {};
|
|
@@ -26041,7 +26063,7 @@
|
|
|
26041
26063
|
base.Reporter = reporter.Reporter;
|
|
26042
26064
|
base.DecoderBuffer = buffer.DecoderBuffer;
|
|
26043
26065
|
base.EncoderBuffer = buffer.EncoderBuffer;
|
|
26044
|
-
base.Node = node;
|
|
26066
|
+
base.Node = node;
|
|
26045
26067
|
} (base));
|
|
26046
26068
|
|
|
26047
26069
|
var constants = {};
|
|
@@ -26066,7 +26088,7 @@
|
|
|
26066
26088
|
return res;
|
|
26067
26089
|
};
|
|
26068
26090
|
|
|
26069
|
-
constants.der = der$2;
|
|
26091
|
+
constants.der = der$2;
|
|
26070
26092
|
} (constants));
|
|
26071
26093
|
|
|
26072
26094
|
(function (exports) {
|
|
@@ -26079,7 +26101,7 @@
|
|
|
26079
26101
|
asn1.base = base;
|
|
26080
26102
|
asn1.constants = constants;
|
|
26081
26103
|
asn1.decoders = decoders;
|
|
26082
|
-
asn1.encoders = encoders;
|
|
26104
|
+
asn1.encoders = encoders;
|
|
26083
26105
|
} (asn1$2));
|
|
26084
26106
|
|
|
26085
26107
|
var asn = asn1$2;
|
|
@@ -26453,7 +26475,7 @@
|
|
|
26453
26475
|
var hasRequiredSign;
|
|
26454
26476
|
|
|
26455
26477
|
function requireSign () {
|
|
26456
|
-
if (hasRequiredSign) return
|
|
26478
|
+
if (hasRequiredSign) return signExports;
|
|
26457
26479
|
hasRequiredSign = 1;
|
|
26458
26480
|
// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
|
|
26459
26481
|
var Buffer = safeBufferExports.Buffer;
|
|
@@ -26596,9 +26618,9 @@
|
|
|
26596
26618
|
}
|
|
26597
26619
|
|
|
26598
26620
|
sign$2.exports = sign;
|
|
26599
|
-
|
|
26600
|
-
|
|
26601
|
-
return
|
|
26621
|
+
signExports.getKey = getKey;
|
|
26622
|
+
signExports.makeKey = makeKey;
|
|
26623
|
+
return signExports;
|
|
26602
26624
|
}
|
|
26603
26625
|
|
|
26604
26626
|
var verify_1;
|
|
@@ -27177,7 +27199,7 @@
|
|
|
27177
27199
|
|
|
27178
27200
|
exports.publicDecrypt = function publicDecrypt (key, buf) {
|
|
27179
27201
|
return exports.privateDecrypt(key, buf, true)
|
|
27180
|
-
};
|
|
27202
|
+
};
|
|
27181
27203
|
} (browser$1));
|
|
27182
27204
|
|
|
27183
27205
|
var browser = {};
|
|
@@ -27299,8 +27321,8 @@
|
|
|
27299
27321
|
cryptoBrowserify.createHash = cryptoBrowserify.Hash = browser$9;
|
|
27300
27322
|
cryptoBrowserify.createHmac = cryptoBrowserify.Hmac = browser$8;
|
|
27301
27323
|
|
|
27302
|
-
var algos
|
|
27303
|
-
var algoKeys = Object.keys(algos
|
|
27324
|
+
var algos = algosExports;
|
|
27325
|
+
var algoKeys = Object.keys(algos);
|
|
27304
27326
|
var hashes = ['sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'md5', 'rmd160'].concat(algoKeys);
|
|
27305
27327
|
cryptoBrowserify.getHashes = function () {
|
|
27306
27328
|
return hashes
|
|
@@ -28574,7 +28596,6 @@
|
|
|
28574
28596
|
};
|
|
28575
28597
|
var binarytreefactory = { BinaryTreeFactory: BinaryTreeFactory$1 };
|
|
28576
28598
|
|
|
28577
|
-
path.SearchablePathElement;
|
|
28578
28599
|
var HASH_PREFIX_NODE = binarytree.HASH_PREFIX_NODE;
|
|
28579
28600
|
var HASH_PREFIX_NODE_ARRAY = binarytree.HASH_PREFIX_NODE_ARRAY;
|
|
28580
28601
|
var HASH_PREFIX_NODE_DICT = binarytree.HASH_PREFIX_NODE_DICT;
|
|
@@ -28690,14 +28711,11 @@
|
|
|
28690
28711
|
var merkleprooftree = { ProofNode: ProofNode$1, ProofNodeSimple: ProofNodeSimple$1, ProofHashedLeaf: ProofHashedLeaf$2, ProofValueLeaf: ProofValueLeaf$2,
|
|
28691
28712
|
ProofNodeArrayHead: ProofNodeArrayHead$1, ProofNodeDictHead: ProofNodeDictHead$1, MerkleProofElement, MerkleProofTree: MerkleProofTree$1 };
|
|
28692
28713
|
|
|
28693
|
-
binarytree.BinaryTreeElement;
|
|
28694
28714
|
var Node = binarytree.Node;
|
|
28695
28715
|
var Leaf = binarytree.Leaf;
|
|
28696
28716
|
var EmptyLeaf = binarytree.EmptyLeaf;
|
|
28697
|
-
binarytree.BinaryTree;
|
|
28698
28717
|
var ProofHashedLeaf$1 = merkleprooftree.ProofHashedLeaf;
|
|
28699
28718
|
var ProofValueLeaf$1 = merkleprooftree.ProofValueLeaf;
|
|
28700
|
-
merkleprooftree.MerkleProofElement;
|
|
28701
28719
|
var MerkleProofTree = merkleprooftree.MerkleProofTree;
|
|
28702
28720
|
var ProofNodeArrayHead = merkleprooftree.ProofNodeArrayHead;
|
|
28703
28721
|
var ProofNodeDictHead = merkleprooftree.ProofNodeDictHead;
|
|
@@ -28833,11 +28851,6 @@
|
|
|
28833
28851
|
};
|
|
28834
28852
|
var merklehashcarrier = { MerkleHashSummary: MerkleHashSummary$1 };
|
|
28835
28853
|
|
|
28836
|
-
binarytreefactory.BinaryTreeFactory;
|
|
28837
|
-
merkleprooftreefactory.MerkleProofTreeFactory;
|
|
28838
|
-
merklehashcalculator.MerkleHashCalculator;
|
|
28839
|
-
merkleprooftree.MerkleProofTree;
|
|
28840
|
-
merkleprooftree.MerkleProofElement;
|
|
28841
28854
|
var ProofHashedLeaf = merkleprooftree.ProofHashedLeaf;
|
|
28842
28855
|
var ProofValueLeaf = merkleprooftree.ProofValueLeaf;
|
|
28843
28856
|
var ProofNode = merkleprooftree.ProofNode;
|
|
@@ -28914,14 +28927,11 @@
|
|
|
28914
28927
|
};
|
|
28915
28928
|
var merklehashsummaryfactory = { MerkleHashSummaryFactory: MerkleHashSummaryFactory$1 };
|
|
28916
28929
|
|
|
28917
|
-
merklehashcalculator.MerkleHashCalculator;
|
|
28918
28930
|
var MerkleHashSummaryFactory = merklehashsummaryfactory.MerkleHashSummaryFactory;
|
|
28919
28931
|
var BinaryTreeFactory = binarytreefactory.BinaryTreeFactory;
|
|
28920
28932
|
var MerkleProofTreeFactory = merkleprooftreefactory.MerkleProofTreeFactory;
|
|
28921
28933
|
var treeFactory = new BinaryTreeFactory();
|
|
28922
28934
|
var proofFactory = new MerkleProofTreeFactory();
|
|
28923
|
-
path.PathSet;
|
|
28924
|
-
merkleprooftree.MerkleProofTree;
|
|
28925
28935
|
/**
|
|
28926
28936
|
* Calculates the merkle root hash of the structure.
|
|
28927
28937
|
*
|
|
@@ -29309,13 +29319,13 @@
|
|
|
29309
29319
|
createClient: createClient$1
|
|
29310
29320
|
});
|
|
29311
29321
|
|
|
29312
|
-
var ResponseStatus
|
|
29322
|
+
var ResponseStatus;
|
|
29313
29323
|
(function (ResponseStatus) {
|
|
29314
29324
|
ResponseStatus["Confirmed"] = "confirmed";
|
|
29315
29325
|
ResponseStatus["Rejected"] = "rejected";
|
|
29316
29326
|
ResponseStatus["Unknown"] = "unknown";
|
|
29317
29327
|
ResponseStatus["Waiting"] = "waiting";
|
|
29318
|
-
})(ResponseStatus
|
|
29328
|
+
})(ResponseStatus || (ResponseStatus = {}));
|
|
29319
29329
|
var Method;
|
|
29320
29330
|
(function (Method) {
|
|
29321
29331
|
Method["GET"] = "get";
|
|
@@ -29617,16 +29627,16 @@
|
|
|
29617
29627
|
else {
|
|
29618
29628
|
const status = result.status;
|
|
29619
29629
|
switch (status) {
|
|
29620
|
-
case ResponseStatus
|
|
29630
|
+
case ResponseStatus.Confirmed:
|
|
29621
29631
|
resolve(null);
|
|
29622
29632
|
break;
|
|
29623
|
-
case ResponseStatus
|
|
29633
|
+
case ResponseStatus.Rejected:
|
|
29624
29634
|
reject(new TxRejectedError(result.rejectReason));
|
|
29625
29635
|
break;
|
|
29626
|
-
case ResponseStatus
|
|
29636
|
+
case ResponseStatus.Unknown:
|
|
29627
29637
|
reject(new LostMessageError());
|
|
29628
29638
|
break;
|
|
29629
|
-
case ResponseStatus
|
|
29639
|
+
case ResponseStatus.Waiting:
|
|
29630
29640
|
setTimeout(() => this.waitConfirmation(txRID).then(resolve, reject), this.config.pollingInterval);
|
|
29631
29641
|
break;
|
|
29632
29642
|
default:
|
|
@@ -29905,7 +29915,11 @@
|
|
|
29905
29915
|
chromiaClientProvider: chromiaClientProvider
|
|
29906
29916
|
});
|
|
29907
29917
|
|
|
29908
|
-
var
|
|
29918
|
+
var lodashExports = {};
|
|
29919
|
+
var lodash = {
|
|
29920
|
+
get exports(){ return lodashExports; },
|
|
29921
|
+
set exports(v){ lodashExports = v; },
|
|
29922
|
+
};
|
|
29909
29923
|
|
|
29910
29924
|
/**
|
|
29911
29925
|
* @license
|
|
@@ -29915,7 +29929,6 @@
|
|
|
29915
29929
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
29916
29930
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
29917
29931
|
*/
|
|
29918
|
-
lodash.exports;
|
|
29919
29932
|
|
|
29920
29933
|
(function (module, exports) {
|
|
29921
29934
|
(function() {
|
|
@@ -47104,19 +47117,18 @@
|
|
|
47104
47117
|
// Export to the global object.
|
|
47105
47118
|
root._ = _;
|
|
47106
47119
|
}
|
|
47107
|
-
}.call(commonjsGlobal));
|
|
47108
|
-
} (lodash,
|
|
47120
|
+
}.call(commonjsGlobal));
|
|
47121
|
+
} (lodash, lodashExports));
|
|
47109
47122
|
|
|
47110
|
-
var
|
|
47111
|
-
var _ = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
|
|
47123
|
+
var _ = lodashExports;
|
|
47112
47124
|
|
|
47113
|
-
|
|
47125
|
+
exports.ResponseStatus = void 0;
|
|
47114
47126
|
(function (ResponseStatus) {
|
|
47115
47127
|
ResponseStatus["Confirmed"] = "confirmed";
|
|
47116
47128
|
ResponseStatus["Rejected"] = "rejected";
|
|
47117
47129
|
ResponseStatus["Unknown"] = "unknown";
|
|
47118
47130
|
ResponseStatus["Waiting"] = "waiting";
|
|
47119
|
-
})(ResponseStatus || (ResponseStatus = {}));
|
|
47131
|
+
})(exports.ResponseStatus || (exports.ResponseStatus = {}));
|
|
47120
47132
|
|
|
47121
47133
|
class MissingBlockchainError extends Error {
|
|
47122
47134
|
constructor() {
|
|
@@ -47430,7 +47442,7 @@
|
|
|
47430
47442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47431
47443
|
const signMethodIsPrivKey = "privKey" in signMethod;
|
|
47432
47444
|
debug(`signing transaction with ${signMethodIsPrivKey
|
|
47433
|
-
? "privkey: " + signMethod.privKey
|
|
47445
|
+
? "privkey: " + toString(signMethod.privKey)
|
|
47434
47446
|
: "signature provider [pubkey: " + toString(signMethod.pubKey) + "]"}`);
|
|
47435
47447
|
const gtx$1 = getGTXFromBufferOrTransactionOrOperation(transaction, this.config.blockchainRID);
|
|
47436
47448
|
try {
|
|
@@ -47467,7 +47479,7 @@
|
|
|
47467
47479
|
yield handlePostResponsePromisified(error$1, statusCode, rspBody);
|
|
47468
47480
|
if (typeof callback === "function") {
|
|
47469
47481
|
callback(null, {
|
|
47470
|
-
status: ResponseStatus.Waiting,
|
|
47482
|
+
status: exports.ResponseStatus.Waiting,
|
|
47471
47483
|
statusCode,
|
|
47472
47484
|
transactionRID,
|
|
47473
47485
|
});
|
|
@@ -47480,7 +47492,7 @@
|
|
|
47480
47492
|
return reject(_error);
|
|
47481
47493
|
}
|
|
47482
47494
|
promiEvent.emit("sent", {
|
|
47483
|
-
status: ResponseStatus.Waiting,
|
|
47495
|
+
status: exports.ResponseStatus.Waiting,
|
|
47484
47496
|
statusCode: statusCode,
|
|
47485
47497
|
transactionRID,
|
|
47486
47498
|
});
|
|
@@ -47493,16 +47505,16 @@
|
|
|
47493
47505
|
else {
|
|
47494
47506
|
const status = result.status;
|
|
47495
47507
|
switch (status) {
|
|
47496
|
-
case ResponseStatus.Confirmed:
|
|
47497
|
-
resolve(ResponseStatus.Confirmed);
|
|
47508
|
+
case exports.ResponseStatus.Confirmed:
|
|
47509
|
+
resolve(exports.ResponseStatus.Confirmed);
|
|
47498
47510
|
break;
|
|
47499
|
-
case ResponseStatus.Rejected:
|
|
47511
|
+
case exports.ResponseStatus.Rejected:
|
|
47500
47512
|
reject(new TxRejectedError(result.rejectReason));
|
|
47501
47513
|
break;
|
|
47502
|
-
case ResponseStatus.Unknown:
|
|
47514
|
+
case exports.ResponseStatus.Unknown:
|
|
47503
47515
|
reject(new LostMessageError());
|
|
47504
47516
|
break;
|
|
47505
|
-
case ResponseStatus.Waiting:
|
|
47517
|
+
case exports.ResponseStatus.Waiting:
|
|
47506
47518
|
setTimeout(() => waitConfirmation(txRID).then(resolve, reject), this.config.pollingInterval);
|
|
47507
47519
|
break;
|
|
47508
47520
|
default:
|