@uniswap/client-data-api 0.0.1 → 0.0.2
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/dist/data/v1/api-DataApiService_connectquery.d.ts +33 -7
- package/dist/data/v1/api-DataApiService_connectquery.js +33 -7
- package/dist/data/v1/api_connect.d.ts +24 -6
- package/dist/data/v1/api_connect.js +24 -6
- package/dist/data/v1/api_pb.d.ts +159 -1
- package/dist/data/v1/api_pb.js +238 -1
- package/dist/data/v1/types_pb.d.ts +653 -5
- package/dist/data/v1/types_pb.js +819 -10
- package/package.json +1 -1
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse } from "./api_pb.js";
|
|
2
|
+
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from rpc data.v1.DataApiService.GetToken
|
|
5
|
+
*/
|
|
6
|
+
export declare const getToken: {
|
|
7
|
+
readonly localName: "getToken";
|
|
8
|
+
readonly name: "GetToken";
|
|
9
|
+
readonly kind: MethodKind.Unary;
|
|
10
|
+
readonly I: typeof GetTokenRequest;
|
|
11
|
+
readonly O: typeof GetTokenResponse;
|
|
12
|
+
readonly service: {
|
|
13
|
+
readonly typeName: "data.v1.DataApiService";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc data.v1.DataApiService.SubmitReport
|
|
18
|
+
*/
|
|
19
|
+
export declare const submitReport: {
|
|
20
|
+
readonly localName: "submitReport";
|
|
21
|
+
readonly name: "SubmitReport";
|
|
22
|
+
readonly kind: MethodKind.Unary;
|
|
23
|
+
readonly I: typeof SubmitReportRequest;
|
|
24
|
+
readonly O: typeof SubmitReportResponse;
|
|
25
|
+
readonly service: {
|
|
26
|
+
readonly typeName: "data.v1.DataApiService";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
3
29
|
/**
|
|
4
30
|
* @generated from rpc data.v1.DataApiService.GetPortfolio
|
|
5
31
|
*/
|
|
@@ -14,14 +40,14 @@ export declare const getPortfolio: {
|
|
|
14
40
|
};
|
|
15
41
|
};
|
|
16
42
|
/**
|
|
17
|
-
* @generated from rpc data.v1.DataApiService.
|
|
43
|
+
* @generated from rpc data.v1.DataApiService.ListTransactions
|
|
18
44
|
*/
|
|
19
|
-
export declare const
|
|
20
|
-
readonly localName: "
|
|
21
|
-
readonly name: "
|
|
45
|
+
export declare const listTransactions: {
|
|
46
|
+
readonly localName: "listTransactions";
|
|
47
|
+
readonly name: "ListTransactions";
|
|
22
48
|
readonly kind: MethodKind.Unary;
|
|
23
|
-
readonly I: typeof
|
|
24
|
-
readonly O: typeof
|
|
49
|
+
readonly I: typeof ListTransactionsRequest;
|
|
50
|
+
readonly O: typeof ListTransactionsResponse;
|
|
25
51
|
readonly service: {
|
|
26
52
|
readonly typeName: "data.v1.DataApiService";
|
|
27
53
|
};
|
|
@@ -3,7 +3,33 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse } from "./api_pb.js";
|
|
6
|
+
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from rpc data.v1.DataApiService.GetToken
|
|
9
|
+
*/
|
|
10
|
+
export const getToken = {
|
|
11
|
+
localName: "getToken",
|
|
12
|
+
name: "GetToken",
|
|
13
|
+
kind: MethodKind.Unary,
|
|
14
|
+
I: GetTokenRequest,
|
|
15
|
+
O: GetTokenResponse,
|
|
16
|
+
service: {
|
|
17
|
+
typeName: "data.v1.DataApiService"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from rpc data.v1.DataApiService.SubmitReport
|
|
22
|
+
*/
|
|
23
|
+
export const submitReport = {
|
|
24
|
+
localName: "submitReport",
|
|
25
|
+
name: "SubmitReport",
|
|
26
|
+
kind: MethodKind.Unary,
|
|
27
|
+
I: SubmitReportRequest,
|
|
28
|
+
O: SubmitReportResponse,
|
|
29
|
+
service: {
|
|
30
|
+
typeName: "data.v1.DataApiService"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
7
33
|
/**
|
|
8
34
|
* @generated from rpc data.v1.DataApiService.GetPortfolio
|
|
9
35
|
*/
|
|
@@ -18,14 +44,14 @@ export const getPortfolio = {
|
|
|
18
44
|
}
|
|
19
45
|
};
|
|
20
46
|
/**
|
|
21
|
-
* @generated from rpc data.v1.DataApiService.
|
|
47
|
+
* @generated from rpc data.v1.DataApiService.ListTransactions
|
|
22
48
|
*/
|
|
23
|
-
export const
|
|
24
|
-
localName: "
|
|
25
|
-
name: "
|
|
49
|
+
export const listTransactions = {
|
|
50
|
+
localName: "listTransactions",
|
|
51
|
+
name: "ListTransactions",
|
|
26
52
|
kind: MethodKind.Unary,
|
|
27
|
-
I:
|
|
28
|
-
O:
|
|
53
|
+
I: ListTransactionsRequest,
|
|
54
|
+
O: ListTransactionsResponse,
|
|
29
55
|
service: {
|
|
30
56
|
typeName: "data.v1.DataApiService"
|
|
31
57
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse } from "./api_pb.js";
|
|
1
|
+
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v1.DataApiService
|
|
@@ -6,6 +6,24 @@ import { MethodKind } from "@bufbuild/protobuf";
|
|
|
6
6
|
export declare const DataApiService: {
|
|
7
7
|
readonly typeName: "data.v1.DataApiService";
|
|
8
8
|
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from rpc data.v1.DataApiService.GetToken
|
|
11
|
+
*/
|
|
12
|
+
readonly getToken: {
|
|
13
|
+
readonly name: "GetToken";
|
|
14
|
+
readonly I: typeof GetTokenRequest;
|
|
15
|
+
readonly O: typeof GetTokenResponse;
|
|
16
|
+
readonly kind: MethodKind.Unary;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc data.v1.DataApiService.SubmitReport
|
|
20
|
+
*/
|
|
21
|
+
readonly submitReport: {
|
|
22
|
+
readonly name: "SubmitReport";
|
|
23
|
+
readonly I: typeof SubmitReportRequest;
|
|
24
|
+
readonly O: typeof SubmitReportResponse;
|
|
25
|
+
readonly kind: MethodKind.Unary;
|
|
26
|
+
};
|
|
9
27
|
/**
|
|
10
28
|
* @generated from rpc data.v1.DataApiService.GetPortfolio
|
|
11
29
|
*/
|
|
@@ -16,12 +34,12 @@ export declare const DataApiService: {
|
|
|
16
34
|
readonly kind: MethodKind.Unary;
|
|
17
35
|
};
|
|
18
36
|
/**
|
|
19
|
-
* @generated from rpc data.v1.DataApiService.
|
|
37
|
+
* @generated from rpc data.v1.DataApiService.ListTransactions
|
|
20
38
|
*/
|
|
21
|
-
readonly
|
|
22
|
-
readonly name: "
|
|
23
|
-
readonly I: typeof
|
|
24
|
-
readonly O: typeof
|
|
39
|
+
readonly listTransactions: {
|
|
40
|
+
readonly name: "ListTransactions";
|
|
41
|
+
readonly I: typeof ListTransactionsRequest;
|
|
42
|
+
readonly O: typeof ListTransactionsResponse;
|
|
25
43
|
readonly kind: MethodKind.Unary;
|
|
26
44
|
};
|
|
27
45
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file data/v1/api.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse } from "./api_pb.js";
|
|
5
|
+
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v1.DataApiService
|
|
@@ -10,6 +10,24 @@ import { MethodKind } from "@bufbuild/protobuf";
|
|
|
10
10
|
export const DataApiService = {
|
|
11
11
|
typeName: "data.v1.DataApiService",
|
|
12
12
|
methods: {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from rpc data.v1.DataApiService.GetToken
|
|
15
|
+
*/
|
|
16
|
+
getToken: {
|
|
17
|
+
name: "GetToken",
|
|
18
|
+
I: GetTokenRequest,
|
|
19
|
+
O: GetTokenResponse,
|
|
20
|
+
kind: MethodKind.Unary,
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* @generated from rpc data.v1.DataApiService.SubmitReport
|
|
24
|
+
*/
|
|
25
|
+
submitReport: {
|
|
26
|
+
name: "SubmitReport",
|
|
27
|
+
I: SubmitReportRequest,
|
|
28
|
+
O: SubmitReportResponse,
|
|
29
|
+
kind: MethodKind.Unary,
|
|
30
|
+
},
|
|
13
31
|
/**
|
|
14
32
|
* @generated from rpc data.v1.DataApiService.GetPortfolio
|
|
15
33
|
*/
|
|
@@ -20,12 +38,12 @@ export const DataApiService = {
|
|
|
20
38
|
kind: MethodKind.Unary,
|
|
21
39
|
},
|
|
22
40
|
/**
|
|
23
|
-
* @generated from rpc data.v1.DataApiService.
|
|
41
|
+
* @generated from rpc data.v1.DataApiService.ListTransactions
|
|
24
42
|
*/
|
|
25
|
-
|
|
26
|
-
name: "
|
|
27
|
-
I:
|
|
28
|
-
O:
|
|
43
|
+
listTransactions: {
|
|
44
|
+
name: "ListTransactions",
|
|
45
|
+
I: ListTransactionsRequest,
|
|
46
|
+
O: ListTransactionsResponse,
|
|
29
47
|
kind: MethodKind.Unary,
|
|
30
48
|
},
|
|
31
49
|
}
|
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { Portfolio, PortfolioValueModifier, Token } from "./types_pb.js";
|
|
3
|
+
import { Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
|
|
4
4
|
/**
|
|
5
5
|
* @generated from message data.v1.GetTokenRequest
|
|
6
6
|
*/
|
|
@@ -81,3 +81,161 @@ export declare class GetPortfolioResponse extends Message<GetPortfolioResponse>
|
|
|
81
81
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPortfolioResponse;
|
|
82
82
|
static equals(a: GetPortfolioResponse | PlainMessage<GetPortfolioResponse> | undefined, b: GetPortfolioResponse | PlainMessage<GetPortfolioResponse> | undefined): boolean;
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* @generated from message data.v1.SubmitReportRequest
|
|
86
|
+
*/
|
|
87
|
+
export declare class SubmitReportRequest extends Message<SubmitReportRequest> {
|
|
88
|
+
/**
|
|
89
|
+
* @generated from field: uint32 chain_id = 1;
|
|
90
|
+
*/
|
|
91
|
+
chainId: number;
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: string address = 2;
|
|
94
|
+
*/
|
|
95
|
+
address: string;
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: data.v1.TokenReportEventType event = 3;
|
|
98
|
+
*/
|
|
99
|
+
event: TokenReportEventType;
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: string details = 4;
|
|
102
|
+
*/
|
|
103
|
+
details: string;
|
|
104
|
+
constructor(data?: PartialMessage<SubmitReportRequest>);
|
|
105
|
+
static readonly runtime: typeof proto3;
|
|
106
|
+
static readonly typeName = "data.v1.SubmitReportRequest";
|
|
107
|
+
static readonly fields: FieldList;
|
|
108
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubmitReportRequest;
|
|
109
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubmitReportRequest;
|
|
110
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubmitReportRequest;
|
|
111
|
+
static equals(a: SubmitReportRequest | PlainMessage<SubmitReportRequest> | undefined, b: SubmitReportRequest | PlainMessage<SubmitReportRequest> | undefined): boolean;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @generated from message data.v1.SubmitReportResponse
|
|
115
|
+
*/
|
|
116
|
+
export declare class SubmitReportResponse extends Message<SubmitReportResponse> {
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: bool success = 1;
|
|
119
|
+
*/
|
|
120
|
+
success: boolean;
|
|
121
|
+
constructor(data?: PartialMessage<SubmitReportResponse>);
|
|
122
|
+
static readonly runtime: typeof proto3;
|
|
123
|
+
static readonly typeName = "data.v1.SubmitReportResponse";
|
|
124
|
+
static readonly fields: FieldList;
|
|
125
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubmitReportResponse;
|
|
126
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubmitReportResponse;
|
|
127
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubmitReportResponse;
|
|
128
|
+
static equals(a: SubmitReportResponse | PlainMessage<SubmitReportResponse> | undefined, b: SubmitReportResponse | PlainMessage<SubmitReportResponse> | undefined): boolean;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @generated from message data.v1.ListTransactionsRequest
|
|
132
|
+
*/
|
|
133
|
+
export declare class ListTransactionsRequest extends Message<ListTransactionsRequest> {
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
136
|
+
*/
|
|
137
|
+
chainIds: number[];
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: string address = 2;
|
|
140
|
+
*/
|
|
141
|
+
address: string;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: data.v1.FiatOnRampParams fiat_on_ramp_params = 3;
|
|
144
|
+
*/
|
|
145
|
+
fiatOnRampParams?: FiatOnRampParams;
|
|
146
|
+
constructor(data?: PartialMessage<ListTransactionsRequest>);
|
|
147
|
+
static readonly runtime: typeof proto3;
|
|
148
|
+
static readonly typeName = "data.v1.ListTransactionsRequest";
|
|
149
|
+
static readonly fields: FieldList;
|
|
150
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTransactionsRequest;
|
|
151
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTransactionsRequest;
|
|
152
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTransactionsRequest;
|
|
153
|
+
static equals(a: ListTransactionsRequest | PlainMessage<ListTransactionsRequest> | undefined, b: ListTransactionsRequest | PlainMessage<ListTransactionsRequest> | undefined): boolean;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @generated from message data.v1.FiatOnRampParams
|
|
157
|
+
*/
|
|
158
|
+
export declare class FiatOnRampParams extends Message<FiatOnRampParams> {
|
|
159
|
+
/**
|
|
160
|
+
* @generated from oneof data.v1.FiatOnRampParams.params
|
|
161
|
+
*/
|
|
162
|
+
params: {
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: data.v1.FiatOnRampTransactionIds transaction_ids = 1;
|
|
165
|
+
*/
|
|
166
|
+
value: FiatOnRampTransactionIds;
|
|
167
|
+
case: "transactionIds";
|
|
168
|
+
} | {
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: data.v1.FiatOnRampAuth auth = 2;
|
|
171
|
+
*/
|
|
172
|
+
value: FiatOnRampAuth;
|
|
173
|
+
case: "auth";
|
|
174
|
+
} | {
|
|
175
|
+
case: undefined;
|
|
176
|
+
value?: undefined;
|
|
177
|
+
};
|
|
178
|
+
constructor(data?: PartialMessage<FiatOnRampParams>);
|
|
179
|
+
static readonly runtime: typeof proto3;
|
|
180
|
+
static readonly typeName = "data.v1.FiatOnRampParams";
|
|
181
|
+
static readonly fields: FieldList;
|
|
182
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FiatOnRampParams;
|
|
183
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FiatOnRampParams;
|
|
184
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FiatOnRampParams;
|
|
185
|
+
static equals(a: FiatOnRampParams | PlainMessage<FiatOnRampParams> | undefined, b: FiatOnRampParams | PlainMessage<FiatOnRampParams> | undefined): boolean;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* @generated from message data.v1.FiatOnRampAuth
|
|
189
|
+
*/
|
|
190
|
+
export declare class FiatOnRampAuth extends Message<FiatOnRampAuth> {
|
|
191
|
+
/**
|
|
192
|
+
* @generated from field: string query_params = 1;
|
|
193
|
+
*/
|
|
194
|
+
queryParams: string;
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: string signature = 2;
|
|
197
|
+
*/
|
|
198
|
+
signature: string;
|
|
199
|
+
constructor(data?: PartialMessage<FiatOnRampAuth>);
|
|
200
|
+
static readonly runtime: typeof proto3;
|
|
201
|
+
static readonly typeName = "data.v1.FiatOnRampAuth";
|
|
202
|
+
static readonly fields: FieldList;
|
|
203
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FiatOnRampAuth;
|
|
204
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FiatOnRampAuth;
|
|
205
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FiatOnRampAuth;
|
|
206
|
+
static equals(a: FiatOnRampAuth | PlainMessage<FiatOnRampAuth> | undefined, b: FiatOnRampAuth | PlainMessage<FiatOnRampAuth> | undefined): boolean;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @generated from message data.v1.FiatOnRampTransactionIds
|
|
210
|
+
*/
|
|
211
|
+
export declare class FiatOnRampTransactionIds extends Message<FiatOnRampTransactionIds> {
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: repeated string transaction_ids = 1;
|
|
214
|
+
*/
|
|
215
|
+
transactionIds: string[];
|
|
216
|
+
constructor(data?: PartialMessage<FiatOnRampTransactionIds>);
|
|
217
|
+
static readonly runtime: typeof proto3;
|
|
218
|
+
static readonly typeName = "data.v1.FiatOnRampTransactionIds";
|
|
219
|
+
static readonly fields: FieldList;
|
|
220
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FiatOnRampTransactionIds;
|
|
221
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FiatOnRampTransactionIds;
|
|
222
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FiatOnRampTransactionIds;
|
|
223
|
+
static equals(a: FiatOnRampTransactionIds | PlainMessage<FiatOnRampTransactionIds> | undefined, b: FiatOnRampTransactionIds | PlainMessage<FiatOnRampTransactionIds> | undefined): boolean;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @generated from message data.v1.ListTransactionsResponse
|
|
227
|
+
*/
|
|
228
|
+
export declare class ListTransactionsResponse extends Message<ListTransactionsResponse> {
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: repeated data.v1.Transaction transactions = 1;
|
|
231
|
+
*/
|
|
232
|
+
transactions: Transaction[];
|
|
233
|
+
constructor(data?: PartialMessage<ListTransactionsResponse>);
|
|
234
|
+
static readonly runtime: typeof proto3;
|
|
235
|
+
static readonly typeName = "data.v1.ListTransactionsResponse";
|
|
236
|
+
static readonly fields: FieldList;
|
|
237
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTransactionsResponse;
|
|
238
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTransactionsResponse;
|
|
239
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTransactionsResponse;
|
|
240
|
+
static equals(a: ListTransactionsResponse | PlainMessage<ListTransactionsResponse> | undefined, b: ListTransactionsResponse | PlainMessage<ListTransactionsResponse> | undefined): boolean;
|
|
241
|
+
}
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { Portfolio, PortfolioValueModifier, Token } from "./types_pb.js";
|
|
6
|
+
import { Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from message data.v1.GetTokenRequest
|
|
9
9
|
*/
|
|
@@ -127,3 +127,240 @@ GetPortfolioResponse.typeName = "data.v1.GetPortfolioResponse";
|
|
|
127
127
|
GetPortfolioResponse.fields = proto3.util.newFieldList(() => [
|
|
128
128
|
{ no: 1, name: "portfolio", kind: "message", T: Portfolio },
|
|
129
129
|
]);
|
|
130
|
+
/**
|
|
131
|
+
* @generated from message data.v1.SubmitReportRequest
|
|
132
|
+
*/
|
|
133
|
+
export class SubmitReportRequest extends Message {
|
|
134
|
+
constructor(data) {
|
|
135
|
+
super();
|
|
136
|
+
/**
|
|
137
|
+
* @generated from field: uint32 chain_id = 1;
|
|
138
|
+
*/
|
|
139
|
+
this.chainId = 0;
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: string address = 2;
|
|
142
|
+
*/
|
|
143
|
+
this.address = "";
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: data.v1.TokenReportEventType event = 3;
|
|
146
|
+
*/
|
|
147
|
+
this.event = TokenReportEventType.UNSPECIFIED;
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: string details = 4;
|
|
150
|
+
*/
|
|
151
|
+
this.details = "";
|
|
152
|
+
proto3.util.initPartial(data, this);
|
|
153
|
+
}
|
|
154
|
+
static fromBinary(bytes, options) {
|
|
155
|
+
return new SubmitReportRequest().fromBinary(bytes, options);
|
|
156
|
+
}
|
|
157
|
+
static fromJson(jsonValue, options) {
|
|
158
|
+
return new SubmitReportRequest().fromJson(jsonValue, options);
|
|
159
|
+
}
|
|
160
|
+
static fromJsonString(jsonString, options) {
|
|
161
|
+
return new SubmitReportRequest().fromJsonString(jsonString, options);
|
|
162
|
+
}
|
|
163
|
+
static equals(a, b) {
|
|
164
|
+
return proto3.util.equals(SubmitReportRequest, a, b);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
SubmitReportRequest.runtime = proto3;
|
|
168
|
+
SubmitReportRequest.typeName = "data.v1.SubmitReportRequest";
|
|
169
|
+
SubmitReportRequest.fields = proto3.util.newFieldList(() => [
|
|
170
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
171
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
172
|
+
{ no: 3, name: "event", kind: "enum", T: proto3.getEnumType(TokenReportEventType) },
|
|
173
|
+
{ no: 4, name: "details", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
174
|
+
]);
|
|
175
|
+
/**
|
|
176
|
+
* @generated from message data.v1.SubmitReportResponse
|
|
177
|
+
*/
|
|
178
|
+
export class SubmitReportResponse extends Message {
|
|
179
|
+
constructor(data) {
|
|
180
|
+
super();
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: bool success = 1;
|
|
183
|
+
*/
|
|
184
|
+
this.success = false;
|
|
185
|
+
proto3.util.initPartial(data, this);
|
|
186
|
+
}
|
|
187
|
+
static fromBinary(bytes, options) {
|
|
188
|
+
return new SubmitReportResponse().fromBinary(bytes, options);
|
|
189
|
+
}
|
|
190
|
+
static fromJson(jsonValue, options) {
|
|
191
|
+
return new SubmitReportResponse().fromJson(jsonValue, options);
|
|
192
|
+
}
|
|
193
|
+
static fromJsonString(jsonString, options) {
|
|
194
|
+
return new SubmitReportResponse().fromJsonString(jsonString, options);
|
|
195
|
+
}
|
|
196
|
+
static equals(a, b) {
|
|
197
|
+
return proto3.util.equals(SubmitReportResponse, a, b);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
SubmitReportResponse.runtime = proto3;
|
|
201
|
+
SubmitReportResponse.typeName = "data.v1.SubmitReportResponse";
|
|
202
|
+
SubmitReportResponse.fields = proto3.util.newFieldList(() => [
|
|
203
|
+
{ no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
204
|
+
]);
|
|
205
|
+
/**
|
|
206
|
+
* @generated from message data.v1.ListTransactionsRequest
|
|
207
|
+
*/
|
|
208
|
+
export class ListTransactionsRequest extends Message {
|
|
209
|
+
constructor(data) {
|
|
210
|
+
super();
|
|
211
|
+
/**
|
|
212
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
213
|
+
*/
|
|
214
|
+
this.chainIds = [];
|
|
215
|
+
/**
|
|
216
|
+
* @generated from field: string address = 2;
|
|
217
|
+
*/
|
|
218
|
+
this.address = "";
|
|
219
|
+
proto3.util.initPartial(data, this);
|
|
220
|
+
}
|
|
221
|
+
static fromBinary(bytes, options) {
|
|
222
|
+
return new ListTransactionsRequest().fromBinary(bytes, options);
|
|
223
|
+
}
|
|
224
|
+
static fromJson(jsonValue, options) {
|
|
225
|
+
return new ListTransactionsRequest().fromJson(jsonValue, options);
|
|
226
|
+
}
|
|
227
|
+
static fromJsonString(jsonString, options) {
|
|
228
|
+
return new ListTransactionsRequest().fromJsonString(jsonString, options);
|
|
229
|
+
}
|
|
230
|
+
static equals(a, b) {
|
|
231
|
+
return proto3.util.equals(ListTransactionsRequest, a, b);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
ListTransactionsRequest.runtime = proto3;
|
|
235
|
+
ListTransactionsRequest.typeName = "data.v1.ListTransactionsRequest";
|
|
236
|
+
ListTransactionsRequest.fields = proto3.util.newFieldList(() => [
|
|
237
|
+
{ no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
238
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
239
|
+
{ no: 3, name: "fiat_on_ramp_params", kind: "message", T: FiatOnRampParams },
|
|
240
|
+
]);
|
|
241
|
+
/**
|
|
242
|
+
* @generated from message data.v1.FiatOnRampParams
|
|
243
|
+
*/
|
|
244
|
+
export class FiatOnRampParams extends Message {
|
|
245
|
+
constructor(data) {
|
|
246
|
+
super();
|
|
247
|
+
/**
|
|
248
|
+
* @generated from oneof data.v1.FiatOnRampParams.params
|
|
249
|
+
*/
|
|
250
|
+
this.params = { case: undefined };
|
|
251
|
+
proto3.util.initPartial(data, this);
|
|
252
|
+
}
|
|
253
|
+
static fromBinary(bytes, options) {
|
|
254
|
+
return new FiatOnRampParams().fromBinary(bytes, options);
|
|
255
|
+
}
|
|
256
|
+
static fromJson(jsonValue, options) {
|
|
257
|
+
return new FiatOnRampParams().fromJson(jsonValue, options);
|
|
258
|
+
}
|
|
259
|
+
static fromJsonString(jsonString, options) {
|
|
260
|
+
return new FiatOnRampParams().fromJsonString(jsonString, options);
|
|
261
|
+
}
|
|
262
|
+
static equals(a, b) {
|
|
263
|
+
return proto3.util.equals(FiatOnRampParams, a, b);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
FiatOnRampParams.runtime = proto3;
|
|
267
|
+
FiatOnRampParams.typeName = "data.v1.FiatOnRampParams";
|
|
268
|
+
FiatOnRampParams.fields = proto3.util.newFieldList(() => [
|
|
269
|
+
{ no: 1, name: "transaction_ids", kind: "message", T: FiatOnRampTransactionIds, oneof: "params" },
|
|
270
|
+
{ no: 2, name: "auth", kind: "message", T: FiatOnRampAuth, oneof: "params" },
|
|
271
|
+
]);
|
|
272
|
+
/**
|
|
273
|
+
* @generated from message data.v1.FiatOnRampAuth
|
|
274
|
+
*/
|
|
275
|
+
export class FiatOnRampAuth extends Message {
|
|
276
|
+
constructor(data) {
|
|
277
|
+
super();
|
|
278
|
+
/**
|
|
279
|
+
* @generated from field: string query_params = 1;
|
|
280
|
+
*/
|
|
281
|
+
this.queryParams = "";
|
|
282
|
+
/**
|
|
283
|
+
* @generated from field: string signature = 2;
|
|
284
|
+
*/
|
|
285
|
+
this.signature = "";
|
|
286
|
+
proto3.util.initPartial(data, this);
|
|
287
|
+
}
|
|
288
|
+
static fromBinary(bytes, options) {
|
|
289
|
+
return new FiatOnRampAuth().fromBinary(bytes, options);
|
|
290
|
+
}
|
|
291
|
+
static fromJson(jsonValue, options) {
|
|
292
|
+
return new FiatOnRampAuth().fromJson(jsonValue, options);
|
|
293
|
+
}
|
|
294
|
+
static fromJsonString(jsonString, options) {
|
|
295
|
+
return new FiatOnRampAuth().fromJsonString(jsonString, options);
|
|
296
|
+
}
|
|
297
|
+
static equals(a, b) {
|
|
298
|
+
return proto3.util.equals(FiatOnRampAuth, a, b);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
FiatOnRampAuth.runtime = proto3;
|
|
302
|
+
FiatOnRampAuth.typeName = "data.v1.FiatOnRampAuth";
|
|
303
|
+
FiatOnRampAuth.fields = proto3.util.newFieldList(() => [
|
|
304
|
+
{ no: 1, name: "query_params", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
305
|
+
{ no: 2, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
306
|
+
]);
|
|
307
|
+
/**
|
|
308
|
+
* @generated from message data.v1.FiatOnRampTransactionIds
|
|
309
|
+
*/
|
|
310
|
+
export class FiatOnRampTransactionIds extends Message {
|
|
311
|
+
constructor(data) {
|
|
312
|
+
super();
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: repeated string transaction_ids = 1;
|
|
315
|
+
*/
|
|
316
|
+
this.transactionIds = [];
|
|
317
|
+
proto3.util.initPartial(data, this);
|
|
318
|
+
}
|
|
319
|
+
static fromBinary(bytes, options) {
|
|
320
|
+
return new FiatOnRampTransactionIds().fromBinary(bytes, options);
|
|
321
|
+
}
|
|
322
|
+
static fromJson(jsonValue, options) {
|
|
323
|
+
return new FiatOnRampTransactionIds().fromJson(jsonValue, options);
|
|
324
|
+
}
|
|
325
|
+
static fromJsonString(jsonString, options) {
|
|
326
|
+
return new FiatOnRampTransactionIds().fromJsonString(jsonString, options);
|
|
327
|
+
}
|
|
328
|
+
static equals(a, b) {
|
|
329
|
+
return proto3.util.equals(FiatOnRampTransactionIds, a, b);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
FiatOnRampTransactionIds.runtime = proto3;
|
|
333
|
+
FiatOnRampTransactionIds.typeName = "data.v1.FiatOnRampTransactionIds";
|
|
334
|
+
FiatOnRampTransactionIds.fields = proto3.util.newFieldList(() => [
|
|
335
|
+
{ no: 1, name: "transaction_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
336
|
+
]);
|
|
337
|
+
/**
|
|
338
|
+
* @generated from message data.v1.ListTransactionsResponse
|
|
339
|
+
*/
|
|
340
|
+
export class ListTransactionsResponse extends Message {
|
|
341
|
+
constructor(data) {
|
|
342
|
+
super();
|
|
343
|
+
/**
|
|
344
|
+
* @generated from field: repeated data.v1.Transaction transactions = 1;
|
|
345
|
+
*/
|
|
346
|
+
this.transactions = [];
|
|
347
|
+
proto3.util.initPartial(data, this);
|
|
348
|
+
}
|
|
349
|
+
static fromBinary(bytes, options) {
|
|
350
|
+
return new ListTransactionsResponse().fromBinary(bytes, options);
|
|
351
|
+
}
|
|
352
|
+
static fromJson(jsonValue, options) {
|
|
353
|
+
return new ListTransactionsResponse().fromJson(jsonValue, options);
|
|
354
|
+
}
|
|
355
|
+
static fromJsonString(jsonString, options) {
|
|
356
|
+
return new ListTransactionsResponse().fromJsonString(jsonString, options);
|
|
357
|
+
}
|
|
358
|
+
static equals(a, b) {
|
|
359
|
+
return proto3.util.equals(ListTransactionsResponse, a, b);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
ListTransactionsResponse.runtime = proto3;
|
|
363
|
+
ListTransactionsResponse.typeName = "data.v1.ListTransactionsResponse";
|
|
364
|
+
ListTransactionsResponse.fields = proto3.util.newFieldList(() => [
|
|
365
|
+
{ no: 1, name: "transactions", kind: "message", T: Transaction, repeated: true },
|
|
366
|
+
]);
|