@trustware/sdk-staging 1.1.4-staging.35 → 1.1.4-staging.36

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/wallet.mjs CHANGED
@@ -206,11 +206,10 @@ import { Transaction, VersionedTransaction } from "@solana/web3.js";
206
206
 
207
207
  // src/constants.ts
208
208
  var SDK_NAME = "@trustware/sdk";
209
- var SDK_VERSION = "1.1.4-staging.35";
209
+ var SDK_VERSION = "1.1.4-staging.36";
210
210
  var API_ROOT = "https://bv-staging-api.trustware.io";
211
211
  var API_PREFIX = "/api";
212
212
  var ASSETS_BASE_URL = "https://app.trustware.io";
213
- var WALLETCONNECT_PROJECT_ID = "4ead125c-63be-4b1a-a835-cef2dce67b84";
214
213
 
215
214
  // src/config/defaults.ts
216
215
  var DEFAULT_SLIPPAGE = 1;
@@ -242,33 +241,6 @@ var DEFAULT_FEATURE_FLAGS = {
242
241
  };
243
242
 
244
243
  // src/config/merge.ts
245
- function resolveWalletConnectConfig(input) {
246
- if (input?.disabled) return void 0;
247
- const projectId = input?.projectId ?? WALLETCONNECT_PROJECT_ID;
248
- return {
249
- projectId,
250
- chains: input?.chains ?? [1],
251
- // Default to Ethereum mainnet
252
- optionalChains: input?.optionalChains ?? [
253
- 1,
254
- 10,
255
- 56,
256
- 137,
257
- 8453,
258
- 42161,
259
- 43114
260
- ],
261
- // ETH, OP, BSC, Polygon, Base, Arbitrum, Avalanche
262
- metadata: {
263
- name: input?.metadata?.name ?? "Trustware",
264
- description: input?.metadata?.description ?? "Cross-chain bridge & top-up",
265
- url: input?.metadata?.url ?? "https://trustware.io",
266
- icons: input?.metadata?.icons ?? ["https://app.trustware.io/icon.png"]
267
- },
268
- relayUrl: input?.relayUrl,
269
- showQrModal: input?.showQrModal ?? true
270
- };
271
- }
272
244
  function deepMerge(base, patch) {
273
245
  if (!patch) return { ...base };
274
246
  const out = Array.isArray(base) ? [...base] : { ...base };
@@ -323,7 +295,7 @@ function resolveConfig(input) {
323
295
  onRateLimited: input.retry?.onRateLimited,
324
296
  onRateLimitApproaching: input.retry?.onRateLimitApproaching
325
297
  };
326
- const walletConnect = resolveWalletConnectConfig(input.walletConnect);
298
+ const walletConnect = input.walletConnect;
327
299
  const features = {
328
300
  tokensPagination: input.features?.tokensPagination ?? DEFAULT_FEATURE_FLAGS.tokensPagination,
329
301
  balanceStreaming: input.features?.balanceStreaming ?? DEFAULT_FEATURE_FLAGS.balanceStreaming,