N3developertoolkit / neo3-visual-tracker

Neo N3 blockchain explorer that is directly available within Visual Studio Code for developer usage and development scenarios.
https://marketplace.visualstudio.com/items?itemName=ngd-seattle.neo3-visual-tracker
MIT License
7 stars 11 forks source link

Sync local PolicyContract with remote network #135

Open ixje opened 2 years ago

ixje commented 2 years ago

There is a use-case where you'd like your local environment to match e.g. MainNet in terms of fees (storage/execution prices) such that you can develop your contract to fit within allowed max GAS usage requirements.

This idea would add an inline button on the PolicyContract (in the contracts panel) to sync the remote policy to the local chain. We have 2 approaches

  1. use the RPC method invokefunction on the PolicyContract and request GetFeePerByte, GetExecFeeFactor and GetStoragePrice
  2. use RPC servers with the StateService plugin as we know all keys to request.
ixje commented 2 years ago

Just learned there is a policy sync command in neoxpress. So this is just a matter of presenting it in the UI