You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data feeds must be registered into the oracle parachain and this can be done via a registry pallet.
The pallet's main responsibility is to be aware of data feeds (phat contracts) and keep track of them to use later. The pallet should also emit events when changes take place to a specific feed (added, removed, etc..).
The main 2 goals of this pallet would be as follows:
Register a feed
Unregister a feed
It should ideally also include some level of "approval" when registering and unregistering (this will be done via a democratic process later on -- i.e. a custom origin).
This pallet should ideally contain 8 callable methods (extrinsics)
register_feed(): adds a new feed (API URL) to storage
unregister_feed(): removes an already registered feed from storage
xcm_register_feed(): handles an XCM message for a (consumer) parachain to subscribe
xcm_unregister_feed(): handles an XCM message for a (consumer) parachain to subscribe
register_consumer(): adds a consumer (AccountId) to storage
unregister_consumer(): removes an already registered consumer from storage
xcm_consumer_subscribe(): handles an XCM message for a (consumer) parachain to subscribe
xcm_consumer_unsubscribe(): handles an XCM message for a (consumer) parachain to subscribe
The text was updated successfully, but these errors were encountered:
Data feeds must be registered into the oracle parachain and this can be done via a
registry
pallet.The pallet's main responsibility is to be aware of data feeds (phat contracts) and keep track of them to use later. The pallet should also emit events when changes take place to a specific feed (added, removed, etc..).
Work done on the pallet can be found here.
The main 2 goals of this pallet would be as follows:
It should ideally also include some level of "approval" when registering and unregistering (this will be done via a democratic process later on -- i.e. a custom origin).
This pallet should ideally contain 8 callable methods (extrinsics)
register_feed()
: adds a new feed (API URL) to storageunregister_feed()
: removes an already registered feed from storagexcm_register_feed()
: handles an XCM message for a (consumer) parachain to subscribexcm_unregister_feed()
: handles an XCM message for a (consumer) parachain to subscriberegister_consumer()
: adds a consumer (AccountId) to storageunregister_consumer()
: removes an already registered consumer from storagexcm_consumer_subscribe()
: handles an XCM message for a (consumer) parachain to subscribexcm_consumer_unsubscribe()
: handles an XCM message for a (consumer) parachain to subscribeThe text was updated successfully, but these errors were encountered: