@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,155 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "injective_exchange_rpc.proto" (package "injective_exchange_rpc", syntax proto3)
3
+ // tslint:disable
4
+ //
5
+ // Code generated with goa v3.7.0, DO NOT EDIT.
6
+ //
7
+ // InjectiveExchangeRPC 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 { InjectiveExchangeRPC } from "./injective_exchange_rpc_pb";
15
+ import type { GetFeePayerResponse } from "./injective_exchange_rpc_pb";
16
+ import type { GetFeePayerRequest } from "./injective_exchange_rpc_pb";
17
+ import type { BroadcastCosmosTxResponse } from "./injective_exchange_rpc_pb";
18
+ import type { BroadcastCosmosTxRequest } from "./injective_exchange_rpc_pb";
19
+ import type { PrepareCosmosTxResponse } from "./injective_exchange_rpc_pb";
20
+ import type { PrepareCosmosTxRequest } from "./injective_exchange_rpc_pb";
21
+ import type { BroadcastTxResponse } from "./injective_exchange_rpc_pb";
22
+ import type { BroadcastTxRequest } from "./injective_exchange_rpc_pb";
23
+ import type { PrepareEip712Response } from "./injective_exchange_rpc_pb";
24
+ import type { PrepareEip712Request } from "./injective_exchange_rpc_pb";
25
+ import type { PrepareTxResponse } from "./injective_exchange_rpc_pb";
26
+ import type { PrepareTxRequest } from "./injective_exchange_rpc_pb";
27
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
28
+ import type { GetTxResponse } from "./injective_exchange_rpc_pb";
29
+ import type { GetTxRequest } from "./injective_exchange_rpc_pb";
30
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
31
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
32
+ /**
33
+ * InjectiveExchangeRPC defines gRPC API of an Injective Exchange service.
34
+ *
35
+ * @generated from protobuf service injective_exchange_rpc.InjectiveExchangeRPC
36
+ */
37
+ export interface IInjectiveExchangeRPCClient {
38
+ /**
39
+ * GetTx gets transaction details by hash.
40
+ *
41
+ * @generated from protobuf rpc: GetTx
42
+ */
43
+ getTx(input: GetTxRequest, options?: RpcOptions): UnaryCall<GetTxRequest, GetTxResponse>;
44
+ /**
45
+ * PrepareTx generates a Web3-signable body for a Cosmos transaction
46
+ *
47
+ * @generated from protobuf rpc: PrepareTx
48
+ */
49
+ prepareTx(input: PrepareTxRequest, options?: RpcOptions): UnaryCall<PrepareTxRequest, PrepareTxResponse>;
50
+ /**
51
+ * prepareEip712 generates EIP712 for an Injective Message
52
+ *
53
+ * @generated from protobuf rpc: PrepareEip712
54
+ */
55
+ prepareEip712(input: PrepareEip712Request, options?: RpcOptions): UnaryCall<PrepareEip712Request, PrepareEip712Response>;
56
+ /**
57
+ * BroadcastTx broadcasts a signed Web3 transaction
58
+ *
59
+ * @generated from protobuf rpc: BroadcastTx
60
+ */
61
+ broadcastTx(input: BroadcastTxRequest, options?: RpcOptions): UnaryCall<BroadcastTxRequest, BroadcastTxResponse>;
62
+ /**
63
+ * PrepareCosmosTx generates a Web3-signable body for a Cosmos transaction
64
+ *
65
+ * @generated from protobuf rpc: PrepareCosmosTx
66
+ */
67
+ prepareCosmosTx(input: PrepareCosmosTxRequest, options?: RpcOptions): UnaryCall<PrepareCosmosTxRequest, PrepareCosmosTxResponse>;
68
+ /**
69
+ * BroadcastCosmosTx broadcasts a signed Web3 transaction
70
+ *
71
+ * @generated from protobuf rpc: BroadcastCosmosTx
72
+ */
73
+ broadcastCosmosTx(input: BroadcastCosmosTxRequest, options?: RpcOptions): UnaryCall<BroadcastCosmosTxRequest, BroadcastCosmosTxResponse>;
74
+ /**
75
+ * Return fee payer information's
76
+ *
77
+ * @generated from protobuf rpc: GetFeePayer
78
+ */
79
+ getFeePayer(input: GetFeePayerRequest, options?: RpcOptions): UnaryCall<GetFeePayerRequest, GetFeePayerResponse>;
80
+ }
81
+ /**
82
+ * InjectiveExchangeRPC defines gRPC API of an Injective Exchange service.
83
+ *
84
+ * @generated from protobuf service injective_exchange_rpc.InjectiveExchangeRPC
85
+ */
86
+ export class InjectiveExchangeRPCClient implements IInjectiveExchangeRPCClient, ServiceInfo {
87
+ typeName = InjectiveExchangeRPC.typeName;
88
+ methods = InjectiveExchangeRPC.methods;
89
+ options = InjectiveExchangeRPC.options;
90
+ constructor(private readonly _transport: RpcTransport) {
91
+ }
92
+ /**
93
+ * GetTx gets transaction details by hash.
94
+ *
95
+ * @generated from protobuf rpc: GetTx
96
+ */
97
+ getTx(input: GetTxRequest, options?: RpcOptions): UnaryCall<GetTxRequest, GetTxResponse> {
98
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
99
+ return stackIntercept<GetTxRequest, GetTxResponse>("unary", this._transport, method, opt, input);
100
+ }
101
+ /**
102
+ * PrepareTx generates a Web3-signable body for a Cosmos transaction
103
+ *
104
+ * @generated from protobuf rpc: PrepareTx
105
+ */
106
+ prepareTx(input: PrepareTxRequest, options?: RpcOptions): UnaryCall<PrepareTxRequest, PrepareTxResponse> {
107
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
108
+ return stackIntercept<PrepareTxRequest, PrepareTxResponse>("unary", this._transport, method, opt, input);
109
+ }
110
+ /**
111
+ * prepareEip712 generates EIP712 for an Injective Message
112
+ *
113
+ * @generated from protobuf rpc: PrepareEip712
114
+ */
115
+ prepareEip712(input: PrepareEip712Request, options?: RpcOptions): UnaryCall<PrepareEip712Request, PrepareEip712Response> {
116
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
117
+ return stackIntercept<PrepareEip712Request, PrepareEip712Response>("unary", this._transport, method, opt, input);
118
+ }
119
+ /**
120
+ * BroadcastTx broadcasts a signed Web3 transaction
121
+ *
122
+ * @generated from protobuf rpc: BroadcastTx
123
+ */
124
+ broadcastTx(input: BroadcastTxRequest, options?: RpcOptions): UnaryCall<BroadcastTxRequest, BroadcastTxResponse> {
125
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
126
+ return stackIntercept<BroadcastTxRequest, BroadcastTxResponse>("unary", this._transport, method, opt, input);
127
+ }
128
+ /**
129
+ * PrepareCosmosTx generates a Web3-signable body for a Cosmos transaction
130
+ *
131
+ * @generated from protobuf rpc: PrepareCosmosTx
132
+ */
133
+ prepareCosmosTx(input: PrepareCosmosTxRequest, options?: RpcOptions): UnaryCall<PrepareCosmosTxRequest, PrepareCosmosTxResponse> {
134
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
135
+ return stackIntercept<PrepareCosmosTxRequest, PrepareCosmosTxResponse>("unary", this._transport, method, opt, input);
136
+ }
137
+ /**
138
+ * BroadcastCosmosTx broadcasts a signed Web3 transaction
139
+ *
140
+ * @generated from protobuf rpc: BroadcastCosmosTx
141
+ */
142
+ broadcastCosmosTx(input: BroadcastCosmosTxRequest, options?: RpcOptions): UnaryCall<BroadcastCosmosTxRequest, BroadcastCosmosTxResponse> {
143
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
144
+ return stackIntercept<BroadcastCosmosTxRequest, BroadcastCosmosTxResponse>("unary", this._transport, method, opt, input);
145
+ }
146
+ /**
147
+ * Return fee payer information's
148
+ *
149
+ * @generated from protobuf rpc: GetFeePayer
150
+ */
151
+ getFeePayer(input: GetFeePayerRequest, options?: RpcOptions): UnaryCall<GetFeePayerRequest, GetFeePayerResponse> {
152
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
153
+ return stackIntercept<GetFeePayerRequest, GetFeePayerResponse>("unary", this._transport, method, opt, input);
154
+ }
155
+ }
@@ -0,0 +1,76 @@
1
+ import { InjectiveExchangeRPC } from "./injective_exchange_rpc_pb.js";
2
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
+ class InjectiveExchangeRPCClient {
4
+ constructor(_transport) {
5
+ this._transport = _transport;
6
+ this.typeName = InjectiveExchangeRPC.typeName;
7
+ this.methods = InjectiveExchangeRPC.methods;
8
+ this.options = InjectiveExchangeRPC.options;
9
+ }
10
+ /**
11
+ * GetTx gets transaction details by hash.
12
+ *
13
+ * @generated from protobuf rpc: GetTx
14
+ */
15
+ getTx(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
+ * PrepareTx generates a Web3-signable body for a Cosmos transaction
21
+ *
22
+ * @generated from protobuf rpc: PrepareTx
23
+ */
24
+ prepareTx(input, options) {
25
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
26
+ return stackIntercept("unary", this._transport, method, opt, input);
27
+ }
28
+ /**
29
+ * prepareEip712 generates EIP712 for an Injective Message
30
+ *
31
+ * @generated from protobuf rpc: PrepareEip712
32
+ */
33
+ prepareEip712(input, options) {
34
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
35
+ return stackIntercept("unary", this._transport, method, opt, input);
36
+ }
37
+ /**
38
+ * BroadcastTx broadcasts a signed Web3 transaction
39
+ *
40
+ * @generated from protobuf rpc: BroadcastTx
41
+ */
42
+ broadcastTx(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
+ * PrepareCosmosTx generates a Web3-signable body for a Cosmos transaction
48
+ *
49
+ * @generated from protobuf rpc: PrepareCosmosTx
50
+ */
51
+ prepareCosmosTx(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
+ * BroadcastCosmosTx broadcasts a signed Web3 transaction
57
+ *
58
+ * @generated from protobuf rpc: BroadcastCosmosTx
59
+ */
60
+ broadcastCosmosTx(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
+ * Return fee payer information's
66
+ *
67
+ * @generated from protobuf rpc: GetFeePayer
68
+ */
69
+ getFeePayer(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
+ InjectiveExchangeRPCClient
76
+ };