Skip to content

Commit

Permalink
chore: wevm
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Nov 29, 2023
1 parent 99016a3 commit f9aa3af
Show file tree
Hide file tree
Showing 87 changed files with 670 additions and 703 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"changelog": [
"@changesets/changelog-github",
{
"repo": "wagmi-dev/viem"
"repo": "wevm/viem"
}
],
"commit": false,
Expand Down
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

Thanks for your interest in contributing to viem! Please take a moment to review this document **before submitting a pull request.**

If you want to contribute, but aren't sure where to start, you can create a [new discussion](https://github.com/wagmi-dev/viem/discussions).
If you want to contribute, but aren't sure where to start, you can create a [new discussion](https://github.com/wevm/viem/discussions).

If you are contributing to add a new chain to `viem/chains`, please read the [Chains section](#chains).

> **Note**
>
> **Please ask first before starting work on any significant new features.**
>
> It's never a fun experience to have your pull request declined after investing time and effort into a new feature. To avoid this from happening, we request that contributors create a [feature request](https://github.com/wagmi-dev/viem/discussions/new?category=ideas) to first discuss any API changes or significant new ideas.
> It's never a fun experience to have your pull request declined after investing time and effort into a new feature. To avoid this from happening, we request that contributors create a [feature request](https://github.com/wevm/viem/discussions/new?category=ideas) to first discuss any API changes or significant new ideas.
<br>

Expand All @@ -34,13 +34,13 @@ This guide is intended to help you get started with contributing. By following t
To start contributing to the project, clone it to your local machine using git:

```bash
git clone https://github.com/wagmi-dev/viem.git --recurse-submodules
git clone https://github.com/wevm/viem.git --recurse-submodules
```

Or the [GitHub CLI](https://cli.github.com):

```bash
gh repo clone wagmi-dev/viem -- --recurse-submodules
gh repo clone wevm/viem -- --recurse-submodules
```

<div align="right">
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! The more info you provide, the more we can help you. If you are a [Sponsor](https://github.com/sponsors/wagmi-dev?metadata_campaign=gh_issue), your issues are prioritized.
Thanks for taking the time to fill out this bug report! The more info you provide, the more we can help you. If you are a [Sponsor](https://github.com/sponsors/wevm?metadata_campaign=gh_issue), your issues are prioritized.
- type: checkboxes
attributes:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Ask Question
url: https://github.com/wagmi-dev/viem/discussions/new?category=q-a
url: https://github.com/wevm/viem/discussions/new?category=q-a
about: Ask questions and discuss with other community members
- name: Request Feature
url: https://github.com/wagmi-dev/viem/discussions/new?category=ideas
url: https://github.com/wevm/viem/discussions/new?category=ideas
about: Requests features or brainstorm ideas for new functionality
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The `examples/` directory is a growing & living folder, and open for contributio

Each example has its own isolated [StackBlitz](https://new.viem.sh) project, so folks can easily play around with the example.

The below list is not exhaustive, and is a work in progress. If you have an idea for an example that is not listed below, please open a [discussion thread](https://github.com/wagmi-dev/viem/discussions/new?category=feature-request&title=Example%20Request:) proposing your idea. If you wish to take on an example that is not completed, go ahead!
The below list is not exhaustive, and is a work in progress. If you have an idea for an example that is not listed below, please open a [discussion thread](https://github.com/wevm/viem/discussions/new?category=feature-request&title=Example%20Request:) proposing your idea. If you wish to take on an example that is not completed, go ahead!

- Blocks
- [x] Fetching Blocks
Expand Down
2 changes: 1 addition & 1 deletion examples/_template/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# _REPLACE ME_ Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/PATH/TO/EXAMPLE/DIR)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/PATH/TO/EXAMPLE/DIR)
2 changes: 1 addition & 1 deletion examples/blocks_fetching-blocks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

An example of fetching block numbers & blocks in viem.

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks_fetching-blocks)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_fetching-blocks)
2 changes: 1 addition & 1 deletion examples/blocks_watching-blocks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

An example of watching block numbers & blocks in viem.

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks_watching-blocks)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_watching-blocks)
2 changes: 1 addition & 1 deletion examples/clients_public-client/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Public Client Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/clients_public-client)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/clients_public-client)
2 changes: 1 addition & 1 deletion examples/clients_wallet-client/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Wallet Client Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/clients_wallet-client)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/clients_wallet-client)
2 changes: 1 addition & 1 deletion examples/contracts_deploying-contracts/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Deploying Contracts Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/contracts_deploying-contracts)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_deploying-contracts)
2 changes: 1 addition & 1 deletion examples/contracts_multicall/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Multicall Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/contracts_multicall)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_multicall)
2 changes: 1 addition & 1 deletion examples/contracts_reading-contracts/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Reading Contracts Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/contracts_reading-contracts)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_reading-contracts)
2 changes: 1 addition & 1 deletion examples/contracts_writing-to-contracts/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Contract Writes Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/contracts_writing-to-contracts)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts_writing-to-contracts)
2 changes: 1 addition & 1 deletion examples/ens/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# ENS Examples

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/ens)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/ens)
2 changes: 1 addition & 1 deletion examples/logs_block-event-logs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Block Event Logs Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/logs_block-event-logs)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/logs_block-event-logs)
2 changes: 1 addition & 1 deletion examples/logs_event-logs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Event Logs Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/logs_event-logs)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/logs_event-logs)
2 changes: 1 addition & 1 deletion examples/signing_typed-data/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

