Skip to content

Commit 9e4907d

Browse files
committed
Release @argent-x/extension@6.13.4
1 parent 38eba26 commit 9e4907d

File tree

723 files changed

+15968
-9962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

723 files changed

+15968
-9962
lines changed

.github/workflows/pull-request.yml

Lines changed: 50 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
env: [prod, hydrogen]
13+
env: [prod, staging, hydrogen]
1414
extension_type: [chrome, firefox]
1515

1616
environment: ${{ matrix.env }}
@@ -29,8 +29,9 @@ jobs:
2929
# API URLs
3030
ARGENT_API_BASE_URL: ${{ vars.ARGENT_API_BASE_URL }}
3131
ARGENT_X_STATUS_URL: ${{ vars.ARGENT_X_STATUS_URL }}
32+
ARGENT_X_NEWS_URL: ${{ vars.ARGENT_X_NEWS_URL }}
3233
ARGENT_TESTNET_RPC_URL: ${{ vars.ARGENT_TESTNET_RPC_URL }}
33-
34+
ARGENT_HEALTHCHECK_BASE_URL: ${{ vars.ARGENT_HEALTHCHECK_BASE_URL }}
3435
# API ENVIRONMENT
3536
ARGENT_X_ENVIRONMENT: ${{ matrix.env }}
3637

@@ -44,6 +45,7 @@ jobs:
4445
RAMP_API_KEY: ${{ secrets.RAMP_API_KEY }}
4546
SAFE_ENV_VARS: false
4647
MULTICALL_MAX_BATCH_SIZE: 20
48+
NEW_CAIRO_0_ENABLED: false
4749

4850
# Refresh intervals
4951
FAST: 20 # 20s
@@ -111,7 +113,7 @@ jobs:
111113
run: (cd ./packages/extension/dist && zip -r "../../../${{ env.FILENAME_PREFIX }}-${{ matrix.extension_type }}" .)
112114

113115
- name: Upload ${{ matrix.extension_type }} extension
114-
uses: actions/upload-artifact@v3
116+
uses: actions/upload-artifact@v4
115117
with:
116118
name: ${{ env.FILENAME_PREFIX }}-${{ matrix.extension_type }}
117119
path: "*-${{ matrix.extension_type }}.zip"
@@ -125,7 +127,9 @@ jobs:
125127
env:
126128
ARGENT_API_BASE_URL: ${{ vars.ARGENT_API_BASE_URL }}
127129
ARGENT_TESTNET_RPC_URL: ${{ vars.ARGENT_TESTNET_RPC_URL }}
130+
ARGENT_HEALTHCHECK_BASE_URL: ${{ vars.ARGENT_HEALTHCHECK_BASE_URL }}
128131
ARGENT_X_STATUS_URL: ${{ vars.ARGENT_X_STATUS_URL }}
132+
ARGENT_X_NEWS_URL: ${{ vars.ARGENT_X_NEWS_URL }}
129133
ARGENT_X_ENVIRONMENT: "hydrogen"
130134

