@suilend/sui-fe-next 0.1.52 → 0.1.53
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.
|
@@ -51,6 +51,8 @@ export function SettingsContextProvider(_a) {
|
|
|
51
51
|
}, [explorerId]);
|
|
52
52
|
// Gas budget
|
|
53
53
|
var _e = useLocalStorage("gasBudget", defaultContextValue.gasBudget), gasBudget = _e[0], setGasBudget = _e[1];
|
|
54
|
+
// Using Ledger
|
|
55
|
+
var _f = useLocalStorage("isUsingLedger", false), isUsingLedger = _f[0], setIsUsingLedger = _f[1];
|
|
54
56
|
// Sui client
|
|
55
57
|
var suiClient = useMemo(function () { return new SuiClient({ url: rpc.url }); }, [rpc.url]);
|
|
56
58
|
// Context
|
|
@@ -62,6 +64,8 @@ export function SettingsContextProvider(_a) {
|
|
|
62
64
|
setExplorerId: setExplorerId,
|
|
63
65
|
gasBudget: gasBudget,
|
|
64
66
|
setGasBudget: setGasBudget,
|
|
67
|
+
isUsingLedger: isUsingLedger,
|
|
68
|
+
setIsUsingLedger: setIsUsingLedger,
|
|
65
69
|
suiClient: suiClient,
|
|
66
70
|
}); }, [
|
|
67
71
|
rpc,
|
|
@@ -71,6 +75,8 @@ export function SettingsContextProvider(_a) {
|
|
|
71
75
|
setExplorerId,
|
|
72
76
|
gasBudget,
|
|
73
77
|
setGasBudget,
|
|
78
|
+
isUsingLedger,
|
|
79
|
+
setIsUsingLedger,
|
|
74
80
|
suiClient,
|
|
75
81
|
]);
|
|
76
82
|
return (<SettingsContext.Provider value={contextValue}>
|
|
@@ -482,9 +482,11 @@ function Inner(_a) {
|
|
|
482
482
|
return [2 /*return*/, inspectResults];
|
|
483
483
|
case 3:
|
|
484
484
|
err_2 = _a.sent();
|
|
485
|
+
// transaction.getData().inputs.filter(input=>!!input.Object).map(input=>input.)
|
|
485
486
|
Sentry.captureException(err_2, {
|
|
486
487
|
tags: {
|
|
487
488
|
simulation: true,
|
|
489
|
+
transactionData: JSON.stringify(transaction.getData()),
|
|
488
490
|
},
|
|
489
491
|
});
|
|
490
492
|
console.error(err_2);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@suilend/sui-fe-next","version":"0.1.
|
|
1
|
+
{"name":"@suilend/sui-fe-next","version":"0.1.53","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":"./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":{"@sentry/nextjs":"^8.38.0","@tanstack/react-query":"^5.60.2","bignumber.js":"^9.1.2","launchdarkly-react-client-sdk":"^3.6.0","lodash":"^4.17.21","mixpanel-browser":"^2.56.0","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/mixpanel-browser":"^2.50.2","@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.16.0","@mysten/sui":"1.28.2","@mysten/wallet-standard":"0.14.7","@suilend/sui-fe":"^0.3.9"}}
|