### Patch Changes

- Updated dependencies [[`5456490`](https://github.com/wagmi-dev/viem/commit/545649093422fb14a39418a7199766d033c9e175)]:
- Updated dependencies [[`5456490`](https://github.com/wevm/viem/commit/545649093422fb14a39418a7199766d033c9e175)]:
- [email protected]
2 changes: 1 addition & 1 deletion examples/signing_typed-data/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Sign Typed Data Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/signing_typed-data)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/signing_typed-data)
2 changes: 1 addition & 1 deletion examples/transactions_fetching-transactions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

An example of fetching transactions and receipts in viem.

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/transactions_fetching-transactions)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_fetching-transactions)
2 changes: 1 addition & 1 deletion examples/transactions_sending-transactions/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Sending Transactions Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/transactions_sending-transactions)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions_sending-transactions)
2 changes: 1 addition & 1 deletion examples/walletconnect/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Public Client Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/walletconnect)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/wevm/viem/tree/main/examples/walletconnect)
10 changes: 5 additions & 5 deletions site/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default defineConfig({
},

editLink: {
pattern: 'https://github.com/wagmi-dev/viem/edit/main/site/:path',
pattern: 'https://github.com/wevm/viem/edit/main/site/:path',
text: 'Edit this page on GitHub',
},

Expand All @@ -77,7 +77,7 @@ export default defineConfig({
{ text: 'Docs', link: '/docs/getting-started', activeMatch: '/docs' },
{
text: 'Examples',
link: 'https://github.com/wagmi-dev/viem/tree/main/examples',
link: 'https://github.com/wevm/viem/tree/main/examples',
},
{
text: pkg.version,
Expand All @@ -90,11 +90,11 @@ export default defineConfig({
},
{
text: 'Changelog',
link: 'https://github.com/wagmi-dev/viem/blob/main/src/CHANGELOG.md',
link: 'https://github.com/wevm/viem/blob/main/src/CHANGELOG.md',
},
{
text: 'Contributing',
link: 'https://github.com/wagmi-dev/viem/blob/main/.github/CONTRIBUTING.md',
link: 'https://github.com/wevm/viem/blob/main/.github/CONTRIBUTING.md',
},
],
},
Expand All @@ -107,7 +107,7 @@ export default defineConfig({
siteTitle: false,

socialLinks: [
{ icon: 'github', link: 'https://github.com/wagmi-dev/viem' },
{ icon: 'github', link: 'https://github.com/wevm/viem' },
],
},

Expand Down
2 changes: 1 addition & 1 deletion site/.vitepress/theme/components/HomeSponsors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { sponsors } from '../sponsors'
<VPButton
theme="sponsor"
text="Become a sponsor"
href="https://github.com/sponsors/wagmi-dev"
href="https://github.com/sponsors/wevm"
/>
</div>
</div>
Expand Down
36 changes: 18 additions & 18 deletions site/.vitepress/theme/sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const sponsors = [
{
name: 'Paradigm',
url: 'https://paradigm.xyz',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/paradigm-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-light.svg',
},
],
},
Expand All @@ -29,17 +29,17 @@ export const sponsors = [
{
name: 'LooksRare',
url: 'https://looksrare.org',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/looksrare-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/looksrare-light.svg',
},
{
name: 'WalletConnect',
url: 'https://walletconnect.com',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/walletconnect-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/walletconnect-light.svg',
},
{
name: 'Stripe',
url: 'https://www.stripe.com',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/stripe-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/stripe-light.svg',
},
],
},
Expand All @@ -50,17 +50,17 @@ export const sponsors = [
{
name: 'Family',
url: 'https://twitter.com/family',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/family-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/family-light.svg',
},
{
name: 'Context',
url: 'https://twitter.com/context',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/context-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/context-light.svg',
},
{
name: 'PartyDAO',
url: 'https://twitter.com/prtyDAO',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/partydao-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/partydao-light.svg',
},
],
},
Expand All @@ -70,17 +70,17 @@ export const sponsors = [
{
name: 'SushiSwap',
url: 'https://www.sushi.com',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/sushi-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/sushi-light.svg',
},
{
name: 'Dynamic',
url: 'https://www.dynamic.xyz',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/dynamic-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/dynamic-light.svg',
},
{
name: 'BitKeep',
url: 'https://bitkeep.com',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/bitkeep-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/bitkeep-light.svg',
},
],
},
Expand All @@ -90,17 +90,17 @@ export const sponsors = [
{
name: 'Privy',
url: 'https://privy.io',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/privy-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/privy-light.svg',
},
{
name: 'Spruce',
url: 'https://spruceid.com',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/spruce-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/spruce-light.svg',
},
{
name: 'rollup.id',
url: 'https://rollup.id',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/rollup.id-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/rollup.id-light.svg',
},
],
},
Expand All @@ -110,17 +110,17 @@ export const sponsors = [
{
name: 'PancakeSwap',
url: 'https://pancakeswap.finance',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/pancake-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pancake-light.svg',
},
{
name: 'Celo',
url: 'https://celo.org',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/celo-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/celo-light.svg',
},
{
name: 'Rainbow',
url: 'https://rainbow.me',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/rainbow-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/rainbow-light.svg',
},
],
},
Expand All @@ -130,12 +130,12 @@ export const sponsors = [
{
name: 'Pimlico',
url: 'https://pimlico.io',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/pimlico-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pimlico-light.svg',
},
{
name: 'Zora',
url: 'https://zora.co',
img: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/zora-light.svg',
img: 'https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zora-light.svg',
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions site/docs/actions/public/getBlock.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ const block = await publicClient.getBlock({

## Example

Check out the usage of `getBlock` in the live [Fetching Blocks Example](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks_fetching-blocks) below.
Check out the usage of `getBlock` in the live [Fetching Blocks Example](https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_fetching-blocks) below.

<iframe frameborder="0" width="100%" height="500px" src="https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks_fetching-blocks?embed=1&file=index.ts&hideNavigation=1&hideDevTools=true&terminalHeight=0&ctl=1"></iframe>
<iframe frameborder="0" width="100%" height="500px" src="https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_fetching-blocks?embed=1&file=index.ts&hideNavigation=1&hideDevTools=true&terminalHeight=0&ctl=1"></iframe>

## JSON-RPC Method

Expand Down
4 changes: 2 additions & 2 deletions site/docs/actions/public/getBlockNumber.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ By default, block numbers are cached for the period of the [Client's `cacheTime`

## Example

Check out the usage of `getBlockNumber` in the live [Fetching Blocks Example](https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks_fetching-blocks) below.
Check out the usage of `getBlockNumber` in the live [Fetching Blocks Example](https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_fetching-blocks) below.

<iframe frameborder="0" width="100%" height="500px" src="https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks_fetching-blocks?embed=1&file=index.ts&hideNavigation=1&hideDevTools=true&terminalHeight=0&ctl=1"></iframe>
<iframe frameborder="0" width="100%" height="500px" src="https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks_fetching-blocks?embed=1&file=index.ts&hideNavigation=1&hideDevTools=true&terminalHeight=0&ctl=1"></iframe>

## JSON-RPC Method

Expand Down
Loading

0 comments on commit f9aa3af

Please sign in to comment.