wallaby-cash 2.3.2 → 2.3.4
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 +571 -699
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +571 -699
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +572 -702
- package/dist/index.js.map +1 -1
- package/dist/lib/wallet/wallet-data.service.d.ts +12 -5
- package/dist/lib/wallet/wallet-handlers.service.d.ts +1 -0
- package/dist/package.json +7 -5
- package/dist/types/wallet.d.ts +3 -16
- package/package.json +7 -5
package/dist/index.cjs.js
CHANGED
|
@@ -549,227 +549,19 @@ const global$1 = (typeof global !== "undefined" ? global :
|
|
|
549
549
|
typeof self !== "undefined" ? self :
|
|
550
550
|
typeof window !== "undefined" ? window : {});
|
|
551
551
|
|
|
552
|
-
// shim for using process in browser
|
|
553
|
-
// based off https://github.com/defunctzombie/node-process/blob/master/browser.js
|
|
554
|
-
|
|
555
|
-
function defaultSetTimout() {
|
|
556
|
-
throw new Error('setTimeout has not been defined');
|
|
557
|
-
}
|
|
558
|
-
function defaultClearTimeout () {
|
|
559
|
-
throw new Error('clearTimeout has not been defined');
|
|
560
|
-
}
|
|
561
|
-
var cachedSetTimeout = defaultSetTimout;
|
|
562
|
-
var cachedClearTimeout = defaultClearTimeout;
|
|
563
|
-
if (typeof global$1.setTimeout === 'function') {
|
|
564
|
-
cachedSetTimeout = setTimeout;
|
|
565
|
-
}
|
|
566
|
-
if (typeof global$1.clearTimeout === 'function') {
|
|
567
|
-
cachedClearTimeout = clearTimeout;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
function runTimeout(fun) {
|
|
571
|
-
if (cachedSetTimeout === setTimeout) {
|
|
572
|
-
//normal enviroments in sane situations
|
|
573
|
-
return setTimeout(fun, 0);
|
|
574
|
-
}
|
|
575
|
-
// if setTimeout wasn't available but was latter defined
|
|
576
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
577
|
-
cachedSetTimeout = setTimeout;
|
|
578
|
-
return setTimeout(fun, 0);
|
|
579
|
-
}
|
|
580
|
-
try {
|
|
581
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
582
|
-
return cachedSetTimeout(fun, 0);
|
|
583
|
-
} catch(e){
|
|
584
|
-
try {
|
|
585
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
586
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
587
|
-
} catch(e){
|
|
588
|
-
// 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
|
|
589
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
function runClearTimeout(marker) {
|
|
596
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
597
|
-
//normal enviroments in sane situations
|
|
598
|
-
return clearTimeout(marker);
|
|
599
|
-
}
|
|
600
|
-
// if clearTimeout wasn't available but was latter defined
|
|
601
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
602
|
-
cachedClearTimeout = clearTimeout;
|
|
603
|
-
return clearTimeout(marker);
|
|
604
|
-
}
|
|
605
|
-
try {
|
|
606
|
-
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
607
|
-
return cachedClearTimeout(marker);
|
|
608
|
-
} catch (e){
|
|
609
|
-
try {
|
|
610
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
611
|
-
return cachedClearTimeout.call(null, marker);
|
|
612
|
-
} catch (e){
|
|
613
|
-
// 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.
|
|
614
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
615
|
-
return cachedClearTimeout.call(this, marker);
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
}
|
|
622
|
-
var queue = [];
|
|
623
|
-
var draining = false;
|
|
624
|
-
var currentQueue;
|
|
625
|
-
var queueIndex = -1;
|
|
626
|
-
|
|
627
|
-
function cleanUpNextTick() {
|
|
628
|
-
if (!draining || !currentQueue) {
|
|
629
|
-
return;
|
|
630
|
-
}
|
|
631
|
-
draining = false;
|
|
632
|
-
if (currentQueue.length) {
|
|
633
|
-
queue = currentQueue.concat(queue);
|
|
634
|
-
} else {
|
|
635
|
-
queueIndex = -1;
|
|
636
|
-
}
|
|
637
|
-
if (queue.length) {
|
|
638
|
-
drainQueue();
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
function drainQueue() {
|
|
643
|
-
if (draining) {
|
|
644
|
-
return;
|
|
645
|
-
}
|
|
646
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
647
|
-
draining = true;
|
|
648
|
-
|
|
649
|
-
var len = queue.length;
|
|
650
|
-
while(len) {
|
|
651
|
-
currentQueue = queue;
|
|
652
|
-
queue = [];
|
|
653
|
-
while (++queueIndex < len) {
|
|
654
|
-
if (currentQueue) {
|
|
655
|
-
currentQueue[queueIndex].run();
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
queueIndex = -1;
|
|
659
|
-
len = queue.length;
|
|
660
|
-
}
|
|
661
|
-
currentQueue = null;
|
|
662
|
-
draining = false;
|
|
663
|
-
runClearTimeout(timeout);
|
|
664
|
-
}
|
|
665
|
-
function nextTick(fun) {
|
|
666
|
-
var args = new Array(arguments.length - 1);
|
|
667
|
-
if (arguments.length > 1) {
|
|
668
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
669
|
-
args[i - 1] = arguments[i];
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
queue.push(new Item(fun, args));
|
|
673
|
-
if (queue.length === 1 && !draining) {
|
|
674
|
-
runTimeout(drainQueue);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
// v8 likes predictible objects
|
|
678
|
-
function Item(fun, array) {
|
|
679
|
-
this.fun = fun;
|
|
680
|
-
this.array = array;
|
|
681
|
-
}
|
|
682
|
-
Item.prototype.run = function () {
|
|
683
|
-
this.fun.apply(null, this.array);
|
|
684
|
-
};
|
|
685
|
-
var title = 'browser';
|
|
686
|
-
var platform = 'browser';
|
|
687
|
-
var browser = true;
|
|
688
552
|
var env = {};
|
|
689
|
-
var argv = [];
|
|
690
|
-
var version = ''; // empty string to avoid regexp issues
|
|
691
|
-
var versions = {};
|
|
692
|
-
var release = {};
|
|
693
|
-
var config = {};
|
|
694
|
-
|
|
695
|
-
function noop() {}
|
|
696
|
-
|
|
697
|
-
var on = noop;
|
|
698
|
-
var addListener = noop;
|
|
699
|
-
var once = noop;
|
|
700
|
-
var off = noop;
|
|
701
|
-
var removeListener = noop;
|
|
702
|
-
var removeAllListeners = noop;
|
|
703
|
-
var emit = noop;
|
|
704
|
-
|
|
705
|
-
function binding(name) {
|
|
706
|
-
throw new Error('process.binding is not supported');
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
function cwd () { return '/' }
|
|
710
|
-
function chdir (dir) {
|
|
711
|
-
throw new Error('process.chdir is not supported');
|
|
712
|
-
}function umask() { return 0; }
|
|
713
553
|
|
|
714
554
|
// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
715
555
|
var performance = global$1.performance || {};
|
|
716
|
-
|
|
717
|
-
performance.now ||
|
|
556
|
+
performance.now ||
|
|
718
557
|
performance.mozNow ||
|
|
719
558
|
performance.msNow ||
|
|
720
559
|
performance.oNow ||
|
|
721
560
|
performance.webkitNow ||
|
|
722
561
|
function(){ return (new Date()).getTime() };
|
|
723
562
|
|
|
724
|
-
// generate timestamp or delta
|
|
725
|
-
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
726
|
-
function hrtime(previousTimestamp){
|
|
727
|
-
var clocktime = performanceNow.call(performance)*1e-3;
|
|
728
|
-
var seconds = Math.floor(clocktime);
|
|
729
|
-
var nanoseconds = Math.floor((clocktime%1)*1e9);
|
|
730
|
-
if (previousTimestamp) {
|
|
731
|
-
seconds = seconds - previousTimestamp[0];
|
|
732
|
-
nanoseconds = nanoseconds - previousTimestamp[1];
|
|
733
|
-
if (nanoseconds<0) {
|
|
734
|
-
seconds--;
|
|
735
|
-
nanoseconds += 1e9;
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
return [seconds,nanoseconds]
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
var startTime = new Date();
|
|
742
|
-
function uptime() {
|
|
743
|
-
var currentTime = new Date();
|
|
744
|
-
var dif = currentTime - startTime;
|
|
745
|
-
return dif / 1000;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
563
|
var browser$1 = {
|
|
749
|
-
|
|
750
|
-
title: title,
|
|
751
|
-
browser: browser,
|
|
752
|
-
env: env,
|
|
753
|
-
argv: argv,
|
|
754
|
-
version: version,
|
|
755
|
-
versions: versions,
|
|
756
|
-
on: on,
|
|
757
|
-
addListener: addListener,
|
|
758
|
-
once: once,
|
|
759
|
-
off: off,
|
|
760
|
-
removeListener: removeListener,
|
|
761
|
-
removeAllListeners: removeAllListeners,
|
|
762
|
-
emit: emit,
|
|
763
|
-
binding: binding,
|
|
764
|
-
cwd: cwd,
|
|
765
|
-
chdir: chdir,
|
|
766
|
-
umask: umask,
|
|
767
|
-
hrtime: hrtime,
|
|
768
|
-
platform: platform,
|
|
769
|
-
release: release,
|
|
770
|
-
config: config,
|
|
771
|
-
uptime: uptime
|
|
772
|
-
};
|
|
564
|
+
env: env};
|
|
773
565
|
|
|
774
566
|
var _a;
|
|
775
567
|
/**
|
|
@@ -805,7 +597,7 @@ const MASTER_ENCRYPTION_KEY = '9fa9d3f3c77c20d3a50a08e5299644be29f6e6206ef3479fe
|
|
|
805
597
|
{ type: 'public-key', alg: exports.PublicKeyCredentialAlgorithm.ES256 },
|
|
806
598
|
];
|
|
807
599
|
const isWeb = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
808
|
-
const currentPackageVersion = "2.3.
|
|
600
|
+
const currentPackageVersion = "2.3.4" ;
|
|
809
601
|
|
|
810
602
|
/**
|
|
811
603
|
* Storage keys adapter for Storage interface across different platforms.
|
|
@@ -932,7 +724,7 @@ function hexToBytes$2(hex) {
|
|
|
932
724
|
/**
|
|
933
725
|
* @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
|
|
934
726
|
*/
|
|
935
|
-
function utf8ToBytes$
|
|
727
|
+
function utf8ToBytes$1(str) {
|
|
936
728
|
if (typeof str !== 'string')
|
|
937
729
|
throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
|
|
938
730
|
return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
|
|
@@ -944,7 +736,7 @@ function utf8ToBytes$2(str) {
|
|
|
944
736
|
*/
|
|
945
737
|
function toBytes(data) {
|
|
946
738
|
if (typeof data === 'string')
|
|
947
|
-
data = utf8ToBytes$
|
|
739
|
+
data = utf8ToBytes$1(data);
|
|
948
740
|
bytes$1(data);
|
|
949
741
|
return data;
|
|
950
742
|
}
|
|
@@ -1097,7 +889,7 @@ const concatUint8Arrays = (uint8arrays) => {
|
|
|
1097
889
|
* Converts a UTF-8 string to a Uint8Array without using TextEncoder, which is not available in mobile
|
|
1098
890
|
* @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
|
|
1099
891
|
*/
|
|
1100
|
-
const utf8ToBytes
|
|
892
|
+
const utf8ToBytes = (str) => {
|
|
1101
893
|
if (typeof str !== 'string')
|
|
1102
894
|
throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
|
|
1103
895
|
const bytes = [];
|
|
@@ -1524,10 +1316,6 @@ function numberToBytesBE(n, len) {
|
|
|
1524
1316
|
function numberToBytesLE(n, len) {
|
|
1525
1317
|
return numberToBytesBE(n, len).reverse();
|
|
1526
1318
|
}
|
|
1527
|
-
// Unpadded, rarely used
|
|
1528
|
-
function numberToVarBytesBE(n) {
|
|
1529
|
-
return hexToBytes(numberToHexUnpadded(n));
|
|
1530
|
-
}
|
|
1531
1319
|
/**
|
|
1532
1320
|
* Takes hex string or Uint8Array, converts to Uint8Array.
|
|
1533
1321
|
* Validates output length.
|
|
@@ -1578,23 +1366,6 @@ function concatBytes(...arrays) {
|
|
|
1578
1366
|
}
|
|
1579
1367
|
return res;
|
|
1580
1368
|
}
|
|
1581
|
-
// Compares 2 u8a-s in kinda constant time
|
|
1582
|
-
function equalBytes(a, b) {
|
|
1583
|
-
if (a.length !== b.length)
|
|
1584
|
-
return false;
|
|
1585
|
-
let diff = 0;
|
|
1586
|
-
for (let i = 0; i < a.length; i++)
|
|
1587
|
-
diff |= a[i] ^ b[i];
|
|
1588
|
-
return diff === 0;
|
|
1589
|
-
}
|
|
1590
|
-
/**
|
|
1591
|
-
* @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
|
|
1592
|
-
*/
|
|
1593
|
-
function utf8ToBytes(str) {
|
|
1594
|
-
if (typeof str !== 'string')
|
|
1595
|
-
throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
|
|
1596
|
-
return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
|
|
1597
|
-
}
|
|
1598
1369
|
// Is positive bigint
|
|
1599
1370
|
const isPosBig = (n) => typeof n === 'bigint' && _0n$4 <= n;
|
|
1600
1371
|
function inRange(n, min, max) {
|
|
@@ -1625,20 +1396,6 @@ function bitLen(n) {
|
|
|
1625
1396
|
;
|
|
1626
1397
|
return len;
|
|
1627
1398
|
}
|
|
1628
|
-
/**
|
|
1629
|
-
* Gets single bit at position.
|
|
1630
|
-
* NOTE: first bit position is 0 (same as arrays)
|
|
1631
|
-
* Same as `!!+Array.from(n.toString(2)).reverse()[pos]`
|
|
1632
|
-
*/
|
|
1633
|
-
function bitGet(n, pos) {
|
|
1634
|
-
return (n >> BigInt(pos)) & _1n$5;
|
|
1635
|
-
}
|
|
1636
|
-
/**
|
|
1637
|
-
* Sets single bit at position.
|
|
1638
|
-
*/
|
|
1639
|
-
function bitSet(n, pos, value) {
|
|
1640
|
-
return n | ((value ? _1n$5 : _0n$4) << BigInt(pos));
|
|
1641
|
-
}
|
|
1642
1399
|
/**
|
|
1643
1400
|
* Calculate mask for N bits. Not using ** operator with bigints because of old engines.
|
|
1644
1401
|
* Same as BigInt(`0b${Array(i).fill('1').join('')}`)
|
|
@@ -1736,20 +1493,6 @@ function validateObject(object, validators, optValidators = {}) {
|
|
|
1736
1493
|
checkField(fieldName, type, true);
|
|
1737
1494
|
return object;
|
|
1738
1495
|
}
|
|
1739
|
-
// validate type tests
|
|
1740
|
-
// const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 };
|
|
1741
|
-
// const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok!
|
|
1742
|
-
// // Should fail type-check
|
|
1743
|
-
// const z1 = validateObject(o, { a: 'tmp' }, { c: 'zz' });
|
|
1744
|
-
// const z2 = validateObject(o, { a: 'isSafeInteger' }, { c: 'zz' });
|
|
1745
|
-
// const z3 = validateObject(o, { test: 'boolean', z: 'bug' });
|
|
1746
|
-
// const z4 = validateObject(o, { a: 'boolean', z: 'bug' });
|
|
1747
|
-
/**
|
|
1748
|
-
* throws not implemented error
|
|
1749
|
-
*/
|
|
1750
|
-
const notImplemented = () => {
|
|
1751
|
-
throw new Error('not implemented');
|
|
1752
|
-
};
|
|
1753
1496
|
/**
|
|
1754
1497
|
* Memoizes (caches) computation result.
|
|
1755
1498
|
* Uses WeakMap: the value is going auto-cleaned by GC after last reference is removed.
|
|
@@ -1771,28 +1514,22 @@ __proto__: null,
|
|
|
1771
1514
|
aInRange,
|
|
1772
1515
|
abool,
|
|
1773
1516
|
abytes,
|
|
1774
|
-
bitGet,
|
|
1775
1517
|
bitLen,
|
|
1776
1518
|
bitMask,
|
|
1777
|
-
bitSet,
|
|
1778
1519
|
bytesToHex,
|
|
1779
1520
|
bytesToNumberBE,
|
|
1780
1521
|
bytesToNumberLE,
|
|
1781
1522
|
concatBytes,
|
|
1782
1523
|
createHmacDrbg,
|
|
1783
1524
|
ensureBytes,
|
|
1784
|
-
equalBytes,
|
|
1785
1525
|
hexToBytes,
|
|
1786
1526
|
hexToNumber,
|
|
1787
1527
|
inRange,
|
|
1788
1528
|
isBytes: isBytes$1,
|
|
1789
1529
|
memoized,
|
|
1790
|
-
notImplemented,
|
|
1791
1530
|
numberToBytesBE,
|
|
1792
1531
|
numberToBytesLE,
|
|
1793
1532
|
numberToHexUnpadded,
|
|
1794
|
-
numberToVarBytesBE,
|
|
1795
|
-
utf8ToBytes,
|
|
1796
1533
|
validateObject
|
|
1797
1534
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
1798
1535
|
|
|
@@ -4446,7 +4183,7 @@ const encrypt = (publicKeyTo, msg, options) => {
|
|
|
4446
4183
|
const hash = sha512(sharedSecret);
|
|
4447
4184
|
const encryptionKey = hash.subarray(0, 32);
|
|
4448
4185
|
const macKey = hash.subarray(32);
|
|
4449
|
-
const message = utf8ToBytes
|
|
4186
|
+
const message = utf8ToBytes(msg);
|
|
4450
4187
|
const data = encrypt$1(message, encryptionKey, iv, 'aes-256-cbc');
|
|
4451
4188
|
const dataToMac = concatUint8Arrays([iv, ephemPublicKey, data]);
|
|
4452
4189
|
const mac = hmacSha256Sign(macKey, dataToMac);
|
|
@@ -4518,7 +4255,7 @@ const decryptWithPrivateKey = (privateKey, encrypted) => {
|
|
|
4518
4255
|
};
|
|
4519
4256
|
|
|
4520
4257
|
const solidityPackedKeccak256 = (value) => {
|
|
4521
|
-
const bytes = utf8ToBytes
|
|
4258
|
+
const bytes = utf8ToBytes(value);
|
|
4522
4259
|
const hex = addLeading0x(bytesToHex$1(bytes));
|
|
4523
4260
|
const hash = keccak256$1(hexToBytes$1(hex));
|
|
4524
4261
|
return addLeading0x(bytesToHex$1(hash));
|
|
@@ -4685,7 +4422,7 @@ class Cipher {
|
|
|
4685
4422
|
*/
|
|
4686
4423
|
getMasterKey() {
|
|
4687
4424
|
return {
|
|
4688
|
-
buffer: utf8ToBytes$
|
|
4425
|
+
buffer: utf8ToBytes$1(MASTER_ENCRYPTION_KEY),
|
|
4689
4426
|
key: MASTER_ENCRYPTION_KEY,
|
|
4690
4427
|
};
|
|
4691
4428
|
}
|
|
@@ -4723,7 +4460,7 @@ class Cipher {
|
|
|
4723
4460
|
* Validate that a salt is sufficiently long and not weak.
|
|
4724
4461
|
*/
|
|
4725
4462
|
validateSalt(salt) {
|
|
4726
|
-
if (utf8ToBytes$
|
|
4463
|
+
if (utf8ToBytes$1(salt).length < 16) {
|
|
4727
4464
|
throw new Error('Salt is too short: must be at least 16 bytes');
|
|
4728
4465
|
}
|
|
4729
4466
|
const uniqueChars = new Set(salt);
|
|
@@ -5027,7 +4764,7 @@ class Cipher {
|
|
|
5027
4764
|
// Prevents different Unicode representations of "same" password
|
|
5028
4765
|
// Also trim whitespace for security consistency
|
|
5029
4766
|
const normalizedPassword = password.normalize('NFKC').trim();
|
|
5030
|
-
const encryptionKey = pbkdf2Sync(utf8ToBytes$
|
|
4767
|
+
const encryptionKey = pbkdf2Sync(utf8ToBytes$1(normalizedPassword), utf8ToBytes$1(salt), PBKDF2_ITERATIONS, DEFAULT_ENTROPY_BYTES$1, 'sha256');
|
|
5031
4768
|
const encryptionKeyPair = createIdentity(encryptionKey);
|
|
5032
4769
|
return encryptionKeyPair;
|
|
5033
4770
|
}
|
|
@@ -5639,7 +5376,7 @@ var ContentType;
|
|
|
5639
5376
|
})(ContentType || (ContentType = {}));
|
|
5640
5377
|
class HttpClient {
|
|
5641
5378
|
constructor(apiConfig = {}) {
|
|
5642
|
-
this.baseUrl = "";
|
|
5379
|
+
this.baseUrl = "https://staging-testnet.wallaby.cash";
|
|
5643
5380
|
this.securityData = null;
|
|
5644
5381
|
this.abortControllers = new Map();
|
|
5645
5382
|
this.customFetch = (...fetchParams) => fetch(...fetchParams);
|
|
@@ -5772,31 +5509,15 @@ class HttpClient {
|
|
|
5772
5509
|
}
|
|
5773
5510
|
}
|
|
5774
5511
|
/**
|
|
5775
|
-
* @title
|
|
5776
|
-
* @version 1.0
|
|
5512
|
+
* @title STAGING
|
|
5513
|
+
* @version 1.0
|
|
5514
|
+
* @baseUrl https://staging-testnet.wallaby.cash
|
|
5777
5515
|
* @contact
|
|
5778
5516
|
*
|
|
5779
|
-
*
|
|
5517
|
+
* The STAGING is an API that manages the wallets of the Republic Crypto
|
|
5780
5518
|
*/
|
|
5781
5519
|
class Api {
|
|
5782
5520
|
constructor(http) {
|
|
5783
|
-
/**
|
|
5784
|
-
* No description
|
|
5785
|
-
*
|
|
5786
|
-
* @name DashboardControllerGetDashboardData
|
|
5787
|
-
* @summary Create new merchant. This endpoint is only available for super admin and republic admin
|
|
5788
|
-
* @request GET:/dashboard
|
|
5789
|
-
* @secure
|
|
5790
|
-
*/
|
|
5791
|
-
this.dashboardControllerGetDashboardData = (params = {}) => this.http.request(Object.assign({ path: `/dashboard`, method: "GET", secure: true }, params));
|
|
5792
|
-
/**
|
|
5793
|
-
* No description
|
|
5794
|
-
*
|
|
5795
|
-
* @name GetActivitiees
|
|
5796
|
-
* @summary Get all activities. This endpoint is only available for super admin and republic admin
|
|
5797
|
-
* @request GET:/users-activities
|
|
5798
|
-
*/
|
|
5799
|
-
this.getActivitiees = (query, params = {}) => this.http.request(Object.assign({ path: `/users-activities`, method: "GET", query: query }, params));
|
|
5800
5521
|
this.health = {
|
|
5801
5522
|
/**
|
|
5802
5523
|
* No description
|
|
@@ -5805,8 +5526,9 @@ class Api {
|
|
|
5805
5526
|
* @name GetHello
|
|
5806
5527
|
* @summary Health Check API
|
|
5807
5528
|
* @request GET:/
|
|
5529
|
+
* @secure
|
|
5808
5530
|
*/
|
|
5809
|
-
getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET" }, params)),
|
|
5531
|
+
getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET", secure: true }, params)),
|
|
5810
5532
|
/**
|
|
5811
5533
|
* No description
|
|
5812
5534
|
*
|
|
@@ -5814,8 +5536,9 @@ class Api {
|
|
|
5814
5536
|
* @name GetHealthCheck
|
|
5815
5537
|
* @summary Service API status check
|
|
5816
5538
|
* @request GET:/healthz
|
|
5539
|
+
* @secure
|
|
5817
5540
|
*/
|
|
5818
|
-
getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET" }, params)),
|
|
5541
|
+
getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET", secure: true }, params)),
|
|
5819
5542
|
};
|
|
5820
5543
|
this.auth = {
|
|
5821
5544
|
/**
|
|
@@ -5824,86 +5547,101 @@ class Api {
|
|
|
5824
5547
|
* @tags Auth
|
|
5825
5548
|
* @name GenerateExternalSignatureMessage
|
|
5826
5549
|
* @summary The returned message will be used for sign up and sign in signature
|
|
5827
|
-
* @request POST:/auth/signature-message/external
|
|
5550
|
+
* @request POST:/api/v1/auth/signature-message/external
|
|
5551
|
+
* @secure
|
|
5828
5552
|
*/
|
|
5829
|
-
generateExternalSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5553
|
+
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)),
|
|
5830
5554
|
/**
|
|
5831
5555
|
* No description
|
|
5832
5556
|
*
|
|
5833
5557
|
* @tags Auth
|
|
5834
5558
|
* @name GenerateSignatureMessage
|
|
5835
5559
|
* @summary The returned message will be used for sign up and sign in signature
|
|
5836
|
-
* @request POST:/auth/signature-message
|
|
5560
|
+
* @request POST:/api/v1/auth/signature-message
|
|
5561
|
+
* @secure
|
|
5837
5562
|
*/
|
|
5838
|
-
generateSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5563
|
+
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)),
|
|
5839
5564
|
/**
|
|
5840
5565
|
* No description
|
|
5841
5566
|
*
|
|
5842
5567
|
* @tags Auth
|
|
5843
5568
|
* @name SignUp
|
|
5844
5569
|
* @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
|
|
5845
|
-
* @request POST:/auth/sign-up
|
|
5570
|
+
* @request POST:/api/v1/auth/sign-up
|
|
5571
|
+
* @secure
|
|
5846
5572
|
*/
|
|
5847
|
-
signUp: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5573
|
+
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)),
|
|
5848
5574
|
/**
|
|
5849
5575
|
* No description
|
|
5850
5576
|
*
|
|
5851
5577
|
* @tags Auth
|
|
5852
5578
|
* @name SignUpExternal
|
|
5853
5579
|
* @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
|
|
5854
|
-
* @request POST:/auth/sign-up/external
|
|
5580
|
+
* @request POST:/api/v1/auth/sign-up/external
|
|
5581
|
+
* @secure
|
|
5855
5582
|
*/
|
|
5856
|
-
signUpExternal: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5583
|
+
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)),
|
|
5857
5584
|
/**
|
|
5858
5585
|
* No description
|
|
5859
5586
|
*
|
|
5860
5587
|
* @tags Auth
|
|
5861
5588
|
* @name SignIn
|
|
5862
5589
|
* @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
|
|
5863
|
-
* @request POST:/auth/sign-in
|
|
5590
|
+
* @request POST:/api/v1/auth/sign-in
|
|
5591
|
+
* @secure
|
|
5864
5592
|
*/
|
|
5865
|
-
signIn: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-in`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5593
|
+
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)),
|
|
5866
5594
|
/**
|
|
5867
5595
|
* No description
|
|
5868
5596
|
*
|
|
5869
5597
|
* @tags Auth
|
|
5870
5598
|
* @name RefreshAccessToken
|
|
5871
5599
|
* @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
|
|
5872
|
-
* @request POST:/auth/refresh-access-token
|
|
5600
|
+
* @request POST:/api/v1/auth/refresh-access-token
|
|
5873
5601
|
* @deprecated
|
|
5874
5602
|
* @secure
|
|
5875
5603
|
*/
|
|
5876
|
-
refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
|
|
5604
|
+
refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
|
|
5605
|
+
/**
|
|
5606
|
+
* No description
|
|
5607
|
+
*
|
|
5608
|
+
* @tags Auth
|
|
5609
|
+
* @name Logout
|
|
5610
|
+
* @summary Invalidate the current session by revoking the bearer token
|
|
5611
|
+
* @request POST:/api/v1/auth/logout
|
|
5612
|
+
* @secure
|
|
5613
|
+
*/
|
|
5614
|
+
logout: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/logout`, method: "POST", secure: true, format: "json" }, params)),
|
|
5877
5615
|
/**
|
|
5878
5616
|
* No description
|
|
5879
5617
|
*
|
|
5880
5618
|
* @tags Auth
|
|
5881
5619
|
* @name ChangeAuthPublicKey
|
|
5882
5620
|
* @summary Change user authentication public key
|
|
5883
|
-
* @request PUT:/auth/client-auth-pubkey
|
|
5621
|
+
* @request PUT:/api/v1/auth/client-auth-pubkey
|
|
5884
5622
|
* @secure
|
|
5885
5623
|
*/
|
|
5886
|
-
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)),
|
|
5624
|
+
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)),
|
|
5887
5625
|
/**
|
|
5888
5626
|
* No description
|
|
5889
5627
|
*
|
|
5890
5628
|
* @tags Auth
|
|
5891
5629
|
* @name GetWallabyAuthPubKey
|
|
5892
5630
|
* @summary Get user public key
|
|
5893
|
-
* @request POST:/auth/wallaby-auth-pubkey
|
|
5631
|
+
* @request POST:/api/v1/auth/wallaby-auth-pubkey
|
|
5894
5632
|
* @secure
|
|
5895
5633
|
*/
|
|
5896
|
-
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)),
|
|
5634
|
+
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)),
|
|
5897
5635
|
/**
|
|
5898
5636
|
* No description
|
|
5899
5637
|
*
|
|
5900
5638
|
* @tags Auth
|
|
5901
5639
|
* @name GetPasskeyCredentials
|
|
5902
5640
|
* @summary Get user passkey credentials
|
|
5903
|
-
* @request GET:/auth/passkey-credentials
|
|
5641
|
+
* @request GET:/api/v1/auth/passkey-credentials
|
|
5904
5642
|
* @secure
|
|
5905
5643
|
*/
|
|
5906
|
-
getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
|
|
5644
|
+
getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
|
|
5907
5645
|
};
|
|
5908
5646
|
this.chains = {
|
|
5909
5647
|
/**
|
|
@@ -5912,31 +5650,33 @@ class Api {
|
|
|
5912
5650
|
* @tags Chains
|
|
5913
5651
|
* @name GetAllChains
|
|
5914
5652
|
* @summary Get all supported chains
|
|
5915
|
-
* @request GET:/chains
|
|
5653
|
+
* @request GET:/api/v1/chains
|
|
5916
5654
|
* @secure
|
|
5917
5655
|
*/
|
|
5918
|
-
getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
5656
|
+
getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
5919
5657
|
/**
|
|
5920
5658
|
* No description
|
|
5921
5659
|
*
|
|
5922
5660
|
* @tags Chains
|
|
5923
5661
|
* @name CreateChain
|
|
5924
5662
|
* @summary Create new chain. This endpoint is only available for super admin and republic admin
|
|
5925
|
-
* @request POST:/chains
|
|
5663
|
+
* @request POST:/api/v1/chains
|
|
5664
|
+
* @secure
|
|
5926
5665
|
*/
|
|
5927
|
-
createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
5666
|
+
createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5928
5667
|
/**
|
|
5929
5668
|
* No description
|
|
5930
5669
|
*
|
|
5931
5670
|
* @tags Chains
|
|
5932
5671
|
* @name UpdateChain
|
|
5933
5672
|
* @summary Update the chain public data
|
|
5934
|
-
* @request PUT:/chains/{chainId}
|
|
5673
|
+
* @request PUT:/api/v1/chains/{chainId}
|
|
5674
|
+
* @secure
|
|
5935
5675
|
*/
|
|
5936
5676
|
updateChain: (_a, data, params) => {
|
|
5937
5677
|
var { chainId } = _a; __rest(_a, ["chainId"]);
|
|
5938
5678
|
if (params === void 0) { params = {}; }
|
|
5939
|
-
return this.http.request(Object.assign({ path: `/chains/${chainId}`, method: "PUT", body: data, type: ContentType.Json, format: "json" }, params));
|
|
5679
|
+
return this.http.request(Object.assign({ path: `/api/v1/chains/${chainId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
5940
5680
|
},
|
|
5941
5681
|
};
|
|
5942
5682
|
this.assets = {
|
|
@@ -5946,33 +5686,33 @@ class Api {
|
|
|
5946
5686
|
* @tags Assets
|
|
5947
5687
|
* @name GetAssetsConfigurations
|
|
5948
5688
|
* @summary Get all supported assets configuration that can be imported into a merchant or a user wallet
|
|
5949
|
-
* @request GET:/assets/configurations
|
|
5689
|
+
* @request GET:/api/v1/assets/configurations
|
|
5950
5690
|
* @secure
|
|
5951
5691
|
*/
|
|
5952
|
-
getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
5692
|
+
getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
5953
5693
|
/**
|
|
5954
5694
|
* No description
|
|
5955
5695
|
*
|
|
5956
5696
|
* @tags Assets
|
|
5957
5697
|
* @name CreateAssetConfig
|
|
5958
5698
|
* @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
|
|
5959
|
-
* @request POST:/assets/configurations
|
|
5699
|
+
* @request POST:/api/v1/assets/configurations
|
|
5960
5700
|
* @secure
|
|
5961
5701
|
*/
|
|
5962
|
-
createAssetConfig: (data, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5702
|
+
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)),
|
|
5963
5703
|
/**
|
|
5964
5704
|
* No description
|
|
5965
5705
|
*
|
|
5966
5706
|
* @tags Assets
|
|
5967
5707
|
* @name UpdateAssetConfig
|
|
5968
5708
|
* @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
|
|
5969
|
-
* @request PUT:/assets/configurations/{assetConfigId}
|
|
5709
|
+
* @request PUT:/api/v1/assets/configurations/{assetConfigId}
|
|
5970
5710
|
* @secure
|
|
5971
5711
|
*/
|
|
5972
5712
|
updateAssetConfig: (_a, data, params) => {
|
|
5973
5713
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
5974
5714
|
if (params === void 0) { params = {}; }
|
|
5975
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
5715
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
5976
5716
|
},
|
|
5977
5717
|
/**
|
|
5978
5718
|
* No description
|
|
@@ -5980,13 +5720,13 @@ class Api {
|
|
|
5980
5720
|
* @tags Assets
|
|
5981
5721
|
* @name VerifyAsset
|
|
5982
5722
|
* @summary Verify asset configuration details.
|
|
5983
|
-
* @request POST:/assets/configurations/{assetConfigId}/verify
|
|
5723
|
+
* @request POST:/api/v1/assets/configurations/{assetConfigId}/verify
|
|
5984
5724
|
* @secure
|
|
5985
5725
|
*/
|
|
5986
5726
|
verifyAsset: (_a, params) => {
|
|
5987
5727
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
5988
5728
|
if (params === void 0) { params = {}; }
|
|
5989
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
|
|
5729
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
|
|
5990
5730
|
},
|
|
5991
5731
|
/**
|
|
5992
5732
|
* No description
|
|
@@ -5994,13 +5734,13 @@ class Api {
|
|
|
5994
5734
|
* @tags Assets
|
|
5995
5735
|
* @name UnverifyAsset
|
|
5996
5736
|
* @summary Unverify asset configuration
|
|
5997
|
-
* @request DELETE:/assets/configurations/{assetConfigId}/unverify
|
|
5737
|
+
* @request DELETE:/api/v1/assets/configurations/{assetConfigId}/unverify
|
|
5998
5738
|
* @secure
|
|
5999
5739
|
*/
|
|
6000
5740
|
unverifyAsset: (_a, params) => {
|
|
6001
5741
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
6002
5742
|
if (params === void 0) { params = {}; }
|
|
6003
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
|
|
5743
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
|
|
6004
5744
|
},
|
|
6005
5745
|
/**
|
|
6006
5746
|
* No description
|
|
@@ -6008,13 +5748,13 @@ class Api {
|
|
|
6008
5748
|
* @tags Assets
|
|
6009
5749
|
* @name ArchiveAsset
|
|
6010
5750
|
* @summary Archive an asset configuration
|
|
6011
|
-
* @request POST:/assets/configurations/{assetConfigId}/archive
|
|
5751
|
+
* @request POST:/api/v1/assets/configurations/{assetConfigId}/archive
|
|
6012
5752
|
* @secure
|
|
6013
5753
|
*/
|
|
6014
5754
|
archiveAsset: (_a, params) => {
|
|
6015
5755
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
6016
5756
|
if (params === void 0) { params = {}; }
|
|
6017
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
|
|
5757
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
|
|
6018
5758
|
},
|
|
6019
5759
|
/**
|
|
6020
5760
|
* No description
|
|
@@ -6022,13 +5762,13 @@ class Api {
|
|
|
6022
5762
|
* @tags Assets
|
|
6023
5763
|
* @name UnarchiveAsset
|
|
6024
5764
|
* @summary Archive an asset configuration
|
|
6025
|
-
* @request POST:/assets/configurations/{assetConfigId}/unarchive
|
|
5765
|
+
* @request POST:/api/v1/assets/configurations/{assetConfigId}/unarchive
|
|
6026
5766
|
* @secure
|
|
6027
5767
|
*/
|
|
6028
5768
|
unarchiveAsset: (_a, params) => {
|
|
6029
5769
|
var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
|
|
6030
5770
|
if (params === void 0) { params = {}; }
|
|
6031
|
-
return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
|
|
5771
|
+
return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
|
|
6032
5772
|
},
|
|
6033
5773
|
};
|
|
6034
5774
|
this.merchants = {
|
|
@@ -6038,32 +5778,33 @@ class Api {
|
|
|
6038
5778
|
* @tags Merchants
|
|
6039
5779
|
* @name GetAllMerchants
|
|
6040
5780
|
* @summary Get all merchants
|
|
6041
|
-
* @request GET:/merchants
|
|
5781
|
+
* @request GET:/api/v1/merchants
|
|
5782
|
+
* @secure
|
|
6042
5783
|
*/
|
|
6043
|
-
getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "GET", query: query, format: "json" }, params)),
|
|
5784
|
+
getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6044
5785
|
/**
|
|
6045
5786
|
* No description
|
|
6046
5787
|
*
|
|
6047
5788
|
* @tags Merchants
|
|
6048
5789
|
* @name CreateMerchant
|
|
6049
5790
|
* @summary Create new merchant. This endpoint is only available for super admin and republic admin
|
|
6050
|
-
* @request POST:/merchants
|
|
5791
|
+
* @request POST:/api/v1/merchants
|
|
6051
5792
|
* @secure
|
|
6052
5793
|
*/
|
|
6053
|
-
createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5794
|
+
createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6054
5795
|
/**
|
|
6055
5796
|
* No description
|
|
6056
5797
|
*
|
|
6057
5798
|
* @tags Merchants
|
|
6058
5799
|
* @name UpdateMerchant
|
|
6059
5800
|
* @summary Update merchant. This endpoint is only available for super admin and republic admin
|
|
6060
|
-
* @request PUT:/merchants/{merchantId}
|
|
5801
|
+
* @request PUT:/api/v1/merchants/{merchantId}
|
|
6061
5802
|
* @secure
|
|
6062
5803
|
*/
|
|
6063
5804
|
updateMerchant: (_a, data, params) => {
|
|
6064
5805
|
var { merchantId } = _a; __rest(_a, ["merchantId"]);
|
|
6065
5806
|
if (params === void 0) { params = {}; }
|
|
6066
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
5807
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
6067
5808
|
},
|
|
6068
5809
|
/**
|
|
6069
5810
|
* No description
|
|
@@ -6071,12 +5812,13 @@ class Api {
|
|
|
6071
5812
|
* @tags Merchants
|
|
6072
5813
|
* @name GetOneMerchant
|
|
6073
5814
|
* @summary Get one merchant by id with counts
|
|
6074
|
-
* @request GET:/merchants/{merchantId}
|
|
5815
|
+
* @request GET:/api/v1/merchants/{merchantId}
|
|
5816
|
+
* @secure
|
|
6075
5817
|
*/
|
|
6076
5818
|
getOneMerchant: (_a, params) => {
|
|
6077
5819
|
var { merchantId } = _a; __rest(_a, ["merchantId"]);
|
|
6078
5820
|
if (params === void 0) { params = {}; }
|
|
6079
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "GET", format: "json" }, params));
|
|
5821
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6080
5822
|
},
|
|
6081
5823
|
/**
|
|
6082
5824
|
* No description
|
|
@@ -6084,12 +5826,13 @@ class Api {
|
|
|
6084
5826
|
* @tags Merchants
|
|
6085
5827
|
* @name GetMerchantAssets
|
|
6086
5828
|
* @summary Get merchant assets by merchant id
|
|
6087
|
-
* @request GET:/merchants/{merchantId}/assets
|
|
5829
|
+
* @request GET:/api/v1/merchants/{merchantId}/assets
|
|
5830
|
+
* @secure
|
|
6088
5831
|
*/
|
|
6089
5832
|
getMerchantAssets: (_a, params) => {
|
|
6090
5833
|
var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
|
|
6091
5834
|
if (params === void 0) { params = {}; }
|
|
6092
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/assets`, method: "GET", query: query, format: "json" }, params));
|
|
5835
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6093
5836
|
},
|
|
6094
5837
|
/**
|
|
6095
5838
|
* No description
|
|
@@ -6097,13 +5840,13 @@ class Api {
|
|
|
6097
5840
|
* @tags Merchants
|
|
6098
5841
|
* @name GetMerchantUsers
|
|
6099
5842
|
* @summary Get merchant users by merchant id
|
|
6100
|
-
* @request GET:/merchants/{merchantId}/users
|
|
5843
|
+
* @request GET:/api/v1/merchants/{merchantId}/users
|
|
6101
5844
|
* @secure
|
|
6102
5845
|
*/
|
|
6103
5846
|
getMerchantUsers: (_a, params) => {
|
|
6104
5847
|
var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
|
|
6105
5848
|
if (params === void 0) { params = {}; }
|
|
6106
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
5849
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6107
5850
|
},
|
|
6108
5851
|
/**
|
|
6109
5852
|
* No description
|
|
@@ -6111,13 +5854,13 @@ class Api {
|
|
|
6111
5854
|
* @tags Merchants
|
|
6112
5855
|
* @name GetMerchantAdmins
|
|
6113
5856
|
* @summary Get merchant admins by merchant id
|
|
6114
|
-
* @request GET:/merchants/{merchantId}/admins
|
|
5857
|
+
* @request GET:/api/v1/merchants/{merchantId}/admins
|
|
6115
5858
|
* @secure
|
|
6116
5859
|
*/
|
|
6117
5860
|
getMerchantAdmins: (_a, params) => {
|
|
6118
5861
|
var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
|
|
6119
5862
|
if (params === void 0) { params = {}; }
|
|
6120
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
5863
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6121
5864
|
},
|
|
6122
5865
|
/**
|
|
6123
5866
|
* No description
|
|
@@ -6125,23 +5868,23 @@ class Api {
|
|
|
6125
5868
|
* @tags Merchants
|
|
6126
5869
|
* @name InviteMerchantAdmins
|
|
6127
5870
|
* @summary Invite merchant admins by merchant id
|
|
6128
|
-
* @request POST:/merchants/admins/invite
|
|
5871
|
+
* @request POST:/api/v1/merchants/admins/invite
|
|
6129
5872
|
* @secure
|
|
6130
5873
|
*/
|
|
6131
|
-
inviteMerchantAdmins: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/admins/invite`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5874
|
+
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)),
|
|
6132
5875
|
/**
|
|
6133
5876
|
* No description
|
|
6134
5877
|
*
|
|
6135
5878
|
* @tags Merchants
|
|
6136
5879
|
* @name RevokeMerchantAdmins
|
|
6137
5880
|
* @summary Invite merchant admins by merchant id
|
|
6138
|
-
* @request DELETE:/merchants/{merchantId}/admins/{userId}
|
|
5881
|
+
* @request DELETE:/api/v1/merchants/{merchantId}/admins/{userId}
|
|
6139
5882
|
* @secure
|
|
6140
5883
|
*/
|
|
6141
5884
|
revokeMerchantAdmins: (_a, params) => {
|
|
6142
5885
|
var { merchantId, userId } = _a; __rest(_a, ["merchantId", "userId"]);
|
|
6143
5886
|
if (params === void 0) { params = {}; }
|
|
6144
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
|
|
5887
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
|
|
6145
5888
|
},
|
|
6146
5889
|
/**
|
|
6147
5890
|
* No description
|
|
@@ -6149,13 +5892,13 @@ class Api {
|
|
|
6149
5892
|
* @tags Merchants
|
|
6150
5893
|
* @name GetMerchantWallets
|
|
6151
5894
|
* @summary Get merchant wallets by merchant id
|
|
6152
|
-
* @request GET:/merchants/{merchantId}/wallets
|
|
5895
|
+
* @request GET:/api/v1/merchants/{merchantId}/wallets
|
|
6153
5896
|
* @secure
|
|
6154
5897
|
*/
|
|
6155
5898
|
getMerchantWallets: (_a, params) => {
|
|
6156
5899
|
var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
|
|
6157
5900
|
if (params === void 0) { params = {}; }
|
|
6158
|
-
return this.http.request(Object.assign({ path: `/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
5901
|
+
return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6159
5902
|
},
|
|
6160
5903
|
/**
|
|
6161
5904
|
* No description
|
|
@@ -6163,205 +5906,205 @@ class Api {
|
|
|
6163
5906
|
* @tags Merchants
|
|
6164
5907
|
* @name AddMerchantWalletAssets
|
|
6165
5908
|
* @summary Add assets to merchant wallets by merchant id
|
|
6166
|
-
* @request POST:/merchants/wallets/add-assets
|
|
5909
|
+
* @request POST:/api/v1/merchants/wallets/add-assets
|
|
6167
5910
|
* @secure
|
|
6168
5911
|
*/
|
|
6169
|
-
addMerchantWalletAssets: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/wallets/add-assets`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
5912
|
+
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)),
|
|
6170
5913
|
/**
|
|
6171
5914
|
* No description
|
|
6172
5915
|
*
|
|
6173
5916
|
* @tags Merchants
|
|
6174
5917
|
* @name AddNewAsset
|
|
6175
5918
|
* @summary Add new asset to merchant based on the asset configuration
|
|
6176
|
-
* @request POST:/merchants/assets/add
|
|
5919
|
+
* @request POST:/api/v1/merchants/assets/add
|
|
6177
5920
|
* @secure
|
|
6178
5921
|
*/
|
|
6179
|
-
addNewAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5922
|
+
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)),
|
|
6180
5923
|
/**
|
|
6181
5924
|
* No description
|
|
6182
5925
|
*
|
|
6183
5926
|
* @tags Merchants
|
|
6184
5927
|
* @name RemoveAsset
|
|
6185
5928
|
* @summary Remove asset from merchant based on the asset configuration
|
|
6186
|
-
* @request DELETE:/merchants/assets/delete
|
|
5929
|
+
* @request DELETE:/api/v1/merchants/assets/delete
|
|
6187
5930
|
* @secure
|
|
6188
5931
|
*/
|
|
6189
|
-
removeAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/delete`, method: "DELETE", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5932
|
+
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)),
|
|
6190
5933
|
/**
|
|
6191
5934
|
* No description
|
|
6192
5935
|
*
|
|
6193
5936
|
* @tags Merchants
|
|
6194
5937
|
* @name ShowMerchantAssetToWalletHolders
|
|
6195
5938
|
* @summary Show merchant asset to wallet holders based on the asset configuration
|
|
6196
|
-
* @request POST:/merchants/assets/update-visibility
|
|
5939
|
+
* @request POST:/api/v1/merchants/assets/update-visibility
|
|
6197
5940
|
* @secure
|
|
6198
5941
|
*/
|
|
6199
|
-
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)),
|
|
5942
|
+
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)),
|
|
6200
5943
|
/**
|
|
6201
5944
|
* No description
|
|
6202
5945
|
*
|
|
6203
5946
|
* @tags Merchants
|
|
6204
5947
|
* @name ChangeMerchantAssetDefaultStatus
|
|
6205
5948
|
* @summary Change merchant asset default status
|
|
6206
|
-
* @request POST:/merchants/assets/update-default-status
|
|
5949
|
+
* @request POST:/api/v1/merchants/assets/update-default-status
|
|
6207
5950
|
* @secure
|
|
6208
5951
|
*/
|
|
6209
|
-
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)),
|
|
5952
|
+
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)),
|
|
6210
5953
|
/**
|
|
6211
5954
|
* No description
|
|
6212
5955
|
*
|
|
6213
5956
|
* @tags Merchants
|
|
6214
5957
|
* @name CreateApiKey
|
|
6215
5958
|
* @summary Create new API Key
|
|
6216
|
-
* @request POST:/merchants/api-keys/new
|
|
5959
|
+
* @request POST:/api/v1/merchants/api-keys/new
|
|
6217
5960
|
* @secure
|
|
6218
5961
|
*/
|
|
6219
|
-
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)),
|
|
5962
|
+
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)),
|
|
6220
5963
|
/**
|
|
6221
5964
|
* No description
|
|
6222
5965
|
*
|
|
6223
5966
|
* @tags Merchants
|
|
6224
5967
|
* @name WhitelistApiKeyOrigins
|
|
6225
5968
|
* @summary Whitelist API Key's origins
|
|
6226
|
-
* @request POST:/merchants/api-keys/whitelist-origins
|
|
5969
|
+
* @request POST:/api/v1/merchants/api-keys/whitelist-origins
|
|
6227
5970
|
* @secure
|
|
6228
5971
|
*/
|
|
6229
|
-
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)),
|
|
5972
|
+
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)),
|
|
6230
5973
|
};
|
|
6231
5974
|
this.wallets = {
|
|
6232
5975
|
/**
|
|
6233
5976
|
* No description
|
|
6234
5977
|
*
|
|
6235
5978
|
* @tags Wallets
|
|
6236
|
-
* @name
|
|
5979
|
+
* @name GetAllWallets
|
|
6237
5980
|
* @summary Get all wallets by the admin
|
|
6238
|
-
* @request GET:/wallets
|
|
5981
|
+
* @request GET:/api/v1/wallets
|
|
6239
5982
|
* @secure
|
|
6240
5983
|
*/
|
|
6241
|
-
|
|
5984
|
+
getAllWallets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6242
5985
|
/**
|
|
6243
5986
|
* No description
|
|
6244
5987
|
*
|
|
6245
5988
|
* @tags Wallets
|
|
6246
5989
|
* @name CreateWallet
|
|
6247
5990
|
* @summary Create a newly fresh wallet, returns asset list and encrypted seed
|
|
6248
|
-
* @request POST:/wallets/create
|
|
5991
|
+
* @request POST:/api/v1/wallets/create
|
|
6249
5992
|
* @secure
|
|
6250
5993
|
*/
|
|
6251
|
-
createWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
5994
|
+
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)),
|
|
6252
5995
|
/**
|
|
6253
5996
|
* No description
|
|
6254
5997
|
*
|
|
6255
5998
|
* @tags Wallets
|
|
6256
5999
|
* @name VerifyAccess
|
|
6257
6000
|
* @summary Verify that the user still has the ability to transact with the wallet
|
|
6258
|
-
* @request POST:/wallets/verify-access
|
|
6001
|
+
* @request POST:/api/v1/wallets/verify-access
|
|
6259
6002
|
* @secure
|
|
6260
6003
|
*/
|
|
6261
|
-
verifyAccess: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/verify-access`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6004
|
+
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)),
|
|
6262
6005
|
/**
|
|
6263
6006
|
* No description
|
|
6264
6007
|
*
|
|
6265
6008
|
* @tags Wallets
|
|
6266
6009
|
* @name CreateAdminWallet
|
|
6267
6010
|
* @summary Create a server side admin wallet where encryptedSeed will be opaque to the caller
|
|
6268
|
-
* @request POST:/wallets/create-admin-server-wallet
|
|
6011
|
+
* @request POST:/api/v1/wallets/create-admin-server-wallet
|
|
6269
6012
|
* @secure
|
|
6270
6013
|
*/
|
|
6271
|
-
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)),
|
|
6014
|
+
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)),
|
|
6272
6015
|
/**
|
|
6273
6016
|
* No description
|
|
6274
6017
|
*
|
|
6275
6018
|
* @tags Wallets, MPC
|
|
6276
6019
|
* @name CreateWalletV2
|
|
6277
6020
|
* @summary Create a newly fresh wallet, returns asset list and encrypted seed, shares, or both
|
|
6278
|
-
* @request POST:/wallets/create-with-shares
|
|
6021
|
+
* @request POST:/api/v1/wallets/create-with-shares
|
|
6279
6022
|
* @secure
|
|
6280
6023
|
*/
|
|
6281
|
-
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)),
|
|
6024
|
+
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)),
|
|
6282
6025
|
/**
|
|
6283
6026
|
* No description
|
|
6284
6027
|
*
|
|
6285
6028
|
* @tags Wallets, MPC
|
|
6286
6029
|
* @name ImportWalletSeedPhraseV2
|
|
6287
6030
|
* @summary Import an existing wallet seed phrase into wallaby system directly
|
|
6288
|
-
* @request POST:/wallets/create-shares-based-wallet-from-seed
|
|
6031
|
+
* @request POST:/api/v1/wallets/create-shares-based-wallet-from-seed
|
|
6289
6032
|
* @secure
|
|
6290
6033
|
*/
|
|
6291
|
-
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)),
|
|
6034
|
+
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)),
|
|
6292
6035
|
/**
|
|
6293
6036
|
* No description
|
|
6294
6037
|
*
|
|
6295
6038
|
* @tags Wallets, MPC
|
|
6296
6039
|
* @name RetrieveShares
|
|
6297
6040
|
* @summary Retrieve shares which belong to the user on a specified wallet
|
|
6298
|
-
* @request POST:/wallets/retrieve-shares
|
|
6041
|
+
* @request POST:/api/v1/wallets/retrieve-shares
|
|
6299
6042
|
* @secure
|
|
6300
6043
|
*/
|
|
6301
|
-
retrieveShares: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/retrieve-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6044
|
+
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)),
|
|
6302
6045
|
/**
|
|
6303
6046
|
* No description
|
|
6304
6047
|
*
|
|
6305
6048
|
* @tags Wallets, MPC
|
|
6306
6049
|
* @name ShareWallet
|
|
6307
6050
|
* @summary Share an entity wallet with another user
|
|
6308
|
-
* @request POST:/wallets/initiate-share-wallet
|
|
6051
|
+
* @request POST:/api/v1/wallets/initiate-share-wallet
|
|
6309
6052
|
* @secure
|
|
6310
6053
|
*/
|
|
6311
|
-
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)),
|
|
6054
|
+
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)),
|
|
6312
6055
|
/**
|
|
6313
6056
|
* No description
|
|
6314
6057
|
*
|
|
6315
6058
|
* @tags Wallets, MPC
|
|
6316
6059
|
* @name UnshareWallet
|
|
6317
6060
|
* @summary Unshare an entity wallet with a user previously granted access
|
|
6318
|
-
* @request POST:/wallets/unshare-wallet
|
|
6061
|
+
* @request POST:/api/v1/wallets/unshare-wallet
|
|
6319
6062
|
* @secure
|
|
6320
6063
|
*/
|
|
6321
|
-
unshareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/unshare-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6064
|
+
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)),
|
|
6322
6065
|
/**
|
|
6323
6066
|
* No description
|
|
6324
6067
|
*
|
|
6325
6068
|
* @tags Wallets
|
|
6326
6069
|
* @name AddNewDevice
|
|
6327
6070
|
* @summary This endpoint will be called by the new device after it receives a Wallaby wrapped share
|
|
6328
|
-
* @request POST:/wallets/add-new-device
|
|
6071
|
+
* @request POST:/api/v1/wallets/add-new-device
|
|
6329
6072
|
* @secure
|
|
6330
6073
|
*/
|
|
6331
|
-
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)),
|
|
6074
|
+
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)),
|
|
6332
6075
|
/**
|
|
6333
6076
|
* No description
|
|
6334
6077
|
*
|
|
6335
6078
|
* @tags Wallets
|
|
6336
6079
|
* @name ImportWalletSeedPhrase
|
|
6337
6080
|
* @summary Import an existing wallet seed phrase into wallaby system directly
|
|
6338
|
-
* @request POST:/wallets/import-seed-phrase
|
|
6081
|
+
* @request POST:/api/v1/wallets/import-seed-phrase
|
|
6339
6082
|
* @secure
|
|
6340
6083
|
*/
|
|
6341
|
-
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)),
|
|
6084
|
+
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)),
|
|
6342
6085
|
/**
|
|
6343
6086
|
* No description
|
|
6344
6087
|
*
|
|
6345
6088
|
* @tags Wallets
|
|
6346
6089
|
* @name GenerateMissingAddresses
|
|
6347
6090
|
* @summary Generates missing wallet addresses for a user's wallet
|
|
6348
|
-
* @request POST:/wallets/generate-wallet-addresses
|
|
6091
|
+
* @request POST:/api/v1/wallets/generate-wallet-addresses
|
|
6349
6092
|
* @secure
|
|
6350
6093
|
*/
|
|
6351
|
-
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)),
|
|
6094
|
+
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)),
|
|
6352
6095
|
/**
|
|
6353
6096
|
* No description
|
|
6354
6097
|
*
|
|
6355
6098
|
* @tags Wallets
|
|
6356
6099
|
* @name GetUserAssetsByWalletId
|
|
6357
6100
|
* @summary Get all assets that exist in a certain wallet, by specifying a wallet ID
|
|
6358
|
-
* @request GET:/wallets/{walletId}/assets
|
|
6101
|
+
* @request GET:/api/v1/wallets/{walletId}/assets
|
|
6359
6102
|
* @secure
|
|
6360
6103
|
*/
|
|
6361
6104
|
getUserAssetsByWalletId: (_a, params) => {
|
|
6362
6105
|
var { walletId } = _a, query = __rest(_a, ["walletId"]);
|
|
6363
6106
|
if (params === void 0) { params = {}; }
|
|
6364
|
-
return this.http.request(Object.assign({ path: `/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6107
|
+
return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6365
6108
|
},
|
|
6366
6109
|
/**
|
|
6367
6110
|
* No description
|
|
@@ -6369,523 +6112,598 @@ class Api {
|
|
|
6369
6112
|
* @tags Wallets
|
|
6370
6113
|
* @name GetUserAsset
|
|
6371
6114
|
* @summary Get one asset from a user's wallet
|
|
6372
|
-
* @request GET:/wallets/asset
|
|
6115
|
+
* @request GET:/api/v1/wallets/asset
|
|
6373
6116
|
* @secure
|
|
6374
6117
|
*/
|
|
6375
|
-
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)),
|
|
6118
|
+
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)),
|
|
6376
6119
|
/**
|
|
6377
6120
|
* No description
|
|
6378
6121
|
*
|
|
6379
6122
|
* @tags Wallets
|
|
6380
6123
|
* @name UpdateUserAsset
|
|
6381
6124
|
* @summary Update a specific asset in a wallet
|
|
6382
|
-
* @request PUT:/wallets/asset/update
|
|
6125
|
+
* @request PUT:/api/v1/wallets/asset/update
|
|
6383
6126
|
* @secure
|
|
6384
6127
|
*/
|
|
6385
|
-
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)),
|
|
6128
|
+
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)),
|
|
6386
6129
|
/**
|
|
6387
6130
|
* No description
|
|
6388
6131
|
*
|
|
6389
6132
|
* @tags Wallets, Multisig
|
|
6390
6133
|
* @name CreateMultisigAsset
|
|
6391
6134
|
* @summary Initiate creation for a new multisig asset, by specifying participants and the threshold
|
|
6392
|
-
* @request POST:/wallets/create-multisig-asset
|
|
6135
|
+
* @request POST:/api/v1/wallets/create-multisig-asset
|
|
6393
6136
|
* @secure
|
|
6394
6137
|
*/
|
|
6395
|
-
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)),
|
|
6138
|
+
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)),
|
|
6396
6139
|
/**
|
|
6397
6140
|
* No description
|
|
6398
6141
|
*
|
|
6399
6142
|
* @tags Wallets, Recovery
|
|
6400
6143
|
* @name InitiateWalletRecovery
|
|
6401
6144
|
* @summary Wallet Recovery - Step 1: Initiate wallet recovery
|
|
6402
|
-
* @request POST:/wallets/recover/init
|
|
6145
|
+
* @request POST:/api/v1/wallets/recover/init
|
|
6403
6146
|
* @secure
|
|
6404
6147
|
*/
|
|
6405
|
-
initiateWalletRecovery: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover/init`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6148
|
+
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)),
|
|
6406
6149
|
/**
|
|
6407
6150
|
* No description
|
|
6408
6151
|
*
|
|
6409
6152
|
* @tags Wallets, Recovery
|
|
6410
6153
|
* @name RecoverWallet
|
|
6411
6154
|
* @summary Wallet Recovery - Step 2 and final: Recover the lost wallet and its assets
|
|
6412
|
-
* @request POST:/wallets/recover
|
|
6155
|
+
* @request POST:/api/v1/wallets/recover
|
|
6413
6156
|
* @secure
|
|
6414
6157
|
*/
|
|
6415
|
-
recoverWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6158
|
+
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)),
|
|
6416
6159
|
/**
|
|
6417
6160
|
* No description
|
|
6418
6161
|
*
|
|
6419
6162
|
* @tags Wallets, Algorand
|
|
6420
6163
|
* @name ConvertStandardPhraseToAlgoSpecific
|
|
6421
6164
|
* @summary Convert BIP39 Standard seed phrase to Algorand fixed 25 words mnemonic phrase
|
|
6422
|
-
* @request POST:/wallets/convert-mnemonic-seed
|
|
6165
|
+
* @request POST:/api/v1/wallets/convert-mnemonic-seed
|
|
6166
|
+
* @secure
|
|
6167
|
+
*/
|
|
6168
|
+
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)),
|
|
6169
|
+
/**
|
|
6170
|
+
* No description
|
|
6171
|
+
*
|
|
6172
|
+
* @tags Wallets, Swaps
|
|
6173
|
+
* @name RequestSwapQuote
|
|
6174
|
+
* @summary Request a swap quote for exchanging assets
|
|
6175
|
+
* @request POST:/api/v1/wallets/{walletId}/swap/quote
|
|
6423
6176
|
* @secure
|
|
6424
6177
|
*/
|
|
6425
|
-
|
|
6178
|
+
requestSwapQuote: (_a, data, params) => {
|
|
6179
|
+
var { walletId } = _a; __rest(_a, ["walletId"]);
|
|
6180
|
+
if (params === void 0) { params = {}; }
|
|
6181
|
+
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));
|
|
6182
|
+
},
|
|
6183
|
+
/**
|
|
6184
|
+
* No description
|
|
6185
|
+
*
|
|
6186
|
+
* @tags Wallets, Swaps
|
|
6187
|
+
* @name GetSwapHistory
|
|
6188
|
+
* @summary Get swap history for a wallet
|
|
6189
|
+
* @request GET:/api/v1/wallets/{walletId}/swaps
|
|
6190
|
+
* @secure
|
|
6191
|
+
*/
|
|
6192
|
+
getSwapHistory: (_a, params) => {
|
|
6193
|
+
var { walletId } = _a, query = __rest(_a, ["walletId"]);
|
|
6194
|
+
if (params === void 0) { params = {}; }
|
|
6195
|
+
return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6196
|
+
},
|
|
6197
|
+
/**
|
|
6198
|
+
* No description
|
|
6199
|
+
*
|
|
6200
|
+
* @tags Wallets, Swaps
|
|
6201
|
+
* @name GetSwapById
|
|
6202
|
+
* @summary Get a specific swap by ID
|
|
6203
|
+
* @request GET:/api/v1/wallets/{walletId}/swaps/{swapId}
|
|
6204
|
+
* @secure
|
|
6205
|
+
*/
|
|
6206
|
+
getSwapById: (_a, params) => {
|
|
6207
|
+
var { walletId, swapId } = _a; __rest(_a, ["walletId", "swapId"]);
|
|
6208
|
+
if (params === void 0) { params = {}; }
|
|
6209
|
+
return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps/${swapId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6210
|
+
},
|
|
6211
|
+
/**
|
|
6212
|
+
* No description
|
|
6213
|
+
*
|
|
6214
|
+
* @tags Wallets, Transactions
|
|
6215
|
+
* @name ExecuteSwap
|
|
6216
|
+
* @summary Execute a swap transaction between supported assets
|
|
6217
|
+
* @request POST:/api/v1/wallets/execute-swap
|
|
6218
|
+
* @secure
|
|
6219
|
+
*/
|
|
6220
|
+
executeSwap: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/execute-swap`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
6426
6221
|
};
|
|
6427
|
-
this.
|
|
6222
|
+
this.transactions = {
|
|
6428
6223
|
/**
|
|
6429
6224
|
* No description
|
|
6430
6225
|
*
|
|
6431
|
-
* @tags
|
|
6432
|
-
* @name
|
|
6433
|
-
* @summary Get
|
|
6434
|
-
* @request GET:/
|
|
6226
|
+
* @tags Transactions
|
|
6227
|
+
* @name GetTransactions
|
|
6228
|
+
* @summary Get list of transactions
|
|
6229
|
+
* @request GET:/api/v1/transactions
|
|
6435
6230
|
* @secure
|
|
6436
6231
|
*/
|
|
6437
|
-
|
|
6232
|
+
getTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6438
6233
|
/**
|
|
6439
6234
|
* No description
|
|
6440
6235
|
*
|
|
6441
|
-
* @tags
|
|
6442
|
-
* @name
|
|
6443
|
-
* @summary
|
|
6444
|
-
* @request
|
|
6236
|
+
* @tags Transactions
|
|
6237
|
+
* @name GetPendingTransactions
|
|
6238
|
+
* @summary Get list of pending transactions
|
|
6239
|
+
* @request GET:/api/v1/transactions/pending
|
|
6445
6240
|
* @secure
|
|
6446
6241
|
*/
|
|
6447
|
-
|
|
6242
|
+
getPendingTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/pending`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6448
6243
|
/**
|
|
6449
6244
|
* No description
|
|
6450
6245
|
*
|
|
6451
|
-
* @tags
|
|
6452
|
-
* @name
|
|
6453
|
-
* @summary
|
|
6454
|
-
* @request
|
|
6246
|
+
* @tags Transactions
|
|
6247
|
+
* @name ResolvePendingTransaction
|
|
6248
|
+
* @summary Approve or reject a pending transaction
|
|
6249
|
+
* @request POST:/api/v1/transactions/resolve
|
|
6455
6250
|
* @secure
|
|
6456
6251
|
*/
|
|
6457
|
-
|
|
6252
|
+
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)),
|
|
6458
6253
|
/**
|
|
6459
6254
|
* No description
|
|
6460
6255
|
*
|
|
6461
|
-
* @tags
|
|
6462
|
-
* @name
|
|
6463
|
-
* @summary
|
|
6464
|
-
* @request
|
|
6256
|
+
* @tags Transactions
|
|
6257
|
+
* @name SendTransaction
|
|
6258
|
+
* @summary Request transferring funds to a recipient address
|
|
6259
|
+
* @request POST:/api/v1/transactions/transfer
|
|
6465
6260
|
* @secure
|
|
6466
6261
|
*/
|
|
6467
|
-
|
|
6262
|
+
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)),
|
|
6468
6263
|
/**
|
|
6469
6264
|
* No description
|
|
6470
6265
|
*
|
|
6471
|
-
* @tags
|
|
6472
|
-
* @name
|
|
6473
|
-
* @summary
|
|
6474
|
-
* @request
|
|
6266
|
+
* @tags Transactions
|
|
6267
|
+
* @name SendV2Transaction
|
|
6268
|
+
* @summary Request transferring funds to a recipient address
|
|
6269
|
+
* @request POST:/api/v1/transactions/transfer-with-shares
|
|
6475
6270
|
* @secure
|
|
6476
6271
|
*/
|
|
6477
|
-
|
|
6478
|
-
var { userId } = _a; __rest(_a, ["userId"]);
|
|
6479
|
-
if (params === void 0) { params = {}; }
|
|
6480
|
-
return this.http.request(Object.assign({ path: `/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
|
|
6481
|
-
},
|
|
6272
|
+
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)),
|
|
6482
6273
|
/**
|
|
6483
6274
|
* No description
|
|
6484
6275
|
*
|
|
6485
|
-
* @tags
|
|
6486
|
-
* @name
|
|
6487
|
-
* @summary
|
|
6488
|
-
* @request
|
|
6276
|
+
* @tags Transactions
|
|
6277
|
+
* @name InitMultisigTransfer
|
|
6278
|
+
* @summary User initiating and signing a multi-sig transfer request
|
|
6279
|
+
* @request POST:/api/v1/transactions/init-multisig-transfer
|
|
6489
6280
|
* @secure
|
|
6490
6281
|
*/
|
|
6491
|
-
|
|
6282
|
+
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)),
|
|
6492
6283
|
/**
|
|
6493
6284
|
* No description
|
|
6494
6285
|
*
|
|
6495
|
-
* @tags
|
|
6496
|
-
* @name
|
|
6497
|
-
* @summary
|
|
6498
|
-
* @request
|
|
6499
|
-
* @originalName getCurrentUserMerchantAssets
|
|
6500
|
-
* @duplicate
|
|
6286
|
+
* @tags Transactions, Multisig
|
|
6287
|
+
* @name InitMultisigAssetOptin
|
|
6288
|
+
* @summary User initiating a multi-sig asset optin request and subsequently signs the first signature on the request
|
|
6289
|
+
* @request POST:/api/v1/transactions/init-multisig-asset-optin
|
|
6501
6290
|
* @secure
|
|
6502
6291
|
*/
|
|
6503
|
-
|
|
6292
|
+
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)),
|
|
6504
6293
|
/**
|
|
6505
6294
|
* No description
|
|
6506
6295
|
*
|
|
6507
|
-
* @tags
|
|
6508
|
-
* @name
|
|
6509
|
-
* @summary
|
|
6510
|
-
* @request
|
|
6296
|
+
* @tags Transactions, Multisig
|
|
6297
|
+
* @name InitMultisigAppOptin
|
|
6298
|
+
* @summary User initiating a multi-sig app optin request and subsequently signs the first signature on the request
|
|
6299
|
+
* @request POST:/api/v1/transactions/init-multisig-app-optin
|
|
6511
6300
|
* @secure
|
|
6512
6301
|
*/
|
|
6513
|
-
|
|
6514
|
-
var { userId } = _a, query = __rest(_a, ["userId"]);
|
|
6515
|
-
if (params === void 0) { params = {}; }
|
|
6516
|
-
return this.http.request(Object.assign({ path: `/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6517
|
-
},
|
|
6302
|
+
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)),
|
|
6518
6303
|
/**
|
|
6519
6304
|
* No description
|
|
6520
6305
|
*
|
|
6521
|
-
* @tags
|
|
6522
|
-
* @name
|
|
6523
|
-
* @summary
|
|
6524
|
-
* @request POST:/
|
|
6306
|
+
* @tags Transactions, Multisig
|
|
6307
|
+
* @name SignOnMultisigTransactionRequest
|
|
6308
|
+
* @summary Append signature to an existing multisig transaction request: It can be a request to transfer, optin, etc, ...
|
|
6309
|
+
* @request POST:/api/v1/transactions/sign-multisig-request
|
|
6525
6310
|
* @secure
|
|
6526
6311
|
*/
|
|
6527
|
-
|
|
6312
|
+
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)),
|
|
6528
6313
|
/**
|
|
6529
6314
|
* No description
|
|
6530
6315
|
*
|
|
6531
|
-
* @tags
|
|
6532
|
-
* @name
|
|
6533
|
-
* @summary
|
|
6534
|
-
* @request
|
|
6316
|
+
* @tags Transactions, Optin
|
|
6317
|
+
* @name AssetOptInTransaction
|
|
6318
|
+
* @summary Transaction for optin to receive a specific asset in the future
|
|
6319
|
+
* @request POST:/api/v1/transactions/asset-optin
|
|
6535
6320
|
* @secure
|
|
6536
6321
|
*/
|
|
6537
|
-
|
|
6538
|
-
var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
|
|
6539
|
-
if (params === void 0) { params = {}; }
|
|
6540
|
-
return this.http.request(Object.assign({ path: `/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
|
|
6541
|
-
},
|
|
6322
|
+
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)),
|
|
6542
6323
|
/**
|
|
6543
6324
|
* No description
|
|
6544
6325
|
*
|
|
6545
|
-
* @tags
|
|
6546
|
-
* @name
|
|
6547
|
-
* @summary
|
|
6548
|
-
* @request
|
|
6326
|
+
* @tags Transactions, Optin
|
|
6327
|
+
* @name AppOptInTransaction
|
|
6328
|
+
* @summary Transaction for optin to interact with a specific app
|
|
6329
|
+
* @request POST:/api/v1/transactions/app-optin
|
|
6549
6330
|
* @secure
|
|
6550
6331
|
*/
|
|
6551
|
-
|
|
6552
|
-
var { userId } = _a; __rest(_a, ["userId"]);
|
|
6553
|
-
if (params === void 0) { params = {}; }
|
|
6554
|
-
return this.http.request(Object.assign({ path: `/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6555
|
-
},
|
|
6332
|
+
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)),
|
|
6556
6333
|
/**
|
|
6557
6334
|
* No description
|
|
6558
6335
|
*
|
|
6559
|
-
* @tags
|
|
6560
|
-
* @name
|
|
6561
|
-
* @
|
|
6336
|
+
* @tags Transactions
|
|
6337
|
+
* @name GetEstimateFee
|
|
6338
|
+
* @summary Request fee estimate for a particular transaction
|
|
6339
|
+
* @request GET:/api/v1/transactions/estimate-fee
|
|
6562
6340
|
* @secure
|
|
6563
6341
|
*/
|
|
6564
|
-
|
|
6565
|
-
var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
|
|
6566
|
-
if (params === void 0) { params = {}; }
|
|
6567
|
-
return this.http.request(Object.assign({ path: `/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
|
|
6568
|
-
},
|
|
6342
|
+
getEstimateFee: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/estimate-fee`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6569
6343
|
/**
|
|
6570
6344
|
* No description
|
|
6571
6345
|
*
|
|
6572
|
-
* @tags
|
|
6573
|
-
* @name
|
|
6574
|
-
* @summary
|
|
6575
|
-
* @request GET:/
|
|
6346
|
+
* @tags Transactions, Query
|
|
6347
|
+
* @name FetchTransactionByHashOrReference
|
|
6348
|
+
* @summary Fetch transaction status data using a reference or transaction hash
|
|
6349
|
+
* @request GET:/api/v1/transactions/status
|
|
6576
6350
|
* @secure
|
|
6577
6351
|
*/
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6352
|
+
fetchTransactionByHashOrReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/status`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6353
|
+
/**
|
|
6354
|
+
* @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
|
|
6355
|
+
*
|
|
6356
|
+
* @tags Transactions, Raw, Transactions
|
|
6357
|
+
* @name SignAndBroadcastRawTx
|
|
6358
|
+
* @summary Sign and broadcast raw transaction API
|
|
6359
|
+
* @request POST:/api/v1/transactions/sign-broadcast-rawtx
|
|
6360
|
+
* @secure
|
|
6361
|
+
*/
|
|
6362
|
+
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)),
|
|
6585
6363
|
/**
|
|
6586
6364
|
* No description
|
|
6587
6365
|
*
|
|
6588
|
-
* @tags
|
|
6589
|
-
* @name
|
|
6590
|
-
* @summary
|
|
6591
|
-
* @request
|
|
6366
|
+
* @tags Transactions, Transactions, Multisig, Raw
|
|
6367
|
+
* @name InitMultisigRawTransaction
|
|
6368
|
+
* @summary Initiate a multisig raw transaction and sign the first signature on that same transaction
|
|
6369
|
+
* @request POST:/api/v1/transactions/init-sign-broadcast-multisig-rawtx
|
|
6592
6370
|
* @secure
|
|
6593
6371
|
*/
|
|
6594
|
-
|
|
6372
|
+
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)),
|
|
6595
6373
|
/**
|
|
6596
6374
|
* No description
|
|
6597
6375
|
*
|
|
6598
|
-
* @tags Query
|
|
6599
|
-
* @name
|
|
6600
|
-
* @summary Fetch
|
|
6601
|
-
* @request GET:/
|
|
6376
|
+
* @tags Transactions, Query
|
|
6377
|
+
* @name GetDetailedRawTransactionDataByReference
|
|
6378
|
+
* @summary Fetch transaction in raw data format from the system persistence
|
|
6379
|
+
* @request GET:/api/v1/transactions/raw-status
|
|
6602
6380
|
* @secure
|
|
6603
6381
|
*/
|
|
6604
|
-
|
|
6382
|
+
getDetailedRawTransactionDataByReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/raw-status`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6605
6383
|
/**
|
|
6606
6384
|
* No description
|
|
6607
6385
|
*
|
|
6608
|
-
* @tags Query
|
|
6609
|
-
* @name
|
|
6610
|
-
* @summary Fetch
|
|
6611
|
-
* @request
|
|
6386
|
+
* @tags Transactions, Query
|
|
6387
|
+
* @name FetchTransactionParticipants
|
|
6388
|
+
* @summary Fetch transaction's participants
|
|
6389
|
+
* @request GET:/api/v1/transactions/{reference}/participants
|
|
6612
6390
|
* @secure
|
|
6613
6391
|
*/
|
|
6614
|
-
|
|
6392
|
+
fetchTransactionParticipants: (_a, params) => {
|
|
6393
|
+
var { reference } = _a; __rest(_a, ["reference"]);
|
|
6394
|
+
if (params === void 0) { params = {}; }
|
|
6395
|
+
return this.http.request(Object.assign({ path: `/api/v1/transactions/${reference}/participants`, method: "GET", secure: true, format: "json" }, params));
|
|
6396
|
+
},
|
|
6615
6397
|
/**
|
|
6616
6398
|
* No description
|
|
6617
6399
|
*
|
|
6618
|
-
* @tags
|
|
6619
|
-
* @name
|
|
6620
|
-
* @summary
|
|
6621
|
-
* @request
|
|
6400
|
+
* @tags Transactions, Transactions, ERC1404
|
|
6401
|
+
* @name DetectTransferRestriction
|
|
6402
|
+
* @summary Request to detect whether there is a transfer restriction on a particular transaction
|
|
6403
|
+
* @request GET:/api/v1/transactions/detect-transfers-restrictions
|
|
6622
6404
|
* @secure
|
|
6623
6405
|
*/
|
|
6624
|
-
|
|
6406
|
+
detectTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/detect-transfers-restrictions`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6625
6407
|
/**
|
|
6626
6408
|
* No description
|
|
6627
6409
|
*
|
|
6628
|
-
* @tags
|
|
6629
|
-
* @name
|
|
6630
|
-
* @summary
|
|
6631
|
-
* @request GET:/
|
|
6410
|
+
* @tags Transactions, Transactions, ERC1404
|
|
6411
|
+
* @name FetchMessageForTransferRestriction
|
|
6412
|
+
* @summary Request restriction message by providing a restriction code
|
|
6413
|
+
* @request GET:/api/v1/transactions/transfer-restriction-message
|
|
6414
|
+
* @secure
|
|
6632
6415
|
*/
|
|
6633
|
-
|
|
6416
|
+
fetchMessageForTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/transfer-restriction-message`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6634
6417
|
/**
|
|
6635
6418
|
* No description
|
|
6636
6419
|
*
|
|
6637
|
-
* @tags
|
|
6638
|
-
* @name
|
|
6639
|
-
* @summary
|
|
6640
|
-
* @request GET:/
|
|
6420
|
+
* @tags Transactions, Optin
|
|
6421
|
+
* @name CheckAssetOptinForAddress
|
|
6422
|
+
* @summary Get the list of all assets that the current account has opted into. This is only relevant for the Algorand chain
|
|
6423
|
+
* @request GET:/api/v1/transactions/check-asset-optin
|
|
6641
6424
|
* @secure
|
|
6642
6425
|
*/
|
|
6643
|
-
|
|
6426
|
+
checkAssetOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-asset-optin`, method: "GET", query: query, secure: true }, params)),
|
|
6644
6427
|
/**
|
|
6645
6428
|
* No description
|
|
6646
6429
|
*
|
|
6647
|
-
* @tags
|
|
6648
|
-
* @name
|
|
6649
|
-
* @summary
|
|
6650
|
-
* @request GET:/
|
|
6430
|
+
* @tags Transactions, Optin
|
|
6431
|
+
* @name CheckAppOptinForAddress
|
|
6432
|
+
* @summary Get the list of all apps that the current account has opted into. This is only relevant for the Algorand chain
|
|
6433
|
+
* @request GET:/api/v1/transactions/check-app-optin
|
|
6434
|
+
* @secure
|
|
6435
|
+
*/
|
|
6436
|
+
checkAppOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-app-optin`, method: "GET", query: query, secure: true }, params)),
|
|
6437
|
+
/**
|
|
6438
|
+
* No description
|
|
6439
|
+
*
|
|
6440
|
+
* @tags Transactions, Transactions
|
|
6441
|
+
* @name CreateAllowanceTransaction
|
|
6442
|
+
* @summary Create an allowance for others to spend on your behalf
|
|
6443
|
+
* @request POST:/api/v1/transactions/create-allowance
|
|
6651
6444
|
* @secure
|
|
6652
6445
|
*/
|
|
6653
|
-
|
|
6446
|
+
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)),
|
|
6654
6447
|
};
|
|
6655
|
-
this.
|
|
6448
|
+
this.query = {
|
|
6656
6449
|
/**
|
|
6657
6450
|
* No description
|
|
6658
6451
|
*
|
|
6659
|
-
* @tags
|
|
6660
|
-
* @name
|
|
6661
|
-
* @summary
|
|
6662
|
-
* @request GET:/
|
|
6452
|
+
* @tags Query
|
|
6453
|
+
* @name FetchBalance
|
|
6454
|
+
* @summary Fetch asset balance by specifying the asset address and the asset symbol
|
|
6455
|
+
* @request GET:/api/v1/query/assets/balance
|
|
6663
6456
|
* @secure
|
|
6664
6457
|
*/
|
|
6665
|
-
|
|
6458
|
+
fetchBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/assets/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6666
6459
|
/**
|
|
6667
6460
|
* No description
|
|
6668
6461
|
*
|
|
6669
|
-
* @tags
|
|
6670
|
-
* @name
|
|
6671
|
-
* @summary
|
|
6672
|
-
* @request
|
|
6462
|
+
* @tags Query
|
|
6463
|
+
* @name FetchOnlyBalance
|
|
6464
|
+
* @summary Fetch address balance by specifying the address and the asset symbol. This API works even for external assets addresses
|
|
6465
|
+
* @request GET:/api/v1/query/address/balance
|
|
6673
6466
|
* @secure
|
|
6674
6467
|
*/
|
|
6675
|
-
|
|
6468
|
+
fetchOnlyBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/address/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6676
6469
|
/**
|
|
6677
6470
|
* No description
|
|
6678
6471
|
*
|
|
6679
|
-
* @tags
|
|
6680
|
-
* @name
|
|
6681
|
-
* @summary
|
|
6682
|
-
* @request POST:/
|
|
6472
|
+
* @tags Query
|
|
6473
|
+
* @name FetchBulkBalance
|
|
6474
|
+
* @summary Fetch assets' balance by providing an array of asset addresses and symbols
|
|
6475
|
+
* @request POST:/api/v1/query/assets/bulk-balance
|
|
6683
6476
|
* @secure
|
|
6684
6477
|
*/
|
|
6685
|
-
|
|
6478
|
+
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)),
|
|
6686
6479
|
/**
|
|
6687
6480
|
* No description
|
|
6688
6481
|
*
|
|
6689
|
-
* @tags
|
|
6690
|
-
* @name
|
|
6691
|
-
* @summary
|
|
6692
|
-
* @request POST:/
|
|
6482
|
+
* @tags Query
|
|
6483
|
+
* @name FetchWalletBulkBalance
|
|
6484
|
+
* @summary Fetch assets balances by specifying the wallet ID
|
|
6485
|
+
* @request POST:/api/v1/query/assets/wallet-bulk-balance
|
|
6693
6486
|
* @secure
|
|
6694
6487
|
*/
|
|
6695
|
-
|
|
6488
|
+
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)),
|
|
6696
6489
|
/**
|
|
6697
6490
|
* No description
|
|
6698
6491
|
*
|
|
6699
|
-
* @tags
|
|
6700
|
-
* @name
|
|
6701
|
-
* @summary
|
|
6702
|
-
* @request
|
|
6492
|
+
* @tags Query
|
|
6493
|
+
* @name FetchTransactions
|
|
6494
|
+
* @summary Fetch the current address historical transactions
|
|
6495
|
+
* @request GET:/api/v1/query/transactions
|
|
6703
6496
|
* @secure
|
|
6704
6497
|
*/
|
|
6705
|
-
|
|
6498
|
+
fetchTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6706
6499
|
/**
|
|
6707
6500
|
* No description
|
|
6708
6501
|
*
|
|
6709
|
-
* @tags
|
|
6710
|
-
* @name
|
|
6711
|
-
* @summary
|
|
6712
|
-
* @request
|
|
6502
|
+
* @tags Query, Assets
|
|
6503
|
+
* @name FetchEvmTokenAssetInfo
|
|
6504
|
+
* @summary Request token asset info like decimals, name and symbol
|
|
6505
|
+
* @request GET:/api/v1/query/fetch-token-info
|
|
6713
6506
|
* @secure
|
|
6714
6507
|
*/
|
|
6715
|
-
|
|
6508
|
+
fetchEvmTokenAssetInfo: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/fetch-token-info`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6716
6509
|
/**
|
|
6717
6510
|
* No description
|
|
6718
6511
|
*
|
|
6719
|
-
* @tags
|
|
6720
|
-
* @name
|
|
6721
|
-
* @summary
|
|
6722
|
-
* @request
|
|
6512
|
+
* @tags Query, Assets
|
|
6513
|
+
* @name FetchAssetPairPrice
|
|
6514
|
+
* @summary Fetch asset price by providing symbol pairing or a list of pairing symbols
|
|
6515
|
+
* @request GET:/api/v1/query/get-asset-price
|
|
6723
6516
|
* @secure
|
|
6724
6517
|
*/
|
|
6725
|
-
|
|
6518
|
+
fetchAssetPairPrice: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/get-asset-price`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6519
|
+
};
|
|
6520
|
+
this.mpc = {
|
|
6726
6521
|
/**
|
|
6727
6522
|
* No description
|
|
6728
6523
|
*
|
|
6729
|
-
* @tags
|
|
6730
|
-
* @name
|
|
6731
|
-
* @summary
|
|
6732
|
-
* @request POST:/
|
|
6524
|
+
* @tags Mpc
|
|
6525
|
+
* @name InitKeyExchange
|
|
6526
|
+
* @summary Initialize key exchange process, the keys exchanged will be later used for encryption/decryption of the payloads exchanged
|
|
6527
|
+
* @request POST:/api/v1/mpc/init-key-exchange
|
|
6733
6528
|
* @secure
|
|
6734
6529
|
*/
|
|
6735
|
-
|
|
6530
|
+
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)),
|
|
6736
6531
|
/**
|
|
6737
6532
|
* No description
|
|
6738
6533
|
*
|
|
6739
|
-
* @tags
|
|
6740
|
-
* @name
|
|
6741
|
-
* @summary
|
|
6742
|
-
* @request POST:/
|
|
6534
|
+
* @tags Mpc
|
|
6535
|
+
* @name RequestSeedphraseSplit
|
|
6536
|
+
* @summary Request seed phrase split and return shares that can be used later for recovery
|
|
6537
|
+
* @request POST:/api/v1/mpc/request-seed-split
|
|
6743
6538
|
* @secure
|
|
6744
6539
|
*/
|
|
6745
|
-
|
|
6540
|
+
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)),
|
|
6746
6541
|
/**
|
|
6747
6542
|
* No description
|
|
6748
6543
|
*
|
|
6749
|
-
* @tags
|
|
6750
|
-
* @name
|
|
6751
|
-
* @summary
|
|
6752
|
-
* @request
|
|
6544
|
+
* @tags Mpc
|
|
6545
|
+
* @name ReconstructSeedPhrase
|
|
6546
|
+
* @summary Pass encrypted shares and return reconstructed encrypted seed phrase
|
|
6547
|
+
* @request POST:/api/v1/mpc/reconstruct-seed-phrase
|
|
6753
6548
|
* @secure
|
|
6754
6549
|
*/
|
|
6755
|
-
|
|
6550
|
+
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)),
|
|
6551
|
+
};
|
|
6552
|
+
this.users = {
|
|
6756
6553
|
/**
|
|
6757
|
-
*
|
|
6554
|
+
* No description
|
|
6758
6555
|
*
|
|
6759
|
-
* @tags
|
|
6760
|
-
* @name
|
|
6761
|
-
* @summary
|
|
6762
|
-
* @request
|
|
6556
|
+
* @tags Users
|
|
6557
|
+
* @name GetAllUsers
|
|
6558
|
+
* @summary Get all users by the admin
|
|
6559
|
+
* @request GET:/api/v1/users
|
|
6763
6560
|
* @secure
|
|
6764
6561
|
*/
|
|
6765
|
-
|
|
6562
|
+
getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6766
6563
|
/**
|
|
6767
6564
|
* No description
|
|
6768
6565
|
*
|
|
6769
|
-
* @tags
|
|
6770
|
-
* @name
|
|
6771
|
-
* @summary
|
|
6772
|
-
* @request
|
|
6566
|
+
* @tags Users
|
|
6567
|
+
* @name UpdateProfile
|
|
6568
|
+
* @summary Update user profile info
|
|
6569
|
+
* @request PUT:/api/v1/users/profile
|
|
6773
6570
|
* @secure
|
|
6774
6571
|
*/
|
|
6775
|
-
|
|
6572
|
+
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)),
|
|
6776
6573
|
/**
|
|
6777
6574
|
* No description
|
|
6778
6575
|
*
|
|
6779
|
-
* @tags
|
|
6780
|
-
* @name
|
|
6781
|
-
* @summary
|
|
6782
|
-
* @request
|
|
6576
|
+
* @tags Users
|
|
6577
|
+
* @name GetCurrentUser
|
|
6578
|
+
* @summary Returns current user data
|
|
6579
|
+
* @request GET:/api/v1/users/profile
|
|
6783
6580
|
* @secure
|
|
6784
6581
|
*/
|
|
6785
|
-
|
|
6582
|
+
getCurrentUser: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/profile`, method: "GET", secure: true, format: "json" }, params)),
|
|
6786
6583
|
/**
|
|
6787
6584
|
* No description
|
|
6788
6585
|
*
|
|
6789
|
-
* @tags
|
|
6790
|
-
* @name
|
|
6791
|
-
* @summary
|
|
6792
|
-
* @request GET:/
|
|
6586
|
+
* @tags Users
|
|
6587
|
+
* @name GetCurrentUserSalt
|
|
6588
|
+
* @summary Get current user's client salt
|
|
6589
|
+
* @request GET:/api/v1/users/salt
|
|
6793
6590
|
* @secure
|
|
6794
6591
|
*/
|
|
6795
|
-
|
|
6592
|
+
getCurrentUserSalt: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/salt`, method: "GET", secure: true, format: "json" }, params)),
|
|
6796
6593
|
/**
|
|
6797
6594
|
* No description
|
|
6798
6595
|
*
|
|
6799
|
-
* @tags
|
|
6800
|
-
* @name
|
|
6801
|
-
* @summary
|
|
6802
|
-
* @request GET:/
|
|
6596
|
+
* @tags Users
|
|
6597
|
+
* @name GetAllWalletsFromUserId
|
|
6598
|
+
* @summary Returns user wallets by specifying user id
|
|
6599
|
+
* @request GET:/api/v1/users/{userId}/wallets
|
|
6803
6600
|
* @secure
|
|
6804
6601
|
*/
|
|
6805
|
-
|
|
6806
|
-
var {
|
|
6602
|
+
getAllWalletsFromUserId: (_a, params) => {
|
|
6603
|
+
var { userId } = _a; __rest(_a, ["userId"]);
|
|
6807
6604
|
if (params === void 0) { params = {}; }
|
|
6808
|
-
return this.http.request(Object.assign({ path: `/
|
|
6605
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
|
|
6809
6606
|
},
|
|
6810
6607
|
/**
|
|
6811
6608
|
* No description
|
|
6812
6609
|
*
|
|
6813
|
-
* @tags
|
|
6814
|
-
* @name
|
|
6815
|
-
* @summary
|
|
6816
|
-
* @request GET:/
|
|
6610
|
+
* @tags Users
|
|
6611
|
+
* @name GetCurrentUserMerchantAssets
|
|
6612
|
+
* @summary Returns user's merchant assets
|
|
6613
|
+
* @request GET:/api/v1/users/merchants/assets
|
|
6817
6614
|
* @secure
|
|
6818
6615
|
*/
|
|
6819
|
-
|
|
6616
|
+
getCurrentUserMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchants/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6820
6617
|
/**
|
|
6821
6618
|
* No description
|
|
6822
6619
|
*
|
|
6823
|
-
* @tags
|
|
6824
|
-
* @name
|
|
6825
|
-
* @summary
|
|
6826
|
-
* @request GET:/
|
|
6620
|
+
* @tags Users
|
|
6621
|
+
* @name GetCurrentUserMerchantAssetsUsersMerchantAssets
|
|
6622
|
+
* @summary Returns user's merchant assets
|
|
6623
|
+
* @request GET:/api/v1/users/merchant/assets
|
|
6827
6624
|
* @secure
|
|
6828
6625
|
*/
|
|
6829
|
-
|
|
6626
|
+
getCurrentUserMerchantAssetsUsersMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchant/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6830
6627
|
/**
|
|
6831
6628
|
* No description
|
|
6832
6629
|
*
|
|
6833
|
-
* @tags
|
|
6834
|
-
* @name
|
|
6835
|
-
* @summary
|
|
6836
|
-
* @request GET:/
|
|
6630
|
+
* @tags Users
|
|
6631
|
+
* @name GetAssetsByUserId
|
|
6632
|
+
* @summary Returns user assets by specifying user id
|
|
6633
|
+
* @request GET:/api/v1/users/{userId}/assets
|
|
6837
6634
|
* @secure
|
|
6838
6635
|
*/
|
|
6839
|
-
|
|
6636
|
+
getAssetsByUserId: (_a, params) => {
|
|
6637
|
+
var { userId } = _a, query = __rest(_a, ["userId"]);
|
|
6638
|
+
if (params === void 0) { params = {}; }
|
|
6639
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6640
|
+
},
|
|
6840
6641
|
/**
|
|
6841
6642
|
* No description
|
|
6842
6643
|
*
|
|
6843
|
-
* @tags
|
|
6844
|
-
* @name
|
|
6845
|
-
* @summary
|
|
6846
|
-
* @request
|
|
6644
|
+
* @tags Users
|
|
6645
|
+
* @name AddAssetToUser
|
|
6646
|
+
* @summary Add a new asset to the user's wallet based on the asset configuration
|
|
6647
|
+
* @request POST:/api/v1/users/assets/add
|
|
6847
6648
|
* @secure
|
|
6848
6649
|
*/
|
|
6849
|
-
|
|
6650
|
+
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)),
|
|
6850
6651
|
/**
|
|
6851
6652
|
* No description
|
|
6852
6653
|
*
|
|
6853
|
-
* @tags
|
|
6854
|
-
* @name
|
|
6855
|
-
* @summary
|
|
6856
|
-
* @request
|
|
6654
|
+
* @tags Users
|
|
6655
|
+
* @name RemoveAssetFromUser
|
|
6656
|
+
* @summary Remove an asset from the user's wallet based on the asset configuration
|
|
6657
|
+
* @request DELETE:/api/v1/users/{userId}/wallets/{walletId}/assets/{assetConfigId}
|
|
6857
6658
|
* @secure
|
|
6858
6659
|
*/
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6660
|
+
removeAssetFromUser: (_a, params) => {
|
|
6661
|
+
var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
|
|
6662
|
+
if (params === void 0) { params = {}; }
|
|
6663
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
|
|
6664
|
+
},
|
|
6862
6665
|
/**
|
|
6863
6666
|
* No description
|
|
6864
6667
|
*
|
|
6865
|
-
* @tags
|
|
6866
|
-
* @name
|
|
6867
|
-
* @summary
|
|
6868
|
-
* @request
|
|
6668
|
+
* @tags Users
|
|
6669
|
+
* @name GetUserByUserId
|
|
6670
|
+
* @summary Returns user public data
|
|
6671
|
+
* @request GET:/api/v1/users/{userId}
|
|
6672
|
+
* @secure
|
|
6869
6673
|
*/
|
|
6870
|
-
|
|
6674
|
+
getUserByUserId: (_a, params) => {
|
|
6675
|
+
var { userId } = _a; __rest(_a, ["userId"]);
|
|
6676
|
+
if (params === void 0) { params = {}; }
|
|
6677
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6678
|
+
},
|
|
6871
6679
|
/**
|
|
6872
6680
|
* No description
|
|
6873
6681
|
*
|
|
6874
|
-
* @tags
|
|
6875
|
-
* @name
|
|
6876
|
-
* @summary
|
|
6877
|
-
* @request
|
|
6682
|
+
* @tags Users
|
|
6683
|
+
* @name GetUserByExternalUserId
|
|
6684
|
+
* @summary Returns user public data by their external user ID
|
|
6685
|
+
* @request GET:/api/v1/users/{externalUserId}/externalUserId
|
|
6686
|
+
* @secure
|
|
6878
6687
|
*/
|
|
6879
|
-
|
|
6688
|
+
getUserByExternalUserId: (_a, params) => {
|
|
6689
|
+
var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
|
|
6690
|
+
if (params === void 0) { params = {}; }
|
|
6691
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
|
|
6692
|
+
},
|
|
6880
6693
|
/**
|
|
6881
6694
|
* No description
|
|
6882
6695
|
*
|
|
6883
|
-
* @tags
|
|
6884
|
-
* @name
|
|
6885
|
-
* @summary
|
|
6886
|
-
* @request
|
|
6696
|
+
* @tags Users
|
|
6697
|
+
* @name GetParticipantsByUserId
|
|
6698
|
+
* @summary Returns multisig participants by user id
|
|
6699
|
+
* @request GET:/api/v1/users/{userId}/multisig-transactions
|
|
6700
|
+
* @secure
|
|
6887
6701
|
*/
|
|
6888
|
-
|
|
6702
|
+
getParticipantsByUserId: (_a, params) => {
|
|
6703
|
+
var { userId } = _a, query = __rest(_a, ["userId"]);
|
|
6704
|
+
if (params === void 0) { params = {}; }
|
|
6705
|
+
return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/multisig-transactions`, method: "GET", query: query, secure: true, format: "json" }, params));
|
|
6706
|
+
},
|
|
6889
6707
|
};
|
|
6890
6708
|
this.adminTransactions = {
|
|
6891
6709
|
/**
|
|
@@ -6894,111 +6712,113 @@ class Api {
|
|
|
6894
6712
|
* @tags Admin-Transactions
|
|
6895
6713
|
* @name CreateReleaseSchedule
|
|
6896
6714
|
* @summary Request the creation of a release schedule
|
|
6897
|
-
* @request POST:/transactions/admin/release-schedule
|
|
6715
|
+
* @request POST:/api/v1/transactions/admin/release-schedule
|
|
6898
6716
|
* @secure
|
|
6899
6717
|
*/
|
|
6900
|
-
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)),
|
|
6718
|
+
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)),
|
|
6901
6719
|
/**
|
|
6902
6720
|
* No description
|
|
6903
6721
|
*
|
|
6904
6722
|
* @tags Admin-Transactions
|
|
6905
6723
|
* @name ViewReleaseSchedule
|
|
6906
6724
|
* @summary View a release schedule
|
|
6907
|
-
* @request GET:/transactions/admin/release-schedule
|
|
6725
|
+
* @request GET:/api/v1/transactions/admin/release-schedule
|
|
6908
6726
|
* @secure
|
|
6909
6727
|
*/
|
|
6910
|
-
viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6728
|
+
viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
6911
6729
|
/**
|
|
6912
6730
|
* No description
|
|
6913
6731
|
*
|
|
6914
6732
|
* @tags Admin-Transactions
|
|
6915
6733
|
* @name Mint
|
|
6916
6734
|
* @summary Request the minting of an asset to addresses either via mint release schedule or directly
|
|
6917
|
-
* @request POST:/transactions/admin/mint
|
|
6735
|
+
* @request POST:/api/v1/transactions/admin/mint
|
|
6918
6736
|
* @secure
|
|
6919
6737
|
*/
|
|
6920
|
-
mint: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/mint`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6738
|
+
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)),
|
|
6921
6739
|
/**
|
|
6922
6740
|
* No description
|
|
6923
6741
|
*
|
|
6924
6742
|
* @tags Admin-Transactions
|
|
6925
6743
|
* @name Burn
|
|
6926
6744
|
* @summary Request the burning of an asset to address(es) directly
|
|
6927
|
-
* @request POST:/transactions/admin/burn
|
|
6745
|
+
* @request POST:/api/v1/transactions/admin/burn
|
|
6928
6746
|
* @secure
|
|
6929
6747
|
*/
|
|
6930
|
-
burn: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/burn`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
6748
|
+
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)),
|
|
6931
6749
|
/**
|
|
6932
6750
|
* No description
|
|
6933
6751
|
*
|
|
6934
6752
|
* @tags Admin-Transactions
|
|
6935
6753
|
* @name ExecutePurchase
|
|
6936
6754
|
* @summary Request purchase on the purchase contract
|
|
6937
|
-
* @request POST:/transactions/admin/execute-purchase
|
|
6755
|
+
* @request POST:/api/v1/transactions/admin/execute-purchase
|
|
6938
6756
|
* @secure
|
|
6939
6757
|
*/
|
|
6940
|
-
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)),
|
|
6758
|
+
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)),
|
|
6941
6759
|
/**
|
|
6942
6760
|
* No description
|
|
6943
6761
|
*
|
|
6944
6762
|
* @tags Admin-Transactions
|
|
6945
6763
|
* @name ExecutePurchaseWithInterest
|
|
6946
6764
|
* @summary Request purchase with interest on the purchase contract
|
|
6947
|
-
* @request POST:/transactions/admin/execute-purchase-with-interest
|
|
6765
|
+
* @request POST:/api/v1/transactions/admin/execute-purchase-with-interest
|
|
6948
6766
|
* @secure
|
|
6949
6767
|
*/
|
|
6950
|
-
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)),
|
|
6768
|
+
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)),
|
|
6951
6769
|
/**
|
|
6952
6770
|
* No description
|
|
6953
6771
|
*
|
|
6954
6772
|
* @tags Admin-Transactions
|
|
6955
6773
|
* @name SetIdentity
|
|
6956
6774
|
* @summary Set identity via the identity registry contract
|
|
6957
|
-
* @request POST:/transactions/admin/set-identity
|
|
6775
|
+
* @request POST:/api/v1/transactions/admin/set-identity
|
|
6958
6776
|
* @secure
|
|
6959
6777
|
*/
|
|
6960
|
-
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)),
|
|
6778
|
+
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)),
|
|
6961
6779
|
/**
|
|
6962
6780
|
* No description
|
|
6963
6781
|
*
|
|
6964
6782
|
* @tags Admin-Transactions
|
|
6965
6783
|
* @name ForceClaim
|
|
6966
6784
|
* @summary Force claim interest via the interest payment contract
|
|
6967
|
-
* @request POST:/transactions/admin/force-claim
|
|
6785
|
+
* @request POST:/api/v1/transactions/admin/force-claim
|
|
6968
6786
|
* @secure
|
|
6969
6787
|
*/
|
|
6970
|
-
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)),
|
|
6788
|
+
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)),
|
|
6971
6789
|
/**
|
|
6972
6790
|
* No description
|
|
6973
6791
|
*
|
|
6974
6792
|
* @tags Admin-Transactions
|
|
6975
6793
|
* @name ForceClaimPrincipal
|
|
6976
6794
|
* @summary Force claim principal via the interest payment contract
|
|
6977
|
-
* @request POST:/transactions/admin/force-claim-principal
|
|
6795
|
+
* @request POST:/api/v1/transactions/admin/force-claim-principal
|
|
6978
6796
|
* @secure
|
|
6979
6797
|
*/
|
|
6980
|
-
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)),
|
|
6798
|
+
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)),
|
|
6981
6799
|
/**
|
|
6982
6800
|
* No description
|
|
6983
6801
|
*
|
|
6984
6802
|
* @tags Admin-Transactions
|
|
6985
6803
|
* @name GetCallbackPublicKey
|
|
6986
|
-
* @
|
|
6804
|
+
* @summary Get the public key for callback
|
|
6805
|
+
* @request GET:/api/v1/transactions/admin/callback_pk
|
|
6806
|
+
* @secure
|
|
6987
6807
|
*/
|
|
6988
|
-
getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/callback_pk`, method: "GET" }, params)),
|
|
6808
|
+
getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/callback_pk`, method: "GET", secure: true }, params)),
|
|
6989
6809
|
/**
|
|
6990
6810
|
* No description
|
|
6991
6811
|
*
|
|
6992
6812
|
* @tags Admin-Transactions
|
|
6993
6813
|
* @name ViewAdminTransaction
|
|
6994
6814
|
* @summary View an admin transaction
|
|
6995
|
-
* @request GET:/transactions/admin/{referenceId}
|
|
6815
|
+
* @request GET:/api/v1/transactions/admin/{referenceId}
|
|
6996
6816
|
* @secure
|
|
6997
6817
|
*/
|
|
6998
6818
|
viewAdminTransaction: (_a, params) => {
|
|
6999
6819
|
var { referenceId } = _a; __rest(_a, ["referenceId"]);
|
|
7000
6820
|
if (params === void 0) { params = {}; }
|
|
7001
|
-
return this.http.request(Object.assign({ path: `/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
|
|
6821
|
+
return this.http.request(Object.assign({ path: `/api/v1/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
|
|
7002
6822
|
},
|
|
7003
6823
|
/**
|
|
7004
6824
|
* No description
|
|
@@ -7006,9 +6826,30 @@ class Api {
|
|
|
7006
6826
|
* @tags Admin-Transactions
|
|
7007
6827
|
* @name UpsideCallback
|
|
7008
6828
|
* @summary Upside callback for release schedule
|
|
7009
|
-
* @request POST:/transactions/admin/callback
|
|
6829
|
+
* @request POST:/api/v1/transactions/admin/callback
|
|
6830
|
+
* @secure
|
|
6831
|
+
*/
|
|
6832
|
+
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)),
|
|
6833
|
+
};
|
|
6834
|
+
this.v1 = {
|
|
6835
|
+
/**
|
|
6836
|
+
* No description
|
|
6837
|
+
*
|
|
6838
|
+
* @name GetDashboardData
|
|
6839
|
+
* @summary Create new merchant. This endpoint is only available for super admin and republic admin
|
|
6840
|
+
* @request GET:/api/v1/dashboard
|
|
6841
|
+
* @secure
|
|
6842
|
+
*/
|
|
6843
|
+
getDashboardData: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/dashboard`, method: "GET", secure: true }, params)),
|
|
6844
|
+
/**
|
|
6845
|
+
* No description
|
|
6846
|
+
*
|
|
6847
|
+
* @name GetActivitiees
|
|
6848
|
+
* @summary Get all activities. This endpoint is only available for super admin and republic admin
|
|
6849
|
+
* @request GET:/api/v1/users-activities
|
|
6850
|
+
* @secure
|
|
7010
6851
|
*/
|
|
7011
|
-
|
|
6852
|
+
getActivitiees: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users-activities`, method: "GET", query: query, secure: true }, params)),
|
|
7012
6853
|
};
|
|
7013
6854
|
this.http = http;
|
|
7014
6855
|
}
|
|
@@ -7046,8 +6887,12 @@ class Base {
|
|
|
7046
6887
|
this.lockManager = new LockManagerService();
|
|
7047
6888
|
this._initializeClientAuthToken(sanitizedConfig.clientAuthToken);
|
|
7048
6889
|
this.request = this.request.bind(this);
|
|
6890
|
+
// The generated API client includes /api/v1 in each path, so strip it from
|
|
6891
|
+
// the baseUrl to avoid doubling (e.g. /api/v1/api/v1/wallets/...).
|
|
6892
|
+
// The custom this.request() method still uses the original this.baseUrl
|
|
6893
|
+
// whose route paths do not carry the /api/v1 prefix.
|
|
7049
6894
|
const httpClient = new HttpClient({
|
|
7050
|
-
baseUrl: this.baseUrl,
|
|
6895
|
+
baseUrl: this.baseUrl.replace(/\/api\/v1\/?$/, ''),
|
|
7051
6896
|
baseApiParams: {
|
|
7052
6897
|
secure: true, // Enable security worker for all requests by default
|
|
7053
6898
|
},
|
|
@@ -10689,13 +10534,17 @@ class WalletDataService extends Base {
|
|
|
10689
10534
|
*
|
|
10690
10535
|
* @public
|
|
10691
10536
|
* Fetches the balances for a group of tokens in bulk.
|
|
10692
|
-
*
|
|
10693
|
-
* @param { string }
|
|
10694
|
-
* @param {
|
|
10695
|
-
*
|
|
10537
|
+
* Takes an array of addresses and tokens and return their balances.
|
|
10538
|
+
* @param { string } walletId Wallet ID
|
|
10539
|
+
* @param { TokenBalanceRequest[] } tokensAndAddressesList An array of token balance requests.
|
|
10540
|
+
* - address: Wallet address
|
|
10541
|
+
* - symbol: Token symbol
|
|
10542
|
+
* - chainName: Blockchain name (optional)
|
|
10543
|
+
* - tokenStandard: Token standard (optional)
|
|
10544
|
+
* Note: Either chainName or tokenStandard must be provided.
|
|
10696
10545
|
* @returns { FetchBalanceData } Returns an array of the requested tokens balances.
|
|
10697
10546
|
*/
|
|
10698
|
-
async getMultiTokenBalances(tokensAndAddressesList) {
|
|
10547
|
+
async getMultiTokenBalances({ walletId, tokensAndAddressesList }) {
|
|
10699
10548
|
try {
|
|
10700
10549
|
if (!tokensAndAddressesList.length) {
|
|
10701
10550
|
throw new WallabyError({
|
|
@@ -10705,12 +10554,12 @@ class WalletDataService extends Base {
|
|
|
10705
10554
|
});
|
|
10706
10555
|
}
|
|
10707
10556
|
const response = await this.request(WalletRoutes.getMultiTokenBalances, {
|
|
10708
|
-
payload: { assets: tokensAndAddressesList },
|
|
10557
|
+
payload: { assets: tokensAndAddressesList, walletId },
|
|
10709
10558
|
});
|
|
10710
10559
|
return response;
|
|
10711
10560
|
}
|
|
10712
10561
|
catch (error) {
|
|
10713
|
-
logger.error('SDK::WalletDataService::
|
|
10562
|
+
logger.error('SDK::WalletDataService::getMultiTokenBalances::error', error);
|
|
10714
10563
|
throw error;
|
|
10715
10564
|
}
|
|
10716
10565
|
}
|
|
@@ -11849,20 +11698,36 @@ class Transactions extends Base {
|
|
|
11849
11698
|
let transferResponse;
|
|
11850
11699
|
if (readyForTransportSeedPhrase) {
|
|
11851
11700
|
transferResponse = await this.request(TransactionsRoutes.transfer, {
|
|
11852
|
-
payload:
|
|
11701
|
+
payload: {
|
|
11702
|
+
message: signatureMessage.message,
|
|
11703
|
+
signature: signatureMessage.signature,
|
|
11704
|
+
clientAuthPubKey: deviceAuthPublicKey,
|
|
11705
|
+
encryptedSeed: readyForTransportSeedPhrase,
|
|
11706
|
+
originAddress,
|
|
11853
11707
|
recipientAddress,
|
|
11854
11708
|
assetId,
|
|
11855
|
-
amount,
|
|
11856
|
-
|
|
11709
|
+
amount,
|
|
11710
|
+
reference: reference || uuid.v4(),
|
|
11711
|
+
memo,
|
|
11712
|
+
transactionType,
|
|
11713
|
+
},
|
|
11857
11714
|
});
|
|
11858
11715
|
}
|
|
11859
11716
|
else if (hasShares) {
|
|
11860
11717
|
transferResponse = await this.request(TransactionsRoutes.transferWithShares, {
|
|
11861
|
-
payload:
|
|
11718
|
+
payload: {
|
|
11719
|
+
message: signatureMessage.message,
|
|
11720
|
+
signature: signatureMessage.signature,
|
|
11721
|
+
clientAuthPubKey: deviceAuthPublicKey,
|
|
11722
|
+
encryptedShares: sharesEncryptedWithWallabyPubKey,
|
|
11723
|
+
originAddress,
|
|
11862
11724
|
recipientAddress,
|
|
11863
11725
|
assetId,
|
|
11864
|
-
amount,
|
|
11865
|
-
|
|
11726
|
+
amount,
|
|
11727
|
+
reference: reference || uuid.v4(),
|
|
11728
|
+
memo,
|
|
11729
|
+
transactionType,
|
|
11730
|
+
},
|
|
11866
11731
|
});
|
|
11867
11732
|
}
|
|
11868
11733
|
else {
|
|
@@ -11935,8 +11800,8 @@ class Transactions extends Base {
|
|
|
11935
11800
|
throw new Error('No valid seed option found on this device.');
|
|
11936
11801
|
}
|
|
11937
11802
|
const payload = Object.assign({ message,
|
|
11938
|
-
|
|
11939
|
-
|
|
11803
|
+
signature,
|
|
11804
|
+
walletId, clientAuthPubKey: deviceAuthPublicKey, ownerAddress,
|
|
11940
11805
|
spenderAddress,
|
|
11941
11806
|
chainName,
|
|
11942
11807
|
assetSymbol,
|
|
@@ -12011,11 +11876,18 @@ class Transactions extends Base {
|
|
|
12011
11876
|
throw new Error('No valid seed option found on this device.');
|
|
12012
11877
|
}
|
|
12013
11878
|
const confirmPendingTransactionResponse = await this.request(TransactionsRoutes.confirmPendingTransaction, {
|
|
12014
|
-
payload:
|
|
11879
|
+
payload: {
|
|
11880
|
+
message: signatureMessage.message,
|
|
11881
|
+
signature: signatureMessage.signature,
|
|
11882
|
+
clientAuthPubKey: deviceAuthPublicKey,
|
|
11883
|
+
encryptedShares: sharesEncryptedWithWallabyPubKey,
|
|
11884
|
+
encryptedSeed: readyForTransportSeedPhrase,
|
|
11885
|
+
id,
|
|
12015
11886
|
choice,
|
|
12016
11887
|
symbol,
|
|
12017
11888
|
chainName,
|
|
12018
|
-
walletId
|
|
11889
|
+
walletId,
|
|
11890
|
+
},
|
|
12019
11891
|
});
|
|
12020
11892
|
return confirmPendingTransactionResponse;
|
|
12021
11893
|
}
|