@suilend/sui-fe-next 0.1.80 → 0.1.82
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/contexts/WalletContext.jsx +0 -19
- package/lib/connector.js +3 -3
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -61,7 +61,6 @@ import { WalletProvider as MystenWalletProvider, SuiClientProvider, createNetwor
|
|
|
61
61
|
import { useAccounts, useConnectWallet, useCurrentAccount, useCurrentWallet, useDisconnectWallet, useSignTransaction, useSwitchAccount, useWallets, } from "@mysten/dapp-kit";
|
|
62
62
|
import { Transaction } from "@mysten/sui/transactions";
|
|
63
63
|
import { SUI_DECIMALS, toBase64 } from "@mysten/sui/utils";
|
|
64
|
-
import * as Sentry from "@sentry/nextjs";
|
|
65
64
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
66
65
|
import BigNumber from "bignumber.js";
|
|
67
66
|
import { useLDClient } from "launchdarkly-react-client-sdk";
|
|
@@ -507,15 +506,6 @@ function Inner(_a) {
|
|
|
507
506
|
console.error(err);
|
|
508
507
|
}
|
|
509
508
|
}, [switchAccount]);
|
|
510
|
-
// Sentry
|
|
511
|
-
useEffect(function () {
|
|
512
|
-
if (impersonatedAddress || !(account === null || account === void 0 ? void 0 : account.address))
|
|
513
|
-
Sentry.setUser(null);
|
|
514
|
-
else {
|
|
515
|
-
Sentry.setUser({ id: account === null || account === void 0 ? void 0 : account.address });
|
|
516
|
-
Sentry.setTag("wallet", wallet === null || wallet === void 0 ? void 0 : wallet.name);
|
|
517
|
-
}
|
|
518
|
-
}, [impersonatedAddress, account === null || account === void 0 ? void 0 : account.address, wallet === null || wallet === void 0 ? void 0 : wallet.name]);
|
|
519
509
|
// LaunchDarkly
|
|
520
510
|
var ldClient = useLDClient();
|
|
521
511
|
var ldKeyRef = useRef(undefined);
|
|
@@ -609,14 +599,6 @@ function Inner(_a) {
|
|
|
609
599
|
case 3:
|
|
610
600
|
err_2 = _a.sent();
|
|
611
601
|
// _transaction.getData().inputs.filter(input=>!!input.Object).map(input=>input.)
|
|
612
|
-
Sentry.captureException(err_2, {
|
|
613
|
-
tags: {
|
|
614
|
-
simulation: true,
|
|
615
|
-
transactionData: JSON.stringify(_transaction.getData(), function (_, value) {
|
|
616
|
-
return typeof value === "bigint" ? value.toString() : value;
|
|
617
|
-
}),
|
|
618
|
-
},
|
|
619
|
-
});
|
|
620
602
|
console.error(err_2);
|
|
621
603
|
throw err_2;
|
|
622
604
|
case 4: return [2 /*return*/];
|
|
@@ -713,7 +695,6 @@ function Inner(_a) {
|
|
|
713
695
|
return [2 /*return*/, res2];
|
|
714
696
|
case 13:
|
|
715
697
|
err_4 = _c.sent();
|
|
716
|
-
Sentry.captureException(err_4);
|
|
717
698
|
console.error(err_4);
|
|
718
699
|
throw err_4;
|
|
719
700
|
case 14: return [2 /*return*/];
|
package/lib/connector.js
CHANGED
|
@@ -48,9 +48,9 @@ export function getUniversalConnector(rpcUrl) {
|
|
|
48
48
|
case 0: return [4 /*yield*/, UniversalConnector.init({
|
|
49
49
|
projectId: projectId,
|
|
50
50
|
metadata: {
|
|
51
|
-
name: "
|
|
52
|
-
description: "
|
|
53
|
-
url: "
|
|
51
|
+
name: "Suilend",
|
|
52
|
+
description: "Sui's DeFi Suite",
|
|
53
|
+
url: "https://suilend.fi/",
|
|
54
54
|
icons: ["https://appkit.reown.com/icon.png"],
|
|
55
55
|
},
|
|
56
56
|
networks: [
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@suilend/sui-fe-next","version":"0.1.
|
|
1
|
+
{"name":"@suilend/sui-fe-next","version":"0.1.82","private":false,"description":"A collection of TypeScript frontend components and hooks","author":"Suilend","license":"MIT","main":"./index.js","exports":{".":"./index.js","./contexts/SettingsContext":"./contexts/SettingsContext.jsx","./contexts/WalletContext":"./contexts/WalletContext.jsx","./contexts":"./contexts/index.js","./fetchers":"./fetchers/index.js","./fetchers/useFetchBalances":"./fetchers/useFetchBalances.js","./hooks":"./hooks/index.js","./hooks/keypair":"./hooks/keypair.js","./hooks/useCoinMetadataMap":"./hooks/useCoinMetadataMap.js","./hooks/useIsAndroid":"./hooks/useIsAndroid.jsx","./hooks/useIsTouchscreen":"./hooks/useIsTouchscreen.jsx","./hooks/useIsiOS":"./hooks/useIsiOS.jsx","./hooks/useLedgerHashDialog":"./hooks/useLedgerHashDialog.js","./hooks/useRefreshOnBalancesChange":"./hooks/useRefreshOnBalancesChange.js","./lib/connector":"./lib/connector.js","./lib":"./lib/index.js","./lib/router":"./lib/router.js","./lib/toasts":"./lib/toasts.jsx"},"types":"./index.js","scripts":{"build":"rm -rf ./dist && bun tsc","eslint":"eslint --fix \"./src/**/*.ts\"","prettier":"prettier --write \"./src/**/*\"","lint":"bun eslint && bun prettier && bun tsc --noEmit","release":"bun run build && bun ts-node ./release.ts && cd ./dist && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/suilend/sui-fe.git"},"bugs":{"url":"https://github.com/suilend/sui-fe/issues"},"dependencies":{"@reown/appkit":"^1.8.10","@reown/appkit-common":"^1.8.10","@reown/appkit-universal-connector":"^1.8.10","@tanstack/react-query":"^5.60.2","bignumber.js":"^9.1.2","launchdarkly-react-client-sdk":"^3.6.0","lodash":"^4.17.21","next":"^15.0.3","react":"18.3.1","react-dom":"18.3.1","react-responsive":"^10.0.0","shio-sdk":"^1.0.8","sonner":"1.4.41","swr":"^2.2.5","tailwind-merge":"^2.5.4","usehooks-ts":"^3.1.1"},"devDependencies":{"@tsconfig/next":"^2.0.3","@types/lodash":"^4.17.13","@types/node":"^22.9.0","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@typescript-eslint/eslint-plugin":"^8.14.0","@typescript-eslint/parser":"^8.14.0","eslint":"^9.14.0","eslint-config-next":"^15.0.3","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.1","prettier":"^3.3.3","ts-node":"^10.9.2","typescript":"^5.6.3"},"peerDependencies":{"@mysten/dapp-kit":"0.19.4","@mysten/sui":"1.42.0","@mysten/wallet-standard":"0.19.2","@suilend/sui-fe":"^0.3.42"}}
|