@injectivelabs/wallet-cosmos-strategy 0.0.2
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/README.md +64 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +18 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/strategy/WalletStrategy.d.ts +9 -0
- package/dist/cjs/strategy/WalletStrategy.d.ts.map +1 -0
- package/dist/cjs/strategy/WalletStrategy.js +40 -0
- package/dist/cjs/strategy/WalletStrategy.js.map +1 -0
- package/dist/cjs/strategy/index.d.ts +2 -0
- package/dist/cjs/strategy/index.d.ts.map +1 -0
- package/dist/cjs/strategy/index.js +18 -0
- package/dist/cjs/strategy/index.js.map +1 -0
- package/dist/cjs/strategy/strategies/cosmos.d.ts +15 -0
- package/dist/cjs/strategy/strategies/cosmos.d.ts.map +1 -0
- package/dist/cjs/strategy/strategies/cosmos.js +11 -0
- package/dist/cjs/strategy/strategies/cosmos.js.map +1 -0
- package/dist/cjs/strategy/strategies/cosmostation.d.ts +15 -0
- package/dist/cjs/strategy/strategies/cosmostation.d.ts.map +1 -0
- package/dist/cjs/strategy/strategies/cosmostation.js +11 -0
- package/dist/cjs/strategy/strategies/cosmostation.js.map +1 -0
- package/dist/cjs/strategy/strategies/index.d.ts +3 -0
- package/dist/cjs/strategy/strategies/index.d.ts.map +1 -0
- package/dist/cjs/strategy/strategies/index.js +19 -0
- package/dist/cjs/strategy/strategies/index.js.map +1 -0
- package/dist/cjs/strategy/types.d.ts +7 -0
- package/dist/cjs/strategy/types.d.ts.map +1 -0
- package/dist/cjs/strategy/types.js +3 -0
- package/dist/cjs/strategy/types.js.map +1 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/strategy/WalletStrategy.d.ts +9 -0
- package/dist/esm/strategy/WalletStrategy.d.ts.map +1 -0
- package/dist/esm/strategy/WalletStrategy.js +44 -0
- package/dist/esm/strategy/WalletStrategy.js.map +1 -0
- package/dist/esm/strategy/index.d.ts +2 -0
- package/dist/esm/strategy/index.d.ts.map +1 -0
- package/dist/esm/strategy/index.js +2 -0
- package/dist/esm/strategy/index.js.map +1 -0
- package/dist/esm/strategy/strategies/cosmos.d.ts +15 -0
- package/dist/esm/strategy/strategies/cosmos.d.ts.map +1 -0
- package/dist/esm/strategy/strategies/cosmos.js +7 -0
- package/dist/esm/strategy/strategies/cosmos.js.map +1 -0
- package/dist/esm/strategy/strategies/cosmostation.d.ts +15 -0
- package/dist/esm/strategy/strategies/cosmostation.d.ts.map +1 -0
- package/dist/esm/strategy/strategies/cosmostation.js +7 -0
- package/dist/esm/strategy/strategies/cosmostation.js.map +1 -0
- package/dist/esm/strategy/strategies/index.d.ts +3 -0
- package/dist/esm/strategy/strategies/index.d.ts.map +1 -0
- package/dist/esm/strategy/strategies/index.js +3 -0
- package/dist/esm/strategy/strategies/index.js.map +1 -0
- package/dist/esm/strategy/types.d.ts +7 -0
- package/dist/esm/strategy/types.d.ts.map +1 -0
- package/dist/esm/strategy/types.js +2 -0
- package/dist/esm/strategy/types.js.map +1 -0
- package/package.json +68 -0
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# 🌟 Injective Protocol - Wallet Cosmos Strategy
|
|
2
|
+
|
|
3
|
+
<!-- TODO -->
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@injectivelabs/wallet-cosmos-strategy)
|
|
6
|
+
[](https://www.npmjs.com/package/@injectivelabs/wallet-cosmos-strategy)
|
|
7
|
+
[]()
|
|
8
|
+
|
|
9
|
+
_Package to use All Wallets on Injective via the wallet strategy._
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 📚 Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
yarn add @injectivelabs/wallet-cosmos-strategy
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 📖 Documentation
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { CosmosWalletStrategy } from '@injectivelabs/wallet-cosmos-strategy'
|
|
25
|
+
|
|
26
|
+
const cosmosWalletStrategy = new CosmosWalletStrategy(args)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Read more and find example usages on our [WalletStrategy Docs](https://docs.ts.injective.network/wallet/wallet-wallet-strategy)
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 📜 Contribution
|
|
34
|
+
|
|
35
|
+
**Contribution guides and practices will be available once there is a stable foundation of the whole package set within the `injective-ts` repo.**
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## ⛑ Support
|
|
40
|
+
|
|
41
|
+
Reach out to us at one of the following places!
|
|
42
|
+
|
|
43
|
+
- Website at <a href="https://injective.com" target="_blank">`injective.com`</a>
|
|
44
|
+
- Twitter at <a href="https://twitter.com/Injective_" target="_blank">`@Injective`</a>
|
|
45
|
+
- Discord at <a href="https://discord.com/invite/NK4qdbv" target="_blank">`Discord`</a>
|
|
46
|
+
- Telegram at <a href="https://t.me/joininjective" target="_blank">`Telegram`</a>
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 🔓 License
|
|
51
|
+
|
|
52
|
+
Copyright © 2021 - 2022 Injective Labs Inc. (https://injectivelabs.org/)
|
|
53
|
+
|
|
54
|
+
<a href="https://iili.io/mNneZN.md.png"><img src="https://iili.io/mNneZN.md.png" style="width: 300px; max-width: 100%; height: auto" />
|
|
55
|
+
|
|
56
|
+
Originally released by Injective Labs Inc. under: <br />
|
|
57
|
+
Apache License <br />
|
|
58
|
+
Version 2.0, January 2004 <br />
|
|
59
|
+
http://www.apache.org/licenses/
|
|
60
|
+
|
|
61
|
+
<p> </p>
|
|
62
|
+
<div align="center">
|
|
63
|
+
<sub><em>Powering the future of decentralized finance.</em></sub>
|
|
64
|
+
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./strategy"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Wallet } from '@injectivelabs/wallet-base';
|
|
2
|
+
import { BaseWalletStrategy } from '@injectivelabs/wallet-core';
|
|
3
|
+
import { CosmosWalletStrategyArguments } from './types';
|
|
4
|
+
export declare class BaseCosmosWalletStrategy extends BaseWalletStrategy {
|
|
5
|
+
constructor(args: CosmosWalletStrategyArguments);
|
|
6
|
+
setWallet(wallet: Wallet): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const createCosmosStrategyFactory: (args: CosmosWalletStrategyArguments) => BaseCosmosWalletStrategy;
|
|
9
|
+
//# sourceMappingURL=WalletStrategy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletStrategy.d.ts","sourceRoot":"","sources":["../../../src/strategy/WalletStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAKP,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAA;AAwCvD,qBAAa,wBAAyB,SAAQ,kBAAkB;gBAClD,IAAI,EAAE,6BAA6B;IASxC,SAAS,CAAC,MAAM,EAAE,MAAM;CAGhC;AAED,eAAO,MAAM,2BAA2B,SAChC,6BAA6B,6BAGpC,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createCosmosStrategyFactory = exports.BaseCosmosWalletStrategy = void 0;
|
|
4
|
+
const wallet_base_1 = require("@injectivelabs/wallet-base");
|
|
5
|
+
const wallet_core_1 = require("@injectivelabs/wallet-core");
|
|
6
|
+
const strategies_1 = require("./strategies");
|
|
7
|
+
const createStrategy = ({ args, wallet, }) => {
|
|
8
|
+
switch (wallet) {
|
|
9
|
+
case wallet_base_1.Wallet.Keplr:
|
|
10
|
+
return new strategies_1.CosmosWalletStrategy(Object.assign(Object.assign({}, args), { wallet: wallet_base_1.Wallet.Keplr }));
|
|
11
|
+
case wallet_base_1.Wallet.Cosmostation:
|
|
12
|
+
return new strategies_1.CosmostationWalletStrategy(Object.assign(Object.assign({}, args), { wallet: wallet_base_1.Wallet.Cosmostation }));
|
|
13
|
+
case wallet_base_1.Wallet.Leap:
|
|
14
|
+
return new strategies_1.CosmosWalletStrategy(Object.assign(Object.assign({}, args), { wallet: wallet_base_1.Wallet.Leap }));
|
|
15
|
+
case wallet_base_1.Wallet.Ninji:
|
|
16
|
+
return new strategies_1.CosmosWalletStrategy(Object.assign(Object.assign({}, args), { wallet: wallet_base_1.Wallet.Ninji }));
|
|
17
|
+
case wallet_base_1.Wallet.OWallet:
|
|
18
|
+
return new strategies_1.CosmosWalletStrategy(Object.assign(Object.assign({}, args), { wallet: wallet_base_1.Wallet.OWallet }));
|
|
19
|
+
default:
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const createAllStrategies = (args) => {
|
|
24
|
+
return Object.values(wallet_base_1.Wallet).reduce((strategies, wallet) => (Object.assign(Object.assign({}, strategies), { [wallet]: createStrategy({ args, wallet: wallet }) })), {});
|
|
25
|
+
};
|
|
26
|
+
class BaseCosmosWalletStrategy extends wallet_core_1.BaseWalletStrategy {
|
|
27
|
+
constructor(args) {
|
|
28
|
+
const strategies = createAllStrategies(args);
|
|
29
|
+
super(Object.assign(Object.assign({}, args), { strategies }));
|
|
30
|
+
}
|
|
31
|
+
setWallet(wallet) {
|
|
32
|
+
this.wallet = (0, wallet_base_1.isCosmosWallet)(wallet) ? wallet : wallet_base_1.Wallet.Keplr;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.BaseCosmosWalletStrategy = BaseCosmosWalletStrategy;
|
|
36
|
+
const createCosmosStrategyFactory = (args) => {
|
|
37
|
+
return new BaseCosmosWalletStrategy(args);
|
|
38
|
+
};
|
|
39
|
+
exports.createCosmosStrategyFactory = createCosmosStrategyFactory;
|
|
40
|
+
//# sourceMappingURL=WalletStrategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletStrategy.js","sourceRoot":"","sources":["../../../src/strategy/WalletStrategy.ts"],"names":[],"mappings":";;;AAAA,4DAMmC;AACnC,4DAA+D;AAC/D,6CAA+E;AAG/E,MAAM,cAAc,GAAG,CAAC,EACtB,IAAI,EACJ,MAAM,GAIP,EAAsC,EAAE;IACvC,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,oBAAM,CAAC,KAAK;YACf,OAAO,IAAI,iCAAoB,iCAAM,IAAI,KAAE,MAAM,EAAE,oBAAM,CAAC,KAAK,IAAG,CAAA;QACpE,KAAK,oBAAM,CAAC,YAAY;YACtB,OAAO,IAAI,uCAA0B,iCAChC,IAAI,KACP,MAAM,EAAE,oBAAM,CAAC,YAAY,IAC3B,CAAA;QACJ,KAAK,oBAAM,CAAC,IAAI;YACd,OAAO,IAAI,iCAAoB,iCAAM,IAAI,KAAE,MAAM,EAAE,oBAAM,CAAC,IAAI,IAAG,CAAA;QACnE,KAAK,oBAAM,CAAC,KAAK;YACf,OAAO,IAAI,iCAAoB,iCAAM,IAAI,KAAE,MAAM,EAAE,oBAAM,CAAC,KAAK,IAAG,CAAA;QACpE,KAAK,oBAAM,CAAC,OAAO;YACjB,OAAO,IAAI,iCAAoB,iCAAM,IAAI,KAAE,MAAM,EAAE,oBAAM,CAAC,OAAO,IAAG,CAAA;QACtE;YACE,OAAO,SAAS,CAAA;IACpB,CAAC;AACH,CAAC,CAAA;AAED,MAAM,mBAAmB,GAAG,CAC1B,IAAmC,EACZ,EAAE;IACzB,OAAO,MAAM,CAAC,MAAM,CAAC,oBAAM,CAAC,CAAC,MAAM,CACjC,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC,iCACnB,UAAU,KACb,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAgB,EAAE,CAAC,IAC5D,EACF,EAA2B,CAC5B,CAAA;AACH,CAAC,CAAA;AAED,MAAa,wBAAyB,SAAQ,gCAAkB;IAC9D,YAAY,IAAmC;QAC7C,MAAM,UAAU,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAA;QAE5C,KAAK,CAAC,gCACD,IAAI,KACP,UAAU,GAC2B,CAAC,CAAA;IAC1C,CAAC;IAEM,SAAS,CAAC,MAAc;QAC7B,IAAI,CAAC,MAAM,GAAG,IAAA,4BAAc,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAM,CAAC,KAAK,CAAA;IAC9D,CAAC;CACF;AAbD,4DAaC;AAEM,MAAM,2BAA2B,GAAG,CACzC,IAAmC,EACnC,EAAE;IACF,OAAO,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAA;AAC3C,CAAC,CAAA;AAJY,QAAA,2BAA2B,+BAIvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/strategy/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./WalletStrategy"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/strategy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CosmosWalletStrategy as BaseCosmosWalletStrategy } from '@injectivelabs/wallet-cosmos';
|
|
2
|
+
import { CosmosChainId } from '@injectivelabs/ts-types';
|
|
3
|
+
import { Wallet } from '@injectivelabs/wallet-base';
|
|
4
|
+
export declare class CosmosWalletStrategy extends BaseCosmosWalletStrategy {
|
|
5
|
+
constructor(args: {
|
|
6
|
+
chainId: CosmosChainId;
|
|
7
|
+
endpoints?: {
|
|
8
|
+
rest: string;
|
|
9
|
+
rpc: string;
|
|
10
|
+
};
|
|
11
|
+
} & {
|
|
12
|
+
wallet: Wallet;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=cosmos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../../../src/strategy/strategies/cosmos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAA;AAC/F,OAAO,EAAW,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,qBAAa,oBAAqB,SAAQ,wBAAwB;gBAE9D,IAAI,EAAE;QACJ,OAAO,EAAE,aAAa,CAAA;QACtB,SAAS,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;KAC1C,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;CAUzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CosmosWalletStrategy = void 0;
|
|
4
|
+
const wallet_cosmos_1 = require("@injectivelabs/wallet-cosmos");
|
|
5
|
+
class CosmosWalletStrategy extends wallet_cosmos_1.CosmosWalletStrategy {
|
|
6
|
+
constructor(args) {
|
|
7
|
+
super(args);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.CosmosWalletStrategy = CosmosWalletStrategy;
|
|
11
|
+
//# sourceMappingURL=cosmos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosmos.js","sourceRoot":"","sources":["../../../../src/strategy/strategies/cosmos.ts"],"names":[],"mappings":";;;AAAA,gEAA+F;AAI/F,MAAa,oBAAqB,SAAQ,oCAAwB;IAChE,YACE,IAGsB;QAEtB,KAAK,CACH,IAIC,CACF,CAAA;IACH,CAAC;CACF;AAfD,oDAeC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CosmostationWalletStrategy as BaseCosmostationWalletStrategy } from '@injectivelabs/wallet-cosmostation';
|
|
2
|
+
import { CosmosChainId } from '@injectivelabs/ts-types';
|
|
3
|
+
import { Wallet } from '@injectivelabs/wallet-base';
|
|
4
|
+
export declare class CosmostationWalletStrategy extends BaseCosmostationWalletStrategy {
|
|
5
|
+
constructor(args: {
|
|
6
|
+
chainId: CosmosChainId;
|
|
7
|
+
endpoints?: {
|
|
8
|
+
rest: string;
|
|
9
|
+
rpc: string;
|
|
10
|
+
};
|
|
11
|
+
} & {
|
|
12
|
+
wallet: Wallet;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=cosmostation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosmostation.d.ts","sourceRoot":"","sources":["../../../../src/strategy/strategies/cosmostation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,IAAI,8BAA8B,EAAE,MAAM,oCAAoC,CAAA;AACjH,OAAO,EAAW,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,qBAAa,0BAA2B,SAAQ,8BAA8B;gBAE1E,IAAI,EAAE;QACJ,OAAO,EAAE,aAAa,CAAA;QACtB,SAAS,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;KAC1C,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;CAUzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CosmostationWalletStrategy = void 0;
|
|
4
|
+
const wallet_cosmostation_1 = require("@injectivelabs/wallet-cosmostation");
|
|
5
|
+
class CosmostationWalletStrategy extends wallet_cosmostation_1.CosmostationWalletStrategy {
|
|
6
|
+
constructor(args) {
|
|
7
|
+
super(args);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.CosmostationWalletStrategy = CosmostationWalletStrategy;
|
|
11
|
+
//# sourceMappingURL=cosmostation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosmostation.js","sourceRoot":"","sources":["../../../../src/strategy/strategies/cosmostation.ts"],"names":[],"mappings":";;;AAAA,4EAAiH;AAIjH,MAAa,0BAA2B,SAAQ,gDAA8B;IAC5E,YACE,IAGsB;QAEtB,KAAK,CACH,IAIC,CACF,CAAA;IACH,CAAC;CACF;AAfD,gEAeC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/strategy/strategies/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cosmos"), exports);
|
|
18
|
+
__exportStar(require("./cosmostation"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/strategy/strategies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,iDAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/strategy/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,aAAa,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/strategy/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Wallet } from '@injectivelabs/wallet-base';
|
|
2
|
+
import { BaseWalletStrategy } from '@injectivelabs/wallet-core';
|
|
3
|
+
import { CosmosWalletStrategyArguments } from './types';
|
|
4
|
+
export declare class BaseCosmosWalletStrategy extends BaseWalletStrategy {
|
|
5
|
+
constructor(args: CosmosWalletStrategyArguments);
|
|
6
|
+
setWallet(wallet: Wallet): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const createCosmosStrategyFactory: (args: CosmosWalletStrategyArguments) => BaseCosmosWalletStrategy;
|
|
9
|
+
//# sourceMappingURL=WalletStrategy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletStrategy.d.ts","sourceRoot":"","sources":["../../../src/strategy/WalletStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAKP,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAA;AAwCvD,qBAAa,wBAAyB,SAAQ,kBAAkB;gBAClD,IAAI,EAAE,6BAA6B;IASxC,SAAS,CAAC,MAAM,EAAE,MAAM;CAGhC;AAED,eAAO,MAAM,2BAA2B,SAChC,6BAA6B,6BAGpC,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Wallet, isCosmosWallet, } from '@injectivelabs/wallet-base';
|
|
2
|
+
import { BaseWalletStrategy } from '@injectivelabs/wallet-core';
|
|
3
|
+
import { CosmosWalletStrategy, CosmostationWalletStrategy } from './strategies';
|
|
4
|
+
const createStrategy = ({ args, wallet, }) => {
|
|
5
|
+
switch (wallet) {
|
|
6
|
+
case Wallet.Keplr:
|
|
7
|
+
return new CosmosWalletStrategy({ ...args, wallet: Wallet.Keplr });
|
|
8
|
+
case Wallet.Cosmostation:
|
|
9
|
+
return new CosmostationWalletStrategy({
|
|
10
|
+
...args,
|
|
11
|
+
wallet: Wallet.Cosmostation,
|
|
12
|
+
});
|
|
13
|
+
case Wallet.Leap:
|
|
14
|
+
return new CosmosWalletStrategy({ ...args, wallet: Wallet.Leap });
|
|
15
|
+
case Wallet.Ninji:
|
|
16
|
+
return new CosmosWalletStrategy({ ...args, wallet: Wallet.Ninji });
|
|
17
|
+
case Wallet.OWallet:
|
|
18
|
+
return new CosmosWalletStrategy({ ...args, wallet: Wallet.OWallet });
|
|
19
|
+
default:
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const createAllStrategies = (args) => {
|
|
24
|
+
return Object.values(Wallet).reduce((strategies, wallet) => ({
|
|
25
|
+
...strategies,
|
|
26
|
+
[wallet]: createStrategy({ args, wallet: wallet }),
|
|
27
|
+
}), {});
|
|
28
|
+
};
|
|
29
|
+
export class BaseCosmosWalletStrategy extends BaseWalletStrategy {
|
|
30
|
+
constructor(args) {
|
|
31
|
+
const strategies = createAllStrategies(args);
|
|
32
|
+
super({
|
|
33
|
+
...args,
|
|
34
|
+
strategies,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
setWallet(wallet) {
|
|
38
|
+
this.wallet = isCosmosWallet(wallet) ? wallet : Wallet.Keplr;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export const createCosmosStrategyFactory = (args) => {
|
|
42
|
+
return new BaseCosmosWalletStrategy(args);
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=WalletStrategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletStrategy.js","sourceRoot":"","sources":["../../../src/strategy/WalletStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAIN,cAAc,GACf,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AAG/E,MAAM,cAAc,GAAG,CAAC,EACtB,IAAI,EACJ,MAAM,GAIP,EAAsC,EAAE;IACvC,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,MAAM,CAAC,KAAK;YACf,OAAO,IAAI,oBAAoB,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAA;QACpE,KAAK,MAAM,CAAC,YAAY;YACtB,OAAO,IAAI,0BAA0B,CAAC;gBACpC,GAAG,IAAI;gBACP,MAAM,EAAE,MAAM,CAAC,YAAY;aAC5B,CAAC,CAAA;QACJ,KAAK,MAAM,CAAC,IAAI;YACd,OAAO,IAAI,oBAAoB,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAA;QACnE,KAAK,MAAM,CAAC,KAAK;YACf,OAAO,IAAI,oBAAoB,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAA;QACpE,KAAK,MAAM,CAAC,OAAO;YACjB,OAAO,IAAI,oBAAoB,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAA;QACtE;YACE,OAAO,SAAS,CAAA;IACpB,CAAC;AACH,CAAC,CAAA;AAED,MAAM,mBAAmB,GAAG,CAC1B,IAAmC,EACZ,EAAE;IACzB,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CACjC,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QACvB,GAAG,UAAU;QACb,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAgB,EAAE,CAAC;KAC7D,CAAC,EACF,EAA2B,CAC5B,CAAA;AACH,CAAC,CAAA;AAED,MAAM,OAAO,wBAAyB,SAAQ,kBAAkB;IAC9D,YAAY,IAAmC;QAC7C,MAAM,UAAU,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAA;QAE5C,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,UAAU;SAC2B,CAAC,CAAA;IAC1C,CAAC;IAEM,SAAS,CAAC,MAAc;QAC7B,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAA;IAC9D,CAAC;CACF;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,IAAmC,EACnC,EAAE;IACF,OAAO,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAA;AAC3C,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/strategy/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/strategy/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CosmosWalletStrategy as BaseCosmosWalletStrategy } from '@injectivelabs/wallet-cosmos';
|
|
2
|
+
import { CosmosChainId } from '@injectivelabs/ts-types';
|
|
3
|
+
import { Wallet } from '@injectivelabs/wallet-base';
|
|
4
|
+
export declare class CosmosWalletStrategy extends BaseCosmosWalletStrategy {
|
|
5
|
+
constructor(args: {
|
|
6
|
+
chainId: CosmosChainId;
|
|
7
|
+
endpoints?: {
|
|
8
|
+
rest: string;
|
|
9
|
+
rpc: string;
|
|
10
|
+
};
|
|
11
|
+
} & {
|
|
12
|
+
wallet: Wallet;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=cosmos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../../../src/strategy/strategies/cosmos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAA;AAC/F,OAAO,EAAW,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,qBAAa,oBAAqB,SAAQ,wBAAwB;gBAE9D,IAAI,EAAE;QACJ,OAAO,EAAE,aAAa,CAAA;QACtB,SAAS,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;KAC1C,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;CAUzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosmos.js","sourceRoot":"","sources":["../../../../src/strategy/strategies/cosmos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAA;AAI/F,MAAM,OAAO,oBAAqB,SAAQ,wBAAwB;IAChE,YACE,IAGsB;QAEtB,KAAK,CACH,IAIC,CACF,CAAA;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CosmostationWalletStrategy as BaseCosmostationWalletStrategy } from '@injectivelabs/wallet-cosmostation';
|
|
2
|
+
import { CosmosChainId } from '@injectivelabs/ts-types';
|
|
3
|
+
import { Wallet } from '@injectivelabs/wallet-base';
|
|
4
|
+
export declare class CosmostationWalletStrategy extends BaseCosmostationWalletStrategy {
|
|
5
|
+
constructor(args: {
|
|
6
|
+
chainId: CosmosChainId;
|
|
7
|
+
endpoints?: {
|
|
8
|
+
rest: string;
|
|
9
|
+
rpc: string;
|
|
10
|
+
};
|
|
11
|
+
} & {
|
|
12
|
+
wallet: Wallet;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=cosmostation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosmostation.d.ts","sourceRoot":"","sources":["../../../../src/strategy/strategies/cosmostation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,IAAI,8BAA8B,EAAE,MAAM,oCAAoC,CAAA;AACjH,OAAO,EAAW,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,qBAAa,0BAA2B,SAAQ,8BAA8B;gBAE1E,IAAI,EAAE;QACJ,OAAO,EAAE,aAAa,CAAA;QACtB,SAAS,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;KAC1C,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;CAUzB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CosmostationWalletStrategy as BaseCosmostationWalletStrategy } from '@injectivelabs/wallet-cosmostation';
|
|
2
|
+
export class CosmostationWalletStrategy extends BaseCosmostationWalletStrategy {
|
|
3
|
+
constructor(args) {
|
|
4
|
+
super(args);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=cosmostation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosmostation.js","sourceRoot":"","sources":["../../../../src/strategy/strategies/cosmostation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,IAAI,8BAA8B,EAAE,MAAM,oCAAoC,CAAA;AAIjH,MAAM,OAAO,0BAA2B,SAAQ,8BAA8B;IAC5E,YACE,IAGsB;QAEtB,KAAK,CACH,IAIC,CACF,CAAA;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/strategy/strategies/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/strategy/strategies/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/strategy/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,aAAa,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/strategy/types.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@injectivelabs/wallet-cosmos-strategy",
|
|
3
|
+
"description": "Wallet Cosmos Strategy with instantiated wallets",
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "InjectiveLabs",
|
|
8
|
+
"email": "admin@injectivelabs.org"
|
|
9
|
+
},
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"types": "dist/cjs/index.d.ts",
|
|
12
|
+
"main": "dist/cjs/index.js",
|
|
13
|
+
"module": "dist/esm/index.js",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"_moduleAliases": {
|
|
18
|
+
"~wallet-cosmos-strategy": "dist"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"postinstall": "link-module-alias",
|
|
22
|
+
"build:cjs": "BUILD_MODE=cjs tsc --build tsconfig.build.json",
|
|
23
|
+
"build:esm": "BUILD_MODE=esm tsc --build tsconfig.build.esm.json",
|
|
24
|
+
"build": "yarn build:esm && yarn build:cjs && yarn build:post && link-module-alias",
|
|
25
|
+
"build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && yarn build:post && link-module-alias",
|
|
26
|
+
"build:post": "shx cp ../../../etc/stub/package.json.stub dist/cjs/package.json && shx cp ../../../etc/stub/package.esm.json.stub dist/esm/package.json",
|
|
27
|
+
"clean": "tsc --build tsconfig.build.json --clean && tsc --build tsconfig.build.esm.json --clean && shx rm -rf coverage *.log junit.xml dist && jest --clearCache && shx mkdir -p dist",
|
|
28
|
+
"test": "jest",
|
|
29
|
+
"test:watch": "jest --watch",
|
|
30
|
+
"test:ci": "jest --coverage --ci --reporters='jest-junit'",
|
|
31
|
+
"coverage": "jest --coverage",
|
|
32
|
+
"coverage:show": "live-server coverage",
|
|
33
|
+
"dev": "ts-node -r tsconfig-paths/register src/index.ts",
|
|
34
|
+
"start": "node dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@ethereumjs/common": "^3.1.1",
|
|
38
|
+
"@ethereumjs/tx": "^4.1.1",
|
|
39
|
+
"@injectivelabs/exceptions": "^1.14.14",
|
|
40
|
+
"@injectivelabs/networks": "^1.14.15",
|
|
41
|
+
"@injectivelabs/sdk-ts": "^1.14.15",
|
|
42
|
+
"@injectivelabs/ts-types": "^1.14.14",
|
|
43
|
+
"@injectivelabs/utils": "^1.14.14",
|
|
44
|
+
"@injectivelabs/wallet-base": "^0.0.2",
|
|
45
|
+
"@injectivelabs/wallet-core": "^0.0.2",
|
|
46
|
+
"@injectivelabs/wallet-cosmos": "^0.0.2",
|
|
47
|
+
"@injectivelabs/wallet-cosmostation": "^0.0.2",
|
|
48
|
+
"alchemy-sdk": "^2.6.3",
|
|
49
|
+
"eip1193-provider": "^1.0.1",
|
|
50
|
+
"eth-sig-util": "^3.0.1",
|
|
51
|
+
"ethereumjs-util": "^7.1.0",
|
|
52
|
+
"ethers": "^6.5.1",
|
|
53
|
+
"hdkey": "^2.0.1",
|
|
54
|
+
"link-module-alias": "^1.2.0",
|
|
55
|
+
"long": "^5.2.1",
|
|
56
|
+
"shx": "^0.3.3"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/eth-sig-util": "^2.1.1",
|
|
60
|
+
"@types/ethereumjs-util": "^6.1.0",
|
|
61
|
+
"@types/hdkey": "^2.0.1"
|
|
62
|
+
},
|
|
63
|
+
"resolutions": {
|
|
64
|
+
"**/libsodium": "npm:@bangjelkoski/noop",
|
|
65
|
+
"**/libsodium-wrappers": "npm:@bangjelkoski/noop"
|
|
66
|
+
},
|
|
67
|
+
"gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445"
|
|
68
|
+
}
|