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

Feature/2.3 #967

Open
wants to merge 105 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
2289257
Add new sdk methods to flyover service
lserra-iov Aug 16, 2024
998f5dd
Set version to 2.3.0
lserra-iov Sep 10, 2024
3dd70f7
Save quote hash
lserra-iov Sep 9, 2024
4905ed4
Add xverse wallet support for Pegin
ronaldsg20 Sep 20, 2024
3239646
Downgrade sats-connect version
ronaldsg20 Sep 24, 2024
4473834
Increasin unit test for Xverse wallet services and Tx builder
ronaldsg20 Sep 26, 2024
8569514
build(deps): bump webpack from 5.88.2 to 5.94.0
dependabot[bot] Sep 3, 2024
070592d
build(deps): bump body-parser and express
dependabot[bot] Sep 23, 2024
1ffcabe
build(deps): bump path-to-regexp and express
dependabot[bot] Sep 23, 2024
4844762
build(deps): bump micromatch from 4.0.5 to 4.0.8
dependabot[bot] Sep 3, 2024
c879612
Change displayed amount for flyover pegouts
lserra-iov Sep 26, 2024
81e8784
Remove old confirmation page
lserra-iov Sep 26, 2024
da83700
Show btc tx id of successful pegout
lserra-iov Sep 30, 2024
59624cc
Change success text and btc fee estimation on status page
lserra-iov Sep 30, 2024
b92b935
Get flyover tx status based on quote hash
lserra-iov Sep 19, 2024
184ca01
feature: adding enkrypt wallet for pegin
annipi Oct 3, 2024
50ecc66
Fix top balance format
lserra-iov Sep 26, 2024
cdc118b
refactor: remove pegin modal steps
annipi Sep 25, 2024
29ed03c
fix: refund address to enable flyover option for enkrypt and xverse
annipi Oct 8, 2024
e2c2644
Add block event listener to refresh balance
ronaldsg20 Oct 8, 2024
86e797a
Refactor: PeginQuote class definition
ronaldsg20 Oct 11, 2024
4a3ec41
Add network fee on the quote calculation
ronaldsg20 Oct 16, 2024
6f74b99
Show pegin wallets based on feature flags
lserra-iov Oct 10, 2024
e24e9ac
Rename wallet constant
lserra-iov Oct 15, 2024
c763899
build(deps): bump webpack from 5.88.2 to 5.95.0
dependabot[bot] Sep 27, 2024
95adc80
build(deps): bump axios, @rsksmart/rlogin and @ledgerhq/evm-tools
dependabot[bot] Sep 27, 2024
9d16c1d
refactor: downgrade rLogin to version 1.5.3-beta.2
annipi Oct 15, 2024
e2eb7bd
build(deps): bump cookie and express
dependabot[bot] Oct 13, 2024
2940162
feat: add api call to save logs for flyover getQuote and getLiquidity…
annipi Aug 1, 2024
feb4d91
fix: error message for register flyover calls
annipi Aug 5, 2024
f083b3c
Deletin unused components of previous Pegout form
ronaldsg20 Oct 17, 2024
6bc9f12
Refactor and clean un used data and old code
ronaldsg20 Oct 18, 2024
df15833
refactor: remove max limits and max button, get available liquidity
annipi Oct 15, 2024
880d0a0
Add btc account select on top bar
ronaldsg20 Oct 23, 2024
d5d95c7
Fix Ui details on btc select
ronaldsg20 Oct 24, 2024
73cfd89
Update pegiAccountSelect component as the design
ronaldsg20 Oct 27, 2024
258c4ba
TWPAPP-960: Change pegin flow according to the new design
lserra-iov Oct 28, 2024
869c7ce
TWPAPP-958: Remove summary after pegin form
lserra-iov Oct 29, 2024
bd16d20
fix: wallet position to the left and to fixed squares
annipi Oct 30, 2024
bbeabc4
refactor: adding new design to pegout flow
annipi Oct 31, 2024
5ea3248
fix: update flyover-sdk to avoid getProviders error response
annipi Nov 1, 2024
279d5cb
Avoid calling captcha for native
lserra-iov Nov 4, 2024
f1495b7
fix: pegout getProviders as promise and added loader
annipi Nov 1, 2024
1cd02c0
fix: do not show options until amount is inputed
annipi Nov 12, 2024
108e328
fix: status bar bullets color of light mode
annipi Nov 12, 2024
9206574
Fix pegin destination address usage
lserra-iov Nov 6, 2024
819cf7c
Remove warnings
lserra-iov Nov 7, 2024
c40803a
Show error msg when pegout is rejected
lserra-iov Nov 4, 2024
6e362b1
Add space between message and progress bar
lserra-iov Nov 14, 2024
4cea871
fix: review conditions only if differnece is bigger than 2%
annipi Nov 11, 2024
750e942
fix: review conditions only if differnece is bigger than 2%
annipi Nov 14, 2024
9e18b3f
refactor: change generate to derive on pegput native button for BTC a…
annipi Nov 21, 2024
b4577cd
fix: create consistent spacing between elements on pegout option card
annipi Nov 20, 2024
9b28265
Update deploy_staging_TestNet_UI.yml
alexjavabraz Nov 21, 2024
a2af5bd
Update deploy_staging_TestNet_UI.yml
alexjavabraz Nov 21, 2024
c48eda6
Openssf badge
ronaldsg20 Nov 22, 2024
fc6f18a
fix: disable send button while getting quotes
annipi Nov 25, 2024
a28c3e7
Fix BTC balances
lserra-iov Nov 20, 2024
147efcc
Update register flow to store full quote
ronaldsg20 Oct 28, 2024
d4f3610
fixing Number cast issue on api call
ronaldsg20 Nov 16, 2024
fd562ac
Update store quote to include acceptedQuoteSignature
ronaldsg20 Nov 21, 2024
26d7737
Attempiting to fix provider connection on flyover instance
ronaldsg20 Nov 18, 2024
3207d02
attepmt to use a readOnlyConnection on the flyover isntance
ronaldsg20 Nov 21, 2024
20cf13c
Using anonnymus connection on the flyover instance
ronaldsg20 Nov 21, 2024
5487678
Remove logs
ronaldsg20 Nov 22, 2024
1a752a9
Include amount in the params of Success view
ronaldsg20 Nov 25, 2024
5cdf06d
fix: add amount on success params, value to receive pegout native wit…
annipi Nov 28, 2024
763bb2e
refactor: tx not found message on status
annipi Nov 25, 2024
afe7663
Update message
annipi Nov 28, 2024
e5e780e
Fix provider definition on the flyoverservice instance on pegout
ronaldsg20 Dec 4, 2024
6f9a042
Clear wallet service
lserra-iov Nov 27, 2024
2873191
Show fast mode unavailable when there is no liquidity (pegin)
lserra-iov Nov 25, 2024
c32e871
Show fast mode unavailable when there is no liquidity (pegout)
lserra-iov Nov 25, 2024
eff17a3
fix: show pegout options only with valid amount
annipi Dec 9, 2024
ffbbefb
fix: disabled fast option while recaptcah reloads, after 30 seconds
annipi Dec 4, 2024
2165e86
fix: allow coppy of the derived address pegout native
annipi Dec 6, 2024
2139c33
Flyover sdk 1.6.2 update
ronaldsg20 Nov 26, 2024
0dcdcd3
Add development lps to CSP
ronaldsg20 Nov 27, 2024
1df8f3f
Allow bech32 address on flyover pegout recipient option
ronaldsg20 Nov 27, 2024
359a8b4
Add message for the quote not found scenario
lserra-iov Dec 4, 2024
fe24151
fix: different response when blockbook is not responding
annipi Dec 6, 2024
a1612de
include browser support for each pegin wallets on the feature flags
ronaldsg20 Dec 6, 2024
5aaa172
Update supportedBrowser structure on the Features model
ronaldsg20 Dec 9, 2024
44c84fc
Update Firefox verification on main page and rlogin feature flags
ronaldsg20 Dec 10, 2024
cb00084
Update workflow for 1.6.2 flyover test on Dev environment
ronaldsg20 Dec 10, 2024
e3acc89
Merge branch 'main' into backmerge/2.3
ronaldsg20 Dec 10, 2024
cac59fa
Restore config for Flyover network and setting up LBC address for tes…
ronaldsg20 Dec 17, 2024
41b7ec0
Fix supported Browser message and validation
ronaldsg20 Dec 17, 2024
dc16a3b
Remove brave comparison in the browser names
ronaldsg20 Dec 18, 2024
02c38d1
Fix flyover pegout init action call and txNotFound warn
lserra-iov Dec 17, 2024
769b6ef
Update Rlogin to latest versions
ronaldsg20 Dec 13, 2024
803273d
fix: leather failing for fee verification
annipi Dec 18, 2024
bec14de
remove error diff on ledger sign method
ronaldsg20 Dec 18, 2024
379d535
Fix rlogin modal visual defects
lserra-iov Dec 20, 2024
945cc49
Manually center x symbol in rlogin
ronaldsg20 Dec 20, 2024
1241af7
refactor: enabling systema lps
annipi Dec 23, 2024
7d54cb1
fix: not show countdown for grecaptcha while a transaction is being p…
annipi Dec 19, 2024
4357058
fix: alternative path for changed conditions on quotes
annipi Dec 20, 2024
be561bc
refactor: updating text to allow any kind of BTC address
annipi Dec 23, 2024
8462fbb
adding dynamic year
alexjavabraz Jan 6, 2025
7e8bae9
fix: pegout option card with responsive, same height
annipi Jan 10, 2025
a524913
fix: hardcoded provider id pass on env variable
annipi Jan 14, 2025
9e678e2
Check for permissions before getting addresses
lserra-iov Jan 15, 2025
d8360ec
setting axios to v1.7.7
alexjavabraz Jan 16, 2025
ab82fd6
Comment ledger rlogin provider inclusion on the app
ronaldsg20 Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.local.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ VUE_APP_RSK_EXPLORER=https://explorer.testnet.rsk.co/

