@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,105 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_portfolio_rpc.proto" (package "injective_portfolio_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectivePortfolioRPC 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 { InjectivePortfolioRPC } from "./injective_portfolio_rpc_pb";
|
|
15
|
+
import type { StreamAccountPortfolioResponse } from "./injective_portfolio_rpc_pb";
|
|
16
|
+
import type { StreamAccountPortfolioRequest } from "./injective_portfolio_rpc_pb";
|
|
17
|
+
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
18
|
+
import type { AccountPortfolioBalancesResponse } from "./injective_portfolio_rpc_pb";
|
|
19
|
+
import type { AccountPortfolioBalancesRequest } from "./injective_portfolio_rpc_pb";
|
|
20
|
+
import type { AccountPortfolioResponse } from "./injective_portfolio_rpc_pb";
|
|
21
|
+
import type { AccountPortfolioRequest } from "./injective_portfolio_rpc_pb";
|
|
22
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
23
|
+
import type { TokenHoldersResponse } from "./injective_portfolio_rpc_pb";
|
|
24
|
+
import type { TokenHoldersRequest } from "./injective_portfolio_rpc_pb";
|
|
25
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
26
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
27
|
+
/**
|
|
28
|
+
* InjectivePortfolioRPC defines gRPC API of Exchange Portfolio provider.
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf service injective_portfolio_rpc.InjectivePortfolioRPC
|
|
31
|
+
*/
|
|
32
|
+
export interface IInjectivePortfolioRPCClient {
|
|
33
|
+
/**
|
|
34
|
+
* Provide a list of addresses holding a specific token
|
|
35
|
+
*
|
|
36
|
+
* @generated from protobuf rpc: TokenHolders
|
|
37
|
+
*/
|
|
38
|
+
tokenHolders(input: TokenHoldersRequest, options?: RpcOptions): UnaryCall<TokenHoldersRequest, TokenHoldersResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Provide the account's portfolio
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf rpc: AccountPortfolio
|
|
43
|
+
*/
|
|
44
|
+
accountPortfolio(input: AccountPortfolioRequest, options?: RpcOptions): UnaryCall<AccountPortfolioRequest, AccountPortfolioResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Provide the account's portfolio balances
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf rpc: AccountPortfolioBalances
|
|
49
|
+
*/
|
|
50
|
+
accountPortfolioBalances(input: AccountPortfolioBalancesRequest, options?: RpcOptions): UnaryCall<AccountPortfolioBalancesRequest, AccountPortfolioBalancesResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Stream the account's portfolio
|
|
53
|
+
*
|
|
54
|
+
* @generated from protobuf rpc: StreamAccountPortfolio
|
|
55
|
+
*/
|
|
56
|
+
streamAccountPortfolio(input: StreamAccountPortfolioRequest, options?: RpcOptions): ServerStreamingCall<StreamAccountPortfolioRequest, StreamAccountPortfolioResponse>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* InjectivePortfolioRPC defines gRPC API of Exchange Portfolio provider.
|
|
60
|
+
*
|
|
61
|
+
* @generated from protobuf service injective_portfolio_rpc.InjectivePortfolioRPC
|
|
62
|
+
*/
|
|
63
|
+
export class InjectivePortfolioRPCClient implements IInjectivePortfolioRPCClient, ServiceInfo {
|
|
64
|
+
typeName = InjectivePortfolioRPC.typeName;
|
|
65
|
+
methods = InjectivePortfolioRPC.methods;
|
|
66
|
+
options = InjectivePortfolioRPC.options;
|
|
67
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Provide a list of addresses holding a specific token
|
|
71
|
+
*
|
|
72
|
+
* @generated from protobuf rpc: TokenHolders
|
|
73
|
+
*/
|
|
74
|
+
tokenHolders(input: TokenHoldersRequest, options?: RpcOptions): UnaryCall<TokenHoldersRequest, TokenHoldersResponse> {
|
|
75
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
76
|
+
return stackIntercept<TokenHoldersRequest, TokenHoldersResponse>("unary", this._transport, method, opt, input);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Provide the account's portfolio
|
|
80
|
+
*
|
|
81
|
+
* @generated from protobuf rpc: AccountPortfolio
|
|
82
|
+
*/
|
|
83
|
+
accountPortfolio(input: AccountPortfolioRequest, options?: RpcOptions): UnaryCall<AccountPortfolioRequest, AccountPortfolioResponse> {
|
|
84
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
85
|
+
return stackIntercept<AccountPortfolioRequest, AccountPortfolioResponse>("unary", this._transport, method, opt, input);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Provide the account's portfolio balances
|
|
89
|
+
*
|
|
90
|
+
* @generated from protobuf rpc: AccountPortfolioBalances
|
|
91
|
+
*/
|
|
92
|
+
accountPortfolioBalances(input: AccountPortfolioBalancesRequest, options?: RpcOptions): UnaryCall<AccountPortfolioBalancesRequest, AccountPortfolioBalancesResponse> {
|
|
93
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
94
|
+
return stackIntercept<AccountPortfolioBalancesRequest, AccountPortfolioBalancesResponse>("unary", this._transport, method, opt, input);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Stream the account's portfolio
|
|
98
|
+
*
|
|
99
|
+
* @generated from protobuf rpc: StreamAccountPortfolio
|
|
100
|
+
*/
|
|
101
|
+
streamAccountPortfolio(input: StreamAccountPortfolioRequest, options?: RpcOptions): ServerStreamingCall<StreamAccountPortfolioRequest, StreamAccountPortfolioResponse> {
|
|
102
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
103
|
+
return stackIntercept<StreamAccountPortfolioRequest, StreamAccountPortfolioResponse>("serverStreaming", this._transport, method, opt, input);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { InjectivePortfolioRPC } from "./injective_portfolio_rpc_pb.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
class InjectivePortfolioRPCClient {
|
|
4
|
+
constructor(_transport) {
|
|
5
|
+
this._transport = _transport;
|
|
6
|
+
this.typeName = InjectivePortfolioRPC.typeName;
|
|
7
|
+
this.methods = InjectivePortfolioRPC.methods;
|
|
8
|
+
this.options = InjectivePortfolioRPC.options;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Provide a list of addresses holding a specific token
|
|
12
|
+
*
|
|
13
|
+
* @generated from protobuf rpc: TokenHolders
|
|
14
|
+
*/
|
|
15
|
+
tokenHolders(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
|
+
* Provide the account's portfolio
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf rpc: AccountPortfolio
|
|
23
|
+
*/
|
|
24
|
+
accountPortfolio(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
|
+
* Provide the account's portfolio balances
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf rpc: AccountPortfolioBalances
|
|
32
|
+
*/
|
|
33
|
+
accountPortfolioBalances(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
|
+
* Stream the account's portfolio
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf rpc: StreamAccountPortfolio
|
|
41
|
+
*/
|
|
42
|
+
streamAccountPortfolio(input, options) {
|
|
43
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
44
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
InjectivePortfolioRPCClient
|
|
49
|
+
};
|