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

[pull] master from trustwallet:master #25

Open
wants to merge 573 commits into
base: master
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Dec 20, 2024

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

rsrbk and others added 30 commits June 9, 2023 09:59
* Add getFormattedSignature method

* fix tests
* [ERC-4337] Fix user operation hash mistake

* Update TestBarz.kt

---------

Co-authored-by: hewigovens <[email protected]>
* Getting rid of attestationObject in Barz public API

* remove duplicates

* Update Barz.cpp

* Update Barz.cpp

* Update BarzTests.swift

* update tests

* Update WebAuthnTests.cpp

* Update TestBarz.kt

* Update TestWebAuthn.kt

* update android tests

* Update TestBarz.kt

* Update TestBarz.kt

* Update TestBarz.kt

* fix nullability

* tests update
Removed broken IFWallet link
Updated supported blockchain count according to registry.md
Corrected some typos and grammatical mistakes
Neopallium and others added 8 commits December 6, 2024 15:57
…s_sign_with_pubkey` (#4154)

* [Security]: Make `ExpandedSecretKey::sign_with_pubkey` unsafe

* [Security]: Rename `ExpandedSecretKey::sign_with_pubkey` to `dangerous_sign_with_pubkey`
)

* Support specifying fee payer for an encoded transaction

* Add some comments

* Exports solana setFeePayer function to kotlin/swift code

* Fix swift test case

* Fix swift test case
* [THORChain]: Update `chainId` and default `rpc` url

* [THORChain]: Fix C++ tests

* [THORChain]: Fix C++ tests
* [Misc]: Update block explorers for Algorand and Eth Boba chains

* [Misc]: Update block explorer for Nano chain

* Fix C++ tests

* [Misc]: Update block explorer for Callisto chain

* [Misc]: Update block explorer for Smart Bitcoin Cash chain
@pull pull bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Dec 20, 2024
satoshiotomakan and others added 20 commits January 3, 2025 15:42
* Kotlin multiplatform leaking memory (#4037)

* Add deinit for KMP iOS and JVM targets

* Add deinit for JS target

* Add deinit for JS target

* Fix JVM native name

* Reuse one thread on JVM

---------

Co-authored-by: satoshiotomakan <[email protected]>

* [KMP] Fix issue: memory leak found in Base58.decode in iOS (#4031)

* Fix kmp issue: memory leak found in Base58.decode in iOS

* Remove unused functions

* Fix failed test cases

* Revert "Fix failed test cases"

This reverts commit 57eee39.

* Revert val -> value argument name refactoring

* Output better indentation

* Revert changes in TWEthereumAbiFunction.h

* Fix inconsistent naming

---------

Co-authored-by: satoshiotomakan <[email protected]>

* [TON]: Add support for TON 24-words mnemonic (#3998)

* feat(ton): Add support for TON 24-words mnemonic in Rust

* feat(ton): Add tw_ton_wallet FFIs

* feat(ton): Add TWTONWallet FFI in C++

* feat(ton): Add tonMnemonic StoredKey type

* feat(ton): Add StoredKey TON tests

* feat(ton): Add TWStoredKey TON tests

* feat(ton): Add TONWallet support in Swift

* TODO add iOS tests

* feat(ton): Add `KeyStore` iOS tests

* feat(ton): Add TONWallet support in JavaScript

* Add `KeyStore` TypeScript tests

* feat(ton): Remove `TonMnemonic` structure, replace with a `validate_mnemonic_words` function

* [CI] Trigger CI

* feat(ton): Fix rustfmt

* feat(ton): Fix C++ build

* feat(ton): Fix C++ build

* feat(ton): Fix C++ build

* feat(ton): Fix C++ address analyzer

* feat(ton): Fix C++ tests

* feat(ton): Add Android tests

* feat(ton): Bump `actions/upload-artifact` to v4

* Bump `dawidd6/action-download-artifact` to v6

* feat(eth): Fix PR comments

* Fix Java JVM leak (#4092)

* [Chore]: Fix Android bindings (#4095)

* [Chore]: Add GenericPhantomReference.java

* [Chore]: Fix unnecessary null assertion in WalletCoreLibLoader.kt

* Fix memory lead found in public key in kmp binding (#4097)

* Update Callisto explorer (#4131)

* Revert "[TON]: Add support for TON 24-words mnemonic (#3998)" (#4148)

This reverts commit 0b16771.

---------

Co-authored-by: Viacheslav Kulish <[email protected]>
Co-authored-by: 10gic <[email protected]>
… function ABI (#4182)

* Support obtaining the function signature from an Ethereum function ABI

* Refactor code for improved cohesion and clarity

---------

Co-authored-by: Sergei Boiko <[email protected]>
* Kotlin multiplatform leaking memory (#4037)

* Add deinit for KMP iOS and JVM targets

* Add deinit for JS target

* Add deinit for JS target

* Fix JVM native name

* Reuse one thread on JVM

---------

Co-authored-by: satoshiotomakan <[email protected]>

* [KMP] Fix issue: memory leak found in Base58.decode in iOS (#4031)

* Fix kmp issue: memory leak found in Base58.decode in iOS

* Remove unused functions

* Fix failed test cases

* Revert "Fix failed test cases"

This reverts commit 57eee39.

* Revert val -> value argument name refactoring

* Output better indentation

* Revert changes in TWEthereumAbiFunction.h

* Fix inconsistent naming

---------

Co-authored-by: satoshiotomakan <[email protected]>

* [TON]: Add support for TON 24-words mnemonic (#3998)

* feat(ton): Add support for TON 24-words mnemonic in Rust

* feat(ton): Add tw_ton_wallet FFIs

* feat(ton): Add TWTONWallet FFI in C++

* feat(ton): Add tonMnemonic StoredKey type

* feat(ton): Add StoredKey TON tests

* feat(ton): Add TWStoredKey TON tests

* feat(ton): Add TONWallet support in Swift

* TODO add iOS tests

* feat(ton): Add `KeyStore` iOS tests

* feat(ton): Add TONWallet support in JavaScript

* Add `KeyStore` TypeScript tests

* feat(ton): Remove `TonMnemonic` structure, replace with a `validate_mnemonic_words` function

* [CI] Trigger CI

* feat(ton): Fix rustfmt

* feat(ton): Fix C++ build

* feat(ton): Fix C++ build

* feat(ton): Fix C++ build

* feat(ton): Fix C++ address analyzer

* feat(ton): Fix C++ tests

* feat(ton): Add Android tests

* feat(ton): Bump `actions/upload-artifact` to v4

* Bump `dawidd6/action-download-artifact` to v6

* feat(eth): Fix PR comments

* Fix Java JVM leak (#4092)

* [Chore]: Fix Android bindings (#4095)

* [Chore]: Add GenericPhantomReference.java

* [Chore]: Fix unnecessary null assertion in WalletCoreLibLoader.kt

* Fix memory lead found in public key in kmp binding (#4097)

* Update Callisto explorer (#4131)

* [Babylon]: Add Babylon Staking Inputs and Outputs to BitcoinV2.proto

* [Babylon]: Add `covenant_committee_signatures`

* Revert "[TON]: Add support for TON 24-words mnemonic (#3998)" (#4148)

This reverts commit 0b16771.

* [Babylon]: Add timelock, unbonding, slashing condition scripts

* Test taproot merkle root generator

* [BTC]: Add Babylon Staking output

* [BTC]: Add Babylon Staking OP_RETURN

* [BTC]: Minor changes

* [BTC]: Add Babylon Staking UTXO

* [BTC]: Add Babylon Unbonding UTXO

* [BTC]: Refactor by adding `BabylonStaking.proto`

* [BTC]: Add Babylon Staking transaction test

* [BTC]: Add spending of Staking output via Unbonding path

* [BTC]: Withdraw Unbonding transaction via timelock path

* [BTC]: Withdraw Staking transaction via timelock path

* [BTC]: Fix tests, minor improves

* [BTC]: Fix TODOs

* [CI] Trigger CI

* [BTC]: Fix Rust sample

---------

Co-authored-by: Viacheslav Kulish <[email protected]>
Co-authored-by: 10gic <[email protected]>
…ature (#4193)

* [Solana]: Support compiling a transaction with existing external signature

* Minor change according to PR comments

---------

Co-authored-by: Sergei Boiko <[email protected]>
…correctly (#4190)

* Adds ability to provide abi in signing input

* Minor

* Addresses review comments

* Adds broadcasting info

* Minor

* Adds kotlin, swift and C++ unit tests

* Makes clippy happy

* FMT

* Adds successful transaction in unit tests

* Implements generic parsing

* FMT

* Adds missing

* Adds reference links

---------

Co-authored-by: Sergei Boiko <[email protected]>
* Generate `AuthInfo` from `SigningInput` parameters if `SignDirect.auth_info_bytes` empty
- android sdk 35 & ios 18
 - kotlin 2.1.0
 - gradle 8.10
 - AGP 8.7

Co-authored-by: Szymon Rząd <[email protected]>
* [Aptos]: Add support for fungible assets

* Addresses review comments

* Minor fix

---------

Co-authored-by: Sergei Boiko <[email protected]>
* [Android]: Add support for Android devices with 16kb page size

* Upgrade Android SDK to 35, NDK to 28

* [Android]: Update wallet-core-kotlin AGP, SDK and NDK

* Change CI internal cache

* MISC: agp and kgp version bumps (#4213)

* [CI]: Update gradle to 8.10.2

* MISC: specify java compatibility version

* MISC: remove expect-actual-classes warnings

* [Misc]: Fix C++ Android warnings

* [Misc]: Fix iOS KMP compile errors

* [Misc]: Fix Android and KMP Android compile errors

* [Misc]: Fix KMP JVM

* [Misc]: minor change

* [Misc]: Disable `[[maybe_unused]]` for KMP

---------

Co-authored-by: Egor Kurnikov <[email protected]>
* Kotlin multiplatform leaking memory (#4037)

* Add deinit for KMP iOS and JVM targets

* Add deinit for JS target

* Add deinit for JS target

* Fix JVM native name

* Reuse one thread on JVM

---------

Co-authored-by: satoshiotomakan <[email protected]>

* [KMP] Fix issue: memory leak found in Base58.decode in iOS (#4031)

* Fix kmp issue: memory leak found in Base58.decode in iOS

* Remove unused functions

* Fix failed test cases

* Revert "Fix failed test cases"

This reverts commit 57eee39.

* Revert val -> value argument name refactoring

* Output better indentation

* Revert changes in TWEthereumAbiFunction.h

* Fix inconsistent naming

---------

Co-authored-by: satoshiotomakan <[email protected]>

* [TON]: Add support for TON 24-words mnemonic (#3998)

* feat(ton): Add support for TON 24-words mnemonic in Rust

* feat(ton): Add tw_ton_wallet FFIs

* feat(ton): Add TWTONWallet FFI in C++

* feat(ton): Add tonMnemonic StoredKey type

* feat(ton): Add StoredKey TON tests

* feat(ton): Add TWStoredKey TON tests

* feat(ton): Add TONWallet support in Swift

* TODO add iOS tests

* feat(ton): Add `KeyStore` iOS tests

* feat(ton): Add TONWallet support in JavaScript

* Add `KeyStore` TypeScript tests

* feat(ton): Remove `TonMnemonic` structure, replace with a `validate_mnemonic_words` function

* [CI] Trigger CI

* feat(ton): Fix rustfmt

* feat(ton): Fix C++ build

* feat(ton): Fix C++ build

* feat(ton): Fix C++ build

* feat(ton): Fix C++ address analyzer

* feat(ton): Fix C++ tests

* feat(ton): Add Android tests

* feat(ton): Bump `actions/upload-artifact` to v4

* Bump `dawidd6/action-download-artifact` to v6

* feat(eth): Fix PR comments

* Fix Java JVM leak (#4092)

* [Chore]: Fix Android bindings (#4095)

* [Chore]: Add GenericPhantomReference.java

* [Chore]: Fix unnecessary null assertion in WalletCoreLibLoader.kt

* Fix memory lead found in public key in kmp binding (#4097)

* Update Callisto explorer (#4131)

* Revert "[TON]: Add support for TON 24-words mnemonic (#3998)" (#4148)

This reverts commit 0b16771.

* Fix JVM synchronization issue (#4218)

* Fix Java JVM leak

* clean

* apply to jni

* [Misc]: Upgrade Rust toolchain to `nightly-2025-01-16`

* [Misc]: Fix Clippy warnings

---------

Co-authored-by: Satoshi Otomakan <[email protected]>

* [Misc]: Fix Clippy warnings

---------

Co-authored-by: Viacheslav Kulish <[email protected]>
Co-authored-by: 10gic <[email protected]>
* Support Sui sign personal message

* Add more unit test cases

* Only fix warning

---------

Co-authored-by: Sergei Boiko <[email protected]>
* Add the tw_ss58_address crate

* Apply suggestions from code review, refactor some utility functions

* Remove unused dependency

* Add PolkadotAddress

* Add NetworkId constants and Hash derivation

* Add SCALE encoding for integers (fixed and compact)

* Fix tiny things in scale.rs

* Add extrinsics

* Add PolkadotPrefix

* Require a pre-built NetworkId when deriving SS58Address

* Format extrinsic.rs

* Add address parsing and derivation in entry.rs

* Rename SS58Address::from_str to SS58Address::parse

* Add SubstrateNetwork to AddressPrefix enum

* Rework ToScale trait to allow encoding to an existing Vec, add more implementations

* Refactor Extrinsic to use in-place encoding

* Add more tests for staking extrinsics

* Introduce ExtrinsicEncoder helper to build encoded extrinsics

* Refactor Scale encoding into tw_scale crate.

* Add u128 SCALE support.

* Fix: Use correct endianess.

* Add struct/enum SCALE encoding macros.

* Add Substrate ExtrinsicV4 encoding.

* U256 to u128.

* Add Substrate call encoding support.

* Fix some incorrect tests.

* Add more extrinsic support.

* Fix Option SCALE encoding.

* Add Polymesh network id.

* Remove extra lifetimes.  Simplify code.

* More encoder refactoring.

* Fix SCALE encoding test for Option type.

* Update Polkadot CoinEntry impl.

* Add support for custom call index.

* Implement Era SCALE encoding.

* cargo fmt

* Move common Substrate logic in tw_substrate crate.

* Improve bool SCALE code.

* Refactor highly nested test code.

* cargo fmt

* Implment Polkadot coin address derivation test.

* Add more Era tests ported from the C++ tests.

* Refactor call encoder.

* FIXUP

* Implement signer and compiler.

* Start adding tw_tests for polkadot.

* Add ss58prefix support to tw_coin_registry.

* implement tw_any_address_is_valid_ss58 and tw_any_address_create_ss58_with_public_key

* Fix missing length prefix when encoding signed transaction.

* cargo fmt

* Add support for CheckMetadata transaction extension.

* Refactor transaction building.

* Add support for optional MultiAddress.

* Finish support for optional MultiAddress.

* Fix C++ test, Rust impl returns different error code.

* Fix 'tip' support.

* Add support for ChargeAssetTxPayment (paying tx fee with asset).

* Remove unused call indices.

* Add more SS58 address types.

* Update Polkadot C++ tests to use TWAny* interfaces.

* Use default value for block hashes.

* Improve errors.

* Support custom call indices in Polymesh.

* Fix Polkadot CheckMetadataHash support

* Support old staking.bond calls.

* Support Kusama with Rust impl.  Remove old C++ impl.

* Fix address derivation test for Acala and Kusama

* Add Rust polkadot compile/sign tests.

* cargo fmt

* Merge TransactionBuilder and PrepareTransaction types.

* Use SubstrateCoinEntry trait to better support Substrate chains.

* Add missing crates to top-level Cargo.toml.

* Re-enable test.

* Fix memory leaks in C++ unit tests.

* Update Acala support to match C++.

* Move tw_substrate to frameworks.

* Improve error reporting.

* Simplify Compact encoding.

* Refactor some rarely used SCALE code.

* Rename Encoded to RawOwned and move to tw_scale.

* Use H256 in Memo and IdentityId.

* Don't store KeyPair.

* Remove unused error variant.

* Improve errors.

* Improve errors with context.

* Remove TWSS58AddressType

* Remove deadcode

* Remove consts from tw_ss58_address crate.

* Simplify impl_enum_scale macro

* Document SCALE macros.

* Some code cleanup and deps reorder.

* Cleanup `parse_address`

* Fix RewardDestination.  Added missing ACCOUNT variant.

* Remove assert.

* Fix C++ tests and use original expected output.

* Fix TODO

* Revert RewardDestination::ACCOUNT change.

* Add links for Polymesh encoded transactions.

* Cleanup error conversion code.

* Port some tests from C++ to Rust.

* Finish porting C++ test to Rust.

* Remove old C++ tests.  Only keep one for integration.

* Sort crates.

* Add docs to `tw_substrate`.

* More docs.

* Add note about space padded Memo.

* Port most address validation tests from C++.

* Fix cargo clippy warnings.

* Fix C++ test compile errors.

* Fix implicit conversion warning.

* Try fixing iOS build.

---------

Co-authored-by: doom <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.