Skip to content

Commit 0394292

Browse files
author
Fabrice Bascoulergue
authored
Merge pull request #5 from lum-network/develop
Publish release v0.3.0
2 parents 1532972 + 88307c6 commit 0394292

File tree

6 files changed

+28
-375
lines changed

6 files changed

+28
-375
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"@babel/plugin-transform-runtime": "^7.12.10",
6464
"@babel/preset-env": "^7.8.3",
6565
"@babel/preset-typescript": "^7.8.3",
66-
"@ledgerhq/hw-transport-node-hid": "^5.46.0",
6766
"@types/crypto-js": "^4.0.1",
6867
"@types/jest": "^26.0.20",
6968
"@types/ledgerhq__hw-transport": "^4.21.3",

src/client/LumClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
DistributionExtension,
1414
} from '@cosmjs/stargate';
1515

16-
import { LumWallet, LumUtils, LumTypes, LumMessages } from '..';
16+
import { LumWallet, LumUtils, LumTypes } from '..';
1717

1818
export class LumClient {
1919
readonly tmClient: Tendermint34Client;

src/wallet/LumLedgerWallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Transport from '@ledgerhq/hw-transport';
22
import Cosmos from '@ledgerhq/hw-app-cosmos';
33

4-
import { LumUtils, LumTypes, LumRegistry } from '..';
4+
import { LumUtils, LumTypes } from '..';
55
import { LumWallet } from '.';
66

77
export class LumLedgerWallet extends LumWallet {

tests/faucet.test.ts

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LumClient, LumConstants, LumMessages, LumUtils, LumWallet, LumWalletFactory } from '../src';
1+
import { LumClient, LumUtils, LumWallet, LumWalletFactory } from '../src';
22

33
describe('Faucet', () => {
44
let clt: LumClient;
@@ -14,12 +14,23 @@ describe('Faucet', () => {
1414
});
1515

1616
it('Should build and dispatch a mint message', async () => {
17-
const mintMsg = LumMessages.BuildMsgMintAndSend(w1.getAddress(), new Date());
18-
const fee = {
19-
amount: [{ denom: LumConstants.LumDenom, amount: '0' }],
20-
gas: '100000',
21-
};
22-
const broadcastResult = await clt.signAndBroadcastTx(w1, [mintMsg], fee, 'I need a dollar!');
23-
expect(LumUtils.broadcastTxCommitSuccess(broadcastResult)).toBeTruthy();
17+
// WIP
18+
// const mintMsg = LumMessages.BuildMsgMintAndSend(w1.getAddress(), new Date());
19+
// const fee = {
20+
// amount: [{ denom: LumConstants.LumDenom, amount: '0' }],
21+
// gas: '100000',
22+
// };
23+
// const chainId = await clt.getChainId();
24+
// const acc = await clt.getAccount(w1.getAddress());
25+
// const doc = {
26+
// accountNumber: acc.accountNumber,
27+
// chainId,
28+
// fee: fee,
29+
// memo: 'I need a dollar!',
30+
// messages: [mintMsg],
31+
// sequence: acc.sequence,
32+
// };
33+
// const broadcastResult = await clt.signAndBroadcastTx(w1, doc);
34+
// expect(LumUtils.broadcastTxCommitSuccess(broadcastResult)).toBeTruthy();
2435
});
2536
});

tests/ledger.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ describe('Ledger', () => {
1515

1616
it('Should be able to connect to ledger hardware wallet', async () => {
1717
// WIP - manual testing using ledger device
18-
1918
// const transport = await TransportNodeHid.create();
2019
// const w1 = await LumWalletFactory.fromLedgerTransport(transport, `m/44'/118'/0'/0/0`, 'lum');
2120
// const acc = await clt.getAccount(w1.getAddress());
2221
// expect(acc).toBeTruthy();
2322
// const balance = await clt.getBalance(acc.address, 'lum');
2423
// expect(parseInt(balance.amount)).toBeGreaterThan(0);
25-
2624
// TODO: requires to fixe the ledger signing implementation
2725
// const chainId = await clt.getChainId();
2826
// const sendMsg = LumMessages.BuildMsgSend(w1.getAddress(), 'lum1ty3meqzqxq7vkdyp7l7znzvn0t50w92uf6h4px', [{ denom: 'lum', amount: '3' }]);

0 commit comments

Comments
 (0)