Commit Graph

1621 Commits

Author SHA1 Message Date
Denys Hriaznov
a6bea0810e Fix indent on the Settings screen 2024-01-12 21:49:35 +01:00
Den
526886368a [ENG-3474] feat: Make UI for STX RBF in the extension (#727)
* [ENG-3436] chore: Make some code refactoring for RBF in the extension

* Make some code fixes

* Make some code fixes

* fix: put speed up screen in another scrollable container

* Make some code tweaks according to PR review comments

* Remove the unused import

* fix nonce not being set correctly for tx requests

* fix nonce calc persisted

* [ENG-3455] fix: Fix the sharp fee change on tx confirmation

* release v0.26.1

* package-lock update

* fix: cap stx contract call fees (#722)

* fix: cap stx contract call fees

* chore: update core version

* chore: bump to core 6.0.1

* [ENG-3474] feat: Make UI for STX RBF in the extension

* Add the `useRbfTransactionData` hook

* Add some logic for stx rbf

* Add some logic for stx rbf

* Improve the stx rbf logic

* Improve the stx rbf logic

* Add the insufficient funds check

* Add ledger signing and broadcasting for stx rbf

* Add the fee cap

* Allow decimal fee for custom stx rbf

* Fix the loading state in the rbf hook

* Remove the todo comment

* Remove the `convertStringHexToBufferReader` helper func

* Round up the minimum rbf fee for stx txs

* Create separate btc and stx rbf components

* Remove the old todo comment

* improve the stx rbf logic

* Make some small code tweaks after the PR review

* Pass the seedVault.getSeed func

* Update the useRbfTransactionData hook

* Update the rbf logic

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Mahmoud Aboelenein <mahmoud@secretkeylabs.com>
Co-authored-by: Yukan <yukanliao@gmail.com>
2024-01-11 15:54:37 +01:00
Victor Kirov
7898e48352 Allow testnet ledger accounts (#688)
* Allow testnet ledger accounts

* Fix merge issue

* Enable account switch on ledger

* pr review fix

* Fix ledger device account index

* Fix ledger filtering on select account screen

* fix ledger account ID derivation

---------

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
Co-authored-by: Tim Man <tim@secretkeylabs.com>
2024-01-11 17:00:47 +08:00
fede erbes
2f7a7dcfea chore: add new auto lock period values and migrate users if needed (#736)
* chore: add new auto lock period values and migrate users if needed

* chore: improve ui around auto lock options

* chore: use l10n in time labels
2024-01-11 16:55:41 +08:00
Tim Man
c5b32b564a [ENG-3496] fix: utxo 500 issue add a fallback option to our api httpsbtc (#738)
* chore: fix for core local dev

* feat: use btc esplora api with a fallback url

* feat: add fallbackBtcApiUrl to store and refactor network state

* fix: types and comments

* refactor: clean up local react state in changeNetwork

* fix: clean up UI in change network node inputs

* chore: bump core version

* chore: bump core version

* fix: type error from core version

* fix: make fallback btc url not a required field, and update styles

* fix: remove unused remote btcApiUrl config functionality

* chore: not really a factory
2024-01-11 16:55:28 +08:00
fede erbes
e38eb594bf feat: add btc consolidation logic and new ui components to psbt and batch psbt screens (#726)
* Add skeleton for PSBT signing

* Update core

* Remove old file

* Add ledger support

* update core

* Update core

* feat: add new components for btc tx and use them in psbt and batch psbt tx screens

* fix: double scroll in popup windows

* fix: rare sats sort and scientific notation in amount component

* chore: clean up code

* chore: add anchor option to callout and use it in the warning of assets that are spent as payment

* feat: unconfirmed callout (#728)

* chore: add review suggestions

* chore: small improvements

* fix: scientific notation in inputs output value

* fix: ui issue when content type exceeds container size and icon is placeholder

* Fix PSBT signing with Core update

* chore: add showContentTypeThumbnail prop to ordinal image component and use it in psbt screens (#737)

* chore: add showContentTypeThumbnail prop to ordinal image component and use it in psbt screens

* chore: remove bold weight

* chore: update core version to dummy utxo fixes branch

* chore: update core version to fix ledger input issue

---------

Co-authored-by: victorkirov <victor.kirov@gmail.com>
Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
2024-01-10 14:42:33 +01:00
Mahmoud Aboelenein
e30276a02b Bug fix/rbf support custom seed handler (#739)
* replace seed phrase handler param

* fix: add empty fallbackApiUrl to fix type errors for now

* edit transaction history list prop

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
2024-01-10 16:29:43 +08:00
Den
e2795111b6 [ENG-3436] chore: Make some code refactoring for RBF in the extension (#712)
* [ENG-3436] chore: Make some code refactoring for RBF in the extension

* Make some code fixes

* Make some code fixes

* fix: put speed up screen in another scrollable container

* Make some code tweaks according to PR review comments

* Remove the unused import

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
2024-01-09 13:45:02 +01:00
Tim Man
2b1b387ceb [ENG-3471] feat: use estimated fees for stx transactions (#720)
* feat: use estimated network fees for stx transactions

* fix: use bigint in comparison

* refactor: use core function for stx applyFeeMultiplier

* chore: update core version

* fix: use safer default instead of non-nullish assert

---------

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
2024-01-09 12:44:49 +01:00
Abdul Haseeb
2b030af042 feat: BTC fee UI (#733)
* chore: fee item component

* feat: BTC fee options

* chore: localisation

* chore: remove unused code

* feat: selected state

* fix: custom fee UI

* chore: localization

* refactor: clean up edit fee

* chore: address PR comments

* fix: custom option selection

* fix: back button

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
2024-01-08 22:51:57 +08:00
Jordan K
6c8029f4c2 ENG-2630: Remove BRC-20 / SIP-10 token labels (#735)
* Remove token labels

* Remove unused TagContainer and ProtocolText

* Show SIP-10 in coinHeader
2024-01-05 13:00:44 +08:00
Tim Man
2661b33d51 Merge pull request #732 from secretkeylabs/release/v0.27.0
release: v0.27.0 to develop
2024-01-05 12:11:13 +08:00
Tim Man
50e0667855 Merge branch 'develop' into release/v0.27.0 2024-01-05 12:09:20 +08:00
Tim Man
dcfff1f9d2 Merge remote-tracking branch 'origin/main' into release/v0.27.0 2024-01-05 12:00:50 +08:00
Jordan K
f5067a2f46 ENG-3402 Named classes for styled-components (#721)
* Bump typescript to v5.0.0

* Add typescript-plugin-styled-components

* Add webpack plugin

* Update webpack/webpack.config.js
2024-01-04 11:54:34 +08:00
Tim Man
f32e96cee4 chore: fix build workflow file (#734) 2024-01-03 12:09:03 +08:00
Tim Man
74394d3f4a [ENG-3325] chore: refactor workflows (#714)
* chore: trigger create rc release on PR to main

* chore: move release asset uploads for rc to build

* chore: split workflows into 2 for build and 1 for release

* chore: remove extra build deps step

* chore: add back missing env vars

* chore: comments and remove unnecessary conditionals

* chore: add git checkout where needed

* chore: clean up and remove create release step since it was moved

* chore: clean up workflow file

* chore: more cleanup

* chore: minor naming

* chore: minor naming

* chore: minot naming

* chore: more naming
2024-01-02 16:27:20 +08:00
GitHub Actions Bot
364d8b0fc1 release: v0.27.0 2023-12-29 18:10:30 +00:00
fede erbes
cace084e5b feat: add new png and svg icons for satributes (#730) 2023-12-29 13:49:03 +01:00
Abdul Haseeb
bcd28b0d77 feat: add hook for confirmed btc balance, inscription callouts (#711) 2023-12-28 11:30:44 +02:00
Mahmoud Aboelenein
65d33e3c44 Mahmoud/eng 3111 integrate with stacks raw hex signing on extension (#652)
* init tx hex handling

* added stx hex tx signing support

* integrate with connect core utils

* fix stx tx serialization

* handle sign-hex for dapp interactions

* update core version

* add auh to tx-creation

* fix pending txs handling

* fix type issues

* update core version

* revert removing signMultipleTransactions

* update core version

* remove unused package aliases

* Tim/eng 3475 nonce not updating correctly after switching accounts (#725)

* fix: regenerate the unsignedTx with correct stxAddress after switch account

* fix: minor cleanup

* fix tx-request account switching

* updated core version

* added type checking and default values for feeMultipliers

---------

Co-authored-by: Mahmoud Aboelenein <mahmoud@secretkeylabs.com>

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
2023-12-27 19:52:50 +02:00
Tim Man
48552072e5 Merge pull request #724 from secretkeylabs/release/v0.26.2
release: v0.26.2 to develop
2023-12-20 15:00:44 +08:00
Tim Man
8a6043a889 Merge pull request #723 from secretkeylabs/release/v0.26.2
* fix: cap stx contract call fees (#722)

* fix: cap stx contract call fees

* chore: update core version

* chore: bump to core 6.0.1

* release: v0.26.2

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: GitHub Actions Bot <>
2023-12-20 15:00:06 +08:00
Tim Man
ffa432e3fc Merge remote-tracking branch 'origin/main' into release/v0.26.2 2023-12-20 14:54:38 +08:00
GitHub Actions Bot
b7cc987c86 release: v0.26.2 2023-12-19 15:08:54 +00:00
Tim Man
d051f5bc88 fix: cap stx contract call fees (#722)
* fix: cap stx contract call fees

* chore: update core version

* chore: bump to core 6.0.1
2023-12-19 23:08:21 +08:00
Tim Man
a2dd05a8ca Merge pull request #718 from secretkeylabs/release/v0.26.1
Release v0.26.1 to develop
2023-12-19 13:43:33 +08:00
Tim Man
4924aa1800 Merge pull request #719 from secretkeylabs/release/v0.26.1
Release v0.26.1 to main
2023-12-19 13:42:59 +08:00
Tim Man
e3479aaa80 Merge remote-tracking branch 'origin/main' into release/v0.26.1 2023-12-19 13:32:49 +08:00
Yukan
a087c0d242 package-lock update 2023-12-18 23:29:55 +08:00
Yukan
de4441a017 release v0.26.1 2023-12-18 23:23:10 +08:00
Ken Liao
3fd23ab93a Merge pull request #717 from secretkeylabs/denys/eng-3455-fix-the-sharp-fee-change-on-tx-confirmation
[ENG-3455] fix: Fix the sharp fee change on tx confirmation
2023-12-18 10:20:33 -05:00
Ken Liao
6a8e9b3434 Merge pull request #716 from secretkeylabs/mahmoud/eng-3456-stacks-caching-issue-for-the-nonce-on-the-extension
fix nonce not being set correctly for tx requests
2023-12-18 10:20:08 -05:00
Mahmoud Aboelenein
5cac557b4a fix nonce calc persisted 2023-12-18 17:12:31 +02:00
Den
ffab33fe18 Merge branch 'develop' into denys/eng-3455-fix-the-sharp-fee-change-on-tx-confirmation 2023-12-18 13:18:56 +01:00
Denys Hriaznov
bc96e5be36 [ENG-3455] fix: Fix the sharp fee change on tx confirmation 2023-12-18 13:08:11 +01:00
Mahmoud Aboelenein
f7e631d7f3 fix nonce not being set correctly for tx requests 2023-12-18 13:31:08 +02:00
Victor Kirov
ec09afe607 Fix account referencing issue on login (#710) 2023-12-18 10:24:44 +08:00
Tim Man
71772d9912 [ENG-3427] fix: allow-404-get-utxos-from-psbt (#709)
* fix: allow 404s when checking psbt utxos for ordinals

* refactor: move detect ordinal if found logic to core

* chore: use beta core version

* chore: bump core version to v5.3.0
2023-12-13 13:14:55 +08:00
Jordan K
9836e4c77e Parse block seedphrase from clipboard when pasted for devs (#697)
Co-authored-by: Tim Man <tim@secretkeylabs.com>
2023-12-12 15:34:27 +08:00
Tim Man
a6efb001b3 Merge pull request #708 from secretkeylabs/release/v0.26.0
release: v0.26.0 to develop
2023-12-12 12:27:18 +08:00
Tim Man
d92a827e92 Merge pull request #707 from secretkeylabs/release/v0.26.0
release: v0.26.0 to main
2023-12-12 12:26:32 +08:00
Tim Man
fdcd9951a6 Merge remote-tracking branch 'origin/main' into release/v0.26.0 2023-12-07 14:55:27 +08:00
Tim Man
24e5f70b11 Merge branch 'develop' into release/v0.26.0 2023-12-07 14:53:19 +08:00
Den
eed20904dd [ENG-3199] feat: Make UI for RBF in web-extension (#656)
* [ENG-3199] feat: Make UI for RBF in web-extension

* Add a display condition for Accelerate tx button

* Add `Speed up transaction` modal

* Add custom toast styling for `success` option

* Add ledger tx confirmation modal for the RBF

* Update the ledger UI for RBF and Speed up button icon

* Transform the Speed up modal into a separate screen

* Add toaster bottom indent back

* Update the speed up tx page with new buttons

* Add the custom fee modal to the tx speed up

* Improve speed up tx UI

* Add `Insufficient funds` warning text and disable the speed up option, update the `xverse-core` version

* Add rbf recommended fees fetching

* Improve the tx speed up logic

* Improve the tx speed up logic

* Add `useTransaction` hook and tx speed up submit

* Fix accountType and fee buttons order

* Fix accountType assignment

* Refactor fee rate calculation

* Remove unused imports

* Change the numbers displaying logic on the speed up tx screen

* Convert the `estimatedCompletionTime` var into a function

* Update the speed up tx option info alignment

* Fix accountId property

* Add rbf tx broadcasting

* Update @secretkeylabs/xverse-core version

* Move the ledger confirmation UI to the speed up tx screen

* Update the ledger confirmation logic for rbf

* Update handleBackButtonClick to handleGoBack

* Remove the unused imports

* Update the rbf custom fee logic

* Add the total fee calculation for the custom fee using `getRbfFeeSummary` func

* Move speed up tx screen styles to a separate file

* Fix the custom total fee calculation

* Improve the custom fee calculation

* Improve the custom fee calculation

* Add `isTransactionRbfEnabled` check

* Update the xverse-core version

* Update the xverse-core version

* Hide rbf for brc20, add estimated time for the custom fee

* Update the xverse-core version

* Remove console logs and add err catching on broadcasting

* Update the xverse-core version

* chore: fix type errors after ActionButton interface change

* Update the `isTransactionRbfEnabled` func usage and xverse-core version

* Update the xverse-core version

* Update the useEffect calling the `fetchRbfData` func

* Make some code fixes according to PR comments

* Update the import from xverse-core and the version

* Update the useEffect deps

* Fix the custom fee logic

* Use new RBF core logic

* use mempool api

* fix merge issue

* update core

* chore: comment breaking changes

* Improve the custom fee logic

* Don't show speed up if disabled in settings

* Update core version

* Add key to groupedTxs

* Temp fix for multiple transactions appearing after RBF

* Navigate directly to homepage instead of relative history count

* fix: include xverse-core with rbf fixes

* chore: bump core version to include chain rbf fixes

* fix: update missing btcClients in rbf screens

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: victorkirov <victor.kirov@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: jordankzf <jordan@secretkeylabs.com>
2023-12-07 14:52:54 +08:00
GitHub Actions Bot
9d9cf8b465 release: v0.26.0 2023-12-07 06:33:32 +00:00
Tim Man
0188b2c955 chore: add missing workflow permissions (#706) 2023-12-07 14:32:46 +08:00
Victor Kirov
3df91bf765 Inject esplora provider into core functions (#699)
* Inject esplora provider into core functions

* Fix custom URL setting

* chore: bump core version to include btcclient changes

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
2023-12-07 14:28:11 +08:00
Tim Man
68ec5db6db Merge pull request #705 from secretkeylabs/chore/add-missing-gh-token-env 2023-12-06 19:11:21 +08:00
Tim Man
33ba9e1842 chore: add gh token env var to workflow 2023-12-06 19:09:09 +08:00