Skip to content

Commit

Permalink
tests: fix bot spec file config
Browse files Browse the repository at this point in the history
  • Loading branch information
Wozacosta committed Oct 21, 2024
1 parent 24264b6 commit 1ba24ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions libs/coin-modules/coin-hedera/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"lib-es/*": [
"lib-es/*"
],
"specs": [
"lib/test/bot-specs"
],
"*": [
"lib/*"
]
Expand All @@ -40,6 +43,10 @@
"require": "./lib/*.js",
"default": "./lib-es/*.js"
},
"./specs": {
"require": "./lib/test/bot-specs.js",
"default": "./lib-es/test/bot-specs.js"
},
"./package.json": "./package.json"
},
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion libs/coin-modules/coin-hedera/src/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import makeCliTools from "./cli";

export * from "./bridgeDatasetTest";
export { makeCliTools };
export * from "./specs";
export * from "./bot-specs";
export * from "./speculos-deviceActions";
2 changes: 2 additions & 0 deletions libs/ledger-live-common/src/generated/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import cardano from "@ledgerhq/coin-cardano/specs";
import cosmos from "@ledgerhq/coin-cosmos/specs";
import elrond from "@ledgerhq/coin-elrond/specs";
import evm from "@ledgerhq/coin-evm/specs";
import hedera from "@ledgerhq/coin-hedera/specs";
import icon from "@ledgerhq/coin-icon/specs";
import near from "@ledgerhq/coin-near/specs";
import polkadot from "@ledgerhq/coin-polkadot/specs";
Expand All @@ -35,6 +36,7 @@ export default {
cosmos,
elrond,
evm,
hedera,
icon,
near,
polkadot,
Expand Down

1 comment on commit 1ba24ee

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Bot] Testing with 'Nitrogen' ✅ 4 txs ($2.07) ⏲ 4min 58s

✅ 1 specs are successful: Hedera

What is the bot and how does it work? Everything is documented here!

Details of the 4 mutations

Spec Hedera (4)

Spec Hedera found 4 Hedera accounts. Will use Hedera 1.0.8 on nanoS 2.1.0
undefined: 3.20896 HBAR (534ops) (0.0.3663977 on 44/3030) hederaBip44#0 js:2:hedera:0.0.3663977:hederaBip44
undefined: 22.9073 HBAR (489ops) (0.0.3664525 on 44/3030) hederaBip44#1 js:2:hedera:0.0.3664525:hederaBip44
undefined: 3.34039 HBAR (458ops) (0.0.3664539 on 44/3030) hederaBip44#2 js:2:hedera:0.0.3664539:hederaBip44
undefined: 9.1105 HBAR (427ops) (0.0.3664563 on 44/3030) hederaBip44#3 js:2:hedera:0.0.3664563:hederaBip44
necessary accounts resynced in 0.26ms
▬ Hedera 1.0.8 on nanoS 2.1.0
→ FROM undefined: 3.20896 HBAR (534ops) (0.0.3663977 on 44/3030) hederaBip44#0 js:2:hedera:0.0.3663977:hederaBip44
max spendable ~3.20525
★ using mutation 'Memo'
→ TO undefined: 22.9073 HBAR (489ops) (0.0.3664525 on 44/3030) hederaBip44#1 js:2:hedera:0.0.3664525:hederaBip44
✔️ transaction SEND 1.67579024 HBAR
TO 0.0.3664525
STATUS (217ms)
  amount: 1.67579024 HBAR
  estimated fees: 0.00371506 HBAR
  total spent: 1.6795053 HBAR
errors: 
warnings: 
✔️ has been signed! (2674ms) 
✔️ broadcasted! (389ms) optimistic operation: 
  -1.67579024 HBAR   OUT        EoTF3TqLK6FZYJ6syI4bmbHWkP5dLl1s2-p40ch32w_9kc8nXlz-i75UviwDo2oB 2024-10-21T15:37
✔️ operation confirmed (10.2s): 
  -1.67767699 HBAR   OUT        EoTF3TqLK6FZYJ6syI4bmbHWkP5dLl1s2-p40ch32w_9kc8nXlz-i75UviwDo2oB 2024-10-21T15:37
✔️ undefined: 1.53129 HBAR (535ops) (0.0.3663977 on 44/3030) hederaBip44#0 js:2:hedera:0.0.3663977:hederaBip44(in 10.2s)
✔️ destination operation 
  +1.67579024 HBAR   IN         EoTF3TqLK6FZYJ6syI4bmbHWkP5dLl1s2-p40ch32w_9kc8nXlz-i75UviwDo2oB 2024-10-21T15:37
(in 10.2s)

necessary accounts resynced in 0.26ms
▬ Hedera 1.0.8 on nanoS 2.1.0
→ FROM undefined: 24.5831 HBAR (490ops) (0.0.3664525 on 44/3030) hederaBip44#1 js:2:hedera:0.0.3664525:hederaBip44
max spendable ~24.5793
★ using mutation 'Send max'
→ TO undefined: 3.34039 HBAR (458ops) (0.0.3664539 on 44/3030) hederaBip44#2 js:2:hedera:0.0.3664539:hederaBip44
✔️ transaction SEND 24.57938549 HBAR
TO 0.0.3664539
STATUS (198ms)
  amount: 24.57938549 HBAR
  estimated fees: 0.00371506 HBAR
  total spent: 24.58310055 HBAR
errors: 
warnings: 
✔️ has been signed! (2441ms) 
✔️ broadcasted! (379ms) optimistic operation: 
  -24.57938549 HBAR  OUT        SQS-_Iiu2KbQzQqu9R0lt9NGu6bdy4INnwcx2cOb8Pn3JeVni9t7gLEAGMUsW0vi 2024-10-21T15:38
