community.d.ts 974 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * There are many awesome community services that provide Ethereum
  3. * nodes both for developers just starting out and for large-scale
  4. * communities.
  5. *
  6. * @_section: api/providers/thirdparty: Community Providers [thirdparty]
  7. */
  8. /**
  9. * Providers which offer community credentials should extend this
  10. * to notify any interested consumers whether community credentials
  11. * are in-use.
  12. */
  13. export interface CommunityResourcable {
  14. /**
  15. * Returns true of the instance is connected using the community
  16. * credentials.
  17. */
  18. isCommunityResource(): boolean;
  19. }
  20. /**
  21. * Displays a warning in tht console when the community resource is
  22. * being used too heavily by the app, recommending the developer
  23. * acquire their own credentials instead of using the community
  24. * credentials.
  25. *
  26. * The notification will only occur once per service.
  27. */
  28. export declare function showThrottleMessage(service: string): void;
  29. //# sourceMappingURL=community.d.ts.map