Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: token issuance trigger part 2 #321

Merged
merged 5 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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: 4 additions & 0 deletions apps/alchemy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
This project sets up Alchemy webhooks to listen for blockchain events.
These hooks invoke Trigger.dev jobs that process the events using Viem.

## Getting Started

This project follows the [Alchemy SDK Developer Challenge Guide](https://docs.alchemy.com/docs/sdk-developer-challenge-guide-7) to set up and configure Alchemy webhooks. The guide provides step-by-step instructions. For detailed implementation steps and best practices, refer to the guide above.


## Dependencies

Expand Down
3 changes: 3 additions & 0 deletions apps/alchemy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "alchemy-hooks",
"module": "src/index.ts",
"type": "module",
"scripts": {
"push": "bun src/index.ts"
},
"devDependencies": {
"@types/bun": "latest"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/alchemy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function createAddressActivityNotification() {
const alchemy = new Alchemy(settings)
const addressActivityWebhook = await alchemy.notify.createWebhook(
// TO DO: You will replace this URL in Step #3 of this guide!
'https://webhook.site/f18c0350-6479-4686-b48a-3d16aa238b7b',
'https://launchpad-indexer-ymrgicuyta-uc.a.run.app/alchemy',
WebhookType.ADDRESS_ACTIVITY,
{
// use any address you want to monitor activity on!
Expand Down
Empty file added apps/indexer/.debug
Empty file.
15 changes: 15 additions & 0 deletions apps/indexer/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Bitlauncher Indexer

The Bitlauncher Indexer is a critical component of our blockchain data processing ecosystem. It's an advanced, high-performance system designed to efficiently capture, process, and store blockchain events in real-time. By continuously monitoring the blockchain, the indexer ensures that the Bitlauncher platform always has access to the most up-to-date and accurate on-chain data.

Key responsibilities of the Bitlauncher Indexer include:

- Real-time event monitoring: Continuously listens for new blocks and transactions on the blockchain.
- Smart contract interaction tracking: Indexes and processes events related to specific smart contracts.
- Token transfer tracking: Monitors and records all token transfer activities.
- Data normalization: Transforms raw blockchain data into a structured format for easy querying and analysis.
- Historical data management: Maintains a comprehensive historical record of blockchain activities.
- API integration: Provides a robust API for other components of the Bitlauncher platform to access indexed data.
- Performance optimization: Ensures high throughput and low latency in data processing and retrieval.
- Scalability: Designed to handle increasing blockchain activity and data volume.

## Getting Started§

```bash
# Copy environment variables. Put your dfuse credentials on it
cp .env-sample .env
Expand Down
Loading