✔️ operation confirmed (10.4s): 
  -24.58126277 HBAR  OUT        SQS-_Iiu2KbQzQqu9R0lt9NGu6bdy4INnwcx2cOb8Pn3JeVni9t7gLEAGMUsW0vi 2024-10-21T15:38
✔️ undefined: 0.00183778 HBAR (491ops) (0.0.3664525 on 44/3030) hederaBip44#1 js:2:hedera:0.0.3664525:hederaBip44(in 10.4s)
✔️ destination operation 
  +24.57938549 HBAR  IN         SQS-_Iiu2KbQzQqu9R0lt9NGu6bdy4INnwcx2cOb8Pn3JeVni9t7gLEAGMUsW0vi 2024-10-21T15:38
(in 10.3s)

necessary accounts resynced in 0.27ms
▬ Hedera 1.0.8 on nanoS 2.1.0
→ FROM undefined: 27.9197 HBAR (459ops) (0.0.3664539 on 44/3030) hederaBip44#2 js:2:hedera:0.0.3664539:hederaBip44
max spendable ~27.916
★ using mutation 'Send max'
→ TO undefined: 9.1105 HBAR (427ops) (0.0.3664563 on 44/3030) hederaBip44#3 js:2:hedera:0.0.3664563:hederaBip44
✔️ transaction SEND 27.91606204 HBAR
TO 0.0.3664563
STATUS (190ms)
  amount: 27.91606204 HBAR
  estimated fees: 0.00371734 HBAR
  total spent: 27.91977938 HBAR
errors: 
warnings: 
✔️ has been signed! (2436ms) 
✔️ broadcasted! (383ms) optimistic operation: 
  -27.91606204 HBAR  OUT        O298K-QfPyACEVu9C0DL1sGzoHx4L5s_5QPOWcdOSGRlQre39PVG3WHIxlu70DoM 2024-10-21T15:38
✔️ operation confirmed (10.5s): 
  -27.91793932 HBAR  OUT        O298K-QfPyACEVu9C0DL1sGzoHx4L5s_5QPOWcdOSGRlQre39PVG3WHIxlu70DoM 2024-10-21T15:38
✔️ undefined: 0.00184006 HBAR (460ops) (0.0.3664539 on 44/3030) hederaBip44#2 js:2:hedera:0.0.3664539:hederaBip44(in 10.5s)
✔️ destination operation 
  +27.91606204 HBAR  IN         O298K-QfPyACEVu9C0DL1sGzoHx4L5s_5QPOWcdOSGRlQre39PVG3WHIxlu70DoM 2024-10-21T15:38
(in 10.8s)

necessary accounts resynced in 0.24ms
▬ Hedera 1.0.8 on nanoS 2.1.0
→ FROM undefined: 37.0265 HBAR (428ops) (0.0.3664563 on 44/3030) hederaBip44#3 js:2:hedera:0.0.3664563:hederaBip44
max spendable ~37.0228
★ using mutation 'Send ~50%'
→ TO undefined: 0.00184006 HBAR (460ops) (0.0.3664539 on 44/3030) hederaBip44#2 js:2:hedera:0.0.3664539:hederaBip44
✔️ transaction SEND 19.2201047 HBAR
TO 0.0.3664539
STATUS (145ms)
  amount: 19.2201047 HBAR
  estimated fees: 0.00371734 HBAR
  total spent: 19.22382204 HBAR
errors: 
warnings: 
✔️ has been signed! (2442ms) 
✔️ broadcasted! (281ms) optimistic operation: 
  -19.2201047 HBAR   OUT        IInBaJa_O4mHIi7rmTM1cI3rkUG1uytDvq8k0oD5vUBSdO3C2gZQdK3tFiU4eq7G 2024-10-21T15:39
✔️ operation confirmed (10.2s): 
  -19.22198198 HBAR  OUT        IInBaJa_O4mHIi7rmTM1cI3rkUG1uytDvq8k0oD5vUBSdO3C2gZQdK3tFiU4eq7G 2024-10-21T15:39
✔️ undefined: 17.8045 HBAR (429ops) (0.0.3664563 on 44/3030) hederaBip44#3 js:2:hedera:0.0.3664563:hederaBip44(in 10.2s)
✔️ destination operation 
  +19.2201047 HBAR   IN         IInBaJa_O4mHIi7rmTM1cI3rkUG1uytDvq8k0oD5vUBSdO3C2gZQdK3tFiU4eq7G 2024-10-21T15:39
(in 10.3s)


Portfolio ($2.07) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
Hedera (4) 1916 ops (+8), 38.5671 HBAR ($2.07) 💪 999+ 0.0.3663977
undefined: 1.53129 HBAR (535ops) (0.0.3663977 on 44/3030) hederaBip44#0 js:2:hedera:0.0.3663977:hederaBip44
undefined: 0.00183778 HBAR (491ops) (0.0.3664525 on 44/3030) hederaBip44#1 js:2:hedera:0.0.3664525:hederaBip44
undefined: 19.2219 HBAR (461ops) (0.0.3664539 on 44/3030) hederaBip44#2 js:2:hedera:0.0.3664539:hederaBip44
undefined: 17.8045 HBAR (429ops) (0.0.3664563 on 44/3030) hederaBip44#3 js:2:hedera:0.0.3664563:hederaBip44
Performance ⏲ 4min 58s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 1.09ms 3min 21s 1.03ms 750ms 10s 1432ms 41.2s 41.7s
Hedera (4) 1.09ms 3min 21s 1.03ms 750ms 10s 1432ms 41.2s 41.7s

What is the bot and how does it work? Everything is documented here!

Please sign in to comment.