π 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, and off-ramp transactions.
π§ Docs
Project Documentation : https://kbaji.gitbook.io/jackramp
π Overview
This subgraph tracks the following events from the Jackramp contract:
Off-ramp requests and fills
Minting operations
Token transfers
Withdrawals
Contract Address: 0xaabe76d29cbc05a95557a0db880d83d9bbeeed03 (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 operationsTransfer: Tracks token transfersWithdraw: Logs withdrawal events
π Setup
Install dependencies:
npm installGenerate types:
graph codegenBuild 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 eventshandleMint: Records new minting operationshandleRequestOfframp: Tracks new off-ramp requestshandleTransfer: Monitors token transfershandleWithdraw: Records withdrawal 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
π License
This project is licensed under the MIT license.
GitHub link: https://github.com/jackramp/jackramp-subgraph
Last updated