Compare commits

..

No commits in common. "master" and "v1.0.2" have entirely different histories.

5 changed files with 4 additions and 41 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@mojoio/helium", "name": "@mojoio/helium",
"version": "1.0.5", "version": "1.0.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@mojoio/helium", "name": "@mojoio/helium",
"version": "1.0.5", "version": "1.0.2",
"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.5", "version": "1.0.2",
"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

@ -27,35 +27,6 @@ Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20W
Use TypeScript for best in class intellisense Use TypeScript for best in class intellisense
```typescript
import { expect, tap } from '@pushrocks/tapbundle';
import * as helium from '@mojoio/helium';
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');
expect(wallet).toBeInstanceOf(helium.HeliumWallet);
console.log(wallet.earningsHnt24h);
console.log(wallet.earningsHnt7d);
console.log(wallet.earningsHnt14d);
console.log(wallet.earningsHnt30d);
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();
```
## Contribution ## Contribution
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :) We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)

View File

@ -10,17 +10,11 @@ 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,3 +1 @@
export * from './helium.classes.helium'; export * from './helium.classes.helium';
export * from './helium.classes.heliumwallet';
export * from './helium.classes.hotspot';