@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.
- package/generated/event_provider_api_pb.client.d.ts +156 -0
- package/generated/event_provider_api_pb.client.js +76 -0
- package/generated/event_provider_api_pb.d.ts +1980 -0
- package/generated/event_provider_api_pb.js +1776 -0
- package/generated/health_pb.client.d.ts +53 -0
- package/generated/health_pb.client.js +22 -0
- package/generated/health_pb.d.ts +309 -0
- package/generated/health_pb.js +265 -0
- package/generated/injective_accounts_rpc_pb.client.d.ts +211 -0
- package/generated/injective_accounts_rpc_pb.client.js +105 -0
- package/generated/injective_accounts_rpc_pb.d.ts +5307 -0
- package/generated/injective_accounts_rpc_pb.js +4784 -0
- package/generated/injective_archiver_rpc_pb.client.d.ts +224 -0
- package/generated/injective_archiver_rpc_pb.client.js +112 -0
- package/generated/injective_archiver_rpc_pb.d.ts +2944 -0
- package/generated/injective_archiver_rpc_pb.js +2603 -0
- package/generated/injective_auction_rpc_pb.client.d.ts +190 -0
- package/generated/injective_auction_rpc_pb.client.js +94 -0
- package/generated/injective_auction_rpc_pb.d.ts +2131 -0
- package/generated/injective_auction_rpc_pb.js +1917 -0
- package/generated/injective_campaign_rpc_pb.client.d.ts +138 -0
- package/generated/injective_campaign_rpc_pb.client.js +67 -0
- package/generated/injective_campaign_rpc_pb.d.ts +2766 -0
- package/generated/injective_campaign_rpc_pb.js +2542 -0
- package/generated/injective_chart_rpc_pb.client.d.ts +159 -0
- package/generated/injective_chart_rpc_pb.client.js +78 -0
- package/generated/injective_chart_rpc_pb.d.ts +1840 -0
- package/generated/injective_chart_rpc_pb.js +1690 -0
- package/generated/injective_derivative_exchange_rpc_pb.client.d.ts +504 -0
- package/generated/injective_derivative_exchange_rpc_pb.client.js +259 -0
- package/generated/injective_derivative_exchange_rpc_pb.d.ts +9214 -0
- package/generated/injective_derivative_exchange_rpc_pb.js +8407 -0
- package/generated/injective_exchange_rpc_pb.client.d.ts +155 -0
- package/generated/injective_exchange_rpc_pb.client.js +76 -0
- package/generated/injective_exchange_rpc_pb.d.ts +1925 -0
- package/generated/injective_exchange_rpc_pb.js +1740 -0
- package/generated/injective_explorer_rpc_pb.client.d.ts +495 -0
- package/generated/injective_explorer_rpc_pb.client.js +255 -0
- package/generated/injective_explorer_rpc_pb.d.ts +9394 -0
- package/generated/injective_explorer_rpc_pb.js +8921 -0
- package/generated/injective_insurance_rpc_pb.client.d.ts +87 -0
- package/generated/injective_insurance_rpc_pb.client.js +40 -0
- package/generated/injective_insurance_rpc_pb.d.ts +904 -0
- package/generated/injective_insurance_rpc_pb.js +807 -0
- package/generated/injective_megavault_rpc_pb.client.d.ts +155 -0
- package/generated/injective_megavault_rpc_pb.client.js +76 -0
- package/generated/injective_megavault_rpc_pb.d.ts +3408 -0
- package/generated/injective_megavault_rpc_pb.js +3019 -0
- package/generated/injective_meta_rpc_pb.client.d.ts +124 -0
- package/generated/injective_meta_rpc_pb.client.js +59 -0
- package/generated/injective_meta_rpc_pb.d.ts +825 -0
- package/generated/injective_meta_rpc_pb.js +716 -0
- package/generated/injective_oracle_rpc_pb.client.d.ts +124 -0
- package/generated/injective_oracle_rpc_pb.client.js +59 -0
- package/generated/injective_oracle_rpc_pb.d.ts +1117 -0
- package/generated/injective_oracle_rpc_pb.js +987 -0
- package/generated/injective_portfolio_rpc_pb.client.d.ts +105 -0
- package/generated/injective_portfolio_rpc_pb.client.js +49 -0
- package/generated/injective_portfolio_rpc_pb.d.ts +1492 -0
- package/generated/injective_portfolio_rpc_pb.js +1314 -0
- package/generated/injective_referral_rpc_pb.client.d.ts +89 -0
- package/generated/injective_referral_rpc_pb.client.js +41 -0
- package/generated/injective_referral_rpc_pb.d.ts +575 -0
- package/generated/injective_referral_rpc_pb.js +497 -0
- package/generated/injective_rfqrpc_pb.client.d.ts +208 -0
- package/generated/injective_rfqrpc_pb.client.js +103 -0
- package/generated/injective_rfqrpc_pb.d.ts +2241 -0
- package/generated/injective_rfqrpc_pb.js +1940 -0
- package/generated/injective_spot_exchange_rpc_pb.client.d.ts +343 -0
- package/generated/injective_spot_exchange_rpc_pb.client.js +175 -0
- package/generated/injective_spot_exchange_rpc_pb.d.ts +5958 -0
- package/generated/injective_spot_exchange_rpc_pb.js +5426 -0
- package/generated/injective_trading_rpc_pb.client.d.ts +90 -0
- package/generated/injective_trading_rpc_pb.client.js +40 -0
- package/generated/injective_trading_rpc_pb.d.ts +1882 -0
- package/generated/injective_trading_rpc_pb.js +1754 -0
- package/index.d.ts +43 -0
- package/index.js +78 -0
- 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_megavault_rpc.proto" (package "injective_megavault_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveMegavaultRPC 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 { InjectiveMegavaultRPC } from "./injective_megavault_rpc_pb";
|
|
15
|
+
import type { PnlHistoryResponse } from "./injective_megavault_rpc_pb";
|
|
16
|
+
import type { PnlHistoryRequest } from "./injective_megavault_rpc_pb";
|
|
17
|
+
import type { TvlHistoryResponse } from "./injective_megavault_rpc_pb";
|
|
18
|
+
import type { TvlHistoryRequest } from "./injective_megavault_rpc_pb";
|
|
19
|
+
import type { GetOperatorRedemptionBucketsResponse } from "./injective_megavault_rpc_pb";
|
|
20
|
+
import type { GetOperatorRedemptionBucketsRequest } from "./injective_megavault_rpc_pb";
|
|
21
|
+
import type { ListRedemptionsResponse } from "./injective_megavault_rpc_pb";
|
|
22
|
+
import type { ListRedemptionsRequest } from "./injective_megavault_rpc_pb";
|
|
23
|
+
import type { ListSubscriptionsResponse } from "./injective_megavault_rpc_pb";
|
|
24
|
+
import type { ListSubscriptionsRequest } from "./injective_megavault_rpc_pb";
|
|
25
|
+
import type { GetUserResponse } from "./injective_megavault_rpc_pb";
|
|
26
|
+
import type { GetUserRequest } from "./injective_megavault_rpc_pb";
|
|
27
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
28
|
+
import type { GetVaultResponse } from "./injective_megavault_rpc_pb";
|
|
29
|
+
import type { GetVaultRequest } from "./injective_megavault_rpc_pb";
|
|
30
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
31
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
32
|
+
/**
|
|
33
|
+
* InjectiveMegavaultRPC defined a gRPC service for Injective Megavault.
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf service injective_megavault_rpc.InjectiveMegavaultRPC
|
|
36
|
+
*/
|
|
37
|
+
export interface IInjectiveMegavaultRPCClient {
|
|
38
|
+
/**
|
|
39
|
+
* Get the vault information
|
|
40
|
+
*
|
|
41
|
+
* @generated from protobuf rpc: GetVault
|
|
42
|
+
*/
|
|
43
|
+
getVault(input: GetVaultRequest, options?: RpcOptions): UnaryCall<GetVaultRequest, GetVaultResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Get the user information for a vault
|
|
46
|
+
*
|
|
47
|
+
* @generated from protobuf rpc: GetUser
|
|
48
|
+
*/
|
|
49
|
+
getUser(input: GetUserRequest, options?: RpcOptions): UnaryCall<GetUserRequest, GetUserResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* List the subscriptions for a vault
|
|
52
|
+
*
|
|
53
|
+
* @generated from protobuf rpc: ListSubscriptions
|
|
54
|
+
*/
|
|
55
|
+
listSubscriptions(input: ListSubscriptionsRequest, options?: RpcOptions): UnaryCall<ListSubscriptionsRequest, ListSubscriptionsResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* List the redemptions for a vault
|
|
58
|
+
*
|
|
59
|
+
* @generated from protobuf rpc: ListRedemptions
|
|
60
|
+
*/
|
|
61
|
+
listRedemptions(input: ListRedemptionsRequest, options?: RpcOptions): UnaryCall<ListRedemptionsRequest, ListRedemptionsResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Get the redemptions buckets for an operator
|
|
64
|
+
*
|
|
65
|
+
* @generated from protobuf rpc: GetOperatorRedemptionBuckets
|
|
66
|
+
*/
|
|
67
|
+
getOperatorRedemptionBuckets(input: GetOperatorRedemptionBucketsRequest, options?: RpcOptions): UnaryCall<GetOperatorRedemptionBucketsRequest, GetOperatorRedemptionBucketsResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Provide historical TVL data.
|
|
70
|
+
*
|
|
71
|
+
* @generated from protobuf rpc: TvlHistory
|
|
72
|
+
*/
|
|
73
|
+
tvlHistory(input: TvlHistoryRequest, options?: RpcOptions): UnaryCall<TvlHistoryRequest, TvlHistoryResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Provide historical PnL data.
|
|
76
|
+
*
|
|
77
|
+
* @generated from protobuf rpc: PnlHistory
|
|
78
|
+
*/
|
|
79
|
+
pnlHistory(input: PnlHistoryRequest, options?: RpcOptions): UnaryCall<PnlHistoryRequest, PnlHistoryResponse>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* InjectiveMegavaultRPC defined a gRPC service for Injective Megavault.
|
|
83
|
+
*
|
|
84
|
+
* @generated from protobuf service injective_megavault_rpc.InjectiveMegavaultRPC
|
|
85
|
+
*/
|
|
86
|
+
export class InjectiveMegavaultRPCClient implements IInjectiveMegavaultRPCClient, ServiceInfo {
|
|
87
|
+
typeName = InjectiveMegavaultRPC.typeName;
|
|
88
|
+
methods = InjectiveMegavaultRPC.methods;
|
|
89
|
+
options = InjectiveMegavaultRPC.options;
|
|
90
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Get the vault information
|
|
94
|
+
*
|
|
95
|
+
* @generated from protobuf rpc: GetVault
|
|
96
|
+
*/
|
|
97
|
+
getVault(input: GetVaultRequest, options?: RpcOptions): UnaryCall<GetVaultRequest, GetVaultResponse> {
|
|
98
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
99
|
+
return stackIntercept<GetVaultRequest, GetVaultResponse>("unary", this._transport, method, opt, input);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Get the user information for a vault
|
|
103
|
+
*
|
|
104
|
+
* @generated from protobuf rpc: GetUser
|
|
105
|
+
*/
|
|
106
|
+
getUser(input: GetUserRequest, options?: RpcOptions): UnaryCall<GetUserRequest, GetUserResponse> {
|
|
107
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
108
|
+
return stackIntercept<GetUserRequest, GetUserResponse>("unary", this._transport, method, opt, input);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* List the subscriptions for a vault
|
|
112
|
+
*
|
|
113
|
+
* @generated from protobuf rpc: ListSubscriptions
|
|
114
|
+
*/
|
|
115
|
+
listSubscriptions(input: ListSubscriptionsRequest, options?: RpcOptions): UnaryCall<ListSubscriptionsRequest, ListSubscriptionsResponse> {
|
|
116
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
117
|
+
return stackIntercept<ListSubscriptionsRequest, ListSubscriptionsResponse>("unary", this._transport, method, opt, input);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* List the redemptions for a vault
|
|
121
|
+
*
|
|
122
|
+
* @generated from protobuf rpc: ListRedemptions
|
|
123
|
+
*/
|
|
124
|
+
listRedemptions(input: ListRedemptionsRequest, options?: RpcOptions): UnaryCall<ListRedemptionsRequest, ListRedemptionsResponse> {
|
|
125
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
126
|
+
return stackIntercept<ListRedemptionsRequest, ListRedemptionsResponse>("unary", this._transport, method, opt, input);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Get the redemptions buckets for an operator
|
|
130
|
+
*
|
|
131
|
+
* @generated from protobuf rpc: GetOperatorRedemptionBuckets
|
|
132
|
+
*/
|
|
133
|
+
getOperatorRedemptionBuckets(input: GetOperatorRedemptionBucketsRequest, options?: RpcOptions): UnaryCall<GetOperatorRedemptionBucketsRequest, GetOperatorRedemptionBucketsResponse> {
|
|
134
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
135
|
+
return stackIntercept<GetOperatorRedemptionBucketsRequest, GetOperatorRedemptionBucketsResponse>("unary", this._transport, method, opt, input);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Provide historical TVL data.
|
|
139
|
+
*
|
|
140
|
+
* @generated from protobuf rpc: TvlHistory
|
|
141
|
+
*/
|
|
142
|
+
tvlHistory(input: TvlHistoryRequest, options?: RpcOptions): UnaryCall<TvlHistoryRequest, TvlHistoryResponse> {
|
|
143
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
144
|
+
return stackIntercept<TvlHistoryRequest, TvlHistoryResponse>("unary", this._transport, method, opt, input);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Provide historical PnL data.
|
|
148
|
+
*
|
|
149
|
+
* @generated from protobuf rpc: PnlHistory
|
|
150
|
+
*/
|
|
151
|
+
pnlHistory(input: PnlHistoryRequest, options?: RpcOptions): UnaryCall<PnlHistoryRequest, PnlHistoryResponse> {
|
|
152
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
153
|
+
return stackIntercept<PnlHistoryRequest, PnlHistoryResponse>("unary", this._transport, method, opt, input);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { InjectiveMegavaultRPC } from "./injective_megavault_rpc_pb.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
class InjectiveMegavaultRPCClient {
|
|
4
|
+
constructor(_transport) {
|
|
5
|
+
this._transport = _transport;
|
|
6
|
+
this.typeName = InjectiveMegavaultRPC.typeName;
|
|
7
|
+
this.methods = InjectiveMegavaultRPC.methods;
|
|
8
|
+
this.options = InjectiveMegavaultRPC.options;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get the vault information
|
|
12
|
+
*
|
|
13
|
+
* @generated from protobuf rpc: GetVault
|
|
14
|
+
*/
|
|
15
|
+
getVault(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
|
+
* Get the user information for a vault
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf rpc: GetUser
|
|
23
|
+
*/
|
|
24
|
+
getUser(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
|
+
* List the subscriptions for a vault
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf rpc: ListSubscriptions
|
|
32
|
+
*/
|
|
33
|
+
listSubscriptions(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
|
+
* List the redemptions for a vault
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf rpc: ListRedemptions
|
|
41
|
+
*/
|
|
42
|
+
listRedemptions(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 the redemptions buckets for an operator
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf rpc: GetOperatorRedemptionBuckets
|
|
50
|
+
*/
|
|
51
|
+
getOperatorRedemptionBuckets(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
|
+
* Provide historical TVL data.
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf rpc: TvlHistory
|
|
59
|
+
*/
|
|
60
|
+
tvlHistory(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
|
+
* Provide historical PnL data.
|
|
66
|
+
*
|
|
67
|
+
* @generated from protobuf rpc: PnlHistory
|
|
68
|
+
*/
|
|
69
|
+
pnlHistory(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
|
+
InjectiveMegavaultRPCClient
|
|
76
|
+
};
|