@aurigami/sdk 1.12.0-beta2 → 1.12.0-beta3
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/sdk.cjs.development.js +28 -12
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +28 -12
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/interactors/Referral.ts +15 -7
package/dist/sdk.esm.js
CHANGED
|
@@ -5360,13 +5360,21 @@ var ReferralRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5360
5360
|
/*#__PURE__*/
|
|
5361
5361
|
function () {
|
|
5362
5362
|
var _slotsInUse = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(referralCode) {
|
|
5363
|
+
var result;
|
|
5363
5364
|
return runtime_1.wrap(function _callee7$(_context7) {
|
|
5364
5365
|
while (1) {
|
|
5365
5366
|
switch (_context7.prev = _context7.next) {
|
|
5366
5367
|
case 0:
|
|
5367
|
-
|
|
5368
|
+
_context7.next = 2;
|
|
5369
|
+
return getApi('/referral/slotsInUse', {
|
|
5370
|
+
referralCode: referralCode
|
|
5371
|
+
});
|
|
5368
5372
|
|
|
5369
|
-
case
|
|
5373
|
+
case 2:
|
|
5374
|
+
result = _context7.sent;
|
|
5375
|
+
return _context7.abrupt("return", result);
|
|
5376
|
+
|
|
5377
|
+
case 4:
|
|
5370
5378
|
case "end":
|
|
5371
5379
|
return _context7.stop();
|
|
5372
5380
|
}
|
|
@@ -5395,32 +5403,40 @@ var ReferralRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
5395
5403
|
/*#__PURE__*/
|
|
5396
5404
|
function () {
|
|
5397
5405
|
var _userReferralStatus = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(userAddr) {
|
|
5406
|
+
var result;
|
|
5398
5407
|
return runtime_1.wrap(function _callee8$(_context8) {
|
|
5399
5408
|
while (1) {
|
|
5400
5409
|
switch (_context8.prev = _context8.next) {
|
|
5401
5410
|
case 0:
|
|
5402
5411
|
_context8.next = 2;
|
|
5403
|
-
return
|
|
5412
|
+
return getApi('/referral/referralStatus', {
|
|
5413
|
+
address: userAddr
|
|
5414
|
+
});
|
|
5404
5415
|
|
|
5405
5416
|
case 2:
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
break;
|
|
5411
|
-
}
|
|
5417
|
+
result = _context8.sent;
|
|
5418
|
+
_context8.t0 = result;
|
|
5419
|
+
_context8.next = _context8.t0 === -1 ? 6 : _context8.t0 === 0 ? 7 : _context8.t0 === 1 ? 8 : 9;
|
|
5420
|
+
break;
|
|
5412
5421
|
|
|
5413
|
-
|
|
5422
|
+
case 6:
|
|
5423
|
+
return _context8.abrupt("return", 'notReferred');
|
|
5414
5424
|
|
|
5415
5425
|
case 7:
|
|
5416
|
-
return _context8.abrupt("return", '
|
|
5426
|
+
return _context8.abrupt("return", 'notQualified');
|
|
5417
5427
|
|
|
5418
5428
|
case 8:
|
|
5429
|
+
return _context8.abrupt("return", 'Qualified');
|
|
5430
|
+
|
|
5431
|
+
case 9:
|
|
5432
|
+
return _context8.abrupt("return", 'Withdrawn');
|
|
5433
|
+
|
|
5434
|
+
case 10:
|
|
5419
5435
|
case "end":
|
|
5420
5436
|
return _context8.stop();
|
|
5421
5437
|
}
|
|
5422
5438
|
}
|
|
5423
|
-
}, _callee8
|
|
5439
|
+
}, _callee8);
|
|
5424
5440
|
}));
|
|
5425
5441
|
|
|
5426
5442
|
function userReferralStatus(_x8) {
|