wallaby-cash 2.3.2 → 2.3.3
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/dist/generated/api.d.ts +4636 -3012
- package/dist/index.cjs.js +560 -692
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +560 -692
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +561 -695
- package/dist/index.js.map +1 -1
- package/dist/lib/wallet/wallet-handlers.service.d.ts +1 -0
- package/dist/package.json +5 -4
- package/dist/types/wallet.d.ts +3 -16
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { AES, enc } from 'crypto-js';
|
|
|
4
4
|
import { jwtDecode } from 'jwt-decode';
|
|
5
5
|
import * as NativeWebAuthn from 'react-native-passkey';
|
|
6
6
|
import { omit } from 'lodash';
|
|
7
|
-
import {
|
|
7
|
+
import { atob, toUint8Array } from 'js-base64';
|
|
8
8
|
|
|
9
9
|
/******************************************************************************
|
|
10
10
|
Copyright (c) Microsoft Corporation.
|
|
@@ -522,227 +522,19 @@ const global$1 = (typeof global !== "undefined" ? global :
|
|
|
522
522
|
typeof self !== "undefined" ? self :
|
|
523
523
|
typeof window !== "undefined" ? window : {});
|
|
524
524
|
|
|
525
|
-
// shim for using process in browser
|
|
526
|
-
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
527
|
-
|
|
528
|
-
function defaultSetTimout() {
|
|
529
|
-
throw new Error('setTimeout has not been defined');
|
|
530
|
-
}
|
|
531
|
-
function defaultClearTimeout () {
|
|
532
|
-
throw new Error('clearTimeout has not been defined');
|
|
533
|
-
}
|
|
534
|
-
var cachedSetTimeout = defaultSetTimout;
|
|
535
|
-
var cachedClearTimeout = defaultClearTimeout;
|
|
536
|
-
if (typeof global$1.setTimeout === 'function') {
|
|
537
|
-
cachedSetTimeout = setTimeout;
|
|
538
|
-
}
|
|
539
|
-
if (typeof global$1.clearTimeout === 'function') {
|
|
540
|
-
cachedClearTimeout = clearTimeout;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
function runTimeout(fun) {
|
|
544
|
-
if (cachedSetTimeout === setTimeout) {
|
|
545
|
-
//normal enviroments in sane situations
|
|
546
|
-
return setTimeout(fun, 0);
|
|
547
|
-
}
|
|
548
|
-
// if setTimeout wasn't available but was latter defined
|
|
549
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
550
|
-
cachedSetTimeout = setTimeout;
|
|
551
|
-
return setTimeout(fun, 0);
|
|
552
|
-
}
|
|
553
|
-
try {
|
|
554
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
555
|
-
return cachedSetTimeout(fun, 0);
|
|
556
|
-
} catch(e){
|
|
557
|
-
try {
|
|
558
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
559
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
560
|
-
} catch(e){
|
|
561
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
562
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
function runClearTimeout(marker) {
|
|
569
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
570
|
-
//normal enviroments in sane situations
|
|
571
|
-
return clearTimeout(marker);
|
|
572
|
-
}
|
|
573
|
-
// if clearTimeout wasn't available but was latter defined
|
|
574
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
575
|
-
cachedClearTimeout = clearTimeout;
|
|
576
|
-
return clearTimeout(marker);
|
|
577
|
-
}
|
|
578
|
-
try {
|
|
579
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
580
|
-
return cachedClearTimeout(marker);
|
|
581
|
-
} catch (e){
|
|
582
|
-
try {
|
|
583
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
584
|
-
return cachedClearTimeout.call(null, marker);
|
|
585
|
-
} catch (e){
|
|
586
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
587
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
588
|
-
return cachedClearTimeout.call(this, marker);
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
var queue = [];
|
|
596
|
-
var draining = false;
|
|
597
|
-
var currentQueue;
|
|
598
|
-
var queueIndex = -1;
|
|
599
|
-
|
|
600
|
-
function cleanUpNextTick() {
|
|
601
|
-
if (!draining || !currentQueue) {
|
|
602
|
-
return;
|
|
603
|
-
}
|
|
604
|
-
draining = false;
|
|
605
|
-
if (currentQueue.length) {
|
|
606
|
-
queue = currentQueue.concat(queue);
|
|
607
|
-
} else {
|
|
608
|
-
queueIndex = -1;
|
|
609
|
-
}
|
|
610
|
-
if (queue.length) {
|
|
611
|
-
drainQueue();
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
function drainQueue() {
|
|
616
|
-
if (draining) {
|
|
617
|
-
return;
|
|
618
|
-
}
|
|
619
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
620
|
-
draining = true;
|
|
621
|
-
|
|
622
|
-
var len = queue.length;
|
|
623
|
-
while(len) {
|
|
624
|
-
currentQueue = queue;
|
|
625
|
-
queue = [];
|
|
626
|
-
while (++queueIndex < len) {
|
|
627
|
-
if (currentQueue) {
|
|
628
|
-
currentQueue[queueIndex].run();
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
queueIndex = -1;
|
|
632
|
-
len = queue.length;
|
|
633
|
-
}
|
|
634
|
-
currentQueue = null;
|
|
635
|
-
draining = false;
|
|
636
|
-
runClearTimeout(timeout);
|
|
637
|
-
}
|
|
638
|
-
function nextTick(fun) {
|
|
639
|
-
var args = new Array(arguments.length - 1);
|
|
640
|
-
if (arguments.length > 1) {
|
|
641
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
642
|
-
args[i - 1] = arguments[i];
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
queue.push(new Item(fun, args));
|
|
646
|
-
if (queue.length === 1 && !draining) {
|
|
647
|
-
runTimeout(drainQueue);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
// v8 likes predictible objects
|
|
651
|
-
function Item(fun, array) {
|
|
652
|
-
this.fun = fun;
|
|
653
|
-
this.array = array;
|
|
654
|
-
}
|
|
655
|
-
Item.prototype.run = function () {
|
|
656
|
-
this.fun.apply(null, this.array);
|
|
657
|
-
};
|
|
658
|
-
var title = 'browser';
|
|
659
|
-
var platform = 'browser';
|
|
660
|
-
var browser = true;
|
|
661
525
|
var env$1 = {};
|
|
662
|
-
var argv = [];
|
|
663
|
-
var version = ''; // empty string to avoid regexp issues
|
|
664
|
-
var versions = {};
|
|
665
|
-
var release = {};
|
|
666
|
-
var config = {};
|
|
667
|
-
|
|
668
|
-
function noop() {}
|
|
669
|
-
|
|
670
|
-
var on = noop;
|
|
671
|
-
var addListener = noop;
|
|
672
|
-
var once = noop;
|
|
673
|
-
var off = noop;
|
|
674
|
-
var removeListener = noop;
|
|
675
|
-
var removeAllListeners = noop;
|
|
676
|
-
var emit = noop;
|
|
677
|
-
|
|
678
|
-
function binding(name) {
|
|
679
|
-
throw new Error('process.binding is not supported');
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
function cwd () { return '/' }
|
|
683
|
-
function chdir (dir) {
|
|
684
|
-
throw new Error('process.chdir is not supported');
|
|
685
|
-
}function umask() { return 0; }
|
|
686
526
|
|
|
687
527
|
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
688
528
|
var performance = global$1.performance || {};
|
|
689
|
-
|
|
690
|
-
performance.now ||
|
|
529
|
+
performance.now ||
|
|
691
530
|
performance.mozNow ||
|
|
692
531
|
performance.msNow ||
|
|
693
532
|
performance.oNow ||
|
|
694
533
|
performance.webkitNow ||
|
|
695
534
|
function(){ return (new Date()).getTime() };
|
|
696
535
|
|
|
697
|
-
// generate timestamp or delta
|
|
698
|
-
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
699
|
-
function hrtime(previousTimestamp){
|
|
700
|
-
var clocktime = performanceNow.call(performance)*1e-3;
|
|
701
|
-
var seconds = Math.floor(clocktime);
|
|
702
|
-
var nanoseconds = Math.floor((clocktime%1)*1e9);
|
|
703
|
-
if (previousTimestamp) {
|
|
704
|
-
seconds = seconds - previousTimestamp[0];
|
|
705
|
-
nanoseconds = nanoseconds - previousTimestamp[1];
|
|
706
|
-
if (nanoseconds<0) {
|
|
707
|
-
seconds--;
|
|
708
|
-
nanoseconds += 1e9;
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
return [seconds,nanoseconds]
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
var startTime = new Date();
|
|
715
|
-
function uptime() {
|
|
716
|
-
var currentTime = new Date();
|
|
717
|
-
var dif = currentTime - startTime;
|
|
718
|
-
return dif / 1000;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
536
|
var browser$1 = {
|
|
722
|
-
|
|
723
|
-
title: title,
|
|
724
|
-
browser: browser,
|
|
725
|
-
env: env$1,
|
|
726
|
-
argv: argv,
|
|
727
|
-
version: version,
|
|
728
|
-
versions: versions,
|
|
729
|
-
on: on,
|
|
730
|
-
addListener: addListener,
|
|
731
|
-
once: once,
|
|
732
|
-
off: off,
|
|
733
|
-
removeListener: removeListener,
|
|
734
|
-
removeAllListeners: removeAllListeners,
|
|
735
|
-
emit: emit,
|
|
736
|
-
binding: binding,
|
|
737
|
-
cwd: cwd,
|
|
738
|
-
chdir: chdir,
|
|
739
|
-
umask: umask,
|
|
740
|
-
hrtime: hrtime,
|
|
741
|
-
platform: platform,
|
|
742
|
-
release: release,
|
|
743
|
-
config: config,
|
|
744
|
-
uptime: uptime
|
|
745
|
-
};
|
|
537
|
+
env: env$1};
|
|
746
538
|
|
|
747
539
|
var _a;
|
|
748
540
|
/**
|
|
@@ -779,13 +571,11 @@ const MASTER_ENCRYPTION_KEY = '9fa9d3f3c77c20d3a50a08e5299644be29f6e6206ef3479fe
|
|
|
779
571
|
];
|
|
780
572
|
const isWeb = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
781
573
|
const env = {
|
|
782
|
-
env: browser$1.env.NODE_ENV,
|
|
783
574
|
platform: 'web',
|
|
784
575
|
isNative: false,
|
|
785
|
-
isServer: false,
|
|
786
576
|
isWeb,
|
|
787
577
|
};
|
|
788
|
-
const currentPackageVersion = "2.3.
|
|
578
|
+
const currentPackageVersion = "2.3.3" ;
|
|
789
579
|
|
|
790
580
|
/**
|
|
791
581
|
* Storage keys adapter for Storage interface across different platforms.
|
|
@@ -912,7 +702,7 @@ function hexToBytes$2(hex) {
|
|
|
912
702
|
/**
|
|
913
703
|
* @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
|
|
914
704
|
*/
|
|
915
|
-
function utf8ToBytes$
|
|
705
|
+
function utf8ToBytes$1(str) {
|
|
916
706
|
if (typeof str !== 'string')
|
|
917
707
|
throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
|
|
918
708
|
return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
|
|
@@ -924,7 +714,7 @@ function utf8ToBytes$2(str) {
|
|
|
924
714
|
*/
|
|
925
715
|
function toBytes(data) {
|
|
926
716
|
if (typeof data === 'string')
|
|
927
|
-
data = utf8ToBytes$
|
|
717
|
+
data = utf8ToBytes$1(data);
|
|
928
718
|
bytes$1(data);
|
|
929
719
|
return data;
|
|
930
720
|
}
|
|
@@ -1077,7 +867,7 @@ const concatUint8Arrays = (uint8arrays) => {
|
|
|
1077
867
|
* Converts a UTF-8 string to a Uint8Array without using TextEncoder, which is not available in mobile
|
|
1078
868
|
* @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
|
|
1079
869
|
*/
|
|
1080
|
-
const utf8ToBytes
|
|
870
|
+
const utf8ToBytes = (str) => {
|
|
1081
871
|
if (typeof str !== 'string')
|
|
1082
872
|
throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
|
|
1083
873
|
const bytes = [];
|
|
@@ -1504,10 +1294,6 @@ function numberToBytesBE(n, len) {
|
|
|
1504
1294
|
function numberToBytesLE(n, len) {
|
|
1505
1295
|
return numberToBytesBE(n, len).reverse();
|
|
1506
1296
|
}
|
|
1507
|
-
// Unpadded, rarely used
|
|
1508
|
-
function numberToVarBytesBE(n) {
|
|
1509
|
-
return hexToBytes(numberToHexUnpadded(n));
|
|
1510
|
-
}
|
|
1511
1297
|
/**
|
|
1512
1298
|
* Takes hex string or Uint8Array, converts to Uint8Array.
|
|
1513
1299
|
* Validates output length.
|
|
@@ -1558,23 +1344,6 @@ function concatBytes(...arrays) {
|
|
|
1558
1344
|
}
|
|
1559
1345
|
return res;
|
|
1560
1346
|
}
|
|
1561
|
-
// Compares 2 u8a-s in kinda constant time
|
|
1562
|
-
function equalBytes(a, b) {
|
|
1563
|
-
if (a.length !== b.length)
|
|
1564
|
-
return false;
|
|
1565
|
-
let diff = 0;
|
|
1566
|
-
for (let i = 0; i < a.length; i++)
|
|
1567
|
-
diff |= a[i] ^ b[i];
|
|
1568
|
-
return diff === 0;
|
|
1569
|
-
}
|
|
1570
|
-
/**
|
|
1571
|
-
* @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
|
|
1572
|
-
*/
|
|
1573
|
-
function utf8ToBytes(str) {
|
|
1574
|
-
if (typeof str !== 'string')
|
|
1575
|
-
throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
|
|
1576
|
-
return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
|
|
1577
|
-
}
|
|
1578
1347
|
// Is positive bigint
|
|
1579
1348
|
const isPosBig = (n) => typeof n === 'bigint' && _0n$4 <= n;
|
|
1580
1349
|
function inRange(n, min, max) {
|
|
@@ -1605,20 +1374,6 @@ function bitLen(n) {
|
|
|
1605
1374
|
;
|
|
1606
1375
|
return len;
|
|
1607
1376
|
}
|
|
1608
|
-
/**
|
|
1609
|
-
* Gets single bit at position.
|
|
1610
|
-
* NOTE: first bit position is 0 (same as arrays)
|
|
1611
|
-
* Same as `!!+Array.from(n.toString(2)).reverse()[pos]`
|
|
1612
|
-
*/
|
|
1613
|
-
function bitGet(n, pos) {
|
|
1614
|
-
return (n >> BigInt(pos)) & _1n$5;
|
|
1615
|
-
}
|
|
1616
|
-
/**
|
|
1617
|
-
* Sets single bit at position.
|
|
1618
|
-
*/
|
|
1619
|
-
function bitSet(n, pos, value) {
|
|
1620
|
-
return n | ((value ? _1n$5 : _0n$4) << BigInt(pos));
|
|
1621
|
-
}
|
|
1622
1377
|
/**
|
|
1623
1378
|
* Calculate mask for N bits. Not using ** operator with bigints because of old engines.
|
|
1624
1379
|
* Same as BigInt(`0b${Array(i).fill('1').join('')}`)
|
|
@@ -1716,20 +1471,6 @@ function validateObject(object, validators, optValidators = {}) {
|
|
|
1716
1471
|
checkField(fieldName, type, true);
|
|
1717
1472
|
return object;
|
|
1718
1473
|
}
|
|
1719
|
-
// validate type tests
|
|
1720
|
-
// const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 };
|
|
1721
|
-
// const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok!
|
|
1722
|
-
// // Should fail type-check
|
|
1723
|
-
// const z1 = validateObject(o, { a: 'tmp' }, { c: 'zz' });
|
|
1724
|
-
// const z2 = validateObject(o, { a: 'isSafeInteger' }, { c: 'zz' });
|
|
1725
|
-
// const z3 = validateObject(o, { test: 'boolean', z: 'bug' });
|
|
1726
|
-
// const z4 = validateObject(o, { a: 'boolean', z: 'bug' });
|
|
1727
|
-
/**
|
|
1728
|
-
* throws not implemented error
|
|
1729
|
-
*/
|
|
1730
|
-
const notImplemented = () => {
|
|
1731
|
-
throw new Error('not implemented');
|
|
1732
|
-
};
|
|
1733
1474
|
/**
|
|
1734
1475
|
* Memoizes (caches) computation result.
|
|
1735
1476
|
* Uses WeakMap: the value is going auto-cleaned by GC after last reference is removed.
|
|
@@ -1751,28 +1492,22 @@ __proto__: null,
|
|
|
1751
1492
|
aInRange,
|
|
1752
1493
|
abool,
|
|
1753
1494
|
abytes,
|
|
1754
|
-
bitGet,
|
|
1755
1495
|
bitLen,
|
|
1756
1496
|
bitMask,
|
|
1757
|
-
bitSet,
|
|
1758
1497
|
bytesToHex,
|
|
1759
1498
|
bytesToNumberBE,
|
|
1760
1499
|
bytesToNumberLE,
|
|
1761
1500
|
concatBytes,
|
|
1762
1501
|
createHmacDrbg,
|
|
1763
1502
|
ensureBytes,
|
|
1764
|
-
equalBytes,
|
|
1765
1503
|
hexToBytes,
|
|
1766
1504
|
hexToNumber,
|
|
1767
1505
|
inRange,
|
|
1768
1506
|
isBytes: isBytes$1,
|
|
1769
1507
|
memoized,
|
|
1770
|
-
notImplemented,
|
|
1771
1508
|
numberToBytesBE,
|
|
1772
1509
|
numberToBytesLE,
|
|
1773
1510
|
numberToHexUnpadded,
|
|
1774
|
-
numberToVarBytesBE,
|
|
1775
|
-
utf8ToBytes,
|
|
1776
1511
|
validateObject
|
|
1777
1512
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
1778
1513
|
|
|
@@ -4426,7 +4161,7 @@ const encrypt = (publicKeyTo, msg, options) => {
|
|
|
4426
4161
|
const hash = sha512(sharedSecret);
|
|
4427
4162
|
const encryptionKey = hash.subarray(0, 32);
|
|
4428
4163
|
const macKey = hash.subarray(32);
|
|
4429
|
-
const message = utf8ToBytes
|
|
4164
|
+
const message = utf8ToBytes(msg);
|
|
4430
4165
|
const data = encrypt$1(message, encryptionKey, iv, 'aes-256-cbc');
|
|
4431
4166
|
const dataToMac = concatUint8Arrays([iv, ephemPublicKey, data]);
|
|
4432
4167
|
const mac = hmacSha256Sign(macKey, dataToMac);
|
|
@@ -4498,7 +4233,7 @@ const decryptWithPrivateKey = (privateKey, encrypted) => {
|
|
|
4498
4233
|
};
|
|
4499
4234
|
|
|
4500
4235
|
const solidityPackedKeccak256 = (value) => {
|
|
4501
|
-
const bytes = utf8ToBytes
|
|
4236
|
+
const bytes = utf8ToBytes(value);
|
|
4502
4237
|
const hex = addLeading0x(bytesToHex$1(bytes));
|
|
4503
4238
|
const hash = keccak256$1(hexToBytes$1(hex));
|
|
4504
4239
|
return addLeading0x(bytesToHex$1(hash));
|
|
@@ -4665,7 +4400,7 @@ class Cipher {
|
|
|
4665
4400
|
*/
|
|
4666
4401
|
getMasterKey() {
|
|
4667
4402
|
return {
|
|
4668
|
-
buffer: utf8ToBytes$
|
|
4403
|
+
buffer: utf8ToBytes$1(MASTER_ENCRYPTION_KEY),
|
|
4669
4404
|
key: MASTER_ENCRYPTION_KEY,
|
|
4670
4405
|
};
|
|
4671
4406
|
}
|
|
@@ -4703,7 +4438,7 @@ class Cipher {
|
|
|
4703
4438
|
* Validate that a salt is sufficiently long and not weak.
|
|
4704
4439
|
*/
|
|
4705
4440
|
validateSalt(salt) {
|
|
4706
|
-
if (utf8ToBytes$
|
|
4441
|
+
if (utf8ToBytes$1(salt).length < 16) {
|
|
4707
4442
|
throw new Error('Salt is too short: must be at least 16 bytes');
|
|
4708
4443
|
}
|
|
4709
4444
|
const uniqueChars = new Set(salt);
|
|
@@ -5007,7 +4742,7 @@ class Cipher {
|
|
|
5007
4742
|
// Prevents different Unicode representations of "same" password
|
|
5008
4743
|
// Also trim whitespace for security consistency
|
|
5009
4744
|
const normalizedPassword = password.normalize('NFKC').trim();
|
|
5010
|
-
const encryptionKey = pbkdf2Sync(utf8ToBytes$
|
|
4745
|
+
const encryptionKey = pbkdf2Sync(utf8ToBytes$1(normalizedPassword), utf8ToBytes$1(salt), PBKDF2_ITERATIONS, DEFAULT_ENTROPY_BYTES$1, 'sha256');
|
|
5011
4746
|
const encryptionKeyPair = createIdentity(encryptionKey);
|
|
5012
4747
|
return encryptionKeyPair;
|
|
5013
4748
|
}
|
|
@@ -5619,7 +5354,7 @@ var ContentType;
|
|
|
5619
5354
|
})(ContentType || (ContentType = {}));
|
|
5620
5355
|
class HttpClient {
|
|
5621
5356
|
constructor(apiConfig = {}) {
|
|
5622
|
-
this.baseUrl = "";
|
|
5357
|
+
this.baseUrl = "https://staging-testnet.wallaby.cash";
|
|
5623
5358
|
this.securityData = null;
|
|
5624
5359
|
this.abortControllers = new Map();
|
|
5625
5360
|
this.customFetch = (...fetchParams) => fetch(...fetchParams);
|
|
@@ -5752,31 +5487,15 @@ class HttpClient {
|
|
|
5752
5487
|
}
|
|
5753
5488
|
}
|
|
5754
5489
|
/**
|
|
5755
|
-
* @title
|
|
5756
|
-
* @version 1.0
|
|
5490
|
+
* @title STAGING
|
|
5491
|
+
* @version 1.0
|
|
5492
|
+
* @baseUrl https://staging-testnet.wallaby.cash
|
|
5757
5493
|
* @contact
|
|
5758
5494
|
*
|
|
5759
|
-
*
|
|
5495
|
+
* The STAGING is an API that manages the wallets of the Republic Crypto
|
|
5760
5496
|
*/
|
|
5761
5497
|
class Api {
|
|
5762
5498
|
constructor(http) {
|
|
5763
|
-
/**
|
|
5764
|
-
* No description
|
|
5765
|
-
*
|
|
5766
|
-
* @name DashboardControllerGetDashboardData
|
|
5767
|
-
* @summary Create new merchant. This endpoint is only available for super admin and republic admin
|
|
5768
|
-
* @request GET:/dashboard
|
|
5769
|
-
* @secure
|
|
5770
|
-
*/
|
|
5771
|
-
this.dashboardControllerGetDashboardData = (params = {}) => this.http.request(Object.assign({ path: `/dashboard`, method: "GET", secure: true }, params));
|
|
5772
|
-
/**
|
|
5773
|
-
* No description
|
|
5774
|
-
*
|
|
5775
|
-
* @name GetActivitiees
|
|
5776
|
-
* @summary Get all activities. This endpoint is only available for super admin and republic admin
|
|
5777
|
-
* @request GET:/users-activities
|
|
5778
|
-
*/
|
|
5779
|
-
this.getActivitiees = (query, params = {}) => this.http.request(Object.assign({ path: `/users-activities`, method: "GET", query: query }, params));
|
|
5780
5499
|
this.health = {
|
|
5781
5500
|
/**
|
|
5782
5501
|
* No description
|
|
@@ -5785,8 +5504,9 @@ class Api {
|
|
|
5785
5504
|
* @name GetHello
|
|
5786
5505
|
* @summary Health Check API
|
|
5787
5506
|
* @request GET:/
|
|
5507
|
+
* @secure
|
|
5788
5508
|
*/
|
|
5789
|
-
getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET" }, params)),
|
|
5509
|
+
getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET", secure: true }, params)),
|
|
5790
5510
|
/**
|
|
5791
5511
|
* No description
|
|
5792
5512
|
*
|
|
@@ -5794,8 +5514,9 @@ class Api {
|
|
|
5794
5514
|
* @name GetHealthCheck
|
|
5795
5515
|
* @summary Service API status check
|
|
5796
5516
|
* @request GET:/healthz
|
|
5517
|
+
* @secure
|
|
5797
5518
|
*/
|
|
5798
|
-
getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET" }, params)),
|
|
5519
|
+
getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET", secure: true }, params)),
|
|
5799
5520
|
};
|
|
5800
5521
|
this.auth = {
|
|
5801
5522
|
/**
|
|
@@ -5804,86 +5525,101 @@ class Api {
|
|
|
5804
5525
|
* @tags Auth
|
|
5805
5526
|
* @name GenerateExternalSignatureMessage
|
|
5806
5527
|
* @summary The returned message will be used for sign up and sign in signature
|
|
5807
|
-
* @request POST:/auth/signature-message/external
|
|
5528
|
+
* @request POST:/api/v1/auth/signature-message/external
|
|
5529
|
+
* @secure
|
|
5808
5530
|
*/
|
|
5809
|
-
generateExternalSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5531
|
+
generateExternalSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/signature-message/external`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5810
5532
|
/**
|
|
5811
5533
|
* No description
|
|
5812
5534
|
*
|
|
5813
5535
|
* @tags Auth
|
|
5814
5536
|
* @name GenerateSignatureMessage
|
|
5815
5537
|
* @summary The returned message will be used for sign up and sign in signature
|
|
5816
|
-
* @request POST:/auth/signature-message
|
|
5538
|
+
* @request POST:/api/v1/auth/signature-message
|
|
5539
|
+
* @secure
|
|
5817
5540
|
*/
|
|
5818
|
-
generateSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5541
|
+
generateSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/signature-message`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5819
5542
|
/**
|
|
5820
5543
|
* No description
|
|
5821
5544
|
*
|
|
5822
5545
|
* @tags Auth
|
|
5823
5546
|
* @name SignUp
|
|
5824
5547
|
* @summary Users will be able to sign up by providing a signature and message. Message to sign can be retrieved from /api/auth/signature-message
|
|
5825
|
-
* @request POST:/auth/sign-up
|
|
5548
|
+
* @request POST:/api/v1/auth/sign-up
|
|
5549
|
+
* @secure
|
|
5826
5550
|
*/
|
|
5827
|
-
signUp: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5551
|
+
signUp: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/sign-up`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5828
5552
|
/**
|
|
5829
5553
|
* No description
|
|
5830
5554
|
*
|
|
5831
5555
|
* @tags Auth
|
|
5832
5556
|
* @name SignUpExternal
|
|
5833
5557
|
* @summary Users will be able to sign up by providing a signature and message. Message to sign can be retrieved from /api/auth/signature-message
|
|
5834
|
-
* @request POST:/auth/sign-up/external
|
|
5558
|
+
* @request POST:/api/v1/auth/sign-up/external
|
|
5559
|
+
* @secure
|
|
5835
5560
|
*/
|
|
5836
|
-
signUpExternal: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5561
|
+
signUpExternal: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/sign-up/external`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5837
5562
|
/**
|
|
5838
5563
|
* No description
|
|
5839
5564
|
*
|
|
5840
5565
|
* @tags Auth
|
|
5841
5566
|
* @name SignIn
|
|
5842
5567
|
* @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
|
|
5843
|
-
* @request POST:/auth/sign-in
|
|
5568
|
+
* @request POST:/api/v1/auth/sign-in
|
|
5569
|
+
* @secure
|
|
5844
5570
|
*/
|
|
5845
|
-
signIn: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-in`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5571
|
+
signIn: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/sign-in`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5846
5572
|
/**
|
|
5847
5573
|
* No description
|
|
5848
5574
|
*
|
|
5849
5575
|
* @tags Auth
|
|
5850
5576
|
* @name RefreshAccessToken
|
|
5851
5577
|
* @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
|
|
5852
|
-
* @request POST:/auth/refresh-access-token
|
|
5578
|
+
* @request POST:/api/v1/auth/refresh-access-token
|
|
5853
5579
|
* @deprecated
|
|
5854
5580
|
* @secure
|
|
5855
5581
|
*/
|
|
5856
|
-
refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
|
|
5582
|
+
refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
|
|
5583
|
+
/**
|
|
5584
|
+
* No description
|
|
5585
|
+
*
|
|
5586
|
+
* @tags Auth
|
|
5587
|
+
* @name Logout
|
|
5588
|
+
* @summary Invalidate the current session by revoking the bearer token
|
|
5589
|
+
* @request POST:/api/v1/auth/logout
|
|
5590
|
+
* @secure
|
|
5591
|
+
*/
|
|
5592
|
+
logout: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/logout`, method: "POST", secure: true, format: "json" }, params)),
|
|
5857
5593
|
/**
|
|
5858
5594
|
* No description
|
|
5859
5595
|
*
|
|
5860
5596
|
* @tags Auth
|
|
5861
5597
|
* @name ChangeAuthPublicKey
|
|
5862
5598
|
* @summary Change user authentication public key
|
|
5863
|
-
* @request PUT:/auth/client-auth-pubkey
|
|
5599
|
+
* @request PUT:/api/v1/auth/client-auth-pubkey
|
|
5864
5600
|
* @secure
|
|
5865
5601
|
*/
|
|
5866
|
-
changeAuthPublicKey: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/client-auth-pubkey`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5602
|
+
changeAuthPublicKey: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/client-auth-pubkey`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5867
5603
|
/**
|
|
5868
5604
|
* No description
|
|
5869
5605
|
*
|
|
5870
5606
|
* @tags Auth
|
|
5871
5607
|
* @name GetWallabyAuthPubKey
|
|
5872
5608
|
* @summary Get user public key
|
|
5873
|
-
* @request POST:/auth/wallaby-auth-pubkey
|
|
5609
|
+
* @request POST:/api/v1/auth/wallaby-auth-pubkey
|
|
5874
5610
|
* @secure
|
|
5875
5611
|
*/
|
|
5876
|
-
getWallabyAuthPubKey: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/wallaby-auth-pubkey`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5612
|
+
getWallabyAuthPubKey: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/wallaby-auth-pubkey`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5877
5613
|
/**
|
|
5878
5614
|
* No description
|
|
5879
5615
|
*
|
|
5880
5616
|
* @tags Auth
|
|
5881
5617
|
* @name GetPasskeyCredentials
|
|
5882
5618
|
* @summary Get user passkey credentials
|
|
5883
|
-
* @request GET:/auth/passkey-credentials
|
|
5619
|
+
* @request GET:/api/v1/auth/passkey-credentials
|
|
5884
5620
|
* @secure
|
|
5885
5621
|
*/
|
|
5886
|
-
getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
|
|
5622
|
+
getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
|
|
5887
5623
|
};
|
|
5888
5624
|
this.chains = {
|
|
5889
5625
|
/**
|
|
@@ -5892,31 +5628,33 @@ class Api {
|
|
|
5892
5628
|
* @tags Chains
|
|
5893
5629
|
* @name GetAllChains
|
|
5894
5630
|
* @summary Get all supported chains
|
|
5895
|
-
* @request GET:/chains
|
|
5631
|
+
* @request GET:/api/v1/chains
|
|
5896
5632
|
* @secure
|
|
5897
5633
|
*/
|
|
5898
|
-
getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
5634
|
+
getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
5899
5635
|
/**
|
|
5900
5636
|
* No description
|
|
5901
5637
|
*
|
|
5902
5638
|
* @tags Chains
|
|
5903
5639
|
* @name CreateChain
|
|
5904
5640
|
* @summary Create new chain. This endpoint is only available for super admin and republic admin
|
|
5905
|
-
* @request POST:/chains
|
|
5641
|
+
* @request POST:/api/v1/chains
|
|
5642
|
+
* @secure
|
|
5906
5643
|
*/
|
|
5907
|
-
createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5644
|
+
createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5908
5645
|
/**
|
|
5909
5646
|
* No description
|
|
5910
5647
|
*
|
|
5911
5648
|
* @tags Chains
|
|
5912
5649
|
* @name UpdateChain
|
|
5913
5650
|
* @summary Update the chain public data
|
|
5914
|
-
* @request PUT:/chains/{chainId}
|
|
5651
|
+
* @request PUT:/api/v1/chains/{chainId}
|
|
5652
|
+
* @secure
|
|
5915
5653
|
*/
|
|
5916
5654
|
updateChain: (_a, data, params) => {
|
|
5917
5655
|
var { chainId } = _a; __rest(_a, ["chainId"]);
|
|
5918
5656
|
if (params === void 0) { params = {}; }
|
|
5919
|
-
return this.http.request(Object.assign({ path: `/chains/${chainId}`, method: "PUT", body: data, type: ContentType.Json, format: "json" }, params));
|
|
5657
|
+
return this.http.request(Object.assign({ path: `/api/v1/chains/${chainId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
5920
5658
|
},
|
|
5921
5659
|
};
|
|
5922
5660
|
this.assets = {
|
|
@@ -5926,33 +5664,33 @@ class Api {
|
|
|
5926
5664
|
* @tags Assets
|
|
5927
5665
|
* @name GetAssetsConfigurations
|
|
5928
5666
|
* @summary Get all supported assets configuration that can be imported into a merchant or a user wallet
|
|
5929
|
-
* @request GET:/assets/configurations
|
|
5667
|
+
* @request GET:/api/v1/assets/configurations
|
|
5930
5668
|
* @secure
|
|
5931
5669
|
*/
|
|
5932
|
-
getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
5670
|
+
getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
5933
5671
|
/**
|
|
5934
5672
|
* No description
|
|
5935
5673
|
*
|
|
5936
5674
|
* @tags Assets
|
|
5937
5675
|
* @name CreateAssetConfig
|
|
5938
5676
|
* @summary Create new asset configuration that can be imported later into a merchant or a user wallet. This endpoint is only available for super admin and republic admin
|
|
5939
|
-
* @request POST:/assets/configurations
|
|
5677
|
+
* @request POST:/api/v1/assets/configurations
|
|
5940
5678
|
* @secure
|
|
5941
5679
|
*/
|
|
5942
|
-
createAssetConfig: (data, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5680
|
+
createAssetConfig: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/assets/configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5943
5681
|
/**
|
|
5944
5682
|
* No description
|
|
5945
5683
|
*
|
|
5946
5684
|
* @tags Assets
|
|
5947
5685
|
* @name UpdateAssetConfig
|
|
5948
5686
|
* @summary Update asset configuration that can be imported later into a merchant or a user wallet. This endpoint is only available for owner, super admin and republic admin
|
|
5949
|
-
* @request PUT:/assets/configurations/{assetConfigId}
|
|
5687
|
+
* @request PUT:/api/v1/assets/configurations/{assetConfigId}
|
|
5950
5688
|
* @secure
|
|
5951
5689
|
*/
|
|
5952
5690
|
updateAssetConfig: (_a, data, params) => {
|
|
5953
5691
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
5954
5692
|
if (params === void 0) { params = {}; }
|
|
5955
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
5693
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
5956
5694
|
},
|
|
5957
5695
|
/**
|
|
5958
5696
|
* No description
|
|
@@ -5960,13 +5698,13 @@ class Api {
|
|
|
5960
5698
|
* @tags Assets
|
|
5961
5699
|
* @name VerifyAsset
|
|
5962
5700
|
* @summary Verify asset configuration details.
|
|
5963
|
-
* @request POST:/assets/configurations/{assetConfigId}/verify
|
|
5701
|
+
* @request POST:/api/v1/assets/configurations/{assetConfigId}/verify
|
|
5964
5702
|
* @secure
|
|
5965
5703
|
*/
|
|
5966
5704
|
verifyAsset: (_a, params) => {
|
|
5967
5705
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
5968
5706
|
if (params === void 0) { params = {}; }
|
|
5969
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
|
|
5707
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
|
|
5970
5708
|
},
|
|
5971
5709
|
/**
|
|
5972
5710
|
* No description
|
|
@@ -5974,13 +5712,13 @@ class Api {
|
|
|
5974
5712
|
* @tags Assets
|
|
5975
5713
|
* @name UnverifyAsset
|
|
5976
5714
|
* @summary Unverify asset configuration
|
|
5977
|
-
* @request DELETE:/assets/configurations/{assetConfigId}/unverify
|
|
5715
|
+
* @request DELETE:/api/v1/assets/configurations/{assetConfigId}/unverify
|
|
5978
5716
|
* @secure
|
|
5979
5717
|
*/
|
|
5980
5718
|
unverifyAsset: (_a, params) => {
|
|
5981
5719
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
5982
5720
|
if (params === void 0) { params = {}; }
|
|
5983
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
|
|
5721
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
|
|
5984
5722
|
},
|
|
5985
5723
|
/**
|
|
5986
5724
|
* No description
|
|
@@ -5988,13 +5726,13 @@ class Api {
|
|
|
5988
5726
|
* @tags Assets
|
|
5989
5727
|
* @name ArchiveAsset
|
|
5990
5728
|
* @summary Archive an asset configuration
|
|
5991
|
-
* @request POST:/assets/configurations/{assetConfigId}/archive
|
|
5729
|
+
* @request POST:/api/v1/assets/configurations/{assetConfigId}/archive
|
|
5992
5730
|
* @secure
|
|
5993
5731
|
*/
|
|
5994
5732
|
archiveAsset: (_a, params) => {
|
|
5995
5733
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
5996
5734
|
if (params === void 0) { params = {}; }
|
|
5997
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
|
|
5735
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
|
|
5998
5736
|
},
|
|
5999
5737
|
/**
|
|
6000
5738
|
* No description
|
|
@@ -6002,13 +5740,13 @@ class Api {
|
|
|
6002
5740
|
* @tags Assets
|
|
6003
5741
|
* @name UnarchiveAsset
|
|
6004
5742
|
* @summary Archive an asset configuration
|
|
6005
|
-
* @request POST:/assets/configurations/{assetConfigId}/unarchive
|
|
5743
|
+
* @request POST:/api/v1/assets/configurations/{assetConfigId}/unarchive
|
|
6006
5744
|
* @secure
|
|
6007
5745
|
*/
|
|
6008
5746
|
unarchiveAsset: (_a, params) => {
|
|
6009
5747
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
6010
5748
|
if (params === void 0) { params = {}; }
|
|
6011
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
|
|
5749
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
|
|
6012
5750
|
},
|
|
6013
5751
|
};
|
|
6014
5752
|
this.merchants = {
|
|
@@ -6018,32 +5756,33 @@ class Api {
|
|
|
6018
5756
|
* @tags Merchants
|
|
6019
5757
|
* @name GetAllMerchants
|
|
6020
5758
|
* @summary Get all merchants
|
|
6021
|
-
* @request GET:/merchants
|
|
5759
|
+
* @request GET:/api/v1/merchants
|
|
5760
|
+
* @secure
|
|
6022
5761
|
*/
|
|
6023
|
-
getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "GET", query: query, format: "json" }, params)),
|
|
5762
|
+
getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6024
5763
|
/**
|
|
6025
5764
|
* No description
|
|
6026
5765
|
*
|
|
6027
5766
|
* @tags Merchants
|
|
6028
5767
|
* @name CreateMerchant
|
|
6029
5768
|
* @summary Create new merchant. This endpoint is only available for super admin and republic admin
|
|
6030
|
-
* @request POST:/merchants
|
|
5769
|
+
* @request POST:/api/v1/merchants
|
|
6031
5770
|
* @secure
|
|
6032
5771
|
*/
|
|
6033
|
-
createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5772
|
+
createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6034
5773
|
/**
|
|
6035
5774
|
* No description
|
|
6036
5775
|
*
|
|
6037
5776
|
* @tags Merchants
|
|
6038
5777
|
* @name UpdateMerchant
|
|
6039
5778
|
* @summary Update merchant. This endpoint is only available for super admin and republic admin
|
|
6040
|
-
* @request PUT:/merchants/{merchantId}
|
|
5779
|
+
* @request PUT:/api/v1/merchants/{merchantId}
|
|
6041
5780
|
* @secure
|
|
6042
5781
|
*/
|
|
6043
5782
|
updateMerchant: (_a, data, params) => {
|
|
6044
5783
|
var { merchantId } = _a; __rest(_a, ["merchantId"]);
|
|
6045
5784
|
if (params === void 0) { params = {}; }
|
|
6046
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
5785
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
6047
5786
|
},
|
|
6048
5787
|
/**
|
|
6049
5788
|
* No description
|
|
@@ -6051,12 +5790,13 @@ class Api {
|
|
|
6051
5790
|
* @tags Merchants
|
|
6052
5791
|
* @name GetOneMerchant
|
|
6053
5792
|
* @summary Get one merchant by id with counts
|
|
6054
|
-
* @request GET:/merchants/{merchantId}
|
|
5793
|
+
* @request GET:/api/v1/merchants/{merchantId}
|
|
5794
|
+
* @secure
|
|
6055
5795
|
*/
|
|
6056
5796
|
getOneMerchant: (_a, params) => {
|
|
6057
5797
|
var { merchantId } = _a; __rest(_a, ["merchantId"]);
|
|
6058
5798
|
if (params === void 0) { params = {}; }
|
|
6059
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "GET", format: "json" }, params));
|
|
5799
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6060
5800
|
},
|
|
6061
5801
|
/**
|
|
6062
5802
|
* No description
|
|
@@ -6064,12 +5804,13 @@ class Api {
|
|
|
6064
5804
|
* @tags Merchants
|
|
6065
5805
|
* @name GetMerchantAssets
|
|
6066
5806
|
* @summary Get merchant assets by merchant id
|
|
6067
|
-
* @request GET:/merchants/{merchantId}/assets
|
|
5807
|
+
* @request GET:/api/v1/merchants/{merchantId}/assets
|
|
5808
|
+
* @secure
|
|
6068
5809
|
*/
|
|
6069
5810
|
getMerchantAssets: (_a, params) => {
|
|
6070
5811
|
var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
|
|
6071
5812
|
if (params === void 0) { params = {}; }
|
|
6072
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/assets`, method: "GET", query: query, format: "json" }, params));
|
|
5813
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6073
5814
|
},
|
|
6074
5815
|
/**
|
|
6075
5816
|
* No description
|
|
@@ -6077,13 +5818,13 @@ class Api {
|
|
|
6077
5818
|
* @tags Merchants
|
|
6078
5819
|
* @name GetMerchantUsers
|
|
6079
5820
|
* @summary Get merchant users by merchant id
|
|
6080
|
-
* @request GET:/merchants/{merchantId}/users
|
|
5821
|
+
* @request GET:/api/v1/merchants/{merchantId}/users
|
|
6081
5822
|
* @secure
|
|
6082
5823
|
*/
|
|
6083
5824
|
getMerchantUsers: (_a, params) => {
|
|
6084
5825
|
var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
|
|
6085
5826
|
if (params === void 0) { params = {}; }
|
|
6086
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
5827
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6087
5828
|
},
|
|
6088
5829
|
/**
|
|
6089
5830
|
* No description
|
|
@@ -6091,13 +5832,13 @@ class Api {
|
|
|
6091
5832
|
* @tags Merchants
|
|
6092
5833
|
* @name GetMerchantAdmins
|
|
6093
5834
|
* @summary Get merchant admins by merchant id
|
|
6094
|
-
* @request GET:/merchants/{merchantId}/admins
|
|
5835
|
+
* @request GET:/api/v1/merchants/{merchantId}/admins
|
|
6095
5836
|
* @secure
|
|
6096
5837
|
*/
|
|
6097
5838
|
getMerchantAdmins: (_a, params) => {
|
|
6098
5839
|
var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
|
|
6099
5840
|
if (params === void 0) { params = {}; }
|
|
6100
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
5841
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6101
5842
|
},
|
|
6102
5843
|
/**
|
|
6103
5844
|
* No description
|
|
@@ -6105,23 +5846,23 @@ class Api {
|
|
|
6105
5846
|
* @tags Merchants
|
|
6106
5847
|
* @name InviteMerchantAdmins
|
|
6107
5848
|
* @summary Invite merchant admins by merchant id
|
|
6108
|
-
* @request POST:/merchants/admins/invite
|
|
5849
|
+
* @request POST:/api/v1/merchants/admins/invite
|
|
6109
5850
|
* @secure
|
|
6110
5851
|
*/
|
|
6111
|
-
inviteMerchantAdmins: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/admins/invite`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5852
|
+
inviteMerchantAdmins: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/admins/invite`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6112
5853
|
/**
|
|
6113
5854
|
* No description
|
|
6114
5855
|
*
|
|
6115
5856
|
* @tags Merchants
|
|
6116
5857
|
* @name RevokeMerchantAdmins
|
|
6117
5858
|
* @summary Invite merchant admins by merchant id
|
|
6118
|
-
* @request DELETE:/merchants/{merchantId}/admins/{userId}
|
|
5859
|
+
* @request DELETE:/api/v1/merchants/{merchantId}/admins/{userId}
|
|
6119
5860
|
* @secure
|
|
6120
5861
|
*/
|
|
6121
5862
|
revokeMerchantAdmins: (_a, params) => {
|
|
6122
5863
|
var { merchantId, userId } = _a; __rest(_a, ["merchantId", "userId"]);
|
|
6123
5864
|
if (params === void 0) { params = {}; }
|
|
6124
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
|
|
5865
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
|
|
6125
5866
|
},
|
|
6126
5867
|
/**
|
|
6127
5868
|
* No description
|
|
@@ -6129,13 +5870,13 @@ class Api {
|
|
|
6129
5870
|
* @tags Merchants
|
|
6130
5871
|
* @name GetMerchantWallets
|
|
6131
5872
|
* @summary Get merchant wallets by merchant id
|
|
6132
|
-
* @request GET:/merchants/{merchantId}/wallets
|
|
5873
|
+
* @request GET:/api/v1/merchants/{merchantId}/wallets
|
|
6133
5874
|
* @secure
|
|
6134
5875
|
*/
|
|
6135
5876
|
getMerchantWallets: (_a, params) => {
|
|
6136
5877
|
var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
|
|
6137
5878
|
if (params === void 0) { params = {}; }
|
|
6138
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
5879
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6139
5880
|
},
|
|
6140
5881
|
/**
|
|
6141
5882
|
* No description
|
|
@@ -6143,205 +5884,205 @@ class Api {
|
|
|
6143
5884
|
* @tags Merchants
|
|
6144
5885
|
* @name AddMerchantWalletAssets
|
|
6145
5886
|
* @summary Add assets to merchant wallets by merchant id
|
|
6146
|
-
* @request POST:/merchants/wallets/add-assets
|
|
5887
|
+
* @request POST:/api/v1/merchants/wallets/add-assets
|
|
6147
5888
|
* @secure
|
|
6148
5889
|
*/
|
|
6149
|
-
addMerchantWalletAssets: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/wallets/add-assets`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
5890
|
+
addMerchantWalletAssets: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/wallets/add-assets`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
6150
5891
|
/**
|
|
6151
5892
|
* No description
|
|
6152
5893
|
*
|
|
6153
5894
|
* @tags Merchants
|
|
6154
5895
|
* @name AddNewAsset
|
|
6155
5896
|
* @summary Add new asset to merchant based on the asset configuration
|
|
6156
|
-
* @request POST:/merchants/assets/add
|
|
5897
|
+
* @request POST:/api/v1/merchants/assets/add
|
|
6157
5898
|
* @secure
|
|
6158
5899
|
*/
|
|
6159
|
-
addNewAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5900
|
+
addNewAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6160
5901
|
/**
|
|
6161
5902
|
* No description
|
|
6162
5903
|
*
|
|
6163
5904
|
* @tags Merchants
|
|
6164
5905
|
* @name RemoveAsset
|
|
6165
5906
|
* @summary Remove asset from merchant based on the asset configuration
|
|
6166
|
-
* @request DELETE:/merchants/assets/delete
|
|
5907
|
+
* @request DELETE:/api/v1/merchants/assets/delete
|
|
6167
5908
|
* @secure
|
|
6168
5909
|
*/
|
|
6169
|
-
removeAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/delete`, method: "DELETE", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5910
|
+
removeAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/assets/delete`, method: "DELETE", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6170
5911
|
/**
|
|
6171
5912
|
* No description
|
|
6172
5913
|
*
|
|
6173
5914
|
* @tags Merchants
|
|
6174
5915
|
* @name ShowMerchantAssetToWalletHolders
|
|
6175
5916
|
* @summary Show merchant asset to wallet holders based on the asset configuration
|
|
6176
|
-
* @request POST:/merchants/assets/update-visibility
|
|
5917
|
+
* @request POST:/api/v1/merchants/assets/update-visibility
|
|
6177
5918
|
* @secure
|
|
6178
5919
|
*/
|
|
6179
|
-
showMerchantAssetToWalletHolders: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/update-visibility`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5920
|
+
showMerchantAssetToWalletHolders: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/assets/update-visibility`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6180
5921
|
/**
|
|
6181
5922
|
* No description
|
|
6182
5923
|
*
|
|
6183
5924
|
* @tags Merchants
|
|
6184
5925
|
* @name ChangeMerchantAssetDefaultStatus
|
|
6185
5926
|
* @summary Change merchant asset default status
|
|
6186
|
-
* @request POST:/merchants/assets/update-default-status
|
|
5927
|
+
* @request POST:/api/v1/merchants/assets/update-default-status
|
|
6187
5928
|
* @secure
|
|
6188
5929
|
*/
|
|
6189
|
-
changeMerchantAssetDefaultStatus: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/update-default-status`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5930
|
+
changeMerchantAssetDefaultStatus: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/assets/update-default-status`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6190
5931
|
/**
|
|
6191
5932
|
* No description
|
|
6192
5933
|
*
|
|
6193
5934
|
* @tags Merchants
|
|
6194
5935
|
* @name CreateApiKey
|
|
6195
5936
|
* @summary Create new API Key
|
|
6196
|
-
* @request POST:/merchants/api-keys/new
|
|
5937
|
+
* @request POST:/api/v1/merchants/api-keys/new
|
|
6197
5938
|
* @secure
|
|
6198
5939
|
*/
|
|
6199
|
-
createApiKey: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/api-keys/new`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5940
|
+
createApiKey: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/api-keys/new`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6200
5941
|
/**
|
|
6201
5942
|
* No description
|
|
6202
5943
|
*
|
|
6203
5944
|
* @tags Merchants
|
|
6204
5945
|
* @name WhitelistApiKeyOrigins
|
|
6205
5946
|
* @summary Whitelist API Key's origins
|
|
6206
|
-
* @request POST:/merchants/api-keys/whitelist-origins
|
|
5947
|
+
* @request POST:/api/v1/merchants/api-keys/whitelist-origins
|
|
6207
5948
|
* @secure
|
|
6208
5949
|
*/
|
|
6209
|
-
whitelistApiKeyOrigins: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/api-keys/whitelist-origins`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5950
|
+
whitelistApiKeyOrigins: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/api-keys/whitelist-origins`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6210
5951
|
};
|
|
6211
5952
|
this.wallets = {
|
|
6212
5953
|
/**
|
|
6213
5954
|
* No description
|
|
6214
5955
|
*
|
|
6215
5956
|
* @tags Wallets
|
|
6216
|
-
* @name
|
|
5957
|
+
* @name GetAllWallets
|
|
6217
5958
|
* @summary Get all wallets by the admin
|
|
6218
|
-
* @request GET:/wallets
|
|
5959
|
+
* @request GET:/api/v1/wallets
|
|
6219
5960
|
* @secure
|
|
6220
5961
|
*/
|
|
6221
|
-
|
|
5962
|
+
getAllWallets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6222
5963
|
/**
|
|
6223
5964
|
* No description
|
|
6224
5965
|
*
|
|
6225
5966
|
* @tags Wallets
|
|
6226
5967
|
* @name CreateWallet
|
|
6227
5968
|
* @summary Create a newly fresh wallet, returns asset list and encrypted seed
|
|
6228
|
-
* @request POST:/wallets/create
|
|
5969
|
+
* @request POST:/api/v1/wallets/create
|
|
6229
5970
|
* @secure
|
|
6230
5971
|
*/
|
|
6231
|
-
createWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5972
|
+
createWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6232
5973
|
/**
|
|
6233
5974
|
* No description
|
|
6234
5975
|
*
|
|
6235
5976
|
* @tags Wallets
|
|
6236
5977
|
* @name VerifyAccess
|
|
6237
5978
|
* @summary Verify that the user still has the ability to transact with the wallet
|
|
6238
|
-
* @request POST:/wallets/verify-access
|
|
5979
|
+
* @request POST:/api/v1/wallets/verify-access
|
|
6239
5980
|
* @secure
|
|
6240
5981
|
*/
|
|
6241
|
-
verifyAccess: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/verify-access`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5982
|
+
verifyAccess: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/verify-access`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6242
5983
|
/**
|
|
6243
5984
|
* No description
|
|
6244
5985
|
*
|
|
6245
5986
|
* @tags Wallets
|
|
6246
5987
|
* @name CreateAdminWallet
|
|
6247
5988
|
* @summary Create a server side admin wallet where encryptedSeed will be opaque to the caller
|
|
6248
|
-
* @request POST:/wallets/create-admin-server-wallet
|
|
5989
|
+
* @request POST:/api/v1/wallets/create-admin-server-wallet
|
|
6249
5990
|
* @secure
|
|
6250
5991
|
*/
|
|
6251
|
-
createAdminWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create-admin-server-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5992
|
+
createAdminWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create-admin-server-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6252
5993
|
/**
|
|
6253
5994
|
* No description
|
|
6254
5995
|
*
|
|
6255
5996
|
* @tags Wallets, MPC
|
|
6256
5997
|
* @name CreateWalletV2
|
|
6257
5998
|
* @summary Create a newly fresh wallet, returns asset list and encrypted seed, shares, or both
|
|
6258
|
-
* @request POST:/wallets/create-with-shares
|
|
5999
|
+
* @request POST:/api/v1/wallets/create-with-shares
|
|
6259
6000
|
* @secure
|
|
6260
6001
|
*/
|
|
6261
|
-
createWalletV2: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create-with-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6002
|
+
createWalletV2: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create-with-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6262
6003
|
/**
|
|
6263
6004
|
* No description
|
|
6264
6005
|
*
|
|
6265
6006
|
* @tags Wallets, MPC
|
|
6266
6007
|
* @name ImportWalletSeedPhraseV2
|
|
6267
6008
|
* @summary Import an existing wallet seed phrase into wallaby system directly
|
|
6268
|
-
* @request POST:/wallets/create-shares-based-wallet-from-seed
|
|
6009
|
+
* @request POST:/api/v1/wallets/create-shares-based-wallet-from-seed
|
|
6269
6010
|
* @secure
|
|
6270
6011
|
*/
|
|
6271
|
-
importWalletSeedPhraseV2: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create-shares-based-wallet-from-seed`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6012
|
+
importWalletSeedPhraseV2: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create-shares-based-wallet-from-seed`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6272
6013
|
/**
|
|
6273
6014
|
* No description
|
|
6274
6015
|
*
|
|
6275
6016
|
* @tags Wallets, MPC
|
|
6276
6017
|
* @name RetrieveShares
|
|
6277
6018
|
* @summary Retrieve shares which belong to the user on a specified wallet
|
|
6278
|
-
* @request POST:/wallets/retrieve-shares
|
|
6019
|
+
* @request POST:/api/v1/wallets/retrieve-shares
|
|
6279
6020
|
* @secure
|
|
6280
6021
|
*/
|
|
6281
|
-
retrieveShares: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/retrieve-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6022
|
+
retrieveShares: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/retrieve-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6282
6023
|
/**
|
|
6283
6024
|
* No description
|
|
6284
6025
|
*
|
|
6285
6026
|
* @tags Wallets, MPC
|
|
6286
6027
|
* @name ShareWallet
|
|
6287
6028
|
* @summary Share an entity wallet with another user
|
|
6288
|
-
* @request POST:/wallets/initiate-share-wallet
|
|
6029
|
+
* @request POST:/api/v1/wallets/initiate-share-wallet
|
|
6289
6030
|
* @secure
|
|
6290
6031
|
*/
|
|
6291
|
-
shareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/initiate-share-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6032
|
+
shareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/initiate-share-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6292
6033
|
/**
|
|
6293
6034
|
* No description
|
|
6294
6035
|
*
|
|
6295
6036
|
* @tags Wallets, MPC
|
|
6296
6037
|
* @name UnshareWallet
|
|
6297
6038
|
* @summary Unshare an entity wallet with a user previously granted access
|
|
6298
|
-
* @request POST:/wallets/unshare-wallet
|
|
6039
|
+
* @request POST:/api/v1/wallets/unshare-wallet
|
|
6299
6040
|
* @secure
|
|
6300
6041
|
*/
|
|
6301
|
-
unshareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/unshare-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6042
|
+
unshareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/unshare-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6302
6043
|
/**
|
|
6303
6044
|
* No description
|
|
6304
6045
|
*
|
|
6305
6046
|
* @tags Wallets
|
|
6306
6047
|
* @name AddNewDevice
|
|
6307
6048
|
* @summary This endpoint will be called by the new device after it receives a Wallaby wrapped share
|
|
6308
|
-
* @request POST:/wallets/add-new-device
|
|
6049
|
+
* @request POST:/api/v1/wallets/add-new-device
|
|
6309
6050
|
* @secure
|
|
6310
6051
|
*/
|
|
6311
|
-
addNewDevice: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/add-new-device`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6052
|
+
addNewDevice: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/add-new-device`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6312
6053
|
/**
|
|
6313
6054
|
* No description
|
|
6314
6055
|
*
|
|
6315
6056
|
* @tags Wallets
|
|
6316
6057
|
* @name ImportWalletSeedPhrase
|
|
6317
6058
|
* @summary Import an existing wallet seed phrase into wallaby system directly
|
|
6318
|
-
* @request POST:/wallets/import-seed-phrase
|
|
6059
|
+
* @request POST:/api/v1/wallets/import-seed-phrase
|
|
6319
6060
|
* @secure
|
|
6320
6061
|
*/
|
|
6321
|
-
importWalletSeedPhrase: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/import-seed-phrase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6062
|
+
importWalletSeedPhrase: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/import-seed-phrase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6322
6063
|
/**
|
|
6323
6064
|
* No description
|
|
6324
6065
|
*
|
|
6325
6066
|
* @tags Wallets
|
|
6326
6067
|
* @name GenerateMissingAddresses
|
|
6327
6068
|
* @summary Generates missing wallet addresses for a user's wallet
|
|
6328
|
-
* @request POST:/wallets/generate-wallet-addresses
|
|
6069
|
+
* @request POST:/api/v1/wallets/generate-wallet-addresses
|
|
6329
6070
|
* @secure
|
|
6330
6071
|
*/
|
|
6331
|
-
generateMissingAddresses: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/generate-wallet-addresses`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6072
|
+
generateMissingAddresses: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/generate-wallet-addresses`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6332
6073
|
/**
|
|
6333
6074
|
* No description
|
|
6334
6075
|
*
|
|
6335
6076
|
* @tags Wallets
|
|
6336
6077
|
* @name GetUserAssetsByWalletId
|
|
6337
6078
|
* @summary Get all assets that exist in a certain wallet, by specifying a wallet ID
|
|
6338
|
-
* @request GET:/wallets/{walletId}/assets
|
|
6079
|
+
* @request GET:/api/v1/wallets/{walletId}/assets
|
|
6339
6080
|
* @secure
|
|
6340
6081
|
*/
|
|
6341
6082
|
getUserAssetsByWalletId: (_a, params) => {
|
|
6342
6083
|
var { walletId } = _a, query = __rest(_a, ["walletId"]);
|
|
6343
6084
|
if (params === void 0) { params = {}; }
|
|
6344
|
-
return this.http.request(Object.assign({ path: `/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6085
|
+
return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6345
6086
|
},
|
|
6346
6087
|
/**
|
|
6347
6088
|
* No description
|
|
@@ -6349,523 +6090,598 @@ class Api {
|
|
|
6349
6090
|
* @tags Wallets
|
|
6350
6091
|
* @name GetUserAsset
|
|
6351
6092
|
* @summary Get one asset from a user's wallet
|
|
6352
|
-
* @request GET:/wallets/asset
|
|
6093
|
+
* @request GET:/api/v1/wallets/asset
|
|
6353
6094
|
* @secure
|
|
6354
6095
|
*/
|
|
6355
|
-
getUserAsset: (query, data, params = {}) => this.http.request(Object.assign({ path: `/wallets/asset`, method: "GET", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6096
|
+
getUserAsset: (query, data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/asset`, method: "GET", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6356
6097
|
/**
|
|
6357
6098
|
* No description
|
|
6358
6099
|
*
|
|
6359
6100
|
* @tags Wallets
|
|
6360
6101
|
* @name UpdateUserAsset
|
|
6361
6102
|
* @summary Update a specific asset in a wallet
|
|
6362
|
-
* @request PUT:/wallets/asset/update
|
|
6103
|
+
* @request PUT:/api/v1/wallets/asset/update
|
|
6363
6104
|
* @secure
|
|
6364
6105
|
*/
|
|
6365
|
-
updateUserAsset: (query, data, params = {}) => this.http.request(Object.assign({ path: `/wallets/asset/update`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6106
|
+
updateUserAsset: (query, data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/asset/update`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6366
6107
|
/**
|
|
6367
6108
|
* No description
|
|
6368
6109
|
*
|
|
6369
6110
|
* @tags Wallets, Multisig
|
|
6370
6111
|
* @name CreateMultisigAsset
|
|
6371
6112
|
* @summary Initiate creation for a new multisig asset, by specifying participants and the threshold
|
|
6372
|
-
* @request POST:/wallets/create-multisig-asset
|
|
6113
|
+
* @request POST:/api/v1/wallets/create-multisig-asset
|
|
6373
6114
|
* @secure
|
|
6374
6115
|
*/
|
|
6375
|
-
createMultisigAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create-multisig-asset`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6116
|
+
createMultisigAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create-multisig-asset`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6376
6117
|
/**
|
|
6377
6118
|
* No description
|
|
6378
6119
|
*
|
|
6379
6120
|
* @tags Wallets, Recovery
|
|
6380
6121
|
* @name InitiateWalletRecovery
|
|
6381
6122
|
* @summary Wallet Recovery - Step 1: Initiate wallet recovery
|
|
6382
|
-
* @request POST:/wallets/recover/init
|
|
6123
|
+
* @request POST:/api/v1/wallets/recover/init
|
|
6383
6124
|
* @secure
|
|
6384
6125
|
*/
|
|
6385
|
-
initiateWalletRecovery: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover/init`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6126
|
+
initiateWalletRecovery: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/recover/init`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6386
6127
|
/**
|
|
6387
6128
|
* No description
|
|
6388
6129
|
*
|
|
6389
6130
|
* @tags Wallets, Recovery
|
|
6390
6131
|
* @name RecoverWallet
|
|
6391
6132
|
* @summary Wallet Recovery - Step 2 and final: Recover the lost wallet and its assets
|
|
6392
|
-
* @request POST:/wallets/recover
|
|
6133
|
+
* @request POST:/api/v1/wallets/recover
|
|
6393
6134
|
* @secure
|
|
6394
6135
|
*/
|
|
6395
|
-
recoverWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6136
|
+
recoverWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/recover`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6396
6137
|
/**
|
|
6397
6138
|
* No description
|
|
6398
6139
|
*
|
|
6399
6140
|
* @tags Wallets, Algorand
|
|
6400
6141
|
* @name ConvertStandardPhraseToAlgoSpecific
|
|
6401
6142
|
* @summary Convert BIP39 Standard seed phrase to Algorand fixed 25 words mnemonic phrase
|
|
6402
|
-
* @request POST:/wallets/convert-mnemonic-seed
|
|
6143
|
+
* @request POST:/api/v1/wallets/convert-mnemonic-seed
|
|
6144
|
+
* @secure
|
|
6145
|
+
*/
|
|
6146
|
+
convertStandardPhraseToAlgoSpecific: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/convert-mnemonic-seed`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
6147
|
+
/**
|
|
6148
|
+
* No description
|
|
6149
|
+
*
|
|
6150
|
+
* @tags Wallets, Swaps
|
|
6151
|
+
* @name RequestSwapQuote
|
|
6152
|
+
* @summary Request a swap quote for exchanging assets
|
|
6153
|
+
* @request POST:/api/v1/wallets/{walletId}/swap/quote
|
|
6403
6154
|
* @secure
|
|
6404
6155
|
*/
|
|
6405
|
-
|
|
6156
|
+
requestSwapQuote: (_a, data, params) => {
|
|
6157
|
+
var { walletId } = _a; __rest(_a, ["walletId"]);
|
|
6158
|
+
if (params === void 0) { params = {}; }
|
|
6159
|
+
return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swap/quote`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
6160
|
+
},
|
|
6161
|
+
/**
|
|
6162
|
+
* No description
|
|
6163
|
+
*
|
|
6164
|
+
* @tags Wallets, Swaps
|
|
6165
|
+
* @name GetSwapHistory
|
|
6166
|
+
* @summary Get swap history for a wallet
|
|
6167
|
+
* @request GET:/api/v1/wallets/{walletId}/swaps
|
|
6168
|
+
* @secure
|
|
6169
|
+
*/
|
|
6170
|
+
getSwapHistory: (_a, params) => {
|
|
6171
|
+
var { walletId } = _a, query = __rest(_a, ["walletId"]);
|
|
6172
|
+
if (params === void 0) { params = {}; }
|
|
6173
|
+
return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6174
|
+
},
|
|
6175
|
+
/**
|
|
6176
|
+
* No description
|
|
6177
|
+
*
|
|
6178
|
+
* @tags Wallets, Swaps
|
|
6179
|
+
* @name GetSwapById
|
|
6180
|
+
* @summary Get a specific swap by ID
|
|
6181
|
+
* @request GET:/api/v1/wallets/{walletId}/swaps/{swapId}
|
|
6182
|
+
* @secure
|
|
6183
|
+
*/
|
|
6184
|
+
getSwapById: (_a, params) => {
|
|
6185
|
+
var { walletId, swapId } = _a; __rest(_a, ["walletId", "swapId"]);
|
|
6186
|
+
if (params === void 0) { params = {}; }
|
|
6187
|
+
return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps/${swapId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6188
|
+
},
|
|
6189
|
+
/**
|
|
6190
|
+
* No description
|
|
6191
|
+
*
|
|
6192
|
+
* @tags Wallets, Transactions
|
|
6193
|
+
* @name ExecuteSwap
|
|
6194
|
+
* @summary Execute a swap transaction between supported assets
|
|
6195
|
+
* @request POST:/api/v1/wallets/execute-swap
|
|
6196
|
+
* @secure
|
|
6197
|
+
*/
|
|
6198
|
+
executeSwap: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/execute-swap`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
6406
6199
|
};
|
|
6407
|
-
this.
|
|
6200
|
+
this.transactions = {
|
|
6408
6201
|
/**
|
|
6409
6202
|
* No description
|
|
6410
6203
|
*
|
|
6411
|
-
* @tags
|
|
6412
|
-
* @name
|
|
6413
|
-
* @summary Get
|
|
6414
|
-
* @request GET:/
|
|
6204
|
+
* @tags Transactions
|
|
6205
|
+
* @name GetTransactions
|
|
6206
|
+
* @summary Get list of transactions
|
|
6207
|
+
* @request GET:/api/v1/transactions
|
|
6415
6208
|
* @secure
|
|
6416
6209
|
*/
|
|
6417
|
-
|
|
6210
|
+
getTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6418
6211
|
/**
|
|
6419
6212
|
* No description
|
|
6420
6213
|
*
|
|
6421
|
-
* @tags
|
|
6422
|
-
* @name
|
|
6423
|
-
* @summary
|
|
6424
|
-
* @request
|
|
6214
|
+
* @tags Transactions
|
|
6215
|
+
* @name GetPendingTransactions
|
|
6216
|
+
* @summary Get list of pending transactions
|
|
6217
|
+
* @request GET:/api/v1/transactions/pending
|
|
6425
6218
|
* @secure
|
|
6426
6219
|
*/
|
|
6427
|
-
|
|
6220
|
+
getPendingTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/pending`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6428
6221
|
/**
|
|
6429
6222
|
* No description
|
|
6430
6223
|
*
|
|
6431
|
-
* @tags
|
|
6432
|
-
* @name
|
|
6433
|
-
* @summary
|
|
6434
|
-
* @request
|
|
6224
|
+
* @tags Transactions
|
|
6225
|
+
* @name ResolvePendingTransaction
|
|
6226
|
+
* @summary Approve or reject a pending transaction
|
|
6227
|
+
* @request POST:/api/v1/transactions/resolve
|
|
6435
6228
|
* @secure
|
|
6436
6229
|
*/
|
|
6437
|
-
|
|
6230
|
+
resolvePendingTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/resolve`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6438
6231
|
/**
|
|
6439
6232
|
* No description
|
|
6440
6233
|
*
|
|
6441
|
-
* @tags
|
|
6442
|
-
* @name
|
|
6443
|
-
* @summary
|
|
6444
|
-
* @request
|
|
6234
|
+
* @tags Transactions
|
|
6235
|
+
* @name SendTransaction
|
|
6236
|
+
* @summary Request transferring funds to a recipient address
|
|
6237
|
+
* @request POST:/api/v1/transactions/transfer
|
|
6445
6238
|
* @secure
|
|
6446
6239
|
*/
|
|
6447
|
-
|
|
6240
|
+
sendTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/transfer`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6448
6241
|
/**
|
|
6449
6242
|
* No description
|
|
6450
6243
|
*
|
|
6451
|
-
* @tags
|
|
6452
|
-
* @name
|
|
6453
|
-
* @summary
|
|
6454
|
-
* @request
|
|
6244
|
+
* @tags Transactions
|
|
6245
|
+
* @name SendV2Transaction
|
|
6246
|
+
* @summary Request transferring funds to a recipient address
|
|
6247
|
+
* @request POST:/api/v1/transactions/transfer-with-shares
|
|
6455
6248
|
* @secure
|
|
6456
6249
|
*/
|
|
6457
|
-
|
|
6458
|
-
var { userId } = _a; __rest(_a, ["userId"]);
|
|
6459
|
-
if (params === void 0) { params = {}; }
|
|
6460
|
-
return this.http.request(Object.assign({ path: `/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
|
|
6461
|
-
},
|
|
6250
|
+
sendV2Transaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/transfer-with-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6462
6251
|
/**
|
|
6463
6252
|
* No description
|
|
6464
6253
|
*
|
|
6465
|
-
* @tags
|
|
6466
|
-
* @name
|
|
6467
|
-
* @summary
|
|
6468
|
-
* @request
|
|
6254
|
+
* @tags Transactions
|
|
6255
|
+
* @name InitMultisigTransfer
|
|
6256
|
+
* @summary User initiating and signing a multi-sig transfer request
|
|
6257
|
+
* @request POST:/api/v1/transactions/init-multisig-transfer
|
|
6469
6258
|
* @secure
|
|
6470
6259
|
*/
|
|
6471
|
-
|
|
6260
|
+
initMultisigTransfer: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/init-multisig-transfer`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
6472
6261
|
/**
|
|
6473
6262
|
* No description
|
|
6474
6263
|
*
|
|
6475
|
-
* @tags
|
|
6476
|
-
* @name
|
|
6477
|
-
* @summary
|
|
6478
|
-
* @request
|
|
6479
|
-
* @originalName getCurrentUserMerchantAssets
|
|
6480
|
-
* @duplicate
|
|
6264
|
+
* @tags Transactions, Multisig
|
|
6265
|
+
* @name InitMultisigAssetOptin
|
|
6266
|
+
* @summary User initiating a multi-sig asset optin request and subsequently signs the first signature on the request
|
|
6267
|
+
* @request POST:/api/v1/transactions/init-multisig-asset-optin
|
|
6481
6268
|
* @secure
|
|
6482
6269
|
*/
|
|
6483
|
-
|
|
6270
|
+
initMultisigAssetOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/init-multisig-asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
6484
6271
|
/**
|
|
6485
6272
|
* No description
|
|
6486
6273
|
*
|
|
6487
|
-
* @tags
|
|
6488
|
-
* @name
|
|
6489
|
-
* @summary
|
|
6490
|
-
* @request
|
|
6274
|
+
* @tags Transactions, Multisig
|
|
6275
|
+
* @name InitMultisigAppOptin
|
|
6276
|
+
* @summary User initiating a multi-sig app optin request and subsequently signs the first signature on the request
|
|
6277
|
+
* @request POST:/api/v1/transactions/init-multisig-app-optin
|
|
6491
6278
|
* @secure
|
|
6492
6279
|
*/
|
|
6493
|
-
|
|
6494
|
-
var { userId } = _a, query = __rest(_a, ["userId"]);
|
|
6495
|
-
if (params === void 0) { params = {}; }
|
|
6496
|
-
return this.http.request(Object.assign({ path: `/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6497
|
-
},
|
|
6280
|
+
initMultisigAppOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/init-multisig-app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
6498
6281
|
/**
|
|
6499
6282
|
* No description
|
|
6500
6283
|
*
|
|
6501
|
-
* @tags
|
|
6502
|
-
* @name
|
|
6503
|
-
* @summary
|
|
6504
|
-
* @request POST:/
|
|
6284
|
+
* @tags Transactions, Multisig
|
|
6285
|
+
* @name SignOnMultisigTransactionRequest
|
|
6286
|
+
* @summary Append signature to an existing multisig transaction request: It can be a request to transfer, optin, etc, ...
|
|
6287
|
+
* @request POST:/api/v1/transactions/sign-multisig-request
|
|
6505
6288
|
* @secure
|
|
6506
6289
|
*/
|
|
6507
|
-
|
|
6290
|
+
signOnMultisigTransactionRequest: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/sign-multisig-request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
6508
6291
|
/**
|
|
6509
6292
|
* No description
|
|
6510
6293
|
*
|
|
6511
|
-
* @tags
|
|
6512
|
-
* @name
|
|
6513
|
-
* @summary
|
|
6514
|
-
* @request
|
|
6294
|
+
* @tags Transactions, Optin
|
|
6295
|
+
* @name AssetOptInTransaction
|
|
6296
|
+
* @summary Transaction for optin to receive a specific asset in the future
|
|
6297
|
+
* @request POST:/api/v1/transactions/asset-optin
|
|
6515
6298
|
* @secure
|
|
6516
6299
|
*/
|
|
6517
|
-
|
|
6518
|
-
var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
|
|
6519
|
-
if (params === void 0) { params = {}; }
|
|
6520
|
-
return this.http.request(Object.assign({ path: `/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
|
|
6521
|
-
},
|
|
6300
|
+
assetOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6522
6301
|
/**
|
|
6523
6302
|
* No description
|
|
6524
6303
|
*
|
|
6525
|
-
* @tags
|
|
6526
|
-
* @name
|
|
6527
|
-
* @summary
|
|
6528
|
-
* @request
|
|
6304
|
+
* @tags Transactions, Optin
|
|
6305
|
+
* @name AppOptInTransaction
|
|
6306
|
+
* @summary Transaction for optin to interact with a specific app
|
|
6307
|
+
* @request POST:/api/v1/transactions/app-optin
|
|
6529
6308
|
* @secure
|
|
6530
6309
|
*/
|
|
6531
|
-
|
|
6532
|
-
var { userId } = _a; __rest(_a, ["userId"]);
|
|
6533
|
-
if (params === void 0) { params = {}; }
|
|
6534
|
-
return this.http.request(Object.assign({ path: `/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6535
|
-
},
|
|
6310
|
+
appOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6536
6311
|
/**
|
|
6537
6312
|
* No description
|
|
6538
6313
|
*
|
|
6539
|
-
* @tags
|
|
6540
|
-
* @name
|
|
6541
|
-
* @
|
|
6314
|
+
* @tags Transactions
|
|
6315
|
+
* @name GetEstimateFee
|
|
6316
|
+
* @summary Request fee estimate for a particular transaction
|
|
6317
|
+
* @request GET:/api/v1/transactions/estimate-fee
|
|
6542
6318
|
* @secure
|
|
6543
6319
|
*/
|
|
6544
|
-
|
|
6545
|
-
var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
|
|
6546
|
-
if (params === void 0) { params = {}; }
|
|
6547
|
-
return this.http.request(Object.assign({ path: `/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
|
|
6548
|
-
},
|
|
6320
|
+
getEstimateFee: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/estimate-fee`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6549
6321
|
/**
|
|
6550
6322
|
* No description
|
|
6551
6323
|
*
|
|
6552
|
-
* @tags
|
|
6553
|
-
* @name
|
|
6554
|
-
* @summary
|
|
6555
|
-
* @request GET:/
|
|
6324
|
+
* @tags Transactions, Query
|
|
6325
|
+
* @name FetchTransactionByHashOrReference
|
|
6326
|
+
* @summary Fetch transaction status data using a reference or transaction hash
|
|
6327
|
+
* @request GET:/api/v1/transactions/status
|
|
6556
6328
|
* @secure
|
|
6557
6329
|
*/
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6330
|
+
fetchTransactionByHashOrReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/status`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6331
|
+
/**
|
|
6332
|
+
* @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
|
|
6333
|
+
*
|
|
6334
|
+
* @tags Transactions, Raw, Transactions
|
|
6335
|
+
* @name SignAndBroadcastRawTx
|
|
6336
|
+
* @summary Sign and broadcast raw transaction API
|
|
6337
|
+
* @request POST:/api/v1/transactions/sign-broadcast-rawtx
|
|
6338
|
+
* @secure
|
|
6339
|
+
*/
|
|
6340
|
+
signAndBroadcastRawTx: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/sign-broadcast-rawtx`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6565
6341
|
/**
|
|
6566
6342
|
* No description
|
|
6567
6343
|
*
|
|
6568
|
-
* @tags
|
|
6569
|
-
* @name
|
|
6570
|
-
* @summary
|
|
6571
|
-
* @request
|
|
6344
|
+
* @tags Transactions, Transactions, Multisig, Raw
|
|
6345
|
+
* @name InitMultisigRawTransaction
|
|
6346
|
+
* @summary Initiate a multisig raw transaction and sign the first signature on that same transaction
|
|
6347
|
+
* @request POST:/api/v1/transactions/init-sign-broadcast-multisig-rawtx
|
|
6572
6348
|
* @secure
|
|
6573
6349
|
*/
|
|
6574
|
-
|
|
6350
|
+
initMultisigRawTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/init-sign-broadcast-multisig-rawtx`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
6575
6351
|
/**
|
|
6576
6352
|
* No description
|
|
6577
6353
|
*
|
|
6578
|
-
* @tags Query
|
|
6579
|
-
* @name
|
|
6580
|
-
* @summary Fetch
|
|
6581
|
-
* @request GET:/
|
|
6354
|
+
* @tags Transactions, Query
|
|
6355
|
+
* @name GetDetailedRawTransactionDataByReference
|
|
6356
|
+
* @summary Fetch transaction in raw data format from the system persistence
|
|
6357
|
+
* @request GET:/api/v1/transactions/raw-status
|
|
6582
6358
|
* @secure
|
|
6583
6359
|
*/
|
|
6584
|
-
|
|
6360
|
+
getDetailedRawTransactionDataByReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/raw-status`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6585
6361
|
/**
|
|
6586
6362
|
* No description
|
|
6587
6363
|
*
|
|
6588
|
-
* @tags Query
|
|
6589
|
-
* @name
|
|
6590
|
-
* @summary Fetch
|
|
6591
|
-
* @request
|
|
6364
|
+
* @tags Transactions, Query
|
|
6365
|
+
* @name FetchTransactionParticipants
|
|
6366
|
+
* @summary Fetch transaction's participants
|
|
6367
|
+
* @request GET:/api/v1/transactions/{reference}/participants
|
|
6592
6368
|
* @secure
|
|
6593
6369
|
*/
|
|
6594
|
-
|
|
6370
|
+
fetchTransactionParticipants: (_a, params) => {
|
|
6371
|
+
var { reference } = _a; __rest(_a, ["reference"]);
|
|
6372
|
+
if (params === void 0) { params = {}; }
|
|
6373
|
+
return this.http.request(Object.assign({ path: `/api/v1/transactions/${reference}/participants`, method: "GET", secure: true, format: "json" }, params));
|
|
6374
|
+
},
|
|
6595
6375
|
/**
|
|
6596
6376
|
* No description
|
|
6597
6377
|
*
|
|
6598
|
-
* @tags
|
|
6599
|
-
* @name
|
|
6600
|
-
* @summary
|
|
6601
|
-
* @request
|
|
6378
|
+
* @tags Transactions, Transactions, ERC1404
|
|
6379
|
+
* @name DetectTransferRestriction
|
|
6380
|
+
* @summary Request to detect whether there is a transfer restriction on a particular transaction
|
|
6381
|
+
* @request GET:/api/v1/transactions/detect-transfers-restrictions
|
|
6602
6382
|
* @secure
|
|
6603
6383
|
*/
|
|
6604
|
-
|
|
6384
|
+
detectTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/detect-transfers-restrictions`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6605
6385
|
/**
|
|
6606
6386
|
* No description
|
|
6607
6387
|
*
|
|
6608
|
-
* @tags
|
|
6609
|
-
* @name
|
|
6610
|
-
* @summary
|
|
6611
|
-
* @request GET:/
|
|
6388
|
+
* @tags Transactions, Transactions, ERC1404
|
|
6389
|
+
* @name FetchMessageForTransferRestriction
|
|
6390
|
+
* @summary Request restriction message by providing a restriction code
|
|
6391
|
+
* @request GET:/api/v1/transactions/transfer-restriction-message
|
|
6392
|
+
* @secure
|
|
6612
6393
|
*/
|
|
6613
|
-
|
|
6394
|
+
fetchMessageForTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/transfer-restriction-message`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6614
6395
|
/**
|
|
6615
6396
|
* No description
|
|
6616
6397
|
*
|
|
6617
|
-
* @tags
|
|
6618
|
-
* @name
|
|
6619
|
-
* @summary
|
|
6620
|
-
* @request GET:/
|
|
6398
|
+
* @tags Transactions, Optin
|
|
6399
|
+
* @name CheckAssetOptinForAddress
|
|
6400
|
+
* @summary Get the list of all assets that the current account has opted into. This is only relevant for the Algorand chain
|
|
6401
|
+
* @request GET:/api/v1/transactions/check-asset-optin
|
|
6621
6402
|
* @secure
|
|
6622
6403
|
*/
|
|
6623
|
-
|
|
6404
|
+
checkAssetOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-asset-optin`, method: "GET", query: query, secure: true }, params)),
|
|
6624
6405
|
/**
|
|
6625
6406
|
* No description
|
|
6626
6407
|
*
|
|
6627
|
-
* @tags
|
|
6628
|
-
* @name
|
|
6629
|
-
* @summary
|
|
6630
|
-
* @request GET:/
|
|
6408
|
+
* @tags Transactions, Optin
|
|
6409
|
+
* @name CheckAppOptinForAddress
|
|
6410
|
+
* @summary Get the list of all apps that the current account has opted into. This is only relevant for the Algorand chain
|
|
6411
|
+
* @request GET:/api/v1/transactions/check-app-optin
|
|
6412
|
+
* @secure
|
|
6413
|
+
*/
|
|
6414
|
+
checkAppOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-app-optin`, method: "GET", query: query, secure: true }, params)),
|
|
6415
|
+
/**
|
|
6416
|
+
* No description
|
|
6417
|
+
*
|
|
6418
|
+
* @tags Transactions, Transactions
|
|
6419
|
+
* @name CreateAllowanceTransaction
|
|
6420
|
+
* @summary Create an allowance for others to spend on your behalf
|
|
6421
|
+
* @request POST:/api/v1/transactions/create-allowance
|
|
6631
6422
|
* @secure
|
|
6632
6423
|
*/
|
|
6633
|
-
|
|
6424
|
+
createAllowanceTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/create-allowance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6634
6425
|
};
|
|
6635
|
-
this.
|
|
6426
|
+
this.query = {
|
|
6636
6427
|
/**
|
|
6637
6428
|
* No description
|
|
6638
6429
|
*
|
|
6639
|
-
* @tags
|
|
6640
|
-
* @name
|
|
6641
|
-
* @summary
|
|
6642
|
-
* @request GET:/
|
|
6430
|
+
* @tags Query
|
|
6431
|
+
* @name FetchBalance
|
|
6432
|
+
* @summary Fetch asset balance by specifying the asset address and the asset symbol
|
|
6433
|
+
* @request GET:/api/v1/query/assets/balance
|
|
6643
6434
|
* @secure
|
|
6644
6435
|
*/
|
|
6645
|
-
|
|
6436
|
+
fetchBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/assets/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6646
6437
|
/**
|
|
6647
6438
|
* No description
|
|
6648
6439
|
*
|
|
6649
|
-
* @tags
|
|
6650
|
-
* @name
|
|
6651
|
-
* @summary
|
|
6652
|
-
* @request
|
|
6440
|
+
* @tags Query
|
|
6441
|
+
* @name FetchOnlyBalance
|
|
6442
|
+
* @summary Fetch address balance by specifying the address and the asset symbol. This API works even for external assets addresses
|
|
6443
|
+
* @request GET:/api/v1/query/address/balance
|
|
6653
6444
|
* @secure
|
|
6654
6445
|
*/
|
|
6655
|
-
|
|
6446
|
+
fetchOnlyBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/address/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6656
6447
|
/**
|
|
6657
6448
|
* No description
|
|
6658
6449
|
*
|
|
6659
|
-
* @tags
|
|
6660
|
-
* @name
|
|
6661
|
-
* @summary
|
|
6662
|
-
* @request POST:/
|
|
6450
|
+
* @tags Query
|
|
6451
|
+
* @name FetchBulkBalance
|
|
6452
|
+
* @summary Fetch assets' balance by providing an array of asset addresses and symbols
|
|
6453
|
+
* @request POST:/api/v1/query/assets/bulk-balance
|
|
6663
6454
|
* @secure
|
|
6664
6455
|
*/
|
|
6665
|
-
|
|
6456
|
+
fetchBulkBalance: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/assets/bulk-balance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6666
6457
|
/**
|
|
6667
6458
|
* No description
|
|
6668
6459
|
*
|
|
6669
|
-
* @tags
|
|
6670
|
-
* @name
|
|
6671
|
-
* @summary
|
|
6672
|
-
* @request POST:/
|
|
6460
|
+
* @tags Query
|
|
6461
|
+
* @name FetchWalletBulkBalance
|
|
6462
|
+
* @summary Fetch assets balances by specifying the wallet ID
|
|
6463
|
+
* @request POST:/api/v1/query/assets/wallet-bulk-balance
|
|
6673
6464
|
* @secure
|
|
6674
6465
|
*/
|
|
6675
|
-
|
|
6466
|
+
fetchWalletBulkBalance: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/assets/wallet-bulk-balance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6676
6467
|
/**
|
|
6677
6468
|
* No description
|
|
6678
6469
|
*
|
|
6679
|
-
* @tags
|
|
6680
|
-
* @name
|
|
6681
|
-
* @summary
|
|
6682
|
-
* @request
|
|
6470
|
+
* @tags Query
|
|
6471
|
+
* @name FetchTransactions
|
|
6472
|
+
* @summary Fetch the current address historical transactions
|
|
6473
|
+
* @request GET:/api/v1/query/transactions
|
|
6683
6474
|
* @secure
|
|
6684
6475
|
*/
|
|
6685
|
-
|
|
6476
|
+
fetchTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6686
6477
|
/**
|
|
6687
6478
|
* No description
|
|
6688
6479
|
*
|
|
6689
|
-
* @tags
|
|
6690
|
-
* @name
|
|
6691
|
-
* @summary
|
|
6692
|
-
* @request
|
|
6480
|
+
* @tags Query, Assets
|
|
6481
|
+
* @name FetchEvmTokenAssetInfo
|
|
6482
|
+
* @summary Request token asset info like decimals, name and symbol
|
|
6483
|
+
* @request GET:/api/v1/query/fetch-token-info
|
|
6693
6484
|
* @secure
|
|
6694
6485
|
*/
|
|
6695
|
-
|
|
6486
|
+
fetchEvmTokenAssetInfo: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/fetch-token-info`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6696
6487
|
/**
|
|
6697
6488
|
* No description
|
|
6698
6489
|
*
|
|
6699
|
-
* @tags
|
|
6700
|
-
* @name
|
|
6701
|
-
* @summary
|
|
6702
|
-
* @request
|
|
6490
|
+
* @tags Query, Assets
|
|
6491
|
+
* @name FetchAssetPairPrice
|
|
6492
|
+
* @summary Fetch asset price by providing symbol pairing or a list of pairing symbols
|
|
6493
|
+
* @request GET:/api/v1/query/get-asset-price
|
|
6703
6494
|
* @secure
|
|
6704
6495
|
*/
|
|
6705
|
-
|
|
6496
|
+
fetchAssetPairPrice: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/get-asset-price`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6497
|
+
};
|
|
6498
|
+
this.mpc = {
|
|
6706
6499
|
/**
|
|
6707
6500
|
* No description
|
|
6708
6501
|
*
|
|
6709
|
-
* @tags
|
|
6710
|
-
* @name
|
|
6711
|
-
* @summary
|
|
6712
|
-
* @request POST:/
|
|
6502
|
+
* @tags Mpc
|
|
6503
|
+
* @name InitKeyExchange
|
|
6504
|
+
* @summary Initialize key exchange process, the keys exchanged will be later used for encryption/decryption of the payloads exchanged
|
|
6505
|
+
* @request POST:/api/v1/mpc/init-key-exchange
|
|
6713
6506
|
* @secure
|
|
6714
6507
|
*/
|
|
6715
|
-
|
|
6508
|
+
initKeyExchange: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/mpc/init-key-exchange`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6716
6509
|
/**
|
|
6717
6510
|
* No description
|
|
6718
6511
|
*
|
|
6719
|
-
* @tags
|
|
6720
|
-
* @name
|
|
6721
|
-
* @summary
|
|
6722
|
-
* @request POST:/
|
|
6512
|
+
* @tags Mpc
|
|
6513
|
+
* @name RequestSeedphraseSplit
|
|
6514
|
+
* @summary Request seed phrase split and return shares that can be used later for recovery
|
|
6515
|
+
* @request POST:/api/v1/mpc/request-seed-split
|
|
6723
6516
|
* @secure
|
|
6724
6517
|
*/
|
|
6725
|
-
|
|
6518
|
+
requestSeedphraseSplit: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/mpc/request-seed-split`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6726
6519
|
/**
|
|
6727
6520
|
* No description
|
|
6728
6521
|
*
|
|
6729
|
-
* @tags
|
|
6730
|
-
* @name
|
|
6731
|
-
* @summary
|
|
6732
|
-
* @request
|
|
6522
|
+
* @tags Mpc
|
|
6523
|
+
* @name ReconstructSeedPhrase
|
|
6524
|
+
* @summary Pass encrypted shares and return reconstructed encrypted seed phrase
|
|
6525
|
+
* @request POST:/api/v1/mpc/reconstruct-seed-phrase
|
|
6733
6526
|
* @secure
|
|
6734
6527
|
*/
|
|
6735
|
-
|
|
6528
|
+
reconstructSeedPhrase: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/mpc/reconstruct-seed-phrase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6529
|
+
};
|
|
6530
|
+
this.users = {
|
|
6736
6531
|
/**
|
|
6737
|
-
*
|
|
6532
|
+
* No description
|
|
6738
6533
|
*
|
|
6739
|
-
* @tags
|
|
6740
|
-
* @name
|
|
6741
|
-
* @summary
|
|
6742
|
-
* @request
|
|
6534
|
+
* @tags Users
|
|
6535
|
+
* @name GetAllUsers
|
|
6536
|
+
* @summary Get all users by the admin
|
|
6537
|
+
* @request GET:/api/v1/users
|
|
6743
6538
|
* @secure
|
|
6744
6539
|
*/
|
|
6745
|
-
|
|
6540
|
+
getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6746
6541
|
/**
|
|
6747
6542
|
* No description
|
|
6748
6543
|
*
|
|
6749
|
-
* @tags
|
|
6750
|
-
* @name
|
|
6751
|
-
* @summary
|
|
6752
|
-
* @request
|
|
6544
|
+
* @tags Users
|
|
6545
|
+
* @name UpdateProfile
|
|
6546
|
+
* @summary Update user profile info
|
|
6547
|
+
* @request PUT:/api/v1/users/profile
|
|
6753
6548
|
* @secure
|
|
6754
6549
|
*/
|
|
6755
|
-
|
|
6550
|
+
updateProfile: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/profile`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6756
6551
|
/**
|
|
6757
6552
|
* No description
|
|
6758
6553
|
*
|
|
6759
|
-
* @tags
|
|
6760
|
-
* @name
|
|
6761
|
-
* @summary
|
|
6762
|
-
* @request
|
|
6554
|
+
* @tags Users
|
|
6555
|
+
* @name GetCurrentUser
|
|
6556
|
+
* @summary Returns current user data
|
|
6557
|
+
* @request GET:/api/v1/users/profile
|
|
6763
6558
|
* @secure
|
|
6764
6559
|
*/
|
|
6765
|
-
|
|
6560
|
+
getCurrentUser: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/profile`, method: "GET", secure: true, format: "json" }, params)),
|
|
6766
6561
|
/**
|
|
6767
6562
|
* No description
|
|
6768
6563
|
*
|
|
6769
|
-
* @tags
|
|
6770
|
-
* @name
|
|
6771
|
-
* @summary
|
|
6772
|
-
* @request GET:/
|
|
6564
|
+
* @tags Users
|
|
6565
|
+
* @name GetCurrentUserSalt
|
|
6566
|
+
* @summary Get current user's client salt
|
|
6567
|
+
* @request GET:/api/v1/users/salt
|
|
6773
6568
|
* @secure
|
|
6774
6569
|
*/
|
|
6775
|
-
|
|
6570
|
+
getCurrentUserSalt: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/salt`, method: "GET", secure: true, format: "json" }, params)),
|
|
6776
6571
|
/**
|
|
6777
6572
|
* No description
|
|
6778
6573
|
*
|
|
6779
|
-
* @tags
|
|
6780
|
-
* @name
|
|
6781
|
-
* @summary
|
|
6782
|
-
* @request GET:/
|
|
6574
|
+
* @tags Users
|
|
6575
|
+
* @name GetAllWalletsFromUserId
|
|
6576
|
+
* @summary Returns user wallets by specifying user id
|
|
6577
|
+
* @request GET:/api/v1/users/{userId}/wallets
|
|
6783
6578
|
* @secure
|
|
6784
6579
|
*/
|
|
6785
|
-
|
|
6786
|
-
var {
|
|
6580
|
+
getAllWalletsFromUserId: (_a, params) => {
|
|
6581
|
+
var { userId } = _a; __rest(_a, ["userId"]);
|
|
6787
6582
|
if (params === void 0) { params = {}; }
|
|
6788
|
-
return this.http.request(Object.assign({ path: `/
|
|
6583
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
|
|
6789
6584
|
},
|
|
6790
6585
|
/**
|
|
6791
6586
|
* No description
|
|
6792
6587
|
*
|
|
6793
|
-
* @tags
|
|
6794
|
-
* @name
|
|
6795
|
-
* @summary
|
|
6796
|
-
* @request GET:/
|
|
6588
|
+
* @tags Users
|
|
6589
|
+
* @name GetCurrentUserMerchantAssets
|
|
6590
|
+
* @summary Returns user's merchant assets
|
|
6591
|
+
* @request GET:/api/v1/users/merchants/assets
|
|
6797
6592
|
* @secure
|
|
6798
6593
|
*/
|
|
6799
|
-
|
|
6594
|
+
getCurrentUserMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchants/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6800
6595
|
/**
|
|
6801
6596
|
* No description
|
|
6802
6597
|
*
|
|
6803
|
-
* @tags
|
|
6804
|
-
* @name
|
|
6805
|
-
* @summary
|
|
6806
|
-
* @request GET:/
|
|
6598
|
+
* @tags Users
|
|
6599
|
+
* @name GetCurrentUserMerchantAssetsUsersMerchantAssets
|
|
6600
|
+
* @summary Returns user's merchant assets
|
|
6601
|
+
* @request GET:/api/v1/users/merchant/assets
|
|
6807
6602
|
* @secure
|
|
6808
6603
|
*/
|
|
6809
|
-
|
|
6604
|
+
getCurrentUserMerchantAssetsUsersMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchant/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6810
6605
|
/**
|
|
6811
6606
|
* No description
|
|
6812
6607
|
*
|
|
6813
|
-
* @tags
|
|
6814
|
-
* @name
|
|
6815
|
-
* @summary
|
|
6816
|
-
* @request GET:/
|
|
6608
|
+
* @tags Users
|
|
6609
|
+
* @name GetAssetsByUserId
|
|
6610
|
+
* @summary Returns user assets by specifying user id
|
|
6611
|
+
* @request GET:/api/v1/users/{userId}/assets
|
|
6817
6612
|
* @secure
|
|
6818
6613
|
*/
|
|
6819
|
-
|
|
6614
|
+
getAssetsByUserId: (_a, params) => {
|
|
6615
|
+
var { userId } = _a, query = __rest(_a, ["userId"]);
|
|
6616
|
+
if (params === void 0) { params = {}; }
|
|
6617
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6618
|
+
},
|
|
6820
6619
|
/**
|
|
6821
6620
|
* No description
|
|
6822
6621
|
*
|
|
6823
|
-
* @tags
|
|
6824
|
-
* @name
|
|
6825
|
-
* @summary
|
|
6826
|
-
* @request
|
|
6622
|
+
* @tags Users
|
|
6623
|
+
* @name AddAssetToUser
|
|
6624
|
+
* @summary Add a new asset to the user's wallet based on the asset configuration
|
|
6625
|
+
* @request POST:/api/v1/users/assets/add
|
|
6827
6626
|
* @secure
|
|
6828
6627
|
*/
|
|
6829
|
-
|
|
6628
|
+
addAssetToUser: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6830
6629
|
/**
|
|
6831
6630
|
* No description
|
|
6832
6631
|
*
|
|
6833
|
-
* @tags
|
|
6834
|
-
* @name
|
|
6835
|
-
* @summary
|
|
6836
|
-
* @request
|
|
6632
|
+
* @tags Users
|
|
6633
|
+
* @name RemoveAssetFromUser
|
|
6634
|
+
* @summary Remove an asset from the user's wallet based on the asset configuration
|
|
6635
|
+
* @request DELETE:/api/v1/users/{userId}/wallets/{walletId}/assets/{assetConfigId}
|
|
6837
6636
|
* @secure
|
|
6838
6637
|
*/
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6638
|
+
removeAssetFromUser: (_a, params) => {
|
|
6639
|
+
var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
|
|
6640
|
+
if (params === void 0) { params = {}; }
|
|
6641
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
|
|
6642
|
+
},
|
|
6842
6643
|
/**
|
|
6843
6644
|
* No description
|
|
6844
6645
|
*
|
|
6845
|
-
* @tags
|
|
6846
|
-
* @name
|
|
6847
|
-
* @summary
|
|
6848
|
-
* @request
|
|
6646
|
+
* @tags Users
|
|
6647
|
+
* @name GetUserByUserId
|
|
6648
|
+
* @summary Returns user public data
|
|
6649
|
+
* @request GET:/api/v1/users/{userId}
|
|
6650
|
+
* @secure
|
|
6849
6651
|
*/
|
|
6850
|
-
|
|
6652
|
+
getUserByUserId: (_a, params) => {
|
|
6653
|
+
var { userId } = _a; __rest(_a, ["userId"]);
|
|
6654
|
+
if (params === void 0) { params = {}; }
|
|
6655
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6656
|
+
},
|
|
6851
6657
|
/**
|
|
6852
6658
|
* No description
|
|
6853
6659
|
*
|
|
6854
|
-
* @tags
|
|
6855
|
-
* @name
|
|
6856
|
-
* @summary
|
|
6857
|
-
* @request
|
|
6660
|
+
* @tags Users
|
|
6661
|
+
* @name GetUserByExternalUserId
|
|
6662
|
+
* @summary Returns user public data by their external user ID
|
|
6663
|
+
* @request GET:/api/v1/users/{externalUserId}/externalUserId
|
|
6664
|
+
* @secure
|
|
6858
6665
|
*/
|
|
6859
|
-
|
|
6666
|
+
getUserByExternalUserId: (_a, params) => {
|
|
6667
|
+
var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
|
|
6668
|
+
if (params === void 0) { params = {}; }
|
|
6669
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
|
|
6670
|
+
},
|
|
6860
6671
|
/**
|
|
6861
6672
|
* No description
|
|
6862
6673
|
*
|
|
6863
|
-
* @tags
|
|
6864
|
-
* @name
|
|
6865
|
-
* @summary
|
|
6866
|
-
* @request
|
|
6674
|
+
* @tags Users
|
|
6675
|
+
* @name GetParticipantsByUserId
|
|
6676
|
+
* @summary Returns multisig participants by user id
|
|
6677
|
+
* @request GET:/api/v1/users/{userId}/multisig-transactions
|
|
6678
|
+
* @secure
|
|
6867
6679
|
*/
|
|
6868
|
-
|
|
6680
|
+
getParticipantsByUserId: (_a, params) => {
|
|
6681
|
+
var { userId } = _a, query = __rest(_a, ["userId"]);
|
|
6682
|
+
if (params === void 0) { params = {}; }
|
|
6683
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/multisig-transactions`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6684
|
+
},
|
|
6869
6685
|
};
|
|
6870
6686
|
this.adminTransactions = {
|
|
6871
6687
|
/**
|
|
@@ -6874,111 +6690,113 @@ class Api {
|
|
|
6874
6690
|
* @tags Admin-Transactions
|
|
6875
6691
|
* @name CreateReleaseSchedule
|
|
6876
6692
|
* @summary Request the creation of a release schedule
|
|
6877
|
-
* @request POST:/transactions/admin/release-schedule
|
|
6693
|
+
* @request POST:/api/v1/transactions/admin/release-schedule
|
|
6878
6694
|
* @secure
|
|
6879
6695
|
*/
|
|
6880
|
-
createReleaseSchedule: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/release-schedule`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6696
|
+
createReleaseSchedule: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/release-schedule`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6881
6697
|
/**
|
|
6882
6698
|
* No description
|
|
6883
6699
|
*
|
|
6884
6700
|
* @tags Admin-Transactions
|
|
6885
6701
|
* @name ViewReleaseSchedule
|
|
6886
6702
|
* @summary View a release schedule
|
|
6887
|
-
* @request GET:/transactions/admin/release-schedule
|
|
6703
|
+
* @request GET:/api/v1/transactions/admin/release-schedule
|
|
6888
6704
|
* @secure
|
|
6889
6705
|
*/
|
|
6890
|
-
viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6706
|
+
viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6891
6707
|
/**
|
|
6892
6708
|
* No description
|
|
6893
6709
|
*
|
|
6894
6710
|
* @tags Admin-Transactions
|
|
6895
6711
|
* @name Mint
|
|
6896
6712
|
* @summary Request the minting of an asset to addresses either via mint release schedule or directly
|
|
6897
|
-
* @request POST:/transactions/admin/mint
|
|
6713
|
+
* @request POST:/api/v1/transactions/admin/mint
|
|
6898
6714
|
* @secure
|
|
6899
6715
|
*/
|
|
6900
|
-
mint: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/mint`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6716
|
+
mint: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/mint`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6901
6717
|
/**
|
|
6902
6718
|
* No description
|
|
6903
6719
|
*
|
|
6904
6720
|
* @tags Admin-Transactions
|
|
6905
6721
|
* @name Burn
|
|
6906
6722
|
* @summary Request the burning of an asset to address(es) directly
|
|
6907
|
-
* @request POST:/transactions/admin/burn
|
|
6723
|
+
* @request POST:/api/v1/transactions/admin/burn
|
|
6908
6724
|
* @secure
|
|
6909
6725
|
*/
|
|
6910
|
-
burn: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/burn`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6726
|
+
burn: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/burn`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6911
6727
|
/**
|
|
6912
6728
|
* No description
|
|
6913
6729
|
*
|
|
6914
6730
|
* @tags Admin-Transactions
|
|
6915
6731
|
* @name ExecutePurchase
|
|
6916
6732
|
* @summary Request purchase on the purchase contract
|
|
6917
|
-
* @request POST:/transactions/admin/execute-purchase
|
|
6733
|
+
* @request POST:/api/v1/transactions/admin/execute-purchase
|
|
6918
6734
|
* @secure
|
|
6919
6735
|
*/
|
|
6920
|
-
executePurchase: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/execute-purchase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6736
|
+
executePurchase: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/execute-purchase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6921
6737
|
/**
|
|
6922
6738
|
* No description
|
|
6923
6739
|
*
|
|
6924
6740
|
* @tags Admin-Transactions
|
|
6925
6741
|
* @name ExecutePurchaseWithInterest
|
|
6926
6742
|
* @summary Request purchase with interest on the purchase contract
|
|
6927
|
-
* @request POST:/transactions/admin/execute-purchase-with-interest
|
|
6743
|
+
* @request POST:/api/v1/transactions/admin/execute-purchase-with-interest
|
|
6928
6744
|
* @secure
|
|
6929
6745
|
*/
|
|
6930
|
-
executePurchaseWithInterest: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/execute-purchase-with-interest`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6746
|
+
executePurchaseWithInterest: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/execute-purchase-with-interest`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6931
6747
|
/**
|
|
6932
6748
|
* No description
|
|
6933
6749
|
*
|
|
6934
6750
|
* @tags Admin-Transactions
|
|
6935
6751
|
* @name SetIdentity
|
|
6936
6752
|
* @summary Set identity via the identity registry contract
|
|
6937
|
-
* @request POST:/transactions/admin/set-identity
|
|
6753
|
+
* @request POST:/api/v1/transactions/admin/set-identity
|
|
6938
6754
|
* @secure
|
|
6939
6755
|
*/
|
|
6940
|
-
setIdentity: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/set-identity`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6756
|
+
setIdentity: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/set-identity`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6941
6757
|
/**
|
|
6942
6758
|
* No description
|
|
6943
6759
|
*
|
|
6944
6760
|
* @tags Admin-Transactions
|
|
6945
6761
|
* @name ForceClaim
|
|
6946
6762
|
* @summary Force claim interest via the interest payment contract
|
|
6947
|
-
* @request POST:/transactions/admin/force-claim
|
|
6763
|
+
* @request POST:/api/v1/transactions/admin/force-claim
|
|
6948
6764
|
* @secure
|
|
6949
6765
|
*/
|
|
6950
|
-
forceClaim: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/force-claim`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6766
|
+
forceClaim: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/force-claim`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6951
6767
|
/**
|
|
6952
6768
|
* No description
|
|
6953
6769
|
*
|
|
6954
6770
|
* @tags Admin-Transactions
|
|
6955
6771
|
* @name ForceClaimPrincipal
|
|
6956
6772
|
* @summary Force claim principal via the interest payment contract
|
|
6957
|
-
* @request POST:/transactions/admin/force-claim-principal
|
|
6773
|
+
* @request POST:/api/v1/transactions/admin/force-claim-principal
|
|
6958
6774
|
* @secure
|
|
6959
6775
|
*/
|
|
6960
|
-
forceClaimPrincipal: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/force-claim-principal`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6776
|
+
forceClaimPrincipal: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/force-claim-principal`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6961
6777
|
/**
|
|
6962
6778
|
* No description
|
|
6963
6779
|
*
|
|
6964
6780
|
* @tags Admin-Transactions
|
|
6965
6781
|
* @name GetCallbackPublicKey
|
|
6966
|
-
* @
|
|
6782
|
+
* @summary Get the public key for callback
|
|
6783
|
+
* @request GET:/api/v1/transactions/admin/callback_pk
|
|
6784
|
+
* @secure
|
|
6967
6785
|
*/
|
|
6968
|
-
getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/callback_pk`, method: "GET" }, params)),
|
|
6786
|
+
getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/callback_pk`, method: "GET", secure: true }, params)),
|
|
6969
6787
|
/**
|
|
6970
6788
|
* No description
|
|
6971
6789
|
*
|
|
6972
6790
|
* @tags Admin-Transactions
|
|
6973
6791
|
* @name ViewAdminTransaction
|
|
6974
6792
|
* @summary View an admin transaction
|
|
6975
|
-
* @request GET:/transactions/admin/{referenceId}
|
|
6793
|
+
* @request GET:/api/v1/transactions/admin/{referenceId}
|
|
6976
6794
|
* @secure
|
|
6977
6795
|
*/
|
|
6978
6796
|
viewAdminTransaction: (_a, params) => {
|
|
6979
6797
|
var { referenceId } = _a; __rest(_a, ["referenceId"]);
|
|
6980
6798
|
if (params === void 0) { params = {}; }
|
|
6981
|
-
return this.http.request(Object.assign({ path: `/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6799
|
+
return this.http.request(Object.assign({ path: `/api/v1/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6982
6800
|
},
|
|
6983
6801
|
/**
|
|
6984
6802
|
* No description
|
|
@@ -6986,9 +6804,30 @@ class Api {
|
|
|
6986
6804
|
* @tags Admin-Transactions
|
|
6987
6805
|
* @name UpsideCallback
|
|
6988
6806
|
* @summary Upside callback for release schedule
|
|
6989
|
-
* @request POST:/transactions/admin/callback
|
|
6807
|
+
* @request POST:/api/v1/transactions/admin/callback
|
|
6808
|
+
* @secure
|
|
6990
6809
|
*/
|
|
6991
|
-
upsideCallback: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/callback`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
6810
|
+
upsideCallback: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/callback`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6811
|
+
};
|
|
6812
|
+
this.v1 = {
|
|
6813
|
+
/**
|
|
6814
|
+
* No description
|
|
6815
|
+
*
|
|
6816
|
+
* @name GetDashboardData
|
|
6817
|
+
* @summary Create new merchant. This endpoint is only available for super admin and republic admin
|
|
6818
|
+
* @request GET:/api/v1/dashboard
|
|
6819
|
+
* @secure
|
|
6820
|
+
*/
|
|
6821
|
+
getDashboardData: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/dashboard`, method: "GET", secure: true }, params)),
|
|
6822
|
+
/**
|
|
6823
|
+
* No description
|
|
6824
|
+
*
|
|
6825
|
+
* @name GetActivitiees
|
|
6826
|
+
* @summary Get all activities. This endpoint is only available for super admin and republic admin
|
|
6827
|
+
* @request GET:/api/v1/users-activities
|
|
6828
|
+
* @secure
|
|
6829
|
+
*/
|
|
6830
|
+
getActivitiees: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users-activities`, method: "GET", query: query, secure: true }, params)),
|
|
6992
6831
|
};
|
|
6993
6832
|
this.http = http;
|
|
6994
6833
|
}
|
|
@@ -7027,8 +6866,12 @@ class Base {
|
|
|
7027
6866
|
this.lockManager = new LockManagerService();
|
|
7028
6867
|
this._initializeClientAuthToken(sanitizedConfig.clientAuthToken);
|
|
7029
6868
|
this.request = this.request.bind(this);
|
|
6869
|
+
// The generated API client includes /api/v1 in each path, so strip it from
|
|
6870
|
+
// the baseUrl to avoid doubling (e.g. /api/v1/api/v1/wallets/...).
|
|
6871
|
+
// The custom this.request() method still uses the original this.baseUrl
|
|
6872
|
+
// whose route paths do not carry the /api/v1 prefix.
|
|
7030
6873
|
const httpClient = new HttpClient({
|
|
7031
|
-
baseUrl: this.baseUrl,
|
|
6874
|
+
baseUrl: this.baseUrl.replace(/\/api\/v1\/?$/, ''),
|
|
7032
6875
|
baseApiParams: {
|
|
7033
6876
|
secure: true, // Enable security worker for all requests by default
|
|
7034
6877
|
},
|
|
@@ -11945,20 +11788,36 @@ class Transactions extends Base {
|
|
|
11945
11788
|
let transferResponse;
|
|
11946
11789
|
if (readyForTransportSeedPhrase) {
|
|
11947
11790
|
transferResponse = await this.request(TransactionsRoutes.transfer, {
|
|
11948
|
-
payload:
|
|
11791
|
+
payload: {
|
|
11792
|
+
message: signatureMessage.message,
|
|
11793
|
+
signature: signatureMessage.signature,
|
|
11794
|
+
clientAuthPubKey: deviceAuthPublicKey,
|
|
11795
|
+
encryptedSeed: readyForTransportSeedPhrase,
|
|
11796
|
+
originAddress,
|
|
11949
11797
|
recipientAddress,
|
|
11950
11798
|
assetId,
|
|
11951
|
-
amount,
|
|
11952
|
-
|
|
11799
|
+
amount,
|
|
11800
|
+
reference: reference || v4(),
|
|
11801
|
+
memo,
|
|
11802
|
+
transactionType,
|
|
11803
|
+
},
|
|
11953
11804
|
});
|
|
11954
11805
|
}
|
|
11955
11806
|
else if (hasShares) {
|
|
11956
11807
|
transferResponse = await this.request(TransactionsRoutes.transferWithShares, {
|
|
11957
|
-
payload:
|
|
11808
|
+
payload: {
|
|
11809
|
+
message: signatureMessage.message,
|
|
11810
|
+
signature: signatureMessage.signature,
|
|
11811
|
+
clientAuthPubKey: deviceAuthPublicKey,
|
|
11812
|
+
encryptedShares: sharesEncryptedWithWallabyPubKey,
|
|
11813
|
+
originAddress,
|
|
11958
11814
|
recipientAddress,
|
|
11959
11815
|
assetId,
|
|
11960
|
-
amount,
|
|
11961
|
-
|
|
11816
|
+
amount,
|
|
11817
|
+
reference: reference || v4(),
|
|
11818
|
+
memo,
|
|
11819
|
+
transactionType,
|
|
11820
|
+
},
|
|
11962
11821
|
});
|
|
11963
11822
|
}
|
|
11964
11823
|
else {
|
|
@@ -12031,8 +11890,8 @@ class Transactions extends Base {
|
|
|
12031
11890
|
throw new Error('No valid seed option found on this device.');
|
|
12032
11891
|
}
|
|
12033
11892
|
const payload = Object.assign({ message,
|
|
12034
|
-
|
|
12035
|
-
|
|
11893
|
+
signature,
|
|
11894
|
+
walletId, clientAuthPubKey: deviceAuthPublicKey, ownerAddress,
|
|
12036
11895
|
spenderAddress,
|
|
12037
11896
|
chainName,
|
|
12038
11897
|
assetSymbol,
|
|
@@ -12107,11 +11966,18 @@ class Transactions extends Base {
|
|
|
12107
11966
|
throw new Error('No valid seed option found on this device.');
|
|
12108
11967
|
}
|
|
12109
11968
|
const confirmPendingTransactionResponse = await this.request(TransactionsRoutes.confirmPendingTransaction, {
|
|
12110
|
-
payload:
|
|
11969
|
+
payload: {
|
|
11970
|
+
message: signatureMessage.message,
|
|
11971
|
+
signature: signatureMessage.signature,
|
|
11972
|
+
clientAuthPubKey: deviceAuthPublicKey,
|
|
11973
|
+
encryptedShares: sharesEncryptedWithWallabyPubKey,
|
|
11974
|
+
encryptedSeed: readyForTransportSeedPhrase,
|
|
11975
|
+
id,
|
|
12111
11976
|
choice,
|
|
12112
11977
|
symbol,
|
|
12113
11978
|
chainName,
|
|
12114
|
-
walletId
|
|
11979
|
+
walletId,
|
|
11980
|
+
},
|
|
12115
11981
|
});
|
|
12116
11982
|
return confirmPendingTransactionResponse;
|
|
12117
11983
|
}
|