Skip to content

Conversation

@chabroA
Copy link
Contributor

@chabroA chabroA commented Nov 15, 2023

πŸ“ Description

Following an update of the Polkadot protocol, this PR removes the controller arg from the calls in our Polkadot integration.

❓ Context

βœ… Checklist

Pull Requests must pass the CI and be code reviewed. Set as Draft if the PR is not ready.

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • Polkadot integration on LLD and LLC
    • The staking feature of the Polkadot coin should still work fine

🧐 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)

@chabroA chabroA requested a review from a team November 15, 2023 14:55
@vercel
Copy link

vercel bot commented Nov 15, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

5 Ignored Deployments
Name Status Preview Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Nov 15, 2023 2:55pm
ledger-live-github-bot ⬜️ Ignored (Inspect) Nov 15, 2023 2:55pm
native-ui-storybook ⬜️ Ignored (Inspect) Nov 15, 2023 2:55pm
react-ui-storybook ⬜️ Ignored (Inspect) Nov 15, 2023 2:55pm
web-tools ⬜️ Ignored (Inspect) Nov 15, 2023 2:55pm

@live-github-bot
Copy link
Contributor

Desktop Build Checks


Copy link
Member

@hedi-edelbloute hedi-edelbloute left a comment

Choose a reason for hiding this comment

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

lgtm, let's test every staking operations

i launched the bot but i think it might not check staking as balance is low

@github-actions
Copy link
Contributor

[Bot] Testing with 'Oxygen' βœ… 3 txs ($34.82) ⏲ 2min 40s

βœ… 1 specs are successful: Polkadot

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

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

Spec Polkadot (6)

