@aurum-sdk/core 0.3.0-canary.0 → 0.3.0
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/{BraveAdapter-XGUK2CH7.js → BraveAdapter-ALBZR2RG.js} +7 -7
- package/dist/{BraveAdapter-GTB4OCMH.mjs → BraveAdapter-BPD5PDJH.mjs} +2 -2
- package/dist/{CoinbaseWalletAdapter-EV44SYND.js → CoinbaseWalletAdapter-BLUJR23D.js} +9 -9
- package/dist/{CoinbaseWalletAdapter-A6RMB5AG.mjs → CoinbaseWalletAdapter-IDB2DFH4.mjs} +2 -2
- package/dist/{EmailAdapter-T5FVQLCY.mjs → EmailAdapter-RUV6JG6Z.mjs} +2 -2
- package/dist/{EmailAdapter-Q63KI6DV.js → EmailAdapter-SY65VHGK.js} +10 -10
- package/dist/{MetaMaskAdapter-X5MUH2DT.js → MetaMaskAdapter-4V3XM6J2.js} +7 -7
- package/dist/{MetaMaskAdapter-KX7EJ73V.mjs → MetaMaskAdapter-KPNRCMOF.mjs} +2 -2
- package/dist/{PhantomAdapter-REAJL27H.mjs → PhantomAdapter-7MB32F5M.mjs} +2 -2
- package/dist/{PhantomAdapter-C7PQCQHP.js → PhantomAdapter-YTN5PUDI.js} +7 -7
- package/dist/{RabbyAdapter-4SEMVMND.mjs → RabbyAdapter-QVNCSWYC.mjs} +2 -2
- package/dist/{RabbyAdapter-QLBUCYWB.js → RabbyAdapter-SOLYF74M.js} +7 -7
- package/dist/{WalletConnectAdapter-J5J3ILFG.mjs → WalletConnectAdapter-5YL5KFGI.mjs} +2 -2
- package/dist/{WalletConnectAdapter-NKQZY25A.js → WalletConnectAdapter-VMN6R5LO.js} +7 -7
- package/dist/{chunk-7WLUHQA3.mjs → chunk-222UJ3OP.mjs} +2 -2
- package/dist/{chunk-4XQZ5JBS.js → chunk-MRORL6L3.js} +40 -40
- package/dist/{chunk-D7M3K26I.mjs → chunk-RRUPCUSZ.mjs} +2 -2
- package/dist/{chunk-ALDVMRQG.js → chunk-XUD6VNF7.js} +2 -2
- package/dist/index.js +93 -93
- package/dist/index.mjs +9 -9
- package/dist/widgets.js +13 -13
- package/dist/widgets.mjs +2 -2
- package/package.json +3 -3
|
@@ -6,7 +6,7 @@ var _chunkXVRTCAR4js = require('./chunk-XVRTCAR4.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkXUD6VNF7js = require('./chunk-XUD6VNF7.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
@@ -16,9 +16,9 @@ _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
|
|
|
16
16
|
var BRAVE_RDNS = "com.brave.wallet";
|
|
17
17
|
var BraveAdapter = class {
|
|
18
18
|
constructor() {
|
|
19
|
-
this.id =
|
|
20
|
-
this.name =
|
|
21
|
-
this.icon = _nullishCoalesce(
|
|
19
|
+
this.id = _chunkXUD6VNF7js.WalletId.Brave;
|
|
20
|
+
this.name = _chunkXUD6VNF7js.WalletName.Brave;
|
|
21
|
+
this.icon = _nullishCoalesce(_chunkXUD6VNF7js.getLogoDataUri.call(void 0, _chunkXUD6VNF7js.WalletId.Brave, "brand"), () => ( ""));
|
|
22
22
|
this.downloadUrl = "https://brave.com/download";
|
|
23
23
|
this.wcDeepLinkUrl = null;
|
|
24
24
|
this.provider = null;
|
|
@@ -81,7 +81,7 @@ var BraveAdapter = class {
|
|
|
81
81
|
await this.providerPromise;
|
|
82
82
|
}
|
|
83
83
|
if (!this.provider) {
|
|
84
|
-
|
|
84
|
+
_chunkXUD6VNF7js.sentryLogger.error("Brave Wallet is not available");
|
|
85
85
|
throw new Error("Brave Wallet is not available");
|
|
86
86
|
}
|
|
87
87
|
await this.provider.request({
|
|
@@ -93,7 +93,7 @@ var BraveAdapter = class {
|
|
|
93
93
|
params: []
|
|
94
94
|
});
|
|
95
95
|
if (!accounts || accounts.length === 0 || !accounts[0]) {
|
|
96
|
-
|
|
96
|
+
_chunkXUD6VNF7js.sentryLogger.error("No accounts returned from Brave Wallet");
|
|
97
97
|
throw new Error("No accounts returned from Brave Wallet");
|
|
98
98
|
}
|
|
99
99
|
return {
|
|
@@ -150,4 +150,4 @@ var BraveAdapter = class {
|
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
exports.BraveAdapter = BraveAdapter;
|
|
153
|
-
//# sourceMappingURL=BraveAdapter-
|
|
153
|
+
//# sourceMappingURL=BraveAdapter-ALBZR2RG.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
WalletName,
|
|
7
7
|
getLogoDataUri,
|
|
8
8
|
sentryLogger
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RRUPCUSZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
init_polyfills
|
|
12
12
|
} from "./chunk-J6XFKNJN.mjs";
|
|
@@ -150,4 +150,4 @@ var BraveAdapter = class {
|
|
|
150
150
|
export {
|
|
151
151
|
BraveAdapter
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=BraveAdapter-
|
|
153
|
+
//# sourceMappingURL=BraveAdapter-BPD5PDJH.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXUD6VNF7js = require('./chunk-XUD6VNF7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
@@ -12,9 +12,9 @@ var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
|
12
12
|
_chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
|
|
13
13
|
var CoinbaseWalletAdapter = class {
|
|
14
14
|
constructor({ appName, appLogoUrl, telemetry }) {
|
|
15
|
-
this.id =
|
|
16
|
-
this.name =
|
|
17
|
-
this.icon = _nullishCoalesce(
|
|
15
|
+
this.id = _chunkXUD6VNF7js.WalletId.CoinbaseWallet;
|
|
16
|
+
this.name = _chunkXUD6VNF7js.WalletName.CoinbaseWallet;
|
|
17
|
+
this.icon = _nullishCoalesce(_chunkXUD6VNF7js.getLogoDataUri.call(void 0, _chunkXUD6VNF7js.WalletId.CoinbaseWallet, "brand"), () => ( ""));
|
|
18
18
|
this.hide = false;
|
|
19
19
|
this.downloadUrl = "https://www.coinbase.com/wallet/downloads";
|
|
20
20
|
this.wcDeepLinkUrl = "cbwallet://wc?uri=";
|
|
@@ -44,7 +44,7 @@ var CoinbaseWalletAdapter = class {
|
|
|
44
44
|
});
|
|
45
45
|
this.provider = coinbaseSdk.getProvider();
|
|
46
46
|
} catch (error) {
|
|
47
|
-
|
|
47
|
+
_chunkXUD6VNF7js.sentryLogger.warn("Failed to initialize Coinbase Wallet provider", { error });
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
isInstalled() {
|
|
@@ -53,7 +53,7 @@ var CoinbaseWalletAdapter = class {
|
|
|
53
53
|
async connect() {
|
|
54
54
|
await this.ensureInitialized();
|
|
55
55
|
if (!this.provider) {
|
|
56
|
-
|
|
56
|
+
_chunkXUD6VNF7js.sentryLogger.error("Coinbase Wallet is not available");
|
|
57
57
|
throw new Error("Coinbase Wallet is not available");
|
|
58
58
|
}
|
|
59
59
|
const accounts = await this.provider.request({
|
|
@@ -61,7 +61,7 @@ var CoinbaseWalletAdapter = class {
|
|
|
61
61
|
params: []
|
|
62
62
|
});
|
|
63
63
|
if (!accounts || accounts.length === 0 || !accounts[0]) {
|
|
64
|
-
|
|
64
|
+
_chunkXUD6VNF7js.sentryLogger.error("No accounts returned from Coinbase Wallet");
|
|
65
65
|
throw new Error("No accounts returned from Coinbase Wallet");
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
@@ -101,7 +101,7 @@ var CoinbaseWalletAdapter = class {
|
|
|
101
101
|
await this.provider.disconnect();
|
|
102
102
|
}
|
|
103
103
|
} catch (error) {
|
|
104
|
-
|
|
104
|
+
_chunkXUD6VNF7js.sentryLogger.warn("Error disconnecting from Coinbase Wallet", { error });
|
|
105
105
|
} finally {
|
|
106
106
|
this.clearLocalStorage();
|
|
107
107
|
}
|
|
@@ -141,4 +141,4 @@ var CoinbaseWalletAdapter = class {
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
exports.CoinbaseWalletAdapter = CoinbaseWalletAdapter;
|
|
144
|
-
//# sourceMappingURL=CoinbaseWalletAdapter-
|
|
144
|
+
//# sourceMappingURL=CoinbaseWalletAdapter-BLUJR23D.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
WalletName,
|
|
4
4
|
getLogoDataUri,
|
|
5
5
|
sentryLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RRUPCUSZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
init_polyfills
|
|
9
9
|
} from "./chunk-J6XFKNJN.mjs";
|
|
@@ -141,4 +141,4 @@ var CoinbaseWalletAdapter = class {
|
|
|
141
141
|
export {
|
|
142
142
|
CoinbaseWalletAdapter
|
|
143
143
|
};
|
|
144
|
-
//# sourceMappingURL=CoinbaseWalletAdapter-
|
|
144
|
+
//# sourceMappingURL=CoinbaseWalletAdapter-IDB2DFH4.mjs.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
WalletName,
|
|
7
7
|
getLogoDataUri,
|
|
8
8
|
sentryLogger
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RRUPCUSZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
init_polyfills
|
|
12
12
|
} from "./chunk-J6XFKNJN.mjs";
|
|
@@ -209,4 +209,4 @@ var EmailAdapter = _EmailAdapter;
|
|
|
209
209
|
export {
|
|
210
210
|
EmailAdapter
|
|
211
211
|
};
|
|
212
|
-
//# sourceMappingURL=EmailAdapter-
|
|
212
|
+
//# sourceMappingURL=EmailAdapter-RUV6JG6Z.mjs.map
|
|
@@ -6,7 +6,7 @@ var _chunkQOCN4F47js = require('./chunk-QOCN4F47.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkXUD6VNF7js = require('./chunk-XUD6VNF7.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
@@ -15,9 +15,9 @@ var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
|
15
15
|
_chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
|
|
16
16
|
var _EmailAdapter = class _EmailAdapter {
|
|
17
17
|
constructor(config) {
|
|
18
|
-
this.id =
|
|
19
|
-
this.name =
|
|
20
|
-
this.icon = _nullishCoalesce(
|
|
18
|
+
this.id = _chunkXUD6VNF7js.WalletId.Email;
|
|
19
|
+
this.name = _chunkXUD6VNF7js.WalletName.Email;
|
|
20
|
+
this.icon = _nullishCoalesce(_chunkXUD6VNF7js.getLogoDataUri.call(void 0, _chunkXUD6VNF7js.WalletId.Email, "brand"), () => ( ""));
|
|
21
21
|
this.hide = true;
|
|
22
22
|
this.downloadUrl = null;
|
|
23
23
|
this.wcDeepLinkUrl = null;
|
|
@@ -43,7 +43,7 @@ var _EmailAdapter = class _EmailAdapter {
|
|
|
43
43
|
}
|
|
44
44
|
await this.ensureInitialized();
|
|
45
45
|
if (!this.provider) {
|
|
46
|
-
|
|
46
|
+
_chunkXUD6VNF7js.sentryLogger.error("Email is not available");
|
|
47
47
|
throw new Error("Email is not available");
|
|
48
48
|
}
|
|
49
49
|
const { signInWithEmail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./index.web-OPNRZHYZ.js")));
|
|
@@ -56,14 +56,14 @@ var _EmailAdapter = class _EmailAdapter {
|
|
|
56
56
|
}
|
|
57
57
|
await this.ensureInitialized();
|
|
58
58
|
if (!this.provider) {
|
|
59
|
-
|
|
59
|
+
_chunkXUD6VNF7js.sentryLogger.error("Email provider not initialized");
|
|
60
60
|
throw new Error("Email provider not initialized");
|
|
61
61
|
}
|
|
62
62
|
const { verifyEmailOTP } = await Promise.resolve().then(() => _interopRequireWildcard(require("./index.web-OPNRZHYZ.js")));
|
|
63
63
|
return verifyEmailOTP({ flowId, otp });
|
|
64
64
|
}
|
|
65
65
|
async connect() {
|
|
66
|
-
|
|
66
|
+
_chunkXUD6VNF7js.sentryLogger.error("EmailAdapter.connect() is not implemented");
|
|
67
67
|
throw new Error("EmailAdapter.connect() is not implemented");
|
|
68
68
|
}
|
|
69
69
|
async tryRestoreConnection() {
|
|
@@ -176,7 +176,7 @@ var _EmailAdapter = class _EmailAdapter {
|
|
|
176
176
|
const chainIdHex = await base.request({ method: "eth_chainId", params: [] });
|
|
177
177
|
chainId = parseInt(chainIdHex, 16);
|
|
178
178
|
} catch (e3) {
|
|
179
|
-
|
|
179
|
+
_chunkXUD6VNF7js.sentryLogger.error("Failed to get chainId for fallback request");
|
|
180
180
|
throw new Error("Failed to get chainId for fallback request");
|
|
181
181
|
}
|
|
182
182
|
const publicClient = await getPublicClient(chainId);
|
|
@@ -191,7 +191,7 @@ var _EmailAdapter = class _EmailAdapter {
|
|
|
191
191
|
};
|
|
192
192
|
return wrapped;
|
|
193
193
|
} catch (error) {
|
|
194
|
-
|
|
194
|
+
_chunkXUD6VNF7js.sentryLogger.error("Failed to initialize Email provider", { error });
|
|
195
195
|
return null;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
@@ -209,4 +209,4 @@ var EmailAdapter = _EmailAdapter;
|
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
exports.EmailAdapter = EmailAdapter;
|
|
212
|
-
//# sourceMappingURL=EmailAdapter-
|
|
212
|
+
//# sourceMappingURL=EmailAdapter-SY65VHGK.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXUD6VNF7js = require('./chunk-XUD6VNF7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
@@ -13,9 +13,9 @@ _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
|
|
|
13
13
|
var METAMASK_RDNS = "io.metamask";
|
|
14
14
|
var MetaMaskAdapter = class {
|
|
15
15
|
constructor() {
|
|
16
|
-
this.id =
|
|
17
|
-
this.name =
|
|
18
|
-
this.icon = _nullishCoalesce(
|
|
16
|
+
this.id = _chunkXUD6VNF7js.WalletId.MetaMask;
|
|
17
|
+
this.name = _chunkXUD6VNF7js.WalletName.MetaMask;
|
|
18
|
+
this.icon = _nullishCoalesce(_chunkXUD6VNF7js.getLogoDataUri.call(void 0, _chunkXUD6VNF7js.WalletId.MetaMask, "brand"), () => ( ""));
|
|
19
19
|
this.hide = false;
|
|
20
20
|
this.downloadUrl = "https://metamask.io/download";
|
|
21
21
|
this.wcDeepLinkUrl = "metamask://wc?uri=";
|
|
@@ -80,7 +80,7 @@ var MetaMaskAdapter = class {
|
|
|
80
80
|
await this.providerPromise;
|
|
81
81
|
}
|
|
82
82
|
if (!this.provider) {
|
|
83
|
-
|
|
83
|
+
_chunkXUD6VNF7js.sentryLogger.error("MetaMask is not available");
|
|
84
84
|
throw new Error("MetaMask is not available");
|
|
85
85
|
}
|
|
86
86
|
await this.provider.request({
|
|
@@ -92,7 +92,7 @@ var MetaMaskAdapter = class {
|
|
|
92
92
|
params: []
|
|
93
93
|
});
|
|
94
94
|
if (!accounts || accounts.length === 0 || !accounts[0]) {
|
|
95
|
-
|
|
95
|
+
_chunkXUD6VNF7js.sentryLogger.error("No accounts returned from MetaMask");
|
|
96
96
|
throw new Error("No accounts returned from MetaMask");
|
|
97
97
|
}
|
|
98
98
|
return {
|
|
@@ -149,4 +149,4 @@ var MetaMaskAdapter = class {
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
exports.MetaMaskAdapter = MetaMaskAdapter;
|
|
152
|
-
//# sourceMappingURL=MetaMaskAdapter-
|
|
152
|
+
//# sourceMappingURL=MetaMaskAdapter-4V3XM6J2.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
WalletName,
|
|
4
4
|
getLogoDataUri,
|
|
5
5
|
sentryLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RRUPCUSZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
init_polyfills
|
|
9
9
|
} from "./chunk-J6XFKNJN.mjs";
|
|
@@ -149,4 +149,4 @@ var MetaMaskAdapter = class {
|
|
|
149
149
|
export {
|
|
150
150
|
MetaMaskAdapter
|
|
151
151
|
};
|
|
152
|
-
//# sourceMappingURL=MetaMaskAdapter-
|
|
152
|
+
//# sourceMappingURL=MetaMaskAdapter-KPNRCMOF.mjs.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
WalletName,
|
|
4
4
|
getLogoDataUri,
|
|
5
5
|
sentryLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RRUPCUSZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
init_polyfills
|
|
9
9
|
} from "./chunk-J6XFKNJN.mjs";
|
|
@@ -148,4 +148,4 @@ var PhantomAdapter = class {
|
|
|
148
148
|
export {
|
|
149
149
|
PhantomAdapter
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=PhantomAdapter-
|
|
151
|
+
//# sourceMappingURL=PhantomAdapter-7MB32F5M.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXUD6VNF7js = require('./chunk-XUD6VNF7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
@@ -13,9 +13,9 @@ _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
|
|
|
13
13
|
var PHANTOM_RDNS = "app.phantom";
|
|
14
14
|
var PhantomAdapter = class {
|
|
15
15
|
constructor() {
|
|
16
|
-
this.id =
|
|
17
|
-
this.name =
|
|
18
|
-
this.icon = _nullishCoalesce(
|
|
16
|
+
this.id = _chunkXUD6VNF7js.WalletId.Phantom;
|
|
17
|
+
this.name = _chunkXUD6VNF7js.WalletName.Phantom;
|
|
18
|
+
this.icon = _nullishCoalesce(_chunkXUD6VNF7js.getLogoDataUri.call(void 0, _chunkXUD6VNF7js.WalletId.Phantom, "brand"), () => ( ""));
|
|
19
19
|
this.hide = false;
|
|
20
20
|
this.downloadUrl = "https://phantom.com/download";
|
|
21
21
|
this.wcDeepLinkUrl = "phantom://wc?uri=";
|
|
@@ -79,7 +79,7 @@ var PhantomAdapter = class {
|
|
|
79
79
|
await this.providerPromise;
|
|
80
80
|
}
|
|
81
81
|
if (!this.provider) {
|
|
82
|
-
|
|
82
|
+
_chunkXUD6VNF7js.sentryLogger.error("Phantom is not available");
|
|
83
83
|
throw new Error("Phantom is not available");
|
|
84
84
|
}
|
|
85
85
|
await this.provider.request({
|
|
@@ -91,7 +91,7 @@ var PhantomAdapter = class {
|
|
|
91
91
|
params: []
|
|
92
92
|
});
|
|
93
93
|
if (!accounts || accounts.length === 0 || !accounts[0]) {
|
|
94
|
-
|
|
94
|
+
_chunkXUD6VNF7js.sentryLogger.error("No accounts returned from Phantom");
|
|
95
95
|
throw new Error("No accounts returned from Phantom");
|
|
96
96
|
}
|
|
97
97
|
return {
|
|
@@ -148,4 +148,4 @@ var PhantomAdapter = class {
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
exports.PhantomAdapter = PhantomAdapter;
|
|
151
|
-
//# sourceMappingURL=PhantomAdapter-
|
|
151
|
+
//# sourceMappingURL=PhantomAdapter-YTN5PUDI.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
WalletName,
|
|
4
4
|
getLogoDataUri,
|
|
5
5
|
sentryLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RRUPCUSZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
init_polyfills
|
|
9
9
|
} from "./chunk-J6XFKNJN.mjs";
|
|
@@ -143,4 +143,4 @@ var RabbyAdapter = class {
|
|
|
143
143
|
export {
|
|
144
144
|
RabbyAdapter
|
|
145
145
|
};
|
|
146
|
-
//# sourceMappingURL=RabbyAdapter-
|
|
146
|
+
//# sourceMappingURL=RabbyAdapter-QVNCSWYC.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXUD6VNF7js = require('./chunk-XUD6VNF7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
@@ -13,9 +13,9 @@ _chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
|
|
|
13
13
|
var RABBY_RDNS = "io.rabby";
|
|
14
14
|
var RabbyAdapter = class {
|
|
15
15
|
constructor() {
|
|
16
|
-
this.id =
|
|
17
|
-
this.name =
|
|
18
|
-
this.icon = _nullishCoalesce(
|
|
16
|
+
this.id = _chunkXUD6VNF7js.WalletId.Rabby;
|
|
17
|
+
this.name = _chunkXUD6VNF7js.WalletName.Rabby;
|
|
18
|
+
this.icon = _nullishCoalesce(_chunkXUD6VNF7js.getLogoDataUri.call(void 0, _chunkXUD6VNF7js.WalletId.Rabby, "brand"), () => ( ""));
|
|
19
19
|
this.hide = false;
|
|
20
20
|
this.downloadUrl = "https://rabby.io";
|
|
21
21
|
this.wcDeepLinkUrl = null;
|
|
@@ -74,7 +74,7 @@ var RabbyAdapter = class {
|
|
|
74
74
|
await this.providerPromise;
|
|
75
75
|
}
|
|
76
76
|
if (!this.provider) {
|
|
77
|
-
|
|
77
|
+
_chunkXUD6VNF7js.sentryLogger.error("Rabby is not available");
|
|
78
78
|
throw new Error("Rabby is not available");
|
|
79
79
|
}
|
|
80
80
|
await this.provider.request({
|
|
@@ -86,7 +86,7 @@ var RabbyAdapter = class {
|
|
|
86
86
|
params: []
|
|
87
87
|
});
|
|
88
88
|
if (!accounts || accounts.length === 0 || !accounts[0]) {
|
|
89
|
-
|
|
89
|
+
_chunkXUD6VNF7js.sentryLogger.error("No accounts returned from Rabby");
|
|
90
90
|
throw new Error("No accounts returned from Rabby");
|
|
91
91
|
}
|
|
92
92
|
return {
|
|
@@ -143,4 +143,4 @@ var RabbyAdapter = class {
|
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
exports.RabbyAdapter = RabbyAdapter;
|
|
146
|
-
//# sourceMappingURL=RabbyAdapter-
|
|
146
|
+
//# sourceMappingURL=RabbyAdapter-SOLYF74M.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
WalletName,
|
|
7
7
|
getLogoDataUri,
|
|
8
8
|
sentryLogger
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RRUPCUSZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
init_polyfills
|
|
12
12
|
} from "./chunk-J6XFKNJN.mjs";
|
|
@@ -537,4 +537,4 @@ var WalletConnectAdapter = class {
|
|
|
537
537
|
export {
|
|
538
538
|
WalletConnectAdapter
|
|
539
539
|
};
|
|
540
|
-
//# sourceMappingURL=WalletConnectAdapter-
|
|
540
|
+
//# sourceMappingURL=WalletConnectAdapter-5YL5KFGI.mjs.map
|
|
@@ -6,7 +6,7 @@ var _chunkQOCN4F47js = require('./chunk-QOCN4F47.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkXUD6VNF7js = require('./chunk-XUD6VNF7.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
@@ -108,9 +108,9 @@ function extractAddressFromSession(namespaces) {
|
|
|
108
108
|
}
|
|
109
109
|
var WalletConnectAdapter = class {
|
|
110
110
|
constructor(config) {
|
|
111
|
-
this.id =
|
|
112
|
-
this.name =
|
|
113
|
-
this.icon = _nullishCoalesce(
|
|
111
|
+
this.id = _chunkXUD6VNF7js.WalletId.WalletConnect;
|
|
112
|
+
this.name = _chunkXUD6VNF7js.WalletName.WalletConnect;
|
|
113
|
+
this.icon = _nullishCoalesce(_chunkXUD6VNF7js.getLogoDataUri.call(void 0, _chunkXUD6VNF7js.WalletId.WalletConnect, "brand"), () => ( ""));
|
|
114
114
|
this.hide = false;
|
|
115
115
|
this.downloadUrl = null;
|
|
116
116
|
this.wcDeepLinkUrl = null;
|
|
@@ -248,13 +248,13 @@ var WalletConnectAdapter = class {
|
|
|
248
248
|
this.provider = provider;
|
|
249
249
|
}
|
|
250
250
|
} catch (error) {
|
|
251
|
-
|
|
251
|
+
_chunkXUD6VNF7js.sentryLogger.warn("Failed to get provider from wagmi connector", { error });
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
} catch (error) {
|
|
257
|
-
|
|
257
|
+
_chunkXUD6VNF7js.sentryLogger.warn("Failed to get provider from WalletConnect", { error });
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
isInstalled() {
|
|
@@ -537,4 +537,4 @@ var WalletConnectAdapter = class {
|
|
|
537
537
|
|
|
538
538
|
|
|
539
539
|
exports.WalletConnectAdapter = WalletConnectAdapter;
|
|
540
|
-
//# sourceMappingURL=WalletConnectAdapter-
|
|
540
|
+
//# sourceMappingURL=WalletConnectAdapter-VMN6R5LO.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
WalletName,
|
|
11
11
|
getLogoDataUri,
|
|
12
12
|
sentryLogger
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RRUPCUSZ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
16
16
|
__publicField,
|
|
@@ -6899,4 +6899,4 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
6899
6899
|
* See the LICENSE file in the root directory of this source tree.
|
|
6900
6900
|
*)
|
|
6901
6901
|
*/
|
|
6902
|
-
//# sourceMappingURL=chunk-
|
|
6902
|
+
//# sourceMappingURL=chunk-222UJ3OP.mjs.map
|