ExocoreNetwork / exocore-contracts

4 stars 5 forks source link

[Native Restaking]: Missing view functions for querying all ExoCapsules and validators inside capsules #65

Closed adu-web3 closed 2 weeks ago

adu-web3 commented 2 months ago

Description

As Exocore oracle module would update native staker's beacon chain ETH balance, it needs to query some informations from ClientChainGateway contract and ExoCapsule contract:

  1. the capsules that have been created
  2. the validators that have been registered to specific capsule

there is one more question, do we need to limit the number of capsules created in ClientChainGateway?

adu-web3 commented 1 month ago

After talking with @leonz789 , there is another approach to solve this problem: we use a separate Action to represent native restaking deposit and encode corresponding validators into the message payload, so that assets precompile could associate these validators with the staker and store them in oracle module