Skip to content

Commit

Permalink
Add mainnet contract indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
Man-Jain authored Jan 2, 2023
1 parent 29ab7ce commit 6a5ba23
Showing 1 changed file with 52 additions and 56 deletions.
108 changes: 52 additions & 56 deletions dipdup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ advanced:
schema_modified: wipe

contracts:
# registry_mainnet:
# address: KT1Je26VLhis2X8FaTda7SQT4PsstmCZL2ez
# typename: registry
registry_mainnet:
address: KT1MFxwTan4ptw6PSc3KK6e1xfzMrCb382tw
typename: registry
registry_ghostnet:
address: KT1QZtF8vVUvZYRxttRwgftc4EaQHZWgzXNp
typename: registry

datasources:
# tzkt_mainnet:
# kind: tzkt
# url: https://api.mainnet.tzkt.io
tzkt_mainnet:
kind: tzkt
url: https://api.mainnet.tzkt.io
tzkt_ghostnet:
kind: tzkt
url: https://api.ghostnet.tzkt.io
Expand Down Expand Up @@ -85,56 +85,52 @@ templates:
entrypoint: unfreeze

indexes:
# factory_mainnet:
# kind: operation
# datasource: tzkt_mainnet
# types:
# - origination
# handlers:
# - callback: on_factory_origination
# pattern:
# - type: origination
# similar_to: registry_mainnet
# - callback: on_propose
# pattern:
# - type: transaction
# destination: registry_mainnet
# entrypoint: propose
# - callback: on_call_custom
# pattern:
# - type: transaction
# destination: registry_mainnet
# entrypoint: callCustom
# - callback: on_vote
# pattern:
# - type: transaction
# destination: registry_mainnet
# entrypoint: vote
# - callback: on_drop_proposal
# pattern:
# - type: transaction
# destination: registry_mainnet
# entrypoint: drop_proposal
# - callback: on_unstake_vote
# pattern:
# - type: transaction
# destination: registry_mainnet
# entrypoint: unstake_vote
# - callback: on_flush
# pattern:
# - type: transaction
# destination: registry_mainnet
# entrypoint: flush
# - callback: on_freeze
# pattern:
# - type: transaction
# destination: registry_mainnet
# entrypoint: freeze
# - callback: on_unfreeze
# pattern:
# - type: transaction
# destination: registry_mainnet
# entrypoint: unfreeze
factory_mainnet:
kind: operation
datasource: tzkt_ghostnet
types:
- origination
handlers:
- callback: on_factory_origination
pattern:
- type: origination
similar_to: registry_ghostnet
- callback: on_propose
pattern:
- type: transaction
destination: registry_ghostnet
entrypoint: propose
- callback: on_vote
pattern:
- type: transaction
destination: registry_ghostnet
entrypoint: vote
- callback: on_drop_proposal
pattern:
- type: transaction
destination: registry_ghostnet
entrypoint: drop_proposal
- callback: on_unstake_vote
pattern:
- type: transaction
destination: registry_ghostnet
entrypoint: unstake_vote
- callback: on_flush
pattern:
- type: transaction
destination: registry_ghostnet
entrypoint: flush
- callback: on_freeze
pattern:
- type: transaction
destination: registry_ghostnet
entrypoint: freeze
- callback: on_unfreeze
pattern:
- type: transaction
destination: registry_ghostnet
entrypoint: unfreeze

factory_ghostnet:
kind: operation
datasource: tzkt_ghostnet
Expand Down

0 comments on commit 6a5ba23

Please sign in to comment.