# replace VALUE with the clarity id for the environment the app is being deployed to.
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.005
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
#VUE_APP_CLARITY_ID=VALUE

## fee boundaries
Expand All @@ -28,4 +27,5 @@ VUE_APP_LBC_ADDRESS='0xc2A630c053D12D63d32b025082f6Ba268db18300'
VUE_APP_DEBUG_MODE='true'

NODE_ENV=test
VUE_APP_FLYOVER_PEGOUT_QUOTE_DIFF_PERCENTAGE=2 # 2%

3 changes: 1 addition & 2 deletions .github/workflows/deploy_MainNet_UI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ jobs:
VUE_APP_WALLET_ADDRESSES_HARD_STOP=100
VUE_APP_WALLET_ADDRESS_PER_CALL=20
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.004
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC=0.005
VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC=10
VUE_APP_FAST_MINING_BLOCK=1
VUE_APP_AVERAGE_MINING_BLOCK=3
VUE_APP_SLOW_MINING_BLOCK=5
VUE_APP_LBC_ADDRESS='0xAA9cAf1e3967600578727F975F283446A3Da6612'
VUE_APP_FLYOVER_PEGOUT_QUOTE_DIFF_PERCENTAGE=2
npm run-script build

- name: Configure AWS credentials
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy_TestNet_UI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ jobs:
VUE_APP_WALLET_ADDRESSES_HARD_STOP=100
VUE_APP_WALLET_ADDRESS_PER_CALL=20
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.004
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC=0.005
VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC=10
VUE_APP_FAST_MINING_BLOCK=1
VUE_APP_AVERAGE_MINING_BLOCK=3
VUE_APP_SLOW_MINING_BLOCK=5
VUE_APP_LBC_ADDRESS='0xc2A630c053D12D63d32b025082f6Ba268db18300'
VUE_APP_FLYOVER_PEGOUT_QUOTE_DIFF_PERCENTAGE=2
npm run-script build

