Skip to content

Commit

Permalink
Release @argent-x/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
gergold committed Nov 13, 2023
1 parent 0cb22f7 commit db57f32
Show file tree
Hide file tree
Showing 342 changed files with 8,341 additions and 6,638 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
token: ${{ secrets.ARGENTBOT_GITHUB_PAT }}

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18.x"

Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
version: 8
run_install: false

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "pnpm"
Expand All @@ -84,7 +84,12 @@ jobs:
run: pnpm run setup

- name: Build extension for ${{ matrix.extension_type }}
run: pnpm run build:extension
run: |
if [[ "${{ matrix.extension_type }}" == "firefox" ]]; then
MANIFEST_VERSION=v2 pnpm run build:extension
else
MANIFEST_VERSION=v3 pnpm run build:extension
fi
- name: Check bundlesize for ${{ matrix.extension_type }}
run: pnpm bundlewatch
Expand Down Expand Up @@ -136,7 +141,7 @@ jobs:
version: 8
run_install: false

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "pnpm"
Expand Down Expand Up @@ -201,7 +206,7 @@ jobs:
version: 8
run_install: false

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "pnpm"
Expand Down Expand Up @@ -258,7 +263,7 @@ jobs:
version: 8
run_install: false

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "16"
cache: "pnpm"
Expand Down Expand Up @@ -302,7 +307,7 @@ jobs:
version: 8
run_install: false

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "pnpm"
Expand Down Expand Up @@ -342,7 +347,7 @@ jobs:
version: 8
run_install: false

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "pnpm"
Expand Down Expand Up @@ -403,7 +408,7 @@ jobs:
version: 8
run_install: false

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "pnpm"
Expand All @@ -423,6 +428,8 @@ jobs:
- name: Run tests
run: |
pnpm run --filter @argent/web start:ci &
sleep 10 &&
curl http://localhost:3005 &&
pnpm run test:e2e:webwallet
- name: Upload artifacts
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- release/*
tags:
# - "@argent-x/extension@*"
- "**"

env:
Expand Down Expand Up @@ -56,12 +55,14 @@ jobs:
version: 8
run_install: false

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "pnpm"
- run: pnpm run setup
- run: pnpm --filter=\!@argent/web build

- name: Build Chrome version
run: pnpm --filter=\!@argent/web build

- run: pnpm --filter @argent-x/dapp export

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ license-report.md

**/.parcel-cache

vite.config.ts.timestamp-*
vite.config.ts.timestamp-*

report
13 changes: 13 additions & 0 deletions .jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"reporters": ["html", "console"],
"ignore": [
"**/__snapshots__/**",
"**/__fixtures__/**",
"**/__tests__/**",
"**/*.test.*",
"*.json",
"*.svg"
],
"minTokens": 75,
"absolute": true
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.18.0
18.18.1
13 changes: 7 additions & 6 deletions License.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
All intellectual property rights, interests and titles in the code, application, software and documents (“Works”) are owned by Argent Labs Ltd (“Argent”). You are granted a non-exclusive, non-transferable licence to copy, modify, publish, adapt, and create derivative outputs of the Works (“Generated Works”) solely for non-commercial purposes. Non-commercial purposes means, at the sole discretion of Argent:
* Personal use without any commercial exploitation
* Public educational, public research or charitable use
* Use by any organisation provided that the monthly active users are less than 1000.
All intellectual property rights, interests and titles in the code, application, software and documents (“Works”) are owned by Argent Labs Ltd (“Argent”). You are granted a non-exclusive, non-transferable licence to copy, modify, publish, adapt, and create derivative outputs of the Works (“Generated Works”) solely for non-commercial purposes. Non-commercial purposes means, at the sole discretion of Argent:

- Personal use without any commercial exploitation
- Public educational, public research or charitable use
- Use by any organisation provided that the monthly active users are less than 1000.

A notice must be present in any Generated Works stating that the Works are owned by Argent and subject to these licence terms. You may not use, process or otherwise interact with the Works in any way not expressly permitted here.

A notice must be present in any Generated Works stating that the Works are owned by Argent and subject to these licence terms. You may not use, process or otherwise interact with the Works in any way not expressly permitted here.

If you have any questions, please contact us at [email protected].
11 changes: 3 additions & 8 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,19 @@ The example dapp is also contained in this repository.

## 🌐 Usage with your dapp

If you want to use this StarkNet Wallet extension with your dapp, the easiest way is to checkout the `@argent/get-starknet` package developed in this repo by running:
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

```bash
# starknet.js is a peer dependency
pnpm add @argent/get-starknet starknet
pnpm add starknetkit starknet
```

The package is a light wrapper around [starknet.js](https://github.com/0xs34n/starknet.js) to interact with the wallet extension. You can then use it like the following:

```javascript
import { connect } from "@argent/get-starknet"
import { connect } from "starknetkit"

// Let the user pick a wallet (on button click)
const starknet = connect()

// or try to connect to an approved wallet silently (on mount probably)
const starknet = connect({ showList: false })

if (!starknet) {
throw Error("User rejected wallet selection or silent connect found nothing")
}
Expand Down
Loading

0 comments on commit db57f32

Please sign in to comment.