131135
services:
@@ -174,7 +178,7 @@ jobs:
174178
run: pnpm run test:ci
175179
- name: SonarCloud Scan
176180
# TODO replace with master as soon as sonarcloud fixes the issue with action https://community.sonarsource.com/t/sonarsource-sonarcloud-github-action-failing-with-node-js-12-error/89664/2
177-
uses: SonarSource/sonarcloud-github-action@v1.9
181+
uses: SonarSource/sonarcloud-github-action@v2.1.1
178182
with:
179183
projectBaseDir: ./packages/extension
180184
env:
@@ -198,12 +202,20 @@ jobs:
198202
E2E_ACCOUNT_1_SEED2: ${{ secrets.E2E_ACCOUNT_1_SEED2 }}
199203
E2E_ACCOUNT_1_SEED3: ${{ secrets.E2E_ACCOUNT_1_SEED3 }}
200204
## BANK ACCOUNT, USED FOR FUND OTHER ACCOUNTS
201-
E2E_SENDER_ADDRESS: ${{ secrets.E2E_SENDER_ADDRESS }}
202-
E2E_SENDER_PRIVATEKEY: ${{ secrets.E2E_SENDER_PRIVATEKEY }}
205+
E2E_SENDER_ADDRESSES: ${{ secrets.E2E_SENDER_ADDRESSES }}
206+
E2E_SENDER_PRIVATEKEYS: ${{ secrets.E2E_SENDER_PRIVATEKEYS }}
203207
E2E_SENDER_SEED: ${{ secrets.E2E_SENDER_SEED }}
204208
STARKNET_TESTNET_URL: ${{ secrets.STARKNET_TESTNET_URL }}
205209
STARKSCAN_TESTNET_URL: ${{ secrets.STARKSCAN_TESTNET_URL }}
206210
ARGENT_TESTNET_RPC_URL: ${{ secrets.ARGENT_TESTNET_RPC_URL }}
211+
ARGENT_HEALTHCHECK_BASE_URL: ${{ secrets.ARGENT_HEALTHCHECK_BASE_URL }}
212+
E2E_SPOK_CAMPAIGN_URL: ${{ secrets.E2E_SPOK_CAMPAIGN_URL }}
213+
E2E_SPOK_CAMPAIGN_NAME: ${{ secrets.E2E_SPOK_CAMPAIGN_NAME }}
214+
# Refresh intervals
215+
REFRESH_INTERVAL_FAST: 1 # 1s
216+
REFRESH_INTERVAL_MEDIUM: 5 # 5s
217+
REFRESH_INTERVAL_SLOW: 20 # 20s
218+
REFRESH_INTERVAL_VERY_SLOW: 60 * 10 # 10m
207219

208220
steps:
209221
- uses: actions/checkout@v4
@@ -241,19 +253,20 @@ jobs:
241253
run: xvfb-run --auto-servernum pnpm test:e2e:extension --project=${{ matrix.project }} --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
242254

