@injectivelabs/indexer-proto-ts-v2 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/generated/event_provider_api_pb.client.d.ts +156 -0
  2. package/generated/event_provider_api_pb.client.js +76 -0
  3. package/generated/event_provider_api_pb.d.ts +1980 -0
  4. package/generated/event_provider_api_pb.js +1776 -0
  5. package/generated/health_pb.client.d.ts +53 -0
  6. package/generated/health_pb.client.js +22 -0
  7. package/generated/health_pb.d.ts +309 -0
  8. package/generated/health_pb.js +265 -0
  9. package/generated/injective_accounts_rpc_pb.client.d.ts +211 -0
  10. package/generated/injective_accounts_rpc_pb.client.js +105 -0
  11. package/generated/injective_accounts_rpc_pb.d.ts +5307 -0
  12. package/generated/injective_accounts_rpc_pb.js +4784 -0
  13. package/generated/injective_archiver_rpc_pb.client.d.ts +224 -0
  14. package/generated/injective_archiver_rpc_pb.client.js +112 -0
  15. package/generated/injective_archiver_rpc_pb.d.ts +2944 -0
  16. package/generated/injective_archiver_rpc_pb.js +2603 -0
  17. package/generated/injective_auction_rpc_pb.client.d.ts +190 -0
  18. package/generated/injective_auction_rpc_pb.client.js +94 -0
  19. package/generated/injective_auction_rpc_pb.d.ts +2131 -0
  20. package/generated/injective_auction_rpc_pb.js +1917 -0
  21. package/generated/injective_campaign_rpc_pb.client.d.ts +138 -0
  22. package/generated/injective_campaign_rpc_pb.client.js +67 -0
  23. package/generated/injective_campaign_rpc_pb.d.ts +2766 -0
  24. package/generated/injective_campaign_rpc_pb.js +2542 -0
  25. package/generated/injective_chart_rpc_pb.client.d.ts +159 -0
  26. package/generated/injective_chart_rpc_pb.client.js +78 -0
  27. package/generated/injective_chart_rpc_pb.d.ts +1840 -0
  28. package/generated/injective_chart_rpc_pb.js +1690 -0
  29. package/generated/injective_derivative_exchange_rpc_pb.client.d.ts +504 -0
  30. package/generated/injective_derivative_exchange_rpc_pb.client.js +259 -0
  31. package/generated/injective_derivative_exchange_rpc_pb.d.ts +9214 -0
  32. package/generated/injective_derivative_exchange_rpc_pb.js +8407 -0
  33. package/generated/injective_exchange_rpc_pb.client.d.ts +155 -0
  34. package/generated/injective_exchange_rpc_pb.client.js +76 -0
  35. package/generated/injective_exchange_rpc_pb.d.ts +1925 -0
  36. package/generated/injective_exchange_rpc_pb.js +1740 -0
  37. package/generated/injective_explorer_rpc_pb.client.d.ts +495 -0
  38. package/generated/injective_explorer_rpc_pb.client.js +255 -0
  39. package/generated/injective_explorer_rpc_pb.d.ts +9394 -0
  40. package/generated/injective_explorer_rpc_pb.js +8921 -0
  41. package/generated/injective_insurance_rpc_pb.client.d.ts +87 -0
  42. package/generated/injective_insurance_rpc_pb.client.js +40 -0
  43. package/generated/injective_insurance_rpc_pb.d.ts +904 -0
  44. package/generated/injective_insurance_rpc_pb.js +807 -0
  45. package/generated/injective_megavault_rpc_pb.client.d.ts +155 -0
  46. package/generated/injective_megavault_rpc_pb.client.js +76 -0
  47. package/generated/injective_megavault_rpc_pb.d.ts +3408 -0
  48. package/generated/injective_megavault_rpc_pb.js +3019 -0
  49. package/generated/injective_meta_rpc_pb.client.d.ts +124 -0
  50. package/generated/injective_meta_rpc_pb.client.js +59 -0
  51. package/generated/injective_meta_rpc_pb.d.ts +825 -0
  52. package/generated/injective_meta_rpc_pb.js +716 -0
  53. package/generated/injective_oracle_rpc_pb.client.d.ts +124 -0
  54. package/generated/injective_oracle_rpc_pb.client.js +59 -0
  55. package/generated/injective_oracle_rpc_pb.d.ts +1117 -0
  56. package/generated/injective_oracle_rpc_pb.js +987 -0
  57. package/generated/injective_portfolio_rpc_pb.client.d.ts +105 -0
  58. package/generated/injective_portfolio_rpc_pb.client.js +49 -0
  59. package/generated/injective_portfolio_rpc_pb.d.ts +1492 -0
  60. package/generated/injective_portfolio_rpc_pb.js +1314 -0
  61. package/generated/injective_referral_rpc_pb.client.d.ts +89 -0
  62. package/generated/injective_referral_rpc_pb.client.js +41 -0
  63. package/generated/injective_referral_rpc_pb.d.ts +575 -0
  64. package/generated/injective_referral_rpc_pb.js +497 -0
  65. package/generated/injective_rfqrpc_pb.client.d.ts +208 -0
  66. package/generated/injective_rfqrpc_pb.client.js +103 -0
  67. package/generated/injective_rfqrpc_pb.d.ts +2241 -0
  68. package/generated/injective_rfqrpc_pb.js +1940 -0
  69. package/generated/injective_spot_exchange_rpc_pb.client.d.ts +343 -0
  70. package/generated/injective_spot_exchange_rpc_pb.client.js +175 -0
  71. package/generated/injective_spot_exchange_rpc_pb.d.ts +5958 -0
  72. package/generated/injective_spot_exchange_rpc_pb.js +5426 -0
  73. package/generated/injective_trading_rpc_pb.client.d.ts +90 -0
  74. package/generated/injective_trading_rpc_pb.client.js +40 -0
  75. package/generated/injective_trading_rpc_pb.d.ts +1882 -0
  76. package/generated/injective_trading_rpc_pb.js +1754 -0
  77. package/index.d.ts +43 -0
  78. package/index.js +78 -0
  79. package/package.json +37 -0
