Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
0e071390
Commit
0e071390
authored
Jan 12, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass wallet connect project id in envs
parent
33181abb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
.env.template
.env.template
+1
-0
README.md
README.md
+1
-0
config.ts
configs/app/config.ts
+3
-0
AddressContract.tsx
ui/address/AddressContract.tsx
+2
-4
No files found.
.env.template
View file @
0e071390
...
...
@@ -51,3 +51,4 @@ NEXT_PUBLIC_API_PORT=__PLACEHOLDER_FOR_NEXT_PUBLIC_API_PORT__
# external services config
NEXT_PUBLIC_SENTRY_DSN=__PLACEHOLDER_FOR_NEXT_PUBLIC_SENTRY_DSN__
NEXT_PUBLIC_AUTH0_CLIENT_ID=__PLACEHOLDER_FOR_NEXT_PUBLIC_AUTH0_CLIENT_ID__
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=__PLACEHOLDER_FOR_NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID__
README.md
View file @
0e071390
...
...
@@ -125,6 +125,7 @@ The app instance could be customized by passing following variables to NodeJS en
| NEXT_PUBLIC_SENTRY_DSN |
`string`
*(optional)*
| Client key for your Sentry.io app |
`<secret>`
|
| SENTRY_CSP_REPORT_URI |
`string`
*(optional)*
| URL for sending CSP-reports to your Sentry.io app |
`<secret>`
|
| NEXT_PUBLIC_AUTH0_CLIENT_ID |
`string`
*(optional)*
| Client id for
[
Auth0
](
https://auth0.com/
)
provider |
`<secret>`
|
| NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID |
`string`
| Project id for
[
WalletConnect
](
https://docs.walletconnect.com/2.0/web3modal/react/installation#obtain-project-id
)
integration |
`<secret>`
|
### Marketplace app configuration properties
...
...
configs/app/config.ts
View file @
0e071390
...
...
@@ -115,6 +115,9 @@ const config = Object.freeze({
showGasTracker
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_HOMEPAGE_SHOW_GAS_TRACKER
)
===
'
false
'
?
false
:
true
,
showAvgBlockTime
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_HOMEPAGE_SHOW_AVG_BLOCK_TIME
)
===
'
false
'
?
false
:
true
,
},
walletConnect
:
{
projectId
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID
),
},
});
export
default
config
;
ui/address/AddressContract.tsx
View file @
0e071390
...
...
@@ -43,10 +43,8 @@ export const currentChain: Chain = {
const
chains
=
[
currentChain
];
const
PROJECT_ID
=
'
b4ed81be141093911032944632465175
'
;
const
{
provider
}
=
configureChains
(
chains
,
[
walletConnectProvider
({
projectId
:
PROJECT_ID
}),
walletConnectProvider
({
projectId
:
appConfig
.
walletConnect
.
projectId
||
''
}),
]);
const
wagmiClient
=
createClient
({
autoConnect
:
true
,
...
...
@@ -69,7 +67,7 @@ const AddressContract = ({ tabs }: Props) => {
<
RoutedTabs
tabs=
{
tabs
}
variant=
"outline"
colorScheme=
"gray"
size=
"sm"
tabListProps=
{
TAB_LIST_PROPS
}
/>
</
ContractContextProvider
>
<
Web3Modal
projectId=
{
PROJECT_ID
}
projectId=
{
appConfig
.
walletConnect
.
projectId
}
ethereumClient=
{
ethereumClient
}
themeZIndex=
{
Number
(
modalZIndex
)
}
themeMode=
{
useColorModeValue
(
'
light
'
,
'
dark
'
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment