@eluvio/elv-client-js 3.2.37 → 3.2.38

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.
@@ -756,6 +756,53 @@ exports.TenantConfiguration = /*#__PURE__*/function () {
756
756
  return _ref20.apply(this, arguments);
757
757
  };
758
758
  }();
759
+ /**
760
+ * Retrieve the current exchange rate for the specified currency to USD
761
+ *
762
+ * @methodGroup Tenants
763
+ * @namedParams
764
+ * @param {string} currency - The currency for which to retrieve the USD exchange rate
765
+ */
766
+
767
+
768
+ exports.ExchangeRate = /*#__PURE__*/function () {
769
+ var _ref22 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(_ref21) {
770
+ var currency;
771
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
772
+ while (1) {
773
+ switch (_context11.prev = _context11.next) {
774
+ case 0:
775
+ currency = _ref21.currency;
776
+
777
+ if (currency) {
778
+ _context11.next = 3;
779
+ break;
780
+ }
781
+
782
+ throw Error("Eluvio Wallet Client: Invalid or missing currency in ExchangeRate");
783
+
784
+ case 3:
785
+ _context11.next = 5;
786
+ return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
787
+ path: UrlJoin("as", "xr", "ebanx", currency),
788
+ method: "GET"
789
+ }));
790
+
791
+ case 5:
792
+ return _context11.abrupt("return", _context11.sent);
793
+
794
+ case 6:
795
+ case "end":
796
+ return _context11.stop();
797
+ }
798
+ }
799
+ }, _callee11, this);
800
+ }));
801
+
802
+ return function (_x3) {
803
+ return _ref22.apply(this, arguments);
804
+ };
805
+ }();
759
806
  /* MARKETPLACE */
760
807
 
761
808
  /**
@@ -772,13 +819,13 @@ exports.TenantConfiguration = /*#__PURE__*/function () {
772
819
 
773
820
 
774
821
  exports.MarketplaceStock = /*#__PURE__*/function () {
775
- var _ref22 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(_ref21) {
822
+ var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(_ref23) {
776
823
  var marketplaceParams, tenantId, marketplaceInfo;
777
- return _regeneratorRuntime.wrap(function _callee11$(_context11) {
824
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
778
825
  while (1) {
779
- switch (_context11.prev = _context11.next) {
826
+ switch (_context12.prev = _context12.next) {
780
827
  case 0:
781
- marketplaceParams = _ref21.marketplaceParams, tenantId = _ref21.tenantId;
828
+ marketplaceParams = _ref23.marketplaceParams, tenantId = _ref23.tenantId;
782
829
 
783
830
  if (!tenantId) {
784
831
  marketplaceInfo = this.MarketplaceInfo({
@@ -788,11 +835,11 @@ exports.MarketplaceStock = /*#__PURE__*/function () {
788
835
  }
789
836
 
790
837
  if (!this.loggedIn) {
791
- _context11.next = 6;
838
+ _context12.next = 6;
792
839
  break;
793
840
  }
794
841
 
795
- _context11.next = 5;
842
+ _context12.next = 5;
796
843
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
797
844
  path: UrlJoin("as", "wlt", "nft", "info", tenantId),
798
845
  method: "GET",
@@ -802,28 +849,28 @@ exports.MarketplaceStock = /*#__PURE__*/function () {
802
849
  }));
803
850
 
804
851
  case 5:
805
- return _context11.abrupt("return", _context11.sent);
852
+ return _context12.abrupt("return", _context12.sent);
806
853
 
807
854
  case 6:
808
- _context11.next = 8;
855
+ _context12.next = 8;
809
856
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
810
857
  path: UrlJoin("as", "nft", "stock", tenantId),
811
858
  method: "GET"
812
859
  }));
813
860
 
814
861
  case 8:
815
- return _context11.abrupt("return", _context11.sent);
862
+ return _context12.abrupt("return", _context12.sent);
816
863
 
817
864
  case 9:
818
865
  case "end":
819
- return _context11.stop();
866
+ return _context12.stop();
820
867
  }
821
868
  }
822
- }, _callee11, this);
869
+ }, _callee12, this);
823
870
  }));
824
871
 
825
- return function (_x3) {
826
- return _ref22.apply(this, arguments);
872
+ return function (_x4) {
873
+ return _ref24.apply(this, arguments);
827
874
  };
828
875
  }();
829
876
  /**
@@ -841,14 +888,14 @@ exports.MarketplaceStock = /*#__PURE__*/function () {
841
888
  */
842
889
 
843
890
 
844
- exports.MarketplaceInfo = function (_ref23) {
845
- var marketplaceParams = _ref23.marketplaceParams;
891
+ exports.MarketplaceInfo = function (_ref25) {
892
+ var marketplaceParams = _ref25.marketplaceParams;
846
893
 
847
- var _ref24 = marketplaceParams || {},
848
- tenantSlug = _ref24.tenantSlug,
849
- marketplaceSlug = _ref24.marketplaceSlug,
850
- marketplaceId = _ref24.marketplaceId,
851
- marketplaceHash = _ref24.marketplaceHash;
894
+ var _ref26 = marketplaceParams || {},
895
+ tenantSlug = _ref26.tenantSlug,
896
+ marketplaceSlug = _ref26.marketplaceSlug,
897
+ marketplaceId = _ref26.marketplaceId,
898
+ marketplaceHash = _ref26.marketplaceHash;
852
899
 
853
900
  var marketplaceInfo;
854
901
 
@@ -877,24 +924,24 @@ exports.MarketplaceInfo = function (_ref23) {
877
924
 
878
925
 
879
926
  exports.MarketplaceCSS = /*#__PURE__*/function () {
880
- var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(_ref25) {
927
+ var _ref28 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(_ref27) {
881
928
  var marketplaceParams, marketplaceInfo, marketplaceHash;
882
- return _regeneratorRuntime.wrap(function _callee12$(_context12) {
929
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
883
930
  while (1) {
884
- switch (_context12.prev = _context12.next) {
931
+ switch (_context13.prev = _context13.next) {
885
932
  case 0:
886
- marketplaceParams = _ref25.marketplaceParams;
933
+ marketplaceParams = _ref27.marketplaceParams;
887
934
  marketplaceInfo = this.MarketplaceInfo({
888
935
  marketplaceParams: marketplaceParams
889
936
  });
890
937
  marketplaceHash = marketplaceInfo.marketplaceHash;
891
938
 
892
939
  if (this.cachedCSS[marketplaceHash]) {
893
- _context12.next = 7;
940
+ _context13.next = 7;
894
941
  break;
895
942
  }
896
943
 
897
- _context12.next = 6;
944
+ _context13.next = 6;
898
945
  return this.client.ContentObjectMetadata({
899
946
  versionHash: marketplaceHash,
900
947
  metadataSubtree: "public/asset_metadata/info/branding/custom_css",
@@ -903,21 +950,21 @@ exports.MarketplaceCSS = /*#__PURE__*/function () {
903
950
  });
904
951
 
905
952
  case 6:
906
- this.cachedCSS[marketplaceHash] = _context12.sent;
953
+ this.cachedCSS[marketplaceHash] = _context13.sent;
907
954
 
908
955
  case 7:
909
- return _context12.abrupt("return", this.cachedCSS[marketplaceHash] || "");
956
+ return _context13.abrupt("return", this.cachedCSS[marketplaceHash] || "");
910
957
 
911
958
  case 8:
912
959
  case "end":
913
- return _context12.stop();
960
+ return _context13.stop();
914
961
  }
915
962
  }
916
- }, _callee12, this);
963
+ }, _callee13, this);
917
964
  }));
918
965
 
919
- return function (_x4) {
920
- return _ref26.apply(this, arguments);
966
+ return function (_x5) {
967
+ return _ref28.apply(this, arguments);
921
968
  };
922
969
  }();
923
970
  /**
@@ -932,36 +979,36 @@ exports.MarketplaceCSS = /*#__PURE__*/function () {
932
979
  */
933
980
 
934
981
 
935
- exports.AvailableMarketplaces = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
936
- var _ref28,
982
+ exports.AvailableMarketplaces = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
983
+ var _ref30,
937
984
  organizeById,
938
- _ref28$forceReload,
985
+ _ref30$forceReload,
939
986
  forceReload,
940
- _args13 = arguments;
987
+ _args14 = arguments;
941
988
 
942
- return _regeneratorRuntime.wrap(function _callee13$(_context13) {
989
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
943
990
  while (1) {
944
- switch (_context13.prev = _context13.next) {
991
+ switch (_context14.prev = _context14.next) {
945
992
  case 0:
946
- _ref28 = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {}, organizeById = _ref28.organizeById, _ref28$forceReload = _ref28.forceReload, forceReload = _ref28$forceReload === void 0 ? false : _ref28$forceReload;
993
+ _ref30 = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {}, organizeById = _ref30.organizeById, _ref30$forceReload = _ref30.forceReload, forceReload = _ref30$forceReload === void 0 ? false : _ref30$forceReload;
947
994
 
948
995
  if (!forceReload) {
949
- _context13.next = 4;
996
+ _context14.next = 4;
950
997
  break;
951
998
  }
952
999
 
953
- _context13.next = 4;
1000
+ _context14.next = 4;
954
1001
  return this.LoadAvailableMarketplaces(true);
955
1002
 
956
1003
  case 4:
957
- return _context13.abrupt("return", _objectSpread({}, organizeById ? this.availableMarketplacesById : this.availableMarketplaces));
1004
+ return _context14.abrupt("return", _objectSpread({}, organizeById ? this.availableMarketplacesById : this.availableMarketplaces));
958
1005
 
959
1006
  case 5:
960
1007
  case "end":
961
- return _context13.stop();
1008
+ return _context14.stop();
962
1009
  }
963
1010
  }
964
- }, _callee13, this);
1011
+ }, _callee14, this);
965
1012
  }));
966
1013
  /**
967
1014
  * Retrieve full information about the specified marketplace
@@ -976,25 +1023,25 @@ exports.AvailableMarketplaces = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_re
976
1023
  */
977
1024
 
978
1025
  exports.Marketplace = /*#__PURE__*/function () {
979
- var _ref30 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(_ref29) {
1026
+ var _ref32 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(_ref31) {
980
1027
  var marketplaceParams;
981
- return _regeneratorRuntime.wrap(function _callee14$(_context14) {
1028
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
982
1029
  while (1) {
983
- switch (_context14.prev = _context14.next) {
1030
+ switch (_context15.prev = _context15.next) {
984
1031
  case 0:
985
- marketplaceParams = _ref29.marketplaceParams;
986
- return _context14.abrupt("return", this.LoadMarketplace(marketplaceParams));
1032
+ marketplaceParams = _ref31.marketplaceParams;
1033
+ return _context15.abrupt("return", this.LoadMarketplace(marketplaceParams));
987
1034
 
988
1035
  case 2:
989
1036
  case "end":
990
- return _context14.stop();
1037
+ return _context15.stop();
991
1038
  }
992
1039
  }
993
- }, _callee14, this);
1040
+ }, _callee15, this);
994
1041
  }));
