From 5081b11c93ce076f57ee0a1e68d6bef9e3ef360e Mon Sep 17 00:00:00 2001 From: daro-maj <119658839+daro-maj@users.noreply.github.com> Date: Mon, 24 Apr 2023 15:28:42 +0200 Subject: [PATCH 1/9] test(trading): separated artifacts for logs and html report (#3519) --- .github/workflows/cypress-run.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cypress-run.yml b/.github/workflows/cypress-run.yml index 2b14e0b44..700403159 100644 --- a/.github/workflows/cypress-run.yml +++ b/.github/workflows/cypress-run.yml @@ -91,7 +91,11 @@ jobs: - uses: actions/upload-artifact@v3 if: ${{ failure() }} with: - name: test-report-and-logs-${{ matrix.project }} - path: | - /home/runner/.vegacapsule/testnet/logs - frontend-monorepo/apps/trading-e2e/cypress/reports + name: logs-${{ matrix.project }} + path: /home/runner/.vegacapsule/testnet/logs + + - uses: actions/upload-artifact@v3 + if: ${{ failure() }} + with: + name: test-report-${{ matrix.project }} + path: frontend-monorepo/apps/trading-e2e/cypress/reports From 11b08d16e45a31403fac8ee817661e5607259e82 Mon Sep 17 00:00:00 2001 From: Dexter Date: Mon, 24 Apr 2023 15:56:05 +0100 Subject: [PATCH 2/9] ci: bump version --- libs/ui-toolkit/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ui-toolkit/package.json b/libs/ui-toolkit/package.json index b6b8d32db..2f73a4310 100644 --- a/libs/ui-toolkit/package.json +++ b/libs/ui-toolkit/package.json @@ -1,4 +1,4 @@ { "name": "@vegaprotocol/ui-toolkit", - "version": "0.11.1" + "version": "0.12.0" } From 8bf948578c65a67eb8556217ca13dec95d920a4f Mon Sep 17 00:00:00 2001 From: dexturr Date: Mon, 24 Apr 2023 18:09:08 +0000 Subject: [PATCH 3/9] chore: update tranches Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- apps/static/src/assets/mainnet-tranches.json | 49 ++++++++++++-------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 87fcddd3b..22581d5ad 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -38,7 +38,7 @@ "tranche_end": "2023-05-20T00:00:00.000Z", "total_added": "15999.125", "total_removed": "0", - "locked_amount": "13596.4045541087969481125", + "locked_amount": "13462.5600222800922963125", "deposits": [ { "amount": "188", @@ -705,8 +705,8 @@ "tranche_start": "2023-04-06T00:00:00.000Z", "tranche_end": "2023-05-06T00:00:00.000Z", "total_added": "8976", - "total_removed": "490.11243517665", - "locked_amount": "3439.2001111111111776", + "total_removed": "596.64743517951", + "locked_amount": "3364.1092222222217568", "deposits": [ { "amount": "111", @@ -850,6 +850,11 @@ } ], "withdrawals": [ + { + "amount": "106.53500000286", + "user": "0x6F32AA5A6198329c16e438512F992a0548C856f9", + "tx": "0x4027743264e01043ddb16676c6f7914c110df9e7212bd3f21cb6842614ce238f" + }, { "amount": "5.46866782407", "user": "0x92A1e98C6f09970e45645Cbe57c6DcaF4547c8FE", @@ -1103,6 +1108,12 @@ } ], "withdrawals": [ + { + "amount": "106.53500000286", + "user": "0x6F32AA5A6198329c16e438512F992a0548C856f9", + "tranche_id": 54, + "tx": "0x4027743264e01043ddb16676c6f7914c110df9e7212bd3f21cb6842614ce238f" + }, { "amount": "155.03186111556", "user": "0x6F32AA5A6198329c16e438512F992a0548C856f9", @@ -1129,8 +1140,8 @@ } ], "total_tokens": "858", - "withdrawn_tokens": "424.47530786232", - "remaining_tokens": "433.52469213768" + "withdrawn_tokens": "531.01030786518", + "remaining_tokens": "326.98969213482" }, { "address": "0x0bBf7580e036eA5D69ABe679CC90117EeC2e3dc1", @@ -4478,7 +4489,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "86666.297", "total_removed": "0", - "locked_amount": "53304.4390480842904971845", + "locked_amount": "53244.8477243860366565125", "deposits": [ { "amount": "86666.297", @@ -4544,7 +4555,7 @@ "tranche_end": "2023-06-01T00:00:00.000Z", "total_added": "2500", "total_removed": "0", - "locked_amount": "515.03643925518925", + "locked_amount": "511.58901862026875", "deposits": [ { "amount": "2500", @@ -4665,7 +4676,7 @@ "tranche_end": "2023-09-01T00:00:00.000Z", "total_added": "17500", "total_removed": "0", - "locked_amount": "12316.06751962560225", + "locked_amount": "12292.19787892511975", "deposits": [ { "amount": "12500", @@ -4932,7 +4943,7 @@ "tranche_end": "2023-08-01T00:00:00.000Z", "total_added": "37500", "total_removed": "12539.2989369", - "locked_amount": "20406.35071362799125", + "locked_amount": "20354.3537062615125", "deposits": [ { "amount": "7500", @@ -5307,7 +5318,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "53255.8054544746044383625", + "locked_amount": "53196.268500361160975997", "deposits": [ { "amount": "129999.45", @@ -5340,7 +5351,7 @@ "tranche_end": "2024-04-01T00:00:00.000Z", "total_added": "54144.7663", "total_removed": "0", - "locked_amount": "50667.46703183722144592557", + "locked_amount": "50630.33907467871772788387", "deposits": [ { "amount": "54144.7663", @@ -5373,7 +5384,7 @@ "tranche_end": "2023-09-03T00:00:00.000Z", "total_added": "62600", "total_removed": "0", - "locked_amount": "22552.23359969558432", + "locked_amount": "22509.19014459665298", "deposits": [ { "amount": "10000", @@ -5566,7 +5577,7 @@ "tranche_end": "2023-09-17T00:00:00.000Z", "total_added": "5000", "total_removed": "0", - "locked_amount": "1993.0774353120245", + "locked_amount": "1989.6394596651445", "deposits": [ { "amount": "5000", @@ -6107,7 +6118,7 @@ "tranche_end": "2023-05-01T00:00:00.000Z", "total_added": "22500", "total_removed": "7115.9985996", - "locked_amount": "807.34633977900456", + "locked_amount": "776.148135359117085", "deposits": [ { "amount": "7500", @@ -6602,7 +6613,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "928642.9598472029154", - "locked_amount": "204594.1627448135826823752", + "locked_amount": "203260.2774393873085914952", "deposits": [ { "amount": "1852091.69", @@ -40418,7 +40429,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "715655.108029600523393", - "locked_amount": "338891.320746260923506948901", + "locked_amount": "336841.603441358599175335198", "deposits": [ { "amount": "1998.95815", @@ -41811,7 +41822,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15870102.715470999700000001", "total_removed": "860379.54790441442685852", - "locked_amount": "6501374.45010461734405894576483270014193025", + "locked_amount": "6494106.28414586420012170551059615863422546", "deposits": [ { "amount": "16249.93", @@ -48312,7 +48323,7 @@ "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", "total_removed": "5847991.884210280507681376", - "locked_amount": "280582.1543784642464604600874073187", + "locked_amount": "273871.9205317548405917989427032182", "deposits": [ { "amount": "129284.449", @@ -58290,7 +58301,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "43302.7476142891849", - "locked_amount": "53699.266957621714397527714764084", + "locked_amount": "53374.462555677920983980450431244", "deposits": [ { "amount": "3000", From 653fec702537cdaa10820f597c37230a05174d73 Mon Sep 17 00:00:00 2001 From: dexturr Date: Tue, 25 Apr 2023 00:15:25 +0000 Subject: [PATCH 4/9] chore: update tranches Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- apps/static/src/assets/mainnet-tranches.json | 88 +++++++++++++++----- 1 file changed, 65 insertions(+), 23 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 22581d5ad..988ea65b1 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -36,9 +36,9 @@ "tranche_id": 56, "tranche_start": "2023-04-20T00:00:00.000Z", "tranche_end": "2023-05-20T00:00:00.000Z", - "total_added": "15999.125", + "total_added": "17206.625", "total_removed": "0", - "locked_amount": "13462.5600222800922963125", + "locked_amount": "14332.726961853781076625", "deposits": [ { "amount": "188", @@ -50,6 +50,11 @@ "user": "0xAc1c2783d64c29CDB79608f5B66a37Fd1ea35dD6", "tx": "0xc1ede6de1653f205e0a743f609835648a67287a271a994cd141911ce13d5cac7" }, + { + "amount": "1207.5", + "user": "0x1447Efc62d5077d7AbB20492dF831Dd6c9Eb1756", + "tx": "0x9092eaf46d5cdba3b2219aa7187da4e1623004434c33a915956aa45d04d561f2" + }, { "amount": "241.5", "user": "0xBf1AaB792D729fA125e6D7122D4b916a1E1C44B1", @@ -223,6 +228,21 @@ "withdrawn_tokens": "0", "remaining_tokens": "50" }, + { + "address": "0x1447Efc62d5077d7AbB20492dF831Dd6c9Eb1756", + "deposits": [ + { + "amount": "1207.5", + "user": "0x1447Efc62d5077d7AbB20492dF831Dd6c9Eb1756", + "tranche_id": 56, + "tx": "0x9092eaf46d5cdba3b2219aa7187da4e1623004434c33a915956aa45d04d561f2" + } + ], + "withdrawals": [], + "total_tokens": "1207.5", + "withdrawn_tokens": "0", + "remaining_tokens": "1207.5" + }, { "address": "0xBf1AaB792D729fA125e6D7122D4b916a1E1C44B1", "deposits": [ @@ -706,7 +726,7 @@ "tranche_end": "2023-05-06T00:00:00.000Z", "total_added": "8976", "total_removed": "596.64743517951", - "locked_amount": "3364.1092222222217568", + "locked_amount": "3288.0036851851849968", "deposits": [ { "amount": "111", @@ -4489,7 +4509,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "86666.297", "total_removed": "0", - "locked_amount": "53244.8477243860366565125", + "locked_amount": "53184.4511868045737084341", "deposits": [ { "amount": "86666.297", @@ -4555,7 +4575,7 @@ "tranche_end": "2023-06-01T00:00:00.000Z", "total_added": "2500", "total_removed": "0", - "locked_amount": "511.58901862026875", + "locked_amount": "508.095015516890625", "deposits": [ { "amount": "2500", @@ -4676,7 +4696,7 @@ "tranche_end": "2023-09-01T00:00:00.000Z", "total_added": "17500", "total_removed": "0", - "locked_amount": "12292.19787892511975", + "locked_amount": "12268.00570526368775", "deposits": [ { "amount": "12500", @@ -4943,7 +4963,7 @@ "tranche_end": "2023-08-01T00:00:00.000Z", "total_added": "37500", "total_removed": "12539.2989369", - "locked_amount": "20354.3537062615125", + "locked_amount": "20301.65410144260375", "deposits": [ { "amount": "7500", @@ -5318,7 +5338,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "53196.268500361160975997", + "locked_amount": "53135.927067020861973168", "deposits": [ { "amount": "129999.45", @@ -5351,7 +5371,7 @@ "tranche_end": "2024-04-01T00:00:00.000Z", "total_added": "54144.7663", "total_removed": "0", - "locked_amount": "50630.33907467871772788387", + "locked_amount": "50592.70943464585691493517", "deposits": [ { "amount": "54144.7663", @@ -5384,7 +5404,7 @@ "tranche_end": "2023-09-03T00:00:00.000Z", "total_added": "62600", "total_removed": "0", - "locked_amount": "22509.19014459665298", + "locked_amount": "22465.56507483511026", "deposits": [ { "amount": "10000", @@ -5577,7 +5597,7 @@ "tranche_end": "2023-09-17T00:00:00.000Z", "total_added": "5000", "total_removed": "0", - "locked_amount": "1989.6394596651445", + "locked_amount": "1986.1550291730085", "deposits": [ { "amount": "5000", @@ -6118,7 +6138,7 @@ "tranche_end": "2023-05-01T00:00:00.000Z", "total_added": "22500", "total_removed": "7115.9985996", - "locked_amount": "776.148135359117085", + "locked_amount": "744.528372467771475", "deposits": [ { "amount": "7500", @@ -6613,7 +6633,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "928642.9598472029154", - "locked_amount": "203260.2774393873085914952", + "locked_amount": "201908.3683194208905482754", "deposits": [ { "amount": "1852091.69", @@ -40429,7 +40449,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "715655.108029600523393", - "locked_amount": "336841.603441358599175335198", + "locked_amount": "334764.095282018369544299632", "deposits": [ { "amount": "1998.95815", @@ -41822,7 +41842,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15870102.715470999700000001", "total_removed": "860379.54790441442685852", - "locked_amount": "6494106.28414586420012170551059615863422546", + "locked_amount": "6486739.57360161581819864362459329067802106", "deposits": [ { "amount": "16249.93", @@ -48323,7 +48343,7 @@ "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", "total_removed": "5847991.884210280507681376", - "locked_amount": "273871.9205317548405917989427032182", + "locked_amount": "267071.329835462167704525489068856", "deposits": [ { "amount": "129284.449", @@ -56117,7 +56137,7 @@ "tranche_start": "2021-10-05T00:00:00.000Z", "tranche_end": "2023-04-05T00:00:00.000Z", "total_added": "5778205.3912159303", - "total_removed": "3421810.610823310514313769", + "total_removed": "3480709.486904665102263769", "locked_amount": "0", "deposits": [ { @@ -56262,6 +56282,11 @@ } ], "withdrawals": [ + { + "amount": "58898.87608135458795", + "user": "0x83b1a48376E045D26420200345414e6b93066396", + "tx": "0xeb193da202cd833a574a524eff7f1dd13a0ee8669e51a7db36984ef4d6735fd6" + }, { "amount": "219.945520329711288", "user": "0xafa64cCa337eFEE0AD827F6C2684e69275226e90", @@ -57779,6 +57804,12 @@ } ], "withdrawals": [ + { + "amount": "58898.87608135458795", + "user": "0x83b1a48376E045D26420200345414e6b93066396", + "tranche_id": 4, + "tx": "0xeb193da202cd833a574a524eff7f1dd13a0ee8669e51a7db36984ef4d6735fd6" + }, { "amount": "66753.39849271259062", "user": "0x83b1a48376E045D26420200345414e6b93066396", @@ -57847,8 +57878,8 @@ } ], "total_tokens": "1104995.291", - "withdrawn_tokens": "1046096.41491864541205", - "remaining_tokens": "58898.87608135458795" + "withdrawn_tokens": "1104995.291", + "remaining_tokens": "0" }, { "address": "0x5565d64f29Ea17355106DF3bA5903Eb793B3e139", @@ -58300,8 +58331,8 @@ "tranche_start": "2022-06-05T00:00:00.000Z", "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", - "total_removed": "43302.7476142891849", - "locked_amount": "53374.462555677920983980450431244", + "total_removed": "43365.4083448891849", + "locked_amount": "53045.284490585950734758489802132", "deposits": [ { "amount": "3000", @@ -64925,6 +64956,11 @@ "user": "0xb1169C6daAc76bAcaf0D8f87641Fc38fbabe569F", "tx": "0xc182a183d124ab4faa413e71faa8c764fc265b4c568a5025ead367fbb86da331" }, + { + "amount": "62.6607306", + "user": "0x7345AaA0D0e4C4A46d921fA9323973956F2b7392", + "tx": "0xb13444d5ef684a442be6c285a6c38dcbc9959ff2eacc31474531826efe28c20a" + }, { "amount": "168.502276762", "user": "0x38A292CB98Dc602ECAFF94E8E5fADD9800e4bA13", @@ -83475,6 +83511,12 @@ } ], "withdrawals": [ + { + "amount": "62.6607306", + "user": "0x7345AaA0D0e4C4A46d921fA9323973956F2b7392", + "tranche_id": 5, + "tx": "0xb13444d5ef684a442be6c285a6c38dcbc9959ff2eacc31474531826efe28c20a" + }, { "amount": "152.077625568", "user": "0x7345AaA0D0e4C4A46d921fA9323973956F2b7392", @@ -83531,8 +83573,8 @@ } ], "total_tokens": "1200", - "withdrawn_tokens": "1002.094025868", - "remaining_tokens": "197.905974132" + "withdrawn_tokens": "1064.754756468", + "remaining_tokens": "135.245243532" }, { "address": "0x47181cf36aDFb0b5dB7EfDB123f403D890607841", From b9869da4926de5271231764766082799dd82dd93 Mon Sep 17 00:00:00 2001 From: dexturr Date: Tue, 25 Apr 2023 06:07:52 +0000 Subject: [PATCH 5/9] chore: update tranches Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- apps/static/src/assets/mainnet-tranches.json | 55 ++++++++++++-------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/apps/static/src/assets/mainnet-tranches.json b/apps/static/src/assets/mainnet-tranches.json index 988ea65b1..ba0ec3bd4 100644 --- a/apps/static/src/assets/mainnet-tranches.json +++ b/apps/static/src/assets/mainnet-tranches.json @@ -37,8 +37,8 @@ "tranche_start": "2023-04-20T00:00:00.000Z", "tranche_end": "2023-05-20T00:00:00.000Z", "total_added": "17206.625", - "total_removed": "0", - "locked_amount": "14332.726961853781076625", + "total_removed": "202.093666077975", + "locked_amount": "14192.3522349054765257", "deposits": [ { "amount": "188", @@ -196,7 +196,13 @@ "tx": "0x679fcc1c3a29bdc259b6a4c044579a89c5357f42ed1963221669ebf43cc545b0" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "202.093666077975", + "user": "0x1447Efc62d5077d7AbB20492dF831Dd6c9Eb1756", + "tx": "0x300c18b4220d3bc357f054792cb65f05d4005912bf8e5d9580b5b830cc3c0845" + } + ], "users": [ { "address": "0x90Cf7B9958C3BbBCddAb52Ecc408535D4f3C4241", @@ -238,10 +244,17 @@ "tx": "0x9092eaf46d5cdba3b2219aa7187da4e1623004434c33a915956aa45d04d561f2" } ], - "withdrawals": [], + "withdrawals": [ + { + "amount": "202.093666077975", + "user": "0x1447Efc62d5077d7AbB20492dF831Dd6c9Eb1756", + "tranche_id": 56, + "tx": "0x300c18b4220d3bc357f054792cb65f05d4005912bf8e5d9580b5b830cc3c0845" + } + ], "total_tokens": "1207.5", - "withdrawn_tokens": "0", - "remaining_tokens": "1207.5" + "withdrawn_tokens": "202.093666077975", + "remaining_tokens": "1005.406333922025" }, { "address": "0xBf1AaB792D729fA125e6D7122D4b916a1E1C44B1", @@ -726,7 +739,7 @@ "tranche_end": "2023-05-06T00:00:00.000Z", "total_added": "8976", "total_removed": "596.64743517951", - "locked_amount": "3288.0036851851849968", + "locked_amount": "3214.7758703703708912", "deposits": [ { "amount": "111", @@ -4509,7 +4522,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "86666.297", "total_removed": "0", - "locked_amount": "53184.4511868045737084341", + "locked_amount": "53126.3383787007632981199", "deposits": [ { "amount": "86666.297", @@ -4575,7 +4588,7 @@ "tranche_end": "2023-06-01T00:00:00.000Z", "total_added": "2500", "total_removed": "0", - "locked_amount": "508.095015516890625", + "locked_amount": "504.733128561253575", "deposits": [ { "amount": "2500", @@ -4696,7 +4709,7 @@ "tranche_end": "2023-09-01T00:00:00.000Z", "total_added": "17500", "total_removed": "0", - "locked_amount": "12268.00570526368775", + "locked_amount": "12244.72829232085475", "deposits": [ { "amount": "12500", @@ -4963,7 +4976,7 @@ "tranche_end": "2023-08-01T00:00:00.000Z", "total_added": "37500", "total_removed": "12539.2989369", - "locked_amount": "20301.65410144260375", + "locked_amount": "20250.94718769183375", "deposits": [ { "amount": "7500", @@ -5338,7 +5351,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "129999.45", "total_removed": "0", - "locked_amount": "53135.927067020861973168", + "locked_amount": "53077.8672795424049222625", "deposits": [ { "amount": "129999.45", @@ -5371,7 +5384,7 @@ "tranche_end": "2024-04-01T00:00:00.000Z", "total_added": "54144.7663", "total_removed": "0", - "locked_amount": "50592.70943464585691493517", + "locked_amount": "50556.50265628052469670738", "deposits": [ { "amount": "54144.7663", @@ -5404,7 +5417,7 @@ "tranche_end": "2023-09-03T00:00:00.000Z", "total_added": "62600", "total_removed": "0", - "locked_amount": "22465.56507483511026", + "locked_amount": "22423.58956747843764", "deposits": [ { "amount": "10000", @@ -5597,7 +5610,7 @@ "tranche_end": "2023-09-17T00:00:00.000Z", "total_added": "5000", "total_removed": "0", - "locked_amount": "1986.1550291730085", + "locked_amount": "1982.802352866565", "deposits": [ { "amount": "5000", @@ -6138,7 +6151,7 @@ "tranche_end": "2023-05-01T00:00:00.000Z", "total_added": "22500", "total_removed": "7115.9985996", - "locked_amount": "744.528372467771475", + "locked_amount": "714.104224217310375", "deposits": [ { "amount": "7500", @@ -6633,7 +6646,7 @@ "tranche_end": "2023-06-02T00:00:00.000Z", "total_added": "1939928.38", "total_removed": "928642.9598472029154", - "locked_amount": "201908.3683194208905482754", + "locked_amount": "200607.5779362562454442532", "deposits": [ { "amount": "1852091.69", @@ -40449,7 +40462,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "3732368.4671", "total_removed": "715655.108029600523393", - "locked_amount": "334764.095282018369544299632", + "locked_amount": "332765.327876919897996287797", "deposits": [ { "amount": "1998.95815", @@ -41842,7 +41855,7 @@ "tranche_end": "2023-12-05T00:00:00.000Z", "total_added": "15870102.715470999700000001", "total_removed": "860379.54790441442685852", - "locked_amount": "6486739.57360161581819864362459329067802106", + "locked_amount": "6479652.07271627106022165330027333915923225", "deposits": [ { "amount": "16249.93", @@ -48343,7 +48356,7 @@ "tranche_end": "2023-05-05T00:00:00.000Z", "total_added": "14597706.0446472999", "total_removed": "5847991.884210280507681376", - "locked_amount": "267071.329835462167704525489068856", + "locked_amount": "260528.1942722316783230342092766613", "deposits": [ { "amount": "129284.449", @@ -58332,7 +58345,7 @@ "tranche_end": "2023-06-05T00:00:00.000Z", "total_added": "472355.6199999996", "total_removed": "43365.4083448891849", - "locked_amount": "53045.284490585950734758489802132", + "locked_amount": "52728.553391508069839034794317608", "deposits": [ { "amount": "3000", From f589f4a9fab822b768a774c43594738d6f7d1335 Mon Sep 17 00:00:00 2001 From: daro-maj <119658839+daro-maj@users.noreply.github.com> Date: Tue, 25 Apr 2023 10:19:37 +0200 Subject: [PATCH 6/9] test(trading): tests for ac - 7005-FILL-fills (#3529) --- .../src/integration/trading-fills.cy.ts | 35 ++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/apps/trading-e2e/src/integration/trading-fills.cy.ts b/apps/trading-e2e/src/integration/trading-fills.cy.ts index ccf3d2d6d..b05aa09e7 100644 --- a/apps/trading-e2e/src/integration/trading-fills.cy.ts +++ b/apps/trading-e2e/src/integration/trading-fills.cy.ts @@ -1,7 +1,18 @@ import { aliasGQLQuery } from '@vegaprotocol/cypress'; import { fillsQuery } from '@vegaprotocol/mock'; +const tabFills = 'tab-fills'; + describe('fills', { tags: '@regression' }, () => { + // 7005-FILL-001 + // 7005-FILL-002 + // 7005-FILL-003 + // 7005-FILL-004 + // 7005-FILL-005 + // 7005-FILL-006 + // 7005-FILL-007 + // 7005-FILL-008 + beforeEach(() => { // Ensure page loads with correct key cy.window().then((window) => { @@ -38,31 +49,37 @@ describe('fills', { tags: '@regression' }, () => { }); function validateFillsDisplayed() { - cy.getByTestId('tab-fills').should('be.visible'); - - cy.getByTestId('tab-fills') + cy.getByTestId(tabFills).should('be.visible'); + cy.getByTestId(tabFills).contains('Market'); + cy.getByTestId(tabFills) .get( '[role="gridcell"][col-id="market.tradableInstrument.instrument.name"]' ) .each(($marketSymbol) => { cy.wrap($marketSymbol).invoke('text').should('not.be.empty'); }); - cy.getByTestId('tab-fills') + cy.getByTestId(tabFills).contains('Size'); + cy.get(`[col-id='size']`).eq(1).should('contain.text', '+'); + cy.get(`[col-id='size']`).eq(2).should('contain.text', '-'); + cy.getByTestId(tabFills) .get('[role="gridcell"][col-id="size"]') .each(($amount) => { cy.wrap($amount).invoke('text').should('not.be.empty'); }); - cy.getByTestId('tab-fills') + cy.getByTestId(tabFills).contains('Price'); + cy.getByTestId(tabFills) .get('[role="gridcell"][col-id="price"]') .each(($prices) => { cy.wrap($prices).invoke('text').should('not.be.empty'); }); - cy.getByTestId('tab-fills') + cy.getByTestId(tabFills).contains('Notional'); + cy.getByTestId(tabFills) .get('[role="gridcell"][col-id="price_1"]') .each(($total) => { cy.wrap($total).invoke('text').should('not.be.empty'); }); - cy.getByTestId('tab-fills') + cy.getByTestId(tabFills).contains('Role'); + cy.getByTestId(tabFills) .get('[role="gridcell"][col-id="aggressor"]') .each(($role) => { cy.wrap($role) @@ -72,13 +89,15 @@ describe('fills', { tags: '@regression' }, () => { expect(roles.indexOf(text.trim())).to.be.greaterThan(-1); }); }); - cy.getByTestId('tab-fills') + cy.getByTestId(tabFills).contains('Fee'); + cy.getByTestId(tabFills) .get( '[role="gridcell"][col-id="market.tradableInstrument.instrument.product"]' ) .each(($fees) => { cy.wrap($fees).invoke('text').should('not.be.empty'); }); + cy.getByTestId(tabFills).contains('Date'); const dateTimeRegex = /(\d{1,2})\/(\d{1,2})\/(\d{4}), (\d{1,2}):(\d{1,2}):(\d{1,2})/gm; cy.get('[col-id="createdAt"]').each(($tradeDateTime, index) => { From 0a92f62a66899ea022c35c0e9fb632e66a20817d Mon Sep 17 00:00:00 2001 From: Dexter Date: Tue, 25 Apr 2023 10:11:55 +0100 Subject: [PATCH 7/9] ci: publish esm and cjs --- libs/i18n/package.json | 2 +- libs/i18n/project.json | 1 + libs/react-helpers/package.json | 2 +- libs/types/package.json | 2 +- libs/types/project.json | 1 + libs/ui-toolkit/package.json | 2 +- 6 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/i18n/package.json b/libs/i18n/package.json index 09cfaad85..8631ff206 100644 --- a/libs/i18n/package.json +++ b/libs/i18n/package.json @@ -1,5 +1,5 @@ { "name": "@vegaprotocol/i18n", - "version": "0.0.1", + "version": "0.0.2", "type": "commonjs" } diff --git a/libs/i18n/project.json b/libs/i18n/project.json index 073eb1ee5..cb6c4b634 100644 --- a/libs/i18n/project.json +++ b/libs/i18n/project.json @@ -6,6 +6,7 @@ "build": { "executor": "@nrwl/js:tsc", "outputs": ["{options.outputPath}"], + "format": ["esm", "cjs"], "options": { "outputPath": "dist/libs/i18n", "main": "libs/i18n/src/index.ts", diff --git a/libs/react-helpers/package.json b/libs/react-helpers/package.json index ba55b19ff..9bc9f65b2 100644 --- a/libs/react-helpers/package.json +++ b/libs/react-helpers/package.json @@ -1,4 +1,4 @@ { "name": "@vegaprotocol/react-helpers", - "version": "0.2.1" + "version": "0.2.2" } diff --git a/libs/types/package.json b/libs/types/package.json index c42b23b71..11dcfa3c9 100644 --- a/libs/types/package.json +++ b/libs/types/package.json @@ -1,4 +1,4 @@ { "name": "@vegaprotocol/types", - "version": "0.0.1" + "version": "0.0.2" } diff --git a/libs/types/project.json b/libs/types/project.json index 53b68c33c..c212c0458 100644 --- a/libs/types/project.json +++ b/libs/types/project.json @@ -15,6 +15,7 @@ "external": ["react/jsx-runtime"], "rollupConfig": "@nrwl/react/plugins/bundle-rollup", "compiler": "babel", + "format": ["esm", "cjs"], "assets": [ { "glob": "libs/types/README.md", diff --git a/libs/ui-toolkit/package.json b/libs/ui-toolkit/package.json index 2f73a4310..398d494a1 100644 --- a/libs/ui-toolkit/package.json +++ b/libs/ui-toolkit/package.json @@ -1,4 +1,4 @@ { "name": "@vegaprotocol/ui-toolkit", - "version": "0.12.0" + "version": "0.12.1" } From 384c96376af9ac938ad67829aaaa9bc38f7c3808 Mon Sep 17 00:00:00 2001 From: Sam Keen Date: Tue, 25 Apr 2023 12:31:34 +0100 Subject: [PATCH 8/9] fix(governance): scroll to top on route change (#3481) Co-authored-by: Joe --- .../src/support/staking.functions.ts | 1 + apps/governance/src/app.tsx | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/apps/governance-e2e/src/support/staking.functions.ts b/apps/governance-e2e/src/support/staking.functions.ts index b34ed6ef5..bb85b57b4 100644 --- a/apps/governance-e2e/src/support/staking.functions.ts +++ b/apps/governance-e2e/src/support/staking.functions.ts @@ -54,6 +54,7 @@ export function stakingValidatorPageRemoveStake(stake: string) { .and('contain', `Remove ${stake} $VEGA tokens at the end of epoch`) .and('be.visible') .click(); + cy.contains('been removed from validator').should('be.visible'); closeDialog(); } diff --git a/apps/governance/src/app.tsx b/apps/governance/src/app.tsx index f8d3d9cb7..7becca47a 100644 --- a/apps/governance/src/app.tsx +++ b/apps/governance/src/app.tsx @@ -3,7 +3,7 @@ import './i18n'; import React, { useEffect } from 'react'; import * as Sentry from '@sentry/react'; import { Integrations } from '@sentry/tracing'; -import { BrowserRouter as Router } from 'react-router-dom'; +import { BrowserRouter as Router, useLocation } from 'react-router-dom'; import { AppLoader } from './app-loader'; import { NetworkInfo } from '@vegaprotocol/network-info'; import { BalanceManager } from './components/balance-manager'; @@ -149,6 +149,20 @@ const Web3Container = ({ ); }; +const ScrollToTop = () => { + const { pathname } = useLocation(); + + useEffect(() => { + // "document.documentElement.scrollTo" is the magic for React Router Dom v6 + document.documentElement.scrollTo({ + top: 0, + left: 0, + }); + }, [pathname]); + + return null; +}; + const AppContainer = () => { const { config, loading, error } = useEthereumConfig(); const { VEGA_ENV, GIT_COMMIT_HASH, GIT_BRANCH, ETHEREUM_PROVIDER_URL } = @@ -183,6 +197,7 @@ const AppContainer = () => { return ( +
From 2b9bfd770724387ee9092d1848b8569bd4e88e89 Mon Sep 17 00:00:00 2001 From: Madalina Raicu Date: Tue, 25 Apr 2023 15:02:06 +0300 Subject: [PATCH 9/9] fix: network switcher text color --- .../src/components/network-switcher/network-switcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/environment/src/components/network-switcher/network-switcher.tsx b/libs/environment/src/components/network-switcher/network-switcher.tsx index 222cdef2f..4f7392342 100644 --- a/libs/environment/src/components/network-switcher/network-switcher.tsx +++ b/libs/environment/src/components/network-switcher/network-switcher.tsx @@ -112,7 +112,7 @@ export const NetworkSwitcher = ({