From cb1d491d10f3f43a3332874b41554a4a0a7fbe32 Mon Sep 17 00:00:00 2001 From: Jack Hamer Date: Tue, 19 Nov 2024 15:46:28 +0200 Subject: [PATCH 01/11] fix: rename zksync account to sso --- README.md | 4 +- docs/sdk/client-auth-server/README.md | 4 +- examples/demo-app/pages/index.vue | 4 +- examples/nft-quest/stores/connector.ts | 4 +- packages/contracts/test/sdk/PasskeyClient.ts | 92 ------------------- packages/sdk/README.md | 2 +- packages/sdk/src/client-auth-server/Signer.ts | 4 +- .../src/client-auth-server/WalletProvider.ts | 2 +- packages/sdk/src/client/clients/passkey.ts | 22 ++--- packages/sdk/src/client/clients/session.ts | 26 +++--- packages/sdk/src/client/decorators/passkey.ts | 8 +- packages/sdk/src/client/decorators/session.ts | 8 +- .../src/client/decorators/session_wallet.ts | 10 +- .../sdk/src/communicator/PopupCommunicator.ts | 2 +- packages/sdk/src/connector/index.ts | 4 +- 15 files changed, 52 insertions(+), 144 deletions(-) delete mode 100644 packages/contracts/test/sdk/PasskeyClient.ts diff --git a/README.md b/README.md index 5c704373..376be086 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ Add ZKsync SSO connector to your app (using `wagmi`): ```ts import { zksyncSepoliaTestnet } from "viem/chains"; import { createConfig, connect } from "@wagmi/core"; -import { zksyncAccountConnector } from "zksync-sso/connector"; +import { zksyncSsoConnector } from "zksync-sso/connector"; -const ssoConnector = zksyncAccountConnector({ +const ssoConnector = zksyncSsoConnector({ // Optional session configuration, if omitted user will have to sign every transaction via Auth Server session: { // Allow up to 0.1 ETH to be spend in gas fees diff --git a/docs/sdk/client-auth-server/README.md b/docs/sdk/client-auth-server/README.md index 6dcdfff3..1dcbf2fe 100644 --- a/docs/sdk/client-auth-server/README.md +++ b/docs/sdk/client-auth-server/README.md @@ -9,9 +9,9 @@ your application. It's built on top of [client SDK](../client/README.md) and ```ts import { zksync } from "viem/chains"; import { createConfig, connect } from "@wagmi/core"; -import { zksyncAccountConnector } from "zksync-sso/connector"; +import { zksyncSsoConnector } from "zksync-sso/connector"; -const ssoConnector = zksyncAccountConnector({ +const ssoConnector = zksyncSsoConnector({ // Optional session configuration session: { feeLimit: parseEther("0.1"), diff --git a/examples/demo-app/pages/index.vue b/examples/demo-app/pages/index.vue index fd58fb7e..7a16c725 100644 --- a/examples/demo-app/pages/index.vue +++ b/examples/demo-app/pages/index.vue @@ -41,13 +41,13 @@