Skip to content

Destiner/bag-app

Repository files navigation

Onchain Farcaster Frames

This is a directory of onchain frames. Each frame triggers an onchain transaction sourced from the user's Safe.

Using onchain to build frames, permissionless to run smart accounts, and Pimlico to send bundles.

Bag

Bag is a Safe wallet controlled via frames. Each FID (Farcaster ID) maps to a single address, bringing an onchain Safe wallet to every Farcaster user. Users are then able to execute transactions from the bags they control using different frames.

Frames

There are 6 frames in total in this repo.

  • bag-claim: a frame that mints a free "Bag" NFT to the user (on Warpcast)
  • claim-all: a frame that sends all tokens from the bag wallet (on Warpcast)
  • degen-raffle: a frame that distributes a random amount of $DEGEN to each user (on Warpcast)
  • nft-sale: a frame that sells an NFT for a small amount of $DEGEN (on Warpcast)
  • poll: a simple onchain voting app that uses EAS (on Warpcast)
  • tips: a tipping app (on Warpcast)

Setup

Make sure to install the dependencies:

# npm
npm install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

Production

Build the application for production:

# npm
npm run build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview

Check out the deployment documentation for more information.

About

Onchain Farcaster Frames

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published