From 475d3c188d1d365134208634553e85460d8e7479 Mon Sep 17 00:00:00 2001 From: bluecco Date: Fri, 6 Oct 2023 13:29:27 +0200 Subject: [PATCH 1/5] fix: argent mobile chainId --- src/connectors/argentMobile/index.ts | 3 ++- src/connectors/argentMobile/modal/starknet/adapter.ts | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index bc308f0..395e78c 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -3,6 +3,7 @@ import type { StarknetWindowObject, } from "get-starknet-core" import type { AccountInterface } from "starknet" +import { constants } from "starknet" import { DEFAULT_PROJECT_ID } from "../../constants" import { ConnectorNotConnectedError, @@ -15,7 +16,7 @@ import { Connector } from "../connector" export interface ArgentMobileConnectorOptions { dappName?: string projectId?: string - chainId?: "SN_GOERLI" | "SN_GOERLI2" | "SN_MAINNET" + chainId?: constants.NetworkName description?: string url?: string } diff --git a/src/connectors/argentMobile/modal/starknet/adapter.ts b/src/connectors/argentMobile/modal/starknet/adapter.ts index 4abd346..f16d7d9 100644 --- a/src/connectors/argentMobile/modal/starknet/adapter.ts +++ b/src/connectors/argentMobile/modal/starknet/adapter.ts @@ -102,11 +102,9 @@ export class StarknetAdapter if (chainId === "SN_GOERLI") { return constants.NetworkName.SN_GOERLI } - if (chainId === "SN_GOERLI2") { - return constants.NetworkName.SN_GOERLI - } + if (chainId === "SN_MAIN") { - return constants.NetworkName.SN_GOERLI + return constants.NetworkName.SN_MAIN } throw new Error(`Unknown starknet.js network name for chainId ${chainId}`) } From 2f631713ca32c5465e5205eaf37c7602b4cd852b Mon Sep 17 00:00:00 2001 From: Gerald Date: Fri, 6 Oct 2023 13:59:52 +0200 Subject: [PATCH 2/5] fix: update semantic release GITHUB_TOKEN with PAT --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbcbddd..be189af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,9 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + persist-credentials: false - uses: pnpm/action-setup@v2 - name: Install pnpm + name: install-pnpm id: pnpm-install with: version: 8 @@ -24,7 +26,9 @@ jobs: - run: pnpm install --frozen-lockfile - run: pnpm run build - - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: semantic-release run: npx semantic-release --debug true --dry-run false + env: + GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From 1aabda8b788afdba2218df0d8f4dead3908ab48c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 6 Oct 2023 12:01:49 +0000 Subject: [PATCH 3/5] chore(release): 1.0.1 [skip ci] ## [1.0.1](https://github.com/argentlabs/starknetkit/compare/v1.0.0...v1.0.1) (2023-10-06) ### Bug Fixes * argent mobile chainId ([475d3c1](https://github.com/argentlabs/starknetkit/commit/475d3c188d1d365134208634553e85460d8e7479)) * update semantic release GITHUB_TOKEN with PAT ([2f63171](https://github.com/argentlabs/starknetkit/commit/2f631713ca32c5465e5205eaf37c7602b4cd852b)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a65bb1..a468848 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.0", + "version": "1.0.1", "repository": "github:argentlabs/starknetkit", "private": false, "browser": { From 4d8fc095c94a57588f7589ab7fff80962155d479 Mon Sep 17 00:00:00 2001 From: Gerald Date: Fri, 6 Oct 2023 14:27:02 +0200 Subject: [PATCH 4/5] fix: doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 39040d4..0bae9a0 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ await disconnect({ clearLastWallet: true }) ## 📕 Guides -Guides can be found [here](https://www.starknetkit.com/docs/getting-started) +Guides can be found [here](https://www.starknetkit.com/docs) ## ✏️ Contributing From a5e73a6df3c7270c580e6ddfdbfbfc63e2f763f7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 6 Oct 2023 12:30:21 +0000 Subject: [PATCH 5/5] chore(release): 1.0.2 [skip ci] ## [1.0.2](https://github.com/argentlabs/starknetkit/compare/v1.0.1...v1.0.2) (2023-10-06) ### Bug Fixes * doc ([4d8fc09](https://github.com/argentlabs/starknetkit/commit/4d8fc095c94a57588f7589ab7fff80962155d479)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a468848..8bcb36b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.1", + "version": "1.0.2", "repository": "github:argentlabs/starknetkit", "private": false, "browser": {