Skip to content

Seagull-Finance/seagull-one

Repository files navigation

Seagull ONE

Seagull ONE is Solana's first native debit card. Revolutionizing consumer spending at the speed of Solana.

Applications and SDKs

Seagull ONE Card Program

The main program controlling asset custody and enforcing spend session parameters.

Seagull ONE React Native App

The main user interface for the Seagull ONE Card, utilize this app to manage your card, view your recent transaction, initiate a spend session, and view your on-chain balances.

Seagull ONE Card SDK

This SDK covers all functionality of the Seagull ONE Card Program and can be used control every aspect of the program.

Seagull ONE Admin Dashboard

Use this dashboard to view card accounts on chain, activate new cards, and execute transactions as a mock payment processor.

How to run

The following commands will set up and build the entire repository, launching all of the above programs.

It is assumed you have the latest Solana CLI and Anchor CLI installed along with a Docker CLI and engine.

Install and build the packages

pnpm install
rm -rf ./pre-authorized-debit/sdk
cd ./packages/card && pnpm build

Build and start the local cluster and api server

Set the following environment variables

DATABASE_URL=postgresql://dev:dev@localhost:5432/dev

# Cluster Specific
SOLANA_CLUSTER_URL=http://0.0.0.0:8899
CIRCLE_USDC_MINT=8afacQUYDpvsd2wrXeMXrPJGJ3rwJN7FJqTXgPWUjeD4
SEAGULL_CARD_PROGRAM_ID=Hycy81gGoNGHwqskVHVDmL3PAwRjjGQqEXH2ZK9Wc1Lp
PAD_PROGRAM_ID=PadV1i1My8wazb6vi37UJ2s1yBDkFN5MYivYN6XgaaR

# Wallet Secrets
SEAGULL_CARD_AUTHORIZER_SECRET=[97,122,47,58,209,208,209,51,88,8,73,239,191,20,104,189,244,109,246,30,68,129,212,61,176,236,228,86,66,162,126,153,211,215,254,173,179,86,156,109,84,92,229,15,105,148,185,122,61,173,227,150,155,213,85,246,77,6,12,4,173,208,38,95]
VAULT=DmVprASGWzmSzfxAvtu5oaZcfnTExKUQZonWcFvvd9oz

and run

pnpm anchor:test-detach
cd ./packages/api && pnpm docker:up && pnpm prisma:reset && pnpm dev

Start the expo dev server, you may need to create an expo go account and login.

Set the following environment variables, not you will need to run ngrok to forward these ports to your device and update the urls.

EXPO_PUBLIC_ENDPOINT=https://9ee4-75-174-121-180.ngrok-free.app
EXPO_PUBLIC_SOLANA_CLUSTER_URL=https://cba6-75-174-121-180.ngrok-free.app
EXPO_PUBLIC_SOLANA_CLUSTER_WS_URL=https://a7e3-75-174-121-180.ngrok-free.app
EXPO_PUBLIC_SEAGULL_CARD_PROGRAM_ID=Hycy81gGoNGHwqskVHVDmL3PAwRjjGQqEXH2ZK9Wc1Lp
EXPO_PUBLIC_PAD_PROGRAM_ID=PadV1i1My8wazb6vi37UJ2s1yBDkFN5MYivYN6XgaaR
EXPO_PUBLIC_CIRCLE_USDC_MINT=8afacQUYDpvsd2wrXeMXrPJGJ3rwJN7FJqTXgPWUjeD4

and run

cd ./packages/react-native-app && pnpm start

You can now launch the app and go through the signup flow, to execute a transaction utilize the admin dashboard.

Solana Hyperdrive Submission Notes

Contents: This repository encompasses the codebase for both:

  1. The Solana smart contracts behind to Seagull ONE's core functionality.
  2. The partner React Native application built for iOS.

A Brief Chronicle of Our Project

Date: September 29th, Commit: #16d8b76
Event: The standalone repository for our React Native application (seagull-finance-app) was integrated into this repository, resulting in a unified monorepo structure.
Implication: All subsequent enhancements to the React Native application will be created within the confines of this consolidated repository. Please refer to the (seagull-finance-app) repository to view to commit history for our React Native application.

About

Solana smart contracts for managing on-chain assets for Seagull ONE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages