Giter Site home page Giter Site logo

particle-network / particle-web-demo Goto Github PK

View Code? Open in Web Editor NEW
60.0 8.0 22.0 3.63 MB

Particle Network Web SDK Demo.

Home Page: https://web-demo.particle.network/

License: Apache License 2.0

TypeScript 81.01% JavaScript 3.19% HTML 3.26% CSS 2.74% Vue 0.96% SCSS 8.84%
web3 web3js arbitrum avalanche bsc ethereum evm evm-chains fantom heco

particle-web-demo's People

Contributors

chaichuanfa avatar pantaovay avatar tabascoatw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

particle-web-demo's Issues

demo vue doesn't work

Hello,

I've cloned the vuejs demo part but it doesn't work for me, I get this error 'socket.ts:19 Uncaught ReferenceError: global is not defined at socket.ts:19:12'
Did I forget something?
Can you help me?
Your solution was recommended to me for the creation of my dapp and I'm very interested in using particle.network.

Can't switch chain

Click any network and click "switch network" in metamask, will should error below, and switch chain fail.
Screenshot 2023-04-11 at 20 49 45

Update wagmi starter with Wagmi v2

The current example uses v1 and it's not compatible with Wagmi v2. Quickly looking at the migration guides on Wagmi website didn't help much to be honest.

Thanks!

Do not working with RainbowKitAuthenticationProvider

Hello. I can't find "rainbowkit-ext", so making issue here.

We use RainbowKitAuthenticationProvider for our custom authorization: verify Ethereum message and log in or not.
Everything is work with default wallets by Rainbow Kit: Metamask, Trust Wallet, WalletConnect protocol also good.

But particle wallets not working with these approach. If we remove RainbowKitAuthenticationProvider - particle wallet connecting. Problems appear when we need to verify with send and sign message. There was "Error signing message. Please retry" in Rainbow Kit. Error from particle: "Unknown RPC error: Details: User not login, Version: [email protected]".

Interesting, that if I sign in with just email and code, and want to verify and sign message - everything works :)
But, if I use particleWallet({ chains, authType: "google" }) or apple or etc, it is not working.
Also, there is another error when I try to sign in with particleWallet({ chains }) and choose google or apple etc, there was an error "System error, Param not found."

Please, help :)

how to use switchChain to change network?

When i use switchChain(ChainInfo) to switch,it shows error like this:
TypeError: Cannot read properties of undefined (reading 'cachedProviderId').
My codes:
const { switchChain } = useConnectKit()
const { renderChains } = useSwitchChains()
const toChangeNetwork = ()=>{
switchChain(renderChains[1])
}
in App.tsx:
<ModalProvider
options={{
projectId: process.env.NEXT_PUBLIC_PARTICAL_PROJECT_ID,
clientKey: process.env.NEXT_PUBLIC_PARTICAL_CLIENT_KEY,
appId: process.env.NEXT_PUBLIC_PARTICAL_APP_ID,
chains: [
Ethereum,
EthereumGoerli
],
particleWalletEntry: {
displayWalletEntry: false
},
securityAccount: {
promptSettingWhenSign: 1,
promptMasterPasswordSettingWhenLogin: 1
},
wallets: evmWallets({
projectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID,
showQrModal: false
})
}}
theme="dark"
language="en"
walletSort={['Wallet', 'Particle Auth']}
particleAuthSort={['email', 'google']}
>
......

web-demo getting 8005 error (User not login error)

  • Issue: Keep showing "User not login" error toast while try to make contract call, check in log it's 8005 error
  • Environment: localhost:3000 (by running yarn start:web-demo)
  • Side notes
    • I can do the same contract call with same parameters on the official site https://web-demo.particle.network/ using the same account
    • I've setup .env file properly from Particle dashboard data
2023-09-28.2.25.47.mov

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.