@trustware/sdk-staging 1.1.9-staging.7 → 1.1.11-staging.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/dist/constants.cjs +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/{core-DzqVEWwP.d.ts → core-BgYLe9Q7.d.ts} +15 -2
- package/dist/{core-gNyi5xsp.d.cts → core-fLSt4qD2.d.cts} +15 -2
- package/dist/core.cjs +318 -145
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.mjs +318 -144
- package/dist/core.mjs.map +1 -1
- package/dist/index.cjs +407 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +433 -140
- package/dist/index.mjs.map +1 -1
- package/dist/{manager-Dn4muk74.d.ts → manager-BY3NHAks.d.ts} +138 -2
- package/dist/{manager-DWFNyouP.d.cts → manager-DT8enQbE.d.cts} +138 -2
- package/dist/{detect-Cprq6X9o.d.ts → metadata-BPvFYMlc.d.ts} +5 -2
- package/dist/{detect-DWL4uExV.d.cts → metadata-DyxUcKHk.d.cts} +5 -2
- package/dist/smart-account.cjs +1 -1
- package/dist/smart-account.cjs.map +1 -1
- package/dist/smart-account.d.cts +247 -234
- package/dist/smart-account.d.ts +247 -234
- package/dist/smart-account.mjs +1 -1
- package/dist/smart-account.mjs.map +1 -1
- package/dist/wallet.cjs +15 -1
- package/dist/wallet.cjs.map +1 -1
- package/dist/wallet.d.cts +4 -7
- package/dist/wallet.d.ts +4 -7
- package/dist/wallet.mjs +15 -1
- package/dist/wallet.mjs.map +1 -1
- package/dist/widget.cjs +381 -113
- package/dist/widget.cjs.map +1 -1
- package/dist/widget.mjs +409 -139
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
package/dist/wallet.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
import { S as SolanaProviderLike, W as WalletMeta, D as DetectedWallet, a as WalletId, b as SolanaWalletInterface } from './manager-DT8enQbE.cjs';
|
|
2
|
+
export { c as WagmiBridge, d as WagmiConnector, e as WalletSnapshot, u as useWalletConnectConnect, f as useWalletExternalDisconnect, g as useWalletInfo, h as useWireDetectionIntoManager, w as walletManager } from './manager-DT8enQbE.cjs';
|
|
3
|
+
export { P as POPULAR_ORDER, W as WALLETS, a as autoDetectWallet, b as buildDetectedWalletFromProvider, c as connectDetectedWallet, d as createWalletConnectEntry, t as toWalletInterfaceFromDetected, u as useEIP1193, e as useIsMobile, f as useWagmi, g as useWalletDetection } from './metadata-DyxUcKHk.cjs';
|
|
4
4
|
import './blockchain-BxAFzp0s.cjs';
|
|
5
5
|
|
|
6
6
|
type SolanaEventHandlers = {
|
|
@@ -15,9 +15,6 @@ declare function detectSolanaWallets(wallets: WalletMeta[]): DetectedWallet[];
|
|
|
15
15
|
declare function bindSolanaProviderEvents(provider: SolanaProviderLike, handlers: SolanaEventHandlers): () => void;
|
|
16
16
|
declare function toSolanaWalletInterface(provider: SolanaProviderLike): SolanaWalletInterface;
|
|
17
17
|
|
|
18
|
-
declare const POPULAR_ORDER: WalletId[];
|
|
19
|
-
declare const WALLETS: WalletMeta[];
|
|
20
|
-
|
|
21
18
|
declare function formatDeepLink(id: string, currentUrl: string): string | undefined;
|
|
22
19
|
/**
|
|
23
20
|
* Format a WalletConnect URI for mobile deep linking.
|
|
@@ -37,4 +34,4 @@ declare function formatWalletConnectDeepLink(wcUri: string): string;
|
|
|
37
34
|
*/
|
|
38
35
|
declare function formatWalletConnectDeepLinkForWallet(walletId: string, wcUri: string): string;
|
|
39
36
|
|
|
40
|
-
export {
|
|
37
|
+
export { bindSolanaProviderEvents, decodeBase64, detectSolanaWallets, encodeBase64, formatDeepLink, formatWalletConnectDeepLink, formatWalletConnectDeepLinkForWallet, getSolanaProviders, toSolanaWalletInterface };
|
package/dist/wallet.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
import { S as SolanaProviderLike, W as WalletMeta, D as DetectedWallet, a as WalletId, b as SolanaWalletInterface } from './manager-BY3NHAks.js';
|
|
2
|
+
export { c as WagmiBridge, d as WagmiConnector, e as WalletSnapshot, u as useWalletConnectConnect, f as useWalletExternalDisconnect, g as useWalletInfo, h as useWireDetectionIntoManager, w as walletManager } from './manager-BY3NHAks.js';
|
|
3
|
+
export { P as POPULAR_ORDER, W as WALLETS, a as autoDetectWallet, b as buildDetectedWalletFromProvider, c as connectDetectedWallet, d as createWalletConnectEntry, t as toWalletInterfaceFromDetected, u as useEIP1193, e as useIsMobile, f as useWagmi, g as useWalletDetection } from './metadata-BPvFYMlc.js';
|
|
4
4
|
import './blockchain-BxAFzp0s.js';
|
|
5
5
|
|
|
6
6
|
type SolanaEventHandlers = {
|
|
@@ -15,9 +15,6 @@ declare function detectSolanaWallets(wallets: WalletMeta[]): DetectedWallet[];
|
|
|
15
15
|
declare function bindSolanaProviderEvents(provider: SolanaProviderLike, handlers: SolanaEventHandlers): () => void;
|
|
16
16
|
declare function toSolanaWalletInterface(provider: SolanaProviderLike): SolanaWalletInterface;
|
|
17
17
|
|
|
18
|
-
declare const POPULAR_ORDER: WalletId[];
|
|
19
|
-
declare const WALLETS: WalletMeta[];
|
|
20
|
-
|
|
21
18
|
declare function formatDeepLink(id: string, currentUrl: string): string | undefined;
|
|
22
19
|
/**
|
|
23
20
|
* Format a WalletConnect URI for mobile deep linking.
|
|
@@ -37,4 +34,4 @@ declare function formatWalletConnectDeepLink(wcUri: string): string;
|
|
|
37
34
|
*/
|
|
38
35
|
declare function formatWalletConnectDeepLinkForWallet(walletId: string, wcUri: string): string;
|
|
39
36
|
|
|
40
|
-
export {
|
|
37
|
+
export { bindSolanaProviderEvents, decodeBase64, detectSolanaWallets, encodeBase64, formatDeepLink, formatWalletConnectDeepLink, formatWalletConnectDeepLinkForWallet, getSolanaProviders, toSolanaWalletInterface };
|
package/dist/wallet.mjs
CHANGED
|
@@ -193,6 +193,20 @@ var init_eipWallets = __esm({
|
|
|
193
193
|
"src/wallets/eipWallets.ts"() {
|
|
194
194
|
"use strict";
|
|
195
195
|
CHAIN_PARAMS = {
|
|
196
|
+
1: {
|
|
197
|
+
chainIdHex: "0x1",
|
|
198
|
+
chainName: "Ethereum",
|
|
199
|
+
rpcUrls: ["https://eth.llamarpc.com"],
|
|
200
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
201
|
+
blockExplorerUrls: ["https://etherscan.io"]
|
|
202
|
+
},
|
|
203
|
+
137: {
|
|
204
|
+
chainIdHex: "0x89",
|
|
205
|
+
chainName: "Polygon",
|
|
206
|
+
rpcUrls: ["https://polygon-rpc.com"],
|
|
207
|
+
nativeCurrency: { name: "POL", symbol: "POL", decimals: 18 },
|
|
208
|
+
blockExplorerUrls: ["https://polygonscan.com"]
|
|
209
|
+
},
|
|
196
210
|
8453: {
|
|
197
211
|
chainIdHex: "0x2105",
|
|
198
212
|
chainName: "Base",
|
|
@@ -224,7 +238,7 @@ var init_constants = __esm({
|
|
|
224
238
|
"src/constants.ts"() {
|
|
225
239
|
"use strict";
|
|
226
240
|
SDK_NAME = "@trustware/sdk";
|
|
227
|
-
SDK_VERSION = "1.1.
|
|
241
|
+
SDK_VERSION = "1.1.11-staging.1";
|
|
228
242
|
API_ROOT = "https://bv-staging-api.trustware.io";
|
|
229
243
|
API_PREFIX = "/api";
|
|
230
244
|
WALLETCONNECT_PROJECT_ID = "72ea74c400f5111d43aea638d7d83a24";
|