Skip to content

ethereum-optimism/actions

Actions SDK

⚠️ This is a developer preview! Actions is not yet ready for production use.

Actions SDK and demo app by Optimism.

Adding Actions to your app

Structure

This monorepo contains the following packages:

Demo

Setup

  1. Install dependencies
pnpm install
  1. Add env vars

    Copy all example environment files to create local configuration:

    cp packages/demo/backend/.env.example packages/demo/backend/.env
    cp packages/demo/frontend/.env.example packages/demo/frontend/.env
  2. Configure Providers

    1. Sign up for a wallet provider and add secrets. Note that certain provider support both back and frontend signing.
    # Edit packages/demo/backend/.env
    PRIVY_APP_ID=your_privy_app_id_here
    PRIVY_APP_SECRET=your_privy_app_secret_here
    1. For gas sponsorship, sign up for a bundler. For this demo we use Pimlico.

    The remaining environment variables are pre-configured for local development.

Quick Start (Recommended)

While each component of the repo can be run independently, start the complete demo environment in one command:

pnpm dev

This uses mprocs to orchestrate multiple processes:

  • Backend: Starts the Actions SDK backend service
  • Frontend: Starts the React web application

The demo will be available at http://localhost:5173 once all services are running.

Contributing

No contribution is too small and all contributions are valued. Thanks for your help improving the project! We are so happy to have you!

You can read our contribution guide here to understand better how we work in the repo.

New Version Release

Instructions for releasing a new sdk version are found here.

License

All other files within this repository are licensed under the MIT License unless stated otherwise.

About

DeFi Actions SDK for the OP Stack

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 7