Skip to content

Commit

Permalink
fixup! feat: deploy beta
Browse files Browse the repository at this point in the history
  • Loading branch information
RasenGUY committed Dec 4, 2023
1 parent 2640fef commit 9de2eac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ VITE_REDUX_DEBUG=true
GSAP_TOKEN=5b8296c2-d882-401b-be86-87707a83f99d
NPM_TOKEN=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
VITE_BACKEND_API_URL=https://app.wega.fun/api
VITE_RPC_PROVIDER_ALCHEMY=y9Gx-Wglr_8PQ67heuNUZ18rwoUEip9B
VITE_RPC_PROVIDER_ALCHEMY=zqj7FXkgFTrZjhGggaNd5qEeQmMjjdRl
VITE_RPC_PROVIDER_ALCHEMY_MUMBAI=y9Gx-Wglr_8PQ67heuNUZ18rwoUEip9B
VITE_WALLET_CONNECT_ID=210ab6fbbd6f9d07fd69a357b4c39a13

# FIREBASE CONFIG
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }}
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
VITE_BACKEND_API_URL: ${{ vars.VITE_BACKEND_API_URL }}
VITE_RPC_PROVIDER_ALCHEMY_MUMBAI: ${{ secrets.VITE_RPC_PROVIDER_ALCHEMY_MUMBAI }}

run: |
echo "REF=$REF"
Expand Down Expand Up @@ -73,6 +74,7 @@ jobs:
VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }}
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
VITE_BACKEND_API_URL: ${{ vars.VITE_BACKEND_API_URL }}
VITE_RPC_PROVIDER_ALCHEMY_MUMBAI: ${{ secrets.VITE_RPC_PROVIDER_ALCHEMY_MUMBAI }}

run: |
# cp .env.qa .env
Expand Down
8 changes: 5 additions & 3 deletions src/libs/wagmi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@ import '@rainbow-me/rainbowkit/styles.css';
import { getDefaultWallets, connectorsForWallets } from '@rainbow-me/rainbowkit';
import { configureChains, createConfig } from 'wagmi';
import { getNetwork, Chain, waitForTransaction, writeContract, readContract, prepareWriteContract } from '@wagmi/core';
import { localhost, polygonMumbai } from 'wagmi/chains';
import { polygonMumbai } from 'wagmi/chains';
import { alchemyProvider } from 'wagmi/providers/alchemy';
import { publicProvider } from 'wagmi/providers/public';
import { HexishString } from '../../models';
import { tokenConfig, escrowConfig, gameControllerConfig, wegaRandomizerControllerConfig } from "../../utils";
import { feeManagerConfig } from '../../utils/abis';
import { defaultNetwork } from '../../models/constants';



const { chains, publicClient } = configureChains(
[polygonMumbai, localhost],
[defaultNetwork, polygonMumbai],
[
alchemyProvider({ apiKey: import.meta.env.VITE_RPC_PROVIDER_ALCHEMY as string }),
publicProvider()
alchemyProvider({ apiKey: import.meta.env.VITE_RPC_PROVIDER_ALCHEMY_MUMBAI as string }),
publicProvider(),
]
);
const projectId = import.meta.env.VITE_WALLET_CONNECT_ID as string;
Expand Down

0 comments on commit 9de2eac

Please sign in to comment.