Skip to content

metahub [master task]: cross-chain message transfer  #17

@ninjaahhh

Description

@ninjaahhh

scoping master task to enable cross-chain message transfer

  1. subscription management
    1. subscription initiation
      1. a system contract providing subscribe API and should emit a special subscribe event
      2. geth should monitor such events and start listening to specific events
      3. (future) because subscribe will cost full node resources, a proper fee mechanism should be designed to avoid spamming
    2. event monitoring
      1. geth should be aware of supported chains and corresponding JSONRPC API, and manage event monitoring accordingly
      2. geth should support "replaying" chain monitoring - in case a node crashes and restarts, it should be able to catch up the previous event subscription
        1. new system design required
    3. event delivery (emitTo)
      1. callback contract template should have a unified interface to receive delivery
      2. monitored events should be submitted to destination chain
        1. (?) exactly-once mechanism design required
    4. subscription termination
      1. system contract should have a terminate function to stop the event monitoring
      2. geth should stop monitoring and close the websocket after the special events

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions