@uniswap/client-data-api 0.0.17 → 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.
@@ -0,0 +1,28 @@
1
+ import { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from service data.v1.AuctionService
5
+ */
6
+ export declare const AuctionService: {
7
+ readonly typeName: "data.v1.AuctionService";
8
+ readonly methods: {
9
+ /**
10
+ * @generated from rpc data.v1.AuctionService.GetBidsByWallet
11
+ */
12
+ readonly getBidsByWallet: {
13
+ readonly name: "GetBidsByWallet";
14
+ readonly I: typeof GetBidsByWalletRequest;
15
+ readonly O: typeof GetBidsByWalletResponse;
16
+ readonly kind: MethodKind.Unary;
17
+ };
18
+ /**
19
+ * @generated from rpc data.v1.AuctionService.GetBids
20
+ */
21
+ readonly getBids: {
22
+ readonly name: "GetBids";
23
+ readonly I: typeof GetBidsRequest;
24
+ readonly O: typeof GetBidsResponse;
25
+ readonly kind: MethodKind.Unary;
26
+ };
27
+ };
28
+ };
@@ -0,0 +1,32 @@
1
+ // @generated by protoc-gen-connect-es v1.4.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 { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * @generated from service data.v1.AuctionService
9
+ */
10
+ export const AuctionService = {
11
+ typeName: "data.v1.AuctionService",
12
+ methods: {
13
+ /**
14
+ * @generated from rpc data.v1.AuctionService.GetBidsByWallet
15
+ */
16
+ getBidsByWallet: {
17
+ name: "GetBidsByWallet",
18
+ I: GetBidsByWalletRequest,
19
+ O: GetBidsByWalletResponse,
20
+ kind: MethodKind.Unary,
21
+ },
22
+ /**
23
+ * @generated from rpc data.v1.AuctionService.GetBids
24
+ */
25
+ getBids: {
26
+ name: "GetBids",
27
+ I: GetBidsRequest,
28
+ O: GetBidsResponse,
29
+ kind: MethodKind.Unary,
30
+ },
31
+ }
32
+ };
@@ -0,0 +1,159 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ /**
4
+ * Request to fetch all bids by a wallet.
5
+ *
6
+ * @generated from message data.v1.GetBidsByWalletRequest
7
+ */
8
+ export declare class GetBidsByWalletRequest extends Message<GetBidsByWalletRequest> {
9
+ /**
10
+ * Wallet address (lowercased, hex with 0x prefix).
11
+ *
12
+ * @generated from field: string wallet_id = 1;
13
+ */
14
+ walletId: string;
15
+ /**
16
+ * Optional: filter by auction id if desired.
17
+ *
18
+ * @generated from field: string auction_id = 2;
19
+ */
20
+ auctionId: string;
21
+ /**
22
+ * Optional: pagination
23
+ *
24
+ * @generated from field: int32 page_size = 3;
25
+ */
26
+ pageSize: number;
27
+ /**
28
+ * @generated from field: string page_token = 4;
29
+ */
30
+ pageToken: string;
31
+ constructor(data?: PartialMessage<GetBidsByWalletRequest>);
32
+ static readonly runtime: typeof proto3;
33
+ static readonly typeName = "data.v1.GetBidsByWalletRequest";
34
+ static readonly fields: FieldList;
35
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBidsByWalletRequest;
36
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBidsByWalletRequest;
37
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsByWalletRequest;
38
+ static equals(a: GetBidsByWalletRequest | PlainMessage<GetBidsByWalletRequest> | undefined, b: GetBidsByWalletRequest | PlainMessage<GetBidsByWalletRequest> | undefined): boolean;
39
+ }
40
+ /**
41
+ * A single bid resource.
42
+ *
43
+ * @generated from message data.v1.Bid
44
+ */
45
+ export declare class Bid extends Message<Bid> {
46
+ /**
47
+ * @generated from field: string bid_id = 1;
48
+ */
49
+ bidId: string;
50
+ /**
51
+ * @generated from field: string auction_id = 2;
52
+ */
53
+ auctionId: string;
54
+ /**
55
+ * @generated from field: string wallet_id = 3;
56
+ */
57
+ walletId: string;
58
+ /**
59
+ * @generated from field: string tx_hash = 4;
60
+ */
61
+ txHash: string;
62
+ /**
63
+ * raw integer (string to avoid uint256 overflow)
64
+ *
65
+ * @generated from field: string amount = 5;
66
+ */
67
+ amount: string;
68
+ /**
69
+ * raw integer (X96 or other format)
70
+ *
71
+ * @generated from field: string max_price = 6;
72
+ */
73
+ maxPrice: string;
74
+ /**
75
+ * ISO 8601 / RFC 3339
76
+ *
77
+ * @generated from field: string created_at = 7;
78
+ */
79
+ createdAt: string;
80
+ /**
81
+ * e.g. "active", "withdrawn", "claimed"
82
+ *
83
+ * @generated from field: string status = 8;
84
+ */
85
+ status: string;
86
+ constructor(data?: PartialMessage<Bid>);
87
+ static readonly runtime: typeof proto3;
88
+ static readonly typeName = "data.v1.Bid";
89
+ static readonly fields: FieldList;
90
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Bid;
91
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Bid;
92
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Bid;
93
+ static equals(a: Bid | PlainMessage<Bid> | undefined, b: Bid | PlainMessage<Bid> | undefined): boolean;
94
+ }
95
+ /**
96
+ * Response containing all bids for a wallet.
97
+ *
98
+ * @generated from message data.v1.GetBidsByWalletResponse
99
+ */
100
+ export declare class GetBidsByWalletResponse extends Message<GetBidsByWalletResponse> {
101
+ /**
102
+ * @generated from field: repeated data.v1.Bid bids = 1;
103
+ */
104
+ bids: Bid[];
105
+ /**
106
+ * Pagination token for next page.
107
+ *
108
+ * @generated from field: string next_page_token = 2;
109
+ */
110
+ nextPageToken: string;
111
+ constructor(data?: PartialMessage<GetBidsByWalletResponse>);
112
+ static readonly runtime: typeof proto3;
113
+ static readonly typeName = "data.v1.GetBidsByWalletResponse";
114
+ static readonly fields: FieldList;
115
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBidsByWalletResponse;
116
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBidsByWalletResponse;
117
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsByWalletResponse;
118
+ static equals(a: GetBidsByWalletResponse | PlainMessage<GetBidsByWalletResponse> | undefined, b: GetBidsByWalletResponse | PlainMessage<GetBidsByWalletResponse> | undefined): boolean;
119
+ }
120
+ /**
121
+ * Request to fetch bids by auction ID.
122
+ *
123
+ * @generated from message data.v1.GetBidsRequest
124
+ */
125
+ export declare class GetBidsRequest extends Message<GetBidsRequest> {
126
+ /**
127
+ * @generated from field: string auction_id = 1;
128
+ */
129
+ auctionId: string;
130
+ constructor(data?: PartialMessage<GetBidsRequest>);
131
+ static readonly runtime: typeof proto3;
132
+ static readonly typeName = "data.v1.GetBidsRequest";
133
+ static readonly fields: FieldList;
134
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBidsRequest;
135
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBidsRequest;
136
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsRequest;
137
+ static equals(a: GetBidsRequest | PlainMessage<GetBidsRequest> | undefined, b: GetBidsRequest | PlainMessage<GetBidsRequest> | undefined): boolean;
138
+ }
139
+ /**
140
+ * Response containing bids for an auction.
141
+ *
142
+ * @generated from message data.v1.GetBidsResponse
143
+ */
144
+ export declare class GetBidsResponse extends Message<GetBidsResponse> {
145
+ /**
146
+ * Test message
147
+ *
148
+ * @generated from field: string message = 1;
149
+ */
150
+ message: string;
151
+ constructor(data?: PartialMessage<GetBidsResponse>);
152
+ static readonly runtime: typeof proto3;
153
+ static readonly typeName = "data.v1.GetBidsResponse";
154
+ static readonly fields: FieldList;
155
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBidsResponse;
156
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBidsResponse;
157
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsResponse;
158
+ static equals(a: GetBidsResponse | PlainMessage<GetBidsResponse> | undefined, b: GetBidsResponse | PlainMessage<GetBidsResponse> | undefined): boolean;
159
+ }
@@ -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
+ ]);