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
5 changes: 4 additions & 1 deletion .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ NEXT_PUBLIC_OAUTH_CLIENT_UUID=f1f02e3d-c193-4438-b5fb-a27ef2f3a268
NEXT_PUBLIC_OAUTH_CLIENT_REDIRECT_URI=http://localhost:3000/oauth/callback

# Your sale contract address
NEXT_PUBLIC_SALE_CONTRACT_ADDRESS=0x439A7E681A71B1F3297e2c1b9c35bf226Ee24809
NEXT_PUBLIC_SALE_CONTRACT_ADDRESS=0x51BcE35d57833253EAccd6901e95eb6772aFfc8D

# Address of the payment token
NEXT_PUBLIC_PAYMENT_TOKEN_ADDRESS=0x036CbD53842c5426634e7929541eC2318f3dCF7e # USDC
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ pnpm i
pnpm dev
```

The example uses a [SettlementSale](https://github.com/sunrisedotdev/sonar/blob/main/contracts/src/SettlementSale.sol) contract on Base Sepolia.

In order to test committing funds, you will need to have USDC to commit and ETH to pay for the gas.

Faucets:

- USDC: <https://faucet.circle.com/>
- ETH: <https://docs.base.org/base-chain/tools/network-faucets>

## What This Example Demonstrates

- **OAuth authentication with Sonar** via a secure backend flow with PKCE
Expand Down
343 changes: 0 additions & 343 deletions src/app/ExampleSaleABI.ts

This file was deleted.

6 changes: 3 additions & 3 deletions src/app/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import { WagmiProvider, createConfig, http } from "wagmi";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ConnectKitProvider, getDefaultConfig } from "connectkit";
import { sepolia } from "wagmi/chains";
import { baseSepolia } from "wagmi/chains";
import { SessionProvider } from "./hooks/use-session";

const config = createConfig(
getDefaultConfig({
chains: [sepolia],
chains: [baseSepolia],
transports: {
[sepolia.id]: http(),
[baseSepolia.id]: http(),
},

// Required API Keys
Expand Down
Loading