@getpara/wagmi-v2-connector 2.0.0-dev.2 → 2.0.0-dev.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/ParaEIP1193Provider.d.ts +0 -2
- package/dist/index.js +4 -7
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/package.json +1 -1
|
@@ -24,8 +24,6 @@ export declare class ParaEIP1193Provider extends EventEmitter implements EIP1193
|
|
|
24
24
|
private isModalClosed;
|
|
25
25
|
private transports?;
|
|
26
26
|
private openModal?;
|
|
27
|
-
private renderModal?;
|
|
28
|
-
private modalRendered;
|
|
29
27
|
constructor(opts: ParaEIP1193ProviderOpts);
|
|
30
28
|
private get accounts();
|
|
31
29
|
private getStorageChainId;
|
package/dist/index.js
CHANGED
|
@@ -63,6 +63,7 @@ var serverSessionStorageStub = {
|
|
|
63
63
|
};
|
|
64
64
|
var ParaEIP1193Provider = class extends EventEmitter {
|
|
65
65
|
constructor(opts) {
|
|
66
|
+
var _a;
|
|
66
67
|
super();
|
|
67
68
|
this.getRpcUrlsFromViemChain = (chain) => {
|
|
68
69
|
return extractRpcUrls({ chain, transports: this.transports });
|
|
@@ -120,7 +121,6 @@ var ParaEIP1193Provider = class extends EventEmitter {
|
|
|
120
121
|
this.isModalClosed = true;
|
|
121
122
|
};
|
|
122
123
|
this.request = (args) => __async(this, null, function* () {
|
|
123
|
-
var _a;
|
|
124
124
|
const { method, params } = args;
|
|
125
125
|
switch (method) {
|
|
126
126
|
case "eth_accounts": {
|
|
@@ -138,10 +138,6 @@ var ParaEIP1193Provider = class extends EventEmitter {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
this.isModalClosed = false;
|
|
141
|
-
if (!this.disableModal && !this.modalRendered) {
|
|
142
|
-
(_a = this.renderModal) == null ? void 0 : _a.call(this, this.closeModal);
|
|
143
|
-
this.modalRendered = true;
|
|
144
|
-
}
|
|
145
141
|
this.openModal();
|
|
146
142
|
yield this.waitForLogin();
|
|
147
143
|
try {
|
|
@@ -248,8 +244,9 @@ var ParaEIP1193Provider = class extends EventEmitter {
|
|
|
248
244
|
this.chains = this.wagmiChainsToAddEthereumChainParameters(opts.chains);
|
|
249
245
|
this.transports = opts.transports;
|
|
250
246
|
this.openModal = opts.openModal;
|
|
251
|
-
this.
|
|
252
|
-
|
|
247
|
+
if (!this.disableModal) {
|
|
248
|
+
(_a = opts.renderModal) == null ? void 0 : _a.call(opts, this.closeModal);
|
|
249
|
+
}
|
|
253
250
|
const defaultChainId = this.getStorageChainId() || opts.chainId;
|
|
254
251
|
const currentChainId = this.chains[decimalToHex(defaultChainId)] ? defaultChainId : `${opts.chains[0].id}`;
|
|
255
252
|
this.setCurrentChain(decimalToHex(currentChainId));
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|