@trustware/sdk-staging 1.1.3-staging.20 → 1.1.3-staging.31

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/core.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { a as Trustware, e as TrustwareCore } from './core-B0-MyOv6.cjs';
1
+ export { a as Trustware, e as TrustwareCore } from './core-DIWJpcYO.cjs';
2
2
  import './manager-BPgytsNL.cjs';
3
3
  import './types-BrVfNxND.cjs';
package/dist/core.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { a as Trustware, e as TrustwareCore } from './core-qSEzIBWs.js';
1
+ export { a as Trustware, e as TrustwareCore } from './core-DtweriN4.js';
2
2
  import './manager-BPgytsNL.js';
3
3
  import './types-BrVfNxND.js';
package/dist/core.mjs CHANGED
@@ -45,7 +45,8 @@ var init_config = __esm({
45
45
  };
46
46
  DEFAULT_FEATURE_FLAGS = {
47
47
  tokensPagination: false,
48
- balanceStreaming: false
48
+ balanceStreaming: false,
49
+ shouldAllowGA4: true
49
50
  };
50
51
  }
51
52
  });
@@ -56,7 +57,7 @@ var init_constants = __esm({
56
57
  "src/constants.ts"() {
57
58
  "use strict";
58
59
  SDK_NAME = "@trustware/sdk";
59
- SDK_VERSION = "1.1.3-staging.20";
60
+ SDK_VERSION = "1.1.3-staging.31";
60
61
  API_ROOT = "https://bv-staging-api.trustware.io";
61
62
  API_PREFIX = "/api";
62
63
  WALLETCONNECT_PROJECT_ID = "4ead125c-63be-4b1a-a835-cef2dce67b84";
@@ -148,7 +149,8 @@ function resolveConfig(input) {
148
149
  const walletConnect = resolveWalletConnectConfig(input.walletConnect);
149
150
  const features = {
150
151
  tokensPagination: input.features?.tokensPagination ?? DEFAULT_FEATURE_FLAGS.tokensPagination,
151
- balanceStreaming: input.features?.balanceStreaming ?? DEFAULT_FEATURE_FLAGS.balanceStreaming
152
+ balanceStreaming: input.features?.balanceStreaming ?? DEFAULT_FEATURE_FLAGS.balanceStreaming,
153
+ shouldAllowGA4: input.features?.shouldAllowGA4 ?? DEFAULT_FEATURE_FLAGS.shouldAllowGA4
152
154
  };
153
155
  return {
154
156
  apiKey: input.apiKey,
@@ -3516,6 +3518,26 @@ var Trustware = {
3516
3518
  });
3517
3519
  return Trustware;
3518
3520
  },
3521
+ setDestinationChain(chain) {
3522
+ const prev = TrustwareConfigStore.get();
3523
+ TrustwareConfigStore.update({
3524
+ routes: {
3525
+ ...prev.routes,
3526
+ toChain: chain
3527
+ }
3528
+ });
3529
+ return Trustware;
3530
+ },
3531
+ setDestinationToken(token) {
3532
+ const prev = TrustwareConfigStore.get();
3533
+ TrustwareConfigStore.update({
3534
+ routes: {
3535
+ ...prev.routes,
3536
+ toToken: token
3537
+ }
3538
+ });
3539
+ return Trustware;
3540
+ },
3519
3541
  /** Read active wallet */
3520
3542
  getWallet() {
3521
3543
  return walletManager.wallet;