diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 572b2b0f..d8517641 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,12 +31,14 @@ jobs: - run: npx nx affected -t lint - name: Run Tests env: - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - PROVIDER_URL: ${{ secrets.PROVIDER_URL }} - VALID_SUBNAME: ${{ secrets.VALID_SUBNAME }} - JUSTANAME_ENVIRONMENT: ${{ secrets.JUSTANAME_ENVIRONMENT }} - JUSTANAME_TEST_API_KEY: ${{ secrets.JUSTANAME_TEST_API_KEY }} - JUSTANAME_DEV: ${{ secrets.JUSTANAME_DEV }} - ENS_DOMAIN: ${{ secrets.ENS_DOMAIN }} + SDK_JUSTANAME_ENVIRONMENT: ${{ secrets.SDK_JUSTANAME_ENVIRONMENT }} + SDK_JUSTANAME_TEST_API_KEY: ${{ secrets.SDK_JUSTANAME_TEST_API_KEY }} + SDK_MAPP_PRIVATE_KEY: ${{ secrets.SDK_MAPP_PRIVATE_KEY }} + SDK_PROVIDER_URL: ${{ secrets.SDK_PROVIDER_URL }} + SDK_ENS_DOMAIN: ${{ secrets.SDK_ENS_DOMAIN }} + SDK_MAPP: ${{ secrets.SDK_MAPP }} + SIWENS_PRIVATE_KEY: ${{ secrets.SIWENS_PRIVATE_KEY }} + SIWENS_PROVIDER_URL: ${{ secrets.SIWENS_PROVIDER_URL }} + SIWENS_VALID_ENS: ${{ secrets.SIWENS_VALID_ENS }} run: npx nx affected -t test --configuration=ci --passWithNoTests --exclude=justaname-mono-sdk - run: npx nx affected -t build \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8426f863..7d6c986c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,13 +48,15 @@ jobs: - name: Build and Test env: - PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - PROVIDER_URL: ${{ secrets.PROVIDER_URL }} - VALID_SUBNAME: ${{ secrets.VALID_SUBNAME }} - JUSTANAME_ENVIRONMENT: ${{ secrets.JUSTANAME_ENVIRONMENT }} - JUSTANAME_TEST_API_KEY: ${{ secrets.JUSTANAME_TEST_API_KEY }} - JUSTANAME_DEV: ${{ secrets.JUSTANAME_DEV }} - ENS_DOMAIN: ${{ secrets.ENS_DOMAIN }} + SDK_JUSTANAME_ENVIRONMENT: ${{ secrets.SDK_JUSTANAME_ENVIRONMENT }} + SDK_JUSTANAME_TEST_API_KEY: ${{ secrets.SDK_JUSTANAME_TEST_API_KEY }} + SDK_MAPP_PRIVATE_KEY: ${{ secrets.SDK_MAPP_PRIVATE_KEY }} + SDK_PROVIDER_URL: ${{ secrets.SDK_PROVIDER_URL }} + SDK_ENS_DOMAIN: ${{ secrets.SDK_ENS_DOMAIN }} + SDK_MAPP: ${{ secrets.SDK_MAPP }} + SIWENS_PRIVATE_KEY: ${{ secrets.SIWENS_PRIVATE_KEY }} + SIWENS_PROVIDER_URL: ${{ secrets.SIWENS_PROVIDER_URL }} + SIWENS_VALID_ENS: ${{ secrets.SIWENS_VALID_ENS }} run: | npx nx affected -t lint npx nx affected -t test --configuration=ci --passWithNoTests --exclude=justaname-mono-sdk diff --git a/apps/express-trial/project.json b/apps/express-trial/project.json index aa8252b4..3a84b51f 100644 --- a/apps/express-trial/project.json +++ b/apps/express-trial/project.json @@ -36,7 +36,11 @@ "development": {}, "production": {} }, - "dependsOn": ["lint"] + "dependsOn": ["lint", + { + "projects": ["@justaname.id/sdk"], + "target": "build" + }] } }, "tags": [] diff --git a/apps/react-trial/src/app/app.tsx b/apps/react-trial/src/app/app.tsx index 9776ade7..b5508491 100644 --- a/apps/react-trial/src/app/app.tsx +++ b/apps/react-trial/src/app/app.tsx @@ -1,4 +1,4 @@ -import { SIWJProvider, SIWJProviderConfig } from '@justaname.id/react-signin' +import { SIWENSProvider, SIWENSProviderConfig } from '@justaname.id/react-signin' import '@rainbow-me/rainbowkit/styles.css'; import { getDefaultConfig, @@ -17,7 +17,7 @@ import { ChainId } from '@justaname.id/sdk'; const queryClient = new QueryClient(); -const JustaNameConfig: SIWJProviderConfig = { +const JustaNameConfig: SIWENSProviderConfig = { config: { chainId: parseInt(import.meta.env.VITE_APP_CHAIN_ID) as ChainId, origin: import.meta.env.VITE_APP_ORIGIN, @@ -41,9 +41,9 @@ export function App() { return ( - + - + ); diff --git a/apps/with-privy/src/app/app.tsx b/apps/with-privy/src/app/app.tsx index dd909ac1..36b868c3 100644 --- a/apps/with-privy/src/app/app.tsx +++ b/apps/with-privy/src/app/app.tsx @@ -1,4 +1,4 @@ -import { SIWJProvider, SIWJProviderConfig } from '@justaname.id/react-signin' +import { SIWENSProvider, SIWENSProviderConfig } from '@justaname.id/react-signin' import '@rainbow-me/rainbowkit/styles.css'; import { http } from 'wagmi'; import { @@ -12,11 +12,11 @@ import { import { ChainId } from '@justaname.id/sdk'; import { PrivyProvider, usePrivy } from '@privy-io/react-auth'; import {createConfig, WagmiProvider} from '@privy-io/wagmi'; -import { useSubnameSession } from '@justaname.id/react'; +import { useEnsAuth } from '@justaname.id/react'; const queryClient = new QueryClient(); -const JustaNameConfig: SIWJProviderConfig = { +const JustaNameConfig: SIWENSProviderConfig = { config: { chainId: parseInt(import.meta.env.VITE_APP_CHAIN_ID) as ChainId, origin: import.meta.env.VITE_APP_ORIGIN, @@ -31,7 +31,7 @@ const JustaNameConfig: SIWJProviderConfig = { const Connect = () => { const { ready, authenticated, user, login, logout } = usePrivy(); - const { subnameSession} = useSubnameSession(); + const { connectedEns} = useEnsAuth(); if (!ready) { return null; } @@ -57,10 +57,10 @@ const Connect = () => { )} { - subnameSession &&
+ connectedEns &&