2 Commits

Author SHA1 Message Date
23aa90252b 1.0.3 2022-02-11 17:53:50 +01:00
1e6253e3f4 fix(core): update 2022-02-11 17:53:50 +01:00
4 changed files with 12 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@mojoio/helium", "name": "@mojoio/helium",
"version": "1.0.2", "version": "1.0.3",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@mojoio/helium", "name": "@mojoio/helium",
"version": "1.0.2", "version": "1.0.3",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/smarttime": "^3.0.45", "@pushrocks/smarttime": "^3.0.45",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@mojoio/helium", "name": "@mojoio/helium",
"version": "1.0.2", "version": "1.0.3",
"private": false, "private": false,
"description": "a helium api package", "description": "a helium api package",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@@ -10,11 +10,17 @@ tap.test('should create a valid helium class', async () => {
tap.test('should create and update a wallet', async () => { tap.test('should create and update a wallet', async () => {
const wallet = await testHelium.addWalletByAddress('13L7By1BmboTx1hRUuN3MtMjNmTFaWj5C6EbRZCK2sceaRCWZev'); const wallet = await testHelium.addWalletByAddress('13L7By1BmboTx1hRUuN3MtMjNmTFaWj5C6EbRZCK2sceaRCWZev');
expect(wallet).toBeInstanceOf(helium.HeliumWallet);
console.log(wallet.earningsHnt24h); console.log(wallet.earningsHnt24h);
console.log(wallet.earningsHnt7d); console.log(wallet.earningsHnt7d);
console.log(wallet.earningsHnt14d); console.log(wallet.earningsHnt14d);
console.log(wallet.earningsHnt30d); console.log(wallet.earningsHnt30d);
console.log(wallet.hotspots); console.log(wallet.hotspots);
expect(wallet.hotspots[0]).toBeInstanceOf(helium.HeliumHotspot);
// you can call wallet.update() at any time to update all wallet information
// also wallet.hotspots[0].update() will only update an individual hotspot;
}) })
tap.start(); tap.start();

View File

@@ -1 +1,3 @@
export * from './helium.classes.helium'; export * from './helium.classes.helium';
export * from './helium.classes.heliumwallet';
export * from './helium.classes.hotspot';