@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/constants.cjs +4 -1
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +2 -1
- package/dist/constants.d.ts +2 -1
- package/dist/constants.mjs +3 -1
- package/dist/constants.mjs.map +1 -1
- package/dist/{core-B0-MyOv6.d.cts → core-DIWJpcYO.d.cts} +4 -0
- package/dist/{core-qSEzIBWs.d.ts → core-DtweriN4.d.ts} +4 -0
- package/dist/core.cjs +25 -3
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.mjs +25 -3
- package/dist/core.mjs.map +1 -1
- package/dist/index.cjs +1024 -636
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +979 -592
- package/dist/index.mjs.map +1 -1
- package/dist/wallet.cjs +5 -3
- package/dist/wallet.cjs.map +1 -1
- package/dist/wallet.mjs +5 -3
- package/dist/wallet.mjs.map +1 -1
- package/dist/widget.cjs +1022 -636
- package/dist/widget.cjs.map +1 -1
- package/dist/widget.mjs +978 -592
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
package/dist/core.d.cts
CHANGED
package/dist/core.d.ts
CHANGED
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.
|
|
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;
|