You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

federatorInfo.d.ts 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import { BaseRequest, BaseResponse } from './baseMethod';
  2. export interface FederatorInfoRequest extends BaseRequest {
  3. command: 'federator_info';
  4. }
  5. export interface FederatorInfoResponse extends BaseResponse {
  6. result: {
  7. info: {
  8. mainchain: {
  9. door_status: {
  10. initialized: boolean;
  11. status: 'open' | 'opening' | 'closed' | 'closing';
  12. };
  13. last_transaction_sent_seq: number;
  14. listener_info: {
  15. state: 'syncing' | 'normal';
  16. };
  17. pending_transactions: Array<{
  18. amount: string;
  19. destination_account: string;
  20. signatures: Array<{
  21. public_key: string;
  22. seq: number;
  23. }>;
  24. }>;
  25. sequence: number;
  26. tickets: {
  27. initialized: boolean;
  28. tickets: Array<{
  29. status: 'taken' | 'available';
  30. ticket_seq: number;
  31. }>;
  32. };
  33. };
  34. public_key: string;
  35. sidechain: {
  36. door_status: {
  37. initialized: boolean;
  38. status: 'open' | 'opening' | 'closed' | 'closing';
  39. };
  40. last_transaction_sent_seq: number;
  41. listener_info: {
  42. state: 'syncing' | 'normal';
  43. };
  44. pending_transactions: Array<{
  45. amount: string;
  46. destination_account: string;
  47. signatures: Array<{
  48. public_key: string;
  49. seq: number;
  50. }>;
  51. }>;
  52. sequence: number;
  53. tickets: {
  54. initialized: boolean;
  55. tickets: Array<{
  56. status: 'taken' | 'available';
  57. ticket_seq: number;
  58. }>;
  59. };
  60. };
  61. };
  62. };
  63. }
  64. //# sourceMappingURL=federatorInfo.d.ts.map