995
1042
 
996
- return function (_x5) {
997
- return _ref30.apply(this, arguments);
1043
+ return function (_x6) {
1044
+ return _ref32.apply(this, arguments);
998
1045
  };
999
1046
  }();
1000
1047
  /* NFTS */
@@ -1011,32 +1058,32 @@ exports.Marketplace = /*#__PURE__*/function () {
1011
1058
 
1012
1059
 
1013
1060
  exports.NFTContractStats = /*#__PURE__*/function () {
1014
- var _ref32 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(_ref31) {
1061
+ var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(_ref33) {
1015
1062
  var contractAddress;
1016
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
1063
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
1017
1064
  while (1) {
1018
- switch (_context15.prev = _context15.next) {
1065
+ switch (_context16.prev = _context16.next) {
1019
1066
  case 0:
1020
- contractAddress = _ref31.contractAddress;
1021
- _context15.next = 3;
1067
+ contractAddress = _ref33.contractAddress;
1068
+ _context16.next = 3;
1022
1069
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
1023
1070
  path: UrlJoin("as", "nft", "info", contractAddress),
1024
1071
  method: "GET"
1025
1072
  }));
1026
1073
 
1027
1074
  case 3:
1028
- return _context15.abrupt("return", _context15.sent);
1075
+ return _context16.abrupt("return", _context16.sent);
1029
1076
 
1030
1077
  case 4:
1031
1078
  case "end":
1032
- return _context15.stop();
1079
+ return _context16.stop();
1033
1080
  }
1034
1081
  }
1035
- }, _callee15, this);
1082
+ }, _callee16, this);
1036
1083
  }));
1037
1084
 
1038
- return function (_x6) {
1039
- return _ref32.apply(this, arguments);
1085
+ return function (_x7) {
1086
+ return _ref34.apply(this, arguments);
1040
1087
  };
1041
1088
  }();
1042
1089
  /**
@@ -1050,27 +1097,27 @@ exports.NFTContractStats = /*#__PURE__*/function () {
1050
1097
 
1051
1098
 
1052
1099
  exports.NFT = /*#__PURE__*/function () {
1053
- var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(_ref33) {
1100
+ var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(_ref35) {
1054
1101
  var tokenId, contractAddress, nft;
1055
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
1102
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
1056
1103
  while (1) {
1057
- switch (_context16.prev = _context16.next) {
1104
+ switch (_context17.prev = _context17.next) {
1058
1105
  case 0:
1059
- tokenId = _ref33.tokenId, contractAddress = _ref33.contractAddress;
1060
- _context16.t0 = FormatNFTDetails;
1061
- _context16.next = 4;
1106
+ tokenId = _ref35.tokenId, contractAddress = _ref35.contractAddress;
1107
+ _context17.t0 = FormatNFTDetails;
1108
+ _context17.next = 4;
1062
1109
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
1063
1110
  path: UrlJoin("as", "nft", "info", contractAddress, tokenId),
1064
1111
  method: "GET"
1065
1112
  }));
1066
1113
 
1067
1114
  case 4:
1068
- _context16.t1 = _context16.sent;
1069
- nft = (0, _context16.t0)(_context16.t1);
1070
- _context16.t2 = _objectSpread;
1071
- _context16.t3 = _objectSpread;
1072
- _context16.t4 = {};
1073
- _context16.next = 11;
1115
+ _context17.t1 = _context17.sent;
1116
+ nft = (0, _context17.t0)(_context17.t1);
1117
+ _context17.t2 = _objectSpread;
1118
+ _context17.t3 = _objectSpread;
1119
+ _context17.t4 = {};
1120
+ _context17.next = 11;
1074
1121
  return this.client.ContentObjectMetadata({
1075
1122
  versionHash: nft.details.VersionHash,
1076
1123
  metadataSubtree: "public/asset_metadata/nft",
@@ -1078,39 +1125,39 @@ exports.NFT = /*#__PURE__*/function () {
1078
1125
  });
1079
1126
 
1080
1127
  case 11:
1081
- _context16.t5 = _context16.sent;
1128
+ _context17.t5 = _context17.sent;
1082
1129
 
1083
- if (_context16.t5) {
1084
- _context16.next = 14;
1130
+ if (_context17.t5) {
1131
+ _context17.next = 14;
1085
1132
  break;
1086
1133
  }
1087
1134
 
1088
- _context16.t5 = {};
1135
+ _context17.t5 = {};
1089
1136
 
1090
1137
  case 14:
1091
- _context16.t6 = _context16.t5;
1092
- _context16.t7 = (0, _context16.t3)(_context16.t4, _context16.t6);
1093
- _context16.t8 = nft.metadata || {};
1094
- nft.metadata = (0, _context16.t2)(_context16.t7, _context16.t8);
1095
- _context16.next = 20;
1138
+ _context17.t6 = _context17.t5;
1139
+ _context17.t7 = (0, _context17.t3)(_context17.t4, _context17.t6);
1140
+ _context17.t8 = nft.metadata || {};
1141
+ nft.metadata = (0, _context17.t2)(_context17.t7, _context17.t8);
1142
+ _context17.next = 20;
1096
1143
  return this.TenantConfiguration({
1097
1144
  contractAddress: contractAddress
1098
1145
  });
1099
1146
 
1100
1147
  case 20:
1101
- nft.config = _context16.sent;
1102
- return _context16.abrupt("return", FormatNFTMetadata(this, nft));
1148
+ nft.config = _context17.sent;
1149
+ return _context17.abrupt("return", FormatNFTMetadata(this, nft));
1103
1150
 
1104
1151
  case 22:
1105
1152
  case "end":
1106
- return _context16.stop();
1153
+ return _context17.stop();
1107
1154
  }
1108
1155
  }
1109
- }, _callee16, this);
1156
+ }, _callee17, this);
1110
1157
  }));
1111
1158
 
1112
- return function (_x7) {
1113
- return _ref34.apply(this, arguments);
1159
+ return function (_x8) {
1160
+ return _ref36.apply(this, arguments);
1114
1161
  };
1115
1162
  }();
1116
1163
  /**
@@ -1127,23 +1174,23 @@ exports.NFT = /*#__PURE__*/function () {
1127
1174
 
1128
1175
 
1129
1176
  exports.TransferNFT = /*#__PURE__*/function () {
1130
- var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(_ref35) {
1177
+ var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(_ref37) {
1131
1178
  var contractAddress, tokenId, targetAddress;
1132
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
1179
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
1133
1180
  while (1) {
1134
- switch (_context17.prev = _context17.next) {
1181
+ switch (_context18.prev = _context18.next) {
1135
1182
  case 0:
1136
- contractAddress = _ref35.contractAddress, tokenId = _ref35.tokenId, targetAddress = _ref35.targetAddress;
1183
+ contractAddress = _ref37.contractAddress, tokenId = _ref37.tokenId, targetAddress = _ref37.targetAddress;
1137
1184
 
1138
1185
  if (!(!targetAddress || !Utils.ValidAddress(targetAddress))) {
1139
- _context17.next = 3;
1186
+ _context18.next = 3;
1140
1187
  break;
1141
1188
  }
1142
1189
 
1143
1190
  throw Error("Eluvio Wallet Client: Invalid or missing target address in UserTransferNFT");
1144
1191
 
1145
1192
  case 3:
1146
- _context17.next = 5;
1193
+ _context18.next = 5;
1147
1194
  return this.client.authClient.MakeAuthServiceRequest({
1148
1195
  path: UrlJoin("as", "wlt", "mkt", "xfer"),
1149
1196
  method: "POST",
@@ -1158,18 +1205,18 @@ exports.TransferNFT = /*#__PURE__*/function () {
1158
1205
  });
1159
1206
 
1160
1207
  case 5:
1161
- return _context17.abrupt("return", _context17.sent);
1208
+ return _context18.abrupt("return", _context18.sent);
1162
1209
 
1163
1210
  case 6:
1164
1211
  case "end":
1165
- return _context17.stop();
1212
+ return _context18.stop();
1166
1213
  }
1167
1214
  }
1168
- }, _callee17, this);
1215
+ }, _callee18, this);
1169
1216
  }));
1170
1217
 
1171
- return function (_x8) {
1172
- return _ref36.apply(this, arguments);
1218
+ return function (_x9) {
1219
+ return _ref38.apply(this, arguments);
1173
1220
  };
1174
1221
  }();
1175
1222
  /** LISTINGS */
