Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 5 additions & 3 deletions sdk/web/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ yarn add @0xsequence/connect wagmi ethers@6.13.0 viem 0xsequence @tanstack/react

Next, a configuration variable for `SequenceConnect` will need to be created as `waas` (meaning an [Embedded Wallet](/sdk/headless-wallet/quickstart)).

First obtain a [WaaS Config Key from the Sequence Builder](https://sequence.build/) and a [project access key](/support/builder/project-settings#copy-your-access-key).
First obtain a [WaaS Config Key from the Sequence Builder](https://sequence.build/) and a [project access key](/support/builder/project-settings#copy-your-access-key), then make sure your project origin is whitelisted in the [Builder Embedded Wallet Configuration](https://sequence.build).
If you want to allow WalletConnect you will also need a [Wallet Connect ID](https://cloud.reown.com/sign-in).
To setup Google Login follow the [Google Configuration for Embedded Wallet](../../solutions/builder/embedded-wallet/google-configuration).

Expand Down Expand Up @@ -155,9 +155,11 @@ yarn add @0xsequence/connect wagmi ethers@6.13.0 viem 0xsequence @tanstack/react
</Step>
<Step title="Create a Config">

Next, a configuration variable for `SequenceConnect` will need to be created as either a `waas` (meaning an [Embedded Wallet](/sdk/headless-wallet/quickstart)) or `universal` (meaning a [Universal Wallet](/sdk/typescript/guides/frontend/connect-wallet)) wallet type.
Next, a configuration variable for `SequenceConnect` will need to be created as `waas` (meaning an [Embedded Wallet](/sdk/headless-wallet/quickstart)).

For `waas`, first obtain a [WaaS Config Key from the Sequence Builder](/sdk/headless-wallet/), [Wallet Connect ID](https://cloud.reown.com/sign-in), and setup other [Login Provider configuration](/sdk/headless-wallet/#login-providers). For both wallet type options, [obtain and use a project access key](/support/builder/project-settings#copy-your-access-key).
First obtain a [WaaS Config Key from the Sequence Builder](https://sequence.build/) and a [project access key](/support/builder/project-settings#copy-your-access-key), then make sure your project origin is whitelisted in the [Builder Embedded Wallet Configuration](https://sequence.build).
If you want to allow WalletConnect you will also need a [Wallet Connect ID](https://cloud.reown.com/sign-in).
To setup Google Login follow the [Google Configuration for Embedded Wallet](../../solutions/builder/embedded-wallet/google-configuration).

```typescript [src/app/config.ts]
import { createConfig } from "@0xsequence/connect";
Expand Down
4 changes: 2 additions & 2 deletions sdk/web/guides/checkout.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

title: "Checkout Modal"
description: The Checkout Modal provides developers with a easy way to implement cryptocurrency payments.
description: The Checkout Modal provides developers with an easy way to implement cryptocurrency payments.
sidebarTitle: Checkout Modal
---

Expand Down Expand Up @@ -70,7 +70,7 @@ Here's a configuration with example variables:
const MyComponent = () => {
const { address: userAddress } = useAccount();
const { openCheckoutModal } = useERC1155SaleContractCheckout({
chain: 80001, // chainId of the chain the collectible is on
chain: 80002, // chainId of the chain the collectible is on
contractAddress: "0x0327b2f274e04d292e74a06809bcd687c63a4ba4", // address of the contract handling the minting function
wallet: userAddress!, // address of the recipient
collectionAddress: "0x888a322db4b8033bac3ff84412738c096f87f9d0", // address of the collection contract
Expand Down
8 changes: 5 additions & 3 deletions sdk/web/guides/smart-swaps.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

title: "Smart Swaps"
description: Sequence Smart Swaps leveraging currencies in player wallets to another currency on the same chain. Developers can define the target currency and Sequence will handle everything, including the UI and flow through Web SDK.
description: Sequence Smart Swaps auto detects eligible currencies in the user's wallet and swaps them to the target currency. Developers can define the target currency and Sequence will handle everything, including the UI and flow through Web SDK.
sidebarTitle: Smart Swaps
---

Expand Down Expand Up @@ -66,11 +66,13 @@ const App = () => {
</Step>
<Step title="Import Swap Dependencies and Logic">

- `currencyAddress`: The address of the token to swap from (e.g., USDC).
- `currencyAmount`: The amount to swap.
- `currencyAddress`: The target currency address, this is the token the user will receive after the swap.
- `currencyAmount`: The target currency amount, this is the amount the user will receive after the swap.
- `postSwapTransactions`: An optional array of transactions to be executed after the swap, using the swapped tokens.
- `title`: The modal's title.
- `description`: A description of the swap and payment process.
- `chainId`: The chain id of the target currency.
- `onSuccess`: A callback function that is called when the swap is successful.

```jsx
import { useSwapModal, type SwapModalSettings } from '@0xsequence/checkout'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---

title: "Ethers v6 Migration Guide"
---
title: "Ethers v6 Migration Guide"
description: Support for ethers v6 and migration guides for moving code from ethers v5 to v6
sidebarTitle: Ethers v6 Support
---

---


The @0xsequence package v2.0 now requires at a minimum the Ethers version `ethers@6.13.0`.
Expand Down