243255
- name: Upload artifacts
244-
uses: actions/upload-artifact@v3
256+
uses: actions/upload-artifact@v4
245257
if: always()
246258
with:
247-
name: test-artifacts
259+
name: test-artifacts-${{ matrix.shardIndex }}
248260
path: |
249261
packages/e2e/artifacts/playwright/
262+
!packages/e2e/artifacts/playwright/*.webm
250263
retention-days: 5
251264

252265
- name: Upload blob report to GitHub Actions Artifacts
253266
if: always()
254-
uses: actions/upload-artifact@v3
267+
uses: actions/upload-artifact@v4
255268
with:
256-
name: all-blob-reports
269+
name: all-blob-reports-${{ matrix.shardIndex }}
257270
path: packages/e2e/blob-report/
258271
retention-days: 5
259272

@@ -286,19 +299,20 @@ jobs:
286299
${{ runner.os }}-pnpm-store-
287300
288301
- name: Download blob reports from GitHub Actions Artifacts
289-
uses: actions/download-artifact@v3
302+
uses: actions/download-artifact@v4
290303
with:
291-
name: all-blob-reports
292304
path: all-blob-reports
305+
pattern: all-blob-reports-*
306+
merge-multiple: true
293307

294308
- name: Merge into HTML Report
295-
run: npx playwright merge-reports --reporter html ./all-blob-reports
309+
run: npx playwright merge-reports -c ./packages/e2e/merge-reports.config.js ./all-blob-reports
296310

297311
- name: Upload HTML report
298-
uses: actions/upload-artifact@v3
312+
uses: actions/upload-artifact@v4
299313
with:
300314
name: html-report--attempt-${{ github.run_attempt }}
301-
path: playwright-report
315+
path: packages/e2e/playwright-report
302316
retention-days: 14
303317

304318
add_pr_comments:
@@ -408,6 +422,23 @@ jobs:
408422
NEXT_PUBLIC_ARGENT_API_BASE_URL: ${{ vars.ARGENT_API_BASE_URL }}
409423
NEXT_PUBLIC_ARGENT_TESTNET_RPC_URL: ${{ vars.ARGENT_TESTNET_RPC_URL }}
410424

425+
ARGENT_API_BASE_URL: ${{ secrets.ARGENT_API_BASE_URL }}
426+
E2E_TESTNET_SEED1: ${{ secrets.E2E_TESTNET_SEED1 }}
427+
E2E_TESTNET_SEED2: ${{ secrets.E2E_TESTNET_SEED2 }}
428+
E2E_TESTNET_SEED3: ${{ secrets.E2E_TESTNET_SEED3 }}
429+
E2E_ACCOUNT_1_SEED2: ${{ secrets.E2E_ACCOUNT_1_SEED2 }}
430+
E2E_ACCOUNT_1_SEED3: ${{ secrets.E2E_ACCOUNT_1_SEED3 }}
431+
## BANK ACCOUNT, USED FOR FUND OTHER ACCOUNTS
432+
E2E_SENDER_ADDRESSES: ${{ secrets.E2E_SENDER_ADDRESSES }}
433+
E2E_SENDER_PRIVATEKEYS: ${{ secrets.E2E_SENDER_PRIVATEKEYS }}
434+
E2E_SENDER_SEED: ${{ secrets.E2E_SENDER_SEED }}
435+
STARKNET_TESTNET_URL: ${{ secrets.STARKNET_TESTNET_URL }}
436+
STARKSCAN_TESTNET_URL: ${{ secrets.STARKSCAN_TESTNET_URL }}
437+
ARGENT_TESTNET_RPC_URL: ${{ secrets.ARGENT_TESTNET_RPC_URL }}
438+
ARGENT_HEALTHCHECK_BASE_URL: ${{ secrets.ARGENT_HEALTHCHECK_BASE_URL }}
439+
E2E_SPOK_CAMPAIGN_URL: ${{ secrets.E2E_SPOK_CAMPAIGN_URL }}
440+
E2E_SPOK_CAMPAIGN_NAME: ${{ secrets.E2E_SPOK_CAMPAIGN_NAME }}
441+
411442
steps:
412443
- uses: actions/checkout@v4
413444

@@ -443,19 +474,19 @@ jobs:
443474
pnpm run test:e2e:webwallet
444475
445476
- name: Upload artifacts
446-
uses: actions/upload-artifact@v3
477+
uses: actions/upload-artifact@v4
447478
if: always()
448479
with:
449-
name: test-artifacts
480+
name: test-artifacts-${{ matrix.shardIndex }}
450481
path: |
451482
packages/e2e/artifacts/playwright/
452483
retention-days: 5
453484

454485
- name: Upload blob report to GitHub Actions Artifacts
455486
if: always()
456-
uses: actions/upload-artifact@v3
487+
uses: actions/upload-artifact@v4
457488
with:
458-
name: all-blob-reports-webwallet
489+
name: all-blob-reports-webwallet-${{ matrix.shardIndex }}
459490
path: packages/e2e/blob-report/
460491
retention-days: 5
461492

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ jobs:
3030
SAFE_ENV_VARS: true
3131
ARGENT_API_BASE_URL: ${{ vars.ARGENT_API_BASE_URL }}
3232
ARGENT_TESTNET_RPC_URL: ${{ vars.ARGENT_TESTNET_RPC_URL }}
33+
ARGENT_HEALTHCHECK_BASE_URL: ${{ vars.ARGENT_HEALTHCHECK_BASE_URL }}
3334
ARGENT_X_STATUS_URL: ${{ vars.ARGENT_X_STATUS_URL }}
35+
ARGENT_X_NEWS_URL: ${{ vars.ARGENT_X_NEWS_URL }}
3436
ARGENT_X_ENVIRONMENT: "prod"
3537
MULTICALL_MAX_BATCH_SIZE: 20
3638
FAST: 20 # 20s
3739
MEDIUM: 60 # 60s
3840
SLOW: 60 * 5 # 5m
3941
VERY_SLOW: 24 * 60 * 60 # 1d
42+
NEW_CAIRO_0_ENABLED: false
4043

4144
if: ${{ !startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'extension') }}
4245
runs-on: ubuntu-latest
@@ -82,15 +85,15 @@ jobs:
8285
run: pnpm bundlewatch
8386

8487
- name: Upload artifacts for chrome
85-
uses: actions/upload-artifact@v3
88+
uses: actions/upload-artifact@v4
8689
with:
8790
name: chrome
8891
path: "*-chrome.zip"
8992
retention-days: 14
9093
if-no-files-found: error
9194

9295
- name: Upload artifacts for firefox
93-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@v4
9497
with:
9598
name: firefox
9699
path: "*-firefox.zip"
@@ -132,10 +135,6 @@ jobs:
132135
if: startsWith(github.ref, 'refs/tags/')
133136
run: |
134137
npm config set "//registry.npmjs.org/:_authToken" "$NPM_ACCESS_TOKEN"
135-
cp Readme.md ./packages/get-starknet/README.md
136-
pnpm --filter @argent/get-starknet publish --no-git-checks --access public || exit 0
137-
pnpm --filter @argent/web-sdk publish --no-git-checks --access public || exit 0
138-
pnpm --filter @argent/starknet-react-webwallet-connector publish --no-git-checks --access public || exit 0
139138
pnpm --filter @argent/x-sessions publish --no-git-checks --access public || exit 0
140139
141140
- name: Get product version

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.10.0
1+
20.11.0

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
---
77

8-
<h3 align='center' style='margin: 1em;'>⬇️ Get <b>Argent X</b> for StarkNet today:</h3>
8+
<h3 align='center' style='margin: 1em;'>⬇️ Get <b>Argent X</b> for Starknet today:</h3>
99

1010
<p align="center">
1111
<a href="https://chrome.google.com/webstore/detail/argent-x-starknet-wallet/dlcobpjiigpikoobohmabehhmhfoodbb/">
@@ -44,7 +44,7 @@ The example dapp is also contained in this repository.
4444

4545
## 🌐 Usage with your dapp
4646

47-
If you want to use this StarkNet Wallet extension with your dapp, the easiest way is to checkout the [starknetkit](https://github.com/argentlabs/starknetkit) package
47+
If you want to use this Starknet Wallet extension with your dapp, the easiest way is to checkout the [starknetkit](https://github.com/argentlabs/starknetkit) package
4848

4949
```bash
5050
# starknet.js is a peer dependency

docs/Upgrade_v3.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ As a user of Argent X 2.x, after upgrading to version 3.0.0, your extension will
3535

3636
4. Disable Argent X 3.0.0 by switching off the toggle in the lower right corner of the Argent X panel in the Chrome extensions page.
3737

38-
5. Open the extension v2.2.3 and restore from your backup file, the one you downloaded in step 1. Now you can transfer all your tokens to your new address, the one you copied at step 2. For ERC721 assets, you'll have to do it in [Voyager](https://voyager.online/), the StarkNet block explorer, by connecting your wallet and transferring manually.
38+
5. Open the extension v2.2.3 and restore from your backup file, the one you downloaded in step 1. Now you can transfer all your tokens to your new address, the one you copied at step 2. For ERC721 assets, you'll have to do it in [Voyager](https://voyager.online/), the Starknet block explorer, by connecting your wallet and transferring manually.
3939

40-
## What does it mean as a StarkNet dapp developer?
40+
## What does it mean as a Starknet dapp developer?
4141

4242
The `starknet` object (returned by `get-starknet`) will now expose an `account` object instead of a `signer` object. This `account` object implements the [AccountInterface](https://github.com/0xs34n/starknet.js/blob/develop/src/account/interface.ts), specifically it exposes the methods `execute()` and `signMessage()`:
4343

@@ -51,9 +51,9 @@ where `Call` is defined by:
5151

5252
```typescript
5353
interface Call {
54-
contractAddress: string;
55-
entrypoint: string;
56-
calldata?: BigNumberish[];
54+
contractAddress: string
55+
entrypoint: string
56+
calldata?: BigNumberish[]
5757
}
5858
```
5959

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@
2525
"scripts": {
2626
"format": "prettier --loglevel warn --write \"**/*.{js,jsx,ts,tsx,css,md,yml,json}\"",
2727
"dev": "NODE_ENV=development pnpm run -r --stream --parallel dev",
28-
"dev:ui": "NODE_ENV=development pnpm --parallel run dev:ui ",
28+
"dev:ui": "NODE_ENV=development pnpm --parallel run dev:ui",
2929
"dev:extension": "NODE_ENV=development pnpm run --filter @argent-x/extension -r --stream --parallel dev",
3030
"build-storybook": "pnpm run --filter @argent-x/storybook build-storybook",
31-
"clean": "rm -rf packages/extension/dist packages/get-starket/dist",
31+
"clean": "rm -rf packages/extension/dist",
3232
"build": "pnpm run -r --parallel --stream build",
3333
"build:extension": "pnpm run --filter @argent-x/extension build",
3434
"build:web": "pnpm run --filter @argent/web build",
3535
"build:sourcemaps": "GEN_SOURCE_MAPS=true pnpm run build",
36-
"lint": "pnpm run -r --parallel lint ",
36+
"lint": "pnpm run -r --parallel lint",
3737
"test": "pnpm run -r --parallel --stream test",
38-
"test:watch": "pnpm run -r --paralle; --stream test:watch ",
38+
"test:watch": "pnpm run -r --parallel; --stream test:watch",
3939
"test:e2e:extension": "pnpm run --filter @argent-x/e2e test:extension",
4040
"test:e2e:webwallet": "pnpm run --filter @argent-x/e2e test:webwallet",
4141
"setup": "pnpm install --frozen-lockfile && pnpm allow-scripts && husky install && patch-package && pnpm run -r --stream setup",
42-
"test:ci": "pnpm run --stream --parallel test:ci ",
42+
"test:ci": "pnpm run --stream --parallel test:ci",
4343
"storybook": "cd packages/storybook && pnpm run storybook",
4444
"devnet:upgrade-helper": "NODE_NO_WARNINGS=1 ts-node ./scripts/devnet-upgrade-helper.ts",
4545
"devnet:setup-contracts": "NODE_NO_WARNINGS=1 ts-node ./scripts/devnet-setup-contracts.ts",

packages/dapp/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
"@argent/ui": "^6.3.1",
1515
"@argent/x-sessions": "^6.3.1",
1616
"@chakra-ui/react": "^2.6.1",
17-
"@starknet-react/chains": "0.1.0",
18-
"@starknet-react/core": "2.1.1",
17+
"@starknet-react/chains": "0.1.5",
18+
"@starknet-react/core": "2.2.2",
1919
"micro-starknet": "^0.2.3",
2020
"next": "^13.4.6",
2121
"react": "^18.0.0",
2222
"react-dom": "^18.0.0",
23-
"starknet": "5.24.3",
24-
"starknetkit": "^1.0.22"
23+
"starknet": "5.25.0",
24+
"starknetkit": "^1.1.0"
2525
},
2626
"devDependencies": {
27-
"@types/node": "20.10.4",
27+
"@types/node": "20.11.0",
2828
"@types/react": "^18.0.0",
2929
"@types/react-dom": "^18.0.0",
3030
"eslint": "8",

packages/dapp/src/components/AddNetwork.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const AddNetwork = () => {
1313
chainId: "SN_DAPP_TEST",
1414
chainName: "Test chain name",
1515
baseUrl: "http://localhost:5050",
16+
rpcUrls: ["http://localhost:5050/rpc"],
1617
})
1718
setAddNetworkError("")
1819
} catch (error) {

packages/dapp/src/components/InfoRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { H4 } from "@argent/ui"
22
import { Code, Flex } from "@chakra-ui/react"
3-
import { FC } from "react"
3+
import { FC, ReactNode } from "react"
44

55
const InfoRow: FC<{
66
title: string
7-
content?: string
7+
content?: ReactNode
88
copyContent?: string
99
}> = ({ title, content, copyContent }) => {
1010
return (

0 commit comments

Comments
 (0)