Spec Polkadot found 6 Polkadot accounts (preload: 1455ms). Will use Polkadot 24.9430.3 on nanoSP 1.1.0
Polkadot 1 cross: 1.09228Β DOT (15ops) (16KwUHz2qkSqXwpiAsH2b6PZrYkxhGYi33E2TLU1FD6o7bVa on 44'/354'/0'/0'/0') polkadotbip44#0 js:2:polkadot:16KwUHz2qkSqXwpiAsH2b6PZrYkxhGYi33E2TLU1FD6o7bVa:polkadotbip44
Polkadot 2: 1.48334Β DOT (29ops) (1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm on 44'/354'/1'/0'/0') polkadotbip44#1 js:2:polkadot:1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm:polkadotbip44
Polkadot 3: 1.24331Β DOT (20ops) (12TaEe4DmNMsv6sufAiUx4rz3ypMksuUr19jC3a99U7p9ipy on 44'/354'/2'/0'/0') polkadotbip44#2 js:2:polkadot:12TaEe4DmNMsv6sufAiUx4rz3ypMksuUr19jC3a99U7p9ipy:polkadotbip44
Polkadot 4: 1.25961Β DOT (17ops) (14NHRVm4ezgnAodCZcV6o6E8DqDXQi2VgsJRD4gKDyhxrNPi on 44'/354'/3'/0'/0') polkadotbip44#3 js:2:polkadot:14NHRVm4ezgnAodCZcV6o6E8DqDXQi2VgsJRD4gKDyhxrNPi:polkadotbip44
Polkadot 5: 1.10298Β DOT (15ops) (16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT on 44'/354'/4'/0'/0') polkadotbip44#4 js:2:polkadot:16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT:polkadotbip44
Polkadot 6: 0Β DOT (0ops) (15qDxnyJ2rSYTT5w17NEPWBESxqmVippsymSGMkJCLQruev on 44'/354'/5'/0'/0') polkadotbip44#5 js:2:polkadot:15qDxnyJ2rSYTT5w17NEPWBESxqmVippsymSGMkJCLQruev:polkadotbip44
necessary accounts resynced in 0.25ms
β–¬ Polkadot 24.9430.3 on nanoSP 1.1.0
β†’ FROM Polkadot 2: 1.48334Β DOT (29ops) (1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm on 44'/354'/1'/0'/0') polkadotbip44#1 js:2:polkadot:1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm:polkadotbip44 1.4833424758Β DOT spendable. 

max spendable ~1.46759
β˜… using mutation 'send 50%~'
β†’ TO Polkadot 5: 1.10298Β DOT (15ops) (16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT on 44'/354'/4'/0'/0') polkadotbip44#4 js:2:polkadot:16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT:polkadotbip44
βœ”οΈ transaction 
SEND  0.2514850611Β DOT
TO 16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT
STATUS (492ms)
  amount: 0.2514850611Β DOT
  estimated fees: 0.0156348041Β DOT
  total spent: 0.2671198652Β DOT
errors: 
errors: 
βœ”οΈ has been signed! (4s) 
βœ”οΈ broadcasted! (85ms) optimistic operation: 
  -0.2671198652Β DOT  OUT        0xb3a896bbeaf51fb1b88260132e093e6a0b29d541780663a5e29b55a2f585ca87 2023-11-16T09:49
βœ”οΈ operation confirmed (30.5s): 
  -0.2671198652Β DOT  OUT        0xb3a896bbeaf51fb1b88260132e093e6a0b29d541780663a5e29b55a2f585ca87 2023-11-16T09:49
βœ”οΈ Polkadot 2: 1.21622Β DOT (30ops) (1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm on 44'/354'/1'/0'/0') polkadotbip44#1 js:2:polkadot:1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm:polkadotbip44 1.2162226106Β DOT spendable. 
(in 30.5s)
βœ”οΈ destination operation 
  +0.2514850611Β DOT  IN         0xb3a896bbeaf51fb1b88260132e093e6a0b29d541780663a5e29b55a2f585ca87 2023-11-16T09:49
(in 10.6s)

necessary accounts resynced in 0.28ms
β–¬ Polkadot 24.9430.3 on nanoSP 1.1.0
β†’ FROM Polkadot 4: 1.25961Β DOT (17ops) (14NHRVm4ezgnAodCZcV6o6E8DqDXQi2VgsJRD4gKDyhxrNPi on 44'/354'/3'/0'/0') polkadotbip44#3 js:2:polkadot:14NHRVm4ezgnAodCZcV6o6E8DqDXQi2VgsJRD4gKDyhxrNPi:polkadotbip44 1.259613745Β DOT spendable. 

max spendable ~1.24386
β˜… using mutation 'send 50%~'
β†’ TO Polkadot 3: 1.24331Β DOT (20ops) (12TaEe4DmNMsv6sufAiUx4rz3ypMksuUr19jC3a99U7p9ipy on 44'/354'/2'/0'/0') polkadotbip44#2 js:2:polkadot:12TaEe4DmNMsv6sufAiUx4rz3ypMksuUr19jC3a99U7p9ipy:polkadotbip44
βœ”οΈ transaction 
SEND  0.1355272335Β DOT
TO 12TaEe4DmNMsv6sufAiUx4rz3ypMksuUr19jC3a99U7p9ipy
STATUS (367ms)
  amount: 0.1355272335Β DOT
  estimated fees: 0.0156348041Β DOT
  total spent: 0.1511620376Β DOT
errors: 
errors: 
βœ”οΈ has been signed! (3.9s) 
βœ”οΈ broadcasted! (206ms) optimistic operation: 
  -0.1511620376Β DOT  OUT        0x4575de70f89c6123bf02d8fc7359d49473663ad045fd282178af3a6682334c17 2023-11-16T09:50
βœ”οΈ operation confirmed (30.6s): 
  -0.1511620376Β DOT  OUT        0x4575de70f89c6123bf02d8fc7359d49473663ad045fd282178af3a6682334c17 2023-11-16T09:50
βœ”οΈ Polkadot 4: 1.10845Β DOT (18ops) (14NHRVm4ezgnAodCZcV6o6E8DqDXQi2VgsJRD4gKDyhxrNPi on 44'/354'/3'/0'/0') polkadotbip44#3 js:2:polkadot:14NHRVm4ezgnAodCZcV6o6E8DqDXQi2VgsJRD4gKDyhxrNPi:polkadotbip44 1.1084517074Β DOT spendable. 
(in 30.6s)
βœ”οΈ destination operation 
  +0.1355272335Β DOT  IN         0x4575de70f89c6123bf02d8fc7359d49473663ad045fd282178af3a6682334c17 2023-11-16T09:50
(in 10.8s)

necessary accounts resynced in 2.20ms
β–¬ Polkadot 24.9430.3 on nanoSP 1.1.0
β†’ FROM Polkadot 5: 1.35447Β DOT (16ops) (16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT on 44'/354'/4'/0'/0') polkadotbip44#4 js:2:polkadot:16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT:polkadotbip44 1.3544744267Β DOT spendable. 

max spendable ~1.33872
β˜… using mutation 'send 50%~'
β†’ TO Polkadot 2: 1.21622Β DOT (30ops) (1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm on 44'/354'/1'/0'/0') polkadotbip44#1 js:2:polkadot:1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm:polkadotbip44
βœ”οΈ transaction 
SEND  0.1846329305Β DOT
TO 1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm
STATUS (415ms)
  amount: 0.1846329305Β DOT
  estimated fees: 0.0156348041Β DOT
  total spent: 0.2002677346Β DOT
errors: 
errors: 
βœ”οΈ has been signed! (3.8s) 
βœ”οΈ broadcasted! (161ms) optimistic operation: 
  -0.2002677346Β DOT  OUT        0x4c8046ba73e968892c2c4afec01c4a7ed0dcfb0383eab835b0d114ad17f033f7 2023-11-16T09:50
βœ”οΈ operation confirmed (30.5s): 
  -0.2002677346Β DOT  OUT        0x4c8046ba73e968892c2c4afec01c4a7ed0dcfb0383eab835b0d114ad17f033f7 2023-11-16T09:50
βœ”οΈ Polkadot 5: 1.1542Β DOT (17ops) (16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT on 44'/354'/4'/0'/0') polkadotbip44#4 js:2:polkadot:16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT:polkadotbip44 1.1542066921Β DOT spendable. 
(in 30.5s)
βœ”οΈ destination operation 
  +0.1846329305Β DOT  IN         0x4c8046ba73e968892c2c4afec01c4a7ed0dcfb0383eab835b0d114ad17f033f7 2023-11-16T09:50
(in 10.4s)


Details of the 6 uncovered mutations

Spec Polkadot (6)

  • send max: send is too low to activate account (2), balance is too low (1)
  • bond - bondExtra: not enough balance to bond (2), balance is too low (1)
  • unbond: can't unbond (2), balance is too low (1)
  • rebond: can't rebond (2), balance is too low (1)
  • nominate: can't nominate (2), balance is too low (1)
  • withdraw: nothing to withdraw (2), balance is too low (1)
Portfolio ($34.82) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
Polkadot (6) 102 ops (+6), 6.18154 DOT ($34.82) ⚠️ 30 16KwUHz2qkSqXwpiAsH2b6PZrYkxhGYi33E2TLU1FD6o7bVa
Polkadot 1 cross: 1.09228Β DOT (15ops) (16KwUHz2qkSqXwpiAsH2b6PZrYkxhGYi33E2TLU1FD6o7bVa on 44'/354'/0'/0'/0') polkadotbip44#0 js:2:polkadot:16KwUHz2qkSqXwpiAsH2b6PZrYkxhGYi33E2TLU1FD6o7bVa:polkadotbip44
Polkadot 2: 1.40085Β DOT (31ops) (1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm on 44'/354'/1'/0'/0') polkadotbip44#1 js:2:polkadot:1Fxs6gCxLVmx4PVwpeqqd53Fve3BFfjsqinREqyzeE3qMtm:polkadotbip44
Polkadot 3: 1.37884Β DOT (21ops) (12TaEe4DmNMsv6sufAiUx4rz3ypMksuUr19jC3a99U7p9ipy on 44'/354'/2'/0'/0') polkadotbip44#2 js:2:polkadot:12TaEe4DmNMsv6sufAiUx4rz3ypMksuUr19jC3a99U7p9ipy:polkadotbip44
Polkadot 4: 1.10845Β DOT (18ops) (14NHRVm4ezgnAodCZcV6o6E8DqDXQi2VgsJRD4gKDyhxrNPi on 44'/354'/3'/0'/0') polkadotbip44#3 js:2:polkadot:14NHRVm4ezgnAodCZcV6o6E8DqDXQi2VgsJRD4gKDyhxrNPi:polkadotbip44
Polkadot 5: 1.1542Β DOT (17ops) (16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT on 44'/354'/4'/0'/0') polkadotbip44#4 js:2:polkadot:16Woo4M3FMUUUXNKphUyx42LH42cHYgThQm959Z2DARJUePT:polkadotbip44
Polkadot 6: 0Β DOT (0ops) (15qDxnyJ2rSYTT5w17NEPWBESxqmVippsymSGMkJCLQruev on 44'/354'/5'/0'/0') polkadotbip44#5 js:2:polkadot:15qDxnyJ2rSYTT5w17NEPWBESxqmVippsymSGMkJCLQruev:polkadotbip44
Performance ⏲ 2min 40s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 1455ms 16.4s 3.61ms 1274ms 11.7s 452ms 91.6s 31.9s
Polkadot (5) 1455ms 16.4s 3.61ms 1274ms 11.7s 452ms 91.6s 31.9s

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

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.

Following discussion this morning: no need to do anything more, as after the network update clients may still have separate controller/stash accounts, and Live will still be able to let them move away from this configuration.

All good πŸ‘Œ

@ghost
Copy link

ghost commented Nov 28, 2023

polkadot-controller.mp4

Validated on this PR:

  • account that is only a stash: display is correct
  • account that is only a controller: display is correct
  • doing a setController on a stash account: tx successful
  • after the tx, former stash and controller accounts are displayed as normal accounts, staking is enabled

@ghost ghost merged commit cf41c53 into develop Nov 28, 2023
@ghost ghost deleted the feat/LIVE-8064-polkadot-sunset-stash-controller-feature branch November 28, 2023 09:16
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants