EntropyStatusConstants.sol 616 B

12345678910111213
  1. // SPDX-License-Identifier: Apache 2
  2. library EntropyStatusConstants {
  3. // Status values for Request.status //
  4. // not a request with callback
  5. uint8 public constant CALLBACK_NOT_NECESSARY = 0;
  6. // A request with callback where the callback hasn't been invoked yet.
  7. uint8 public constant CALLBACK_NOT_STARTED = 1;
  8. // A request with callback where the callback is currently in flight (this state is a reentry guard).
  9. uint8 public constant CALLBACK_IN_PROGRESS = 2;
  10. // A request with callback where the callback has been invoked and failed.
  11. uint8 public constant CALLBACK_FAILED = 3;
  12. }