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

backoffice API and interfaces #134

Open
InoMurko opened this issue Sep 24, 2020 · 3 comments
Open

backoffice API and interfaces #134

InoMurko opened this issue Sep 24, 2020 · 3 comments
Labels
L Large amount of work need product Needs product input question Further information is requested WIP Work in Progress

Comments

@InoMurko
Copy link
Contributor

Supported APIs extracted and filtered from Watcher Info

"/account.get_balance"
"/account.get_utxos"
"/account.get_transactions"
"/block.all"
"/deposit.all"
"/transaction.all"
"/transaction.get"
"/block.get"
"/fees.all"
"/stats.get"

As you can notice transaction.create and transaction.submit_typed were removed. "/transaction.submit_typed" can be moved to Watcher Security.

There are no Watcher Security APIs in backoffiice (intentional, we want to push the network to use run their Watcher!). There are also no write APIs.

Backoffice can support an additional "get mempool transaction".
"/account.get_in_flight_transactions" (filtered by account) as we cannot reliably return a ful future block of transactions (64000 transactions in a JSON would be huge). Mempool transactions come directly from the Childchain2 via MQ (RabbitMQ). Backoffice is also responsible for forming blocks.

@InoMurko InoMurko added L Large amount of work need product Needs product input question Further information is requested WIP Work in Progress labels Sep 24, 2020
@InoMurko
Copy link
Contributor Author

InoMurko commented Sep 24, 2020

I would also be easly persuaded for us to track all events emitted from plasma contracts (like, BondReturnFailed BountyReturnFailed ExitOmitted IFEBondUpdated PiggybackBondUpdated ProcessInFlightExitBountyUpdated ...). We can then expose the data from the API.
And sell.

@unnawut
Copy link

unnawut commented Sep 30, 2020

Question to product: How do we encourage more people to run their own watcher security? Could be feature offering wise, relationship management, public communications, etc.

@boolafish
Copy link

boolafish commented Sep 30, 2020

How do we encourage more people to run their own watcher security?

We byzantine and take all the money out from people who does not run watcher :trollface:

But a more serious one, how about we enforce regular drill and for those who does not run, we offer our watcher endpoint with money cost that would let them pay a lot for the drill 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L Large amount of work need product Needs product input question Further information is requested WIP Work in Progress
Projects
None yet
Development

No branches or pull requests

3 participants