Skip to content

Commit

Permalink
fix(index): gpt recipient (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleydon authored Oct 27, 2023
1 parent 865005f commit 1ba25d2
Show file tree
Hide file tree
Showing 8 changed files with 2,135 additions and 2,495 deletions.
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@

# dependencies
node_modules
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.yarn
.pnp.*

# testing
Expand Down
4 changes: 1 addition & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
compressionLevel: mixed

nmMode: hardlinks-local
nmMode: hardlinks-global

nodeLinker: node-modules

Expand Down
6 changes: 3 additions & 3 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
"date-fns": "^2.30.0",
"decimal.js": "^10.4.3",
"eslint": "^8.52.0",
"eslint-config-next": "^13.5.6",
"eslint-config-next": "^14.0.0",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"graphql-tag": "^2.12.6",
"jotai": "^2.5.0",
"jotai-devtools": "^0.7.0",
"lodash-es": "^4.17.21",
"mutative": "^0.6.0",
"next": "^13.5.6",
"next": "^14.0.0",
"notistack": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -61,7 +61,7 @@
"typescript": "^5.2.2"
},
"devDependencies": {
"@next/bundle-analyzer": "^13.5.6",
"@next/bundle-analyzer": "^14.0.0",
"@svgr/webpack": "^8.1.0",
"@swc-jotai/debug-label": "^0.1.0",
"@swc-jotai/react-refresh": "^0.1.0",
Expand Down
5 changes: 3 additions & 2 deletions apps/index/components/GPT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ const GPT: FC = () => {
data != null &&
fromChain != null &&
toChain != null &&
data.params.recipient == null &&
fromChain.chainType === toChain.chainType
) {
if (fromChain.chainType === 'Evm' && evmAccount != null) {
if (data.params.recipient != null) {
setDestinationAccount(data.params.recipient)
} else if (fromChain.chainType === 'Evm' && evmAccount != null) {
setDestinationAccount(evmAccount)
} else if (fromChain.chainType === 'Sub' && polkadotAccount != null) {
setDestinationAccount(polkadotAccount.address)
Expand Down
6 changes: 3 additions & 3 deletions apps/index/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@mui/icons-material": "^5.14.15",
"@mui/lab": "5.0.0-alpha.150",
"@mui/material": "^5.14.15",
"@next/bundle-analyzer": "^13.5.6",
"@next/bundle-analyzer": "^14.0.0",
"@phala/index": "^1.0.39",
"@phala/lib": "workspace:^",
"@phala/store": "workspace:^",
Expand All @@ -33,7 +33,7 @@
"jotai": "^2.5.0",
"jotai-devtools": "^0.7.0",
"lodash-es": "^4.17.21",
"next": "^13.5.6",
"next": "^14.0.0",
"next-images": "^1.8.5",
"notistack": "^3.0.1",
"react": "^18.2.0",
Expand All @@ -51,7 +51,7 @@
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"eslint": "^8.52.0",
"eslint-config-next": "^13.5.6",
"eslint-config-next": "^14.0.0",
"typescript": "^5.2.2"
}
}
1 change: 1 addition & 0 deletions apps/subbridge/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const withImages = require('next-images')

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
transpilePackages: ['jotai-devtools'],
images: {disableStaticImages: true},
env: {CONTEXT: process.env.CONTEXT},
Expand Down
8 changes: 4 additions & 4 deletions apps/subbridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev -p 3002",
"build": "next build && next export",
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint:fix": "next lint --fix"
Expand All @@ -20,7 +20,7 @@
"@mui/icons-material": "^5.14.15",
"@mui/lab": "5.0.0-alpha.150",
"@mui/material": "^5.14.15",
"@next/bundle-analyzer": "^13.5.6",
"@next/bundle-analyzer": "^14.0.0",
"@phala/lib": "workspace:^",
"@phala/store": "workspace:^",
"@phala/util": "workspace:^",
Expand All @@ -34,7 +34,7 @@
"ethers": "^5.7.2",
"jotai": "^2.5.0",
"jotai-devtools": "^0.7.0",
"next": "^13.5.6",
"next": "^14.0.0",
"next-images": "^1.8.5",
"notistack": "^3.0.1",
"react": "^18.2.0",
Expand All @@ -48,7 +48,7 @@
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"eslint": "^8.52.0",
"eslint-config-next": "^13.5.6",
"eslint-config-next": "^14.0.0",
"typescript": "^5.2.2"
}
}
Loading

3 comments on commit 1ba25d2

@vercel
Copy link

@vercel vercel bot commented on 1ba25d2 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

analytics – ./apps/analytics

analytics-git-main-phala.vercel.app
analytics-plum.vercel.app
analytics-phala.vercel.app
analytics.phala.network

@vercel
Copy link

@vercel vercel bot commented on 1ba25d2 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

subbridge – ./apps/subbridge

subbridge-git-main-phala.vercel.app
subbridge-phala.vercel.app
subbridge.vercel.app
subbridge.io
www.subbridge.io

@vercel
Copy link

@vercel vercel bot commented on 1ba25d2 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

index – ./apps/index

index-git-main-phala.vercel.app
index-phala.vercel.app
phala-index.vercel.app

Please sign in to comment.