@@ -1186,53 +1233,53 @@ exports.TransferNFT = /*#__PURE__*/function () {
1186
1233
 
1187
1234
 
1188
1235
  exports.ListingStatus = /*#__PURE__*/function () {
1189
- var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(_ref37) {
1236
+ var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(_ref39) {
1190
1237
  var listingId;
1191
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
1238
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
1192
1239
  while (1) {
1193
- switch (_context18.prev = _context18.next) {
1240
+ switch (_context19.prev = _context19.next) {
1194
1241
  case 0:
1195
- listingId = _ref37.listingId;
1196
- _context18.prev = 1;
1197
- _context18.t0 = Utils;
1198
- _context18.next = 5;
1242
+ listingId = _ref39.listingId;
1243
+ _context19.prev = 1;
1244
+ _context19.t0 = Utils;
1245
+ _context19.next = 5;
1199
1246
  return this.client.authClient.MakeAuthServiceRequest({
1200
1247
  path: UrlJoin("as", "mkt", "status", listingId),
1201
1248
  method: "GET"
1202
1249
  });
1203
1250
 
1204
1251
  case 5:
1205
- _context18.t1 = _context18.sent;
1206
- _context18.next = 8;
1207
- return _context18.t0.ResponseToJson.call(_context18.t0, _context18.t1);
1252
+ _context19.t1 = _context19.sent;
1253
+ _context19.next = 8;
1254
+ return _context19.t0.ResponseToJson.call(_context19.t0, _context19.t1);
1208
1255
 
1209
1256
  case 8:
1210
- return _context18.abrupt("return", _context18.sent);
1257
+ return _context19.abrupt("return", _context19.sent);
1211
1258
 
1212
1259
  case 11:
1213
- _context18.prev = 11;
1214
- _context18.t2 = _context18["catch"](1);
1260
+ _context19.prev = 11;
1261
+ _context19.t2 = _context19["catch"](1);
1215
1262
 
1216
- if (!(_context18.t2.status === 404)) {
1217
- _context18.next = 15;
1263
+ if (!(_context19.t2.status === 404)) {
1264
+ _context19.next = 15;
1218
1265
  break;
1219
1266
  }
1220
1267
 
1221
- return _context18.abrupt("return");
1268
+ return _context19.abrupt("return");
1222
1269
 
1223
1270
  case 15:
1224
- throw _context18.t2;
1271
+ throw _context19.t2;
1225
1272
 
1226
1273
  case 16:
1227
1274
  case "end":
1228
- return _context18.stop();
1275
+ return _context19.stop();
1229
1276
  }
1230
1277
  }
1231
- }, _callee18, this, [[1, 11]]);
1278
+ }, _callee19, this, [[1, 11]]);
1232
1279
  }));
1233
1280
 
1234
- return function (_x9) {
1235
- return _ref38.apply(this, arguments);
1281
+ return function (_x10) {
1282
+ return _ref40.apply(this, arguments);
1236
1283
  };
1237
1284
  }();
1238
1285
  /**
@@ -1249,41 +1296,41 @@ exports.ListingStatus = /*#__PURE__*/function () {
1249
1296
 
1250
1297
 
1251
1298
  exports.Listing = /*#__PURE__*/function () {
1252
- var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(_ref39) {
1299
+ var _ref42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(_ref41) {
1253
1300
  var listingId;
1254
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
1301
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
1255
1302
  while (1) {
1256
- switch (_context19.prev = _context19.next) {
1303
+ switch (_context20.prev = _context20.next) {
1257
1304
  case 0:
1258
- listingId = _ref39.listingId;
1259
- _context19.t0 = FormatNFT;
1260
- _context19.t1 = this;
1261
- _context19.t2 = Utils;
1262
- _context19.next = 6;
1305
+ listingId = _ref41.listingId;
1306
+ _context20.t0 = FormatNFT;
1307
+ _context20.t1 = this;
1308
+ _context20.t2 = Utils;
1309
+ _context20.next = 6;
1263
1310
  return this.client.authClient.MakeAuthServiceRequest({
1264
1311
  path: UrlJoin("as", "mkt", "l", listingId),
1265
1312
  method: "GET"
1266
1313
  });
1267
1314
 
1268
1315
  case 6:
1269
- _context19.t3 = _context19.sent;
1270
- _context19.next = 9;
1271
- return _context19.t2.ResponseToJson.call(_context19.t2, _context19.t3);
1316
+ _context20.t3 = _context20.sent;
1317
+ _context20.next = 9;
1318
+ return _context20.t2.ResponseToJson.call(_context20.t2, _context20.t3);
1272
1319
 
1273
1320
  case 9:
1274
- _context19.t4 = _context19.sent;
1275
- return _context19.abrupt("return", (0, _context19.t0)(_context19.t1, _context19.t4));
1321
+ _context20.t4 = _context20.sent;
1322
+ return _context20.abrupt("return", (0, _context20.t0)(_context20.t1, _context20.t4));
1276
1323
 
1277
1324
  case 11:
1278
1325
  case "end":
1279
- return _context19.stop();
1326
+ return _context20.stop();
1280
1327
  }
1281
1328
  }
1282
- }, _callee19, this);
1329
+ }, _callee20, this);
1283
1330
  }));
1284
1331
 
1285
- return function (_x10) {
1286
- return _ref40.apply(this, arguments);
1332
+ return function (_x11) {
1333
+ return _ref42.apply(this, arguments);
1287
1334
  };
1288
1335
  }();
1289
1336
  /**
@@ -1321,22 +1368,22 @@ exports.Listing = /*#__PURE__*/function () {
1321
1368
  */
1322
1369
 
1323
1370
 
1324
- exports.Listings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20() {
1325
- var _args20 = arguments;
1326
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
1371
+ exports.Listings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21() {
1372
+ var _args21 = arguments;
1373
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
1327
1374
  while (1) {
1328
- switch (_context20.prev = _context20.next) {
1375
+ switch (_context21.prev = _context21.next) {
1329
1376
  case 0:
1330
- return _context20.abrupt("return", this.FilteredQuery(_objectSpread({
1377
+ return _context21.abrupt("return", this.FilteredQuery(_objectSpread({
1331
1378
  mode: "listings"
1332
- }, _args20[0] || {})));
1379
+ }, _args21[0] || {})));
1333
1380
 
1334
1381
  case 1:
1335
1382
  case "end":
1336
- return _context20.stop();
1383
+ return _context21.stop();
1337
1384
  }
1338
1385
  }
1339
- }, _callee20, this);
1386
+ }, _callee21, this);
1340
1387
  }));
1341
1388
  /**
1342
1389
  * Retrieve stats for listings matching the specified parameters.
@@ -1371,22 +1418,22 @@ exports.Listings = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRunt
1371
1418
  * @returns {Promise<Object>} - Statistics about listings. All prices in USD.
1372
1419
  */
1373
1420
 
1374
- exports.ListingStats = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21() {
1375
- var _args21 = arguments;
1376
- return _regeneratorRuntime.wrap(function _callee21$(_context21) {
1421
+ exports.ListingStats = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22() {
1422
+ var _args22 = arguments;
1423
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
1377
1424
  while (1) {
1378
- switch (_context21.prev = _context21.next) {
1425
+ switch (_context22.prev = _context22.next) {
1379
1426
  case 0:
1380
- return _context21.abrupt("return", this.FilteredQuery(_objectSpread({
1427
+ return _context22.abrupt("return", this.FilteredQuery(_objectSpread({
1381
1428
  mode: "listing-stats"
1382
- }, _args21[0] || {})));
1429
+ }, _args22[0] || {})));
1383
1430
 
1384
1431
  case 1:
1385
1432
  case "end":
1386
- return _context21.stop();
1433
+ return _context22.stop();
1387
1434
  }
1388
1435
  }
1389
- }, _callee21, this);
1436
+ }, _callee22, this);
1390
1437
  }));
1391
1438
  /**
1392
1439
  * Retrieve sales matching the specified parameters.
@@ -1420,22 +1467,22 @@ exports.ListingStats = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regenerator
1420
1467
  * @returns {Promise<Object>} - Results of the query and pagination info
1421
1468
  */
1422
1469
 
1423
- exports.Sales = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22() {
1424
- var _args22 = arguments;
1425
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
1470
+ exports.Sales = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23() {
1471
+ var _args23 = arguments;
1472
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
1426
1473
  while (1) {
1427
- switch (_context22.prev = _context22.next) {
1474
+ switch (_context23.prev = _context23.next) {
1428
1475
  case 0:
1429
- return _context22.abrupt("return", this.FilteredQuery(_objectSpread({
1476
+ return _context23.abrupt("return", this.FilteredQuery(_objectSpread({
1430
1477
  mode: "sales"
1431
- }, _args22[0] || {})));
1478
+ }, _args23[0] || {})));
1432
1479
 
1433
1480
  case 1:
1434
1481
  case "end":
1435
- return _context22.stop();
1482
+ return _context23.stop();
1436
1483
  }
1437
1484
  }
1438
- }, _callee22, this);
1485
+ }, _callee23, this);
1439
1486
  }));
1440
1487
  /**
1441
1488
  * Retrieve sales and transfers matching the specified parameters.
@@ -1469,22 +1516,22 @@ exports.Sales = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
1469
1516
  * @returns {Promise<Object>} - Results of the query and pagination info
1470
1517
  */
1471
1518
 
1472
- exports.Transfers = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23() {
1473
- var _args23 = arguments;
1474
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
1519
+ exports.Transfers = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24() {
1520
+ var _args24 = arguments;
1521
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
1475
1522
  while (1) {
1476
- switch (_context23.prev = _context23.next) {
1523
+ switch (_context24.prev = _context24.next) {
1477
1524
  case 0:
1478
- return _context23.abrupt("return", this.FilteredQuery(_objectSpread({
1525
+ return _context24.abrupt("return", this.FilteredQuery(_objectSpread({
1479
1526
  mode: "transfers"
1480
- }, _args23[0] || {})));
1527
+ }, _args24[0] || {})));
1481
1528
 
1482
1529
  case 1:
1483
1530
  case "end":
1484
- return _context23.stop();
1531
+ return _context24.stop();
1485
1532
  }
1486
1533
  }
1487
- }, _callee23, this);
1534
+ }, _callee24, this);
1488
1535
  }));
1489
1536
  /**
1490
1537
  * Retrieve stats for listings matching the specified parameters.
@@ -1518,22 +1565,22 @@ exports.Transfers = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRun
1518
1565
  * @returns {Promise<Object>} - Statistics about sales. All prices in USD.
1519
1566
  */
