@uniswap/client-data-api 0.0.18 → 0.0.19
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 +14 -1
- package/dist/data/v1/api-DataApiService_connectquery.js +14 -1
- package/dist/data/v1/api_connect.d.ts +10 -1
- package/dist/data/v1/api_connect.js +10 -1
- package/dist/data/v1/api_pb.d.ts +97 -0
- package/dist/data/v1/api_pb.js +119 -0
- package/dist/data/v1/auction-AuctionService_connectquery.d.ts +28 -0
- package/dist/data/v1/auction-AuctionService_connectquery.js +32 -0
- package/dist/data/v1/auction_connect.d.ts +28 -0
- package/dist/data/v1/auction_connect.js +32 -0
- package/dist/data/v1/auction_pb.d.ts +159 -0
- package/dist/data/v1/auction_pb.js +238 -0
- package/dist/data/v1/substreamEvents_pb.d.ts +2760 -0
- package/dist/data/v1/substreamEvents_pb.js +1371 -0
- package/dist/data/v1/types_pb.d.ts +94 -14
- package/dist/data/v1/types_pb.js +86 -32
- package/package.json +1 -1
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Request to fetch all bids by a wallet.
|
|
8
|
+
*
|
|
9
|
+
* @generated from message data.v1.GetBidsByWalletRequest
|
|
10
|
+
*/
|
|
11
|
+
export class GetBidsByWalletRequest extends Message {
|
|
12
|
+
constructor(data) {
|
|
13
|
+
super();
|
|
14
|
+
/**
|
|
15
|
+
* Wallet address (lowercased, hex with 0x prefix).
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string wallet_id = 1;
|
|
18
|
+
*/
|
|
19
|
+
this.walletId = "";
|
|
20
|
+
/**
|
|
21
|
+
* Optional: filter by auction id if desired.
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: string auction_id = 2;
|
|
24
|
+
*/
|
|
25
|
+
this.auctionId = "";
|
|
26
|
+
/**
|
|
27
|
+
* Optional: pagination
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: int32 page_size = 3;
|
|
30
|
+
*/
|
|
31
|
+
this.pageSize = 0;
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: string page_token = 4;
|
|
34
|
+
*/
|
|
35
|
+
this.pageToken = "";
|
|
36
|
+
proto3.util.initPartial(data, this);
|
|
37
|
+
}
|
|
38
|
+
static fromBinary(bytes, options) {
|
|
39
|
+
return new GetBidsByWalletRequest().fromBinary(bytes, options);
|
|
40
|
+
}
|
|
41
|
+
static fromJson(jsonValue, options) {
|
|
42
|
+
return new GetBidsByWalletRequest().fromJson(jsonValue, options);
|
|
43
|
+
}
|
|
44
|
+
static fromJsonString(jsonString, options) {
|
|
45
|
+
return new GetBidsByWalletRequest().fromJsonString(jsonString, options);
|
|
46
|
+
}
|
|
47
|
+
static equals(a, b) {
|
|
48
|
+
return proto3.util.equals(GetBidsByWalletRequest, a, b);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
GetBidsByWalletRequest.runtime = proto3;
|
|
52
|
+
GetBidsByWalletRequest.typeName = "data.v1.GetBidsByWalletRequest";
|
|
53
|
+
GetBidsByWalletRequest.fields = proto3.util.newFieldList(() => [
|
|
54
|
+
{ no: 1, name: "wallet_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
55
|
+
{ no: 2, name: "auction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
56
|
+
{ no: 3, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
57
|
+
{ no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
58
|
+
]);
|
|
59
|
+
/**
|
|
60
|
+
* A single bid resource.
|
|
61
|
+
*
|
|
62
|
+
* @generated from message data.v1.Bid
|
|
63
|
+
*/
|
|
64
|
+
export class Bid extends Message {
|
|
65
|
+
constructor(data) {
|
|
66
|
+
super();
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: string bid_id = 1;
|
|
69
|
+
*/
|
|
70
|
+
this.bidId = "";
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: string auction_id = 2;
|
|
73
|
+
*/
|
|
74
|
+
this.auctionId = "";
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: string wallet_id = 3;
|
|
77
|
+
*/
|
|
78
|
+
this.walletId = "";
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: string tx_hash = 4;
|
|
81
|
+
*/
|
|
82
|
+
this.txHash = "";
|
|
83
|
+
/**
|
|
84
|
+
* raw integer (string to avoid uint256 overflow)
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: string amount = 5;
|
|
87
|
+
*/
|
|
88
|
+
this.amount = "";
|
|
89
|
+
/**
|
|
90
|
+
* raw integer (X96 or other format)
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: string max_price = 6;
|
|
93
|
+
*/
|
|
94
|
+
this.maxPrice = "";
|
|
95
|
+
/**
|
|
96
|
+
* ISO 8601 / RFC 3339
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: string created_at = 7;
|
|
99
|
+
*/
|
|
100
|
+
this.createdAt = "";
|
|
101
|
+
/**
|
|
102
|
+
* e.g. "active", "withdrawn", "claimed"
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: string status = 8;
|
|
105
|
+
*/
|
|
106
|
+
this.status = "";
|
|
107
|
+
proto3.util.initPartial(data, this);
|
|
108
|
+
}
|
|
109
|
+
static fromBinary(bytes, options) {
|
|
110
|
+
return new Bid().fromBinary(bytes, options);
|
|
111
|
+
}
|
|
112
|
+
static fromJson(jsonValue, options) {
|
|
113
|
+
return new Bid().fromJson(jsonValue, options);
|
|
114
|
+
}
|
|
115
|
+
static fromJsonString(jsonString, options) {
|
|
116
|
+
return new Bid().fromJsonString(jsonString, options);
|
|
117
|
+
}
|
|
118
|
+
static equals(a, b) {
|
|
119
|
+
return proto3.util.equals(Bid, a, b);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
Bid.runtime = proto3;
|
|
123
|
+
Bid.typeName = "data.v1.Bid";
|
|
124
|
+
Bid.fields = proto3.util.newFieldList(() => [
|
|
125
|
+
{ no: 1, name: "bid_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
126
|
+
{ no: 2, name: "auction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
127
|
+
{ no: 3, name: "wallet_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
128
|
+
{ no: 4, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
129
|
+
{ no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
130
|
+
{ no: 6, name: "max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
131
|
+
{ no: 7, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
|
+
{ no: 8, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
133
|
+
]);
|
|
134
|
+
/**
|
|
135
|
+
* Response containing all bids for a wallet.
|
|
136
|
+
*
|
|
137
|
+
* @generated from message data.v1.GetBidsByWalletResponse
|
|
138
|
+
*/
|
|
139
|
+
export class GetBidsByWalletResponse extends Message {
|
|
140
|
+
constructor(data) {
|
|
141
|
+
super();
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: repeated data.v1.Bid bids = 1;
|
|
144
|
+
*/
|
|
145
|
+
this.bids = [];
|
|
146
|
+
/**
|
|
147
|
+
* Pagination token for next page.
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: string next_page_token = 2;
|
|
150
|
+
*/
|
|
151
|
+
this.nextPageToken = "";
|
|
152
|
+
proto3.util.initPartial(data, this);
|
|
153
|
+
}
|
|
154
|
+
static fromBinary(bytes, options) {
|
|
155
|
+
return new GetBidsByWalletResponse().fromBinary(bytes, options);
|
|
156
|
+
}
|
|
157
|
+
static fromJson(jsonValue, options) {
|
|
158
|
+
return new GetBidsByWalletResponse().fromJson(jsonValue, options);
|
|
159
|
+
}
|
|
160
|
+
static fromJsonString(jsonString, options) {
|
|
161
|
+
return new GetBidsByWalletResponse().fromJsonString(jsonString, options);
|
|
162
|
+
}
|
|
163
|
+
static equals(a, b) {
|
|
164
|
+
return proto3.util.equals(GetBidsByWalletResponse, a, b);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
GetBidsByWalletResponse.runtime = proto3;
|
|
168
|
+
GetBidsByWalletResponse.typeName = "data.v1.GetBidsByWalletResponse";
|
|
169
|
+
GetBidsByWalletResponse.fields = proto3.util.newFieldList(() => [
|
|
170
|
+
{ no: 1, name: "bids", kind: "message", T: Bid, repeated: true },
|
|
171
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
172
|
+
]);
|
|
173
|
+
/**
|
|
174
|
+
* Request to fetch bids by auction ID.
|
|
175
|
+
*
|
|
176
|
+
* @generated from message data.v1.GetBidsRequest
|
|
177
|
+
*/
|
|
178
|
+
export class GetBidsRequest extends Message {
|
|
179
|
+
constructor(data) {
|
|
180
|
+
super();
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: string auction_id = 1;
|
|
183
|
+
*/
|
|
184
|
+
this.auctionId = "";
|
|
185
|
+
proto3.util.initPartial(data, this);
|
|
186
|
+
}
|
|
187
|
+
static fromBinary(bytes, options) {
|
|
188
|
+
return new GetBidsRequest().fromBinary(bytes, options);
|
|
189
|
+
}
|
|
190
|
+
static fromJson(jsonValue, options) {
|
|
191
|
+
return new GetBidsRequest().fromJson(jsonValue, options);
|
|
192
|
+
}
|
|
193
|
+
static fromJsonString(jsonString, options) {
|
|
194
|
+
return new GetBidsRequest().fromJsonString(jsonString, options);
|
|
195
|
+
}
|
|
196
|
+
static equals(a, b) {
|
|
197
|
+
return proto3.util.equals(GetBidsRequest, a, b);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
GetBidsRequest.runtime = proto3;
|
|
201
|
+
GetBidsRequest.typeName = "data.v1.GetBidsRequest";
|
|
202
|
+
GetBidsRequest.fields = proto3.util.newFieldList(() => [
|
|
203
|
+
{ no: 1, name: "auction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
204
|
+
]);
|
|
205
|
+
/**
|
|
206
|
+
* Response containing bids for an auction.
|
|
207
|
+
*
|
|
208
|
+
* @generated from message data.v1.GetBidsResponse
|
|
209
|
+
*/
|
|
210
|
+
export class GetBidsResponse extends Message {
|
|
211
|
+
constructor(data) {
|
|
212
|
+
super();
|
|
213
|
+
/**
|
|
214
|
+
* Test message
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: string message = 1;
|
|
217
|
+
*/
|
|
218
|
+
this.message = "";
|
|
219
|
+
proto3.util.initPartial(data, this);
|
|
220
|
+
}
|
|
221
|
+
static fromBinary(bytes, options) {
|
|
222
|
+
return new GetBidsResponse().fromBinary(bytes, options);
|
|
223
|
+
}
|
|
224
|
+
static fromJson(jsonValue, options) {
|
|
225
|
+
return new GetBidsResponse().fromJson(jsonValue, options);
|
|
226
|
+
}
|
|
227
|
+
static fromJsonString(jsonString, options) {
|
|
228
|
+
return new GetBidsResponse().fromJsonString(jsonString, options);
|
|
229
|
+
}
|
|
230
|
+
static equals(a, b) {
|
|
231
|
+
return proto3.util.equals(GetBidsResponse, a, b);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
GetBidsResponse.runtime = proto3;
|
|
235
|
+
GetBidsResponse.typeName = "data.v1.GetBidsResponse";
|
|
236
|
+
GetBidsResponse.fields = proto3.util.newFieldList(() => [
|
|
237
|
+
{ no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
238
|
+
]);
|