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

Unable to write a price #11

Closed
ekkis opened this issue Dec 21, 2019 · 4 comments
Closed

Unable to write a price #11

ekkis opened this issue Dec 21, 2019 · 4 comments

Comments

@ekkis
Copy link
Contributor

ekkis commented Dec 21, 2019

due to the other issue I opened: #10 I commented out the check to try to force a write. now I get another error

cleos push action delphioracle write '{"owner":"dextersysdao", "quotes": [{"value":58500,"pair":"eosusd"}]}' -p dextersysdao@active

Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: pair not allowed
pending console output: length 1quote 0 58500 eosusd

@systemzax
Copy link
Contributor

Make sure you call the "configure" function first. This will add the 'eosusd' pair entry to the 'pairs' datatable, allowing oracles to push values for this pair.

Additional pairs can be added by calling the 'newbounty' function, then having oracles and custodians voting in favor of the new pair.

You can set the approval thresholds in the parameters of the configure action.

@ekkis
Copy link
Contributor Author

ekkis commented Dec 24, 2019

ok. I have no idea what all these parameters are and I don't find docs on it so I've just set them all to 0:

cleos push action delphioracle configure '{"datapoints_per_instrument": 0, "bars_per_instrument": 0, "vote_interval": 0, "write_cooldown": 0, "approver_threshold": 0, "approving_oracles_threshold": 0, "approving_custodians_threshold": 0, "minimum_rank": 0, "paid": 0, "min_bounty_delay": 0, "new_bounty_delay": 0}'

but when I execute the above it pukes with:

Error 3015014: Pack data exception
Error Details:
Missing field 'g' in input object while processing struct 'configure'

as if it doesn't recognise the parameters I'm passing it

@ekkis
Copy link
Contributor Author

ekkis commented Dec 24, 2019

also curious, is use of CONTRACT, ACTION and TABLE new or is it old? I tag my actions with [[eosio::action]]

@ekkis
Copy link
Contributor Author

ekkis commented Dec 24, 2019

I've added instructions to the README for how to do this

@ekkis ekkis closed this as completed Dec 24, 2019
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