This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import { ParticleNetwork } from '@particle-network/auth'; | |
| import { ParticleProvider } from '@particle-network/provider'; | |
| import { Manta } from '@particle-network/chains'; | |
| import { AAWrapProvider, SmartAccount } from '@particle-network/aa'; | |
| import { ethers } from 'ethers'; | |
| const config = { | |
| projectId: process.env.REACT_APP_PROJECT_ID, | |
| clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import { ParticleNetwork } from '@particle-network/auth'; | |
| import { ParticleProvider } from '@particle-network/provider'; | |
| import { TaikoJolnir } from '@particle-network/chains'; | |
| import { AAWrapProvider, SmartAccount } from '@particle-network/aa'; | |
| import { ethers } from 'ethers'; | |
| const config = { | |
| projectId: process.env.REACT_APP_PROJECT_ID, | |
| clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import { ParticleNetwork } from '@particle-network/auth'; | |
| import { ParticleProvider } from '@particle-network/provider'; | |
| import { Scroll } from '@particle-network/chains'; | |
| import { AAWrapProvider, SmartAccount } from '@particle-network/aa'; | |
| import { ethers } from 'ethers'; | |
| const config = { | |
| projectId: process.env.REACT_APP_PROJECT_ID, | |
| clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import { ParticleNetwork } from '@particle-network/auth'; | |
| import { ParticleProvider } from '@particle-network/provider'; | |
| import { Mantle } from '@particle-network/chains'; | |
| import { AAWrapProvider, SmartAccount } from '@particle-network/aa'; | |
| import { ethers } from 'ethers'; | |
| const config = { | |
| projectId: process.env.REACT_APP_PROJECT_ID, | |
| clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import { ParticleNetwork } from '@particle-network/auth'; | |
| import { ParticleProvider } from '@particle-network/provider'; | |
| import { Avalanche } from '@particle-network/chains'; | |
| import { AAWrapProvider, SmartAccount, SendTransactionMode } from '@particle-network/aa'; | |
| import { ethers } from 'ethers'; | |
| const config = { | |
| projectId: process.env.REACT_APP_PROJECT_ID, | |
| clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import { ParticleNetwork } from '@particle-network/auth'; | |
| import { ParticleProvider } from '@particle-network/provider'; | |
| import { EthereumGoerli } from '@particle-network/chains'; | |
| import { AAWrapProvider, SmartAccount, SendTransactionMode } from '@particle-network/aa'; | |
| import { ethers } from 'ethers'; | |
| const config = { | |
| projectId: process.env.REACT_APP_PROJECT_ID, | |
| clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import { ParticleNetwork } from '@particle-network/auth'; | |
| import { ParticleProvider } from '@particle-network/provider'; | |
| import { Viction } from '@particle-network/chains'; | |
| import { AAWrapProvider, SmartAccount } from '@particle-network/aa'; | |
| import { ethers } from 'ethers'; | |
| const config = { | |
| projectId: process.env.REACT_APP_PROJECT_ID, | |
| clientKey: process.env.REACT_APP_CLIENT_KEY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { AuthType } from '@particle-network/auth'; | |
| import type { ParticleProvider } from '@particle-network/provider'; | |
| import type { Chain } from '@rainbow-me/rainbowkit'; | |
| import { Address, Connector, ConnectorData } from 'wagmi'; | |
| declare type ParticleAuth = ConstructorParameters<typeof ParticleProvider>[0]; | |
| declare type ParticleOptions = { | |
| auth?: ParticleAuth; | |
| authType?: AuthType; | |
| }; | |
| export declare class ParticleConnector extends Connector<ParticleProvider, ParticleOptions> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react'; | |
| import ReactDOM from 'react-dom/client'; | |
| import { ethers } from 'ethers'; | |
| import { notification } from 'antd'; | |
| import { useEthereum, useConnect, useAuthCore, AuthCoreContextProvider } from '@particle-network/auth-core-modal'; | |
| import { AAWrapProvider, SmartAccount, SendTransactionMode } from '@particle-network/aa'; | |
| import { BerachainArtio } from '@particle-network/chains'; | |
| import './App.css'; | |
| const App = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* src/styles/root.css */ | |
| .particle-connect-ui-theme-ligth { | |
| --bg-color: #FFFFFF; | |
| --font-color1: #000000; | |
| --font-color2: rgba(60, 66, 66, 0.6); | |
| --font-color3: rgba(107, 113, 146, 1); | |
| --scoll-bar-color: rgba(0, 0, 0, 0.3); | |
| --hover-color: rgba(0, 0, 0, 0.3); | |
| --hover-color2: rgba(81, 119, 249, 0.05); | |
| --active-color: rgba(0, 0, 0, 1); |