Commit c0cf03f
authored
[Solana]: Move Solana blockchain to Rust (#3691)
* [Solana]: Add `MessageRaw` to `SigningInput`
* Replace `Pubkey` with `SolanaAddress`
* [Solana]: Add instruction builders
* [Solana]: WIP Signer
* [Solana]: Move instruction builders to dedicated modules
* [Bitcoin]: Fix the order of compiled account keys
* [Solana]: Fix delegate staking
* [Solana]: Add deactivate staking transaction
* [Solana]: Add deactivate all stake transaction
* [Solana]: Add withdraw stake transaction
* [Solana]: Add withdraw all stake transaction
* [Solana]: Add create token account transaction
* [Solana]: Add TokenTransfer transaction
* Refactor `InstructionBuilder` to allow easily append references, add memo and nonce instructions
* [Solana]: Minor changes
* [Solana]: Add CreateAndTransferToken transaction
* Add support for fee payer
* [Solana]: Add CreateNonceAccount and WithdrawNonceAccount transactions
* [Solana]: Add AdvanceNonceAccount transaction
* [Solana]: Add RawMessage transaction
* [Solana]: Add support for preimage hashing and compiling
* [Solana]: Replace C++ implementation
* [Solana]: Add more compile tests
* [Solana]: Add tw_solana_address_default_token_address
* [Solana]: Add "WithDurableNonce" tests
* [Solana]: Remove C++ implementation
* Identify a bug in `Address::findProgramAddress` function
* [CI] Trigger CI
* [Solana]: Remove extra C++ tests
* [Solana]: Fix clippy warnings
* [Solana]: Fix `tw_solana_address_default_token_address`
* Replace C++'s implementation with `tw_solana_address_default_token_address`
* [Solana]: Remove fix Boost path at CMakeLists.txt
* [Solana]: Add `TransactionDecoder` module (#3698)
* [Solana]: Add external signatures to the `RawMessage`
* [Solana]: Add `ProtoBuilder` to convert `VersionedTransaction` to a `Proto::RawMessage`
* [Solana]: Add `TransactionDecoder` module
* [Solana]: Fix signature overriding, add more tests
* [Solana]: Refactor tests
* [Solana]: Add and implement `TWTransactionDecoderDecode` FFI in C++
* [Solana]: Add Kotlin test
* [Solana]: Remove fix Boost path at CMakeLists.txt
* [Solana]: Add Swift test
* [WalletConnect/Solana]: Add support for WalletConnect signing requests (#3705)
* [Solana]: Add SolanaWalletConnector
* [Solana]: Add pubkey signatures to the `Proto::SigningOutput`
* [Solana]: Add `TWSolanaWalletConnect` test
* [Solana]: Add Kotlin, Swift tests
* [Solana]: Fix C++ test
* [Solana]: Fix iOS test
* [Solana]: Add support for priority fee (#3710)
* [Solana]: Add priority fee price and limit
* [Solana]: Add priority fee tests
* [CI]: Split linux-ci-rust.yml into two jobs
* Move `new-blockchain-rust` step into codegen-v2.yml
* [CI]: Fix linux-ci-rust.yml1 parent 7c71119 commit c0cf03f
File tree
116 files changed
+5311
-4379
lines changed- .github/workflows
- android/app/src/androidTest/java/com/trustwallet/core/app/blockchains/solana
- codegen-v2/src/codegen/rust/templates/blockchain_crate
- include/TrustWalletCore
- rust
- chains
- tw_binance/src
- tw_cosmos/src
- tw_greenfield/src
- tw_native_evmos/src
- tw_native_injective/src
- tw_solana
- src
- modules
- instruction_builder
- wallet_connect
- program
- transaction
- tests
- tw_thorchain/src
- tw_any_coin
- src
- ffi
- test_utils
- tests/chains/solana
- tw_aptos/src
- tw_bitcoin/src
- tw_coin_entry/src
- modules
- tw_encoding/src
- tw_ethereum/src
- tw_hash/src
- tw_internet_computer/src
- tw_keypair/src/ed25519
- tw_ronin/src
- wallet_core_rs
- src/ffi/solana
- tests
- src
- Solana
- interface
- proto
- rust
- swift/Tests/Blockchains
- tests
- chains/Solana
- interface
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
116 files changed
+5311
-4379
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 60 | | |
65 | 61 | | |
66 | 62 | | |
| |||
75 | 71 | | |
76 | 72 | | |
77 | 73 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
82 | 81 | | |
83 | | - | |
84 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
85 | 93 | | |
86 | | - | |
87 | | - | |
| 94 | + | |
88 | 95 | | |
89 | | - | |
90 | | - | |
| 96 | + | |
91 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
42 | 84 | | |
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments