Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: xId to apiKey #760

Merged
merged 2 commits into from
Jul 25, 2022
Merged

refactor: xId to apiKey #760

merged 2 commits into from
Jul 25, 2022

Conversation

tmm
Copy link
Member

@tmm tmm commented Jul 25, 2022

Description

Switch alchemyProvider and infuraProvider to use a generic apiKey configuration option instead of alchemyId and infuraId.

import { alchemyProvider } from '@wagmi/core/providers/alchemy'
import { infuraProvider } from '@wagmi/core/providers/infura'

alchemyProvider({
-  alchemyId: 'yourAlchemyApiKey',
+  apiKey: 'yourAlchemyApiKey',
})

infuraProvider({
-  infuraId: 'yourInfuraApiKey',
+  apiKey: 'yourInfuraApiKey',
})

Additional Information

Your ENS/address: awkweb.eth

@vercel
Copy link

vercel bot commented Jul 25, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
wagmi ✅ Ready (Inspect) Visit Preview Jul 25, 2022 at 8:47PM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Jul 25, 2022

🦋 Changeset detected

Latest commit: 9a73b5f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@wagmi/core Minor
wagmi Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@subject026
Copy link

💯

Copy link
Member

@jxom jxom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got some useTransaction leakage, but looks good!

@tmm tmm merged commit d8af6bf into main Jul 25, 2022
@tmm tmm deleted the tmm/api-key branch July 25, 2022 20:48
@github-actions github-actions bot mentioned this pull request Jul 25, 2022
PabloSzx added a commit to PabloSzx/wagmi that referenced this pull request Aug 20, 2022
commit 809a58c
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Thu Aug 18 15:45:24 2022 +1000

    chore: version packages (wevm#859)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 062e8c7
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Thu Aug 18 15:37:29 2022 +1000

    fix: add reliable sepolia rpc

commit c3192d0
Author: skeith.eth <skeith@asterialabs.io>
Date:   Wed Aug 17 17:42:15 2022 +0800

    feat: add support for the Sepolia testnet (wevm#852)

    * Add the sepolia RPC and block explorer URLs

    * Add the sepolia chain ID and configuration

    * Add sepolia to chain reexports

    * Update chains test to include sepolia in the expected exports

    * Add a changeset summary

commit cf4f5ee
Author: Aaron Foster <50079365+pythonpete32@users.noreply.github.com>
Date:   Mon Aug 15 02:35:11 2022 +0400

    Update send-transaction.en-US.mdx (wevm#847)

    fix wrong variables

commit d5d113e
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Sat Aug 13 13:42:39 2022 -0400

    chore: version packages (wevm#836)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit e77dee6
Author: awkweb <tom@meagher.co>
Date:   Sat Aug 13 12:07:39 2022 -0400

    fix: mock connector entrypoint path (wevm#843)

commit 5560440
Author: ayush <ayush@raid.farm>
Date:   Sat Aug 13 21:12:18 2022 +0530

    fix typo in import (wevm#842)

commit 9655879
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Fri Aug 12 07:48:56 2022 +1000

    chore: update zustand (wevm#834)

    * chore: update zustand

    * chore: changeset

    * chore: update lockfile

    * fix: ts

    * tests: update snapshot

commit 3ae6d0f
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Thu Aug 11 15:32:30 2022 +1000

    chore: update to React Query 4 stable (wevm#833)

    * chore: Update to React Query 4 stable

    * chore: changeset

    * chore: update lockfile

commit 1b85e54
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Thu Aug 11 15:31:18 2022 +1000

    chore: update `@coinbase/wallet-sdk` (wevm#835)

    * chore: update @coinbase/wallet-sdk

    * chore: changeset

    * chore: update lockfile

commit cede227
Author: awkweb <tom@meagher.co>
Date:   Wed Aug 10 14:06:16 2022 -0400

    chore: add sponsor (wevm#832)

commit ba80a54
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Tue Aug 9 12:31:42 2022 -0400

    chore: version packages (wevm#824)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 10b8b78
Author: awkweb <tom@meagher.co>
Date:   Tue Aug 9 10:40:56 2022 -0400

    fix: add optimism goerli to chain lookup (wevm#823)

commit b49c6a3
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Fri Aug 5 19:17:25 2022 -0400

    chore: version packages (wevm#785)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 3d0c727
Author: Tom Meagher <tom@meagher.co>
Date:   Fri Aug 5 18:59:27 2022 -0400

    chore: update snapshots

commit 7e5cac7
Author: Alec Ananian <1013230+alecananian@users.noreply.github.com>
Date:   Fri Aug 5 15:57:21 2022 -0700

    feat: add custom name mapping for 1inch Wallet injected provider (wevm#817)

    * feat: add custom name mapping for 1inch Wallet injected provider

    * add changeset

    * refactor: reorder options

    Co-authored-by: Tom Meagher <tom@meagher.co>

commit 0892908
Author: Chase Adams <me@0xcadams.com>
Date:   Fri Aug 5 15:54:39 2022 -0700

    feat: added arbitrum goerli chain (wevm#778)

    * feat: added arbitrum goerli chain

    * fix: fixed RPC and added export

    * fix: fixed chain ID

    * chore: reorder chains

    * fix: added new arbitrum goerli alchemy endpoint

    * fix: fixed alchemy chain

    * fix: added multicall and infura rpc

    * chore: update symbol

    Co-authored-by: Tom Meagher <tom@meagher.co>

commit 0b34e56
Author: Vijay Michalik <vijay@superfluid.finance>
Date:   Fri Aug 5 23:51:24 2022 +0100

    Fix canonical native asset symbols to ETH (wevm#806)

    * Update canonical native asset symbols to ETH

    * Added changeset

    Co-authored-by: Vijay Michalik <vijay@Vijays-MacBook-Pro.local>

commit 1f4f372
Author: Tom Meagher <tom@meagher.co>
Date:   Fri Aug 5 18:46:12 2022 -0400

    chore: update sponsors link

commit c3fbdf5
Author: Tom Meagher <tom@meagher.co>
Date:   Fri Jul 29 18:22:17 2022 -0400

    chore: update changeset ci pr title

commit e9392f3
Author: klyap <kl.yap@hotmail.com>
Date:   Fri Jul 29 14:39:52 2022 -0700

    add Optimism Goerli chain (wevm#767)

    * add optimism goerli chain

    * refactor: swap block explorer

    Co-authored-by: Tom Meagher <tom@meagher.co>

commit 085df29
Author: awkweb <tom@meagher.co>
Date:   Wed Jul 27 10:53:00 2022 -0400

    tmm/fix 770 (wevm#771)

    docs: update examples

commit a2466d0
Author: Tom Meagher <tom@meagher.co>
Date:   Tue Jul 26 12:32:25 2022 -0400

    docs: release process

commit ffdfe6b
Author: Tom Meagher <tom@meagher.co>
Date:   Tue Jul 26 12:20:58 2022 -0400

    ci: add snapshot release workflow

commit 7279603
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Tue Jul 26 11:09:49 2022 -0400

    Version Packages (wevm#728)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 2b97e57
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Tue Jul 26 13:42:41 2022 +1000

    feat: prefer "reckless" > "dangerous" (wevm#764)

    * feat: reckless > dangerous

    * fix

commit 7797bc7
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Tue Jul 26 10:48:47 2022 +1000

    docs: fix typo on `useDeprecatedSendTransaction` page (wevm#763)

    fix: typo

commit b6b6613
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Tue Jul 26 09:24:37 2022 +1000

    feat: add deprecated hooks (wevm#757)

    * feat: add deprecated hooks

    * chore: add deprecated jsdoc

commit 959953d
Author: awkweb <tom@meagher.co>
Date:   Mon Jul 25 17:14:55 2022 -0400

    feat: useTransaction (wevm#759)

    * feat: useTransaction

    * chore: update changesets

commit d8af6bf
Author: awkweb <tom@meagher.co>
Date:   Mon Jul 25 16:48:58 2022 -0400

    refactor: xId to apiKey (wevm#760)

    * refactor: provider xId to apiKey

    * chore: fix transaction leakage

commit ccaeed5
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Tue Jul 26 06:26:15 2022 +1000

    fix: `useContractRead` unexpectedly returning `null` for falsy values (wevm#762)

    * fix: useContractRead query fn

    * chore: changeset

commit 291212d
Merge: e2cce88 eda7bce
Author: Tom Meagher <tom@meagher.co>
Date:   Sun Jul 24 21:05:09 2022 -0400

    Merge branch 'main' of https://github.com/tmm/wagmi

commit e2cce88
Author: Tom Meagher <tom@meagher.co>
Date:   Sun Jul 24 21:04:55 2022 -0400

    docs: add downloads to comparison

commit eda7bce
Author: farreldarian <62016900+farreldarian@users.noreply.github.com>
Date:   Mon Jul 25 07:45:19 2022 +0700

    Allow Null Persistence for SSR (wevm#714)

    Allow null persistence

    Co-authored-by: farreldarian <farreldarian@users.noreply.github.com>
    Co-authored-by: Tom Meagher <tom@meagher.co>

commit 0ca2afd
Author: awkweb <tom@meagher.co>
Date:   Sun Jul 24 14:12:40 2022 -0400

    docs: update readme

commit 4d0bfb0
Author: Tom Meagher <tom@meagher.co>
Date:   Sun Jul 24 14:05:22 2022 -0400

    docs: update contributing guide

commit 7c657fb
Author: Tom Meagher <tom@meagher.co>
Date:   Sat Jul 23 15:19:49 2022 -0400

    chore: use global community files

commit 019db91
Author: awkweb <tom@meagher.co>
Date:   Sat Jul 23 15:07:14 2022 -0400

    chore: sort imports (wevm#753)

commit 0243d53
Author: awkweb <tom@meagher.co>
Date:   Sat Jul 23 14:30:35 2022 -0400

    test: switch to vitest (wevm#752)

commit 97c250c
Author: awkweb <tom@meagher.co>
Date:   Fri Jul 22 18:01:38 2022 -0400

    test: switch to anvil (wevm#751)

    * test: switch to anvil

    * test: fix flaky tests

    * test: update snapshots

commit 9af2a1d
Author: Srujan Gurram <52039218+Royal-lobster@users.noreply.github.com>
Date:   Fri Jul 22 19:02:59 2022 +0530

    Fixes error message missing closing double quote (wevm#746)

commit 131d7ef
Author: Mark Dalgleish <mark.john.dalgleish@gmail.com>
Date:   Fri Jul 22 15:11:24 2022 +1000

    docs: fix stale callback in SIWE example (wevm#745)

commit fffb24f
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Fri Jul 22 11:05:38 2022 +1000

    chore: plug me (wevm#744)

commit d70c115
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Thu Jul 21 08:59:56 2022 +1000

    Prepare Hooks (wevm#658)

    * wip: eager send transaction

    * wip: useSendTransaction -> useSendTransactionLazy

    * wip: useContractWrite -> useContractWriteLazy

    * wip

    * wip

    * Delete .gitignore

    * Delete gm-abi.json

    * wip: eager -> prepare

    * fix type issues

    * fixup tests

    * wip: use deepEqual from @wagmi/core

    * wip: split useContractWritePrepared

    * tests: prepareContractTransaction, writeContractPrepared

    * tests: useContractWritePrepared, usePrepareContractTransaction

    * chore: add comments

    * WIP

    * docs

    * docs: resolve links

    * remove generated .vercel

    * remove .only

    * tests: update snapshots

    * WIP

    * WIP

    * WIP

    * wipping while watching wimbledon

    * WIP

    * WIP

    * WIP

    * chore: docs

    * WIP

    * WIP

    * WIP

    * WIP

    * WIP

    * WIP

    * WIP

    * wip: add send transaction example

    * wip: more docs

    * wip: refactor docs

    * wip: fix docs

    * wip: update docs

    * wip: update docs

    * wip: docs

    * chore: pr comments

    * docs: migration guide

    * docs: fix links

    * docs: fix

    * chore: refactor

    * invalidate build cache

    * chore: merge 0.5.x into main

    * chore: fix lockfile

    * test: rename test

    * omit cache suffix

    Co-authored-by: Tom Meagher <tom@meagher.co>

commit c2295a5
Author: awkweb.eth <tom@meagher.co>
Date:   Wed Jul 20 17:02:02 2022 -0400

    fix: balance formatting for tokens (wevm#739)

commit 7c5f72b
Author: awkweb <tom@meagher.co>
Date:   Wed Jul 20 13:50:13 2022 -0400

    test: clean up websockets (wevm#738)

commit 26f82b0
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Wed Jul 20 20:53:55 2022 +1000

    chore: merge 0.5.x into main

commit 2958de0
Author: Tom Meagher <tom@meagher.co>
Date:   Tue Jul 19 20:51:23 2022 -0400

    chore: update project ens name

commit 7c2fa04
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Wed Jul 20 10:24:00 2022 +1000

    fix: make chain aware providers great again (wevm#734)

    * fix: make chain aware providers great again

    * Add changeset

    * fix: useWebSocketProvider

commit 2128e04
Author: awkweb <tom@meagher.co>
Date:   Tue Jul 19 19:50:22 2022 -0400

    chore: move to org (wevm#735)

commit 6232487
Author: awkweb <tom@meagher.co>
Date:   Tue Jul 19 18:00:03 2022 -0400

    feat: add mock connector entrypoint (wevm#733)

commit ac3b9b8
Author: awkweb <tom@meagher.co>
Date:   Mon Jul 18 22:05:05 2022 -0400

    chore: remerge wevm#722 (wevm#727)

commit dfe614c
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Mon Jul 18 18:09:07 2022 -0400

    Version Packages (wevm#716)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 4e7b363
Author: awkweb <tom@meagher.co>
Date:   Mon Jul 18 18:07:38 2022 -0400

    Revert "fix: polling interval for multiple providers" (wevm#726)

    Revert "fix: polling interval for multiple providers (wevm#722)"

    This reverts commit 23725e4.

commit b976920
Author: awkweb <tom@meagher.co>
Date:   Mon Jul 18 18:02:45 2022 -0400

    fix: lock query version (wevm#725)

commit 23725e4
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Tue Jul 19 07:18:24 2022 +1000

    fix: polling interval for multiple providers (wevm#722)

    * fix: polling interval for multiple providers

    * fix

    Co-authored-by: awkweb  <tom@meagher.co>

    Co-authored-by: awkweb  <tom@meagher.co>

commit abea25f
Author: awkweb <tom@meagher.co>
Date:   Sun Jul 17 15:19:39 2022 -0400

    refactor: clean up (wevm#721)

    * fix(core): stay connected to existing connector when connect fails

    * refactor: restrict global types, make chains tree shakeable

    * fix: autoconnecting status

    * feat: add name to fetch token

    * chore: changeset

commit 08b0113
Author: moxey.eth <jakemoxey@gmail.com>
Date:   Sun Jul 17 15:26:50 2022 +1000

    fix: undefined query data (wevm#713)

    fix: fix undefined query data issue

commit ed94842
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Tue Jul 12 18:08:15 2022 -0400

    Version Packages (wevm#699)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit 56e468c
Author: Mark Dalgleish <mark.john.dalgleish@gmail.com>
Date:   Mon Jul 11 16:25:13 2022 +1000

    fix: update Vite import workaround for Coinbase Wallet SDK (wevm#693)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants