Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
0fa3006
I init API page with zora feeRecipient API endpoint.
sweetmantech Jul 16, 2024
29abf92
I remove vercel cron jobs.
sweetmantech Jul 16, 2024
662abf2
Merge pull request #1 from SweetmanTech/sweets/init
sweetmantech Jul 16, 2024
e5ff256
I init zora collections API.
sweetmantech Jul 28, 2024
d293855
I remove unused file.
sweetmantech Jul 28, 2024
8d728ae
I remove unused const.
sweetmantech Jul 28, 2024
54a93e6
I remove unused files.
sweetmantech Jul 28, 2024
f59807e
I remove more unused files to fix build errors.
sweetmantech Jul 28, 2024
f3eb200
I fix build errors.
sweetmantech Jul 28, 2024
a0f124b
Merge pull request #2 from SweetmanTech/sweets/api-zora-collections
sweetmantech Jul 28, 2024
1e7ccb0
I set fromBlock to earliest and remove NEWTRO const.
sweetmantech Jul 28, 2024
83a1171
I add param for creator.
sweetmantech Jul 28, 2024
fd8a077
I remove unused packages and files.
sweetmantech Jul 28, 2024
dfab16b
I fix build errors.
sweetmantech Jul 28, 2024
aeeccf9
Merge pull request #3 from SweetmanTech/sweets/params
sweetmantech Jul 28, 2024
998167a
I generate privy address for each API endpoint.
sweetmantech Jul 28, 2024
cb688be
I remove dev logging,
sweetmantech Jul 28, 2024
05ce29c
I remove type check to fix build errors.
sweetmantech Jul 28, 2024
d025e41
Merge pull request #4 from SweetmanTech/sweets/privy
sweetmantech Jul 28, 2024
4a2dc6b
I add stack to track API endpoints.
sweetmantech Jul 28, 2024
392e816
I remove dev logging.
sweetmantech Jul 28, 2024
f20b921
Merge pull request #5 from SweetmanTech/sweets/track
sweetmantech Jul 28, 2024
463f4f3
I display scores on API page for realtime, transparent, API usage data.
sweetmantech Jul 28, 2024
66e342e
I init getEndpointsWithScores lib.
sweetmantech Jul 28, 2024
7b950a4
Merge pull request #6 from SweetmanTech/sweets/scores
sweetmantech Jul 28, 2024
de51eae
I init new route for /api/zora/rewards
sweetmantech Aug 9, 2024
91463ac
I add documentation to API page.
sweetmantech Aug 9, 2024
d784917
Update README.md
sweetmantech Aug 9, 2024
8967485
I remove unused format function.
sweetmantech Aug 10, 2024
f5a7439
I remove dev logging.
sweetmantech Aug 10, 2024
50c7748
Merge pull request #8 from SweetmanTech/sweets/rewards-deposit
sweetmantech Aug 10, 2024
f4b1b53
I init getEvents function for generic event lookup.
sweetmantech Aug 10, 2024
6b2ec01
Merge pull request #9 from SweetmanTech/sweets/rewards-getPoints
sweetmantech Aug 10, 2024
a653518
I get contract events for earliest RewardsDeposit events.
sweetmantech Aug 10, 2024
d6ea246
I remove dev logging.
sweetmantech Aug 10, 2024
3146bdc
I remove unused formatLogs lib in favor of the shared formatting lib.
sweetmantech Aug 10, 2024
8786270
I implement adaptive block range.
sweetmantech Aug 10, 2024
048a9c1
I refactor MAX_BLOCK_RANGE => INITIAL_BLOCK_RANGE
sweetmantech Aug 10, 2024
80190f5
Merge pull request #10 from SweetmanTech/sweets/rewards-contractEvents
sweetmantech Aug 10, 2024
2c70ec6
I track rewards using stack L3.
sweetmantech Aug 10, 2024
809a655
I remove dev logging.
sweetmantech Aug 10, 2024
5302399
I replace splice => slice for array manipulation.
sweetmantech Aug 10, 2024
8445a08
I fix build errors.
sweetmantech Aug 10, 2024
1559dc1
I refactor onchainmagic => myco.
sweetmantech Aug 10, 2024
73d2aed
I fix api crash for newtro address.
sweetmantech Aug 10, 2024
296dad1
I increase retry to 5
sweetmantech Aug 10, 2024
f89fc09
Merge pull request #11 from SweetmanTech/sweets/rewards-track
sweetmantech Aug 10, 2024
dbf5fc5
I speed up responses.
sweetmantech Aug 10, 2024
8b617a2
Merge pull request #12 from SweetmanTech/sweets/fast
sweetmantech Aug 10, 2024
1506552
I add initial /api/zora/score
sweetmantech Sep 4, 2024
70250c0
I init lib for getZoraProfile.
sweetmantech Sep 4, 2024
61d0a27
I init getZoraScore lib.
sweetmantech Sep 4, 2024
0d883bd
I refactor location of getZoraProfileScore.
sweetmantech Sep 4, 2024
affbbac
I add smaller libs for calculating sub-scores in profile score.
sweetmantech Sep 4, 2024
d756062
I add farcaster to the completeness score.
sweetmantech Sep 4, 2024
22371a0
I set perfectFollowers to five fives.
sweetmantech Sep 4, 2024
bdabf09
both followers and following score both reference PERFECT FOLLOWERS o…
sweetmantech Sep 4, 2024
9db9a4a
Merge pull request #13 from SweetmanTech/sweets/score
sweetmantech Sep 4, 2024
bef1aeb
building the api/zora/tokens route
codesagecoder Sep 4, 2024
121b0f7
removing tokens indexer from api/zora/tokens
codesagecoder Sep 5, 2024
98c9807
updating the stack setup new token event
codesagecoder Sep 5, 2024
b7e83b5
update @stackso package to latest
codesagecoder Sep 6, 2024
0c27fce
removing unused types
codesagecoder Sep 6, 2024
d177318
creating zora token stack client
codesagecoder Sep 6, 2024
c75c7e3
adding const token stack point id
codesagecoder Sep 6, 2024
68e49b3
Merge pull request #14 from SweetmanTech/feature/api-zora-tokens
codesagecoder Sep 6, 2024
b309b1e
Merge branch 'main' into hotfix/update-stackso-v0.4.16
codesagecoder Sep 6, 2024
07d8610
adding REWARDS_DEPOSIT_POINT_SYSTEM_ID to consts
codesagecoder Sep 6, 2024
f83f240
Merge pull request #15 from SweetmanTech/hotfix/update-stackso-v0.4.16
codesagecoder Sep 6, 2024
637a5ff
I update /api/zora/tokens to read from the new leaderboard.
sweetmantech Sep 7, 2024
dd32208
Merge pull request #16 from SweetmanTech/sweets/updated-permissions
sweetmantech Sep 7, 2024
8a69d8a
I update api/collections api
techeng322 Sep 9, 2024
f6a6589
I update query
techeng322 Sep 9, 2024
9ba231a
creating the zora profile api
codesagecoder Sep 10, 2024
b3698ca
Merge pull request #18 from SweetmanTech/feature/api-profile
codesagecoder Sep 10, 2024
c9b21f4
adding isPro check within api/profile
codesagecoder Sep 10, 2024
8d2dbc2
I fix feedback
techeng322 Sep 10, 2024
88c066d
Merge pull request #19 from SweetmanTech/maintenance/api-profile
codesagecoder Sep 10, 2024
10ab46f
Update route.ts
techeng322 Sep 10, 2024
6fe52d8
I fix chain Id
techeng322 Sep 10, 2024
29c8fb4
Merge branch 'main' of https://github.com/SweetmanTech/myco-api into …
techeng322 Sep 10, 2024
5ece636
Merge pull request #17 from SweetmanTech/tech322/api-collections
techeng322 Sep 10, 2024
b9f3390
fallback value for verification of subscription.
sweetmantech Sep 14, 2024
a681397
I fix verify typo.
sweetmantech Sep 14, 2024
614243a
remove dev logging.
sweetmantech Sep 14, 2024
ed997f9
I rollback changes to lib/zora/getZoraProfile.ts
sweetmantech Sep 14, 2024
b3984b8
Merge pull request #20 from SweetmanTech/sweets/profile-expand
sweetmantech Sep 14, 2024
ce331f0
busting cahce on api/profile
codesagecoder Sep 16, 2024
d0f9b92
Merge pull request #21 from SweetmanTech/hotfix/cache-break-api-profile
codesagecoder Sep 16, 2024
c018a62
Update consts.tsx
sweetmantech Sep 23, 2024
efa77fe
I remove eventName filter to include new token event names.
sweetmantech Sep 23, 2024
36d1369
Merge pull request #22 from SweetmanTech/sweets/myco-token-indexer-v0_4
sweetmantech Sep 23, 2024
ab3b932
I remove caching results for /api/stack/leaderboard
sweetmantech Sep 23, 2024
317974f
I remove caching for all APIS in mycoAPI.
sweetmantech Sep 23, 2024
81f7b52
Merge pull request #23 from SweetmanTech/sweets/cache
sweetmantech Sep 23, 2024
07dfd32
I fix /api/zora/collections for new token indexer v0.4
sweetmantech Sep 23, 2024
ad29be9
I remove dev logging.
sweetmantech Sep 23, 2024
08ee2ab
I remove unused imports to fix build errors.
sweetmantech Sep 23, 2024
1f26755
I update README to be more helpful for new devs to get started.
sweetmantech Sep 23, 2024
d76ffed
Update README.md
sweetmantech Sep 23, 2024
08a496d
Update README.md
sweetmantech Sep 23, 2024
dd70708
Update README.md
sweetmantech Sep 23, 2024
9db74ef
Merge pull request #24 from SweetmanTech/sweets/collections
sweetmantech Sep 23, 2024
c1919e0
I update api
techeng322 Sep 25, 2024
fea3cb6
I fix conflict
techeng322 Sep 25, 2024
f5156fa
I fix ens name bug
techeng322 Sep 25, 2024
9a6a16b
I update point system
techeng322 Sep 25, 2024
3a97cfd
I update stack point system id
techeng322 Sep 25, 2024
1352942
I fix feedback
techeng322 Sep 25, 2024
c0ac02f
I fix feedback
techeng322 Sep 25, 2024
5ba9524
I fix feedback
techeng322 Sep 25, 2024
482f7c6
I fix feedback
techeng322 Sep 25, 2024
e0f3ea1
I fix build error
techeng322 Sep 25, 2024
280b247
I fix typo error
techeng322 Sep 25, 2024
75f789e
I fix username
techeng322 Sep 25, 2024
5c088fa
I fix feedback
techeng322 Sep 25, 2024
305a264
Merge pull request #25 from SweetmanTech/tech322/connected-account
techeng322 Sep 25, 2024
7e95c79
adding createScore calculation in api/zora/score
Faisal25DEC Oct 14, 2024
1e7c13f
change max_create_score
Faisal25DEC Oct 14, 2024
e29ec15
score comprise of createScore and profileScore
Faisal25DEC Oct 15, 2024
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
20 changes: 4 additions & 16 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
NEXT_PUBLIC_NEYNAR_CLIENT_ID=
NEYNAR_CLIENT_ID=
NEYNAR_API_KEY=
NEXT_PUBLIC_REFERRAL=
SOUND_API_KEY=
NEYNAR_CLIENT_ID=
SUPABASE_URL=
SUPABASE_KEY=
NEXT_PUBLIC_SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
STACK_SYSTEM_ID=
STACK_API_KEY=
NEXT_PUBLIC_ANON_KEY=
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_THIRDWEB_CLIENT_ID=
PRIVY_APP_ID=
PRIVY_APP_SECRET=
PRIVY_APP_SECRET=
REWARDS_DEPOSIT_POINT_SYSTEM_ID=
STACK_API_KEY=
STACK_POINT_SYSTEM_ID=
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Sonata
Copyright (c) 2024 sweetman.eth

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
97 changes: 66 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,78 @@
# sonata
# myco API 🌟

music client for farcaster
myco API is a powerful tool designed to help developers and creators leverage the Zora ecosystem more effectively. It provides a suite of endpoints that simplify interaction with Zora's blockchain data and offer valuable insights. 🚀

supports music on
## Tech Stack 🛠️

- Spotify
- Soundcloud
- Sound.xyz
- Zora (coming soon)
- **Frontend**: Next.js 14, React 18, TypeScript
- **Styling**: Tailwind CSS, shadcn/ui
- **Backend**: Next.js API Routes
- **Blockchain Interaction**: viem
- **Authentication**: Privy
- **Analytics**: Stack
- **Deployment**: Vercel

# Setup
## Getting Started 🏁

1. Download and install Docker: https://docs.docker.com/get-docker/
2. Open the Docker App on your machine. Verify with `docker info`.
3. Use node v20 with `nvm use 20`.
4. Run the following in the root of the sonata codebase:
`npx supabase init`.
5. Run the starting function
`npx supabase start`. This will now have the database live with some production data available to you.
6. Run
`npx supabase status`
7. Now go to .env file and fill the env variables
1. Clone the repository:

# DB Issues
```
git clone https://github.com/sweetmantech/myco-api.git
cd myco-api
```

- If you see any errors happening db related or, need to make DB migrations run the following: `npx supabase db reset`
2. Install dependencies:

```
NEXT_PUBLIC_SUPABASE_URL={API URL}
NEXT_PUBLIC_ANON_KEY={anon key}
SUPABASE_URL={API URL}
SUPABASE_KEY={service_role key}
```
```
yarn install
```

## Authors
3. Set up environment variables:
Create a `.env.local` file in the root directory and add the following variables:

- [@sweetmantech](https://github.com/sweetmantech) ([warpcast](https://warpcast.com/sweetman-eth))
- [@ramiechaarani](https://github.com/ramiechaarani) ([warpcast](https://warpcast.com/ramie/))
```
STACK_API_KEY=your_stack_api_key
PRIVY_APP_ID=your_privy_app_id
PRIVY_APP_SECRET=your_privy_app_secret
```

4. Run the development server:

```
yarn dev
```

5. Open [http://localhost:3000](http://localhost:3000) in your browser to see the application.

## How myco API Helps Developers 👨‍💻

1. **Simplified Zora Integration**: Access Zora protocol data through easy-to-use REST API endpoints. 🔗
2. **Profile Information**: Retrieve comprehensive Zora profile data for any address. 👤
3. **Token and Collection Data**: Easily fetch information about Zora tokens and collections. 🖼️
4. **Rewards System**: Access and track Zora rewards for different activities. 🏆
5. **Leaderboard**: Implement gamification features using the built-in leaderboard system. 🏅
6. **Scoring System**: Utilize the Zora score calculation for user engagement metrics. 📊

## How myco API Helps Creators 🎨

1. **Profile Insights**: Gain valuable insights into your Zora profile, including completeness score and follower metrics. 📈
2. **Reward Tracking**: Easily monitor your earnings from creator rewards, referrals, and first minter bonuses. 💰
3. **Collection Management**: Access detailed information about your created collections and their performance. 🗂️
4. **Engagement Metrics**: Understand your audience better with follower and following scores. 🤝
5. **Leaderboard Participation**: Increase visibility and engagement by participating in the platform's leaderboard. 🌟

## License
## API Endpoints 🔌

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
For a complete list of available API endpoints and their usage, please refer to our [API documentation](https://api.myco.wtf).

## Contributing 🤝

We welcome contributions! Please open a pull request to contribute.

## License 📄

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.

## Authors ✍️

- [@sweetmantech](https://github.com/sweetmantech) ([warpcast](https://warpcast.com/sweetman-eth))
Loading