Frankencoin-ZCHF / frankencoin-dapp

Frankencoin Web App to interact with the Eco System
https://frankencoin.com/
MIT License
0 stars 4 forks source link

Package updated, Wagmi & Viem fixes, price caching bug fix #68

Closed samclassix closed 3 weeks ago

samclassix commented 3 weeks ago

Update Wagmi & Viem

NEW LOCKFILE

before: "viem": "^1.19.15", "wagmi": "^1.4.12"

after: "viem": "^2.13.3", "wagmi": "^2.9.8" "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0",

Updates all methods related to

Wagmi & Viem custom config

export const WAGMI_CONFIG = createConfig({
    chains: [WAGMI_CHAIN],
    transports: {
        [mainnet.id]: http("https://eth-mainnet.g.alchemy.com/v2/DQBbcLnV8lboEfoEpe8Z_io7u5UJfSVd"),
        [ethereum3.id]: http("https://ethereum3.3dotshub.com"),
    },
    connectors: [
        walletConnect({ projectId: WAGMI_PROJECT_ID, metadata: WAGMI_METADATA, showQrModal: false }),
        injected({ shimDisconnect: true }),
        coinbaseWallet({
            appName: WAGMI_METADATA.name,
            appLogoUrl: WAGMI_METADATA.icons[0],
        }),
    ],
    ssr: true,
    storage: createStorage({
        storage: cookieStorage,
    }),
});

Testnet integration

Memory stored private blockchain for development.

RPC: https://ethereum3.3dotshub.com
Blocktime: 10sec

Drop an address if you need ETH on this network.

Fixes

Lint and prettier updated

samclassix commented 3 weeks ago

For testing, adjust app.config.ts

@luziusmeisser @TaprootFreak