serai/processor
Luke Parker 8ea5acbacb Update the Router smart contract to pay fees to the caller
The caller is paid a fixed fee per unit of gas spent. That arguably
incentivizes the publisher to raise the gas used by internal calls, yet this
doesn't effect the user UX as they'll have flatly paid the worst-case fee
already. It does pose a risk where callers are arguably incentivized to cause
transaction failures which consume all the gas, not just increased gas, yet:

1) Modern smart contracts don't error by consuming all the gas
2) This is presumably infeasible
3) Even if it was feasible, the gas fees gained presumably exceed the gas fees
   spent causing the failure

The benefit to only paying the callers for the gas used, not the gas alotted,
is it allows Serai to build up a buffer. While this should be minor, a few
cents on every transaction at best, if we ever do have any costs slip through
the cracks, it ideally is sufficient to handle those.
2024-09-19 23:36:32 -07:00
..
bin Merge BlockWithAcknowledgedBatch and BatchWithoutAcknowledgeBatch 2024-09-19 23:36:32 -07:00
bitcoin Update to the latest bitcoin-serai 2024-09-19 23:36:32 -07:00
ethereum Update the Router smart contract to pay fees to the caller 2024-09-19 23:36:32 -07:00
frost-attempt-manager Route the coordinator, fix race conditions in the signers library 2024-09-19 23:36:32 -07:00
key-gen Misc continuances on the Monero processor 2024-09-19 23:36:32 -07:00
messages Merge BlockWithAcknowledgedBatch and BatchWithoutAcknowledgeBatch 2024-09-19 23:36:32 -07:00
monero Add hooks to the main loop 2024-09-19 23:36:32 -07:00
primitives Pass the latest active key to the Block's scan function 2024-09-19 23:36:32 -07:00
scanner Merge BlockWithAcknowledgedBatch and BatchWithoutAcknowledgeBatch 2024-09-19 23:36:32 -07:00
scheduler Remove OutInstruction's data field 2024-09-19 23:36:32 -07:00
signers cargo fmt signers/scanner 2024-09-19 23:36:32 -07:00
src Remove OutInstruction's data field 2024-09-19 23:36:32 -07:00
view-keys Move additional_key.rs to serai-processor-view-keys 2024-09-19 23:36:32 -07:00
README.md Split processor into bitcoin-processor, ethereum-processor, monero-processor 2024-09-19 23:36:32 -07:00

Processor

The Serai processors, built from the libraries here, scan an external network and report the indexed data to the coordinator. For details on its exact messaging flow, and overall policies, please view docs/processor.