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
4 changes: 2 additions & 2 deletions docs/pages/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ Pimlico offers two types of paymasters to abstract away gas fees for your users:

[Learn more about our Paymasters →](/references/paymaster)

### Batua
{/* ### Batua

A fully customizable smart account UI component built with shadcn/ui and secured with passkeys. Batua makes it easy to add account abstraction to your application with a beautiful, ready-to-use interface.

[Learn more about Batua →](https://batua.sh/)
[Learn more about Batua →](https://batua.sh/) */}

## Quick Start

Expand Down
9 changes: 2 additions & 7 deletions docs/pages/guides/how-to/sponsorship-policies/webhook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const body = {
}
```

{/*
### FlashFund Withdrawal
These webhooks are triggered when using the [flashfund_sponsorWithdrawal](/references/flash-fund/endpoints/flashfund_sponsorWithdrawal) endpoint.

Expand Down Expand Up @@ -97,6 +98,7 @@ const body = {
}
}
```
*/}

## How to verify the webhook

Expand Down Expand Up @@ -128,14 +130,7 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
switch(webhookEvent.type) {
case "sponsorshipPolicy.webhook":
case "user_operation.sponsorship.requested":
case "flash_fund.sponsorship.requested":
return res.status(200).json({
sponsor: true
})
case "user_operation.sponsorship.finalized":
case "flash_fund.sponsorship.finalized":
// Handle notification - no response needed
return res.status(200).end()
default:
return res.status(400).json({ error: "Unknown webhook type" })
}
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ import { HomePage } from 'vocs/components'
## [<span className="underline text-teal-600 hover:text-teal-800 hover:underline">Paymasters →</span>](/references/paymaster)
Sponsoring the gas fees for user operations on 100+ chains with a simple API endpoint.
</div>
<div>
{/* <div>
## [<span className="underline text-yellow-600 hover:text-yellow-800 hover:underline">Batua →</span>](https://batua.sh/)
Fully customizable smart account shadcn/ui component secured with passkeys.
</div>
{/* <div>
<div>
## [<span className="underline text-yellow-600 hover:text-yellow-800 hover:underline">FlashFund →</span>](/references/flash-fund)
Access instant ETH across any chain through developer-funded credit or user-controlled resource locks.
</div> */}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
noindex: true
---

# FlashFund

:::info
Expand Down
File renamed without changes.
125 changes: 63 additions & 62 deletions sidebars/references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,69 @@ export const permissionlessWagmiSidebar = [
},
];

// export const flashFundSidebar = [
// {
// text: "Overview",
// link: "/references/flash-fund",
// },
// {
// text: "Modes",
// items: [
// {
// text: "Credit Mode",
// link: "/references/flash-fund/modes/credit",
// },
// {
// text: "Resource Lock Mode",
// link: "/references/flash-fund/modes/resource-lock",
// },
// ],
// },
// {
// text: "Endpoints",
// collapsed: false,
// items: [
// {
// text: "flashfund_getLocks",
// link: "/references/flash-fund/endpoints/flashfund_getLocks",
// },
// {
// text: "flashfund_prepareLock",
// link: "/references/flash-fund/endpoints/flashfund_prepareLock",
// },
// {
// text: "flashfund_prepareAllowance",
// link: "/references/flash-fund/endpoints/flashfund_prepareAllowance",
// },
// {
// text: "flashfund_sponsorWithdrawal",
// link: "/references/flash-fund/endpoints/flashfund_sponsorWithdrawal",
// },
// ],
// },
// {
// text: "Guides",
// items: [
// {
// text: "How to use Credit Mode",
// link: "/references/flash-fund/how-to/credit-mode",
// },
// {
// text: "How to use Pimlico Lock",
// link: "/references/flash-fund/how-to/pimlico-lock",
// },
// {
// text: "How to use FlashFund to swap ETH for USDC on Uniswap V3",
// link: "/references/flash-fund/how-to/eth-to-usdc-uniswap",
// },
// ],
// },
// {
// text: "Supported chains and tokens",
// link: "/references/flash-fund/supported-chains-and-tokens",
// },
// ];

export const permissionlessSidebar0Point1 = [
{
text: "Overview",
Expand Down Expand Up @@ -971,65 +1034,3 @@ export const permissionlessSidebar0Point1 = [
},
];

export const flashFundSidebar = [
{
text: "Overview",
link: "/references/flash-fund",
},
{
text: "Modes",
items: [
{
text: "Credit Mode",
link: "/references/flash-fund/modes/credit",
},
{
text: "Resource Lock Mode",
link: "/references/flash-fund/modes/resource-lock",
},
],
},
{
text: "Endpoints",
collapsed: false,
items: [
{
text: "flashfund_getLocks",
link: "/references/flash-fund/endpoints/flashfund_getLocks",
},
{
text: "flashfund_prepareLock",
link: "/references/flash-fund/endpoints/flashfund_prepareLock",
},
{
text: "flashfund_prepareAllowance",
link: "/references/flash-fund/endpoints/flashfund_prepareAllowance",
},
{
text: "flashfund_sponsorWithdrawal",
link: "/references/flash-fund/endpoints/flashfund_sponsorWithdrawal",
},
],
},
{
text: "Guides",
items: [
{
text: "How to use Credit Mode",
link: "/references/flash-fund/how-to/credit-mode",
},
{
text: "How to use Pimlico Lock",
link: "/references/flash-fund/how-to/pimlico-lock",
},
{
text: "How to use FlashFund to swap ETH for USDC on Uniswap V3",
link: "/references/flash-fund/how-to/eth-to-usdc-uniswap",
},
],
},
{
text: "Supported chains and tokens",
link: "/references/flash-fund/supported-chains-and-tokens",
},
];
14 changes: 7 additions & 7 deletions vocs.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
platformSidebar,
bundlerSidebar,
paymasterSidebar,
flashFundSidebar,
// flashFundSidebar,
permissionlessSidebar,
permissionlessWagmiSidebar,
permissionlessSidebar0Point1,
Expand Down Expand Up @@ -65,11 +65,11 @@ export default defineConfig({
link: "/references/paymaster",
items: paymasterSidebar,
},
{
text: "FlashFund",
link: "/references/flash-fund",
items: flashFundSidebar,
},
// {
// text: "FlashFund",
// link: "/references/flash-fund",
// items: flashFundSidebar,
// },
],
"/references/permissionless": [
{
Expand Down Expand Up @@ -123,7 +123,7 @@ export default defineConfig({
{ text: "Platform", link: "/references/platform" },
{ text: "Bundler", link: "/references/bundler" },
{ text: "Paymaster", link: "/references/paymaster" },
{ text: "FlashFund", link: "/references/flash-fund" },
// { text: "FlashFund", link: "/references/flash-fund" },
],
match: "/references",
},
Expand Down
Loading