@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,138 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_campaign_rpc.proto" (package "injective_campaign_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveCampaignRPC 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 { InjectiveCampaignRPC } from "./injective_campaign_rpc_pb";
|
|
15
|
+
import type { GetGuildMemberResponse } from "./injective_campaign_rpc_pb";
|
|
16
|
+
import type { GetGuildMemberRequest } from "./injective_campaign_rpc_pb";
|
|
17
|
+
import type { ListGuildMembersResponse } from "./injective_campaign_rpc_pb";
|
|
18
|
+
import type { ListGuildMembersRequest } from "./injective_campaign_rpc_pb";
|
|
19
|
+
import type { ListGuildsResponse } from "./injective_campaign_rpc_pb";
|
|
20
|
+
import type { ListGuildsRequest } from "./injective_campaign_rpc_pb";
|
|
21
|
+
import type { CampaignsV2Response } from "./injective_campaign_rpc_pb";
|
|
22
|
+
import type { CampaignsV2Request } from "./injective_campaign_rpc_pb";
|
|
23
|
+
import type { CampaignsResponse } from "./injective_campaign_rpc_pb";
|
|
24
|
+
import type { CampaignsRequest } from "./injective_campaign_rpc_pb";
|
|
25
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
26
|
+
import type { RankingResponse } from "./injective_campaign_rpc_pb";
|
|
27
|
+
import type { RankingRequest } from "./injective_campaign_rpc_pb";
|
|
28
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
29
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
30
|
+
/**
|
|
31
|
+
* InjectiveCampaignRPC defined a gRPC service for Injective Campaigns.
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf service injective_campaign_rpc.InjectiveCampaignRPC
|
|
34
|
+
*/
|
|
35
|
+
export interface IInjectiveCampaignRPCClient {
|
|
36
|
+
/**
|
|
37
|
+
* Lists all participants in campaign
|
|
38
|
+
*
|
|
39
|
+
* @generated from protobuf rpc: Ranking
|
|
40
|
+
*/
|
|
41
|
+
ranking(input: RankingRequest, options?: RpcOptions): UnaryCall<RankingRequest, RankingResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* List current round active campaigns
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf rpc: Campaigns
|
|
46
|
+
*/
|
|
47
|
+
campaigns(input: CampaignsRequest, options?: RpcOptions): UnaryCall<CampaignsRequest, CampaignsResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* List campaigns v2
|
|
50
|
+
*
|
|
51
|
+
* @generated from protobuf rpc: CampaignsV2
|
|
52
|
+
*/
|
|
53
|
+
campaignsV2(input: CampaignsV2Request, options?: RpcOptions): UnaryCall<CampaignsV2Request, CampaignsV2Response>;
|
|
54
|
+
/**
|
|
55
|
+
* List guilds by campaign
|
|
56
|
+
*
|
|
57
|
+
* @generated from protobuf rpc: ListGuilds
|
|
58
|
+
*/
|
|
59
|
+
listGuilds(input: ListGuildsRequest, options?: RpcOptions): UnaryCall<ListGuildsRequest, ListGuildsResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* List guild members of given campaign and guildId
|
|
62
|
+
*
|
|
63
|
+
* @generated from protobuf rpc: ListGuildMembers
|
|
64
|
+
*/
|
|
65
|
+
listGuildMembers(input: ListGuildMembersRequest, options?: RpcOptions): UnaryCall<ListGuildMembersRequest, ListGuildMembersResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Get single member guild info
|
|
68
|
+
*
|
|
69
|
+
* @generated from protobuf rpc: GetGuildMember
|
|
70
|
+
*/
|
|
71
|
+
getGuildMember(input: GetGuildMemberRequest, options?: RpcOptions): UnaryCall<GetGuildMemberRequest, GetGuildMemberResponse>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* InjectiveCampaignRPC defined a gRPC service for Injective Campaigns.
|
|
75
|
+
*
|
|
76
|
+
* @generated from protobuf service injective_campaign_rpc.InjectiveCampaignRPC
|
|
77
|
+
*/
|
|
78
|
+
export class InjectiveCampaignRPCClient implements IInjectiveCampaignRPCClient, ServiceInfo {
|
|
79
|
+
typeName = InjectiveCampaignRPC.typeName;
|
|
80
|
+
methods = InjectiveCampaignRPC.methods;
|
|
81
|
+
options = InjectiveCampaignRPC.options;
|
|
82
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Lists all participants in campaign
|
|
86
|
+
*
|
|
87
|
+
* @generated from protobuf rpc: Ranking
|
|
88
|
+
*/
|
|
89
|
+
ranking(input: RankingRequest, options?: RpcOptions): UnaryCall<RankingRequest, RankingResponse> {
|
|
90
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
91
|
+
return stackIntercept<RankingRequest, RankingResponse>("unary", this._transport, method, opt, input);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* List current round active campaigns
|
|
95
|
+
*
|
|
96
|
+
* @generated from protobuf rpc: Campaigns
|
|
97
|
+
*/
|
|
98
|
+
campaigns(input: CampaignsRequest, options?: RpcOptions): UnaryCall<CampaignsRequest, CampaignsResponse> {
|
|
99
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
100
|
+
return stackIntercept<CampaignsRequest, CampaignsResponse>("unary", this._transport, method, opt, input);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* List campaigns v2
|
|
104
|
+
*
|
|
105
|
+
* @generated from protobuf rpc: CampaignsV2
|
|
106
|
+
*/
|
|
107
|
+
campaignsV2(input: CampaignsV2Request, options?: RpcOptions): UnaryCall<CampaignsV2Request, CampaignsV2Response> {
|
|
108
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
109
|
+
return stackIntercept<CampaignsV2Request, CampaignsV2Response>("unary", this._transport, method, opt, input);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* List guilds by campaign
|
|
113
|
+
*
|
|
114
|
+
* @generated from protobuf rpc: ListGuilds
|
|
115
|
+
*/
|
|
116
|
+
listGuilds(input: ListGuildsRequest, options?: RpcOptions): UnaryCall<ListGuildsRequest, ListGuildsResponse> {
|
|
117
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
118
|
+
return stackIntercept<ListGuildsRequest, ListGuildsResponse>("unary", this._transport, method, opt, input);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* List guild members of given campaign and guildId
|
|
122
|
+
*
|
|
123
|
+
* @generated from protobuf rpc: ListGuildMembers
|
|
124
|
+
*/
|
|
125
|
+
listGuildMembers(input: ListGuildMembersRequest, options?: RpcOptions): UnaryCall<ListGuildMembersRequest, ListGuildMembersResponse> {
|
|
126
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
127
|
+
return stackIntercept<ListGuildMembersRequest, ListGuildMembersResponse>("unary", this._transport, method, opt, input);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Get single member guild info
|
|
131
|
+
*
|
|
132
|
+
* @generated from protobuf rpc: GetGuildMember
|
|
133
|
+
*/
|
|
134
|
+
getGuildMember(input: GetGuildMemberRequest, options?: RpcOptions): UnaryCall<GetGuildMemberRequest, GetGuildMemberResponse> {
|
|
135
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
136
|
+
return stackIntercept<GetGuildMemberRequest, GetGuildMemberResponse>("unary", this._transport, method, opt, input);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { InjectiveCampaignRPC } from "./injective_campaign_rpc_pb.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
class InjectiveCampaignRPCClient {
|
|
4
|
+
constructor(_transport) {
|
|
5
|
+
this._transport = _transport;
|
|
6
|
+
this.typeName = InjectiveCampaignRPC.typeName;
|
|
7
|
+
this.methods = InjectiveCampaignRPC.methods;
|
|
8
|
+
this.options = InjectiveCampaignRPC.options;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Lists all participants in campaign
|
|
12
|
+
*
|
|
13
|
+
* @generated from protobuf rpc: Ranking
|
|
14
|
+
*/
|
|
15
|
+
ranking(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
|
+
* List current round active campaigns
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf rpc: Campaigns
|
|
23
|
+
*/
|
|
24
|
+
campaigns(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 campaigns v2
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf rpc: CampaignsV2
|
|
32
|
+
*/
|
|
33
|
+
campaignsV2(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 guilds by campaign
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf rpc: ListGuilds
|
|
41
|
+
*/
|
|
42
|
+
listGuilds(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
|
+
* List guild members of given campaign and guildId
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf rpc: ListGuildMembers
|
|
50
|
+
*/
|
|
51
|
+
listGuildMembers(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 single member guild info
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf rpc: GetGuildMember
|
|
59
|
+
*/
|
|
60
|
+
getGuildMember(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
|
+
export {
|
|
66
|
+
InjectiveCampaignRPCClient
|
|
67
|
+
};
|