@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.
Files changed (30) hide show
  1. package/.github/workflows/publish.yml +1 -1
  2. package/CHANGELOG.md +12 -0
  3. package/dist/index.d.mts +4 -7
  4. package/dist/index.d.ts +4 -7
  5. package/dist/index.global.js +3845 -3559
  6. package/dist/index.js +29756 -87
  7. package/dist/index.js.map +1 -0
  8. package/dist/index.mjs +29813 -87
  9. package/dist/index.mjs.map +1 -0
  10. package/package.json +2 -2
  11. package/src/assets/icons/DotRedIcon.tsx +12 -0
  12. package/src/assets/icons/index.ts +1 -0
  13. package/src/components/Swap/SwapView/ConfirmationView/TxOverview/SwapPanel/index.tsx +15 -8
  14. package/src/components/Swap/SwapView/ConfirmationView/TxOverview/index.tsx +196 -29
  15. package/src/components/Swap/SwapView/ConfirmationView/TxResult/index.tsx +11 -1
  16. package/src/components/Swap/SwapView/FeesPanel/Fees/index.tsx +12 -7
  17. package/src/components/Swap/SwapView/FeesPanel/index.tsx +158 -9
  18. package/src/components/Swap/SwapView/SwapButton/index.tsx +40 -11
  19. package/src/components/Swap/SwapView/SwapPanel/AmountPanel/index.tsx +27 -1
  20. package/src/components/Swap/SwapView/SwapPanel/TokenPanel/TokenPicker/index.tsx +60 -18
  21. package/src/components/Swap/SwapView/WalletPicker/index.tsx +98 -27
  22. package/src/constants/index.ts +5 -2
  23. package/src/context/SwapProvider.tsx +10 -2
  24. package/src/contracts/addresses.ts +16 -0
  25. package/src/models/payloads/GetRoutePayload.ts +5 -8
  26. package/src/services/svm/core/client/index.ts +8 -2
  27. package/src/services/svm/core/client/send.ts +3 -44
  28. package/src/services/svm/core/models.ts +1 -1
  29. package/src/utils/parseWeb3Error.ts +1 -1
  30. package/tsup.config.ts +2 -2
@@ -105,7 +105,7 @@ export interface CCIPProvider {
105
105
  connection: Connection;
106
106
 
107
107
  /** Wallet or keypair for signing transactions */
108
- wallet: Keypair;
108
+ wallet: Keypair | null;
109
109
 
110
110
  /** Get the public key address of the signer */
111
111
  getAddress(): PublicKey;
@@ -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: " + error.message;
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: true,
11
+ minify: false,
12
12
  splitting: false,
13
- sourcemap: false,
13
+ sourcemap: true,
14
14
  noExternal: ["ethers"],
15
15
  outDir: "dist",
16
16
  esbuildOptions(options) {