Skip to content

Add oracle price abstaining script#48

Merged
LCyson merged 3 commits intomasterfrom
oracle-abstain-script
Jun 21, 2022
Merged

Add oracle price abstaining script#48
LCyson merged 3 commits intomasterfrom
oracle-abstain-script

Conversation

@LCyson
Copy link
Contributor

@LCyson LCyson commented Jun 19, 2022

Tested locally with 1.0.4beta sei-chain:
python3 abstain_oracle_voting.py cyson sei-chain 12345678 ""

@LCyson LCyson force-pushed the oracle-abstain-script branch from 3dcd1f0 to 4e4c0aa Compare June 21, 2022 05:16
Comment on lines +76 to +77
VAL_ADDR = subprocess.check_output(
[CMD_TMPL.format(password=PASSWORD) + f" query staking delegations {ADDR} | grep validator_address | cut -d':' -f2 | xargs"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can just be queried by

seid status | jq ".ValidatorInfo.Address"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or seid keys show <> --bech val

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

)

KEY = "default_account"
CHAIN_ID = "sei-internal-testnet"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we change this to sei-testnet-2 just so folks don't mess it up and ask questions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

@LCyson LCyson merged commit 2946f8e into master Jun 21, 2022
@LCyson LCyson deleted the oracle-abstain-script branch June 21, 2022 05:51
masih pushed a commit that referenced this pull request Oct 1, 2025
* Fix recheck causing all transactions to halt

* Fix comment

---------

Co-authored-by: Yiming Zang <yzang@twitter.com>
masih pushed a commit that referenced this pull request Oct 9, 2025
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

Successfully merging this pull request may close these issues.

2 participants