@xswap-link/sdk 0.10.15 → 0.11.1
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/.github/workflows/publish.yml +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +4 -7
- package/dist/index.d.ts +4 -7
- package/dist/index.global.js +3845 -3559
- package/dist/index.js +29756 -87
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +29813 -87
- package/dist/index.mjs.map +1 -0
- package/package.json +2 -2
- package/src/assets/icons/DotRedIcon.tsx +12 -0
- package/src/assets/icons/index.ts +1 -0
- package/src/components/Swap/SwapView/ConfirmationView/TxOverview/SwapPanel/index.tsx +15 -8
- package/src/components/Swap/SwapView/ConfirmationView/TxOverview/index.tsx +196 -29
- package/src/components/Swap/SwapView/ConfirmationView/TxResult/index.tsx +11 -1
- package/src/components/Swap/SwapView/FeesPanel/Fees/index.tsx +12 -7
- package/src/components/Swap/SwapView/FeesPanel/index.tsx +158 -9
- package/src/components/Swap/SwapView/SwapButton/index.tsx +40 -11
- package/src/components/Swap/SwapView/SwapPanel/AmountPanel/index.tsx +27 -1
- package/src/components/Swap/SwapView/SwapPanel/TokenPanel/TokenPicker/index.tsx +60 -18
- package/src/components/Swap/SwapView/WalletPicker/index.tsx +98 -27
- package/src/constants/index.ts +5 -2
- package/src/context/SwapProvider.tsx +10 -2
- package/src/contracts/addresses.ts +16 -0
- package/src/models/payloads/GetRoutePayload.ts +5 -8
- package/src/services/svm/core/client/index.ts +8 -2
- package/src/services/svm/core/client/send.ts +3 -44
- package/src/services/svm/core/models.ts +1 -1
- package/src/utils/parseWeb3Error.ts +1 -1
- package/tsup.config.ts +2 -2
|
@@ -88,7 +88,7 @@ export function parseWeb3Error(error: any): string {
|
|
|
88
88
|
case ethers.errors.UNPREDICTABLE_GAS_LIMIT:
|
|
89
89
|
return "Unable to estimate gas limit. The transaction might fail.";
|
|
90
90
|
default:
|
|
91
|
-
return "An error occurred
|
|
91
|
+
return "An unexpected error occurred.";
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
package/tsup.config.ts
CHANGED
|
@@ -8,9 +8,9 @@ export default defineConfig(() => {
|
|
|
8
8
|
format: ["cjs", "esm"],
|
|
9
9
|
dts: true,
|
|
10
10
|
clean: true,
|
|
11
|
-
minify:
|
|
11
|
+
minify: false,
|
|
12
12
|
splitting: false,
|
|
13
|
-
sourcemap:
|
|
13
|
+
sourcemap: true,
|
|
14
14
|
noExternal: ["ethers"],
|
|
15
15
|
outDir: "dist",
|
|
16
16
|
esbuildOptions(options) {
|