Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
87a34c5
Update quick start and fetching data guide to v2-sdk
Florian-S-A-W May 29, 2023
8894b50
Update V2 pricing guide
Florian-S-A-W May 29, 2023
04e190f
Update V2 trading guide
Florian-S-A-W May 29, 2023
1ac03a8
Rename getPair to createPair to avoid confusion with sdk function
Florian-S-A-W May 29, 2023
14d1d7b
Update getting pair address example
Florian-S-A-W May 29, 2023
a5ca8d1
Update V2 Technical reference from uniswap-sdk to V2 sdk
Florian-S-A-W May 30, 2023
93abad1
Fix: Link to Token in V2 Fetching Data guide
Florian-S-A-W May 31, 2023
d8dc549
Add pool data guide
Florian-S-A-W Jun 4, 2023
10040db
Move pool data to advanced, update guide and add Overview
Florian-S-A-W Jun 4, 2023
b55b45c
Add Active Liquidity Guide
Florian-S-A-W Jun 5, 2023
2010885
Add Next step to active liquidity guide
Florian-S-A-W Jun 5, 2023
fd9a35a
Add price oracle file, change price types to string
Florian-S-A-W Jun 7, 2023
a4cd0cc
Add oracle guide
Florian-S-A-W Jun 21, 2023
d30dafc
Improve formatting and wording, correct details
Florian-S-A-W Jun 22, 2023
9972fd7
Update to version 3.2.6. of sdk-core
Florian-S-A-W Jun 23, 2023
1836aa7
Correct wrong calculation in TWAL section
Florian-S-A-W Jun 23, 2023
ed145ff
Correct price oracle, add range order
Florian-S-A-W Jun 29, 2023
47815df
Merge pull request #1 from Florian-S-A-W/main
Florian-S-A-W Jun 29, 2023
ecfe558
Restructure v3-sdk guides and add LP data guide
Florian-S-A-W Jun 29, 2023
67bd34f
Move trading guides to folder, update all trading guides
Florian-S-A-W Jun 30, 2023
f3066f1
Merge pull request #2 from uniswapfoundation/feat/update-v3
Florian-S-A-W Jun 30, 2023
952c43d
Merge pull request #3 from uniswapfoundation/feat/migrate-v2
Florian-S-A-W Jun 30, 2023
7b199e9
Fix some typos and improve formatting
Florian-S-A-W Jun 30, 2023
2192856
Some typo, oversights and formatting fixes in advanced v3-sdk guides
Florian-S-A-W Jul 1, 2023
25fae04
Merge pull request #4 from uniswapfoundation/fix/formatting
Florian-S-A-W Jul 1, 2023
c159aba
feat: local development guide
koraykoska Jul 2, 2023
1b40a04
Merge pull request #5 from uniswapfoundation/feat/local_dev
Florian-S-A-W Jul 2, 2023
9a11ce0
Add graph warning to pool data guide
Florian-S-A-W Jul 3, 2023
49dbd7c
Fix formatting of warning
Florian-S-A-W Jul 3, 2023
5de2f1e
Merge pull request #6 from uniswapfoundation/fix/warnings
Florian-S-A-W Jul 3, 2023
35e98f0
Change pool data fetching to multicall and move graph section to acti…
Florian-S-A-W Jul 24, 2023
e3bb225
Merge pull request #7 from uniswapfoundation/feat/multicall-pool-guide
Florian-S-A-W Jul 24, 2023
bf8cace
WIP: Rework based on Foundation feedback
Florian-S-A-W Jul 27, 2023
237b6d5
Rename sdk guides advanced/overview to introduction, update pool-data…
Florian-S-A-W Aug 8, 2023
89a5de7
Add theoretical background to introduction
Florian-S-A-W Aug 9, 2023
d00893c
Update active liquidity guide with feedback
Florian-S-A-W Aug 9, 2023
a6204f6
Update price oracle and range orders guide
Florian-S-A-W Aug 9, 2023
c9bb3da
Update liquidity guides based on foundation feedback.
Florian-S-A-W Aug 11, 2023
11abe76
Merge pull request #8 from uniswapfoundation/feat/feedback
Florian-S-A-W Aug 11, 2023
b9d1c63
feat: local development postman workspace
koraykoska Aug 25, 2023
57b650e
feat: web3 development basics guide
koraykoska Aug 25, 2023
fa240fa
Correct order of guides in v3-sdk section
Florian-S-A-W Aug 28, 2023
df3b5b6
Merge pull request #10 from Uniswap/main
Florian-S-A-W Sep 18, 2023
d2616d9
Improve web3-dev basics guide
Florian-S-A-W Sep 18, 2023
b6b20d0
Merge pull request #9 from uniswapfoundation/feat/updates_local
koraykoska Sep 18, 2023
3da7b48
Merge remote-tracking branch 'upstream/main'
koraykoska Sep 18, 2023
d3f7305
Merge remote-tracking branch 'upstream/main'
koraykoska Oct 27, 2023
e94a432
fix: broken link redirects
koraykoska Oct 29, 2023
ad5be3f
Merge pull request #11 from uniswapfoundation/main
Florian-S-A-W Oct 30, 2023
d420b9f
Update single hop quoting guide
Florian-S-A-W Nov 9, 2023
6a69a2d
Update trading guide
Florian-S-A-W Nov 10, 2023
dd29db3
Add simulate offchain trades guide and update routing guide
Florian-S-A-W Nov 10, 2023
e6870d1
Merge pull request #12 from uniswapfoundation/feat/onchain-trading
Florian-S-A-W Nov 10, 2023
3334cfb
Remove deprecated pool data guide
Florian-S-A-W Nov 28, 2023
cb4cb6a
Merge pull request #13 from uniswapfoundation/feat/cleanup
Florian-S-A-W Nov 28, 2023
a8dc15c
Fix init pool inaccuracies in swap guides
Florian-S-A-W Nov 28, 2023
8137d94
Merge pull request #14 from uniswapfoundation/fix/swaps
Florian-S-A-W Nov 28, 2023
eeda3ac
Update minting positions guide
Florian-S-A-W Dec 4, 2023
3e658f8
Update fetching Positions guide
Florian-S-A-W Dec 5, 2023
1e204e5
Update Liquidity Positions guide
Florian-S-A-W Dec 5, 2023
5dfb98d
Update Oracle guide
Florian-S-A-W Dec 6, 2023
79fd978
Update range order guide to match updated example
Florian-S-A-W Dec 7, 2023
1d58508
feat: modifying positions guide with new sdk
koraykoska Dec 13, 2023
50cf87f
Update collect fees guide to match new sdk version
Florian-S-A-W Dec 14, 2023
f99d9ec
Update swap-and-add-liquidity guide
Florian-S-A-W Dec 15, 2023
bc709fc
fix: named params
koraykoska Dec 17, 2023
6f73b2d
Merge pull request #16 from uniswapfoundation/feat/new-liq-changes
koraykoska Dec 17, 2023
4c61566
Merge pull request #15 from uniswapfoundation/feat/liquidity-provision
Florian-S-A-W Dec 18, 2023
fe47579
Merge pull request #17 from uniswapfoundation/feat/advanced_update
Florian-S-A-W Dec 21, 2023
0e889ba
Name parameters and import packages from uniswapfoundation in v3 sdk …
Florian-S-A-W Dec 27, 2023
9113d12
Merge pull request #18 from uniswapfoundation/feat/named-params
Florian-S-A-W Dec 27, 2023
e90b624
V3-sdk guides sdk publisher disclaimer
Florian-S-A-W Jan 6, 2024
0c6c205
Merge pull request #19 from uniswapfoundation/feat/sdk-version-discla…
Florian-S-A-W Jan 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/sdk/swap-widget/guides/swap-widget.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function App() {
}
```

That’s it! You should now see a fully functional swap widget on your site. The widget is self-contained and gracefully handles all interactions with the Uniswap Protocol. It leverages the [Auto Router](/sdk/v3/guides/routing) to compute the best price across all Uniswap v2 and v3 pools.
That’s it! You should now see a fully functional swap widget on your site. The widget is self-contained and gracefully handles all interactions with the Uniswap Protocol. It leverages the [Auto Router](/sdk/v3/guides/swaps/routing) to compute the best price across all Uniswap v2 and v3 pools.

See a full implementation of the swap widget in the `/cra` and `/nextjs` branches of the [widgets-demo](https://github.com/Uniswap/widgets-demo) repo.

Expand Down Expand Up @@ -101,7 +101,7 @@ import { provider } from './your/provider'

// We recommend you pass your own JSON-RPC endpoints.
const jsonRpcUrlMap = {
1: ['https://mainnet.infura.io/v3/<YOUR_INFURA_PROJECT_ID>'],
1: ['https://mainnet.infura.io/v3/<YOUR_INFURA_PROJECT_ID>'],
3: ['https://ropsten.infura.io/v3/<YOUR_INFURA_PROJECT_ID>']
}

Expand All @@ -116,7 +116,7 @@ function App() {

JSON-RPC endpoints are used to read data when no `provider` is connected. We strongly recommend you pass either a Web3 Provider to the `provider` prop, or JSON-RPC endpoint URLs to the `jsonRpcUrlMap` prop.

The widget will use these endpoints to fetch on-chain data and submit transactions for signature. If the user connects a MetaMask wallet, the widget will use the JSON-RPC provided by MetaMask when possible. [(See a list of all chains supported on widget.)](https://github.com/Uniswap/widgets/blob/main/src/constants/chains.ts#L4)
The widget will use these endpoints to fetch on-chain data and submit transactions for signature. If the user connects a MetaMask wallet, the widget will use the JSON-RPC provided by MetaMask when possible. [(See a list of all chains supported on widget.)](https://github.com/Uniswap/widgets/blob/main/src/constants/chains.ts#L4)

If you don’t yet have JSON-RPC endpoints, you can easily create them with services like [Chainnodes](https://www.chainnodes.org), [Infura](https://infura.io/product/ethereum) or [Alchemy](https://www.alchemy.com/supernode).

Expand Down
4 changes: 2 additions & 2 deletions docs/sdk/v3/guides/02-local-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ one of the network you want to use.

For this guide, the following packages are used:

- [`@uniswap/v3-sdk`](https://www.npmjs.com/package/@uniswap/v3-sdk)
- [`@uniswap/sdk-core`](https://www.npmjs.com/package/@uniswap/sdk-core)
- [`@uniswapfoundation/v3-sdk`](https://www.npmjs.com/package/@uniswapfoundation/v3-sdk)
- [`@uniswapfoundation/sdk-core`](https://www.npmjs.com/package/@uniswapfoundation/sdk-core)
- [`ethers@5`](https://www.npmjs.com/package/ethers)

Please note that we use ethers version 5, as this is still the most commonly used version of ethers.js.
Expand Down
Loading