Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync local PolicyContract with remote network #135

Open
ixje opened this issue Mar 15, 2022 · 1 comment
Open

Sync local PolicyContract with remote network #135

ixje opened this issue Mar 15, 2022 · 1 comment

Comments

@ixje
Copy link

ixje commented Mar 15, 2022

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
Copy link
Author

ixje commented Mar 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant