Compare commits
No commits in common. "master" and "v1.0.2" have entirely different histories.
4
package-lock.json
generated
4
package-lock.json
generated
@ -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",
|
||||||
|
@ -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",
|
||||||
|
29
readme.md
29
readme.md
@ -27,35 +27,6 @@ Platform support | [ => {
|
|
||||||
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). :)
|
||||||
|
@ -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();
|
||||||
|
@ -1,3 +1 @@
|
|||||||
export * from './helium.classes.helium';
|
export * from './helium.classes.helium';
|
||||||
export * from './helium.classes.heliumwallet';
|
|
||||||
export * from './helium.classes.hotspot';
|
|
Loading…
x
Reference in New Issue
Block a user