Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: zenrock integration #8731

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Conversation

Canestin
Copy link
Contributor

@Canestin Canestin commented Dec 18, 2024

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • zenrock currency

📝 Description

We are adding support for the Zenrock blockchain in Ledger Live Mobile and Desktop.
Features: Send, receive, transaction history, and native staking

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@Canestin Canestin requested review from a team as code owners December 18, 2024 14:49
Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 10:22am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 10:22am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 10:22am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 10:22am

Copy link

[Bot] Testing with 'Nitrogen' 💰 1 miss funds ($0.00) ⏲ 3.4s

💰 1 specs may miss funds: zenrock

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

⚠️ 1 spec hints
  • Spec zenrock:
    • There are not enough accounts (1) to cover all mutations (6).
      Please increase the account target to at least 7 accounts
Details of the 0 mutations

Spec zenrock (failed)

Spec zenrock found 1 Zenrock accounts (preload: 92ms). Will use Cosmos 2.36.0 on nanoS 2.1.0
undefined: 0 ROCK (0ops) (zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u on 44'/118'/0'/0/0) #0 js:2:zenrock:zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u:

This SEED does not have Zenrock. Please send funds to zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u

Details of the 6 uncovered mutations

Spec zenrock (6)

  • send some:
  • send max:
  • delegate new validators:
  • undelegate:
  • redelegate:
  • claim rewards:
Portfolio ($0.00) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
zenrock (1) 0 ops , 0 ROCK ($0.00) zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u
undefined: 0 ROCK (0ops) (zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u on 44'/118'/0'/0/0) #0 js:2:zenrock:zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u:
Performance ⏲ 3.4s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 92ms 1007ms N/A N/A N/A N/A N/A N/A
zenrock (0) 92ms 1007ms N/A N/A N/A N/A N/A N/A

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

Copy link

[Bot] Testing with 'Nitrogen' ✅ 1 txs ($0.45) ⏲ 7.1s

✅ 1 specs are successful: zenrock

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

⚠️ 1 spec hints
  • Spec zenrock:
    • There are not enough accounts (2) to cover all mutations (6).
      Please increase the account target to at least 7 accounts
Details of the 1 mutations

Spec zenrock (2)

Spec zenrock found 2 Zenrock accounts (preload: 95ms). Will use Cosmos 2.36.0 on nanoS 2.1.0
undefined: 10 ROCK (1ops) (zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u on 44'/118'/0'/0/0) #0 js:2:zenrock:zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u:
undefined: 0 ROCK (0ops) (zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82 on 44'/118'/1'/0/0) #1 js:2:zenrock:zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82:
necessary accounts resynced in 0.24ms
▬ Cosmos 2.36.0 on nanoS 2.1.0
→ FROM undefined: 10 ROCK (1ops) (zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u on 44'/118'/0'/0/0) #0 js:2:zenrock:zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u: 10 ROCK spendable. 

max spendable ~9.987
★ using mutation 'send max'
→ TO undefined: 0 ROCK (0ops) (zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82 on 44'/118'/1'/0/0) #1 js:2:zenrock:zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82:
✔️ transaction 
SEND MAX
TO zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82

with fees=0.011785
STATUS (28ms)
  amount: 9.988215 ROCK
  estimated fees: 0.011785 ROCK
  total spent: 10 ROCK
errors: 
warnings: 
✔️ has been signed! (2995ms) 
✔️ broadcasted! (6ms) optimistic operation: 
  -10 ROCK           OUT        1903B447D974FDC834D0D5570C01A41CB3395EC6F02DDDD197108074C8FA53D5 2025-01-10T10:38
✔️ operation confirmed (0.52ms): 
  -10 ROCK           OUT        1903B447D974FDC834D0D5570C01A41CB3395EC6F02DDDD197108074C8FA53D5 2025-01-10T10:38
✔️ undefined: 10 ROCK (1ops) (zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u on 44'/118'/0'/0/0) #0 js:2:zenrock:zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u: 10 ROCK spendable. 
✔️ destination operation 
  ? -10000000        OUT        1903B447D974FDC834D0D5570C01A41CB3395EC6F02DDDD197108074C8FA53D5 2025-01-10T10:38


Details of the 5 uncovered mutations

Spec zenrock (5)

  • send some: balance is too low for send (1)
  • delegate new validators: can delegate (1)
  • undelegate: balance is too low (1)
  • redelegate: balance is too low for redelegate (1)
  • claim rewards: balance is too low for claim rewards (1)
Portfolio ($0.45) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
zenrock (2) 1 ops , 10 ROCK ($0.45) 👍 85 zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u
undefined: 10 ROCK (1ops) (zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u on 44'/118'/0'/0/0) #0 js:2:zenrock:zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u:
undefined: 0 ROCK (0ops) (zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82 on 44'/118'/1'/0/0) #1 js:2:zenrock:zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82:
Performance ⏲ 7.1s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 95ms 1146ms 0.41ms 28ms 2995ms 6ms 0.52ms N/A
zenrock (1) 95ms 1146ms 0.41ms 28ms 2995ms 6ms 0.52ms N/A

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

Copy link

[Bot] Testing with 'Nitrogen' ✅ 1 txs ($0.45) ⏲ 7.4s

✅ 1 specs are successful: zenrock

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

⚠️ 1 spec hints
  • Spec zenrock:
    • There are not enough accounts (3) to cover all mutations (6).
      Please increase the account target to at least 7 accounts
Details of the 1 mutations

Spec zenrock (3)

Spec zenrock found 3 Zenrock accounts (preload: 89ms). Will use Cosmos 2.36.0 on nanoS 2.1.0
undefined: 0 ROCK (2ops) (zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u on 44'/118'/0'/0/0) #0 js:2:zenrock:zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u:
undefined: 9.98821 ROCK (1ops) (zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82 on 44'/118'/1'/0/0) #1 js:2:zenrock:zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82:
undefined: 0 ROCK (0ops) (zen1vvzwc6l3wfdaqa9rncex8k2uwtpwztswzdl8v0 on 44'/118'/2'/0/0) #2 js:2:zenrock:zen1vvzwc6l3wfdaqa9rncex8k2uwtpwztswzdl8v0:
necessary accounts resynced in 0.12ms
▬ Cosmos 2.36.0 on nanoS 2.1.0
→ FROM undefined: 9.98821 ROCK (1ops) (zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82 on 44'/118'/1'/0/0) #1 js:2:zenrock:zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82: 9.988215 ROCK spendable. 

max spendable ~9.97521
★ using mutation 'send max'
→ TO undefined: 0 ROCK (0ops) (zen1vvzwc6l3wfdaqa9rncex8k2uwtpwztswzdl8v0 on 44'/118'/2'/0/0) #2 js:2:zenrock:zen1vvzwc6l3wfdaqa9rncex8k2uwtpwztswzdl8v0:
✔️ transaction 
SEND MAX
TO zen1vvzwc6l3wfdaqa9rncex8k2uwtpwztswzdl8v0

with fees=0.011784
STATUS (24ms)
  amount: 9.976431 ROCK
  estimated fees: 0.011784 ROCK
  total spent: 9.988215 ROCK
errors: 
warnings: 
✔️ has been signed! (2991ms) 
✔️ broadcasted! (5ms) optimistic operation: 
  -9.988215 ROCK     OUT        B3DB5EE0E541F09FA79BC19B42F70EB8CC667E676D748CAA7B499AB1F7A64CC6 2025-01-10T11:17
✔️ operation confirmed (0.46ms): 
  -9.988215 ROCK     OUT        B3DB5EE0E541F09FA79BC19B42F70EB8CC667E676D748CAA7B499AB1F7A64CC6 2025-01-10T11:17
✔️ undefined: 9.98821 ROCK (1ops) (zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82 on 44'/118'/1'/0/0) #1 js:2:zenrock:zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82: 9.988215 ROCK spendable. 
✔️ destination operation 
  ? -9988215         OUT        B3DB5EE0E541F09FA79BC19B42F70EB8CC667E676D748CAA7B499AB1F7A64CC6 2025-01-10T11:17


Details of the 5 uncovered mutations

Spec zenrock (5)

  • send some: balance is too low for send (2)
  • delegate new validators: only one out of 2 accounts is not going to delegate (2)
  • undelegate: balance is too low (2)
  • redelegate: balance is too low for redelegate (2)
  • claim rewards: balance is too low for claim rewards (2)
Portfolio ($0.45) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
zenrock (3) 3 ops , 9.98821 ROCK ($0.45) 👍 79 zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u
undefined: 0 ROCK (2ops) (zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u on 44'/118'/0'/0/0) #0 js:2:zenrock:zen1rs97j43nfyvc689y5rjvnnhrq3tes6ghp36y0u:
undefined: 9.98821 ROCK (1ops) (zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82 on 44'/118'/1'/0/0) #1 js:2:zenrock:zen1qvtnzptp30maznnhdg30xl2jtdq2shpna3hh82:
undefined: 0 ROCK (0ops) (zen1vvzwc6l3wfdaqa9rncex8k2uwtpwztswzdl8v0 on 44'/118'/2'/0/0) #2 js:2:zenrock:zen1vvzwc6l3wfdaqa9rncex8k2uwtpwztswzdl8v0:
Performance ⏲ 7.4s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 89ms 1298ms 0.46ms 24ms 2991ms 5ms 0.46ms N/A
zenrock (2) 89ms 1298ms 0.46ms 24ms 2991ms 5ms 0.46ms N/A

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli common Has changes in live-common desktop Has changes in LLD ledgerjs Has changes in the ledgerjs open source libs mobile Has changes in LLM ui Has changes in the design system library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants