@depay/widgets 11.4.5 → 11.5.0
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/esm/index.bundle.js +40 -25
- package/dist/esm/index.evm.js +52 -32
- package/dist/esm/index.evm.js.map +1 -1
- package/dist/esm/index.js +52 -32
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.solana.js +52 -32
- package/dist/esm/index.solana.js.map +1 -1
- package/dist/umd/index.bundle.js +40 -25
- package/dist/umd/index.evm.js +52 -32
- package/dist/umd/index.evm.js.map +1 -1
- package/dist/umd/index.js +52 -32
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/index.solana.js +52 -32
- package/dist/umd/index.solana.js.map +1 -1
- package/package.json +6 -6
package/dist/esm/index.js
CHANGED
|
@@ -562,17 +562,19 @@ var allWallets = [{
|
|
|
562
562
|
"mobile": {
|
|
563
563
|
"ios": {
|
|
564
564
|
"native": "metamask:",
|
|
565
|
-
"encoded": false,
|
|
566
565
|
"universal": "https://metamask.app.link",
|
|
567
|
-
"
|
|
568
|
-
"
|
|
566
|
+
"qr": "WalletConnectV1",
|
|
567
|
+
"open": function open() {
|
|
568
|
+
return "https://metamask.app.link/dapp/".concat(window.location.toString().replace(/^(https*)*:\/\//, ''));
|
|
569
|
+
}
|
|
569
570
|
},
|
|
570
571
|
"android": {
|
|
571
572
|
"native": "metamask:",
|
|
572
|
-
"encoded": false,
|
|
573
573
|
"universal": "https://metamask.app.link",
|
|
574
|
-
"
|
|
575
|
-
"
|
|
574
|
+
"qr": "WalletConnectV1",
|
|
575
|
+
"open": function open() {
|
|
576
|
+
return "https://metamask.app.link/dapp/".concat(window.location.toString().replace(/^(https*)*:\/\//, ''));
|
|
577
|
+
}
|
|
576
578
|
}
|
|
577
579
|
},
|
|
578
580
|
"logo": wallets.MetaMask.info.logo,
|
|
@@ -4261,6 +4263,13 @@ var allWallets = [{
|
|
|
4261
4263
|
"extension": "WindowSolana",
|
|
4262
4264
|
"logo": wallets.WindowSolana.info.logo,
|
|
4263
4265
|
"blockchains": _toConsumableArray(supported.evm)
|
|
4266
|
+
}, {
|
|
4267
|
+
"name": "WalletConnect V2",
|
|
4268
|
+
"desktop": {
|
|
4269
|
+
"qr": "WalletConnectV2"
|
|
4270
|
+
},
|
|
4271
|
+
"logo": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",
|
|
4272
|
+
"blockchains": _toConsumableArray(supported.evm)
|
|
4264
4273
|
}, {
|
|
4265
4274
|
"name": "WalletConnect",
|
|
4266
4275
|
"desktop": {
|
|
@@ -4620,8 +4629,6 @@ var SolanaPay = /*#__PURE__*/function (_wallets$WindowSolana) {
|
|
|
4620
4629
|
requireAllSignatures: false
|
|
4621
4630
|
});
|
|
4622
4631
|
txBase64 = serializedTransaction.toString('base64');
|
|
4623
|
-
console.log('WIDGET TRACKING TRANSACTION TRACKING HERE!!!');
|
|
4624
|
-
console.log('API TRACKING via TRACK HERE!!!');
|
|
4625
4632
|
this.socket.send(JSON.stringify({
|
|
4626
4633
|
command: 'message',
|
|
4627
4634
|
identifier: JSON.stringify({
|
|
@@ -4635,7 +4642,7 @@ var SolanaPay = /*#__PURE__*/function (_wallets$WindowSolana) {
|
|
|
4635
4642
|
transaction: txBase64
|
|
4636
4643
|
})
|
|
4637
4644
|
}));
|
|
4638
|
-
case
|
|
4645
|
+
case 6:
|
|
4639
4646
|
case "end":
|
|
4640
4647
|
return _context4.stop();
|
|
4641
4648
|
}
|
|
@@ -21858,7 +21865,7 @@ var get = function get() {
|
|
|
21858
21865
|
};
|
|
21859
21866
|
|
|
21860
21867
|
var ConnectWalletDialog = (function (props) {
|
|
21861
|
-
var _props$wallet, _props$platform9, _props$platform10, _props$platform11;
|
|
21868
|
+
var _props$wallet, _props$platform9, _props$platform10, _props$platform11, _props$platform12, _props$platform13;
|
|
21862
21869
|
var QRCodeElement = React.useRef();
|
|
21863
21870
|
var _useState = useState(),
|
|
21864
21871
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -21990,7 +21997,9 @@ var ConnectWalletDialog = (function (props) {
|
|
|
21990
21997
|
}
|
|
21991
21998
|
break;
|
|
21992
21999
|
case 'WalletConnectV1':
|
|
22000
|
+
case 'WalletConnectV2':
|
|
21993
22001
|
if (QRCode == undefined) {
|
|
22002
|
+
localStorage[atob('ZGVwYXk6d2FsbGV0czp3YzI6cHJvamVjdElk')] = atob('YjFmYzJmMDZlYTIxMDdmY2Q5OWM2OGY0MTI3MTQxYWI=');
|
|
21994
22003
|
var _wallet = new wallets[props.platform.qr]();
|
|
21995
22004
|
_wallet.connect({
|
|
21996
22005
|
name: props.wallet.name,
|
|
@@ -22083,8 +22092,8 @@ var ConnectWalletDialog = (function (props) {
|
|
|
22083
22092
|
}, []);
|
|
22084
22093
|
useEffect(function () {
|
|
22085
22094
|
if (appIsConnected !== undefined) {
|
|
22086
|
-
var _props$wallet3, _props$
|
|
22087
|
-
setShowQRCode(!extensionIsAvailable && !isMobile() && !((_props$wallet3 = props.wallet) !== null && _props$wallet3 !== void 0 && (_props$wallet3
|
|
22095
|
+
var _props$wallet3, _props$platform7;
|
|
22096
|
+
setShowQRCode(!extensionIsAvailable && !isMobile() && !((_props$wallet3 = props.wallet) !== null && _props$wallet3 !== void 0 && (_props$wallet3 = _props$wallet3.desktop) !== null && _props$wallet3 !== void 0 && _props$wallet3["native"]) && ((_props$platform7 = props.platform) === null || _props$platform7 === void 0 ? void 0 : _props$platform7.qr) && (props.platform.qr !== 'SolanaPay' || props.accept && props.accept.every(function (accept) {
|
|
22088
22097
|
return accept.amount;
|
|
22089
22098
|
})));
|
|
22090
22099
|
}
|
|
@@ -22123,7 +22132,17 @@ var ConnectWalletDialog = (function (props) {
|
|
|
22123
22132
|
}, /*#__PURE__*/React.createElement("div", {
|
|
22124
22133
|
ref: QRCodeElement,
|
|
22125
22134
|
className: "QRCode"
|
|
22126
|
-
}
|
|
22135
|
+
}, showQRCode && ((_props$platform10 = props.platform) === null || _props$platform10 === void 0 ? void 0 : _props$platform10.qr) !== 'WalletLink' && QRCode === undefined && /*#__PURE__*/React.createElement("div", {
|
|
22136
|
+
className: "Skeleton",
|
|
22137
|
+
style: {
|
|
22138
|
+
width: "305px",
|
|
22139
|
+
height: "305px"
|
|
22140
|
+
}
|
|
22141
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22142
|
+
className: "SkeletonBackground"
|
|
22143
|
+
}))), showQRCode && ((_props$platform11 = props.platform) === null || _props$platform11 === void 0 ? void 0 : _props$platform11.qr) !== 'WalletLink' && QRCode === undefined && /*#__PURE__*/React.createElement("div", {
|
|
22144
|
+
className: "Opacity05 PaddingBottomXS PaddingTopS"
|
|
22145
|
+
}, /*#__PURE__*/React.createElement("small", null, "Generating QR code...")), showQRCode && ((_props$platform12 = props.platform) === null || _props$platform12 === void 0 ? void 0 : _props$platform12.qr) !== 'WalletLink' && QRCode !== undefined && /*#__PURE__*/React.createElement("div", {
|
|
22127
22146
|
className: "Opacity05 PaddingBottomXS PaddingTopS"
|
|
22128
22147
|
}, /*#__PURE__*/React.createElement("small", null, "Scan QR code with your wallet"))), /*#__PURE__*/React.createElement("div", {
|
|
22129
22148
|
className: "PaddingLeftL PaddingRightL PaddingTopS"
|
|
@@ -22220,7 +22239,7 @@ var ConnectWalletDialog = (function (props) {
|
|
|
22220
22239
|
className: "PaddingLeftS LineHeightXS"
|
|
22221
22240
|
}, /*#__PURE__*/React.createElement("div", {
|
|
22222
22241
|
className: "CardText FontWeightMedium"
|
|
22223
|
-
}, "Scan QR code")))), ((_props$
|
|
22242
|
+
}, "Scan QR code")))), ((_props$platform13 = props.platform) === null || _props$platform13 === void 0 ? void 0 : _props$platform13.connect) && ['WalletConnectV1', 'WalletConnectV2'].includes(props.platform.connect) && props.platform.copyLink && /*#__PURE__*/React.createElement("div", {
|
|
22224
22243
|
className: "PaddingBottomXS TooltipWrapper"
|
|
22225
22244
|
}, /*#__PURE__*/React.createElement("button", {
|
|
22226
22245
|
onClick: connectViaCopyLink,
|
|
@@ -22610,7 +22629,7 @@ var SelectWalletDialog = (function (props) {
|
|
|
22610
22629
|
return null;
|
|
22611
22630
|
}
|
|
22612
22631
|
var connectionType = 'app';
|
|
22613
|
-
if (wallet && wallet.constructor && ![wallets.WalletConnectV1, wallets.WalletLink].includes(wallet.constructor)) {
|
|
22632
|
+
if (wallet && wallet.constructor && ![wallets.WalletConnectV1, wallets.WalletConnectV2, wallets.WalletLink].includes(wallet.constructor)) {
|
|
22614
22633
|
connectionType = 'extension';
|
|
22615
22634
|
}
|
|
22616
22635
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -22744,7 +22763,7 @@ var WhatIsAWalletDialog = (function (props) {
|
|
|
22744
22763
|
src: QuestionsGraphic
|
|
22745
22764
|
})), /*#__PURE__*/React.createElement("p", {
|
|
22746
22765
|
className: "FontSizeM PaddingTopS PaddingLeftM PaddingRightM"
|
|
22747
|
-
}, "Wallets are used to send, receive, and store digital assets. Wallets come in many forms. They are either built into your browser, an extension added to your browser,
|
|
22766
|
+
}, "Wallets are used to send, receive, and store digital assets. Wallets come in many forms. They are either built into your browser, an extension added to your browser, an app on your phone, your computer or even a piece of hardware."), /*#__PURE__*/React.createElement("div", {
|
|
22748
22767
|
className: "PaddingTopS"
|
|
22749
22768
|
}, /*#__PURE__*/React.createElement("a", {
|
|
22750
22769
|
className: "Link FontSizeM",
|
|
@@ -22851,7 +22870,8 @@ var ConnectStack = (function (props) {
|
|
|
22851
22870
|
if (!platform) {
|
|
22852
22871
|
return;
|
|
22853
22872
|
}
|
|
22854
|
-
if (platform.connect
|
|
22873
|
+
if (['WalletConnectV1', 'WalletConnectV2'].includes(platform.connect)) {
|
|
22874
|
+
localStorage[atob('ZGVwYXk6d2FsbGV0czp3YzI6cHJvamVjdElk')] = atob('YjFmYzJmMDZlYTIxMDdmY2Q5OWM2OGY0MTI3MTQxYWI=');
|
|
22855
22875
|
var _wallet = new wallets[platform.connect]();
|
|
22856
22876
|
_wallet.connect({
|
|
22857
22877
|
name: walletMetaData.name,
|
|
@@ -22893,6 +22913,7 @@ var ConnectStack = (function (props) {
|
|
|
22893
22913
|
return;
|
|
22894
22914
|
}
|
|
22895
22915
|
set(walletMetaData.name);
|
|
22916
|
+
console.log('open in app', platform.open());
|
|
22896
22917
|
window.open(platform.open(), '_self', 'noreferrer noopener');
|
|
22897
22918
|
};
|
|
22898
22919
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ReactDialogStack, {
|
|
@@ -24527,18 +24548,17 @@ var PaymentRoutingProvider = (function (props) {
|
|
|
24527
24548
|
while (1) switch (_context3.prev = _context3.next) {
|
|
24528
24549
|
case 0:
|
|
24529
24550
|
if (!(wallet && wallet.isSolanaPay && routes && routes.length && wallet.isTransactionSend !== true)) {
|
|
24530
|
-
_context3.next =
|
|
24551
|
+
_context3.next = 7;
|
|
24531
24552
|
break;
|
|
24532
24553
|
}
|
|
24533
|
-
console.log('TRACE HERE!!!');
|
|
24534
24554
|
route = routes[0];
|
|
24535
24555
|
_context3.t0 = wallet;
|
|
24536
|
-
_context3.next =
|
|
24556
|
+
_context3.next = 5;
|
|
24537
24557
|
return route.getTransaction();
|
|
24538
|
-
case
|
|
24558
|
+
case 5:
|
|
24539
24559
|
_context3.t1 = _context3.sent;
|
|
24540
24560
|
_context3.t0.sendTransaction.call(_context3.t0, _context3.t1);
|
|
24541
|
-
case
|
|
24561
|
+
case 7:
|
|
24542
24562
|
case "end":
|
|
24543
24563
|
return _context3.stop();
|
|
24544
24564
|
}
|
|
@@ -26228,7 +26248,7 @@ var getNonce = /*#__PURE__*/function () {
|
|
|
26228
26248
|
_context3.next = 7;
|
|
26229
26249
|
break;
|
|
26230
26250
|
}
|
|
26231
|
-
return _context3.abrupt("return", transaction === null || transaction === void 0
|
|
26251
|
+
return _context3.abrupt("return", transaction === null || transaction === void 0 || (_transaction$nonce = transaction.nonce) === null || _transaction$nonce === void 0 ? void 0 : _transaction$nonce.toString());
|
|
26232
26252
|
case 7:
|
|
26233
26253
|
if (!blockchain) {
|
|
26234
26254
|
_context3.next = 11;
|
|
@@ -26478,7 +26498,7 @@ var PaymentTrackingProvider = (function (props) {
|
|
|
26478
26498
|
_context2.t9 = paymentRoute.toToken.address;
|
|
26479
26499
|
_context2.t10 = paymentRoute.toAmount.toString();
|
|
26480
26500
|
_context2.t11 = paymentRoute.toDecimals;
|
|
26481
|
-
_context2.t12 = paymentRoute === null || paymentRoute === void 0
|
|
26501
|
+
_context2.t12 = paymentRoute === null || paymentRoute === void 0 || (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString();
|
|
26482
26502
|
_context2.t13 = transaction.deadline;
|
|
26483
26503
|
_context2.t14 = {
|
|
26484
26504
|
blockchain: _context2.t1,
|
|
@@ -26725,7 +26745,7 @@ var PaymentTrackingProvider = (function (props) {
|
|
|
26725
26745
|
_context5.t7 = paymentRoute.toToken.address;
|
|
26726
26746
|
_context5.t8 = paymentRoute.toAmount.toString();
|
|
26727
26747
|
_context5.t9 = paymentRoute.toDecimals;
|
|
26728
|
-
_context5.t10 = paymentRoute === null || paymentRoute === void 0
|
|
26748
|
+
_context5.t10 = paymentRoute === null || paymentRoute === void 0 || (_paymentRoute$feeAmou2 = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou2 === void 0 ? void 0 : _paymentRoute$feeAmou2.toString();
|
|
26729
26749
|
_context5.t11 = transaction.deadline;
|
|
26730
26750
|
payment = {
|
|
26731
26751
|
blockchain: _context5.t0,
|
|
@@ -27869,7 +27889,7 @@ var EnterNFTDataForOpenSeaDialog = (function (props) {
|
|
|
27869
27889
|
setIdRequired = _useState10[1];
|
|
27870
27890
|
var confirm = function confirm() {
|
|
27871
27891
|
var _selection$blockchain, _selection$collection;
|
|
27872
|
-
var blockchain = (selection === null || selection === void 0
|
|
27892
|
+
var blockchain = (selection === null || selection === void 0 || (_selection$blockchain = selection.blockchain) === null || _selection$blockchain === void 0 ? void 0 : _selection$blockchain.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 || (_selection$collection = selection.collection) === null || _selection$collection === void 0 ? void 0 : _selection$collection.blockchain);
|
|
27873
27893
|
setSelection(Object.assign(props.selection, {
|
|
27874
27894
|
nft: {
|
|
27875
27895
|
blockchain: blockchain,
|
|
@@ -27885,7 +27905,7 @@ var EnterNFTDataForOpenSeaDialog = (function (props) {
|
|
|
27885
27905
|
};
|
|
27886
27906
|
useEffect(function () {
|
|
27887
27907
|
var _selection$blockchain2, _selection$collection2;
|
|
27888
|
-
var blockchain = (selection === null || selection === void 0
|
|
27908
|
+
var blockchain = (selection === null || selection === void 0 || (_selection$blockchain2 = selection.blockchain) === null || _selection$blockchain2 === void 0 ? void 0 : _selection$blockchain2.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 || (_selection$collection2 = selection.collection) === null || _selection$collection2 === void 0 ? void 0 : _selection$collection2.blockchain);
|
|
27889
27909
|
var checkForIdRequired = /*#__PURE__*/function () {
|
|
27890
27910
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
27891
27911
|
var balanceWithId;
|
|
@@ -27959,10 +27979,10 @@ var EnterNFTDataForOpenSeaDialog = (function (props) {
|
|
|
27959
27979
|
className: "CardImage small"
|
|
27960
27980
|
}, /*#__PURE__*/React.createElement("img", {
|
|
27961
27981
|
className: "transparent",
|
|
27962
|
-
src: (_Blockchains$findByNa = Blockchains.findByName((selection === null || selection === void 0
|
|
27982
|
+
src: (_Blockchains$findByNa = Blockchains.findByName((selection === null || selection === void 0 || (_selection$blockchain3 = selection.blockchain) === null || _selection$blockchain3 === void 0 ? void 0 : _selection$blockchain3.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 || (_selection$collection3 = selection.collection) === null || _selection$collection3 === void 0 ? void 0 : _selection$collection3.blockchain))) === null || _Blockchains$findByNa === void 0 ? void 0 : _Blockchains$findByNa.logo
|
|
27963
27983
|
})), /*#__PURE__*/React.createElement("div", {
|
|
27964
27984
|
className: "CardBody FontSizeM"
|
|
27965
|
-
}, (_Blockchains$findByNa2 = Blockchains.findByName((selection === null || selection === void 0
|
|
27985
|
+
}, (_Blockchains$findByNa2 = Blockchains.findByName((selection === null || selection === void 0 || (_selection$blockchain4 = selection.blockchain) === null || _selection$blockchain4 === void 0 ? void 0 : _selection$blockchain4.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 || (_selection$collection4 = selection.collection) === null || _selection$collection4 === void 0 ? void 0 : _selection$collection4.blockchain))) === null || _Blockchains$findByNa2 === void 0 ? void 0 : _Blockchains$findByNa2.label), /*#__PURE__*/React.createElement("div", {
|
|
27966
27986
|
className: "CardAction"
|
|
27967
27987
|
}, /*#__PURE__*/React.createElement(ChevronRight, null))))), idRequired && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
27968
27988
|
className: "PaddingTopXS TextLeft"
|
|
@@ -28097,7 +28117,7 @@ var SelectNFTContractOnOpenSeaDialog = (function (props) {
|
|
|
28097
28117
|
}
|
|
28098
28118
|
response.json().then( /*#__PURE__*/function () {
|
|
28099
28119
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(data) {
|
|
28100
|
-
var result, blockchain, holders, additionalData, _additionalData$colle, _additionalData$colle2, _additionalData
|
|
28120
|
+
var result, blockchain, holders, additionalData, _additionalData$colle, _additionalData$colle2, _additionalData, _blockchain;
|
|
28101
28121
|
return regenerator.wrap(function _callee$(_context) {
|
|
28102
28122
|
while (1) switch (_context.prev = _context.next) {
|
|
28103
28123
|
case 0:
|
|
@@ -28111,7 +28131,7 @@ var SelectNFTContractOnOpenSeaDialog = (function (props) {
|
|
|
28111
28131
|
additionalData = _context.sent;
|
|
28112
28132
|
if (additionalData) {
|
|
28113
28133
|
blockchain = additionalData !== null && additionalData !== void 0 && additionalData.permalink.match(/https:\/\/opensea\.io\/assets\/(\w*)\//) ? BLOCKCHAIN_NAMES$1[additionalData.permalink.match(/https:\/\/opensea\.io\/assets\/(\w*)\//)[1]] : undefined;
|
|
28114
|
-
holders = additionalData === null || additionalData === void 0
|
|
28134
|
+
holders = additionalData === null || additionalData === void 0 || (_additionalData$colle = additionalData.collection) === null || _additionalData$colle === void 0 || (_additionalData$colle = _additionalData$colle.stats) === null || _additionalData$colle === void 0 ? void 0 : _additionalData$colle.num_owners;
|
|
28115
28135
|
}
|
|
28116
28136
|
result = {
|
|
28117
28137
|
blockchain: blockchain,
|
|
@@ -28147,7 +28167,7 @@ var SelectNFTContractOnOpenSeaDialog = (function (props) {
|
|
|
28147
28167
|
case 15:
|
|
28148
28168
|
_additionalData = _context.sent;
|
|
28149
28169
|
_blockchain = _additionalData !== null && _additionalData !== void 0 && _additionalData.permalink.match(/https:\/\/opensea\.io\/assets\/(\w*)\//) ? BLOCKCHAIN_NAMES$1[_additionalData.permalink.match(/https:\/\/opensea\.io\/assets\/(\w*)\//)[1]] : undefined;
|
|
28150
|
-
_additionalData === null || _additionalData === void 0
|
|
28170
|
+
_additionalData === null || _additionalData === void 0 || (_additionalData$colle2 = _additionalData.collection) === null || _additionalData$colle2 === void 0 || (_additionalData$colle2 = _additionalData$colle2.stats) === null || _additionalData$colle2 === void 0 ? void 0 : _additionalData$colle2.num_owners;
|
|
28151
28171
|
result = {
|
|
28152
28172
|
blockchain: _blockchain,
|
|
28153
28173
|
id: null,
|