Skip to content

Releases: AmbireTech/ambire-common

v2.12.0

12 Jun 11:39
48a3c4d
Compare
Choose a tag to compare
v2.12.0 Pre-release
Pre-release

Changelog:

  • Changed: Humanizer: hardcode abis (make each module less dependant on the passed humanizerMeta and the hardcoded humanizerInfo.json) #784
  • Changed: Update portfolio types and calculate total in the controller #801
  • Changed: Update token types #807
    • updated types in updateNetworkPreferences
    • removed "name" from CustomToken because tokens don't have name, collectibles do. When we implement adding custom collectibles
    • a new type should be added CustomCollectible
    • simplified TokenResult
  • Fixed: Portfolio controller test failing on gasTank isLoading (not awaiting) #796
  • Fixed: Portfolio controller batching test (create an HTTP/HTTPS request monitoring helper/mock for tracking network requests. Rewrite the batching tests to use the helper instead of relying on timers) #797
  • Fixed: SW warning was misleadingly displayed for BA #795
  • Fixed: validateSendTransferAmount was returning success despite error #787
  • Fixed: Do not always auto-reset Sign Account OP errors on every update (before these changes, some errors were disappearing on every update (for example when the estimation updates), so depending on when the error happened in the update circle, one could be visible only for a couple of seconds) #798
  • Fixed: PortfolioVew use Latest instead of Pending with criticalError #800
  • Fixed: Do not call CoinGecko on missing platformId (some custom networks dont have platformId which causes calling CoinGecko with null in the URL, example: Sepolia, Blast Mainnet) #802
  • Fixed: Humanizer: platform id not present in humanizing modules #805
  • Added: Gnosis network as a predefined one for the extension (the need for this comes as 4337 doesn't work on Gnosis so we go to the reliable Relayer) #804
  • Changed: SettingsController refactoring #799
    • Move networks logic into a NetworksController
      • settings ctrl and interface cleaned up from networks and providers logic
      • networks getter optimizations
      • networks functions optimizations and cleanup
      • networks interfaces refactoring (predefined and custom networks share a common interface, Network)
      • Fixed: Extension freezes in loading state on popup open due to an unresponsive RPC (needs more testing to validate the fix works)
    • Move providers into a ProvidersController
  • Fixed: All other networks are removed if portfolio update is called for a single network #806
    • Latest state was being blindly replaced with pending state. This is bad as pending state may be partial, for example, if updatePortfolioState is called for specific networks
    • #prepareLatestState and #preparePendingState weren't using the proper networks structure
  • Fixed: Portfolio race condition (previousHints not properly stored when updateSelectedAccount is called) #811
  • Fixed: Portfolio potential race condition (with this.#previousHints in portfolio learnTokens) #812

Full Changelog: v2.11.0...v2.12.0

v1.0.16

11 Jun 09:24
6fc62ce
Compare
Choose a tag to compare

Changelog:

  • Fix: portfolio hook - token not being removed after transaction is confirmed
  • Added: Funding.json file

v2.11.0

06 Jun 08:46
e7252f7
Compare
Choose a tag to compare
v2.11.0 Pre-release
Pre-release

Changelog:

  • Added: Explicit rewardsType type in TokenResult #788
  • Fixed: Logic around portfolio hints refactoring #777
    • Learned tokens were reset on every learnTokens call
    • lastSeenNonZeroAndNotInExternalAPIHints, or just the timestamp of learned tokens, wasn't updating
  • Fixed: dedicatedToOneSA flag being wrongly set for the internal key iterator (resulting all Basic account keys being misleadingly marked as dedicatedToOneSA) #790
  • Fixed: If there's a custom network with the same chain id already added, remove it and place the predefined network instead Duplicate networks #792

Full Changelog: v2.10.0...v2.11.0

v2.10.0

04 Jun 20:10
04b5533
Compare
Choose a tag to compare
v2.10.0 Pre-release
Pre-release

Changelog:

  • Added: Scroll network config #786
  • Fixed: Filter tokenPreferences for total value in portfolio lib (after changes on controller the isHidden flag was not populated in portfolio lib, which means it did not filter out hidden tokens from total balance) #782
  • Fixed: EP 0.6.0: when bundler estimation fails on a custom network's first txn, we did not catch the error #785
  • Fixed: Remove ERC-4337 settings from networkPreferences for predefined networks only by @borislav-itskov in #791
  • Fixed: Simulation when there are multiple pending accountOp actions #789
    • When there is an active signAccountOp we pass only the calls from that accountOp to be simulated
    • When there is no active signAccountOp we pass all pending accountOps for the selectedAccount to be simulated and displayed on the Dashboard

Full Changelog: v2.9.0...v2.10.0

v2.9.0

03 Jun 12:47
8cc8479
Compare
Choose a tag to compare
v2.9.0 Pre-release
Pre-release

Changelog:

  • Added: Humanizer: Add hidden wrapping token for wrap/unwrap #759
  • Added: ActionsController, a sub-controller part of main (responsible for storing all dapp requests and requests made from the transfer screen and visualizing them in an action-window) #750
  • Added: Allow v1 account signing on certain conditions: either uniswap v2 permit or the SA address exists in the message #763
  • Added: Pre-parsig for humanizer calls #768
  • Changed: The proposed changes in AmbireTech/ambire-app#2109 for portfolio hints structure #736
  • Changed: Refactor the portfolio additional #754
    common/pull/761
  • Changed: Remove estimation from the Main controller #767
  • Changed: Laggy transfer fields #765 and #781
  • Changed: Update NFT deployless return structure #769
  • Changed: Refactor the preselect private key accounts logic #740
  • Changed: Refactor detecting the private key import case in the AccountAdder #739
  • Changed: Actions across the extension #775 and #780 and #764
    • ActionsController improvements
      • Added option for selecting any of the actions from actionsQueue
      • Added a getter for filtering only the actions for the selectedAccount
      • added banner for the pending dApps requests/actions
    • MainController refactoring
      • removed accountOpsToBeSigned in favor of actions of type 'accountOp'
      • removed messagesToBeSigned in favor of actions of type 'signMessage'
      • limit the number of 'signMessage' actions to one per account
      • refactored addUserRequest and removeUserRequest
      • estimation functions improvements and fixes
  • Changed: Compile updated NFT deployless and function #776
  • Changed: Performance improvements for the SignAccountOp and PortfolioController #778
  • Changed: Enhance sign & broadcast error handling #779
    • Fixed: Split the messages for the sign and the boardcast error cases, so that the messages are a bit more meaningful (previously Ambire was displaying a broadcast failed message when canceling a sign request by a hardware wallet for any reason).
    • Fixed: Encrease to 300 chars the limit for displaying long error messages, so that even the largest message gets displayed in full.
    • Changed: normalize the most common not-so-human-readable Ledger and Trezor messages.
  • Fixed: Transfer amount exceeds balance error #762
  • Fixed: Infinite loading on selected account change in Transaction History/Signed Messages https://github.com/AmbireTech/ambire-
  • Fixed: Use deployless for verifyMessage instead of eth_call #760
  • Fixed: Humanizer: async token info learning custom networks #773
  • Fixed: Add type to TxnRequest when broadcasting with a privKey account #770

Full Changelog: v2.8.2...v2.9.0

v1.0.15

28 May 16:16
9300022
Compare
Choose a tag to compare

Changelog:

  • Added: Scroll network config #771
  • Added: Humanizer: parseActions: add checks for arg types #738
  • Added: Humanizer: remove liquidity humanization parsing and bug fixes #744 (part of AmbireTech/ambire-wallet#1589)
  • Changed: Humanizer: Update swap/wrap parser #727
  • Fixed: TypeScript errors warns caused by ambire-common on web wallet #741

Full Changelog: v1.0.14...v1.0.15

v2.8.2

20 May 13:44
19c7028
Compare
Choose a tag to compare
v2.8.2 Pre-release
Pre-release

Changelog:

  • Changed: Humanizer storage default value #757
  • Fixed: Benzina showing label 'NATIVE' token #755
  • Fixed: Custom network deploy txn estimation #756
    • When estimating the deploy txn for a custom network, use the bundler estimation instead of our custom one
    • Use chainId for bundler identification, not name
  • Fixed: Debug trace call on adding a new network #758
    • When there's an error on debug_traceCall detection, always return false as supported;
    • Detect rpc rate limits on debug_traceCall requests and return as not supported if a 429 request comes

Full Changelog: v2.8.1...v2.8.2

v2.8.1

15 May 08:20
31926fc
Compare
Choose a tag to compare
v2.8.1 Pre-release
Pre-release

Changelog:

  • Fixed: Additional Portfolio In AccountPortfolio lost in pending state from forceUpdate #753

Full Changelog: v2.8.0...v2.8.1

v2.8.0

14 May 11:11
d8971fd
Compare
Choose a tag to compare
v2.8.0 Pre-release
Pre-release

Changelog:

  • Added: Reusable controller status logic in EventEmitter #734 and #745
  • Added: An Invite controller that manages the verification for invite codes and persists the current invite status #751
  • Added: Add id to the HumanizerVisualization #729
  • Added: Custom network native token symbol update for the Humanizer #746
  • Changed: Humanizer improvements: humanizerMeta lazy storing and reading, caching in memory and bugfixes #672
  • Changed: Humanizer internal refactoring of the async ops system #737
  • Changed: The RPC for the mantle test (the other one was failing) #752
  • Fixed: Estimation failure on reject #725
  • Fixed: Reflecting the pending portfolio state #716
  • Fixed: Even if pinned, do not filter it out because simulation suffers #726
  • Fixed: Check if fee speeds are set before declaring error in sign account op #728
  • Fixed: Force Emit updates to FE, as bypassing Background and React batching #695
  • Fixed: If the transaction (not the receipt) is not found 15 minutes after broadcast, declare it a failure #730
  • Fixed: Do not re-add accountOp on estimation #732
  • Fixed: Selecting default account (MainController status being overwritten) #733
  • Fixed: Settings race condition for the Account Adder controller #735
  • Fixed: Add checks for the entered amount in the Transfer controller (that used to throw ethers error when the passed amount in the transfer screen was too small) #747

Full Changelog: v2.7.0...v2.8.0

v2.7.0

22 Apr 11:30
6c3f712
Compare
Choose a tag to compare
v2.7.0 Pre-release
Pre-release

Changelog:

  • Added: USDC.E mapping #719
  • Changed: Wrap select account in statusWrapper #715
  • Refactored: fee speeds #702
  • Fixed: make sign message work for custom networks by #717
  • Fixed: nonce discrepancy #720
  • Fixed: Partial or old balance displayed on the dashboard #714
  • Fixed: Call Update Selected Account On Transaction Confirmed or UnknownButPastNonce #705
  • Fixed: native fee payment option for custom network first SA txn #709
  • Fixed: remove token icon fetching from portfolio #704
  • Fixed: improve 4337 dapp feedback #708
  • Fixed: Portfolio lib swallows priceIn errors #710
  • Fixed: Transfer sw warning displayed for addresses in the address book #712
  • Fixed: Portfolio controller state prepare racing condition #718
  • Fixed: PendingUserRequests Duplicating Id With AccountOpEoaBanners Id #721

Full Changelog: v2.6.0...v2.7.0