@interchain-kit/mock-wallet 0.0.1-beta.7 → 0.0.1-beta.9
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/esm/wallet.js +4 -2
- package/package.json +3 -3
- package/wallet.js +4 -2
package/esm/wallet.js
CHANGED
|
@@ -15,6 +15,7 @@ export class MockWallet extends BaseWallet {
|
|
|
15
15
|
this.mnemonic = mnemonic;
|
|
16
16
|
}
|
|
17
17
|
init(meta) {
|
|
18
|
+
this.client = {};
|
|
18
19
|
return Promise.resolve(undefined);
|
|
19
20
|
}
|
|
20
21
|
async connect(chainIds) {
|
|
@@ -30,10 +31,11 @@ export class MockWallet extends BaseWallet {
|
|
|
30
31
|
return Promise.resolve(undefined);
|
|
31
32
|
}
|
|
32
33
|
disconnect(chainId) {
|
|
33
|
-
|
|
34
|
+
this.client = null;
|
|
35
|
+
return Promise.resolve(undefined);
|
|
34
36
|
}
|
|
35
37
|
async getAccount(chainId) {
|
|
36
|
-
const wallet = this.
|
|
38
|
+
const wallet = this.animoSignerMap[chainId];
|
|
37
39
|
const [firstAccount] = await wallet.getAccounts();
|
|
38
40
|
return firstAccount;
|
|
39
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interchain-kit/mock-wallet",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.9",
|
|
4
4
|
"author": "Cosmology <developers@cosmology.zone>",
|
|
5
5
|
"description": "cosmos-kit wallet connector",
|
|
6
6
|
"main": "index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"keywords": [],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@interchain-kit/core": "0.0.1-beta.
|
|
34
|
+
"@interchain-kit/core": "0.0.1-beta.9"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "94194bd0eb8bef794d9d180c584d69600c0bb478"
|
|
37
37
|
}
|
package/wallet.js
CHANGED
|
@@ -18,6 +18,7 @@ class MockWallet extends core_1.BaseWallet {
|
|
|
18
18
|
this.mnemonic = mnemonic;
|
|
19
19
|
}
|
|
20
20
|
init(meta) {
|
|
21
|
+
this.client = {};
|
|
21
22
|
return Promise.resolve(undefined);
|
|
22
23
|
}
|
|
23
24
|
async connect(chainIds) {
|
|
@@ -33,10 +34,11 @@ class MockWallet extends core_1.BaseWallet {
|
|
|
33
34
|
return Promise.resolve(undefined);
|
|
34
35
|
}
|
|
35
36
|
disconnect(chainId) {
|
|
36
|
-
|
|
37
|
+
this.client = null;
|
|
38
|
+
return Promise.resolve(undefined);
|
|
37
39
|
}
|
|
38
40
|
async getAccount(chainId) {
|
|
39
|
-
const wallet = this.
|
|
41
|
+
const wallet = this.animoSignerMap[chainId];
|
|
40
42
|
const [firstAccount] = await wallet.getAccounts();
|
|
41
43
|
return firstAccount;
|
|
42
44
|
}
|