Skip to content

Commit

Permalink
Ghostnet (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsereda authored Dec 16, 2024
2 parents 5fd7635 + 9976c26 commit e3c4c95
Showing 1 changed file with 143 additions and 0 deletions.
143 changes: 143 additions & 0 deletions bridge_indexer/configs/ghostnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
contracts:
tezos_smart_rollup:
kind: tezos
address: ${SMART_ROLLUP_ADDRESS}
typename: rollup

etherlink_rollup_kernel:
kind: evm
address: '0x0000000000000000000000000000000000000000'
typename: kernel

etherlink_rollup_kernel_native:
kind: evm
address: '0x0000000000000000000000000000000000000000'
typename: kernel_native

l2_tzbtc_token:
kind: evm
address: 0x8e73ae3cf688fbd8368c99520d26f9ef1b4d3bca
typename: l2_token
l2_sirs_token:
kind: evm
address: 0xbaa233e2f62f45e9d91dacd3d6c6a57bc2cbc575
typename: l2_token
l2_usdt_token:
kind: evm
address: 0xf68997ecc03751cb99b5b36712b213f11342452b
typename: l2_token
l2_you_token:
kind: evm
address: 0x59118D19848bAca5C3Dd1603acfC99C4cbcCC3db
typename: l2_token


indexes:
tezos_head:
kind: tezos.head
datasources:
- tzkt
callback: tezos.on_head

tezos_rollup_cement:
kind: tezos.operations
first_level: ${L1_FIRST_LEVEL}
datasources:
- tzkt
types:
- sr_cement
contracts:
- tezos_smart_rollup
handlers:
- callback: tezos.on_cement_commitment
pattern:
- type: sr_cement
destination: tezos_smart_rollup


tezos_deposit_operations:
kind: tezos.operations
first_level: ${L1_FIRST_LEVEL}
datasources:
- tzkt
types:
- transaction
contracts:
- tezos_smart_rollup
handlers:
- callback: tezos.on_rollup_call
pattern:
- type: transaction
destination: tezos_smart_rollup
entrypoint: default

etherlink_deposit_events:
kind: evm.events
first_level: ${L2_FIRST_LEVEL}
datasources:
- etherlink_subsquid
- etherlink_node
handlers:
- callback: etherlink.on_deposit
contract: etherlink_rollup_kernel
name: Deposit

etherlink_xtz_deposit_transactions:
kind: evm.transactions
first_level: ${L2_FIRST_LEVEL}
datasources:
- etherlink_subsquid
- etherlink_node
handlers:
- callback: etherlink.on_xtz_deposit
from_: etherlink_rollup_kernel


etherlink_withdrawal_events:
kind: evm.events
first_level: ${L2_FIRST_LEVEL}
datasources:
- etherlink_subsquid
- etherlink_node
handlers:
- callback: etherlink.on_withdraw
contract: etherlink_rollup_kernel
name: Withdrawal
- callback: etherlink.on_xtz_withdraw
contract: etherlink_rollup_kernel_native
name: Withdrawal

tezos_withdrawal_operations:
kind: tezos.operations
first_level: ${L1_FIRST_LEVEL}
datasources:
- tzkt
types:
- sr_execute
contracts:
- tezos_smart_rollup
handlers:
- callback: tezos.on_rollup_execute
pattern:
- type: sr_execute
destination: tezos_smart_rollup


etherlink_token_balance_update_events:
kind: evm.events
datasources:
- etherlink_subsquid
- etherlink_node
handlers:
- callback: etherlink.on_transfer
contract: l2_tzbtc_token
name: Transfer
- callback: etherlink.on_transfer
contract: l2_sirs_token
name: Transfer
- callback: etherlink.on_transfer
contract: l2_usdt_token
name: Transfer
- callback: etherlink.on_transfer
contract: l2_you_token
name: Transfer

0 comments on commit e3c4c95

Please sign in to comment.