Skip to content

Commit

Permalink
chore: renamed env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Sep 27, 2023
1 parent f30416e commit 5b9ac72
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion dapps/ModalEthers/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PROJECT_ID='YOUR_PROJECT_ID' #Get it from https://cloud.walletconnect.com/
ENV_PROJECT_ID='YOUR_PROJECT_ID' #Get it from https://cloud.walletconnect.com/
2 changes: 1 addition & 1 deletion dapps/ModalEthers/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function App(): JSX.Element {
</TouchableOpacity>
</View>
<WalletConnectModal
projectId={ConfigUtils.PROJECT_ID}
projectId={ConfigUtils.ENV_PROJECT_ID}
providerMetadata={ConfigUtils.providerMetadata}
sessionParams={ConfigUtils.sessionParams}
onCopyClipboard={onCopy}
Expand Down
3 changes: 1 addition & 2 deletions dapps/ModalEthers/src/types/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
declare module '@env' {
export const PROJECT_ID: string;
export const SENTRY_DSN: string;
export const ENV_PROJECT_ID: string;
}
4 changes: 2 additions & 2 deletions dapps/ModalEthers/src/utils/ConfigUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PROJECT_ID} from '@env';
import {ENV_PROJECT_ID} from '@env';
import {IProviderMetadata} from '@walletconnect/modal-react-native';

const providerMetadata: IProviderMetadata = {
Expand All @@ -23,7 +23,7 @@ const sessionParams = {
};

export default {
PROJECT_ID,
ENV_PROJECT_ID,
providerMetadata,
sessionParams,
};
5 changes: 3 additions & 2 deletions dapps/ModalUProvider/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PROJECT_ID='YOUR_PROJECT_ID' #Get it from https://cloud.walletconnect.com/
SENTRY_DSN='...'
ENV_PROJECT_ID='YOUR_ENV_PROJECT_ID' #Get it from https://cloud.walletconnect.com/
ENV_RELAY_URL=''
ENV_SENTRY_DSN='...'
4 changes: 2 additions & 2 deletions dapps/ModalUProvider/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import ConfigUtils from './utils/ConfigUtils';
import {RequestModal} from './components/RequestModal';

Sentry.init({
dsn: ConfigUtils.SENTRY_DSN,
dsn: ConfigUtils.ENV_SENTRY_DSN,
});

function App(): JSX.Element {
Expand Down Expand Up @@ -152,7 +152,7 @@ function App(): JSX.Element {
</TouchableOpacity>
</View>
<WalletConnectModal
projectId={ConfigUtils.PROJECT_ID}
projectId={ConfigUtils.ENV_PROJECT_ID}
providerMetadata={ConfigUtils.providerMetadata}
sessionParams={ConfigUtils.sessionParams}
onCopyClipboard={onCopy}
Expand Down
5 changes: 3 additions & 2 deletions dapps/ModalUProvider/src/types/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
declare module '@env' {
export const PROJECT_ID: string;
export const SENTRY_DSN: string;
export const ENV_PROJECT_ID: string;
export const ENV_RELAY_URL: string;
export const ENV_SENTRY_DSN: string;
}
6 changes: 3 additions & 3 deletions dapps/ModalUProvider/src/utils/ConfigUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PROJECT_ID, SENTRY_DSN} from '@env';
import {ENV_PROJECT_ID, ENV_SENTRY_DSN} from '@env';
import {IProviderMetadata} from '@walletconnect/modal-react-native';

const providerMetadata: IProviderMetadata = {
Expand All @@ -23,8 +23,8 @@ const sessionParams = {
};

export default {
PROJECT_ID,
SENTRY_DSN,
ENV_PROJECT_ID,
ENV_SENTRY_DSN,
providerMetadata,
sessionParams,
};
2 changes: 1 addition & 1 deletion dapps/ModalViem/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PROJECT_ID='YOUR_PROJECT_ID' #Get it from https://cloud.walletconnect.com/
ENV_PROJECT_ID='YOUR_PROJECT_ID' #Get it from https://cloud.walletconnect.com/
2 changes: 1 addition & 1 deletion dapps/ModalViem/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function App(): JSX.Element {
</TouchableOpacity>
</View>
<WalletConnectModal
projectId={ConfigUtils.PROJECT_ID}
projectId={ConfigUtils.ENV_PROJECT_ID}
providerMetadata={ConfigUtils.providerMetadata}
sessionParams={ConfigUtils.sessionParams}
onCopyClipboard={onCopy}
Expand Down
3 changes: 1 addition & 2 deletions dapps/ModalViem/src/types/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
declare module '@env' {
export const PROJECT_ID: string;
export const SENTRY_DSN: string;
export const ENV_PROJECT_ID: string;
}
4 changes: 2 additions & 2 deletions dapps/ModalViem/src/utils/ConfigUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PROJECT_ID} from '@env';
import {ENV_PROJECT_ID} from '@env';
import {IProviderMetadata} from '@walletconnect/modal-react-native';

const providerMetadata: IProviderMetadata = {
Expand All @@ -23,7 +23,7 @@ const sessionParams = {
};

export default {
PROJECT_ID,
ENV_PROJECT_ID,
providerMetadata,
sessionParams,
};

0 comments on commit 5b9ac72

Please sign in to comment.