Skip to content

Commit

Permalink
Merge pull request #42 from omahs/patch-1
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
jlin27 authored Jan 13, 2025
2 parents e8c5355 + ee44a3a commit fcc8dad
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gasless-next-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This guide will walk-through a demo app that demonstrates best practices when im

An example ERC-20 swap application built on [Next.js 13](https://nextjs.org/) with [0x Gasless API](https://0x.org/docs/tx-relay-api/introduction). It covers best practices when implementing gasless approvals and swap functionality into your dApp or workflow.

The principles covered are are the same ones used by production-level dApps, such as in the [Matcha Auto](https://help.matcha.xyz/en/articles/7939087-what-is-matcha-auto) feature of [Matcha.xyz](https://matcha.xyz/), in which Matcha submits the transactions and handles the gas on users behalf.
The principles covered are the same ones used by production-level dApps, such as in the [Matcha Auto](https://help.matcha.xyz/en/articles/7939087-what-is-matcha-auto) feature of [Matcha.xyz](https://matcha.xyz/), in which Matcha submits the transactions and handles the gas on users behalf.

This demo showcases trading USDC (a gasless approved token that is on the Polygon-supported sell list) for WMATIC (a non-gasless approved token). An expanded version of this app that handles more token support is coming soon. Read more about tokens supported by Gasless API [here](https://0x.org/docs/tx-relay-api/guides/build-a-dapp-with-tx-relay-api#-token-lists).

Expand Down
2 changes: 1 addition & 1 deletion gasless-v2-headless-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Demonstrates the following on Base mainnet:

## Usage

1. Create an `.env` file and setup the required environment variables (your Etheruem private keys & 0x API key).
1. Create an `.env` file and setup the required environment variables (your Ethereum private keys & 0x API key).

```sh
cp .env.example .env
Expand Down
4 changes: 2 additions & 2 deletions swap-headless-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Demonstrates the following on Base mainnet:

## Usage

1. Create an `.env` file and setup the required environment variables (your Etheruem private keys & 0x API key).
1. Create an `.env` file and setup the required environment variables (your Ethereum private keys & 0x API key).

```sh
cp .env.example .env
Expand All @@ -47,7 +47,7 @@ bun --watch index.ts

```

4. Here is an example of the output. It fetches a `price` (USCD → WETH), approves a token allowance (if not already granted), fetches a `quote`, and submits the transaction, and shows the transaction hash:
4. Here is an example of the output. It fetches a `price` (USDC → WETH), approves a token allowance (if not already granted), fetches a `quote`, and submits the transaction, and shows the transaction hash:

```bash
priceResponse: {
Expand Down
4 changes: 2 additions & 2 deletions swap-v2-allowance-holder-headless-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Still have questions? [Reachout to our team](https://0x.org/docs/introduction/co

## Usage

1. Create an `.env` file and setup the required environment variables (your Etheruem private keys & 0x API key).
1. Create an `.env` file and setup the required environment variables (your Ethereum private keys & 0x API key).

```sh
cp .env.example .env
Expand All @@ -89,7 +89,7 @@ bun --watch index.ts

```

4. Here is an example of the output. It fetches a `price` (sell 0.1 USCD → WETH), approves token allowance (if not already granted), fetches a `quote`, and submits the transaction, and shows the transaction hash:
4. Here is an example of the output. It fetches a `price` (sell 0.1 USDC → WETH), approves token allowance (if not already granted), fetches a `quote`, and submits the transaction, and shows the transaction hash:

```
Fetching price to swap 0.1 USDC for WETH
Expand Down
6 changes: 3 additions & 3 deletions swap-v2-headless-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If you're concerned about upgrade speed, consider using AllowanceHolder, as it c

For more details, check out the [Permit2 and AllowanceHolder contracts](https://0x.org/docs/introduction/0x-cheat-sheet#permit2-contract)

Still have questions? [Reachout to our team](https://0x.org/docs/introduction/community#contact-support).
Still have questions? [Reach out to our team](https://0x.org/docs/introduction/community#contact-support).


</details>
Expand All @@ -67,7 +67,7 @@ Still have questions? [Reachout to our team](https://0x.org/docs/introduction/co

## Usage

1. Create an `.env` file and setup the required environment variables (your Etheruem private keys & 0x API key).
1. Create an `.env` file and setup the required environment variables (your Ethereum private keys & 0x API key).

```sh
cp .env.example .env
Expand All @@ -94,7 +94,7 @@ bun --watch index.ts

```

4. Here is an example of the output. It fetches a `price` (sell 0.1 USCD → WETH), approves token allowance (if not already granted), fetches a `quote`, and submits the transaction, and shows the transaction hash:
4. Here is an example of the output. It fetches a `price` (sell 0.1 USDC → WETH), approves token allowance (if not already granted), fetches a `quote`, and submits the transaction, and shows the transaction hash:

```
➜ swap-v2-headless-example git:(jlin/add-eth-support-to-headless-example) ✗ bun run index.ts
Expand Down
2 changes: 1 addition & 1 deletion swap-v2-next-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If your integration prevents you from collecting offchain signatures, such as wi

Originally developed by Uniswap based on the work of 0x alumnus [Lawrence Forman](https://github.com/merklejerk), [Permit2](https://blog.uniswap.org/permit2-and-universal-router) is a token approval method that can be used to safely share and manage token approvals across different smart contracts. Permit2 is immutable, extensively audited, used by other trusted protocols in the space including Uniswap and has a [$3M bug bounty](https://uniswap.org/bug-bounty).

Still have questions? [Reachout to our team](https://0x.org/docs/introduction/community#contact-support).
Still have questions? [Reach out to our team](https://0x.org/docs/introduction/community#contact-support).

</details>

Expand Down

0 comments on commit fcc8dad

Please sign in to comment.