@injectivelabs/wallet-evm 1.16.9 → 1.16.11-alpha.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Eip1193Provider } from '@injectivelabs/wallet-base';
|
|
1
2
|
import { TxRaw, TxResponse, AminoSignResponse, DirectSignResponse } from '@injectivelabs/sdk-ts';
|
|
2
3
|
import { ErrorContext, ThrownException } from '@injectivelabs/exceptions';
|
|
3
4
|
import { Wallet, StdSignDoc, WalletDeviceType, BaseConcreteStrategy, SendTransactionOptions, BrowserEip1993Provider, ConcreteWalletStrategy, ConcreteWalletStrategyArgs, ConcreteEvmWalletStrategyArgs } from '@injectivelabs/wallet-base';
|
|
@@ -36,5 +37,6 @@ export declare class EvmWallet extends BaseConcreteStrategy implements ConcreteW
|
|
|
36
37
|
getPubKey(): Promise<string>;
|
|
37
38
|
onChainIdChanged(callback: (chain: string) => void): Promise<void>;
|
|
38
39
|
onAccountChange(callback: (account: AccountAddress | string[]) => void): Promise<void>;
|
|
40
|
+
getEip1193Provider(): Promise<Eip1193Provider>;
|
|
39
41
|
private getEthereum;
|
|
40
42
|
}
|
|
@@ -246,6 +246,9 @@ class EvmWallet extends wallet_base_2.BaseConcreteStrategy {
|
|
|
246
246
|
};
|
|
247
247
|
ethereum.on('accountsChanged', callback);
|
|
248
248
|
}
|
|
249
|
+
async getEip1193Provider() {
|
|
250
|
+
return this.getEthereum();
|
|
251
|
+
}
|
|
249
252
|
async getEthereum() {
|
|
250
253
|
const evmProvider = this.evmProviders[this.wallet];
|
|
251
254
|
if (evmProvider) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Eip1193Provider } from '@injectivelabs/wallet-base';
|
|
1
2
|
import { TxRaw, TxResponse, AminoSignResponse, DirectSignResponse } from '@injectivelabs/sdk-ts';
|
|
2
3
|
import { ErrorContext, ThrownException } from '@injectivelabs/exceptions';
|
|
3
4
|
import { Wallet, StdSignDoc, WalletDeviceType, BaseConcreteStrategy, SendTransactionOptions, BrowserEip1993Provider, ConcreteWalletStrategy, ConcreteWalletStrategyArgs, ConcreteEvmWalletStrategyArgs } from '@injectivelabs/wallet-base';
|
|
@@ -36,5 +37,6 @@ export declare class EvmWallet extends BaseConcreteStrategy implements ConcreteW
|
|
|
36
37
|
getPubKey(): Promise<string>;
|
|
37
38
|
onChainIdChanged(callback: (chain: string) => void): Promise<void>;
|
|
38
39
|
onAccountChange(callback: (account: AccountAddress | string[]) => void): Promise<void>;
|
|
40
|
+
getEip1193Provider(): Promise<Eip1193Provider>;
|
|
39
41
|
private getEthereum;
|
|
40
42
|
}
|
|
@@ -243,6 +243,9 @@ export class EvmWallet extends BaseConcreteStrategy {
|
|
|
243
243
|
};
|
|
244
244
|
ethereum.on('accountsChanged', callback);
|
|
245
245
|
}
|
|
246
|
+
async getEip1193Provider() {
|
|
247
|
+
return this.getEthereum();
|
|
248
|
+
}
|
|
246
249
|
async getEthereum() {
|
|
247
250
|
const evmProvider = this.evmProviders[this.wallet];
|
|
248
251
|
if (evmProvider) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-evm",
|
|
3
3
|
"description": "EVM wallet strategies for use with @injectivelabs/wallet-core.",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.11-alpha.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": {
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
"start": "node dist/index.js"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@injectivelabs/exceptions": "1.16.
|
|
60
|
-
"@injectivelabs/networks": "1.16.
|
|
61
|
-
"@injectivelabs/sdk-ts": "1.16.
|
|
62
|
-
"@injectivelabs/ts-types": "1.16.
|
|
63
|
-
"@injectivelabs/utils": "1.16.
|
|
64
|
-
"@injectivelabs/wallet-base": "1.16.
|
|
59
|
+
"@injectivelabs/exceptions": "1.16.11-alpha.0",
|
|
60
|
+
"@injectivelabs/networks": "1.16.11-alpha.0",
|
|
61
|
+
"@injectivelabs/sdk-ts": "1.16.11-alpha.0",
|
|
62
|
+
"@injectivelabs/ts-types": "1.16.11-alpha.0",
|
|
63
|
+
"@injectivelabs/utils": "1.16.11-alpha.0",
|
|
64
|
+
"@injectivelabs/wallet-base": "1.16.11-alpha.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"shx": "^0.3.3"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "640edf06e57aa38d3176e38fa03dddfc72e901cf",
|
|
70
70
|
"typedoc": {
|
|
71
71
|
"entryPoint": "./src/index.ts",
|
|
72
72
|
"readmeFile": "./README.md",
|