@txnlab/use-wallet 3.1.1 → 3.1.3
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/index.cjs +7 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3620,10 +3620,7 @@ var DeflyWallet = class extends BaseWallet {
|
|
|
3620
3620
|
};
|
|
3621
3621
|
async initializeClient() {
|
|
3622
3622
|
console.info(`[${this.metadata.name}] Initializing client...`);
|
|
3623
|
-
const module2 = await import(
|
|
3624
|
-
/* webpackIgnore: true */
|
|
3625
|
-
"@blockshake/defly-connect"
|
|
3626
|
-
);
|
|
3623
|
+
const module2 = await import("@blockshake/defly-connect");
|
|
3627
3624
|
const DeflyWalletConnect = module2.default ? module2.default.DeflyWalletConnect : module2.DeflyWalletConnect;
|
|
3628
3625
|
const client = new DeflyWalletConnect(this.options);
|
|
3629
3626
|
client.connector?.on("disconnect", this.onDisconnect);
|
|
@@ -4064,10 +4061,7 @@ var KibisisWallet = class _KibisisWallet extends BaseWallet {
|
|
|
4064
4061
|
console.info(
|
|
4065
4062
|
`[${_KibisisWallet.name}]#${_functionName}: initializing @agoralabs-sh/avm-web-provider...`
|
|
4066
4063
|
);
|
|
4067
|
-
this.avmWebProviderSDK = await import(
|
|
4068
|
-
/* webpackIgnore: true */
|
|
4069
|
-
"@agoralabs-sh/avm-web-provider"
|
|
4070
|
-
);
|
|
4064
|
+
this.avmWebProviderSDK = await import("@agoralabs-sh/avm-web-provider");
|
|
4071
4065
|
if (!this.avmWebProviderSDK) {
|
|
4072
4066
|
throw new Error(
|
|
4073
4067
|
"failed to initialize, the @agoralabs-sh/avm-web-provider sdk was not provided"
|
|
@@ -4492,10 +4486,7 @@ var LuteWallet = class extends BaseWallet {
|
|
|
4492
4486
|
};
|
|
4493
4487
|
async initializeClient() {
|
|
4494
4488
|
console.info(`[${this.metadata.name}] Initializing client...`);
|
|
4495
|
-
const module2 = await import(
|
|
4496
|
-
/* webpackIgnore: true */
|
|
4497
|
-
"lute-connect"
|
|
4498
|
-
);
|
|
4489
|
+
const module2 = await import("lute-connect");
|
|
4499
4490
|
const LuteConnect = module2.default;
|
|
4500
4491
|
const client = new LuteConnect(this.options.siteName);
|
|
4501
4492
|
this.client = client;
|
|
@@ -4978,10 +4969,7 @@ var PeraWallet = class extends BaseWallet {
|
|
|
4978
4969
|
};
|
|
4979
4970
|
async initializeClient() {
|
|
4980
4971
|
console.info(`[${this.metadata.name}] Initializing client...`);
|
|
4981
|
-
const module2 = await import(
|
|
4982
|
-
/* webpackIgnore: true */
|
|
4983
|
-
"@perawallet/connect"
|
|
4984
|
-
);
|
|
4972
|
+
const module2 = await import("@perawallet/connect");
|
|
4985
4973
|
const PeraWalletConnect = module2.default ? module2.default.PeraWalletConnect : module2.PeraWalletConnect;
|
|
4986
4974
|
const client = new PeraWalletConnect(this.options);
|
|
4987
4975
|
client.connector?.on("disconnect", this.onDisconnect);
|
|
@@ -5147,10 +5135,7 @@ var PeraWallet2 = class extends BaseWallet {
|
|
|
5147
5135
|
};
|
|
5148
5136
|
async initializeClient() {
|
|
5149
5137
|
console.info(`[${this.metadata.name}] Initializing client...`);
|
|
5150
|
-
const module2 = await import(
|
|
5151
|
-
/* webpackIgnore: true */
|
|
5152
|
-
"@perawallet/connect-beta"
|
|
5153
|
-
);
|
|
5138
|
+
const module2 = await import("@perawallet/connect-beta");
|
|
5154
5139
|
const PeraWalletConnect = module2.PeraWalletConnect || module2.default.PeraWalletConnect;
|
|
5155
5140
|
const client = new PeraWalletConnect(this.options);
|
|
5156
5141
|
client.client?.on("session_delete", this.onDisconnect);
|
|
@@ -5457,10 +5442,7 @@ var WalletConnect = class extends BaseWallet {
|
|
|
5457
5442
|
}
|
|
5458
5443
|
async initializeClient() {
|
|
5459
5444
|
console.info(`[${this.metadata.name}] Initializing client...`);
|
|
5460
|
-
const SignClient = (await import(
|
|
5461
|
-
/* webpackIgnore: true */
|
|
5462
|
-
"@walletconnect/sign-client"
|
|
5463
|
-
)).SignClient;
|
|
5445
|
+
const SignClient = (await import("@walletconnect/sign-client")).SignClient;
|
|
5464
5446
|
const client = await SignClient.init(this.options);
|
|
5465
5447
|
client.on("session_event", (args) => {
|
|
5466
5448
|
console.log(`[${this.metadata.name}] EVENT`, "session_event", args);
|
|
@@ -5481,10 +5463,7 @@ var WalletConnect = class extends BaseWallet {
|
|
|
5481
5463
|
}
|
|
5482
5464
|
async initializeModal() {
|
|
5483
5465
|
console.info(`[${this.metadata.name}] Initializing modal...`);
|
|
5484
|
-
const WalletConnectModal = (await import(
|
|
5485
|
-
/* webpackIgnore: true */
|
|
5486
|
-
"@walletconnect/modal"
|
|
5487
|
-
)).WalletConnectModal;
|
|
5466
|
+
const WalletConnectModal = (await import("@walletconnect/modal")).WalletConnectModal;
|
|
5488
5467
|
const modal = new WalletConnectModal({
|
|
5489
5468
|
projectId: this.options.projectId,
|
|
5490
5469
|
chains: this.chains,
|