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

local testing #745

Open
vchong opened this issue Aug 10, 2023 · 5 comments
Open

local testing #745

vchong opened this issue Aug 10, 2023 · 5 comments

Comments

@vchong
Copy link
Contributor

vchong commented Aug 10, 2023

Hi, is there a way to test locally that everything is working before submitting a PR to the validator registry?

@tombeynon
Copy link
Contributor

Not really unfortunately, since you won't have grants anyway. I could add a config to networks.local.json to locally add an operator, but you'd also need to create the grant manually either using REStake grants section, or CLI. Would that be useful?

@vchong
Copy link
Contributor Author

vchong commented Aug 14, 2023

Yes, if you can provide some references on how to do that, it would be appreciated. Thanks!

@vchong
Copy link
Contributor Author

vchong commented Aug 21, 2023

I already have a testnet account that has staked to a validator and granted MsgWithdrawDelegatorReward and MsgDelegate to the bot (hotwallet address). I'm also using a non-default validatorsUrl where I append manually constructed json segments to the data returned by https://validators.testcosmos.directory/, but am still having trouble passing the Not an operator check in index.mjs.

@vchong
Copy link
Contributor Author

vchong commented Aug 24, 2023

Managed to get through Not an operator by adding a "restake" : .. segment to the output of https://validators.testcosmos.directory/chains/ under the appropriate validator, but now Found 0 addresses with valid grants... when there are obviously grants under <apiUrl>/cosmos/authz/v1beta1/grants/grantee/<botAddress>.

Update: Can't find valid grants because of #692 (comment).
Update2: Fix in #749.

@vchong vchong closed this as completed Sep 1, 2023
@vchong vchong reopened this Sep 1, 2023
@vchong
Copy link
Contributor Author

vchong commented Sep 1, 2023

Reopen because it'd be nice to figure out how to "add a config to networks.local.json to locally add an operator".

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

2 participants