substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Document how to build a dashboard for contracts

Open cmichi opened this issue 3 years ago • 0 comments

Document in the pallet-contracts readme how to build a dashboard for contracts

ToDo

  • [ ] How can Active Contracts be aggregated? Listen to extrinsics for Contract::Call, Contract::Instantiate, and Contract::InstantiateWithCode.

  • [ ] Consumed Gas? Check ExtrinsicSuccess and ExtrinsicFailed for consumed gas (that's the weight field).

  • [ ] Gas Fee? Read weight adjustment factor from storage and convert it to e.g. USD, this reflects the market demand based on block fullness.

This constant factor:

screenshot-polkadot js org-2022 04 23-10_05_31

is multiplied with this dynamic factor:

screenshot-polkadot js org-2022 04 23-09_57_54

cmichi avatar Apr 23 '22 08:04 cmichi