@graphprotocol/issuance
v1.0.0
Published
The Graph Issuance Contracts
Maintainers
Keywords
Readme
The Graph Issuance Contracts
This package contains smart contracts for The Graph's issuance functionality.
Overview
The issuance contracts handle token issuance mechanisms for The Graph protocol.
Contracts
- IssuanceAllocator - Central distribution hub for token issuance, allocating tokens to different protocol components based on configured rates
- RewardsEligibilityOracle - Oracle-based eligibility system for indexer rewards with time-based expiration
- DirectAllocation - Simple target contract implementation for receiving and distributing allocated tokens (deployed as PilotAllocation and other instances)
- IndexingAgreementManager - Funds PaymentsEscrow deposits for RCAs using issuance tokens, tracking max-next-claim per agreement per indexer
Development
Setup
# Install dependencies
pnpm install
# Build
pnpm build
# Test
pnpm testTesting
To run the tests:
pnpm testFor coverage:
pnpm test:coverageLinting
To lint the contracts and tests:
pnpm lintContract Size
To check contract sizes:
pnpm sizeLicense
GPL-2.0-or-later
