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

Native AvalancheJS transactions in L1 Wizard #1995

Closed
wants to merge 14 commits into from

Conversation

containerman17
Copy link
Contributor

No description provided.

…oved logging

- Added loading state management to prevent multiple submissions during the signature collection process.
- Updated console logs for better clarity on the number of collected peers.
- Disabled the button during loading and changed its label accordingly for better user feedback.
@containerman17 containerman17 requested review from amandamarquis1 and a team as code owners January 13, 2025 01:24
Copy link

vercel bot commented Jan 13, 2025

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

Name Status Preview Comments Updated (UTC)
avalanche-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 7:58am
builders-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 7:58am

@containerman17
Copy link
Contributor Author

containerman17 commented Jan 13, 2025

Stuck with collecting signatures for L1 Conversion.

Debugging:

Browser-based signing

Generate this tx before signing:

000000000023000000050000000000000000000000000000000000000000000000000000000000000000000000013d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000007000000001dc5c2c1000000000000000000000001000000015a19b50983e0082a1476e9095bbc12d3374e5b8b00000002d571e4780cc8a910c6b03ba8a42ffed6866a4c3f75a9db52383893e4a297dd60000000003d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000005000000001dc663130000000100000000
dbdd381a07e78f63baf6111fd9a42087148c54f28a6c9918054e4d10ba18b225 - ChainID
000000003d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000005000000003b9a7d93000000010000000000000000 - ?
81937a7588ba343557d9a9308c177482b5fef835a4650b6b591f573991b24da2 - SubnetID
dbdd381a07e78f63baf6111fd9a42087148c54f28a6c9918054e4d10ba18b225 - ChainID
00000014
5a19b50983e0082a1476e9095bbc12d3374e5b8b - ManagerAddress (WTF!?)
0000000100000014
9e99c96338c2ae4131ba1d4fb1a9dd146e06d16c - NodeID
0000000000000064000000003b9aca00
a2ea5071b185225223ceb743fe265b47905fff03c64d6517733b9f79bde4937bfab0a7b903e697e2b4b5b90a7aa74427 - Node pub key
98b52bcfbbb9425f14ca97aedcfc318e00f92daaac711cb0b6a7da4af9c9aac20f4ce986f45165747c4f5ece93860c250640e060a0ac6af89c95f2aadff1eb2515bb9fdd05dbdfa12bf63ba7e07dc53b94f37c31a3ecc680fdb76cc300821b8c - PoP
00000001000000015a19b50983e0082a1476e9095bbc12d3374e5b8b00000001000000015a19b50983e0082a1476e9095bbc12d3374e5b8b0000000a0000000100000000 - ?

Server-based

000000000023000000050000000000000000000000000000000000000000000000000000000000000000000000013d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000007000000001dc56f04000000000000000000000001000000015a19b50983e0082a1476e9095bbc12d3374e5b8b00000002d571e4780cc8a910c6b03ba8a42ffed6866a4c3f75a9db52383893e4a297dd60000000003d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000005000000001dc663130000000100000000
dbdd381a07e78f63baf6111fd9a42087148c54f28a6c9918054e4d10ba18b225 - ChainID
000000003d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000005000000003b9a7d93000000010000000000000000 - ?
81937a7588ba343557d9a9308c177482b5fef835a4650b6b591f573991b24da2 - SubnetID
dbdd381a07e78f63baf6111fd9a42087148c54f28a6c9918054e4d10ba18b225 - ChainID
00000014
ab8f8b94d79b0ea44a3c0f8811ac32c191e59632 - ManagerAddress
0000000100000014
9e99c96338c2ae4131ba1d4fb1a9dd146e06d16c - NodeID
0000000000000064000000003b9aca00
a2ea5071b185225223ceb743fe265b47905fff03c64d6517733b9f79bde4937bfab0a7b903e697e2b4b5b90a7aa74427 - Node pub key
98b52bcfbbb9425f14ca97aedcfc318e00f92daaac711cb0b6a7da4af9c9aac20f4ce986f45165747c4f5ece93860c250640e060a0ac6af89c95f2aadff1eb2515bb9fdd05dbdfa12bf63ba7e07dc53b94f37c31a3ecc680fdb76cc300821b8c - PoP
00000001000000015a19b50983e0082a1476e9095bbc12d3374e5b8b00000000000000000000000a0000000100000000 - ?

Browser after fixing contract

0x000000000023000000050000000000000000000000000000000000000000000000000000000000000000000000013d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000007000000001dc4ceb7000000000000000000000001000000015a19b50983e0082a1476e9095bbc12d3374e5b8b00000002c87e5f9289a26b14862f58182efcdb069d6ed9cc82935a58cd01f7b52b87b767000000003d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000005000000003b9a7d980000000100000000d003273fc3a65716641ab14d2627e43add421986c550ad4d5cf435aba3bc657a000000003d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000005000000001dc56f040000000100000000000000009f873285cd1ac5c943fc17fb1e4de1542803aff131952da33c036ac183b5507cc87e5f9289a26b14862f58182efcdb069d6ed9cc82935a58cd01f7b52b87b76700000014
ab8f8b94d79b0ea44a3c0f8811ac32c191e59632 - ManagerAddress
00000001000000149e99c96338c2ae4131ba1d4fb1a9dd146e06d16c0000000000000064000000003b9aca00a2ea5071b185225223ceb743fe265b47905fff03c64d6517733b9f79bde4937bfab0a7b903e697e2b4b5b90a7aa7442798b52bcfbbb9425f14ca97aedcfc318e00f92daaac711cb0b6a7da4af9c9aac20f4ce986f45165747c4f5ece93860c250640e060a0ac6af89c95f2aadff1eb2515bb9fdd05dbdfa12bf63ba7e07dc53b94f37c31a3ecc680fdb76cc300821b8c00000001000000015a19b50983e0082a1476e9095bbc12d3374e5b8b00000001000000015a19b50983e0082a1476e9095bbc12d3374e5b8b0000000a0000000100000000

- Introduced walletError state to manage and display wallet-related errors.
- Updated handleAddToWallet function to clear previous wallet errors and set walletError on failure.
- Added conditional rendering for wallet error messages in the UI for better user feedback.
…for improved step handling and error messaging

- Changed the step name from 'prepare-validators' to 'configure-validators' in PrepareValidators component to reflect the correct workflow.
- Introduced errorMessage state in ContractInitialize component to manage and display error messages instead of using alerts, enhancing user feedback.
- Updated error handling logic to conditionally render error messages in the UI for better clarity.
…tly into CollectSignatures component

- Deleted the convertWarp.ts and convertWarp.test.ts files to streamline the codebase.
- Integrated the packing logic for L1 conversion messages directly into the CollectSignatures component, enhancing local processing and reducing external API dependencies.
- Updated the message and justification handling to utilize the new local packing function.
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.

1 participant