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] Vechain integration #4947

Merged
merged 164 commits into from
Nov 16, 2023
Merged

[feat] Vechain integration #4947

merged 164 commits into from
Nov 16, 2023

Conversation

hedi-edelbloute
Copy link
Member

@hedi-edelbloute hedi-edelbloute commented Oct 6, 2023

📝 Description

VeChain integration

❓ Context

  • Impacted projects: LLC,LLD,LLM
  • Linked resource(s): https://ledgerhq.atlassian.net/browse/LIVE-6240

✅ Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

📸 Demo

🚀 Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

davidecarpini and others added 30 commits March 7, 2023 10:29
…rebased

feat: vet and vethor integration
- added options to cli-transaction file and changed the property name to vechainCurrency
- buildOptimisticOperation now uses only data already calculated
- removed mode property from vechain transaction, added estimatedFees to provide the data to the previous point
- added basic vechain app unit test
The query was failing resulting in an incorrect gas calculation
Copy link

vercel bot commented Nov 15, 2023

Deployment failed with the following error:

Too many requests - try again in 2 minutes (more than 60, code: "api-deployments-flood").

@live-github-bot
Copy link
Contributor

Desktop Build Checks


⚠️ renderer bundle size significantly increased: 31.9mb -> 32mb. Please check if this is expected.
⚠️ hash.js library is now duplicated in and renderer (regression)
⚠️ scrypt-js library is now duplicated in and renderer (regression)

@live-github-bot
Copy link
Contributor

Desktop Build Checks


⚠️ renderer bundle size significantly increased: 31.9mb -> 32mb. Please check if this is expected.
⚠️ hash.js library is now duplicated in and renderer (regression)
⚠️ scrypt-js library is now duplicated in and renderer (regression)
⚠️ @noble/hashes/ripemd160 library is now duplicated in and renderer (regression)

@live-github-bot
Copy link
Contributor

Desktop Build Checks


⚠️ renderer bundle size significantly increased: 31.9mb -> 32.1mb. Please check if this is expected.
⚠️ hash.js library is now duplicated in and renderer (regression)
⚠️ scrypt-js library is now duplicated in and renderer (regression)
⚠️ @noble/hashes/ripemd160 library is now duplicated in and renderer (regression)

@live-github-bot
Copy link
Contributor

Desktop Build Checks


⚠️ renderer bundle size significantly increased: 31.9mb -> 32mb. Please check if this is expected.
⚠️ hash.js library is now duplicated in and renderer (regression)
⚠️ scrypt-js library is now duplicated in and renderer (regression)
⚠️ @noble/hashes/ripemd160 library is now duplicated in and renderer (regression)

@live-github-bot
Copy link
Contributor

Desktop Build Checks


⚠️ renderer bundle size significantly increased: 31.9mb -> 32.1mb. Please check if this is expected.
⚠️ hash.js library is now duplicated in renderer (regression)
⚠️ scrypt-js library is now duplicated in renderer (regression)

@live-github-bot
Copy link
Contributor

Desktop Build Checks

Comparing 7d81ed4 against e7b5ffc.

⚠️ renderer bundle size significantly increased: 31.9mb -> 32mb. Please check if this is expected.
⚠️ hash.js library is now duplicated in renderer (regression)
⚠️ scrypt-js library is now duplicated in renderer (regression)

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

🚀

Copy link

[Bot] Testing with 'Nitrogen' ❌ 1 txs 💰 1 miss funds ($0.38) ⏲ 17.2s

❌ 1 specs have problems: VeChain VTHO
💰 1 specs may miss funds: VeChain VET

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

