π JackRamp Subgraph
π Jackramp Subgraph
A subgraph implementation for tracking Jackramp contract events and entities on the Holesky network. This subgraph indexes mint events, transfers, withdrawals, operators, and off-ramp transactions.
π§ Docs
Project Documentation : https://kbaji.gitbook.io/jackramp-avs
π Overview
This subgraph tracks the following events from the Jackramp contract:
- Off-ramp requests and fills 
- Minting operations 
- Token transfers 
- Withdrawals 
- Operators 
Contract Address: 0xfb3970e6eb88815c485b3531a36d4c8b45db1135 (Holesky Network)
π Schema
OffRamp
Tracks off-ramping operations with their current status:
type OffRamp @entity {
  id: Bytes!
  user: Bytes!
  requestedAmount: BigInt!
  requestedAmountRealWorld: BigInt!
  channelAccount: Bytes!
  channelId: Bytes!
  status: OffRampStatus!
  # ... additional fields
}Other Entities
- Mint: Records minting operations
- Transfer: Tracks token transfers
- Withdraw: Logs withdrawal events
- Operator: Logs operator events
π  Setup
- Install dependencies: 
npm install- Generate types: 
graph codegen- Build the subgraph: 
graph buildπ Configuration
The subgraph is configured to start indexing from block 2609411 on the Holesky network. Key configurations:
- Spec Version: 1.0.0 
- API Version: 0.0.7 
- Network: Holesky 
- Language: AssemblyScript 
π Event Handlers
The subgraph implements handlers for:
- handleFillOfframp: Processes off-ramp completion events
- handleMint: Records new minting operations
- handleRequestOfframp: Tracks new off-ramp requests
- handleTransfer: Monitors token transfers
- handleWithdraw: Records withdrawal events
- handleTaskResponded: Records operator events
π Querying Examples
Query off-ramp requests:
{
  offRamps(first: 5) {
    id
    user
    requestedAmount
    status
    blockTimestamp
  }
}Get recent mints:
{
  mints(orderBy: blockTimestamp, orderDirection: desc) {
    user
    amount
    blockNumber
  }
}π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Links
GitHub links: https://github.com/jackramp-avs/jackramp-subgraph
Last updated