- name: Configure AWS credentials
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy_staging_MainNet_UI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ jobs:
VUE_APP_WALLET_ADDRESSES_HARD_STOP=100
VUE_APP_WALLET_ADDRESS_PER_CALL=20
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.004
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC=0.005
VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC=10
VUE_APP_FAST_MINING_BLOCK=1
VUE_APP_AVERAGE_MINING_BLOCK=3
VUE_APP_SLOW_MINING_BLOCK=5
VUE_APP_LBC_ADDRESS='0xAA9cAf1e3967600578727F975F283446A3Da6612'
VUE_APP_FLYOVER_PEGOUT_QUOTE_DIFF_PERCENTAGE=2
npm run-script build

- name: Configure AWS credentials
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deploy_staging_TestNet_UI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ jobs:
VUE_APP_WALLET_ADDRESSES_HARD_STOP=100
VUE_APP_WALLET_ADDRESS_PER_CALL=20
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.004
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC=0.005
VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC=10
VUE_APP_FAST_MINING_BLOCK=1
VUE_APP_AVERAGE_MINING_BLOCK=3
VUE_APP_SLOW_MINING_BLOCK=5
VUE_APP_LBC_ADDRESS='0xc2A630c053D12D63d32b025082f6Ba268db18300'
VUE_APP_LBC_ADDRESS='0x18D8212bC00106b93070123f325021C723D503a3'
VUE_APP_FLYOVER_PEGOUT_QUOTE_DIFF_PERCENTAGE=20
npm run-script build

- name: Configure AWS credentials
Expand Down
5 changes: 2 additions & 3 deletions ENV_VARIABLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ The value of these variables are used in **environment-variables.ts** file.
|VUE_APP_WALLET_ADDRESSES_HARD_STOP | `100` | Maximum number of addresses derived from wallet |
|VUE_APP_WALLET_ADDRESS_PER_CALL | `5` | Number of addresses obtained per derivation call |
|VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC | `0.004` | 0,004 Minimum allowed value for a PEGOUT transaction |
|VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC | `10` | 10 Maximum allowed value for a PEGOUT transaction |
|VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC | `0.005` | Minimum allowed value for a PEGIN transaction |
|VUE_APP_PEGIN_MAX_AMOUNT_ALLOWED_IN_BTC | `10` | Maximum allowed value for a PEGIN transaction |
|VUE_APP_BURN_DUST_VALUE | `30000` | Max value to burn in the tx fee |
|VUE_APP_MIN_FEE_SAT_PER_BYTE_FAST | `8` | Min fee rate (sats/byte) required to broadcast the transaction |
|VUE_APP_MIN_FEE_SAT_PER_BYTE_AVG | `4` | Min fee rate (sats/byte) required to broadcast the transaction |
|VUE_APP_MIN_FEE_SAT_PER_BYTE_SLOW | `1` | Min fee rate (sats/byte) required to broadcast the transaction |
|VUE_APP_LBC_ADDRESS | `0xc2A630c053D12D63d32b025082f6Ba268db18300` | Liquidity bridge contract address on the flyover protocol |
|VUE_APP_DEBUG_MODE | `false` | enable developer messages for debuging |
|VUE_APP_FLYOVER_PEGOUT_QUOTE_DIFF_PERCENTAGE | `2` | Defines quote difference percentage to 2% so it requieres the user to review condition only for a difference bigger that this percentage |

## Example for .env.local.test file

Expand All @@ -38,11 +37,11 @@ VUE_APP_RSK_EXPLORER=https://explorer.testnet.rootstock.io/
VUE_APP_WALLET_ADDRESSES_HARD_STOP=100
VUE_APP_WALLET_ADDRESS_PER_CALL=5
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.005
VUE_APP_PEGOUT_MAX_AMOUNT_ALLOWED_IN_RBTC=10
VUE_APP_BURN_DUST_VALUE=30000
VUE_APP_MIN_FEE_SAT_PER_BYTE_FAST=8
VUE_APP_MIN_FEE_SAT_PER_BYTE_AVG=4
VUE_APP_MIN_FEE_SAT_PER_BYTE_SLOW=1
VUE_APP_LBC_ADDRESS='0xc2A630c053D12D63d32b025082f6Ba268db18300'
VUE_APP_DEBUG_MODE='false'
VUE_APP_FLYOVER_PEGOUT_QUOTE_DIFF_PERCENTAGE=2
```
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=rsksmart_2wp-app&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=rsksmart_2wp-app)
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/9697/badge)](https://www.bestpractices.dev/projects/9697)

[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/rsksmart/2wp-app/badge)](https://scorecard.dev/viewer/?uri=github.com/rsksmart/2wp-app)

Expand Down
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
transform: {
'^.+\\.vue$': '@vue/vue3-jest',
'^.+\\.(mts|mjs|jsx|ts|tsx)$': 'ts-jest',
},
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
collectCoverage: true,
collectCoverageFrom: ['src/(common|pegin)/(providers|services|utils)/*.ts'],
Expand All @@ -13,4 +17,5 @@ module.exports = {
coverageProvider: 'v8',
transformIgnorePatterns: ['node_modules/(?!axios)/'],
setupFilesAfterEnv: ['<rootDir>/setup-jest.js'],
silent: true,
};
Loading
Loading