1520
1567
 
1521
- exports.SalesStats = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24() {
1522
- var _args24 = arguments;
1523
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
1568
+ exports.SalesStats = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25() {
1569
+ var _args25 = arguments;
1570
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
1524
1571
  while (1) {
1525
- switch (_context24.prev = _context24.next) {
1572
+ switch (_context25.prev = _context25.next) {
1526
1573
  case 0:
1527
- return _context24.abrupt("return", this.FilteredQuery(_objectSpread({
1574
+ return _context25.abrupt("return", this.FilteredQuery(_objectSpread({
1528
1575
  mode: "sales-stats"
1529
- }, _args24[0] || {})));
1576
+ }, _args25[0] || {})));
1530
1577
 
1531
1578
  case 1:
1532
1579
  case "end":
1533
- return _context24.stop();
1580
+ return _context25.stop();
1534
1581
  }
1535
1582
  }
1536
- }, _callee24, this);
1583
+ }, _callee25, this);
1537
1584
  }));
1538
1585
  /**
1539
1586
  * Get the leaderboard rankings for the specified marketplace. If user address is specified, will return the ranking for the specified user (if present)
@@ -1549,19 +1596,19 @@ exports.SalesStats = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRu
1549
1596
  */
1550
1597
 
1551
1598
  exports.Leaderboard = /*#__PURE__*/function () {
1552
- var _ref47 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(_ref46) {
1599
+ var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(_ref48) {
1553
1600
  var userAddress,
1554
1601
  marketplaceParams,
1555
1602
  params,
1556
- _args25 = arguments;
1557
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
1603
+ _args26 = arguments;
1604
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
1558
1605
  while (1) {
1559
- switch (_context25.prev = _context25.next) {
1606
+ switch (_context26.prev = _context26.next) {
1560
1607
  case 0:
1561
- userAddress = _ref46.userAddress, marketplaceParams = _ref46.marketplaceParams;
1608
+ userAddress = _ref48.userAddress, marketplaceParams = _ref48.marketplaceParams;
1562
1609
 
1563
1610
  if (!userAddress) {
1564
- _context25.next = 20;
1611
+ _context26.next = 20;
1565
1612
  break;
1566
1613
  }
1567
1614
 
@@ -1570,24 +1617,24 @@ exports.Leaderboard = /*#__PURE__*/function () {
1570
1617
  };
1571
1618
 
1572
1619
  if (!marketplaceParams) {
1573
- _context25.next = 10;
1620
+ _context26.next = 10;
1574
1621
  break;
1575
1622
  }
1576
1623
 
1577
- _context25.t0 = "tenant:eq:";
1578
- _context25.next = 7;
1624
+ _context26.t0 = "tenant:eq:";
1625
+ _context26.next = 7;
1579
1626
  return this.MarketplaceInfo({
1580
1627
  marketplaceParams: marketplaceParams
1581
1628
  });
1582
1629
 
1583
1630
  case 7:
1584
- _context25.t1 = _context25.sent.tenantId;
1585
- _context25.t2 = _context25.t0.concat.call(_context25.t0, _context25.t1);
1586
- params.filter = [_context25.t2];
1631
+ _context26.t1 = _context26.sent.tenantId;
1632
+ _context26.t2 = _context26.t0.concat.call(_context26.t0, _context26.t1);
1633
+ params.filter = [_context26.t2];
1587
1634
 
1588
1635
  case 10:
1589
- _context25.t4 = Utils;
1590
- _context25.next = 13;
1636
+ _context26.t4 = Utils;
1637
+ _context26.next = 13;
1591
1638
  return this.client.authClient.MakeAuthServiceRequest({
1592
1639
  path: UrlJoin("as", "wlt", "ranks"),
1593
1640
  method: "GET",
@@ -1595,38 +1642,38 @@ exports.Leaderboard = /*#__PURE__*/function () {
1595
1642
  });
1596
1643
 
1597
1644
  case 13:
1598
- _context25.t5 = _context25.sent;
1599
- _context25.next = 16;
1600
- return _context25.t4.ResponseToJson.call(_context25.t4, _context25.t5);
1645
+ _context26.t5 = _context26.sent;
1646
+ _context26.next = 16;
1647
+ return _context26.t4.ResponseToJson.call(_context26.t4, _context26.t5);
1601
1648
 
1602
1649
  case 16:
1603
- _context25.t3 = _context25.sent;
1650
+ _context26.t3 = _context26.sent;
1604
1651
 
1605
- if (_context25.t3) {
1606
- _context25.next = 19;
1652
+ if (_context26.t3) {
1653
+ _context26.next = 19;
1607
1654
  break;
1608
1655
  }
1609
1656
 
1610
- _context25.t3 = [];
1657
+ _context26.t3 = [];
1611
1658
 
1612
1659
  case 19:
1613
- return _context25.abrupt("return", _context25.t3[0]);
1660
+ return _context26.abrupt("return", _context26.t3[0]);
1614
1661
 
1615
1662
  case 20:
1616
- return _context25.abrupt("return", this.FilteredQuery(_objectSpread({
1663
+ return _context26.abrupt("return", this.FilteredQuery(_objectSpread({
1617
1664
  mode: "leaderboard"
1618
- }, _args25[0] || {})));
1665
+ }, _args26[0] || {})));
1619
1666
 
1620
1667
  case 21:
1621
1668
  case "end":
1622
- return _context25.stop();
1669
+ return _context26.stop();
1623
1670
  }
1624
1671
  }
1625
- }, _callee25, this);
1672
+ }, _callee26, this);
1626
1673
  }));
1627
1674
 
1628
- return function (_x11) {
1629
- return _ref47.apply(this, arguments);
1675
+ return function (_x12) {
1676
+ return _ref49.apply(this, arguments);
1630
1677
  };
1631
1678
  }();
1632
1679
  /**
@@ -1646,22 +1693,22 @@ exports.Leaderboard = /*#__PURE__*/function () {
1646
1693
 
1647
1694
 
1648
1695
  exports.CreateListing = /*#__PURE__*/function () {
1649
- var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(_ref48) {
1696
+ var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(_ref50) {
1650
1697
  var contractAddress, tokenId, price, listingId;
1651
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
1698
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
1652
1699
  while (1) {
1653
- switch (_context26.prev = _context26.next) {
1700
+ switch (_context27.prev = _context27.next) {
1654
1701
  case 0:
1655
- contractAddress = _ref48.contractAddress, tokenId = _ref48.tokenId, price = _ref48.price, listingId = _ref48.listingId;
1702
+ contractAddress = _ref50.contractAddress, tokenId = _ref50.tokenId, price = _ref50.price, listingId = _ref50.listingId;
1656
1703
  contractAddress = Utils.FormatAddress(contractAddress);
1657
1704
 
1658
1705
  if (!listingId) {
1659
- _context26.next = 12;
1706
+ _context27.next = 12;
1660
1707
  break;
1661
1708
  }
1662
1709
 
1663
- _context26.t0 = Utils;
1664
- _context26.next = 6;
1710
+ _context27.t0 = Utils;
1711
+ _context27.next = 6;
1665
1712
  return this.client.authClient.MakeAuthServiceRequest({
1666
1713
  path: UrlJoin("as", "wlt", "mkt"),
1667
1714
  method: "PUT",
@@ -1675,16 +1722,16 @@ exports.CreateListing = /*#__PURE__*/function () {
1675
1722
  });
1676
1723
 
1677
1724
  case 6:
1678
- _context26.t1 = _context26.sent;
1679
- _context26.next = 9;
1680
- return _context26.t0.ResponseToFormat.call(_context26.t0, "text", _context26.t1);
1725
+ _context27.t1 = _context27.sent;
1726
+ _context27.next = 9;
1727
+ return _context27.t0.ResponseToFormat.call(_context27.t0, "text", _context27.t1);
1681
1728
 
1682
1729
  case 9:
1683
- return _context26.abrupt("return", _context26.sent);
1730
+ return _context27.abrupt("return", _context27.sent);
1684
1731
 
1685
1732
  case 12:
1686
- _context26.t2 = Utils;
1687
- _context26.next = 15;
1733
+ _context27.t2 = Utils;
1734
+ _context27.next = 15;
1688
1735
  return this.client.authClient.MakeAuthServiceRequest({
1689
1736
  path: UrlJoin("as", "wlt", "mkt"),
1690
1737
  method: "POST",
@@ -1699,23 +1746,23 @@ exports.CreateListing = /*#__PURE__*/function () {
1699
1746
  });
1700
1747
 
1701
1748
  case 15:
1702
- _context26.t3 = _context26.sent;
1703
- _context26.next = 18;
1704
- return _context26.t2.ResponseToJson.call(_context26.t2, _context26.t3);
1749
+ _context27.t3 = _context27.sent;
1750
+ _context27.next = 18;
1751
+ return _context27.t2.ResponseToJson.call(_context27.t2, _context27.t3);
1705
1752
 
1706
1753
  case 18:
1707
- return _context26.abrupt("return", _context26.sent);
1754
+ return _context27.abrupt("return", _context27.sent);
1708
1755
 
1709
1756
  case 19:
1710
1757
  case "end":
1711
- return _context26.stop();
1758
+ return _context27.stop();
1712
1759
  }
1713
1760
  }
1714
- }, _callee26, this);
1761
+ }, _callee27, this);
1715
1762
  }));
1716
1763
 
1717
- return function (_x12) {
1718
- return _ref49.apply(this, arguments);
1764
+ return function (_x13) {
1765
+ return _ref51.apply(this, arguments);
1719
1766
  };
1720
1767
  }();
