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