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

The big one: Indexer index on chain token ownership state #32

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

bitbeckers
Copy link
Contributor

@bitbeckers bitbeckers commented Apr 16, 2024

Jumpstart to indexing the full on-chain state.

  • Created updated data model
  • Add custom functions to SQL config
  • Track ClaimStored, TransferSingle, AllowlistCreated, ValueTransfer
  • Set up modular with relational tables. Should future-proof us for more complexity
  • More verbose error and debug logging

Closes #30 , #27 , #20

@bitbeckers bitbeckers self-assigned this Apr 16, 2024
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔴 Lines 10.01% (🎯 60%) 277 / 2765
🔴 Statements 10.01% (🎯 60%) 277 / 2765
🔴 Functions 5.88% (🎯 60%) 3 / 51
🔴 Branches 6.52% (🎯 60%) 3 / 46
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/server.ts 74.35% 100% 0% 74.35% 21-23, 55-56, 62-76
src/fetching/fetchAllowlistFromUri.ts 0% 0% 0% 0% 1-74
src/fetching/fetchAttestationData.ts 47.95% 100% 0% 47.95% 46-76, 79-98
src/fetching/fetchMetadataFromUri.ts 0% 0% 0% 0% 1-90
src/fetching/fetchTokenUnits.ts 0% 0% 0% 0% 1-22
src/indexer/indexAllowlistCreated.ts 0% 0% 0% 0% 1-88
src/indexer/indexAllowlistData.ts 0% 0% 0% 0% 1-81
src/indexer/indexAllowlistEntries.ts 0% 0% 0% 0% 1-95
src/indexer/indexAttestations.ts 0% 0% 0% 0% 1-112
src/indexer/indexClaimsStored.ts 0% 0% 0% 0% 1-80
src/indexer/indexMetadata.ts 0% 0% 0% 0% 1-59
src/indexer/indexSupportedSchemas.ts 0% 0% 0% 0% 1-56
src/indexer/indexTokenTransfers.ts 0% 0% 0% 0% 1-86
src/indexer/indexUnitTransfers.ts 0% 0% 0% 0% 1-82
src/indexer/runIndexing.ts 46.34% 100% 0% 46.34% 20-41
src/monitoring/hypercerts.ts 0% 0% 0% 0% 1-74
src/monitoring/index.ts 0% 0% 0% 0% 1-4
src/parsing/allowListCreatedEvent.ts 0% 0% 0% 0% 1-57
src/parsing/attestationData.ts 16.85% 100% 0% 16.85% 14-82, 85-89
src/parsing/attestedEvent.ts 0% 0% 0% 0% 1-84
src/parsing/claimStoredEvent.ts 37.31% 100% 0% 37.31% 25-49, 51-67
src/parsing/index.ts 100% 100% 100% 100%
src/parsing/transferSingleEvent.ts 0% 0% 0% 0% 1-76
src/parsing/valueTransferEvent.ts 0% 0% 0% 0% 1-64
src/storage/getContractEventsForChain.ts 0% 0% 0% 0% 1-35
src/storage/getMissingAllowListUris.ts 0% 0% 0% 0% 1-24
src/storage/getMissingMetadataUris.ts 0% 0% 0% 0% 1-29
src/storage/getSupportedSchemas.ts 0% 0% 0% 0% 1-23
src/storage/getUnparsedAllowLists.ts 0% 0% 0% 0% 1-22
src/storage/storeAllowListData.ts 0% 0% 0% 0% 1-24
src/storage/storeAllowListRecords.ts 0% 0% 0% 0% 1-25
src/storage/storeClaim.ts 0% 0% 0% 0% 1-85
src/storage/storeHypercertAllowList.ts 0% 0% 0% 0% 1-25
src/storage/storeMetadata.ts 0% 0% 0% 0% 1-64
src/storage/storeSupportedSchemas.ts 0% 0% 0% 0% 1-54
src/storage/storeTokens.ts 0% 0% 0% 0% 1-83
src/storage/storeUnits.ts 0% 0% 0% 0% 1-79
src/storage/updateLastBlockIndexedContractEvents.ts 0% 0% 0% 0% 1-28
src/utils/getDeployment.ts 22.72% 100% 0% 22.72% 11-44
Generated in workflow #18

@bitbeckers bitbeckers added the enhancement New feature or request label Apr 16, 2024
@bitbeckers bitbeckers merged commit cb52491 into develop Apr 16, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Indexer] Index token ownership (e.g. transfers) [Indexer] Index allowlists
1 participant