1721
1768
  /**
@@ -1730,14 +1777,14 @@ exports.CreateListing = /*#__PURE__*/function () {
1730
1777
 
1731
1778
 
1732
1779
  exports.RemoveListing = /*#__PURE__*/function () {
1733
- var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(_ref50) {
1780
+ var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(_ref52) {
1734
1781
  var listingId;
1735
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
1782
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
1736
1783
  while (1) {
1737
- switch (_context27.prev = _context27.next) {
1784
+ switch (_context28.prev = _context28.next) {
1738
1785
  case 0:
1739
- listingId = _ref50.listingId;
1740
- _context27.next = 3;
1786
+ listingId = _ref52.listingId;
1787
+ _context28.next = 3;
1741
1788
  return this.client.authClient.MakeAuthServiceRequest({
1742
1789
  path: UrlJoin("as", "wlt", "mkt", listingId),
1743
1790
  method: "DELETE",
@@ -1748,14 +1795,14 @@ exports.RemoveListing = /*#__PURE__*/function () {
1748
1795
 
1749
1796
  case 3:
1750
1797
  case "end":
1751
- return _context27.stop();
1798
+ return _context28.stop();
1752
1799
  }
1753
1800
  }
1754
- }, _callee27, this);
1801
+ }, _callee28, this);
1755
1802
  }));
1756
1803
 
1757
- return function (_x13) {
1758
- return _ref51.apply(this, arguments);
1804
+ return function (_x14) {
1805
+ return _ref53.apply(this, arguments);
1759
1806
  };
1760
1807
  }();
1761
1808
  /**
@@ -1772,30 +1819,30 @@ exports.RemoveListing = /*#__PURE__*/function () {
1772
1819
 
1773
1820
 
1774
1821
  exports.SalesNames = /*#__PURE__*/function () {
1775
- var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(_ref52) {
1822
+ var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(_ref54) {
1776
1823
  var marketplaceParams, tenantId;
1777
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
1824
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
1778
1825
  while (1) {
1779
- switch (_context28.prev = _context28.next) {
1826
+ switch (_context29.prev = _context29.next) {
1780
1827
  case 0:
1781
- marketplaceParams = _ref52.marketplaceParams;
1828
+ marketplaceParams = _ref54.marketplaceParams;
1782
1829
 
1783
1830
  if (!marketplaceParams) {
1784
- _context28.next = 5;
1831
+ _context29.next = 5;
1785
1832
  break;
1786
1833
  }
1787
1834
 
1788
- _context28.next = 4;
1835
+ _context29.next = 4;
1789
1836
  return this.MarketplaceInfo({
1790
1837
  marketplaceParams: marketplaceParams
1791
1838
  });
1792
1839
 
1793
1840
  case 4:
1794
- tenantId = _context28.sent.tenantId;
1841
+ tenantId = _context29.sent.tenantId;
1795
1842
 
1796
1843
  case 5:
1797
- _context28.t0 = Utils;
1798
- _context28.next = 8;
1844
+ _context29.t0 = Utils;
1845
+ _context29.next = 8;
1799
1846
  return this.client.authClient.MakeAuthServiceRequest({
1800
1847
  path: UrlJoin("as", "mkt", "names", "hst"),
1801
1848
  method: "GET",
@@ -1805,23 +1852,23 @@ exports.SalesNames = /*#__PURE__*/function () {
1805
1852
  });
1806
1853
 
1807
1854
  case 8:
1808
- _context28.t1 = _context28.sent;
1809
- _context28.next = 11;
1810
- return _context28.t0.ResponseToJson.call(_context28.t0, _context28.t1);
1855
+ _context29.t1 = _context29.sent;
1856
+ _context29.next = 11;
1857
+ return _context29.t0.ResponseToJson.call(_context29.t0, _context29.t1);
1811
1858
 
1812
1859
  case 11:
1813
- return _context28.abrupt("return", _context28.sent);
1860
+ return _context29.abrupt("return", _context29.sent);
1814
1861
 
1815
1862
  case 12:
1816
1863
  case "end":
1817
- return _context28.stop();
1864
+ return _context29.stop();
1818
1865
  }
1819
1866
  }
1820
- }, _callee28, this);
1867
+ }, _callee29, this);
1821
1868
  }));
1822
1869
 
1823
- return function (_x14) {
1824
- return _ref53.apply(this, arguments);
1870
+ return function (_x15) {
1871
+ return _ref55.apply(this, arguments);
1825
1872
  };
1826
1873
  }();
1827
1874
  /**
@@ -1838,30 +1885,30 @@ exports.SalesNames = /*#__PURE__*/function () {
1838
1885
 
1839
1886
 
1840
1887
  exports.ListingNames = /*#__PURE__*/function () {
1841
- var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(_ref54) {
1888
+ var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(_ref56) {
1842
1889
  var marketplaceParams, tenantId;
1843
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
1890
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
1844
1891
  while (1) {
1845
- switch (_context29.prev = _context29.next) {
1892
+ switch (_context30.prev = _context30.next) {
1846
1893
  case 0:
1847
- marketplaceParams = _ref54.marketplaceParams;
1894
+ marketplaceParams = _ref56.marketplaceParams;
1848
1895
 
1849
1896
  if (!marketplaceParams) {
1850
- _context29.next = 5;
1897
+ _context30.next = 5;
1851
1898
  break;
1852
1899
  }
1853
1900
 
1854
- _context29.next = 4;
1901
+ _context30.next = 4;
1855
1902
  return this.MarketplaceInfo({
1856
1903
  marketplaceParams: marketplaceParams
1857
1904
  });
1858
1905
 
1859
1906
  case 4:
1860
- tenantId = _context29.sent.tenantId;
1907
+ tenantId = _context30.sent.tenantId;
1861
1908
 
1862
1909
  case 5:
1863
- _context29.t0 = Utils;
1864
- _context29.next = 8;
1910
+ _context30.t0 = Utils;
1911
+ _context30.next = 8;
1865
1912
  return this.client.authClient.MakeAuthServiceRequest({
1866
1913
  path: UrlJoin("as", "mkt", "names"),
1867
1914
  method: "GET",
@@ -1871,23 +1918,23 @@ exports.ListingNames = /*#__PURE__*/function () {
1871
1918
  });
1872
1919
 
1873
1920
  case 8:
1874
- _context29.t1 = _context29.sent;
1875
- _context29.next = 11;
1876
- return _context29.t0.ResponseToJson.call(_context29.t0, _context29.t1);
1921
+ _context30.t1 = _context30.sent;
1922
+ _context30.next = 11;
1923
+ return _context30.t0.ResponseToJson.call(_context30.t0, _context30.t1);
1877
1924
 
1878
1925
  case 11:
1879
- return _context29.abrupt("return", _context29.sent);
1926
+ return _context30.abrupt("return", _context30.sent);
1880
1927
 
1881
1928
  case 12:
1882
1929
  case "end":
1883
- return _context29.stop();
1930
+ return _context30.stop();
1884
1931
  }
1885
1932
  }
1886
- }, _callee29, this);
1933
+ }, _callee30, this);
1887
1934
  }));
1888
1935
 
1889
- return function (_x15) {
1890
- return _ref55.apply(this, arguments);
1936
+ return function (_x16) {
1937
+ return _ref57.apply(this, arguments);
1891
1938
  };
1892
1939
  }();
1893
1940
  /**
@@ -1902,15 +1949,15 @@ exports.ListingNames = /*#__PURE__*/function () {
1902
1949
 
1903
1950
 
1904
1951
  exports.ListingEditionNames = /*#__PURE__*/function () {
1905
- var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(_ref56) {
1952
+ var _ref59 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(_ref58) {
1906
1953
  var displayName;
1907
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
1954
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
1908
1955
  while (1) {
1909
- switch (_context30.prev = _context30.next) {
1956
+ switch (_context31.prev = _context31.next) {
1910
1957
  case 0:
1911
- displayName = _ref56.displayName;
1912
- _context30.t0 = Utils;
1913
- _context30.next = 4;
1958
+ displayName = _ref58.displayName;
1959
+ _context31.t0 = Utils;
1960
+ _context31.next = 4;
1914
1961
  return this.client.authClient.MakeAuthServiceRequest({
1915
1962
  path: UrlJoin("as", "mkt", "editions"),
1916
1963
  queryParams: {
@@ -1920,23 +1967,23 @@ exports.ListingEditionNames = /*#__PURE__*/function () {
1920
1967
  });
1921
1968
 
1922
1969
  case 4:
1923
- _context30.t1 = _context30.sent;
1924
- _context30.next = 7;
1925
- return _context30.t0.ResponseToJson.call(_context30.t0, _context30.t1);
1970
+ _context31.t1 = _context31.sent;
1971
+ _context31.next = 7;
1972
+ return _context31.t0.ResponseToJson.call(_context31.t0, _context31.t1);
1926
1973
 
1927
1974
  case 7:
1928
- return _context30.abrupt("return", _context30.sent);
1975
+ return _context31.abrupt("return", _context31.sent);
1929
1976
 
1930
1977
  case 8:
1931
1978
  case "end":
1932
- return _context30.stop();
1979
+ return _context31.stop();
1933
1980
  }
1934
1981
  }
1935
- }, _callee30, this);
1982
+ }, _callee31, this);
1936
1983
  }));
1937
1984
 
1938
- return function (_x16) {
1939
- return _ref57.apply(this, arguments);
1985
+ return function (_x17) {
1986
+ return _ref59.apply(this, arguments);
1940
1987
  };
1941
1988
  }();
