fix(core): update

This commit is contained in:
2022-02-11 17:49:12 +01:00
commit 688ce7b912
19 changed files with 28150 additions and 0 deletions

20
test/test.ts Normal file
View File

@ -0,0 +1,20 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as helium from '../ts/index';
let testHelium: helium.Helium;
tap.test('should create a valid helium class', async () => {
testHelium = new helium.Helium();
expect(testHelium).toBeInstanceOf(helium.Helium);
});
tap.test('should create and update a wallet', async () => {
const wallet = await testHelium.addWalletByAddress('13L7By1BmboTx1hRUuN3MtMjNmTFaWj5C6EbRZCK2sceaRCWZev');
console.log(wallet.earningsHnt24h);
console.log(wallet.earningsHnt7d);
console.log(wallet.earningsHnt14d);
console.log(wallet.earningsHnt30d);
console.log(wallet.hotspots);
})
tap.start();