@@ -0,0 +1,156 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "event_provider_api.proto" (package "event_provider_api", syntax proto3)
3
+ // tslint:disable
4
+ //
5
+ // Code generated with goa v3.7.0, DO NOT EDIT.
6
+ //
7
+ // EventProviderAPI protocol buffer definition
8
+ //
9
+ // Command:
10
+ // $ goa gen github.com/InjectiveLabs/injective-indexer/api/design -o ../
11
+ //
12
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
13
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
14
+ import { EventProviderAPI } from "./event_provider_api_pb";
15
+ import type { GetABCIBlockEventsAtHeightResponse } from "./event_provider_api_pb";
16
+ import type { GetABCIBlockEventsAtHeightRequest } from "./event_provider_api_pb";
17
+ import type { GetABCIBlockEventsResponse } from "./event_provider_api_pb";
18
+ import type { GetABCIBlockEventsRequest } from "./event_provider_api_pb";
19
+ import type { GetCustomEventsRPCResponse } from "./event_provider_api_pb";
20
+ import type { GetCustomEventsRPCRequest } from "./event_provider_api_pb";
21
+ import type { GetBlockEventsRPCResponse } from "./event_provider_api_pb";
22
+ import type { GetBlockEventsRPCRequest } from "./event_provider_api_pb";
23
+ import type { StreamBlockEventsResponse } from "./event_provider_api_pb";
24
+ import type { StreamBlockEventsRequest } from "./event_provider_api_pb";
25
+ import type { StreamLatestHeightResponse } from "./event_provider_api_pb";
26
+ import type { StreamLatestHeightRequest } from "./event_provider_api_pb";
27
+ import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
28
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
29
+ import type { GetLatestHeightResponse } from "./event_provider_api_pb";
30
+ import type { GetLatestHeightRequest } from "./event_provider_api_pb";
31
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
32
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
33
+ /**
34
+ * EventProviderAPI provides processed block events for different backends.
35
+ *
36
+ * @generated from protobuf service event_provider_api.EventProviderAPI
37
+ */
38
+ export interface IEventProviderAPIClient {
39
+ /**
40
+ * Get latest block from event provider
41
+ *
42
+ * @generated from protobuf rpc: GetLatestHeight
43
+ */
44
+ getLatestHeight(input: GetLatestHeightRequest, options?: RpcOptions): UnaryCall<GetLatestHeightRequest, GetLatestHeightResponse>;
45
+ /**
46
+ * Stream latest block information
47
+ *
48
+ * @generated from protobuf rpc: StreamLatestHeight
49
+ */
50
+ streamLatestHeight(input: StreamLatestHeightRequest, options?: RpcOptions): ServerStreamingCall<StreamLatestHeightRequest, StreamLatestHeightResponse>;
51
+ /**
52
+ * Stream processed block events for selected backend
53
+ *
54
+ * @generated from protobuf rpc: StreamBlockEvents
55
+ */
56
+ streamBlockEvents(input: StreamBlockEventsRequest, options?: RpcOptions): ServerStreamingCall<StreamBlockEventsRequest, StreamBlockEventsResponse>;
57
+ /**
58
+ * Get processed block events for selected backend
59
+ *
60
+ * @generated from protobuf rpc: GetBlockEventsRPC
61
+ */
62
+ getBlockEventsRPC(input: GetBlockEventsRPCRequest, options?: RpcOptions): UnaryCall<GetBlockEventsRPCRequest, GetBlockEventsRPCResponse>;
63
+ /**
64
+ * Get custom processed block events for selected backend
65
+ *
66
+ * @generated from protobuf rpc: GetCustomEventsRPC
67
+ */
68
+ getCustomEventsRPC(input: GetCustomEventsRPCRequest, options?: RpcOptions): UnaryCall<GetCustomEventsRPCRequest, GetCustomEventsRPCResponse>;
69
+ /**
70
+ * Get raw block events for selected height
71
+ *
72
+ * @generated from protobuf rpc: GetABCIBlockEvents
73
+ */
74
+ getABCIBlockEvents(input: GetABCIBlockEventsRequest, options?: RpcOptions): UnaryCall<GetABCIBlockEventsRequest, GetABCIBlockEventsResponse>;
75
+ /**
76
+ * Get all raw block events for selected height
77
+ *
78
+ * @generated from protobuf rpc: GetABCIBlockEventsAtHeight
79
+ */
80
+ getABCIBlockEventsAtHeight(input: GetABCIBlockEventsAtHeightRequest, options?: RpcOptions): UnaryCall<GetABCIBlockEventsAtHeightRequest, GetABCIBlockEventsAtHeightResponse>;
81
+ }
82
+ /**
83
+ * EventProviderAPI provides processed block events for different backends.
84
+ *
85
+ * @generated from protobuf service event_provider_api.EventProviderAPI
86
+ */
87
+ export class EventProviderAPIClient implements IEventProviderAPIClient, ServiceInfo {
88
+ typeName = EventProviderAPI.typeName;
89
+ methods = EventProviderAPI.methods;
90
+ options = EventProviderAPI.options;
91
+ constructor(private readonly _transport: RpcTransport) {
92
+ }
93
+ /**
94
+ * Get latest block from event provider
95
+ *
96
+ * @generated from protobuf rpc: GetLatestHeight
97
+ */
98
+ getLatestHeight(input: GetLatestHeightRequest, options?: RpcOptions): UnaryCall<GetLatestHeightRequest, GetLatestHeightResponse> {
99
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
100
+ return stackIntercept<GetLatestHeightRequest, GetLatestHeightResponse>("unary", this._transport, method, opt, input);
101
+ }
102
+ /**
103
+ * Stream latest block information
104
+ *
105
+ * @generated from protobuf rpc: StreamLatestHeight
106
+ */
107
+ streamLatestHeight(input: StreamLatestHeightRequest, options?: RpcOptions): ServerStreamingCall<StreamLatestHeightRequest, StreamLatestHeightResponse> {
108
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
109
+ return stackIntercept<StreamLatestHeightRequest, StreamLatestHeightResponse>("serverStreaming", this._transport, method, opt, input);
110
+ }
111
+ /**
112
+ * Stream processed block events for selected backend
113
+ *
114
+ * @generated from protobuf rpc: StreamBlockEvents
115
+ */
116
+ streamBlockEvents(input: StreamBlockEventsRequest, options?: RpcOptions): ServerStreamingCall<StreamBlockEventsRequest, StreamBlockEventsResponse> {
117
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
118
+ return stackIntercept<StreamBlockEventsRequest, StreamBlockEventsResponse>("serverStreaming", this._transport, method, opt, input);
119
+ }
120
+ /**
121
+ * Get processed block events for selected backend
122
+ *
123
+ * @generated from protobuf rpc: GetBlockEventsRPC
124
+ */
125
+ getBlockEventsRPC(input: GetBlockEventsRPCRequest, options?: RpcOptions): UnaryCall<GetBlockEventsRPCRequest, GetBlockEventsRPCResponse> {
126
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
127
+ return stackIntercept<GetBlockEventsRPCRequest, GetBlockEventsRPCResponse>("unary", this._transport, method, opt, input);
128
+ }
129
+ /**
130
+ * Get custom processed block events for selected backend
131
+ *
132
+ * @generated from protobuf rpc: GetCustomEventsRPC
133
+ */
134
+ getCustomEventsRPC(input: GetCustomEventsRPCRequest, options?: RpcOptions): UnaryCall<GetCustomEventsRPCRequest, GetCustomEventsRPCResponse> {
135
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
136
+ return stackIntercept<GetCustomEventsRPCRequest, GetCustomEventsRPCResponse>("unary", this._transport, method, opt, input);
137
+ }
138
+ /**
139
+ * Get raw block events for selected height
140
+ *
141
+ * @generated from protobuf rpc: GetABCIBlockEvents
142
+ */
143
+ getABCIBlockEvents(input: GetABCIBlockEventsRequest, options?: RpcOptions): UnaryCall<GetABCIBlockEventsRequest, GetABCIBlockEventsResponse> {
144
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
145
+ return stackIntercept<GetABCIBlockEventsRequest, GetABCIBlockEventsResponse>("unary", this._transport, method, opt, input);
146
+ }
147
+ /**
148
+ * Get all raw block events for selected height
149
+ *
150
+ * @generated from protobuf rpc: GetABCIBlockEventsAtHeight
151
+ */
152
+ getABCIBlockEventsAtHeight(input: GetABCIBlockEventsAtHeightRequest, options?: RpcOptions): UnaryCall<GetABCIBlockEventsAtHeightRequest, GetABCIBlockEventsAtHeightResponse> {
153
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
154
+ return stackIntercept<GetABCIBlockEventsAtHeightRequest, GetABCIBlockEventsAtHeightResponse>("unary", this._transport, method, opt, input);
155
+ }
156
+ }
@@ -0,0 +1,76 @@
1
+ import { EventProviderAPI } from "./event_provider_api_pb.js";
2
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
+ class EventProviderAPIClient {
4
+ constructor(_transport) {
5
+ this._transport = _transport;
6
+ this.typeName = EventProviderAPI.typeName;
7
+ this.methods = EventProviderAPI.methods;
8
+ this.options = EventProviderAPI.options;
9
+ }
10
+ /**
11
+ * Get latest block from event provider
12
+ *
13
+ * @generated from protobuf rpc: GetLatestHeight
14
+ */
15
+ getLatestHeight(input, options) {
16
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
17
+ return stackIntercept("unary", this._transport, method, opt, input);
18
+ }
19
+ /**
20
+ * Stream latest block information
21
+ *
22
+ * @generated from protobuf rpc: StreamLatestHeight
23
+ */
24
+ streamLatestHeight(input, options) {
25
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
26
+ return stackIntercept("serverStreaming", this._transport, method, opt, input);
27
+ }
28
+ /**
29
+ * Stream processed block events for selected backend
30
+ *
31
+ * @generated from protobuf rpc: StreamBlockEvents
32
+ */
33
+ streamBlockEvents(input, options) {
34
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
35
+ return stackIntercept("serverStreaming", this._transport, method, opt, input);
36
+ }
37
+ /**
38
+ * Get processed block events for selected backend
39
+ *
40
+ * @generated from protobuf rpc: GetBlockEventsRPC
41
+ */
42
+ getBlockEventsRPC(input, options) {
43
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
44
+ return stackIntercept("unary", this._transport, method, opt, input);
45
+ }
46
+ /**
47
+ * Get custom processed block events for selected backend
48
+ *
49
+ * @generated from protobuf rpc: GetCustomEventsRPC
50
+ */
51
+ getCustomEventsRPC(input, options) {
52
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
53
+ return stackIntercept("unary", this._transport, method, opt, input);
54
+ }
55
+ /**
56
+ * Get raw block events for selected height
57
+ *
58
+ * @generated from protobuf rpc: GetABCIBlockEvents
59
+ */
60
+ getABCIBlockEvents(input, options) {
61
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
62
+ return stackIntercept("unary", this._transport, method, opt, input);
63
+ }
64
+ /**
65
+ * Get all raw block events for selected height
66
+ *
67
+ * @generated from protobuf rpc: GetABCIBlockEventsAtHeight
68
+ */
69
+ getABCIBlockEventsAtHeight(input, options) {
70
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
71
+ return stackIntercept("unary", this._transport, method, opt, input);
72
+ }
73
+ }
74
+ export {
75
+ EventProviderAPIClient
76
+ };