1942
1989
  /**
@@ -1953,46 +2000,46 @@ exports.ListingEditionNames = /*#__PURE__*/function () {
1953
2000
  */
1954
2001
 
1955
2002
 
1956
- exports.ListingAttributes = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
1957
- var _ref59,
2003
+ exports.ListingAttributes = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
2004
+ var _ref61,
1958
2005
  marketplaceParams,
1959
2006
  displayName,
1960
2007
  filters,
1961
2008
  attributes,
1962
- _args31 = arguments;
2009
+ _args32 = arguments;
1963
2010
 
1964
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
2011
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
1965
2012
  while (1) {
1966
- switch (_context31.prev = _context31.next) {
2013
+ switch (_context32.prev = _context32.next) {
1967
2014
  case 0:
1968
- _ref59 = _args31.length > 0 && _args31[0] !== undefined ? _args31[0] : {}, marketplaceParams = _ref59.marketplaceParams, displayName = _ref59.displayName;
2015
+ _ref61 = _args32.length > 0 && _args32[0] !== undefined ? _args32[0] : {}, marketplaceParams = _ref61.marketplaceParams, displayName = _ref61.displayName;
1969
2016
  filters = [];
1970
2017
 
1971
2018
  if (!marketplaceParams) {
1972
- _context31.next = 10;
2019
+ _context32.next = 10;
1973
2020
  break;
1974
2021
  }
1975
2022
 
1976
- _context31.t0 = filters;
1977
- _context31.t1 = "tenant:eq:";
1978
- _context31.next = 7;
2023
+ _context32.t0 = filters;
2024
+ _context32.t1 = "tenant:eq:";
2025
+ _context32.next = 7;
1979
2026
  return this.MarketplaceInfo({
1980
2027
  marketplaceParams: marketplaceParams
1981
2028
  });
1982
2029
 
1983
2030
  case 7:
1984
- _context31.t2 = _context31.sent.tenantId;
1985
- _context31.t3 = _context31.t1.concat.call(_context31.t1, _context31.t2);
2031
+ _context32.t2 = _context32.sent.tenantId;
2032
+ _context32.t3 = _context32.t1.concat.call(_context32.t1, _context32.t2);
1986
2033
 
1987
- _context31.t0.push.call(_context31.t0, _context31.t3);
2034
+ _context32.t0.push.call(_context32.t0, _context32.t3);
1988
2035
 
1989
2036
  case 10:
1990
2037
  if (displayName) {
1991
2038
  filters.push("nft/display_name:eq:".concat(displayName));
1992
2039
  }
1993
2040
 
1994
- _context31.t4 = Utils;
1995
- _context31.next = 14;
2041
+ _context32.t4 = Utils;
2042
+ _context32.next = 14;
1996
2043
  return this.client.authClient.MakeAuthServiceRequest({
1997
2044
  path: UrlJoin("as", "mkt", "attributes"),
1998
2045
  method: "GET",
@@ -2002,30 +2049,30 @@ exports.ListingAttributes = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regene
2002
2049
  });
2003
2050
 
2004
2051
  case 14:
2005
- _context31.t5 = _context31.sent;
2006
- _context31.next = 17;
2007
- return _context31.t4.ResponseToJson.call(_context31.t4, _context31.t5);
2052
+ _context32.t5 = _context32.sent;
2053
+ _context32.next = 17;
2054
+ return _context32.t4.ResponseToJson.call(_context32.t4, _context32.t5);
2008
2055
 
2009
2056
  case 17:
2010
- attributes = _context31.sent;
2011
- return _context31.abrupt("return", attributes.map(function (_ref60) {
2012
- var trait_type = _ref60.trait_type,
2013
- values = _ref60.values;
2057
+ attributes = _context32.sent;
2058
+ return _context32.abrupt("return", attributes.map(function (_ref62) {
2059
+ var trait_type = _ref62.trait_type,
2060
+ values = _ref62.values;
2014
2061
  return {
2015
2062
  name: trait_type,
2016
2063
  values: values
2017
2064
  };
2018
- }).filter(function (_ref61) {
2019
- var name = _ref61.name;
2065
+ }).filter(function (_ref63) {
2066
+ var name = _ref63.name;
2020
2067
  return !["Content Fabric Hash", "Total Minted Supply", "Creator"].includes(name);
2021
2068
  }));
2022
2069
 
2023
2070
  case 19:
2024
2071
  case "end":
2025
- return _context31.stop();
2072
+ return _context32.stop();
2026
2073
  }
2027
2074
  }
2028
- }, _callee31, this);
2075
+ }, _callee32, this);
2029
2076
  }));
2030
2077
  /* PURCHASE / CLAIM */
2031
2078
 
@@ -2042,21 +2089,21 @@ exports.ListingAttributes = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regene
2042
2089
  */
2043
2090
 
2044
2091
  exports.ClaimItem = /*#__PURE__*/function () {
2045
- var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(_ref62) {
2092
+ var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(_ref64) {
2046
2093
  var marketplaceParams, sku, email, marketplaceInfo;
2047
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
2094
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
2048
2095
  while (1) {
2049
- switch (_context32.prev = _context32.next) {
2096
+ switch (_context33.prev = _context33.next) {
2050
2097
  case 0:
2051
- marketplaceParams = _ref62.marketplaceParams, sku = _ref62.sku, email = _ref62.email;
2052
- _context32.next = 3;
2098
+ marketplaceParams = _ref64.marketplaceParams, sku = _ref64.sku, email = _ref64.email;
2099
+ _context33.next = 3;
2053
2100
  return this.MarketplaceInfo({
2054
2101
  marketplaceParams: marketplaceParams
2055
2102
  });
2056
2103
 
2057
2104
  case 3:
2058
- marketplaceInfo = _context32.sent;
2059
- _context32.next = 6;
2105
+ marketplaceInfo = _context33.sent;
2106
+ _context33.next = 6;
2060
2107
  return this.client.authClient.MakeAuthServiceRequest({
2061
2108
  method: "POST",
2062
2109
  path: UrlJoin("as", "wlt", "act", marketplaceInfo.tenant_id),
@@ -2073,14 +2120,14 @@ exports.ClaimItem = /*#__PURE__*/function () {
2073
2120
 
2074
2121
  case 6:
2075
2122
  case "end":
2076
- return _context32.stop();
2123
+ return _context33.stop();
2077
2124
  }
2078
2125
  }
2079
- }, _callee32, this);
2126
+ }, _callee33, this);
2080
2127
  }));
2081
2128
 
2082
- return function (_x17) {
2083
- return _ref63.apply(this, arguments);
2129
+ return function (_x18) {
2130
+ return _ref65.apply(this, arguments);
2084
2131
  };
2085
2132
  }();
2086
2133
  /* MINTING STATUS */
