@interchain-kit/xdefi-extension 0.2.221 → 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/esm/index.js +4 -2
- package/esm/registry.js +4 -2
- package/index.d.ts +2 -2
- package/index.js +5 -3
- package/package.json +3 -3
- package/registry.js +4 -2
package/esm/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CosmosWallet, EthereumWallet, ExtensionWallet } from "@interchain-kit/core";
|
|
2
2
|
import { xdefiExtensionInfo } from "./registry";
|
|
3
|
-
const xdefiWallet = new XdefiWallet(xdefiExtensionInfo);
|
|
4
3
|
export * from './constant';
|
|
5
4
|
export * from './registry';
|
|
5
|
+
const xdefiWallet = new ExtensionWallet(xdefiExtensionInfo);
|
|
6
|
+
xdefiWallet.setNetworkWallet('cosmos', new CosmosWallet(xdefiExtensionInfo));
|
|
7
|
+
xdefiWallet.setNetworkWallet('eip155', new EthereumWallet(xdefiExtensionInfo));
|
|
6
8
|
export { xdefiWallet };
|
package/esm/registry.js
CHANGED
|
@@ -3,16 +3,18 @@ export const xdefiExtensionInfo = {
|
|
|
3
3
|
name: 'xdefi-extension',
|
|
4
4
|
prettyName: 'XDEFI',
|
|
5
5
|
windowKey: 'xfi.keplr',
|
|
6
|
+
walletIdentifyKey: 'xfi.keplr.isXDEFI',
|
|
7
|
+
ethereumKey: 'xfi.ethereum',
|
|
6
8
|
logo: ICON,
|
|
7
9
|
mode: 'extension',
|
|
8
10
|
downloads: [
|
|
9
11
|
{
|
|
10
12
|
device: 'desktop',
|
|
11
13
|
browser: 'chrome',
|
|
12
|
-
link: 'https://chrome.google.com/webstore/detail/
|
|
14
|
+
link: 'https://chrome.google.com/webstore/detail/ctrl-wallet/hmeobnfnfcmdkdcmlblgagmfpfboieaf',
|
|
13
15
|
},
|
|
14
16
|
{
|
|
15
|
-
link: 'https://chrome.google.com/webstore/detail/
|
|
17
|
+
link: 'https://chrome.google.com/webstore/detail/ctrl-wallet/hmeobnfnfcmdkdcmlblgagmfpfboieaf',
|
|
16
18
|
},
|
|
17
19
|
],
|
|
18
20
|
};
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const xdefiWallet: XdefiWallet;
|
|
1
|
+
import { ExtensionWallet } from "@interchain-kit/core";
|
|
3
2
|
export * from './constant';
|
|
4
3
|
export * from './registry';
|
|
4
|
+
declare const xdefiWallet: ExtensionWallet;
|
|
5
5
|
export { xdefiWallet };
|
package/index.js
CHANGED
|
@@ -15,9 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.xdefiWallet = void 0;
|
|
18
|
-
const
|
|
18
|
+
const core_1 = require("@interchain-kit/core");
|
|
19
19
|
const registry_1 = require("./registry");
|
|
20
|
-
const xdefiWallet = new extension_1.XdefiWallet(registry_1.xdefiExtensionInfo);
|
|
21
|
-
exports.xdefiWallet = xdefiWallet;
|
|
22
20
|
__exportStar(require("./constant"), exports);
|
|
23
21
|
__exportStar(require("./registry"), exports);
|
|
22
|
+
const xdefiWallet = new core_1.ExtensionWallet(registry_1.xdefiExtensionInfo);
|
|
23
|
+
exports.xdefiWallet = xdefiWallet;
|
|
24
|
+
xdefiWallet.setNetworkWallet('cosmos', new core_1.CosmosWallet(registry_1.xdefiExtensionInfo));
|
|
25
|
+
xdefiWallet.setNetworkWallet('eip155', new core_1.EthereumWallet(registry_1.xdefiExtensionInfo));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interchain-kit/xdefi-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"author": "Hyperweb <developers@hyperweb.io>",
|
|
5
5
|
"description": "interchain-kit wallet connector",
|
|
6
6
|
"main": "index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"keywords": [],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@interchain-kit/core": "0.
|
|
35
|
+
"@interchain-kit/core": "0.3.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "2fa62ae0dbeb2833b55d59c0cfe8446d1c7a7b06"
|
|
38
38
|
}
|
package/registry.js
CHANGED
|
@@ -6,16 +6,18 @@ exports.xdefiExtensionInfo = {
|
|
|
6
6
|
name: 'xdefi-extension',
|
|
7
7
|
prettyName: 'XDEFI',
|
|
8
8
|
windowKey: 'xfi.keplr',
|
|
9
|
+
walletIdentifyKey: 'xfi.keplr.isXDEFI',
|
|
10
|
+
ethereumKey: 'xfi.ethereum',
|
|
9
11
|
logo: constant_1.ICON,
|
|
10
12
|
mode: 'extension',
|
|
11
13
|
downloads: [
|
|
12
14
|
{
|
|
13
15
|
device: 'desktop',
|
|
14
16
|
browser: 'chrome',
|
|
15
|
-
link: 'https://chrome.google.com/webstore/detail/
|
|
17
|
+
link: 'https://chrome.google.com/webstore/detail/ctrl-wallet/hmeobnfnfcmdkdcmlblgagmfpfboieaf',
|
|
16
18
|
},
|
|
17
19
|
{
|
|
18
|
-
link: 'https://chrome.google.com/webstore/detail/
|
|
20
|
+
link: 'https://chrome.google.com/webstore/detail/ctrl-wallet/hmeobnfnfcmdkdcmlblgagmfpfboieaf',
|
|
19
21
|
},
|
|
20
22
|
],
|
|
21
23
|
};
|