Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
poolsar42 committed May 25, 2023
1 parent 62a97f5 commit 593ac50
Show file tree
Hide file tree
Showing 173 changed files with 580 additions and 1,167 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/btoa-npm-1.2.1-be4637c301-afbf004fb1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/flat-npm-5.0.2-12748102a5-12a1536ac7.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ws-npm-7.5.3-3a046a0b1a-423dc0d859.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions apps/console/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export type LoaderData = {
ENV: {
INTERNAL_GOOGLE_ANALYTICS_TAG: string
REMIX_DEV_SERVER_WS_PORT?: number
WALLET_CONNECT_PROJECT_ID: string
}
}

Expand Down Expand Up @@ -127,6 +128,7 @@ export const loader: LoaderFunction = async ({ request, context }) => {
avatarUrl,
PASSPORT_URL,
ENV: {
WALLET_CONNECT_PROJECT_ID,
INTERNAL_GOOGLE_ANALYTICS_TAG,
REMIX_DEV_SERVER_WS_PORT:
process.env.NODE_ENV === 'development'
Expand Down
14 changes: 8 additions & 6 deletions apps/console/app/routes/apps/$clientId/designer.beta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import Authentication, {
AuthenticationScreenDefaults,
} from '@proofzero/design-system/src/templates/authentication/Authentication'

import { createClient } from 'wagmi'
import { getDefaultClient } from 'connectkit'
import { createConfig } from 'wagmi'
import { getDefaultConfig } from 'connectkit'
import { Avatar } from '@proofzero/packages/design-system/src/atoms/profile/avatar/Avatar'
import IconPicker from '~/components/IconPicker'
import { Loader } from '@proofzero/design-system/src/molecules/loader/Loader'
Expand Down Expand Up @@ -50,10 +50,12 @@ import { ThemeContext } from '@proofzero/design-system/src/contexts/theme'
import { Helmet } from 'react-helmet'
import { notificationHandlerType } from '~/types'

const client = createClient(
// @ts-ignore
getDefaultClient({
const config = createConfig(
getDefaultConfig({
appName: 'Rollup',
walletConnectProjectId:
//@ts-ignore
typeof window !== 'undefined' && window.ENV.WALLET_CONNECT_PROJECT_ID,
})
)

Expand Down Expand Up @@ -819,7 +821,7 @@ export default () => {
.map((p) => p.key)}
mapperArgs={{
clientId: 'Foo',
wagmiClient: client,
wagmiConfig: config,
signData: null,
}}
radius={radius}
Expand Down
1 change: 1 addition & 0 deletions apps/console/bindings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ declare global {

const INTERNAL_CLOUDFLARE_ZONE_ID: string
const TOKEN_CLOUDFLARE_API: string
const WALLET_CONNECT_PROJECT_ID: string
}
6 changes: 3 additions & 3 deletions apps/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
"@remix-run/react": "1.14.0",
"@tailwindcss/forms": "0.5.3",
"bcryptjs": "2.4.3",
"connectkit": "1.2.0",
"connectkit": "1.4.0",
"cross-env": "7.0.3",
"ethers": "5.7.2",
"flowbite": "1.6.5",
"flowbite-react": "0.4.3",
"lodash": "4.17.21",
Expand All @@ -44,7 +43,8 @@
"react-helmet": "6.1.0",
"react-icons": "4.8.0",
"tiny-invariant": "1.3.1",
"wagmi": "0.11.7"
"viem": "0.3.36",
"wagmi": "1.0.6"
},
"devDependencies": {
"@babel/core": "7.20.2",
Expand Down
1 change: 1 addition & 0 deletions apps/passport/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const loader: LoaderFunction = async ({ request, context, params }) => {
flashes,
ENV: {
PROFILE_APP_URL: context.env.PROFILE_APP_URL,
WALLET_CONNECT_PROJECT_ID: context.env.WALLET_CONNECT_PROJECT_ID,
INTERNAL_GOOGLE_ANALYTICS_TAG:
context.env.INTERNAL_GOOGLE_ANALYTICS_TAG,
APIKEY_ALCHEMY_PUBLIC: context.env.APIKEY_ALCHEMY_PUBLIC,
Expand Down
14 changes: 8 additions & 6 deletions apps/passport/app/routes/authenticate/$clientId/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { redirect, json } from '@remix-run/cloudflare'

import { getAuthzCookieParams } from '~/session.server'
import type { ActionFunction, LoaderFunction } from '@remix-run/cloudflare'
import { createClient } from 'wagmi'
import { getDefaultClient } from 'connectkit'
import { createConfig } from 'wagmi'
import { getDefaultConfig } from 'connectkit'
import Authentication, {
AppProfile,
AuthenticationScreenDefaults,
Expand All @@ -24,11 +24,13 @@ import { Text } from '@proofzero/design-system/src/atoms/text/Text'
import { Avatar } from '@proofzero/packages/design-system/src/atoms/profile/avatar/Avatar'
import { Button } from '@proofzero/packages/design-system/src/atoms/buttons/Button'

const client = createClient(
// @ts-ignore
getDefaultClient({
const config = createConfig(
getDefaultConfig({
appName: 'Rollup',
autoConnect: true,
walletConnectProjectId:
// @ts-ignore
typeof window !== 'undefined' && window.ENV.WALLET_CONNECT_PROJECT_ID,
alchemyId:
// @ts-ignore
typeof window !== 'undefined' && window.ENV.APIKEY_ALCHEMY_PUBLIC,
Expand Down Expand Up @@ -188,7 +190,7 @@ export default () => {
displayKeys={displayKeys}
mapperArgs={{
clientId,
wagmiClient: client,
wagmiConfig: config,
signData,
navigate,
FormWrapperEl: ({ children, provider }) => (
Expand Down
1 change: 1 addition & 0 deletions apps/passport/bindings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ declare global {
PASSPORT_REDIRECT_URL: string
APIKEY_ALCHEMY_PUBLIC: string
REMIX_DEV_SERVER_WS_PORT: number
WALLET_CONNECT_PROJECT_ID: string

INTERNAL_GOOGLE_ANALYTICS_TAG: string

Expand Down
6 changes: 3 additions & 3 deletions apps/passport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"build-storybook": "npx tailwindcss -o ./app/styles/tailwind.css && build-storybook"
},
"dependencies": {
"@ethersproject/keccak256": "5.7.0",
"@proofzero/design-system": "*",
"@proofzero/platform-clients": "workspace:*",
"@proofzero/platform.access": "workspace:*",
Expand All @@ -30,7 +29,7 @@
"@remix-run/cloudflare-workers": "1.14.0",
"@remix-run/react": "1.14.0",
"@tailwindcss/forms": "0.5.3",
"connectkit": "1.2.0",
"connectkit": "1.4.0",
"csp-header": "5.1.0",
"flowbite": "1.6.5",
"flowbite-react": "0.4.3",
Expand All @@ -47,7 +46,8 @@
"remix-auth-oauth2": "1.5.0",
"remix-auth-twitter": "1.0.0",
"remix-utils": "6.3.0",
"wagmi": "0.11.7"
"viem": "0.3.36",
"wagmi": "1.0.6"
},
"devDependencies": {
"@babel/core": "^7.20.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/profile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"remix-auth-oauth2": "1.5.0",
"tw-elements": "1.0.0-alpha12",
"urns": "0.6.0",
"wagmi": "0.10.8"
"wagmi": "1.0.6"
},
"devDependencies": {
"@babel/core": "7.20.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import subtractLogo from '../../assets/subtract-logo.svg'

import { Text } from '../../atoms/text/Text'

import { WagmiConfig, Client } from 'wagmi'
import { WagmiConfig, Config } from 'wagmi'
import ConnectOAuthButton, {
OAuthProvider,
} from '../../atoms/buttons/connect-oauth-button'
Expand Down Expand Up @@ -120,7 +120,7 @@ export default ({

type DisplayKeyMapperArgs = {
clientId: string
wagmiClient: Client
wagmiConfig: Config
signData: any
walletConnectCallback?: (address: string) => void
walletSignCallback?: (
Expand All @@ -141,7 +141,7 @@ const displayKeyMapper = (
key: string,
{
clientId,
wagmiClient,
wagmiConfig,
signData,
walletConnectCallback = () => {},
walletSignCallback = () => {},
Expand All @@ -158,7 +158,7 @@ const displayKeyMapper = (
switch (key) {
case 'wallet':
el = (
<WagmiConfig client={wagmiClient}>
<WagmiConfig config={wagmiConfig}>
<ConnectButton
key={key}
signData={signData}
Expand Down
Loading

0 comments on commit 593ac50

Please sign in to comment.