@@ -2098,61 +2145,61 @@ exports.ClaimItem = /*#__PURE__*/function () {
2098
2145
 
2099
2146
 
2100
2147
  exports.ListingPurchaseStatus = /*#__PURE__*/function () {
2101
- var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(_ref64) {
2148
+ var _ref67 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(_ref66) {
2102
2149
  var listingId, confirmationId, listingStatus, statuses;
2103
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
2150
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
2104
2151
  while (1) {
2105
- switch (_context33.prev = _context33.next) {
2152
+ switch (_context34.prev = _context34.next) {
2106
2153
  case 0:
2107
- listingId = _ref64.listingId, confirmationId = _ref64.confirmationId;
2108
- _context33.prev = 1;
2109
- _context33.next = 4;
2154
+ listingId = _ref66.listingId, confirmationId = _ref66.confirmationId;
2155
+ _context34.prev = 1;
2156
+ _context34.next = 4;
2110
2157
  return this.ListingStatus({
2111
2158
  listingId: listingId
2112
2159
  });
2113
2160
 
2114
2161
  case 4:
2115
- listingStatus = _context33.sent;
2162
+ listingStatus = _context34.sent;
2116
2163
 
2117
2164
  if (listingStatus) {
2118
- _context33.next = 7;
2165
+ _context34.next = 7;
2119
2166
  break;
2120
2167
  }
2121
2168
 
2122
2169
  throw Error("Unable to find info for listing " + listingId);
2123
2170
 
2124
2171
  case 7:
2125
- _context33.next = 9;
2172
+ _context34.next = 9;
2126
2173
  return this.MintingStatus({
2127
2174
  tenantId: listingStatus.tenant
2128
2175
  });
2129
2176
 
2130
2177
  case 9:
2131
- statuses = _context33.sent;
2132
- return _context33.abrupt("return", statuses.find(function (status) {
2178
+ statuses = _context34.sent;
2179
+ return _context34.abrupt("return", statuses.find(function (status) {
2133
2180
  return status.op === "nft-transfer" && status.extra && status.extra[0] === confirmationId;
2134
2181
  }) || {
2135
2182
  status: "none"
2136
2183
  });
2137
2184
 
2138
2185
  case 13:
2139
- _context33.prev = 13;
2140
- _context33.t0 = _context33["catch"](1);
2141
- this.Log(_context33.t0, true);
2142
- return _context33.abrupt("return", {
2186
+ _context34.prev = 13;
2187
+ _context34.t0 = _context34["catch"](1);
2188
+ this.Log(_context34.t0, true);
2189
+ return _context34.abrupt("return", {
2143
2190
  status: "unknown"
2144
2191
  });
2145
2192
 
2146
2193
  case 17:
2147
2194
  case "end":
2148
- return _context33.stop();
2195
+ return _context34.stop();
2149
2196
  }
2150
2197
  }
2151
- }, _callee33, this, [[1, 13]]);
2198
+ }, _callee34, this, [[1, 13]]);
2152
2199
  }));
2153
2200
 
2154
- return function (_x18) {
2155
- return _ref65.apply(this, arguments);
2201
+ return function (_x19) {
2202
+ return _ref67.apply(this, arguments);
2156
2203
  };
2157
2204
  }();
2158
2205
  /**
@@ -2168,52 +2215,52 @@ exports.ListingPurchaseStatus = /*#__PURE__*/function () {
2168
2215
 
2169
2216
 
2170
2217
  exports.PurchaseStatus = /*#__PURE__*/function () {
2171
- var _ref67 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(_ref66) {
2218
+ var _ref69 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(_ref68) {
2172
2219
  var marketplaceParams, confirmationId, marketplaceInfo, statuses;
2173
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
2220
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
2174
2221
  while (1) {
2175
- switch (_context34.prev = _context34.next) {
2222
+ switch (_context35.prev = _context35.next) {
2176
2223
  case 0:
2177
- marketplaceParams = _ref66.marketplaceParams, confirmationId = _ref66.confirmationId;
2178
- _context34.prev = 1;
2179
- _context34.next = 4;
2224
+ marketplaceParams = _ref68.marketplaceParams, confirmationId = _ref68.confirmationId;
2225
+ _context35.prev = 1;
2226
+ _context35.next = 4;
2180
2227
  return this.MarketplaceInfo({
2181
2228
  marketplaceParams: marketplaceParams
2182
2229
  });
2183
2230
 
2184
2231
  case 4:
2185
- marketplaceInfo = _context34.sent;
2186
- _context34.next = 7;
2232
+ marketplaceInfo = _context35.sent;
2233
+ _context35.next = 7;
2187
2234
  return this.MintingStatus({
2188
2235
  tenantId: marketplaceInfo.tenant_id
2189
2236
  });
2190
2237
 
2191
2238
  case 7:
2192
- statuses = _context34.sent;
2193
- return _context34.abrupt("return", statuses.find(function (status) {
2239
+ statuses = _context35.sent;
2240
+ return _context35.abrupt("return", statuses.find(function (status) {
2194
2241
  return status.op === "nft-buy" && status.confirmationId === confirmationId;
2195
2242
  }) || {
2196
2243
  status: "none"
2197
2244
  });
2198
2245
 
2199
2246
  case 11:
2200
- _context34.prev = 11;
2201
- _context34.t0 = _context34["catch"](1);
2202
- this.Log(_context34.t0, true);
2203
- return _context34.abrupt("return", {
2247
+ _context35.prev = 11;
2248
+ _context35.t0 = _context35["catch"](1);
2249
+ this.Log(_context35.t0, true);
2250
+ return _context35.abrupt("return", {
2204
2251
  status: "unknown"
2205
2252
  });
2206
2253
 
2207
2254
  case 15:
2208
2255
  case "end":
2209
- return _context34.stop();
2256
+ return _context35.stop();
2210
2257
  }
2211
2258
  }
2212
- }, _callee34, this, [[1, 11]]);
2259
+ }, _callee35, this, [[1, 11]]);
2213
2260
  }));
2214
2261
 
2215
- return function (_x19) {
2216
- return _ref67.apply(this, arguments);
2262
+ return function (_x20) {
2263
+ return _ref69.apply(this, arguments);
2217
2264
  };
2218
2265
  }();
2219
2266
  /**
@@ -2229,52 +2276,52 @@ exports.PurchaseStatus = /*#__PURE__*/function () {
2229
2276
 
2230
2277
 
2231
2278
  exports.ClaimStatus = /*#__PURE__*/function () {
2232
- var _ref69 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(_ref68) {
2279
+ var _ref71 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(_ref70) {
2233
2280
  var marketplaceParams, sku, marketplaceInfo, statuses;
2234
- return _regeneratorRuntime.wrap(function _callee35$(_context35) {
2281
+ return _regeneratorRuntime.wrap(function _callee36$(_context36) {
2235
2282
  while (1) {
2236
- switch (_context35.prev = _context35.next) {
2283
+ switch (_context36.prev = _context36.next) {
2237
2284
  case 0:
2238
- marketplaceParams = _ref68.marketplaceParams, sku = _ref68.sku;
2239
- _context35.prev = 1;
2240
- _context35.next = 4;
2285
+ marketplaceParams = _ref70.marketplaceParams, sku = _ref70.sku;
2286
+ _context36.prev = 1;
2287
+ _context36.next = 4;
2241
2288
  return this.MarketplaceInfo({
2242
2289
  marketplaceParams: marketplaceParams
2243
2290
  });
2244
2291
 
2245
2292
  case 4:
2246
- marketplaceInfo = _context35.sent;
2247
- _context35.next = 7;
2293
+ marketplaceInfo = _context36.sent;
2294
+ _context36.next = 7;
2248
2295
  return this.MintingStatus({
2249
2296
  tenantId: marketplaceInfo.tenantId
2250
2297
  });
2251
2298
 
2252
2299
  case 7:
2253
- statuses = _context35.sent;
2254
- return _context35.abrupt("return", statuses.find(function (status) {
2300
+ statuses = _context36.sent;
2301
+ return _context36.abrupt("return", statuses.find(function (status) {
2255
2302
  return status.op === "nft-claim" && status.marketplaceId === marketplaceInfo.marketplaceId && status.confirmationId === sku;
2256
2303
  }) || {
2257
2304
  status: "none"
2258
2305
  });
2259
2306
 
2260
2307
  case 11:
2261
- _context35.prev = 11;
2262
- _context35.t0 = _context35["catch"](1);
2263
- this.Log(_context35.t0, true);
2264
- return _context35.abrupt("return", {
2308
+ _context36.prev = 11;
2309
+ _context36.t0 = _context36["catch"](1);
2310
+ this.Log(_context36.t0, true);
2311
+ return _context36.abrupt("return", {
2265
2312
  status: "unknown"
2266
2313
  });
2267
2314
 
2268
2315
  case 15:
2269
2316
  case "end":
2270
- return _context35.stop();
2317
+ return _context36.stop();
2271
2318
  }
2272
2319
  }
2273
- }, _callee35, this, [[1, 11]]);
2320
+ }, _callee36, this, [[1, 11]]);
2274
2321
  }));
2275
2322
 
2276
- return function (_x20) {
2277
- return _ref69.apply(this, arguments);
2323
+ return function (_x21) {
2324
+ return _ref71.apply(this, arguments);
2278
2325
  };
2279
2326
  }();
2280
2327
  /**
@@ -2290,52 +2337,52 @@ exports.ClaimStatus = /*#__PURE__*/function () {
2290
2337
 
2291
2338
 
2292
2339
  exports.PackOpenStatus = /*#__PURE__*/function () {
2293
- var _ref71 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(_ref70) {
2340
+ var _ref73 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(_ref72) {
2294
2341
  var contractAddress, tokenId, tenantConfig, statuses;
2295
- return _regeneratorRuntime.wrap(function _callee36$(_context36) {
2342
+ return _regeneratorRuntime.wrap(function _callee37$(_context37) {
2296
2343
  while (1) {
2297
- switch (_context36.prev = _context36.next) {
2344
+ switch (_context37.prev = _context37.next) {
2298
2345
  case 0:
2299
- contractAddress = _ref70.contractAddress, tokenId = _ref70.tokenId;
2300
- _context36.prev = 1;
2301
- _context36.next = 4;
2346
+ contractAddress = _ref72.contractAddress, tokenId = _ref72.tokenId;
2347
+ _context37.prev = 1;
2348
+ _context37.next = 4;
2302
2349
  return this.TenantConfiguration({
2303
2350
  contractAddress: contractAddress
2304
2351
  });
2305
2352
 
2306
2353
  case 4:
2307
- tenantConfig = _context36.sent;
2308
- _context36.next = 7;
2354
+ tenantConfig = _context37.sent;
2355
+ _context37.next = 7;
2309
2356
  return this.MintingStatus({
2310
2357
  tenantId: tenantConfig.tenant
2311
2358
  });
2312
2359
 
2313
2360
  case 7:
2314
- statuses = _context36.sent;
2315
- return _context36.abrupt("return", statuses.find(function (status) {
2361
+ statuses = _context37.sent;
2362
+ return _context37.abrupt("return", statuses.find(function (status) {
2316
2363
  return status.op === "nft-open" && Utils.EqualAddress(contractAddress, status.address) && status.tokenId === tokenId;
2317
2364
  }) || {
2318
2365
  status: "none"
2319
2366
  });
2320
2367
 
2321
2368
  case 11:
2322
- _context36.prev = 11;
2323
- _context36.t0 = _context36["catch"](1);
2324
- this.Log(_context36.t0, true);
2325
- return _context36.abrupt("return", {
2369
+ _context37.prev = 11;
2370
+ _context37.t0 = _context37["catch"](1);
2371
+ this.Log(_context37.t0, true);
2372
+ return _context37.abrupt("return", {
2326
2373
  status: "unknown"
2327
2374
  });
2328
2375
 
2329
2376
  case 15:
2330
2377
  case "end":
2331
- return _context36.stop();
2378
+ return _context37.stop();
2332
2379
  }
2333
2380
  }
2334
- }, _callee36, this, [[1, 11]]);
2381
+ }, _callee37, this, [[1, 11]]);
2335
2382
  }));
2336
2383
 
2337
- return function (_x21) {
2338
- return _ref71.apply(this, arguments);
2384
+ return function (_x22) {
2385
+ return _ref73.apply(this, arguments);
2339
2386
  };
2340
2387
  }();
2341
2388
  /**
@@ -2351,60 +2398,60 @@ exports.PackOpenStatus = /*#__PURE__*/function () {
2351
2398
 
2352
2399
 
2353
2400
  exports.CollectionRedemptionStatus = /*#__PURE__*/function () {
2354
- var _ref73 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(_ref72) {
2401
+ var _ref75 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(_ref74) {
2355
2402
  var marketplaceParams, confirmationId, statuses;
2356
- return _regeneratorRuntime.wrap(function _callee37$(_context37) {
2403
+ return _regeneratorRuntime.wrap(function _callee38$(_context38) {
2357
2404
  while (1) {
2358
- switch (_context37.prev = _context37.next) {
2405
+ switch (_context38.prev = _context38.next) {
2359
2406
  case 0:
2360
- marketplaceParams = _ref72.marketplaceParams, confirmationId = _ref72.confirmationId;
2361
- _context37.prev = 1;
2362
- _context37.next = 4;
2407
+ marketplaceParams = _ref74.marketplaceParams, confirmationId = _ref74.confirmationId;
2408
+ _context38.prev = 1;
2409
+ _context38.next = 4;
2363
2410
  return this.MintingStatus({
2364
2411
  marketplaceParams: marketplaceParams
2365
2412
  });
2366
2413
 
2367
2414
  case 4:
2368
- statuses = _context37.sent;
2369
- return _context37.abrupt("return", statuses.find(function (status) {
2415
+ statuses = _context38.sent;
2416
+ return _context38.abrupt("return", statuses.find(function (status) {
2370
2417
  return status.op === "nft-redeem" && status.confirmationId === confirmationId;
2371
2418
  }) || {
2372
2419
  status: "none"
2373
2420
  });
2374
2421
 
2375
2422
  case 8:
2376
- _context37.prev = 8;
2377
- _context37.t0 = _context37["catch"](1);
2378
- this.Log(_context37.t0, true);
2379
- return _context37.abrupt("return", {
2423
+ _context38.prev = 8;
2424
+ _context38.t0 = _context38["catch"](1);
2425
+ this.Log(_context38.t0, true);
2426
+ return _context38.abrupt("return", {
2380
2427
  status: "unknown"
2381
2428
  });
2382
2429
 
2383
2430
  case 12:
2384
2431
  case "end":
2385
- return _context37.stop();
2432
+ return _context38.stop();
2386
2433
  }
2387
2434
  }
2388
- }, _callee37, this, [[1, 8]]);
2435
+ }, _callee38, this, [[1, 8]]);
2389
2436
  }));
2390
2437
 
2391
- return function (_x22) {
2392
- return _ref73.apply(this, arguments);
2438
+ return function (_x23) {
2439
+ return _ref75.apply(this, arguments);
2393
2440
  };
2394
2441
  }();
2395
2442
  /* EVENTS */
2396
2443
 
2397
2444
 
2398
2445
  exports.LoadDrop = /*#__PURE__*/function () {
2399
- var _ref75 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(_ref74) {
2446
+ var _ref77 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(_ref76) {
2400
2447
  var _this2 = this;
2401
2448
 
2402
2449
  var tenantSlug, eventSlug, dropId, mainSiteHash, event, eventId;
2403
- return _regeneratorRuntime.wrap(function _callee38$(_context38) {
2450
+ return _regeneratorRuntime.wrap(function _callee39$(_context39) {
2404
2451
  while (1) {
2405
- switch (_context38.prev = _context38.next) {
2452
+ switch (_context39.prev = _context39.next) {
2406
2453
  case 0:
2407
- tenantSlug = _ref74.tenantSlug, eventSlug = _ref74.eventSlug, dropId = _ref74.dropId;
2454
+ tenantSlug = _ref76.tenantSlug, eventSlug = _ref76.eventSlug, dropId = _ref76.dropId;
2408
2455
 
2409
2456
  if (!this.drops) {
2410
2457
  this.drops = {};
@@ -2419,18 +2466,18 @@ exports.LoadDrop = /*#__PURE__*/function () {
2419
2466
  }
2420
2467
 
2421
2468
  if (this.drops[tenantSlug][eventSlug][dropId]) {
2422
- _context38.next = 16;
2469
+ _context39.next = 16;
2423
2470
  break;
2424
2471
  }
2425
2472
 
2426
- _context38.next = 7;
2473
+ _context39.next = 7;
2427
2474
  return this.client.LatestVersionHash({
2428
2475
  objectId: this.mainSiteId
2429
2476
  });
2430
2477
 
2431
2478
  case 7:
2432
- mainSiteHash = _context38.sent;
2433
- _context38.next = 10;
2479
+ mainSiteHash = _context39.sent;
2480
+ _context39.next = 10;
2434
2481
  return this.client.ContentObjectMetadata({
2435
2482
  versionHash: mainSiteHash,
2436
2483
  metadataSubtree: UrlJoin("public", "asset_metadata", "tenants", tenantSlug, "sites", eventSlug, "info"),
@@ -2443,17 +2490,17 @@ exports.LoadDrop = /*#__PURE__*/function () {
2443
2490
  });
2444
2491
 
2445
2492
  case 10:
2446
- _context38.t0 = _context38.sent;
2493
+ _context39.t0 = _context39.sent;
2447
2494
 
2448
- if (_context38.t0) {
2449
- _context38.next = 13;
2495
+ if (_context39.t0) {
2496
+ _context39.next = 13;
2450
2497
  break;
2451
2498
  }
2452
2499
 
2453
- _context38.t0 = [];
2500
+ _context39.t0 = [];
2454
2501
 
2455
2502
  case 13:
2456
- event = _context38.t0;
2503
+ event = _context39.t0;
2457
2504
  eventId = Utils.DecodeVersionHash(event["."].source).objectId;
2458
2505
  event.drops.forEach(function (drop) {
2459
2506
  drop = _objectSpread(_objectSpread({}, drop), {}, {
@@ -2464,37 +2511,37 @@ exports.LoadDrop = /*#__PURE__*/function () {
2464
2511
  });
2465
2512
 
2466
2513
  case 16:
2467
- return _context38.abrupt("return", this.drops[dropId]);
2514
+ return _context39.abrupt("return", this.drops[dropId]);
2468
2515
 
2469
2516
  case 17:
2470
2517
  case "end":
2471
- return _context38.stop();
2518
+ return _context39.stop();
2472
2519
  }
2473
2520
  }
2474
- }, _callee38, this);
2521
+ }, _callee39, this);
2475
2522
  }));
2476
2523
 
2477
- return function (_x23) {
2478
- return _ref75.apply(this, arguments);
2524
+ return function (_x24) {
2525
+ return _ref77.apply(this, arguments);
2479
2526
  };
2480
2527
  }();
2481
2528
 
2482
2529
  exports.SubmitDropVote = /*#__PURE__*/function () {
2483
- var _ref77 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(_ref76) {
2530
+ var _ref79 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(_ref78) {
2484
2531
  var marketplaceParams, eventId, dropId, sku, marketplaceInfo;
2485
- return _regeneratorRuntime.wrap(function _callee39$(_context39) {
2532
+ return _regeneratorRuntime.wrap(function _callee40$(_context40) {
2486
2533
  while (1) {
2487
- switch (_context39.prev = _context39.next) {
2534
+ switch (_context40.prev = _context40.next) {
2488
2535
  case 0:
2489
- marketplaceParams = _ref76.marketplaceParams, eventId = _ref76.eventId, dropId = _ref76.dropId, sku = _ref76.sku;
2490
- _context39.next = 3;
2536
+ marketplaceParams = _ref78.marketplaceParams, eventId = _ref78.eventId, dropId = _ref78.dropId, sku = _ref78.sku;
2537
+ _context40.next = 3;
2491
2538
  return this.MarketplaceInfo({
2492
2539
  marketplaceParams: marketplaceParams
2493
2540
  });
2494
2541
 
2495
2542
  case 3:
2496
- marketplaceInfo = _context39.sent;
2497
- _context39.next = 6;
2543
+ marketplaceInfo = _context40.sent;
2544
+ _context40.next = 6;
2498
2545
  return this.client.authClient.MakeAuthServiceRequest({
2499
2546
  path: UrlJoin("as", "wlt", "act", marketplaceInfo.tenant_id),
2500
2547
  method: "POST",
@@ -2511,27 +2558,27 @@ exports.SubmitDropVote = /*#__PURE__*/function () {
2511
2558
 
2512
2559
  case 6:
2513
2560
  case "end":
2514
- return _context39.stop();
2561
+ return _context40.stop();
2515
2562
  }
2516
2563
  }
2517
- }, _callee39, this);
2564
+ }, _callee40, this);
2518
2565
  }));
2519
2566
 
2520
- return function (_x24) {
2521
- return _ref77.apply(this, arguments);
2567
+ return function (_x25) {
2568
+ return _ref79.apply(this, arguments);
2522
2569
  };
2523
2570
  }();
2524
2571
 
2525
2572
  exports.DropStatus = /*#__PURE__*/function () {
2526
- var _ref79 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(_ref78) {
2573
+ var _ref81 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(_ref80) {
2527
2574
  var marketplace, eventId, dropId, response;
2528
- return _regeneratorRuntime.wrap(function _callee40$(_context40) {
2575
+ return _regeneratorRuntime.wrap(function _callee41$(_context41) {
2529
2576
  while (1) {
2530
- switch (_context40.prev = _context40.next) {
2577
+ switch (_context41.prev = _context41.next) {
2531
2578
  case 0:
2532
- marketplace = _ref78.marketplace, eventId = _ref78.eventId, dropId = _ref78.dropId;
2533
- _context40.prev = 1;
2534
- _context40.next = 4;
2579
+ marketplace = _ref80.marketplace, eventId = _ref80.eventId, dropId = _ref80.dropId;
2580
+ _context41.prev = 1;
2581
+ _context41.next = 4;
2535
2582
  return Utils.ResponseToJson(this.client.authClient.MakeAuthServiceRequest({
2536
2583
  path: UrlJoin("as", "wlt", "act", marketplace.tenant_id, eventId, dropId),
2537
2584
  method: "GET",
@@ -2541,28 +2588,28 @@ exports.DropStatus = /*#__PURE__*/function () {
2541
2588
  }));
2542
2589
 
2543
2590
  case 4:
2544
- response = _context40.sent;
2545
- return _context40.abrupt("return", response.sort(function (a, b) {
2591
+ response = _context41.sent;
2592
+ return _context41.abrupt("return", response.sort(function (a, b) {
2546
2593
  return a.ts > b.ts ? 1 : -1;
2547
2594
  })[0] || {
2548
2595
  status: "none"
2549
2596
  });
2550
2597
 
2551
2598
  case 8:
2552
- _context40.prev = 8;
2553
- _context40.t0 = _context40["catch"](1);
2554
- this.Log(_context40.t0, true);
2555
- return _context40.abrupt("return", "");
2599
+ _context41.prev = 8;
2600
+ _context41.t0 = _context41["catch"](1);
2601
+ this.Log(_context41.t0, true);
2602
+ return _context41.abrupt("return", "");
2556
2603
 
2557
2604
  case 12:
2558
2605
  case "end":
2559
- return _context40.stop();
2606
+ return _context41.stop();
2560
2607
  }
2561
2608
  }
2562
- }, _callee40, this, [[1, 8]]);
2609
+ }, _callee41, this, [[1, 8]]);
2563
2610
  }));
2564
2611
 
2565
- return function (_x25) {
2566
- return _ref79.apply(this, arguments);
2612
+ return function (_x26) {
2613
+ return _ref81.apply(this, arguments);
2567
2614
  };
2568
2615
  }();