❌ 1 mutation errors
necessary accounts resynced in 0.27ms
▬ VeChain 1.1.1 on nanoX 2.2.2
→ FROM Vechain 1 cross: 0 VET (4ops) (0xc4B17901FECf86932c3bb296BB00E7c6816Fd416 on 44'/818'/0'/0/0) vechain#0 js:2:vechain:0xc4B17901FECf86932c3bb296BB00E7c6816Fd416:vechain 0 VET spendable. 
  TokenAccount Vethor: 54.3706899375 VTHO (2 ops) (! sum of ops 55 VTHO)
max spendable ~0
★ using mutation 'move all VTHO'
→ TO Vechain 2: 5 VET (3ops) (0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD on 44'/818'/0'/0/1) vechain#1 js:2:vechain:0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD:vechain
✔️ transaction SEND MAX TO 0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD
STATUS (1830ms)
  amount: 53.8542299375 VTHO
  estimated fees: 0.51646 VET
  total spent: 54.3706899375 VTHO
errors: 
errors: 
⚠️ VechainAppPleaseEnableContractDataAndMultiClause: Please enable contract data in Vechain app settings
(totally spent 1853ms – ends at 2023-11-16T15:20:02.788Z)
⚠️ 2 spec hints
  • Spec VeChain VTHO:
    • mutations should define a testDestination(): move all VTHO
  • Spec VeChain VET:
    • No mutation were found possible. Yet there are funds in the accounts, please investigate.
Details of the 1 mutations

Spec VeChain VTHO (3)

Spec VeChain VTHO found 3 Vechain accounts. Will use VeChain 1.1.1 on nanoX 2.2.2
Vechain 1 cross: 0 VET (4ops) (0xc4B17901FECf86932c3bb296BB00E7c6816Fd416 on 44'/818'/0'/0/0) vechain#0 js:2:vechain:0xc4B17901FECf86932c3bb296BB00E7c6816Fd416:vechain
Vechain 2: 5 VET (3ops) (0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD on 44'/818'/0'/0/1) vechain#1 js:2:vechain:0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD:vechain
Vechain 3: 0 VET (0ops) (0x6fc5998724338CDe55Bba798273FAdcDE79c5074 on 44'/818'/0'/0/2) vechain#2 js:2:vechain:0x6fc5998724338CDe55Bba798273FAdcDE79c5074:vechain
necessary accounts resynced in 0.27ms
▬ VeChain 1.1.1 on nanoX 2.2.2
→ FROM Vechain 1 cross: 0 VET (4ops) (0xc4B17901FECf86932c3bb296BB00E7c6816Fd416 on 44'/818'/0'/0/0) vechain#0 js:2:vechain:0xc4B17901FECf86932c3bb296BB00E7c6816Fd416:vechain 0 VET spendable. 
  TokenAccount Vethor: 54.3706899375 VTHO (2 ops) (! sum of ops 55 VTHO)
max spendable ~0
★ using mutation 'move all VTHO'
→ TO Vechain 2: 5 VET (3ops) (0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD on 44'/818'/0'/0/1) vechain#1 js:2:vechain:0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD:vechain
✔️ transaction SEND MAX TO 0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD
STATUS (1830ms)
  amount: 53.8542299375 VTHO
  estimated fees: 0.51646 VET
  total spent: 54.3706899375 VTHO
errors: 
errors: 
⚠️ VechainAppPleaseEnableContractDataAndMultiClause: Please enable contract data in Vechain app settings
(totally spent 1853ms – ends at 2023-11-16T15:20:02.792Z)

Spec VeChain VET (3)

Spec VeChain VET found 3 Vechain accounts. Will use VeChain 1.1.1 on nanoX 2.2.2
Vechain 1 cross: 0 VET (4ops) (0xc4B17901FECf86932c3bb296BB00E7c6816Fd416 on 44'/818'/0'/0/0) vechain#0 js:2:vechain:0xc4B17901FECf86932c3bb296BB00E7c6816Fd416:vechain
Vechain 2: 5 VET (3ops) (0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD on 44'/818'/0'/0/1) vechain#1 js:2:vechain:0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD:vechain
Vechain 3: 0 VET (0ops) (0x6fc5998724338CDe55Bba798273FAdcDE79c5074 on 44'/818'/0'/0/2) vechain#2 js:2:vechain:0x6fc5998724338CDe55Bba798273FAdcDE79c5074:vechain

Details of the 3 uncovered mutations

Spec VeChain VTHO (1)

  • move ~50% VTHO: Vechain: VTHO balance is not enough (2)

Spec VeChain VET (2)

  • move ~50% VET: Vechain: VET balance is empty (2), Vechain: VTHO balance is not enough (1)
  • move all VET: Vechain: VET balance is empty (2), Vechain: VTHO balance is not enough (1)
Portfolio ($0.38) – Details of the 2 currencies
Spec (accounts) State Remaining Runs (est) funds?
VeChain VTHO (3) 7 ops , 5 VET ($0.19) ⚠️ 12 0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
VeChain VET (3) 7 ops , 5 VET ($0.19) ⚠️ 12 0xc4B17901FECf86932c3bb296BB00E7c6816Fd416
Vechain 1 cross: 0 VET (4ops) (0xc4B17901FECf86932c3bb296BB00E7c6816Fd416 on 44'/818'/0'/0/0) vechain#0 js:2:vechain:0xc4B17901FECf86932c3bb296BB00E7c6816Fd416:vechain
Vechain 2: 5 VET (3ops) (0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD on 44'/818'/0'/0/1) vechain#1 js:2:vechain:0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD:vechain
Vechain 3: 0 VET (0ops) (0x6fc5998724338CDe55Bba798273FAdcDE79c5074 on 44'/818'/0'/0/2) vechain#2 js:2:vechain:0x6fc5998724338CDe55Bba798273FAdcDE79c5074:vechain
Vechain 1 cross: 0 VET (4ops) (0xc4B17901FECf86932c3bb296BB00E7c6816Fd416 on 44'/818'/0'/0/0) vechain#0 js:2:vechain:0xc4B17901FECf86932c3bb296BB00E7c6816Fd416:vechain
Vechain 2: 5 VET (3ops) (0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD on 44'/818'/0'/0/1) vechain#1 js:2:vechain:0x7850ddc6a26AF0C078b9f1569Ca16746B2ACd3bD:vechain
Vechain 3: 0 VET (0ops) (0x6fc5998724338CDe55Bba798273FAdcDE79c5074 on 44'/818'/0'/0/2) vechain#2 js:2:vechain:0x6fc5998724338CDe55Bba798273FAdcDE79c5074:vechain
Performance ⏲ 17.2s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 2.28ms 15.2s 11ms 1830ms N/A N/A N/A N/A
VeChain VTHO (2) 0.33ms 7.7s 1.84ms 1830ms N/A N/A N/A N/A
VeChain VET (2) 1.96ms 7.5s 9ms N/A N/A N/A N/A N/A

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

@hedi-edelbloute hedi-edelbloute merged commit 2edfa53 into develop Nov 16, 2023
50 of 51 checks passed
@hedi-edelbloute hedi-edelbloute deleted the feat/vechain branch November 16, 2023 16:09
lvndry pushed a commit that referenced this pull request Nov 16, 2023
lvndry pushed a commit that referenced this pull request Nov 16, 2023
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 translations Translation files have been touched ui Has changes in the design system library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants