Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #967 from rsksmart/feature/2.3
Browse files Browse the repository at this point in the history
Feature/2.3
alexjavabraz authored Jan 22, 2025
2 parents c79d132 + 4eabf7a commit 384ffa1
Showing 129 changed files with 5,142 additions and 4,028 deletions.
6 changes: 4 additions & 2 deletions .env.local.test
Original file line number Diff line number Diff line change
@@ -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
@@ -28,4 +27,7 @@ VUE_APP_LBC_ADDRESS='0xc2A630c053D12D63d32b025082f6Ba268db18300'
VUE_APP_DEBUG_MODE='true'

NODE_ENV=test

VUE_APP_FLYOVER_PEGOUT_QUOTE_DIFF_PERCENTAGE=2
VUE_APP_RECAPTCHA_NEW_TOKEN_TIME=30
VUE_APP_FLYOVER_PROVIDER_ID=2
VUE_APP_CSP=https://staging.lps.tekscapital.com
6 changes: 4 additions & 2 deletions .github/workflows/deploy_MainNet_UI.yml
Original file line number Diff line number Diff line change
@@ -48,13 +48,15 @@ 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
VUE_APP_RECAPTCHA_NEW_TOKEN_TIME=30
VUE_APP_FLYOVER_PROVIDER_ID=2
VUE_APP_CSP=https://lps.tekscapital.com
npm run-script build
- name: Configure AWS credentials
6 changes: 4 additions & 2 deletions .github/workflows/deploy_TestNet_UI.yml
Original file line number Diff line number Diff line change
@@ -48,13 +48,15 @@ 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
VUE_APP_RECAPTCHA_NEW_TOKEN_TIME=30
VUE_APP_FLYOVER_PROVIDER_ID=2
VUE_APP_CSP=https://staging.lps.tekscapital.com
npm run-script build
- name: Configure AWS credentials
6 changes: 4 additions & 2 deletions .github/workflows/deploy_staging_MainNet_UI.yml
Original file line number Diff line number Diff line change
@@ -48,13 +48,15 @@ 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
VUE_APP_RECAPTCHA_NEW_TOKEN_TIME=30
VUE_APP_FLYOVER_PROVIDER_ID=2
VUE_APP_CSP=https://lps.tekscapital.com
npm run-script build
- name: Configure AWS credentials
6 changes: 4 additions & 2 deletions .github/workflows/deploy_staging_TestNet_UI.yml
Original file line number Diff line number Diff line change
@@ -48,13 +48,15 @@ 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=20
VUE_APP_RECAPTCHA_NEW_TOKEN_TIME=30
VUE_APP_FLYOVER_PROVIDER_ID=2
VUE_APP_CSP=https://staging.lps.tekscapital.com
npm run-script build
- name: Configure AWS credentials
7 changes: 4 additions & 3 deletions ENV_VARIABLES.md
Original file line number Diff line number Diff line change
@@ -14,15 +14,16 @@ 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 |
|VUE_APP_RECAPTCHA_NEW_TOKEN_TIME | `30` | Specifies the time (in seconds) to temporarily disable the flyover between new transactions. This accounts for the time required by Google reCAPTCHA to regenerate a challenge token |
|VUE_APP_FLYOVER_PROVIDER_ID | `1` | Sets up the provider id to be use for flyover status search. |

## Example for .env.local.test file

@@ -38,11 +39,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)

1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -2,4 +2,5 @@ module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
plugins: ['@babel/plugin-transform-private-methods'],
};
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'],
@@ -13,4 +17,5 @@ module.exports = {
coverageProvider: 'v8',
transformIgnorePatterns: ['node_modules/(?!axios)/'],
setupFilesAfterEnv: ['<rootDir>/setup-jest.js'],
silent: true,
};
Loading

0 comments on commit 384ffa1

Please sign in to comment.