-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add Everscale support #2428
Add Everscale support #2428
Conversation
# Conflicts: # tests/CoinAddressDerivationTests.cpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to create online account for user to receive coins?
...p/src/androidTest/java/com/trustwallet/core/app/blockchains/everscale/TestEverscaleSigner.kt
Outdated
Show resolved
Hide resolved
...p/src/androidTest/java/com/trustwallet/core/app/blockchains/everscale/TestEverscaleSigner.kt
Show resolved
Hide resolved
You just need to compute the address from pubkey. Explicit account deployment is not required, it occurs on the first outgoing transfer (init state is attached to the external message). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good, I will need to check internal sources in more detail.
...p/src/androidTest/java/com/trustwallet/core/app/blockchains/everscale/TestEverscaleSigner.kt
Show resolved
Hide resolved
Co-authored-by: Adam V <13562139+catenocrypt@users.noreply.github.com>
* Generate Everscale coin stub * Add cell stub * Add cell serialization * Add normalization address to lowercase test * Make workchain id as i8 * Add transfer action to Everscale proto * Normalize address implementation * Add WalletV3 code * Add cell deserialization * Extend BuilderData interface * Implement intoCell for BuilderData * Finish address implementation * Add CellSlice * Improve address calculation * Prepare and sign Everscale transaction * Fix dst address for external in_message * Fix message serialization to cell * Reveal magic number * Fix Everscale primitive types * Fix CellSlice; sign message with state init test * Add swift tests * Android address tests * WIP: fix conversion loses integer precision * Add coin address derivation/validation tests * Append workchain id to test address * Optimize moving vec to array * Replace map with vector for intermediate cell buffer * Short representation of wallet code * Integrate CellBuilder test into TW::Everscale namespace * Sign method should return serialized transaction boc instead cell data * Simplify parsing workchain id to avoid writing wasm tests * sync with upstream * Update network info * Use `Hash::sha256` instead of raw hasher. Fix lints * Refactor `clzU128` * Complete ios tests * Set rpc url Co-authored-by: Ivan Kalinin <i.kalinin@dexpa.io> Co-authored-by: milerius <rmscastle@gmail.com> Co-authored-by: Ivan Kalinin <reide740@gmail.com> Co-authored-by: Adam V <13562139+catenocrypt@users.noreply.github.com>
Description
Adding support for Everscale blockchain
https://everscale.network/
How to test
We've written test cases in tests/Everscale folder.
Types of changes
Checklist
If you're adding a new blockchain