@monerium/sdk 2.2.2 → 2.3.0
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/CHANGELOG.md +30 -0
- package/dist/index.d.ts +28 -20
- package/dist/index.mjs +319 -293
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +12 -5
package/dist/index.mjs
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
if (!
|
|
5
|
-
throw TypeError("Cannot " +
|
|
1
|
+
var ie = Object.defineProperty;
|
|
2
|
+
var se = (e, r, n) => r in e ? ie(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n;
|
|
3
|
+
var L = (e, r, n) => (se(e, typeof r != "symbol" ? r + "" : r, n), n), q = (e, r, n) => {
|
|
4
|
+
if (!r.has(e))
|
|
5
|
+
throw TypeError("Cannot " + n);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
8
|
-
if (
|
|
7
|
+
var T = (e, r, n) => (q(e, r, "read from private field"), n ? n.call(e) : r.get(e)), k = (e, r, n) => {
|
|
8
|
+
if (r.has(e))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
var B = (e,
|
|
13
|
-
var
|
|
14
|
-
function
|
|
10
|
+
r instanceof WeakSet ? r.add(e) : r.set(e, n);
|
|
11
|
+
}, F = (e, r, n, i) => (q(e, r, "write to private field"), i ? i.call(e, n) : r.set(e, n), n);
|
|
12
|
+
var B = (e, r, n) => (q(e, r, "access private method"), n);
|
|
13
|
+
var $ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
14
|
+
function ae(e) {
|
|
15
15
|
if (e.__esModule)
|
|
16
16
|
return e;
|
|
17
|
-
var
|
|
18
|
-
if (typeof
|
|
19
|
-
var
|
|
20
|
-
if (this instanceof
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
var l = Function.bind.apply(
|
|
17
|
+
var r = e.default;
|
|
18
|
+
if (typeof r == "function") {
|
|
19
|
+
var n = function i() {
|
|
20
|
+
if (this instanceof i) {
|
|
21
|
+
var d = [null];
|
|
22
|
+
d.push.apply(d, arguments);
|
|
23
|
+
var l = Function.bind.apply(r, d);
|
|
24
24
|
return new l();
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return r.apply(this, arguments);
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
n.prototype = r.prototype;
|
|
29
29
|
} else
|
|
30
|
-
|
|
31
|
-
return Object.defineProperty(
|
|
32
|
-
var
|
|
33
|
-
Object.defineProperty(
|
|
30
|
+
n = {};
|
|
31
|
+
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(i) {
|
|
32
|
+
var d = Object.getOwnPropertyDescriptor(e, i);
|
|
33
|
+
Object.defineProperty(n, i, d.get ? d : {
|
|
34
34
|
enumerable: !0,
|
|
35
35
|
get: function() {
|
|
36
|
-
return e[
|
|
36
|
+
return e[i];
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
}),
|
|
39
|
+
}), n;
|
|
40
40
|
}
|
|
41
|
-
var D = {},
|
|
41
|
+
var D = {}, ce = {
|
|
42
42
|
get exports() {
|
|
43
43
|
return D;
|
|
44
44
|
},
|
|
@@ -46,35 +46,35 @@ var D = {}, se = {
|
|
|
46
46
|
D = e;
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
function
|
|
49
|
+
function ue(e) {
|
|
50
50
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
51
51
|
}
|
|
52
|
-
var
|
|
52
|
+
var U = {}, fe = {
|
|
53
53
|
get exports() {
|
|
54
|
-
return
|
|
54
|
+
return U;
|
|
55
55
|
},
|
|
56
56
|
set exports(e) {
|
|
57
|
-
|
|
57
|
+
U = e;
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
const
|
|
60
|
+
const he = {}, le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
61
61
|
__proto__: null,
|
|
62
|
-
default:
|
|
63
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
64
|
-
var
|
|
62
|
+
default: he
|
|
63
|
+
}, Symbol.toStringTag, { value: "Module" })), pe = /* @__PURE__ */ ae(le);
|
|
64
|
+
var V;
|
|
65
65
|
function J() {
|
|
66
|
-
return
|
|
67
|
-
(function(
|
|
68
|
-
e.exports =
|
|
69
|
-
})(
|
|
70
|
-
var
|
|
66
|
+
return V || (V = 1, function(e, r) {
|
|
67
|
+
(function(n, i) {
|
|
68
|
+
e.exports = i();
|
|
69
|
+
})($, function() {
|
|
70
|
+
var n = n || function(i, d) {
|
|
71
71
|
var l;
|
|
72
|
-
if (typeof window < "u" && window.crypto && (l = window.crypto), typeof self < "u" && self.crypto && (l = self.crypto), typeof globalThis < "u" && globalThis.crypto && (l = globalThis.crypto), !l && typeof window < "u" && window.msCrypto && (l = window.msCrypto), !l && typeof
|
|
72
|
+
if (typeof window < "u" && window.crypto && (l = window.crypto), typeof self < "u" && self.crypto && (l = self.crypto), typeof globalThis < "u" && globalThis.crypto && (l = globalThis.crypto), !l && typeof window < "u" && window.msCrypto && (l = window.msCrypto), !l && typeof $ < "u" && $.crypto && (l = $.crypto), !l && typeof ue == "function")
|
|
73
73
|
try {
|
|
74
|
-
l =
|
|
74
|
+
l = pe;
|
|
75
75
|
} catch {
|
|
76
76
|
}
|
|
77
|
-
var
|
|
77
|
+
var P = function() {
|
|
78
78
|
if (l) {
|
|
79
79
|
if (typeof l.getRandomValues == "function")
|
|
80
80
|
try {
|
|
@@ -88,14 +88,14 @@ function J() {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
91
|
-
},
|
|
92
|
-
function
|
|
91
|
+
}, R = Object.create || function() {
|
|
92
|
+
function t() {
|
|
93
93
|
}
|
|
94
|
-
return function(
|
|
95
|
-
var
|
|
96
|
-
return
|
|
94
|
+
return function(o) {
|
|
95
|
+
var a;
|
|
96
|
+
return t.prototype = o, a = new t(), t.prototype = null, a;
|
|
97
97
|
};
|
|
98
|
-
}(),
|
|
98
|
+
}(), w = {}, A = w.lib = {}, _ = A.Base = function() {
|
|
99
99
|
return {
|
|
100
100
|
/**
|
|
101
101
|
* Creates a new object that inherits from this object.
|
|
@@ -115,11 +115,11 @@ function J() {
|
|
|
115
115
|
* }
|
|
116
116
|
* });
|
|
117
117
|
*/
|
|
118
|
-
extend: function(
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
|
|
122
|
-
}),
|
|
118
|
+
extend: function(t) {
|
|
119
|
+
var o = R(this);
|
|
120
|
+
return t && o.mixIn(t), (!o.hasOwnProperty("init") || this.init === o.init) && (o.init = function() {
|
|
121
|
+
o.$super.init.apply(this, arguments);
|
|
122
|
+
}), o.init.prototype = o, o.$super = this, o;
|
|
123
123
|
},
|
|
124
124
|
/**
|
|
125
125
|
* Extends this object and runs the init method.
|
|
@@ -134,8 +134,8 @@ function J() {
|
|
|
134
134
|
* var instance = MyType.create();
|
|
135
135
|
*/
|
|
136
136
|
create: function() {
|
|
137
|
-
var
|
|
138
|
-
return
|
|
137
|
+
var t = this.extend();
|
|
138
|
+
return t.init.apply(t, arguments), t;
|
|
139
139
|
},
|
|
140
140
|
/**
|
|
141
141
|
* Initializes a newly created object.
|
|
@@ -162,10 +162,10 @@ function J() {
|
|
|
162
162
|
* field: 'value'
|
|
163
163
|
* });
|
|
164
164
|
*/
|
|
165
|
-
mixIn: function(
|
|
166
|
-
for (var
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
mixIn: function(t) {
|
|
166
|
+
for (var o in t)
|
|
167
|
+
t.hasOwnProperty(o) && (this[o] = t[o]);
|
|
168
|
+
t.hasOwnProperty("toString") && (this.toString = t.toString);
|
|
169
169
|
},
|
|
170
170
|
/**
|
|
171
171
|
* Creates a copy of this object.
|
|
@@ -180,7 +180,7 @@ function J() {
|
|
|
180
180
|
return this.init.prototype.extend(this);
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
}(),
|
|
183
|
+
}(), p = A.WordArray = _.extend({
|
|
184
184
|
/**
|
|
185
185
|
* Initializes a newly created word array.
|
|
186
186
|
*
|
|
@@ -193,8 +193,8 @@ function J() {
|
|
|
193
193
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
194
194
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
195
195
|
*/
|
|
196
|
-
init: function(
|
|
197
|
-
|
|
196
|
+
init: function(t, o) {
|
|
197
|
+
t = this.words = t || [], o != d ? this.sigBytes = o : this.sigBytes = t.length * 4;
|
|
198
198
|
},
|
|
199
199
|
/**
|
|
200
200
|
* Converts this word array to a string.
|
|
@@ -209,8 +209,8 @@ function J() {
|
|
|
209
209
|
* var string = wordArray.toString();
|
|
210
210
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
211
211
|
*/
|
|
212
|
-
toString: function(
|
|
213
|
-
return (
|
|
212
|
+
toString: function(t) {
|
|
213
|
+
return (t || u).stringify(this);
|
|
214
214
|
},
|
|
215
215
|
/**
|
|
216
216
|
* Concatenates a word array to this word array.
|
|
@@ -223,17 +223,17 @@ function J() {
|
|
|
223
223
|
*
|
|
224
224
|
* wordArray1.concat(wordArray2);
|
|
225
225
|
*/
|
|
226
|
-
concat: function(
|
|
227
|
-
var
|
|
226
|
+
concat: function(t) {
|
|
227
|
+
var o = this.words, a = t.words, c = this.sigBytes, v = t.sigBytes;
|
|
228
228
|
if (this.clamp(), c % 4)
|
|
229
|
-
for (var
|
|
230
|
-
var m =
|
|
231
|
-
|
|
229
|
+
for (var y = 0; y < v; y++) {
|
|
230
|
+
var m = a[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
231
|
+
o[c + y >>> 2] |= m << 24 - (c + y) % 4 * 8;
|
|
232
232
|
}
|
|
233
233
|
else
|
|
234
|
-
for (var b = 0; b <
|
|
235
|
-
|
|
236
|
-
return this.sigBytes +=
|
|
234
|
+
for (var b = 0; b < v; b += 4)
|
|
235
|
+
o[c + b >>> 2] = a[b >>> 2];
|
|
236
|
+
return this.sigBytes += v, this;
|
|
237
237
|
},
|
|
238
238
|
/**
|
|
239
239
|
* Removes insignificant bits.
|
|
@@ -243,8 +243,8 @@ function J() {
|
|
|
243
243
|
* wordArray.clamp();
|
|
244
244
|
*/
|
|
245
245
|
clamp: function() {
|
|
246
|
-
var
|
|
247
|
-
|
|
246
|
+
var t = this.words, o = this.sigBytes;
|
|
247
|
+
t[o >>> 2] &= 4294967295 << 32 - o % 4 * 8, t.length = i.ceil(o / 4);
|
|
248
248
|
},
|
|
249
249
|
/**
|
|
250
250
|
* Creates a copy of this word array.
|
|
@@ -256,8 +256,8 @@ function J() {
|
|
|
256
256
|
* var clone = wordArray.clone();
|
|
257
257
|
*/
|
|
258
258
|
clone: function() {
|
|
259
|
-
var
|
|
260
|
-
return
|
|
259
|
+
var t = _.clone.call(this);
|
|
260
|
+
return t.words = this.words.slice(0), t;
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
263
|
* Creates a word array filled with random bytes.
|
|
@@ -272,12 +272,12 @@ function J() {
|
|
|
272
272
|
*
|
|
273
273
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
274
274
|
*/
|
|
275
|
-
random: function(
|
|
276
|
-
for (var
|
|
277
|
-
|
|
278
|
-
return new
|
|
275
|
+
random: function(t) {
|
|
276
|
+
for (var o = [], a = 0; a < t; a += 4)
|
|
277
|
+
o.push(P());
|
|
278
|
+
return new p.init(o, t);
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), g = w.enc = {}, u = g.Hex = {
|
|
281
281
|
/**
|
|
282
282
|
* Converts a word array to a hex string.
|
|
283
283
|
*
|
|
@@ -291,10 +291,10 @@ function J() {
|
|
|
291
291
|
*
|
|
292
292
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
293
293
|
*/
|
|
294
|
-
stringify: function(
|
|
295
|
-
for (var
|
|
296
|
-
var
|
|
297
|
-
c.push((
|
|
294
|
+
stringify: function(t) {
|
|
295
|
+
for (var o = t.words, a = t.sigBytes, c = [], v = 0; v < a; v++) {
|
|
296
|
+
var y = o[v >>> 2] >>> 24 - v % 4 * 8 & 255;
|
|
297
|
+
c.push((y >>> 4).toString(16)), c.push((y & 15).toString(16));
|
|
298
298
|
}
|
|
299
299
|
return c.join("");
|
|
300
300
|
},
|
|
@@ -311,12 +311,12 @@ function J() {
|
|
|
311
311
|
*
|
|
312
312
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
313
313
|
*/
|
|
314
|
-
parse: function(
|
|
315
|
-
for (var
|
|
316
|
-
|
|
317
|
-
return new
|
|
314
|
+
parse: function(t) {
|
|
315
|
+
for (var o = t.length, a = [], c = 0; c < o; c += 2)
|
|
316
|
+
a[c >>> 3] |= parseInt(t.substr(c, 2), 16) << 24 - c % 8 * 4;
|
|
317
|
+
return new p.init(a, o / 2);
|
|
318
318
|
}
|
|
319
|
-
}, h =
|
|
319
|
+
}, h = g.Latin1 = {
|
|
320
320
|
/**
|
|
321
321
|
* Converts a word array to a Latin1 string.
|
|
322
322
|
*
|
|
@@ -330,10 +330,10 @@ function J() {
|
|
|
330
330
|
*
|
|
331
331
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
332
332
|
*/
|
|
333
|
-
stringify: function(
|
|
334
|
-
for (var
|
|
335
|
-
var
|
|
336
|
-
c.push(String.fromCharCode(
|
|
333
|
+
stringify: function(t) {
|
|
334
|
+
for (var o = t.words, a = t.sigBytes, c = [], v = 0; v < a; v++) {
|
|
335
|
+
var y = o[v >>> 2] >>> 24 - v % 4 * 8 & 255;
|
|
336
|
+
c.push(String.fromCharCode(y));
|
|
337
337
|
}
|
|
338
338
|
return c.join("");
|
|
339
339
|
},
|
|
@@ -350,12 +350,12 @@ function J() {
|
|
|
350
350
|
*
|
|
351
351
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
352
352
|
*/
|
|
353
|
-
parse: function(
|
|
354
|
-
for (var
|
|
355
|
-
|
|
356
|
-
return new
|
|
353
|
+
parse: function(t) {
|
|
354
|
+
for (var o = t.length, a = [], c = 0; c < o; c++)
|
|
355
|
+
a[c >>> 2] |= (t.charCodeAt(c) & 255) << 24 - c % 4 * 8;
|
|
356
|
+
return new p.init(a, o);
|
|
357
357
|
}
|
|
358
|
-
},
|
|
358
|
+
}, s = g.Utf8 = {
|
|
359
359
|
/**
|
|
360
360
|
* Converts a word array to a UTF-8 string.
|
|
361
361
|
*
|
|
@@ -369,9 +369,9 @@ function J() {
|
|
|
369
369
|
*
|
|
370
370
|
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
371
371
|
*/
|
|
372
|
-
stringify: function(
|
|
372
|
+
stringify: function(t) {
|
|
373
373
|
try {
|
|
374
|
-
return decodeURIComponent(escape(h.stringify(
|
|
374
|
+
return decodeURIComponent(escape(h.stringify(t)));
|
|
375
375
|
} catch {
|
|
376
376
|
throw new Error("Malformed UTF-8 data");
|
|
377
377
|
}
|
|
@@ -389,10 +389,10 @@ function J() {
|
|
|
389
389
|
*
|
|
390
390
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
391
391
|
*/
|
|
392
|
-
parse: function(
|
|
393
|
-
return h.parse(unescape(encodeURIComponent(
|
|
392
|
+
parse: function(t) {
|
|
393
|
+
return h.parse(unescape(encodeURIComponent(t)));
|
|
394
394
|
}
|
|
395
|
-
}, f =
|
|
395
|
+
}, f = A.BufferedBlockAlgorithm = _.extend({
|
|
396
396
|
/**
|
|
397
397
|
* Resets this block algorithm's data buffer to its initial state.
|
|
398
398
|
*
|
|
@@ -401,7 +401,7 @@ function J() {
|
|
|
401
401
|
* bufferedBlockAlgorithm.reset();
|
|
402
402
|
*/
|
|
403
403
|
reset: function() {
|
|
404
|
-
this._data = new
|
|
404
|
+
this._data = new p.init(), this._nDataBytes = 0;
|
|
405
405
|
},
|
|
406
406
|
/**
|
|
407
407
|
* Adds new data to this block algorithm's buffer.
|
|
@@ -413,8 +413,8 @@ function J() {
|
|
|
413
413
|
* bufferedBlockAlgorithm._append('data');
|
|
414
414
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
415
415
|
*/
|
|
416
|
-
_append: function(
|
|
417
|
-
typeof
|
|
416
|
+
_append: function(t) {
|
|
417
|
+
typeof t == "string" && (t = s.parse(t)), this._data.concat(t), this._nDataBytes += t.sigBytes;
|
|
418
418
|
},
|
|
419
419
|
/**
|
|
420
420
|
* Processes available data blocks.
|
|
@@ -430,16 +430,16 @@ function J() {
|
|
|
430
430
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
431
431
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
432
432
|
*/
|
|
433
|
-
_process: function(
|
|
434
|
-
var
|
|
435
|
-
|
|
436
|
-
var
|
|
437
|
-
if (
|
|
438
|
-
for (var
|
|
439
|
-
this._doProcessBlock(c,
|
|
440
|
-
|
|
433
|
+
_process: function(t) {
|
|
434
|
+
var o, a = this._data, c = a.words, v = a.sigBytes, y = this.blockSize, m = y * 4, b = v / m;
|
|
435
|
+
t ? b = i.ceil(b) : b = i.max((b | 0) - this._minBufferSize, 0);
|
|
436
|
+
var O = b * y, H = i.min(O * 4, v);
|
|
437
|
+
if (O) {
|
|
438
|
+
for (var M = 0; M < O; M += y)
|
|
439
|
+
this._doProcessBlock(c, M);
|
|
440
|
+
o = c.splice(0, O), a.sigBytes -= H;
|
|
441
441
|
}
|
|
442
|
-
return new
|
|
442
|
+
return new p.init(o, H);
|
|
443
443
|
},
|
|
444
444
|
/**
|
|
445
445
|
* Creates a copy of this object.
|
|
@@ -451,16 +451,16 @@ function J() {
|
|
|
451
451
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
452
452
|
*/
|
|
453
453
|
clone: function() {
|
|
454
|
-
var
|
|
455
|
-
return
|
|
454
|
+
var t = _.clone.call(this);
|
|
455
|
+
return t._data = this._data.clone(), t;
|
|
456
456
|
},
|
|
457
457
|
_minBufferSize: 0
|
|
458
458
|
});
|
|
459
|
-
|
|
459
|
+
A.Hasher = f.extend({
|
|
460
460
|
/**
|
|
461
461
|
* Configuration options.
|
|
462
462
|
*/
|
|
463
|
-
cfg:
|
|
463
|
+
cfg: _.extend(),
|
|
464
464
|
/**
|
|
465
465
|
* Initializes a newly created hasher.
|
|
466
466
|
*
|
|
@@ -470,8 +470,8 @@ function J() {
|
|
|
470
470
|
*
|
|
471
471
|
* var hasher = CryptoJS.algo.SHA256.create();
|
|
472
472
|
*/
|
|
473
|
-
init: function(
|
|
474
|
-
this.cfg = this.cfg.extend(
|
|
473
|
+
init: function(t) {
|
|
474
|
+
this.cfg = this.cfg.extend(t), this.reset();
|
|
475
475
|
},
|
|
476
476
|
/**
|
|
477
477
|
* Resets this hasher to its initial state.
|
|
@@ -495,8 +495,8 @@ function J() {
|
|
|
495
495
|
* hasher.update('message');
|
|
496
496
|
* hasher.update(wordArray);
|
|
497
497
|
*/
|
|
498
|
-
update: function(
|
|
499
|
-
return this._append(
|
|
498
|
+
update: function(t) {
|
|
499
|
+
return this._append(t), this._process(), this;
|
|
500
500
|
},
|
|
501
501
|
/**
|
|
502
502
|
* Finalizes the hash computation.
|
|
@@ -512,10 +512,10 @@ function J() {
|
|
|
512
512
|
* var hash = hasher.finalize('message');
|
|
513
513
|
* var hash = hasher.finalize(wordArray);
|
|
514
514
|
*/
|
|
515
|
-
finalize: function(
|
|
516
|
-
|
|
517
|
-
var
|
|
518
|
-
return
|
|
515
|
+
finalize: function(t) {
|
|
516
|
+
t && this._append(t);
|
|
517
|
+
var o = this._doFinalize();
|
|
518
|
+
return o;
|
|
519
519
|
},
|
|
520
520
|
blockSize: 16,
|
|
521
521
|
/**
|
|
@@ -531,9 +531,9 @@ function J() {
|
|
|
531
531
|
*
|
|
532
532
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
533
533
|
*/
|
|
534
|
-
_createHelper: function(
|
|
535
|
-
return function(
|
|
536
|
-
return new
|
|
534
|
+
_createHelper: function(t) {
|
|
535
|
+
return function(o, a) {
|
|
536
|
+
return new t.init(a).finalize(o);
|
|
537
537
|
};
|
|
538
538
|
},
|
|
539
539
|
/**
|
|
@@ -549,26 +549,26 @@ function J() {
|
|
|
549
549
|
*
|
|
550
550
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
551
551
|
*/
|
|
552
|
-
_createHmacHelper: function(
|
|
553
|
-
return function(
|
|
554
|
-
return new x.HMAC.init(
|
|
552
|
+
_createHmacHelper: function(t) {
|
|
553
|
+
return function(o, a) {
|
|
554
|
+
return new x.HMAC.init(t, a).finalize(o);
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
|
-
var x =
|
|
559
|
-
return
|
|
558
|
+
var x = w.algo = {};
|
|
559
|
+
return w;
|
|
560
560
|
}(Math);
|
|
561
|
-
return
|
|
561
|
+
return n;
|
|
562
562
|
});
|
|
563
|
-
}(
|
|
563
|
+
}(fe)), U;
|
|
564
564
|
}
|
|
565
|
-
(function(e,
|
|
566
|
-
(function(
|
|
567
|
-
e.exports =
|
|
568
|
-
})(
|
|
565
|
+
(function(e, r) {
|
|
566
|
+
(function(n, i) {
|
|
567
|
+
e.exports = i(J());
|
|
568
|
+
})($, function(n) {
|
|
569
569
|
return function() {
|
|
570
|
-
var
|
|
571
|
-
|
|
570
|
+
var i = n, d = i.lib, l = d.WordArray, P = i.enc;
|
|
571
|
+
P.Base64url = {
|
|
572
572
|
/**
|
|
573
573
|
* Converts a word array to a Base64url string.
|
|
574
574
|
*
|
|
@@ -584,16 +584,16 @@ function J() {
|
|
|
584
584
|
*
|
|
585
585
|
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
586
586
|
*/
|
|
587
|
-
stringify: function(
|
|
588
|
-
var
|
|
589
|
-
|
|
590
|
-
for (var u = [], h = 0; h <
|
|
591
|
-
for (var
|
|
592
|
-
u.push(
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
587
|
+
stringify: function(w, A = !0) {
|
|
588
|
+
var _ = w.words, p = w.sigBytes, g = A ? this._safe_map : this._map;
|
|
589
|
+
w.clamp();
|
|
590
|
+
for (var u = [], h = 0; h < p; h += 3)
|
|
591
|
+
for (var s = _[h >>> 2] >>> 24 - h % 4 * 8 & 255, f = _[h + 1 >>> 2] >>> 24 - (h + 1) % 4 * 8 & 255, x = _[h + 2 >>> 2] >>> 24 - (h + 2) % 4 * 8 & 255, t = s << 16 | f << 8 | x, o = 0; o < 4 && h + o * 0.75 < p; o++)
|
|
592
|
+
u.push(g.charAt(t >>> 6 * (3 - o) & 63));
|
|
593
|
+
var a = g.charAt(64);
|
|
594
|
+
if (a)
|
|
595
595
|
for (; u.length % 4; )
|
|
596
|
-
u.push(
|
|
596
|
+
u.push(a);
|
|
597
597
|
return u.join("");
|
|
598
598
|
},
|
|
599
599
|
/**
|
|
@@ -611,99 +611,131 @@ function J() {
|
|
|
611
611
|
*
|
|
612
612
|
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
613
613
|
*/
|
|
614
|
-
parse: function(
|
|
615
|
-
var
|
|
616
|
-
if (!
|
|
617
|
-
|
|
618
|
-
for (var u = 0; u <
|
|
619
|
-
|
|
614
|
+
parse: function(w, A = !0) {
|
|
615
|
+
var _ = w.length, p = A ? this._safe_map : this._map, g = this._reverseMap;
|
|
616
|
+
if (!g) {
|
|
617
|
+
g = this._reverseMap = [];
|
|
618
|
+
for (var u = 0; u < p.length; u++)
|
|
619
|
+
g[p.charCodeAt(u)] = u;
|
|
620
620
|
}
|
|
621
|
-
var h =
|
|
621
|
+
var h = p.charAt(64);
|
|
622
622
|
if (h) {
|
|
623
|
-
var
|
|
624
|
-
|
|
623
|
+
var s = w.indexOf(h);
|
|
624
|
+
s !== -1 && (_ = s);
|
|
625
625
|
}
|
|
626
|
-
return
|
|
626
|
+
return R(w, _, g);
|
|
627
627
|
},
|
|
628
628
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
629
629
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
630
630
|
};
|
|
631
|
-
function
|
|
632
|
-
for (var
|
|
631
|
+
function R(w, A, _) {
|
|
632
|
+
for (var p = [], g = 0, u = 0; u < A; u++)
|
|
633
633
|
if (u % 4) {
|
|
634
|
-
var h =
|
|
635
|
-
|
|
634
|
+
var h = _[w.charCodeAt(u - 1)] << u % 4 * 2, s = _[w.charCodeAt(u)] >>> 6 - u % 4 * 2, f = h | s;
|
|
635
|
+
p[g >>> 2] |= f << 24 - g % 4 * 8, g++;
|
|
636
636
|
}
|
|
637
|
-
return l.create(
|
|
637
|
+
return l.create(p, g);
|
|
638
638
|
}
|
|
639
|
-
}(),
|
|
639
|
+
}(), n.enc.Base64url;
|
|
640
640
|
});
|
|
641
|
-
})(
|
|
642
|
-
var
|
|
641
|
+
})(ce);
|
|
642
|
+
var G = {}, de = {
|
|
643
643
|
get exports() {
|
|
644
|
-
return
|
|
644
|
+
return G;
|
|
645
645
|
},
|
|
646
646
|
set exports(e) {
|
|
647
|
-
|
|
647
|
+
G = e;
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
|
-
(function(e,
|
|
651
|
-
(function(
|
|
652
|
-
e.exports =
|
|
653
|
-
})(
|
|
654
|
-
return function(
|
|
655
|
-
var
|
|
650
|
+
(function(e, r) {
|
|
651
|
+
(function(n, i) {
|
|
652
|
+
e.exports = i(J());
|
|
653
|
+
})($, function(n) {
|
|
654
|
+
return function(i) {
|
|
655
|
+
var d = n, l = d.lib, P = l.WordArray, R = l.Hasher, w = d.algo, A = [], _ = [];
|
|
656
656
|
(function() {
|
|
657
657
|
function u(x) {
|
|
658
|
-
for (var
|
|
659
|
-
if (!(x %
|
|
658
|
+
for (var t = i.sqrt(x), o = 2; o <= t; o++)
|
|
659
|
+
if (!(x % o))
|
|
660
660
|
return !1;
|
|
661
661
|
return !0;
|
|
662
662
|
}
|
|
663
663
|
function h(x) {
|
|
664
664
|
return (x - (x | 0)) * 4294967296 | 0;
|
|
665
665
|
}
|
|
666
|
-
for (var
|
|
667
|
-
u(
|
|
666
|
+
for (var s = 2, f = 0; f < 64; )
|
|
667
|
+
u(s) && (f < 8 && (A[f] = h(i.pow(s, 1 / 2))), _[f] = h(i.pow(s, 1 / 3)), f++), s++;
|
|
668
668
|
})();
|
|
669
|
-
var
|
|
669
|
+
var p = [], g = w.SHA256 = R.extend({
|
|
670
670
|
_doReset: function() {
|
|
671
|
-
this._hash = new
|
|
671
|
+
this._hash = new P.init(A.slice(0));
|
|
672
672
|
},
|
|
673
673
|
_doProcessBlock: function(u, h) {
|
|
674
|
-
for (var
|
|
674
|
+
for (var s = this._hash.words, f = s[0], x = s[1], t = s[2], o = s[3], a = s[4], c = s[5], v = s[6], y = s[7], m = 0; m < 64; m++) {
|
|
675
675
|
if (m < 16)
|
|
676
|
-
|
|
676
|
+
p[m] = u[h + m] | 0;
|
|
677
677
|
else {
|
|
678
|
-
var b =
|
|
679
|
-
|
|
678
|
+
var b = p[m - 15], O = (b << 25 | b >>> 7) ^ (b << 14 | b >>> 18) ^ b >>> 3, H = p[m - 2], M = (H << 15 | H >>> 17) ^ (H << 13 | H >>> 19) ^ H >>> 10;
|
|
679
|
+
p[m] = O + p[m - 7] + M + p[m - 16];
|
|
680
680
|
}
|
|
681
|
-
var
|
|
682
|
-
|
|
681
|
+
var ee = a & c ^ ~a & v, re = f & x ^ f & t ^ x & t, te = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), ne = (a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25), N = y + ne + ee + _[m] + p[m], oe = te + re;
|
|
682
|
+
y = v, v = c, c = a, a = o + N | 0, o = t, t = x, x = f, f = N + oe | 0;
|
|
683
683
|
}
|
|
684
|
-
|
|
684
|
+
s[0] = s[0] + f | 0, s[1] = s[1] + x | 0, s[2] = s[2] + t | 0, s[3] = s[3] + o | 0, s[4] = s[4] + a | 0, s[5] = s[5] + c | 0, s[6] = s[6] + v | 0, s[7] = s[7] + y | 0;
|
|
685
685
|
},
|
|
686
686
|
_doFinalize: function() {
|
|
687
|
-
var u = this._data, h = u.words,
|
|
688
|
-
return h[f >>> 5] |= 128 << 24 - f % 32, h[(f + 64 >>> 9 << 4) + 14] =
|
|
687
|
+
var u = this._data, h = u.words, s = this._nDataBytes * 8, f = u.sigBytes * 8;
|
|
688
|
+
return h[f >>> 5] |= 128 << 24 - f % 32, h[(f + 64 >>> 9 << 4) + 14] = i.floor(s / 4294967296), h[(f + 64 >>> 9 << 4) + 15] = s, u.sigBytes = h.length * 4, this._process(), this._hash;
|
|
689
689
|
},
|
|
690
690
|
clone: function() {
|
|
691
|
-
var u =
|
|
691
|
+
var u = R.clone.call(this);
|
|
692
692
|
return u._hash = this._hash.clone(), u;
|
|
693
693
|
}
|
|
694
694
|
});
|
|
695
|
-
|
|
696
|
-
}(Math),
|
|
695
|
+
d.SHA256 = R._createHelper(g), d.HmacSHA256 = R._createHmacHelper(g);
|
|
696
|
+
}(Math), n.SHA256;
|
|
697
697
|
});
|
|
698
|
-
})(
|
|
699
|
-
const
|
|
698
|
+
})(de);
|
|
699
|
+
const ve = () => {
|
|
700
700
|
let e = "";
|
|
701
|
-
const
|
|
702
|
-
let
|
|
703
|
-
for (;
|
|
704
|
-
e +=
|
|
701
|
+
const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", n = r.length;
|
|
702
|
+
let i = 0;
|
|
703
|
+
for (; i < 128; )
|
|
704
|
+
e += r.charAt(Math.floor(Math.random() * n)), i += 1;
|
|
705
705
|
return e;
|
|
706
|
-
},
|
|
706
|
+
}, ge = async (e, r, n, i) => {
|
|
707
|
+
const d = await fetch(`${e}`, {
|
|
708
|
+
method: r,
|
|
709
|
+
headers: i,
|
|
710
|
+
body: n
|
|
711
|
+
});
|
|
712
|
+
let l;
|
|
713
|
+
const P = await d.text();
|
|
714
|
+
try {
|
|
715
|
+
l = JSON.parse(P);
|
|
716
|
+
} catch {
|
|
717
|
+
throw P;
|
|
718
|
+
}
|
|
719
|
+
if (!d.ok)
|
|
720
|
+
throw l;
|
|
721
|
+
return l;
|
|
722
|
+
}, ye = (e) => {
|
|
723
|
+
if (e.toString() === "Invalid Date")
|
|
724
|
+
throw e;
|
|
725
|
+
const r = (i) => i < 10 ? "0" + i : i, n = (i) => {
|
|
726
|
+
if (i === 0)
|
|
727
|
+
return "Z";
|
|
728
|
+
const d = i > 0 ? "-" : "+";
|
|
729
|
+
return i = Math.abs(i), d + r(Math.floor(i / 60)) + ":" + r(i % 60);
|
|
730
|
+
};
|
|
731
|
+
return e.getFullYear() + "-" + r(e.getMonth() + 1) + "-" + r(e.getDate()) + "T" + r(e.getHours()) + ":" + r(e.getMinutes()) + ":" + r(e.getSeconds()) + n(e.getTimezoneOffset());
|
|
732
|
+
}, He = ({
|
|
733
|
+
currency: e,
|
|
734
|
+
amount: r,
|
|
735
|
+
iban: n
|
|
736
|
+
}) => `Send ${e.toUpperCase()} ${r} to ${n} at ${ye(
|
|
737
|
+
/* @__PURE__ */ new Date()
|
|
738
|
+
)}`, _e = {
|
|
707
739
|
environments: {
|
|
708
740
|
production: {
|
|
709
741
|
api: "https://api.monerium.app",
|
|
@@ -715,37 +747,37 @@ const de = () => {
|
|
|
715
747
|
}
|
|
716
748
|
}
|
|
717
749
|
};
|
|
718
|
-
var
|
|
719
|
-
class
|
|
720
|
-
constructor(
|
|
750
|
+
var z, E, S, C, W, Z, I, Q, j, X;
|
|
751
|
+
class ke {
|
|
752
|
+
constructor(r = "sandbox") {
|
|
721
753
|
// -- Helper Methods
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
754
|
+
k(this, S);
|
|
755
|
+
k(this, W);
|
|
756
|
+
k(this, I);
|
|
757
|
+
k(this, j);
|
|
758
|
+
k(this, z, void 0);
|
|
759
|
+
k(this, E, void 0);
|
|
728
760
|
/** The PKCE code verifier */
|
|
729
|
-
|
|
730
|
-
|
|
761
|
+
L(this, "codeVerifier");
|
|
762
|
+
L(this, "bearerProfile");
|
|
731
763
|
/**
|
|
732
764
|
* @deprecated since v2.0.7, use {@link getAuthFlowURI} instead.
|
|
733
765
|
*/
|
|
734
|
-
|
|
735
|
-
|
|
766
|
+
L(this, "pkceRequest", (r) => this.getAuthFlowURI(r));
|
|
767
|
+
F(this, z, _e.environments[r]);
|
|
736
768
|
}
|
|
737
769
|
// -- Authentication
|
|
738
|
-
async auth(
|
|
739
|
-
let
|
|
740
|
-
if (B(this,
|
|
741
|
-
|
|
742
|
-
else if (B(this,
|
|
743
|
-
|
|
744
|
-
else if (B(this,
|
|
745
|
-
|
|
770
|
+
async auth(r) {
|
|
771
|
+
let n;
|
|
772
|
+
if (B(this, W, Z).call(this, r))
|
|
773
|
+
n = { ...r, grant_type: "authorization_code" };
|
|
774
|
+
else if (B(this, I, Q).call(this, r))
|
|
775
|
+
n = { ...r, grant_type: "refresh_token" };
|
|
776
|
+
else if (B(this, j, X).call(this, r))
|
|
777
|
+
n = { ...r, grant_type: "client_credentials" };
|
|
746
778
|
else
|
|
747
779
|
throw new Error("Authentication method could not be detected.");
|
|
748
|
-
return this.bearerProfile = await B(this,
|
|
780
|
+
return this.bearerProfile = await B(this, S, C).call(this, "post", "auth/token", new URLSearchParams(n), !0), F(this, E, `Bearer ${this.bearerProfile.access_token}`), this.bearerProfile;
|
|
749
781
|
}
|
|
750
782
|
/**
|
|
751
783
|
* Construct the url to the authorization code flow,
|
|
@@ -753,99 +785,93 @@ class Re {
|
|
|
753
785
|
* For automatic wallet link, add the following properties: `address`, `signature`, `chain` & `network`
|
|
754
786
|
* @returns string
|
|
755
787
|
*/
|
|
756
|
-
getAuthFlowURI(
|
|
757
|
-
this.codeVerifier =
|
|
758
|
-
const
|
|
759
|
-
|
|
760
|
-
),
|
|
761
|
-
...
|
|
762
|
-
client_id:
|
|
763
|
-
code_challenge:
|
|
788
|
+
getAuthFlowURI(r) {
|
|
789
|
+
this.codeVerifier = ve();
|
|
790
|
+
const n = D.stringify(
|
|
791
|
+
G(this.codeVerifier)
|
|
792
|
+
), i = {
|
|
793
|
+
...r,
|
|
794
|
+
client_id: r == null ? void 0 : r.client_id,
|
|
795
|
+
code_challenge: n,
|
|
764
796
|
code_challenge_method: "S256",
|
|
765
797
|
response_type: "code"
|
|
766
798
|
};
|
|
767
|
-
return `${
|
|
799
|
+
return `${T(this, z).api}/auth?${new URLSearchParams(i)}`;
|
|
768
800
|
}
|
|
769
801
|
// -- Read Methods
|
|
770
802
|
getAuthContext() {
|
|
771
|
-
return B(this,
|
|
803
|
+
return B(this, S, C).call(this, "get", "auth/context");
|
|
772
804
|
}
|
|
773
805
|
/**
|
|
774
806
|
* @param {string} profileId - the id of the profile to fetch.
|
|
775
807
|
*/
|
|
776
|
-
getProfile(
|
|
777
|
-
return B(this,
|
|
808
|
+
getProfile(r) {
|
|
809
|
+
return B(this, S, C).call(this, "get", `profiles/${r}`);
|
|
778
810
|
}
|
|
779
811
|
/**
|
|
780
812
|
* @param {string=} profileId - the id of the profile to fetch balances.
|
|
781
813
|
*/
|
|
782
|
-
getBalances(
|
|
783
|
-
return
|
|
814
|
+
getBalances(r) {
|
|
815
|
+
return r ? B(this, S, C).call(this, "get", `profiles/${r}/balances`) : B(this, S, C).call(this, "get", "balances");
|
|
784
816
|
}
|
|
785
|
-
getOrders(
|
|
786
|
-
const
|
|
787
|
-
|
|
817
|
+
getOrders(r) {
|
|
818
|
+
const n = new URLSearchParams(
|
|
819
|
+
r
|
|
788
820
|
);
|
|
789
|
-
return B(this,
|
|
821
|
+
return B(this, S, C).call(this, "get", `orders?${n}`);
|
|
790
822
|
}
|
|
791
|
-
getOrder(
|
|
792
|
-
return B(this,
|
|
823
|
+
getOrder(r) {
|
|
824
|
+
return B(this, S, C).call(this, "get", `orders/${r}`);
|
|
793
825
|
}
|
|
794
826
|
getTokens() {
|
|
795
|
-
return B(this,
|
|
827
|
+
return B(this, S, C).call(this, "get", "tokens");
|
|
796
828
|
}
|
|
797
829
|
// -- Write Methods
|
|
798
|
-
linkAddress(
|
|
799
|
-
return B(this,
|
|
830
|
+
linkAddress(r, n) {
|
|
831
|
+
return B(this, S, C).call(this, "post", `profiles/${r}/addresses`, JSON.stringify(n));
|
|
800
832
|
}
|
|
801
|
-
placeOrder(
|
|
802
|
-
return
|
|
833
|
+
placeOrder(r, n) {
|
|
834
|
+
return n ? B(this, S, C).call(this, "post", `profiles/${n}/orders`, JSON.stringify(r)) : B(this, S, C).call(this, "post", "orders", JSON.stringify(r));
|
|
803
835
|
}
|
|
804
|
-
uploadSupportingDocument(
|
|
805
|
-
const
|
|
806
|
-
|
|
836
|
+
uploadSupportingDocument(r) {
|
|
837
|
+
const n = new URLSearchParams(
|
|
838
|
+
r
|
|
807
839
|
);
|
|
808
|
-
return B(this,
|
|
840
|
+
return B(this, S, C).call(this, "post", "files/supporting-document", n, !0);
|
|
809
841
|
}
|
|
810
842
|
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
"Content-Type": `application/${w ? "x-www-form-urlencoded" : "json"}`,
|
|
816
|
-
Authorization: U(this, W) || ""
|
|
817
|
-
// "User-Agent": "sdk/" + pjson.version,
|
|
818
|
-
},
|
|
819
|
-
body: a
|
|
843
|
+
z = new WeakMap(), E = new WeakMap(), S = new WeakSet(), C = async function(r, n, i, d) {
|
|
844
|
+
return ge(`${T(this, z).api}/${n}`, r, i, {
|
|
845
|
+
Authorization: T(this, E) || "",
|
|
846
|
+
"Content-Type": `application/${d ? "x-www-form-urlencoded" : "json"}`
|
|
820
847
|
});
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
if (l.ok)
|
|
828
|
-
return S;
|
|
829
|
-
throw S;
|
|
830
|
-
}, T = new WeakSet(), Q = function(t) {
|
|
831
|
-
return t.code != null;
|
|
832
|
-
}, j = new WeakSet(), X = function(t) {
|
|
833
|
-
return t.refresh_token != null;
|
|
834
|
-
}, F = new WeakSet(), Z = function(t) {
|
|
835
|
-
return t.client_secret != null;
|
|
848
|
+
}, W = new WeakSet(), Z = function(r) {
|
|
849
|
+
return r.code != null;
|
|
850
|
+
}, I = new WeakSet(), Q = function(r) {
|
|
851
|
+
return r.refresh_token != null;
|
|
852
|
+
}, j = new WeakSet(), X = function(r) {
|
|
853
|
+
return r.client_secret != null;
|
|
836
854
|
};
|
|
837
|
-
var
|
|
855
|
+
var we = /* @__PURE__ */ ((e) => (e.eur = "eur", e.usd = "usd", e.gbp = "gbp", e.isk = "isk", e))(we || {}), me = /* @__PURE__ */ ((e) => (e.corporate = "corporate", e.personal = "personal", e))(me || {}), be = /* @__PURE__ */ ((e) => (e.read = "read", e.write = "write", e))(be || {}), Be = /* @__PURE__ */ ((e) => (e.absent = "absent", e.submitted = "submitted", e.pending = "pending", e.confirmed = "confirmed", e))(Be || {}), xe = /* @__PURE__ */ ((e) => (e.approved = "approved", e.rejected = "rejected", e.unknown = "unknown", e))(xe || {}), Se = /* @__PURE__ */ ((e) => (e.iban = "iban", e.scan = "scan", e))(Se || {}), Ae = /* @__PURE__ */ ((e) => (e.redeem = "redeem", e.issue = "issue", e))(Ae || {}), Ce = /* @__PURE__ */ ((e) => (e.placed = "placed", e.pending = "pending", e.processed = "processed", e.rejected = "rejected", e))(Ce || {});
|
|
856
|
+
const Re = "I hereby declare that I am the address owner.";
|
|
857
|
+
var K = /* @__PURE__ */ ((e) => (e.Goerli = "goerli", e.Chiado = "chiado", e.Mumbai = "mumbai", e.Mainnet = "mainnet", e))(K || {}), Y = /* @__PURE__ */ ((e) => (e.Ethereum = "ethereum", e.Gnosis = "gnosis", e.Polygon = "polygon", e))(Y || {});
|
|
858
|
+
const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
859
|
+
__proto__: null,
|
|
860
|
+
Chain: Y,
|
|
861
|
+
LINK_MESSAGE: Re,
|
|
862
|
+
Network: K
|
|
863
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
838
864
|
export {
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
me as
|
|
848
|
-
|
|
849
|
-
|
|
865
|
+
we as Currency,
|
|
866
|
+
xe as KYCOutcome,
|
|
867
|
+
Be as KYCState,
|
|
868
|
+
ke as MoneriumClient,
|
|
869
|
+
Ae as OrderKind,
|
|
870
|
+
Ce as OrderState,
|
|
871
|
+
Se as PaymentStandard,
|
|
872
|
+
be as Permission,
|
|
873
|
+
me as ProfileType,
|
|
874
|
+
Oe as constants,
|
|
875
|
+
He as placeOrderMessage
|
|
850
876
|
};
|
|
851
877
|
//# sourceMappingURL=index.mjs.map
|