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

Astar stg #1

Merged
merged 158 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
0b41172
Tests: fix failing tests (#3704)
mike10ca May 14, 2024
1dae492
refactor: Remove safe token paused logic (#3703)
usame-algan May 14, 2024
be9294b
Chore: Slim Down Docker Image (#3707)
nlordell May 14, 2024
d4b77b4
Tests: update message tests (#3715)
mike10ca May 15, 2024
b6f7ac2
Revert Slim Down Docker Image (#3707) (#3709)
nlordell May 15, 2024
830cd7a
chore: upgrade-safe-deployments (#3719)
hapetherw May 16, 2024
ecde7fd
fix: always fetch message info when signing (#3724)
schmanu May 16, 2024
33aad08
Fix: make custom Safe Apps' id an int (#3722)
katspaugh May 16, 2024
5da3a1d
Merge branch 'main' of github.com:safe-global/safe-wallet-web into dev
katspaugh May 16, 2024
657c070
Tests: fix open safe app test (#3730)
mike10ca May 17, 2024
1f2fd0d
feat: activate points step (#3735)
schmanu May 22, 2024
ef107fc
chore: bump package version (#3736)
schmanu May 22, 2024
c60895f
fix: Hide signed transaction from untrusted pending queue (#3710)
usame-algan May 24, 2024
4f34136
Fix: Show loading state in WC input between pairing and receiving pro…
jmealy May 24, 2024
1733f18
Fix: move rhino.fi to warned bridges (#3740)
katspaugh May 24, 2024
72a2018
Chore: update release action (#3739)
katspaugh May 24, 2024
98e879a
Fix: update social login disclaimer (#3741)
katspaugh May 24, 2024
433bb16
fix: (WC) do not return Safe as available on all optional Namespaces …
schmanu May 24, 2024
548bf6a
Fix: memoize Safe List data (#3729)
katspaugh May 25, 2024
ae506ee
fix: Safe stats tracking for owned Safes (#3708)
schmanu May 28, 2024
6e794e4
Chore: remove batch reordering (#3754)
katspaugh May 28, 2024
53162c6
Tests: add component tests for tx history filter (#3758)
mike10ca May 28, 2024
e1156b6
Fix: rearrange Settings tabs (#3751)
katspaugh May 28, 2024
f1bad1f
fix: do not show nonce conflict warning for batch transactions. (#3608)
jmealy May 29, 2024
01878b5
Chore: remove social login (#3753)
katspaugh May 29, 2024
1822efd
Fix: missing feature toggles (#3748)
katspaugh May 29, 2024
5fe39f1
Fix: back button style (#3742)
katspaugh May 29, 2024
1e781a9
chore(deps): bump next from 14.1.0 to 14.1.1 (#3681)
dependabot[bot] May 29, 2024
050e58b
1.37.0
katspaugh May 29, 2024
3da9a4e
feat: add new label to swaps button [SWAP-86] (#3763)
compojoom May 29, 2024
4f57526
fix: Add network to Rabby if unknown (#3776)
usame-algan May 30, 2024
b452828
Chore: use separate Infura tokens for dev (#3773)
katspaugh May 30, 2024
146b394
Tests: add tx filter tests (#3781)
mike10ca May 30, 2024
a7b60f4
Analytics: differentiate bulk executions from batches (#3779)
katspaugh May 30, 2024
d5f5adb
Chore: fix branch conditionals (#3782)
katspaugh May 30, 2024
7537a62
fix: counterfactual safe tracking (#3783)
schmanu May 31, 2024
1f6e2b6
Fix: remove the New chip from Recovery settings (#3785)
katspaugh May 31, 2024
be5d931
1.37.1
katspaugh Jun 3, 2024
f0ecdd8
Chore: prod build on staging (main) (#3787)
katspaugh Jun 3, 2024
f4d5157
Chore: change release trigger
katspaugh Jun 3, 2024
0d3c33b
Chore: temporarily remove checksum uploading
katspaugh Jun 3, 2024
e9ed505
1.37.2
katspaugh Jun 3, 2024
f20bcb5
Fix: Error initializing the Safe Core SDK -> Error connecting to the …
katspaugh Jun 3, 2024
0e20e87
Refactor: Replace onboard with Eip1193Provider in dispatch calls (#3745)
usame-algan Jun 3, 2024
e787a81
feat: slight UI improvements to the new tx flow (#3767)
compojoom Jun 4, 2024
ac90a1f
fix: use zero swap amount from assets table (#3761)
schmanu Jun 4, 2024
f3843eb
fix: switch between swap & limit loses token (#3791)
compojoom Jun 4, 2024
59b891d
Fix: same addresses showing same balance (#3795)
katspaugh Jun 4, 2024
37ea273
Feat: address book indicator (#3790)
katspaugh Jun 4, 2024
c8f78c1
Fix: improve chain switch redirect (#3769)
katspaugh Jun 4, 2024
4b83813
Add regression cf tests (#3797)
mike10ca Jun 4, 2024
c1f4064
Feat: display contract names for WalletConnect txs (#3760)
katspaugh Jun 5, 2024
d965ee8
fix: typo in feeTooltipMarkdown (#3799)
compojoom Jun 5, 2024
2ecdfef
feat: Execute transaction through role (#3768)
jfschwarz Jun 5, 2024
3892de7
Fix: filter out undefined address in useSafeOverviews (#3801)
katspaugh Jun 5, 2024
61c8b85
Tests: Update cypress headers (#3800)
mike10ca Jun 5, 2024
3a93685
Feat: top 5 assets on the dashboard (#3796)
katspaugh Jun 5, 2024
db9e381
Analytics: remove 0x from signer address (#3802)
katspaugh Jun 7, 2024
22a6210
feat: relaying for native swaps only (#3809)
schmanu Jun 7, 2024
d254717
feature: add env
DenSmolonski Jun 7, 2024
795c76d
Feat: calculate surplus for partially filled orders (#3804)
jmealy Jun 10, 2024
9ad7349
feat: add promo widget for swaps [SWAP-87] (#3771)
compojoom Jun 10, 2024
ff33839
Fix: move the execute button on recovery transactions to the correct …
jmealy Jun 10, 2024
437d07a
feat: add link to tx for order notifications [SWAP-61] (#3803)
compojoom Jun 10, 2024
71a8bda
Fix: restore lowercase "native transfer" (#3814)
katspaugh Jun 10, 2024
f5c3df4
feat: decode txs in swap modal [SWAP-81] (#3764)
schmanu Jun 10, 2024
6bce0ac
fix: Optimize RPC requests when predicting safe address (#3780)
usame-algan Jun 10, 2024
cca4801
Feat: better fiat and token amount formatting (#3807)
katspaugh Jun 10, 2024
224d913
feat: update EIP 5792 implementation to match updated standard (#3656)
schmanu Jun 10, 2024
e99b8ec
Feat: allow custom recovery delay (#3728)
jmealy Jun 11, 2024
2d7b400
chore(deps): bump @grpc/grpc-js from 1.9.5 to 1.9.15 (#3822)
dependabot[bot] Jun 11, 2024
9720343
Feat: add swaps card to safe apps list (#3786)
jmealy Jun 11, 2024
544d007
Refactor: Consistently use latest MultiSendCallOnly address (#3811)
jfschwarz Jun 11, 2024
cdf45b6
Fix: explicitely pass a locale to NumberFormat (#3828)
katspaugh Jun 11, 2024
8d40446
Tests: Fix-refactor tests (#3829)
mike10ca Jun 11, 2024
64e6e48
fix: always show tx value (#3793)
schmanu Jun 11, 2024
02c99b6
feat: add feature toggle for zodiac roles integration (#3830)
schmanu Jun 12, 2024
35a2224
Fix: add loading skeletons in the Account List (#3831)
katspaugh Jun 12, 2024
5a9ab12
Fix: text overflow for Safe names (#3833)
katspaugh Jun 12, 2024
e92c01d
Fix regression tests (#3835)
mike10ca Jun 12, 2024
3c432bb
Revert "Refactor: Consistently use latest MultiSendCallOnly address …
katspaugh Jun 12, 2024
081587f
fix: do not pass negative app id (#3836)
schmanu Jun 12, 2024
d826efa
1.38.0
katspaugh Jun 12, 2024
067d738
Fix: Chip warnings about nested tags (#3840)
katspaugh Jun 13, 2024
6d2f6be
feat: return more info in appCommunicator getInfo (#3839)
compojoom Jun 13, 2024
010d629
Feat: private key signer (#3784)
katspaugh Jun 14, 2024
ed75771
Tests: add testid for pk input
katspaugh Jun 14, 2024
d94b068
fix: Close transaction modals as soon as the transaction is submitted…
usame-algan Jun 17, 2024
29d3570
Tests: Add swap tests (#3845)
mike10ca Jun 18, 2024
c69b303
Fix: signTypedData for the test wallet (#3850)
katspaugh Jun 19, 2024
62db3d8
Tests: Fix happy path tests (#3849)
mike10ca Jun 20, 2024
cd1b305
Fix: remove mobile signer promo (#3852)
katspaugh Jun 20, 2024
2ecbdb8
Feat: visually group transactions executed in bulk in the transaction…
jmealy Jun 20, 2024
edda914
Fix: ignore nonce for risk scanning requests (#3854)
katspaugh Jun 21, 2024
f7134ca
1.38.1
katspaugh Jun 21, 2024
f4ace73
Merge branch 'main' of github.com:safe-global/safe-wallet-web into dev
katspaugh Jun 21, 2024
e47d108
Fix: delay chainChanged event in test wallet (#3859)
katspaugh Jun 21, 2024
7da267f
Fix: add loading indicator for safe list (#3860)
katspaugh Jun 21, 2024
2fd1a6f
Chore: update privacy policy (#3857)
katspaugh Jun 21, 2024
d37d92b
Fix: redirect routes w/o ?safe (#3846)
katspaugh Jun 24, 2024
c08e17d
Fix: full token amount in tx details (#3848)
katspaugh Jun 24, 2024
046684f
Tests: Fix regression tests (#3862)
mike10ca Jun 24, 2024
b517293
Fix: adjust approval editor with swaps (#3855)
katspaugh Jun 24, 2024
f1bd9a2
Refactor: lazy-load governance widget (#3864)
katspaugh Jun 25, 2024
a39c4e2
Fix: update meta description (#3866)
katspaugh Jun 25, 2024
93bb38f
feat: Improve safe creation status screen (#3778)
usame-algan Jun 25, 2024
866da04
Feat: TWAP order decoding in tx history/queue [SW-1] (#3861)
compojoom Jun 26, 2024
34da84f
Feat: Show warning for address poisoning transactions (#3851)
jmealy Jun 26, 2024
a49eee3
fix: update recommendedNonce when history tag changes (#3872)
schmanu Jun 26, 2024
bc82d70
Fix: removed border from messages txs (#3874)
MHarisAshfaq Jun 26, 2024
6beff83
Fix: wrong number formatting in SingleTxDecoded (#3868)
katspaugh Jun 27, 2024
dcfef22
Tests: E2e wallet (#3878)
mike10ca Jun 28, 2024
ec7a1e1
Feat: TWAP decoding on confirmation screen [SW-2] (#3865)
compojoom Jun 28, 2024
61047eb
feat: Add method to Sign in with Ethereum [SW-28] (#3853)
usame-algan Jun 28, 2024
c5e04e2
Display swap info on sent/receive events [SW-3] (#3877)
compojoom Jul 1, 2024
c319066
Tests: Add swap tests (#3884)
mike10ca Jul 1, 2024
80029b6
Tests: Increase waiters in swap tests (#3886)
mike10ca Jul 1, 2024
15be4c9
fix: Display cow fallback handler message [SW-33] (#3882)
usame-algan Jul 2, 2024
b69aac7
fix: Remove console-log (#3888)
usame-algan Jul 2, 2024
7a7c500
Feat: create deep link page for messages (#3863)
jmealy Jul 3, 2024
26a99fb
Feat swaps fees [SW-34] (#3880)
compojoom Jul 3, 2024
397c268
fix: swapTxInfo for buy orders shows wrong value (#3895)
compojoom Jul 3, 2024
11634a7
fix: Hide native swaps card from custom apps list (#3896)
usame-algan Jul 3, 2024
054e169
feat: add a warning if changing the fallback handler (#3889)
compojoom Jul 3, 2024
3ba8dac
Feat: Do not show swaps feature to users from blocked counties [SW-48…
jmealy Jul 3, 2024
a71d605
1.39.0
compojoom Jul 3, 2024
831e68a
Tests: Add sidebar tests (#3898)
mike10ca Jul 3, 2024
7a1018a
chore: update terms and conditions (#3902)
jmealy Jul 3, 2024
7a3714b
chore: update terms and conditions request [SW-57] (#3906)
compojoom Jul 4, 2024
f920e90
feat: add feature flag for swap fees (#3905)
compojoom Jul 4, 2024
f3de1c8
chore: update ofac list addresses (#3903)
compojoom Jul 4, 2024
7e10cbc
fix: address poison copy confirmation modal (#3891)
schmanu Jul 4, 2024
88eb33f
fix: address poison copy confirmation modal (#3891)
schmanu Jul 4, 2024
90b0a6d
fix: add transparent bg for logo on home
DenSmolonski Jul 4, 2024
0b85254
Tests: Add relay check (#3909)
mike10ca Jul 5, 2024
c5d65fd
fix: don’t display widget fee, if it is not on (#3910)
compojoom Jul 5, 2024
17e0547
Fix: Add title for limit order cancellations [SW-68] (#3911)
jmealy Jul 5, 2024
3a28a1f
fix: mark imitation txs opaque (#3908)
schmanu Jul 5, 2024
7de64fa
fix: mark imitation txs opaque (#3908)
schmanu Jul 5, 2024
2e4acea
chore: update cowprotocol/widget-react (#3914)
compojoom Jul 5, 2024
08973ef
Fix: display swap fees using the correct token [SW-67] (#3913)
jmealy Jul 5, 2024
4c90f76
fix: terms was not a link (#3915)
compojoom Jul 5, 2024
fb9d9db
Tests: Add sidebar (pending tx) tests (#3912)
mike10ca Jul 5, 2024
fb5ab2b
feat: add a remote config for cow server (#3917)
compojoom Jul 5, 2024
3e5257f
fix: sell token symbol was not being shown (#3920)
compojoom Jul 8, 2024
ab14e14
Update hp tests (#3919)
mike10ca Jul 8, 2024
66130ce
fix: re-enable swaps for counterfactual safes [SW-23] (#3757)
compojoom Jul 8, 2024
84050cc
Order details tests (#3922)
mike10ca Jul 9, 2024
b7d8120
chore: update terms page with corrections (#3916)
jmealy Jul 9, 2024
eb7b007
Fix: wording changes (#3921)
schmanu Jul 10, 2024
51c068e
fix: tooltip in swap order view (#3923)
schmanu Jul 10, 2024
2c35895
Merge branch 'main' into main-dev-conflicts-1
compojoom Jul 10, 2024
0cd1d89
fix: usdt missing from stablecoins array on arbitrum (#3927)
compojoom Jul 10, 2024
e2e13ff
chore: bump package.json (#3930)
schmanu Jul 10, 2024
480b9af
Fix: valueDecoded must be an array (#3940)
katspaugh Jul 12, 2024
283ec49
Fix: prompt -> confirm (#3939)
katspaugh Jul 12, 2024
ccdcfb2
1.39.2
katspaugh Jul 12, 2024
44ea803
Merge tag 'v1.39.2' into astar-stg
DenSmolonski Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .env.custom
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPLICATION_VERSION=1.36.4
14 changes: 12 additions & 2 deletions .github/workflows/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@ inputs:

runs:
using: 'composite'

steps:
- name: Set environment variables
shell: bash
run: |
if [ "${{ inputs.prod }}" = "true" ]; then
echo "NEXT_PUBLIC_INFURA_TOKEN=${{ fromJSON(inputs.secrets).NEXT_PUBLIC_INFURA_TOKEN }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_SAFE_APPS_INFURA_TOKEN=${{ fromJSON(inputs.secrets).NEXT_PUBLIC_SAFE_APPS_INFURA_TOKEN }}" >> $GITHUB_ENV
else
echo "NEXT_PUBLIC_INFURA_TOKEN=${{ fromJSON(inputs.secrets).NEXT_PUBLIC_INFURA_TOKEN_DEVSTAGING }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_SAFE_APPS_INFURA_TOKEN=${{ fromJSON(inputs.secrets).NEXT_PUBLIC_SAFE_APPS_INFURA_TOKEN_DEVSTAGING }}" >> $GITHUB_ENV
fi

- name: Build
shell: bash
run: yarn build
Expand All @@ -31,8 +43,6 @@ runs:
NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID }}
NEXT_PUBLIC_GOOGLE_TAG_MANAGER_LATEST_AUTH: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_GOOGLE_TAG_MANAGER_LATEST_AUTH }}
NEXT_PUBLIC_GOOGLE_TAG_MANAGER_LIVE_AUTH: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_GOOGLE_TAG_MANAGER_LIVE_AUTH }}
NEXT_PUBLIC_INFURA_TOKEN: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_INFURA_TOKEN }}
NEXT_PUBLIC_SAFE_APPS_INFURA_TOKEN: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_SAFE_APPS_INFURA_TOKEN }}
NEXT_PUBLIC_SENTRY_DSN: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_SENTRY_DSN }}
NEXT_PUBLIC_TENDERLY_ORG_NAME: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_TENDERLY_ORG_NAME }}
NEXT_PUBLIC_TENDERLY_PROJECT_NAME: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_TENDERLY_PROJECT_NAME }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- uses: ./.github/workflows/build
with:
secrets: ${{ toJSON(secrets) }}
prod: ${{ github.ref == 'refs/heads/main' }}
if: startsWith(github.ref, 'refs/heads/main')

- uses: ./.github/workflows/build-storybook

Expand All @@ -53,14 +53,14 @@ jobs:

# Staging
- name: Deploy to the staging S3
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/heads/main')
env:
BUCKET: s3://${{ secrets.AWS_STAGING_BUCKET_NAME }}/current
run: bash ./scripts/github/s3_upload.sh

# Dev
- name: Deploy to the dev S3
if: github.ref == 'refs/heads/dev'
if: startsWith(github.ref, 'refs/heads/dev')
env:
BUCKET: s3://${{ secrets.AWS_DEVELOPMENT_BUCKET_NAME }}
run: bash ./scripts/github/s3_upload.sh
Expand Down
29 changes: 6 additions & 23 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ jobs:
id-token: write

runs-on: ubuntu-latest

name: Deploy release

env:
ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}

steps:
- uses: actions/checkout@v4

Expand All @@ -36,36 +39,16 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}

# Script to upload release files
- name: 'Upload release build files for production'
- name: Upload release build files for production
env:
BUCKET: s3://${{ secrets.AWS_STAGING_BUCKET_NAME }}/releases/${{ github.event.release.tag_name }}
CHECKSUM_FILE: ${{ env.ARCHIVE_NAME }}-sha256-checksum.txt
run: bash ./scripts/github/s3_upload.sh

# Script to prepare production deployments
- run: bash ./scripts/github/prepare_production_deployment.sh
- name: Prepare deployment
run: bash ./scripts/github/prepare_production_deployment.sh
env:
PROD_DEPLOYMENT_HOOK_TOKEN: ${{ secrets.PROD_DEPLOYMENT_HOOK_TOKEN }}
PROD_DEPLOYMENT_HOOK_URL: ${{ secrets.PROD_DEPLOYMENT_HOOK_URL }}
VERSION_TAG: ${{ github.event.release.tag_name }}

# Update the GitHub release with a checksummed archive
- name: Upload archive
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.ARCHIVE_NAME }}.tar.gz
asset_name: ${{ env.ARCHIVE_NAME }}.tar.gz
asset_content_type: application/gzip
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload checksum
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.ARCHIVE_NAME }}-sha256-checksum.txt
asset_name: ${{ env.ARCHIVE_NAME }}-sha256-checksum.txt
asset_content_type: text/plain
env:
GITHUB_TOKEN: ${{ github.token }}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ Here's the list of all the environment variables:
| `NEXT_PUBLIC_FIREBASE_VAPID_KEY_PRODUCTION` | FCM vapid key on production
| `NEXT_PUBLIC_FIREBASE_OPTIONS_STAGING` | FCM `initializeApp` options on staging
| `NEXT_PUBLIC_FIREBASE_VAPID_KEY_STAGING` | FCM vapid key on staging
| `NEXT_PUBLIC_SOCIAL_WALLET_OPTIONS_PRODUCTION` | Web3Auth and Google credentials (production)
| `NEXT_PUBLIC_SOCIAL_WALLET_OPTIONS_STAGING` | Web3Auth and Google credentials (staging)
| `NEXT_PUBLIC_SPINDL_SDK_KEY` | [Spindl](http://spindl.xyz) SDK key

If you don't provide some of the variables, the corresponding features will be disabled in the UI.
Expand Down
2 changes: 1 addition & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
mochaFile: 'reports/junit-[hash].xml',
},
retries: {
runMode: 2,
runMode: 3,
openMode: 0,
},
e2e: {
Expand Down
7 changes: 5 additions & 2 deletions cypress/e2e/happypath/recovery_hp_1.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import * as owner from '../pages/owners.pages'
import * as recovery from '../pages/recovery.pages'
import * as tx from '../pages/transactions.page'
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
import * as wallet from '../../support/utils/wallet.js'

let recoverySafes = []
//
const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS'))
const signer = walletCredentials.OWNER_4_PRIVATE_KEY

describe('Recovery happy path tests 1', () => {
before(async () => {
recoverySafes = await getSafes(CATEGORIES.recovery)
Expand All @@ -20,8 +23,8 @@ describe('Recovery happy path tests 1', () => {

// Check that recovery can be setup and removed
it('Recovery setup happy path 1', () => {
wallet.connectSigner(signer)
owner.waitForConnectionStatus()
cy.reload()
recovery.clearRecoverers()
recovery.clickOnSetupRecoveryBtn()
recovery.clickOnSetupRecoveryModalBtn()
Expand Down
9 changes: 5 additions & 4 deletions cypress/e2e/happypath/sendfunds_connected_wallet.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import { createEthersAdapter, createSigners } from '../../support/api/utils_ethe
import { createSafes } from '../../support/api/utils_protocolkit'
import { contracts, abi_qtrust, abi_nft_pc2 } from '../../support/api/contracts'
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
import * as wallet from '../../support/utils/wallet.js'

const safeBalanceEth = 305220000000000000n
const qtrustBanance = 93000000000000000025n
const transferAmount = '1'

const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS'))
const signer = walletCredentials.OWNER_4_PRIVATE_KEY

const tokenAmount2 = '0.00001'
const netwrok = 'sepolia'
Expand Down Expand Up @@ -81,6 +81,7 @@ describe('Send funds with connected signer happy path tests', { defaultCommandTi

function executeTransactionFlow(fromSafe, toSafe) {
return cy.visit(constants.balanceNftsUrl + fromSafe).then(() => {
wallet.connectSigner(signer)
nfts.selectNFTs(1)
nfts.sendNFT()
nfts.typeRecipientAddress(toSafe)
Expand Down Expand Up @@ -112,6 +113,7 @@ describe('Send funds with connected signer happy path tests', { defaultCommandTi
const targetSafe = safesData.SEP_FUNDS_SAFE_12.substring(4)
function executeTransactionFlow(fromSafe, toSafe, tokenAmount) {
visit(constants.BALANCE_URL + fromSafe)
wallet.connectSigner(signer)
assets.clickOnSendBtn(0)
loadsafe.inputOwnerAddress(0, toSafe)
assets.checkSelectedToken(constants.tokenAbbreviation.sep)
Expand Down Expand Up @@ -155,7 +157,6 @@ describe('Send funds with connected signer happy path tests', { defaultCommandTi
const safeTx = await apiKit.getTransaction(safeTxHashofExistingTx)
await protocolKitOwner2_S3.executeTransaction(safeTx)
main.verifyNonceChange(network_pref + targetSafe, currentNonce + 1)
main.checkTokenBalance(network_pref + targetSafe, constants.tokenAbbreviation.eth, safeBalanceEth)
})
})

Expand All @@ -166,6 +167,7 @@ describe('Send funds with connected signer happy path tests', { defaultCommandTi

function executeTransactionFlow(fromSafe, toSafe) {
visit(constants.BALANCE_URL + fromSafe)
wallet.connectSigner(signer)
assets.selectTokenList(assets.tokenListOptions.allTokens)
assets.clickOnSendBtn(1)
loadsafe.inputOwnerAddress(0, toSafe)
Expand All @@ -188,7 +190,6 @@ describe('Send funds with connected signer happy path tests', { defaultCommandTi

await tx.wait()
main.verifyNonceChange(network_pref + originatingSafe, currentNonce + 1)
main.checkTokenBalance(network_pref + originatingSafe, constants.tokenAbbreviation.qtrust, qtrustBanance)
})
})
})
71 changes: 40 additions & 31 deletions cypress/e2e/happypath/sendfunds_queue_1.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import SafeApiKit from '@safe-global/api-kit'
import { createEthersAdapter, createSigners } from '../../support/api/utils_ether'
import { createSafes } from '../../support/api/utils_protocolkit'
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js'
import * as wallet from '../../support/utils/wallet.js'

const walletCredentials = JSON.parse(Cypress.env('CYPRESS_WALLET_CREDENTIALS'))
const receiver = walletCredentials.OWNER_2_WALLET_ADDRESS
const signer = walletCredentials.OWNER_4_PRIVATE_KEY

const tokenAmount = '0.0001'
const netwrok = 'sepolia'
Expand Down Expand Up @@ -46,6 +48,7 @@ function visit(url) {

function executeTransactionFlow(fromSafe) {
visit(constants.transactionQueueUrl + fromSafe)
wallet.connectSigner(signer)
assets.clickOnConfirmBtn(0)
tx.executeFlow_1()
cy.wait(5000)
Expand Down Expand Up @@ -78,41 +81,46 @@ describe('Send funds from queue happy path tests 1', () => {
protocolKitOwner2_S3 = safes[3]
})

it('Verify confirmation and execution of native token queued tx by second signer with connected wallet', () => {
cy.wrap(null)
.then(() => {
return main.fetchCurrentNonce(network_pref + existingSafeAddress1)
})
.then(async (currentNonce) => {
const amount = ethers.parseUnits(tokenAmount, unit_eth).toString()
const safeTransactionData = {
to: receiver,
data: '0x',
value: amount.toString(),
}

const safeTransaction = await protocolKitOwnerS1.createTransaction({ transactions: [safeTransactionData] })
const safeTxHash = await protocolKitOwnerS1.getTransactionHash(safeTransaction)
const senderSignature = await protocolKitOwnerS1.signHash(safeTxHash)
const safeAddress = existingSafeAddress1

await apiKit.proposeTransaction({
safeAddress,
safeTransactionData: safeTransaction.data,
safeTxHash,
senderAddress: await owner1Signer.getAddress(),
senderSignature: senderSignature.data,
it(
'Verify confirmation and execution of native token queued tx by second signer with connected wallet',
{ defaultCommandTimeout: 300000 },
() => {
cy.wrap(null)
.then(() => {
return main.fetchCurrentNonce(network_pref + existingSafeAddress1)
})

executeTransactionFlow(safeAddress)
cy.wait(5000)
main.verifyNonceChange(network_pref + safeAddress, currentNonce + 1)
})
})
.then(async (currentNonce) => {
const amount = ethers.parseUnits(tokenAmount, unit_eth).toString()
const safeTransactionData = {
to: receiver,
data: '0x',
value: amount.toString(),
}

const safeTransaction = await protocolKitOwnerS1.createTransaction({ transactions: [safeTransactionData] })
const safeTxHash = await protocolKitOwnerS1.getTransactionHash(safeTransaction)
const senderSignature = await protocolKitOwnerS1.signHash(safeTxHash)
const safeAddress = existingSafeAddress1

await apiKit.proposeTransaction({
safeAddress,
safeTransactionData: safeTransaction.data,
safeTxHash,
senderAddress: await owner1Signer.getAddress(),
senderSignature: senderSignature.data,
})

executeTransactionFlow(safeAddress)
cy.wait(5000)
main.verifyNonceChange(network_pref + safeAddress, currentNonce + 1)
})
},
)

it.skip('Verify confirmation and execution of native token queued tx by second signer with relayer', () => {
function executeTransactionFlow(fromSafe) {
visit(constants.transactionQueueUrl + fromSafe)
wallet.connectSigner(signer)
assets.clickOnConfirmBtn(0)
tx.executeFlow_2()
cy.wait(5000)
Expand Down Expand Up @@ -148,9 +156,10 @@ describe('Send funds from queue happy path tests 1', () => {
})
})

it('Verify 1 signer can execute a tx confirmed by 2 signers', () => {
it('Verify 1 signer can execute a tx confirmed by 2 signers', { defaultCommandTimeout: 300000 }, () => {
function executeTransaction(fromSafe) {
visit(constants.transactionQueueUrl + fromSafe)
wallet.connectSigner(signer)
assets.clickOnExecuteBtn(0)
tx.executeFlow_3()
cy.wait(5000)
Expand Down
Loading
Loading