@mayanfinance/blink-sdk 0.1.8
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/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/amount.d.ts +4 -0
- package/dist/amount.js +32 -0
- package/dist/client.d.ts +17 -0
- package/dist/client.js +32 -0
- package/dist/deposit.d.ts +64 -0
- package/dist/deposit.js +526 -0
- package/dist/evm.d.ts +237 -0
- package/dist/evm.js +679 -0
- package/dist/gen/blink/v1/admin_pb.d.ts +1338 -0
- package/dist/gen/blink/v1/admin_pb.js +234 -0
- package/dist/gen/blink/v1/api_pb.d.ts +1811 -0
- package/dist/gen/blink/v1/api_pb.js +294 -0
- package/dist/gen/blink/v1/partner_pb.d.ts +1020 -0
- package/dist/gen/blink/v1/partner_pb.js +247 -0
- package/dist/gen/blink/v1/ratelimit_pb.d.ts +10 -0
- package/dist/gen/blink/v1/ratelimit_pb.js +13 -0
- package/dist/gen/google/api/annotations_pb.d.ts +11 -0
- package/dist/gen/google/api/annotations_pb.js +14 -0
- package/dist/gen/google/api/http_pb.d.ts +111 -0
- package/dist/gen/google/api/http_pb.js +23 -0
- package/dist/hash.d.ts +7 -0
- package/dist/hash.js +76 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +13 -0
- package/dist/order.d.ts +42 -0
- package/dist/order.js +173 -0
- package/dist/sui.d.ts +74 -0
- package/dist/sui.js +310 -0
- package/dist/svm.d.ts +36 -0
- package/dist/svm.js +504 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/dist/wallets.d.ts +84 -0
- package/dist/wallets.js +409 -0
- package/package.json +62 -0
|
@@ -0,0 +1,1811 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file blink/v1/api.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_blink_v1_api: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message blink.v1.EvmGaslessOrder
|
|
9
|
+
*/
|
|
10
|
+
export type EvmGaslessOrder = Message<"blink.v1.EvmGaslessOrder"> & {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: string owner = 1;
|
|
13
|
+
*/
|
|
14
|
+
owner: string;
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: string permit2_nonce = 2;
|
|
17
|
+
*/
|
|
18
|
+
permit2Nonce: string;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: uint64 deadline = 3;
|
|
21
|
+
*/
|
|
22
|
+
deadline: bigint;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string signature = 4;
|
|
25
|
+
*/
|
|
26
|
+
signature: string;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: optional string permit_signature = 5;
|
|
29
|
+
*/
|
|
30
|
+
permitSignature?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message blink.v1.EvmGaslessOrder.
|
|
34
|
+
* Use `create(EvmGaslessOrderSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export declare const EvmGaslessOrderSchema: GenMessage<EvmGaslessOrder>;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from message blink.v1.SvmGaslessOrder
|
|
39
|
+
*/
|
|
40
|
+
export type SvmGaslessOrder = Message<"blink.v1.SvmGaslessOrder"> & {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: string tx_base64 = 1;
|
|
43
|
+
*/
|
|
44
|
+
txBase64: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message blink.v1.SvmGaslessOrder.
|
|
48
|
+
* Use `create(SvmGaslessOrderSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export declare const SvmGaslessOrderSchema: GenMessage<SvmGaslessOrder>;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from message blink.v1.SuiGaslessOrder
|
|
53
|
+
*/
|
|
54
|
+
export type SuiGaslessOrder = Message<"blink.v1.SuiGaslessOrder"> & {
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: string tx_base64 = 1;
|
|
57
|
+
*/
|
|
58
|
+
txBase64: string;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: string signature = 2;
|
|
61
|
+
*/
|
|
62
|
+
signature: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message blink.v1.SuiGaslessOrder.
|
|
66
|
+
* Use `create(SuiGaslessOrderSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export declare const SuiGaslessOrderSchema: GenMessage<SuiGaslessOrder>;
|
|
69
|
+
/**
|
|
70
|
+
* @generated from message blink.v1.SubmitGaslessOrderRequest
|
|
71
|
+
*/
|
|
72
|
+
export type SubmitGaslessOrderRequest = Message<"blink.v1.SubmitGaslessOrderRequest"> & {
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: string quote_hash = 1;
|
|
75
|
+
*/
|
|
76
|
+
quoteHash: string;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from oneof blink.v1.SubmitGaslessOrderRequest.order
|
|
79
|
+
*/
|
|
80
|
+
order: {
|
|
81
|
+
/**
|
|
82
|
+
* @generated from field: blink.v1.EvmGaslessOrder evm = 2;
|
|
83
|
+
*/
|
|
84
|
+
value: EvmGaslessOrder;
|
|
85
|
+
case: "evm";
|
|
86
|
+
} | {
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: blink.v1.SvmGaslessOrder svm = 3;
|
|
89
|
+
*/
|
|
90
|
+
value: SvmGaslessOrder;
|
|
91
|
+
case: "svm";
|
|
92
|
+
} | {
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: blink.v1.SuiGaslessOrder sui = 4;
|
|
95
|
+
*/
|
|
96
|
+
value: SuiGaslessOrder;
|
|
97
|
+
case: "sui";
|
|
98
|
+
} | {
|
|
99
|
+
case: undefined;
|
|
100
|
+
value?: undefined;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message blink.v1.SubmitGaslessOrderRequest.
|
|
105
|
+
* Use `create(SubmitGaslessOrderRequestSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export declare const SubmitGaslessOrderRequestSchema: GenMessage<SubmitGaslessOrderRequest>;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from message blink.v1.GaslessSubmission
|
|
110
|
+
*/
|
|
111
|
+
export type GaslessSubmission = Message<"blink.v1.GaslessSubmission"> & {
|
|
112
|
+
/**
|
|
113
|
+
* @generated from field: string quote_hash = 1;
|
|
114
|
+
*/
|
|
115
|
+
quoteHash: string;
|
|
116
|
+
/**
|
|
117
|
+
* @generated from field: string status = 2;
|
|
118
|
+
*/
|
|
119
|
+
status: string;
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: optional string tx_hash = 3;
|
|
122
|
+
*/
|
|
123
|
+
txHash?: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: optional string error = 4;
|
|
126
|
+
*/
|
|
127
|
+
error?: string | undefined;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Describes the message blink.v1.GaslessSubmission.
|
|
131
|
+
* Use `create(GaslessSubmissionSchema)` to create a new message.
|
|
132
|
+
*/
|
|
133
|
+
export declare const GaslessSubmissionSchema: GenMessage<GaslessSubmission>;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from message blink.v1.Referrer
|
|
136
|
+
*/
|
|
137
|
+
export type Referrer = Message<"blink.v1.Referrer"> & {
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: string address = 1;
|
|
140
|
+
*/
|
|
141
|
+
address: string;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: uint32 bps = 2;
|
|
144
|
+
*/
|
|
145
|
+
bps: number;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Describes the message blink.v1.Referrer.
|
|
149
|
+
* Use `create(ReferrerSchema)` to create a new message.
|
|
150
|
+
*/
|
|
151
|
+
export declare const ReferrerSchema: GenMessage<Referrer>;
|
|
152
|
+
/**
|
|
153
|
+
* @generated from message blink.v1.QuoteRequest
|
|
154
|
+
*/
|
|
155
|
+
export type QuoteRequest = Message<"blink.v1.QuoteRequest"> & {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: string src_chain = 1;
|
|
158
|
+
*/
|
|
159
|
+
srcChain: string;
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: string dst_chain = 2;
|
|
162
|
+
*/
|
|
163
|
+
dstChain: string;
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: string src_token = 3;
|
|
166
|
+
*/
|
|
167
|
+
srcToken: string;
|
|
168
|
+
/**
|
|
169
|
+
* @generated from field: string dst_token = 4;
|
|
170
|
+
*/
|
|
171
|
+
dstToken: string;
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: string amount = 5;
|
|
174
|
+
*/
|
|
175
|
+
amount: string;
|
|
176
|
+
/**
|
|
177
|
+
* @generated from field: string recipient = 6;
|
|
178
|
+
*/
|
|
179
|
+
recipient: string;
|
|
180
|
+
/**
|
|
181
|
+
* @generated from field: string refund_address = 7;
|
|
182
|
+
*/
|
|
183
|
+
refundAddress: string;
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: optional uint32 slippage_bps = 8;
|
|
186
|
+
*/
|
|
187
|
+
slippageBps?: number | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* @generated from field: optional uint32 src_slippage_bps = 9;
|
|
190
|
+
*/
|
|
191
|
+
srcSlippageBps?: number | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: repeated blink.v1.Referrer referrers = 10;
|
|
194
|
+
*/
|
|
195
|
+
referrers: Referrer[];
|
|
196
|
+
/**
|
|
197
|
+
* @generated from field: string gas_drop = 11;
|
|
198
|
+
*/
|
|
199
|
+
gasDrop: string;
|
|
200
|
+
/**
|
|
201
|
+
* @generated from field: bool gasless = 12;
|
|
202
|
+
*/
|
|
203
|
+
gasless: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: bool sponsor_fees = 13;
|
|
206
|
+
*/
|
|
207
|
+
sponsorFees: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: blink.v1.TradeType trade_type = 14;
|
|
210
|
+
*/
|
|
211
|
+
tradeType: TradeType;
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: uint32 supported_params_version = 15;
|
|
214
|
+
*/
|
|
215
|
+
supportedParamsVersion: number;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Describes the message blink.v1.QuoteRequest.
|
|
219
|
+
* Use `create(QuoteRequestSchema)` to create a new message.
|
|
220
|
+
*/
|
|
221
|
+
export declare const QuoteRequestSchema: GenMessage<QuoteRequest>;
|
|
222
|
+
/**
|
|
223
|
+
* @generated from message blink.v1.OrderParams
|
|
224
|
+
*/
|
|
225
|
+
export type OrderParams = Message<"blink.v1.OrderParams"> & {
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: string src_chain = 1;
|
|
228
|
+
*/
|
|
229
|
+
srcChain: string;
|
|
230
|
+
/**
|
|
231
|
+
* @generated from field: string dst_chain = 2;
|
|
232
|
+
*/
|
|
233
|
+
dstChain: string;
|
|
234
|
+
/**
|
|
235
|
+
* @generated from field: string src_token = 3;
|
|
236
|
+
*/
|
|
237
|
+
srcToken: string;
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: string dst_token = 4;
|
|
240
|
+
*/
|
|
241
|
+
dstToken: string;
|
|
242
|
+
/**
|
|
243
|
+
* @generated from field: string bridge_token_src = 5;
|
|
244
|
+
*/
|
|
245
|
+
bridgeTokenSrc: string;
|
|
246
|
+
/**
|
|
247
|
+
* @generated from field: string bridge_token_dst = 6;
|
|
248
|
+
*/
|
|
249
|
+
bridgeTokenDst: string;
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: string amount_in = 7;
|
|
252
|
+
*/
|
|
253
|
+
amountIn: string;
|
|
254
|
+
/**
|
|
255
|
+
* @generated from field: string amount_out = 8;
|
|
256
|
+
*/
|
|
257
|
+
amountOut: string;
|
|
258
|
+
/**
|
|
259
|
+
* @generated from field: string bridge_amount = 9;
|
|
260
|
+
*/
|
|
261
|
+
bridgeAmount: string;
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: string min_bridge_out = 10;
|
|
264
|
+
*/
|
|
265
|
+
minBridgeOut: string;
|
|
266
|
+
/**
|
|
267
|
+
* @generated from field: string min_amount_out = 11;
|
|
268
|
+
*/
|
|
269
|
+
minAmountOut: string;
|
|
270
|
+
/**
|
|
271
|
+
* @generated from field: string gas_drop = 12;
|
|
272
|
+
*/
|
|
273
|
+
gasDrop: string;
|
|
274
|
+
/**
|
|
275
|
+
* @generated from field: string recipient = 13;
|
|
276
|
+
*/
|
|
277
|
+
recipient: string;
|
|
278
|
+
/**
|
|
279
|
+
* @generated from field: string refund_address = 14;
|
|
280
|
+
*/
|
|
281
|
+
refundAddress: string;
|
|
282
|
+
/**
|
|
283
|
+
* @generated from field: string refund_token = 15;
|
|
284
|
+
*/
|
|
285
|
+
refundToken: string;
|
|
286
|
+
/**
|
|
287
|
+
* @generated from field: repeated blink.v1.Referrer referrers = 16;
|
|
288
|
+
*/
|
|
289
|
+
referrers: Referrer[];
|
|
290
|
+
/**
|
|
291
|
+
* @generated from field: uint32 slippage_bps = 17;
|
|
292
|
+
*/
|
|
293
|
+
slippageBps: number;
|
|
294
|
+
/**
|
|
295
|
+
* @generated from field: uint32 src_slippage_bps = 18;
|
|
296
|
+
*/
|
|
297
|
+
srcSlippageBps: number;
|
|
298
|
+
/**
|
|
299
|
+
* @generated from field: string router_address = 19;
|
|
300
|
+
*/
|
|
301
|
+
routerAddress: string;
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: string refund_fee_bridge = 20;
|
|
304
|
+
*/
|
|
305
|
+
refundFeeBridge: string;
|
|
306
|
+
/**
|
|
307
|
+
* @generated from field: string refund_fee_native = 21;
|
|
308
|
+
*/
|
|
309
|
+
refundFeeNative: string;
|
|
310
|
+
/**
|
|
311
|
+
* @generated from field: bytes nonce = 22;
|
|
312
|
+
*/
|
|
313
|
+
nonce: Uint8Array;
|
|
314
|
+
/**
|
|
315
|
+
* @generated from field: uint32 params_version = 23;
|
|
316
|
+
*/
|
|
317
|
+
paramsVersion: number;
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* Describes the message blink.v1.OrderParams.
|
|
321
|
+
* Use `create(OrderParamsSchema)` to create a new message.
|
|
322
|
+
*/
|
|
323
|
+
export declare const OrderParamsSchema: GenMessage<OrderParams>;
|
|
324
|
+
/**
|
|
325
|
+
* @generated from message blink.v1.FeeComponent
|
|
326
|
+
*/
|
|
327
|
+
export type FeeComponent = Message<"blink.v1.FeeComponent"> & {
|
|
328
|
+
/**
|
|
329
|
+
* @generated from field: string name = 1;
|
|
330
|
+
*/
|
|
331
|
+
name: string;
|
|
332
|
+
/**
|
|
333
|
+
* @generated from field: string side = 2;
|
|
334
|
+
*/
|
|
335
|
+
side: string;
|
|
336
|
+
/**
|
|
337
|
+
* @generated from field: string usd_micros = 3;
|
|
338
|
+
*/
|
|
339
|
+
usdMicros: string;
|
|
340
|
+
/**
|
|
341
|
+
* @generated from field: optional string native = 4;
|
|
342
|
+
*/
|
|
343
|
+
native?: string | undefined;
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* Describes the message blink.v1.FeeComponent.
|
|
347
|
+
* Use `create(FeeComponentSchema)` to create a new message.
|
|
348
|
+
*/
|
|
349
|
+
export declare const FeeComponentSchema: GenMessage<FeeComponent>;
|
|
350
|
+
/**
|
|
351
|
+
* @generated from message blink.v1.FeeBreakdown
|
|
352
|
+
*/
|
|
353
|
+
export type FeeBreakdown = Message<"blink.v1.FeeBreakdown"> & {
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: repeated blink.v1.FeeComponent components = 1;
|
|
356
|
+
*/
|
|
357
|
+
components: FeeComponent[];
|
|
358
|
+
/**
|
|
359
|
+
* @generated from field: string dst_total_usd_micros = 2;
|
|
360
|
+
*/
|
|
361
|
+
dstTotalUsdMicros: string;
|
|
362
|
+
/**
|
|
363
|
+
* @generated from field: string src_total_usd_micros = 3;
|
|
364
|
+
*/
|
|
365
|
+
srcTotalUsdMicros: string;
|
|
366
|
+
/**
|
|
367
|
+
* @generated from field: string dst_gas_native = 4;
|
|
368
|
+
*/
|
|
369
|
+
dstGasNative: string;
|
|
370
|
+
/**
|
|
371
|
+
* @generated from field: string src_gas_native = 5;
|
|
372
|
+
*/
|
|
373
|
+
srcGasNative: string;
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* Describes the message blink.v1.FeeBreakdown.
|
|
377
|
+
* Use `create(FeeBreakdownSchema)` to create a new message.
|
|
378
|
+
*/
|
|
379
|
+
export declare const FeeBreakdownSchema: GenMessage<FeeBreakdown>;
|
|
380
|
+
/**
|
|
381
|
+
* @generated from message blink.v1.CrossChainQuote
|
|
382
|
+
*/
|
|
383
|
+
export type CrossChainQuote = Message<"blink.v1.CrossChainQuote"> & {
|
|
384
|
+
/**
|
|
385
|
+
* @generated from field: string quote_hash = 1;
|
|
386
|
+
*/
|
|
387
|
+
quoteHash: string;
|
|
388
|
+
/**
|
|
389
|
+
* @generated from field: string amount_in = 16;
|
|
390
|
+
*/
|
|
391
|
+
amountIn: string;
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: string amount_out = 2;
|
|
394
|
+
*/
|
|
395
|
+
amountOut: string;
|
|
396
|
+
/**
|
|
397
|
+
* @generated from field: string min_amount_out = 3;
|
|
398
|
+
*/
|
|
399
|
+
minAmountOut: string;
|
|
400
|
+
/**
|
|
401
|
+
* @generated from field: optional string amount_in_usd_micros = 4;
|
|
402
|
+
*/
|
|
403
|
+
amountInUsdMicros?: string | undefined;
|
|
404
|
+
/**
|
|
405
|
+
* @generated from field: optional string amount_out_usd_micros = 5;
|
|
406
|
+
*/
|
|
407
|
+
amountOutUsdMicros?: string | undefined;
|
|
408
|
+
/**
|
|
409
|
+
* @generated from field: uint32 slippage_bps = 6;
|
|
410
|
+
*/
|
|
411
|
+
slippageBps: number;
|
|
412
|
+
/**
|
|
413
|
+
* @generated from field: blink.v1.FeeBreakdown fee_breakdown = 7;
|
|
414
|
+
*/
|
|
415
|
+
feeBreakdown?: FeeBreakdown | undefined;
|
|
416
|
+
/**
|
|
417
|
+
* @generated from field: string router_address = 8;
|
|
418
|
+
*/
|
|
419
|
+
routerAddress: string;
|
|
420
|
+
/**
|
|
421
|
+
* @generated from field: blink.v1.OrderParams order_params = 9;
|
|
422
|
+
*/
|
|
423
|
+
orderParams?: OrderParams | undefined;
|
|
424
|
+
/**
|
|
425
|
+
* @generated from field: bool gasless = 10;
|
|
426
|
+
*/
|
|
427
|
+
gasless: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* @generated from field: bool sponsor_fees = 11;
|
|
430
|
+
*/
|
|
431
|
+
sponsorFees: boolean;
|
|
432
|
+
/**
|
|
433
|
+
* @generated from field: optional string gasless_router_address = 12;
|
|
434
|
+
*/
|
|
435
|
+
gaslessRouterAddress?: string | undefined;
|
|
436
|
+
/**
|
|
437
|
+
* @generated from field: optional string sponsor_address = 13;
|
|
438
|
+
*/
|
|
439
|
+
sponsorAddress?: string | undefined;
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: optional uint64 fulfill_eta_secs = 14;
|
|
442
|
+
*/
|
|
443
|
+
fulfillEtaSecs?: bigint | undefined;
|
|
444
|
+
/**
|
|
445
|
+
* @generated from field: bool direct_transfer = 15;
|
|
446
|
+
*/
|
|
447
|
+
directTransfer: boolean;
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: string deposit_deadline = 17;
|
|
450
|
+
*/
|
|
451
|
+
depositDeadline: string;
|
|
452
|
+
/**
|
|
453
|
+
* @generated from field: optional uint64 sponsor_gas_budget = 18;
|
|
454
|
+
*/
|
|
455
|
+
sponsorGasBudget?: bigint | undefined;
|
|
456
|
+
};
|
|
457
|
+
/**
|
|
458
|
+
* Describes the message blink.v1.CrossChainQuote.
|
|
459
|
+
* Use `create(CrossChainQuoteSchema)` to create a new message.
|
|
460
|
+
*/
|
|
461
|
+
export declare const CrossChainQuoteSchema: GenMessage<CrossChainQuote>;
|
|
462
|
+
/**
|
|
463
|
+
* @generated from message blink.v1.SameChainSwapQuote
|
|
464
|
+
*/
|
|
465
|
+
export type SameChainSwapQuote = Message<"blink.v1.SameChainSwapQuote"> & {
|
|
466
|
+
/**
|
|
467
|
+
* @generated from field: string quote_hash = 1;
|
|
468
|
+
*/
|
|
469
|
+
quoteHash: string;
|
|
470
|
+
/**
|
|
471
|
+
* @generated from field: string amount_in = 11;
|
|
472
|
+
*/
|
|
473
|
+
amountIn: string;
|
|
474
|
+
/**
|
|
475
|
+
* @generated from field: string amount_out = 2;
|
|
476
|
+
*/
|
|
477
|
+
amountOut: string;
|
|
478
|
+
/**
|
|
479
|
+
* @generated from field: string min_amount_out = 3;
|
|
480
|
+
*/
|
|
481
|
+
minAmountOut: string;
|
|
482
|
+
/**
|
|
483
|
+
* @generated from field: optional string amount_in_usd_micros = 4;
|
|
484
|
+
*/
|
|
485
|
+
amountInUsdMicros?: string | undefined;
|
|
486
|
+
/**
|
|
487
|
+
* @generated from field: optional string amount_out_usd_micros = 5;
|
|
488
|
+
*/
|
|
489
|
+
amountOutUsdMicros?: string | undefined;
|
|
490
|
+
/**
|
|
491
|
+
* @generated from field: uint32 slippage_bps = 6;
|
|
492
|
+
*/
|
|
493
|
+
slippageBps: number;
|
|
494
|
+
/**
|
|
495
|
+
* @generated from field: blink.v1.FeeBreakdown fee_breakdown = 7;
|
|
496
|
+
*/
|
|
497
|
+
feeBreakdown?: FeeBreakdown | undefined;
|
|
498
|
+
/**
|
|
499
|
+
* @generated from field: string router_address = 8;
|
|
500
|
+
*/
|
|
501
|
+
routerAddress: string;
|
|
502
|
+
/**
|
|
503
|
+
* @generated from field: blink.v1.OrderParams order_params = 9;
|
|
504
|
+
*/
|
|
505
|
+
orderParams?: OrderParams | undefined;
|
|
506
|
+
/**
|
|
507
|
+
* @generated from field: optional uint64 fulfill_eta_secs = 10;
|
|
508
|
+
*/
|
|
509
|
+
fulfillEtaSecs?: bigint | undefined;
|
|
510
|
+
/**
|
|
511
|
+
* @generated from field: string deposit_deadline = 12;
|
|
512
|
+
*/
|
|
513
|
+
depositDeadline: string;
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* Describes the message blink.v1.SameChainSwapQuote.
|
|
517
|
+
* Use `create(SameChainSwapQuoteSchema)` to create a new message.
|
|
518
|
+
*/
|
|
519
|
+
export declare const SameChainSwapQuoteSchema: GenMessage<SameChainSwapQuote>;
|
|
520
|
+
/**
|
|
521
|
+
* @generated from message blink.v1.QuoteResponse
|
|
522
|
+
*/
|
|
523
|
+
export type QuoteResponse = Message<"blink.v1.QuoteResponse"> & {
|
|
524
|
+
/**
|
|
525
|
+
* @generated from oneof blink.v1.QuoteResponse.quote
|
|
526
|
+
*/
|
|
527
|
+
quote: {
|
|
528
|
+
/**
|
|
529
|
+
* @generated from field: blink.v1.CrossChainQuote cross_chain = 1;
|
|
530
|
+
*/
|
|
531
|
+
value: CrossChainQuote;
|
|
532
|
+
case: "crossChain";
|
|
533
|
+
} | {
|
|
534
|
+
/**
|
|
535
|
+
* @generated from field: blink.v1.SameChainSwapQuote same_chain_swap = 2;
|
|
536
|
+
*/
|
|
537
|
+
value: SameChainSwapQuote;
|
|
538
|
+
case: "sameChainSwap";
|
|
539
|
+
} | {
|
|
540
|
+
case: undefined;
|
|
541
|
+
value?: undefined;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Describes the message blink.v1.QuoteResponse.
|
|
546
|
+
* Use `create(QuoteResponseSchema)` to create a new message.
|
|
547
|
+
*/
|
|
548
|
+
export declare const QuoteResponseSchema: GenMessage<QuoteResponse>;
|
|
549
|
+
/**
|
|
550
|
+
* @generated from message blink.v1.PreviewQuoteRequest
|
|
551
|
+
*/
|
|
552
|
+
export type PreviewQuoteRequest = Message<"blink.v1.PreviewQuoteRequest"> & {
|
|
553
|
+
/**
|
|
554
|
+
* @generated from field: string src_chain = 1;
|
|
555
|
+
*/
|
|
556
|
+
srcChain: string;
|
|
557
|
+
/**
|
|
558
|
+
* @generated from field: string dst_chain = 2;
|
|
559
|
+
*/
|
|
560
|
+
dstChain: string;
|
|
561
|
+
/**
|
|
562
|
+
* @generated from field: string src_token = 3;
|
|
563
|
+
*/
|
|
564
|
+
srcToken: string;
|
|
565
|
+
/**
|
|
566
|
+
* @generated from field: string dst_token = 4;
|
|
567
|
+
*/
|
|
568
|
+
dstToken: string;
|
|
569
|
+
/**
|
|
570
|
+
* @generated from field: string amount = 5;
|
|
571
|
+
*/
|
|
572
|
+
amount: string;
|
|
573
|
+
/**
|
|
574
|
+
* @generated from field: optional uint32 slippage_bps = 6;
|
|
575
|
+
*/
|
|
576
|
+
slippageBps?: number | undefined;
|
|
577
|
+
/**
|
|
578
|
+
* @generated from field: optional uint32 src_slippage_bps = 7;
|
|
579
|
+
*/
|
|
580
|
+
srcSlippageBps?: number | undefined;
|
|
581
|
+
/**
|
|
582
|
+
* @generated from field: repeated blink.v1.Referrer referrers = 8;
|
|
583
|
+
*/
|
|
584
|
+
referrers: Referrer[];
|
|
585
|
+
/**
|
|
586
|
+
* @generated from field: string gas_drop = 9;
|
|
587
|
+
*/
|
|
588
|
+
gasDrop: string;
|
|
589
|
+
/**
|
|
590
|
+
* @generated from field: blink.v1.TradeType trade_type = 10;
|
|
591
|
+
*/
|
|
592
|
+
tradeType: TradeType;
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* Describes the message blink.v1.PreviewQuoteRequest.
|
|
596
|
+
* Use `create(PreviewQuoteRequestSchema)` to create a new message.
|
|
597
|
+
*/
|
|
598
|
+
export declare const PreviewQuoteRequestSchema: GenMessage<PreviewQuoteRequest>;
|
|
599
|
+
/**
|
|
600
|
+
* @generated from message blink.v1.QuotePreview
|
|
601
|
+
*/
|
|
602
|
+
export type QuotePreview = Message<"blink.v1.QuotePreview"> & {
|
|
603
|
+
/**
|
|
604
|
+
* @generated from field: string amount_in = 9;
|
|
605
|
+
*/
|
|
606
|
+
amountIn: string;
|
|
607
|
+
/**
|
|
608
|
+
* @generated from field: string amount_out = 1;
|
|
609
|
+
*/
|
|
610
|
+
amountOut: string;
|
|
611
|
+
/**
|
|
612
|
+
* @generated from field: string min_amount_out = 2;
|
|
613
|
+
*/
|
|
614
|
+
minAmountOut: string;
|
|
615
|
+
/**
|
|
616
|
+
* @generated from field: optional string amount_in_usd_micros = 3;
|
|
617
|
+
*/
|
|
618
|
+
amountInUsdMicros?: string | undefined;
|
|
619
|
+
/**
|
|
620
|
+
* @generated from field: optional string amount_out_usd_micros = 4;
|
|
621
|
+
*/
|
|
622
|
+
amountOutUsdMicros?: string | undefined;
|
|
623
|
+
/**
|
|
624
|
+
* @generated from field: uint32 slippage_bps = 5;
|
|
625
|
+
*/
|
|
626
|
+
slippageBps: number;
|
|
627
|
+
/**
|
|
628
|
+
* @generated from field: blink.v1.FeeBreakdown fee_breakdown = 6;
|
|
629
|
+
*/
|
|
630
|
+
feeBreakdown?: FeeBreakdown | undefined;
|
|
631
|
+
/**
|
|
632
|
+
* @generated from field: bool same_chain_swap = 7;
|
|
633
|
+
*/
|
|
634
|
+
sameChainSwap: boolean;
|
|
635
|
+
/**
|
|
636
|
+
* @generated from field: optional uint64 fulfill_eta_secs = 8;
|
|
637
|
+
*/
|
|
638
|
+
fulfillEtaSecs?: bigint | undefined;
|
|
639
|
+
};
|
|
640
|
+
/**
|
|
641
|
+
* Describes the message blink.v1.QuotePreview.
|
|
642
|
+
* Use `create(QuotePreviewSchema)` to create a new message.
|
|
643
|
+
*/
|
|
644
|
+
export declare const QuotePreviewSchema: GenMessage<QuotePreview>;
|
|
645
|
+
/**
|
|
646
|
+
* @generated from message blink.v1.SwapInstructionsRequest
|
|
647
|
+
*/
|
|
648
|
+
export type SwapInstructionsRequest = Message<"blink.v1.SwapInstructionsRequest"> & {
|
|
649
|
+
/**
|
|
650
|
+
* @generated from field: string quote_hash = 1;
|
|
651
|
+
*/
|
|
652
|
+
quoteHash: string;
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* Describes the message blink.v1.SwapInstructionsRequest.
|
|
656
|
+
* Use `create(SwapInstructionsRequestSchema)` to create a new message.
|
|
657
|
+
*/
|
|
658
|
+
export declare const SwapInstructionsRequestSchema: GenMessage<SwapInstructionsRequest>;
|
|
659
|
+
/**
|
|
660
|
+
* @generated from message blink.v1.SwapInstructions
|
|
661
|
+
*/
|
|
662
|
+
export type SwapInstructions = Message<"blink.v1.SwapInstructions"> & {
|
|
663
|
+
/**
|
|
664
|
+
* @generated from field: string router_address = 1;
|
|
665
|
+
*/
|
|
666
|
+
routerAddress: string;
|
|
667
|
+
/**
|
|
668
|
+
* @generated from field: string src_token = 2;
|
|
669
|
+
*/
|
|
670
|
+
srcToken: string;
|
|
671
|
+
/**
|
|
672
|
+
* @generated from field: string amount_in = 3;
|
|
673
|
+
*/
|
|
674
|
+
amountIn: string;
|
|
675
|
+
/**
|
|
676
|
+
* @generated from field: string bridge_token = 4;
|
|
677
|
+
*/
|
|
678
|
+
bridgeToken: string;
|
|
679
|
+
/**
|
|
680
|
+
* @generated from field: string min_bridge_out = 5;
|
|
681
|
+
*/
|
|
682
|
+
minBridgeOut: string;
|
|
683
|
+
/**
|
|
684
|
+
* @generated from oneof blink.v1.SwapInstructions.payload
|
|
685
|
+
*/
|
|
686
|
+
payload: {
|
|
687
|
+
/**
|
|
688
|
+
* @generated from field: blink.v1.EvmSwapInstructions evm = 6;
|
|
689
|
+
*/
|
|
690
|
+
value: EvmSwapInstructions;
|
|
691
|
+
case: "evm";
|
|
692
|
+
} | {
|
|
693
|
+
/**
|
|
694
|
+
* @generated from field: blink.v1.SvmSwapInstructions svm = 7;
|
|
695
|
+
*/
|
|
696
|
+
value: SvmSwapInstructions;
|
|
697
|
+
case: "svm";
|
|
698
|
+
} | {
|
|
699
|
+
/**
|
|
700
|
+
* @generated from field: blink.v1.SuiSwapInstructions sui = 8;
|
|
701
|
+
*/
|
|
702
|
+
value: SuiSwapInstructions;
|
|
703
|
+
case: "sui";
|
|
704
|
+
} | {
|
|
705
|
+
case: undefined;
|
|
706
|
+
value?: undefined;
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
/**
|
|
710
|
+
* Describes the message blink.v1.SwapInstructions.
|
|
711
|
+
* Use `create(SwapInstructionsSchema)` to create a new message.
|
|
712
|
+
*/
|
|
713
|
+
export declare const SwapInstructionsSchema: GenMessage<SwapInstructions>;
|
|
714
|
+
/**
|
|
715
|
+
* @generated from message blink.v1.EvmSwapInstructions
|
|
716
|
+
*/
|
|
717
|
+
export type EvmSwapInstructions = Message<"blink.v1.EvmSwapInstructions"> & {
|
|
718
|
+
/**
|
|
719
|
+
* @generated from field: string aggregator = 1;
|
|
720
|
+
*/
|
|
721
|
+
aggregator: string;
|
|
722
|
+
/**
|
|
723
|
+
* @generated from field: string swap_calldata = 2;
|
|
724
|
+
*/
|
|
725
|
+
swapCalldata: string;
|
|
726
|
+
/**
|
|
727
|
+
* @generated from field: string value = 3;
|
|
728
|
+
*/
|
|
729
|
+
value: string;
|
|
730
|
+
};
|
|
731
|
+
/**
|
|
732
|
+
* Describes the message blink.v1.EvmSwapInstructions.
|
|
733
|
+
* Use `create(EvmSwapInstructionsSchema)` to create a new message.
|
|
734
|
+
*/
|
|
735
|
+
export declare const EvmSwapInstructionsSchema: GenMessage<EvmSwapInstructions>;
|
|
736
|
+
/**
|
|
737
|
+
* @generated from message blink.v1.SvmSwapInstructions
|
|
738
|
+
*/
|
|
739
|
+
export type SvmSwapInstructions = Message<"blink.v1.SvmSwapInstructions"> & {
|
|
740
|
+
/**
|
|
741
|
+
* @generated from field: repeated blink.v1.SvmInstruction setup = 1;
|
|
742
|
+
*/
|
|
743
|
+
setup: SvmInstruction[];
|
|
744
|
+
/**
|
|
745
|
+
* @generated from field: blink.v1.SvmInstruction swap = 2;
|
|
746
|
+
*/
|
|
747
|
+
swap?: SvmInstruction | undefined;
|
|
748
|
+
/**
|
|
749
|
+
* @generated from field: repeated blink.v1.SvmInstruction cleanup = 3;
|
|
750
|
+
*/
|
|
751
|
+
cleanup: SvmInstruction[];
|
|
752
|
+
/**
|
|
753
|
+
* @generated from field: repeated blink.v1.SvmLookupTable lookup_tables = 4;
|
|
754
|
+
*/
|
|
755
|
+
lookupTables: SvmLookupTable[];
|
|
756
|
+
/**
|
|
757
|
+
* @generated from field: repeated string allowed_swap_programs = 5;
|
|
758
|
+
*/
|
|
759
|
+
allowedSwapPrograms: string[];
|
|
760
|
+
/**
|
|
761
|
+
* @generated from field: string swap_programs_signature = 6;
|
|
762
|
+
*/
|
|
763
|
+
swapProgramsSignature: string;
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* Describes the message blink.v1.SvmSwapInstructions.
|
|
767
|
+
* Use `create(SvmSwapInstructionsSchema)` to create a new message.
|
|
768
|
+
*/
|
|
769
|
+
export declare const SvmSwapInstructionsSchema: GenMessage<SvmSwapInstructions>;
|
|
770
|
+
/**
|
|
771
|
+
* @generated from message blink.v1.SuiSwapInstructions
|
|
772
|
+
*/
|
|
773
|
+
export type SuiSwapInstructions = Message<"blink.v1.SuiSwapInstructions"> & {
|
|
774
|
+
/**
|
|
775
|
+
* @generated from field: string fragment = 1;
|
|
776
|
+
*/
|
|
777
|
+
fragment: string;
|
|
778
|
+
/**
|
|
779
|
+
* @generated from field: uint32 coin_out_command = 2;
|
|
780
|
+
*/
|
|
781
|
+
coinOutCommand: number;
|
|
782
|
+
/**
|
|
783
|
+
* @generated from field: optional uint32 coin_out_result = 3;
|
|
784
|
+
*/
|
|
785
|
+
coinOutResult?: number | undefined;
|
|
786
|
+
};
|
|
787
|
+
/**
|
|
788
|
+
* Describes the message blink.v1.SuiSwapInstructions.
|
|
789
|
+
* Use `create(SuiSwapInstructionsSchema)` to create a new message.
|
|
790
|
+
*/
|
|
791
|
+
export declare const SuiSwapInstructionsSchema: GenMessage<SuiSwapInstructions>;
|
|
792
|
+
/**
|
|
793
|
+
* @generated from message blink.v1.SvmInstruction
|
|
794
|
+
*/
|
|
795
|
+
export type SvmInstruction = Message<"blink.v1.SvmInstruction"> & {
|
|
796
|
+
/**
|
|
797
|
+
* @generated from field: string program_id = 1;
|
|
798
|
+
*/
|
|
799
|
+
programId: string;
|
|
800
|
+
/**
|
|
801
|
+
* @generated from field: repeated blink.v1.SvmAccountMeta accounts = 2;
|
|
802
|
+
*/
|
|
803
|
+
accounts: SvmAccountMeta[];
|
|
804
|
+
/**
|
|
805
|
+
* @generated from field: string data = 3;
|
|
806
|
+
*/
|
|
807
|
+
data: string;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* Describes the message blink.v1.SvmInstruction.
|
|
811
|
+
* Use `create(SvmInstructionSchema)` to create a new message.
|
|
812
|
+
*/
|
|
813
|
+
export declare const SvmInstructionSchema: GenMessage<SvmInstruction>;
|
|
814
|
+
/**
|
|
815
|
+
* @generated from message blink.v1.SvmAccountMeta
|
|
816
|
+
*/
|
|
817
|
+
export type SvmAccountMeta = Message<"blink.v1.SvmAccountMeta"> & {
|
|
818
|
+
/**
|
|
819
|
+
* @generated from field: string pubkey = 1;
|
|
820
|
+
*/
|
|
821
|
+
pubkey: string;
|
|
822
|
+
/**
|
|
823
|
+
* @generated from field: bool is_signer = 2;
|
|
824
|
+
*/
|
|
825
|
+
isSigner: boolean;
|
|
826
|
+
/**
|
|
827
|
+
* @generated from field: bool is_writable = 3;
|
|
828
|
+
*/
|
|
829
|
+
isWritable: boolean;
|
|
830
|
+
};
|
|
831
|
+
/**
|
|
832
|
+
* Describes the message blink.v1.SvmAccountMeta.
|
|
833
|
+
* Use `create(SvmAccountMetaSchema)` to create a new message.
|
|
834
|
+
*/
|
|
835
|
+
export declare const SvmAccountMetaSchema: GenMessage<SvmAccountMeta>;
|
|
836
|
+
/**
|
|
837
|
+
* @generated from message blink.v1.SvmLookupTable
|
|
838
|
+
*/
|
|
839
|
+
export type SvmLookupTable = Message<"blink.v1.SvmLookupTable"> & {
|
|
840
|
+
/**
|
|
841
|
+
* @generated from field: string address = 1;
|
|
842
|
+
*/
|
|
843
|
+
address: string;
|
|
844
|
+
/**
|
|
845
|
+
* @generated from field: repeated string addresses = 2;
|
|
846
|
+
*/
|
|
847
|
+
addresses: string[];
|
|
848
|
+
};
|
|
849
|
+
/**
|
|
850
|
+
* Describes the message blink.v1.SvmLookupTable.
|
|
851
|
+
* Use `create(SvmLookupTableSchema)` to create a new message.
|
|
852
|
+
*/
|
|
853
|
+
export declare const SvmLookupTableSchema: GenMessage<SvmLookupTable>;
|
|
854
|
+
/**
|
|
855
|
+
* @generated from message blink.v1.ListTokensRequest
|
|
856
|
+
*/
|
|
857
|
+
export type ListTokensRequest = Message<"blink.v1.ListTokensRequest"> & {};
|
|
858
|
+
/**
|
|
859
|
+
* Describes the message blink.v1.ListTokensRequest.
|
|
860
|
+
* Use `create(ListTokensRequestSchema)` to create a new message.
|
|
861
|
+
*/
|
|
862
|
+
export declare const ListTokensRequestSchema: GenMessage<ListTokensRequest>;
|
|
863
|
+
/**
|
|
864
|
+
* @generated from message blink.v1.CatalogToken
|
|
865
|
+
*/
|
|
866
|
+
export type CatalogToken = Message<"blink.v1.CatalogToken"> & {
|
|
867
|
+
/**
|
|
868
|
+
* @generated from field: string chain = 1;
|
|
869
|
+
*/
|
|
870
|
+
chain: string;
|
|
871
|
+
/**
|
|
872
|
+
* @generated from field: optional uint64 chain_id = 2;
|
|
873
|
+
*/
|
|
874
|
+
chainId?: bigint | undefined;
|
|
875
|
+
/**
|
|
876
|
+
* @generated from field: string address = 3;
|
|
877
|
+
*/
|
|
878
|
+
address: string;
|
|
879
|
+
/**
|
|
880
|
+
* @generated from field: string tier = 4;
|
|
881
|
+
*/
|
|
882
|
+
tier: string;
|
|
883
|
+
/**
|
|
884
|
+
* @generated from field: optional string symbol = 5;
|
|
885
|
+
*/
|
|
886
|
+
symbol?: string | undefined;
|
|
887
|
+
/**
|
|
888
|
+
* @generated from field: optional uint32 decimals = 6;
|
|
889
|
+
*/
|
|
890
|
+
decimals?: number | undefined;
|
|
891
|
+
/**
|
|
892
|
+
* @generated from field: optional string logo_url = 7;
|
|
893
|
+
*/
|
|
894
|
+
logoUrl?: string | undefined;
|
|
895
|
+
/**
|
|
896
|
+
* @generated from field: bool permit = 8;
|
|
897
|
+
*/
|
|
898
|
+
permit: boolean;
|
|
899
|
+
};
|
|
900
|
+
/**
|
|
901
|
+
* Describes the message blink.v1.CatalogToken.
|
|
902
|
+
* Use `create(CatalogTokenSchema)` to create a new message.
|
|
903
|
+
*/
|
|
904
|
+
export declare const CatalogTokenSchema: GenMessage<CatalogToken>;
|
|
905
|
+
/**
|
|
906
|
+
* @generated from message blink.v1.ListTokensResponse
|
|
907
|
+
*/
|
|
908
|
+
export type ListTokensResponse = Message<"blink.v1.ListTokensResponse"> & {
|
|
909
|
+
/**
|
|
910
|
+
* @generated from field: repeated blink.v1.CatalogToken tokens = 1;
|
|
911
|
+
*/
|
|
912
|
+
tokens: CatalogToken[];
|
|
913
|
+
};
|
|
914
|
+
/**
|
|
915
|
+
* Describes the message blink.v1.ListTokensResponse.
|
|
916
|
+
* Use `create(ListTokensResponseSchema)` to create a new message.
|
|
917
|
+
*/
|
|
918
|
+
export declare const ListTokensResponseSchema: GenMessage<ListTokensResponse>;
|
|
919
|
+
/**
|
|
920
|
+
* @generated from message blink.v1.TokenInfoRequest
|
|
921
|
+
*/
|
|
922
|
+
export type TokenInfoRequest = Message<"blink.v1.TokenInfoRequest"> & {
|
|
923
|
+
/**
|
|
924
|
+
* @generated from field: string chain = 1;
|
|
925
|
+
*/
|
|
926
|
+
chain: string;
|
|
927
|
+
/**
|
|
928
|
+
* @generated from field: string address = 2;
|
|
929
|
+
*/
|
|
930
|
+
address: string;
|
|
931
|
+
};
|
|
932
|
+
/**
|
|
933
|
+
* Describes the message blink.v1.TokenInfoRequest.
|
|
934
|
+
* Use `create(TokenInfoRequestSchema)` to create a new message.
|
|
935
|
+
*/
|
|
936
|
+
export declare const TokenInfoRequestSchema: GenMessage<TokenInfoRequest>;
|
|
937
|
+
/**
|
|
938
|
+
* @generated from message blink.v1.TokenInfo
|
|
939
|
+
*/
|
|
940
|
+
export type TokenInfo = Message<"blink.v1.TokenInfo"> & {
|
|
941
|
+
/**
|
|
942
|
+
* @generated from field: string chain = 1;
|
|
943
|
+
*/
|
|
944
|
+
chain: string;
|
|
945
|
+
/**
|
|
946
|
+
* @generated from field: optional uint64 chain_id = 2;
|
|
947
|
+
*/
|
|
948
|
+
chainId?: bigint | undefined;
|
|
949
|
+
/**
|
|
950
|
+
* @generated from field: string address = 3;
|
|
951
|
+
*/
|
|
952
|
+
address: string;
|
|
953
|
+
/**
|
|
954
|
+
* @generated from field: string symbol = 4;
|
|
955
|
+
*/
|
|
956
|
+
symbol: string;
|
|
957
|
+
/**
|
|
958
|
+
* @generated from field: uint32 decimals = 5;
|
|
959
|
+
*/
|
|
960
|
+
decimals: number;
|
|
961
|
+
/**
|
|
962
|
+
* @generated from field: optional string logo_url = 6;
|
|
963
|
+
*/
|
|
964
|
+
logoUrl?: string | undefined;
|
|
965
|
+
};
|
|
966
|
+
/**
|
|
967
|
+
* Describes the message blink.v1.TokenInfo.
|
|
968
|
+
* Use `create(TokenInfoSchema)` to create a new message.
|
|
969
|
+
*/
|
|
970
|
+
export declare const TokenInfoSchema: GenMessage<TokenInfo>;
|
|
971
|
+
/**
|
|
972
|
+
* @generated from message blink.v1.GetOrderRequest
|
|
973
|
+
*/
|
|
974
|
+
export type GetOrderRequest = Message<"blink.v1.GetOrderRequest"> & {
|
|
975
|
+
/**
|
|
976
|
+
* @generated from field: string quote_hash = 1;
|
|
977
|
+
*/
|
|
978
|
+
quoteHash: string;
|
|
979
|
+
};
|
|
980
|
+
/**
|
|
981
|
+
* Describes the message blink.v1.GetOrderRequest.
|
|
982
|
+
* Use `create(GetOrderRequestSchema)` to create a new message.
|
|
983
|
+
*/
|
|
984
|
+
export declare const GetOrderRequestSchema: GenMessage<GetOrderRequest>;
|
|
985
|
+
/**
|
|
986
|
+
* @generated from message blink.v1.SearchRequest
|
|
987
|
+
*/
|
|
988
|
+
export type SearchRequest = Message<"blink.v1.SearchRequest"> & {
|
|
989
|
+
/**
|
|
990
|
+
* @generated from field: string query = 1;
|
|
991
|
+
*/
|
|
992
|
+
query: string;
|
|
993
|
+
};
|
|
994
|
+
/**
|
|
995
|
+
* Describes the message blink.v1.SearchRequest.
|
|
996
|
+
* Use `create(SearchRequestSchema)` to create a new message.
|
|
997
|
+
*/
|
|
998
|
+
export declare const SearchRequestSchema: GenMessage<SearchRequest>;
|
|
999
|
+
/**
|
|
1000
|
+
* @generated from message blink.v1.SearchResponse
|
|
1001
|
+
*/
|
|
1002
|
+
export type SearchResponse = Message<"blink.v1.SearchResponse"> & {
|
|
1003
|
+
/**
|
|
1004
|
+
* @generated from field: repeated blink.v1.OrderSummary orders = 1;
|
|
1005
|
+
*/
|
|
1006
|
+
orders: OrderSummary[];
|
|
1007
|
+
};
|
|
1008
|
+
/**
|
|
1009
|
+
* Describes the message blink.v1.SearchResponse.
|
|
1010
|
+
* Use `create(SearchResponseSchema)` to create a new message.
|
|
1011
|
+
*/
|
|
1012
|
+
export declare const SearchResponseSchema: GenMessage<SearchResponse>;
|
|
1013
|
+
/**
|
|
1014
|
+
* @generated from message blink.v1.SearchAddressRequest
|
|
1015
|
+
*/
|
|
1016
|
+
export type SearchAddressRequest = Message<"blink.v1.SearchAddressRequest"> & {
|
|
1017
|
+
/**
|
|
1018
|
+
* @generated from field: string address = 1;
|
|
1019
|
+
*/
|
|
1020
|
+
address: string;
|
|
1021
|
+
};
|
|
1022
|
+
/**
|
|
1023
|
+
* Describes the message blink.v1.SearchAddressRequest.
|
|
1024
|
+
* Use `create(SearchAddressRequestSchema)` to create a new message.
|
|
1025
|
+
*/
|
|
1026
|
+
export declare const SearchAddressRequestSchema: GenMessage<SearchAddressRequest>;
|
|
1027
|
+
/**
|
|
1028
|
+
* @generated from message blink.v1.AddressMatch
|
|
1029
|
+
*/
|
|
1030
|
+
export type AddressMatch = Message<"blink.v1.AddressMatch"> & {
|
|
1031
|
+
/**
|
|
1032
|
+
* @generated from field: string quote_hash = 1;
|
|
1033
|
+
*/
|
|
1034
|
+
quoteHash: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* @generated from field: string state = 2;
|
|
1037
|
+
*/
|
|
1038
|
+
state: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* @generated from field: string src_chain = 3;
|
|
1041
|
+
*/
|
|
1042
|
+
srcChain: string;
|
|
1043
|
+
/**
|
|
1044
|
+
* @generated from field: string dst_chain = 4;
|
|
1045
|
+
*/
|
|
1046
|
+
dstChain: string;
|
|
1047
|
+
/**
|
|
1048
|
+
* @generated from field: string created_at = 5;
|
|
1049
|
+
*/
|
|
1050
|
+
createdAt: string;
|
|
1051
|
+
};
|
|
1052
|
+
/**
|
|
1053
|
+
* Describes the message blink.v1.AddressMatch.
|
|
1054
|
+
* Use `create(AddressMatchSchema)` to create a new message.
|
|
1055
|
+
*/
|
|
1056
|
+
export declare const AddressMatchSchema: GenMessage<AddressMatch>;
|
|
1057
|
+
/**
|
|
1058
|
+
* @generated from message blink.v1.SearchAddressResponse
|
|
1059
|
+
*/
|
|
1060
|
+
export type SearchAddressResponse = Message<"blink.v1.SearchAddressResponse"> & {
|
|
1061
|
+
/**
|
|
1062
|
+
* @generated from field: repeated blink.v1.AddressMatch matches = 1;
|
|
1063
|
+
*/
|
|
1064
|
+
matches: AddressMatch[];
|
|
1065
|
+
};
|
|
1066
|
+
/**
|
|
1067
|
+
* Describes the message blink.v1.SearchAddressResponse.
|
|
1068
|
+
* Use `create(SearchAddressResponseSchema)` to create a new message.
|
|
1069
|
+
*/
|
|
1070
|
+
export declare const SearchAddressResponseSchema: GenMessage<SearchAddressResponse>;
|
|
1071
|
+
/**
|
|
1072
|
+
* @generated from message blink.v1.TokenPrice
|
|
1073
|
+
*/
|
|
1074
|
+
export type TokenPrice = Message<"blink.v1.TokenPrice"> & {
|
|
1075
|
+
/**
|
|
1076
|
+
* @generated from field: string chain = 1;
|
|
1077
|
+
*/
|
|
1078
|
+
chain: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* @generated from field: string token = 2;
|
|
1081
|
+
*/
|
|
1082
|
+
token: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* @generated from field: string usd_micros = 3;
|
|
1085
|
+
*/
|
|
1086
|
+
usdMicros: string;
|
|
1087
|
+
};
|
|
1088
|
+
/**
|
|
1089
|
+
* Describes the message blink.v1.TokenPrice.
|
|
1090
|
+
* Use `create(TokenPriceSchema)` to create a new message.
|
|
1091
|
+
*/
|
|
1092
|
+
export declare const TokenPriceSchema: GenMessage<TokenPrice>;
|
|
1093
|
+
/**
|
|
1094
|
+
* @generated from message blink.v1.QuoteView
|
|
1095
|
+
*/
|
|
1096
|
+
export type QuoteView = Message<"blink.v1.QuoteView"> & {
|
|
1097
|
+
/**
|
|
1098
|
+
* @generated from field: string quote_hash = 1;
|
|
1099
|
+
*/
|
|
1100
|
+
quoteHash: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* @generated from field: blink.v1.OrderParams order_params = 2;
|
|
1103
|
+
*/
|
|
1104
|
+
orderParams?: OrderParams | undefined;
|
|
1105
|
+
/**
|
|
1106
|
+
* @generated from field: blink.v1.FeeBreakdown fee_breakdown = 3;
|
|
1107
|
+
*/
|
|
1108
|
+
feeBreakdown?: FeeBreakdown | undefined;
|
|
1109
|
+
/**
|
|
1110
|
+
* @generated from field: string created_at = 4;
|
|
1111
|
+
*/
|
|
1112
|
+
createdAt: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* @generated from field: bool gasless = 5;
|
|
1115
|
+
*/
|
|
1116
|
+
gasless: boolean;
|
|
1117
|
+
/**
|
|
1118
|
+
* @generated from field: string trade_type = 6;
|
|
1119
|
+
*/
|
|
1120
|
+
tradeType: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* @generated from field: string deposit_deadline = 7;
|
|
1123
|
+
*/
|
|
1124
|
+
depositDeadline: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* @generated from field: repeated blink.v1.TokenPrice token_prices = 8;
|
|
1127
|
+
*/
|
|
1128
|
+
tokenPrices: TokenPrice[];
|
|
1129
|
+
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Describes the message blink.v1.QuoteView.
|
|
1132
|
+
* Use `create(QuoteViewSchema)` to create a new message.
|
|
1133
|
+
*/
|
|
1134
|
+
export declare const QuoteViewSchema: GenMessage<QuoteView>;
|
|
1135
|
+
/**
|
|
1136
|
+
* @generated from message blink.v1.Order
|
|
1137
|
+
*/
|
|
1138
|
+
export type Order = Message<"blink.v1.Order"> & {
|
|
1139
|
+
/**
|
|
1140
|
+
* @generated from field: string id = 1;
|
|
1141
|
+
*/
|
|
1142
|
+
id: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* @generated from field: string quote_id = 2;
|
|
1145
|
+
*/
|
|
1146
|
+
quoteId: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* @generated from field: string state = 3;
|
|
1149
|
+
*/
|
|
1150
|
+
state: string;
|
|
1151
|
+
/**
|
|
1152
|
+
* @generated from field: string src_chain = 4;
|
|
1153
|
+
*/
|
|
1154
|
+
srcChain: string;
|
|
1155
|
+
/**
|
|
1156
|
+
* @generated from field: string dst_chain = 5;
|
|
1157
|
+
*/
|
|
1158
|
+
dstChain: string;
|
|
1159
|
+
/**
|
|
1160
|
+
* @generated from field: optional string src_tx = 6;
|
|
1161
|
+
*/
|
|
1162
|
+
srcTx?: string | undefined;
|
|
1163
|
+
/**
|
|
1164
|
+
* @generated from field: int64 src_block_number = 7;
|
|
1165
|
+
*/
|
|
1166
|
+
srcBlockNumber: bigint;
|
|
1167
|
+
/**
|
|
1168
|
+
* @generated from field: int64 src_log_index = 8;
|
|
1169
|
+
*/
|
|
1170
|
+
srcLogIndex: bigint;
|
|
1171
|
+
/**
|
|
1172
|
+
* @generated from field: int64 src_confirmations = 9;
|
|
1173
|
+
*/
|
|
1174
|
+
srcConfirmations: bigint;
|
|
1175
|
+
/**
|
|
1176
|
+
* @generated from field: int64 required_confirmations = 10;
|
|
1177
|
+
*/
|
|
1178
|
+
requiredConfirmations: bigint;
|
|
1179
|
+
/**
|
|
1180
|
+
* @generated from field: optional string dst_tx_hash = 11;
|
|
1181
|
+
*/
|
|
1182
|
+
dstTxHash?: string | undefined;
|
|
1183
|
+
/**
|
|
1184
|
+
* @generated from field: string created_at = 12;
|
|
1185
|
+
*/
|
|
1186
|
+
createdAt: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* @generated from field: string updated_at = 13;
|
|
1189
|
+
*/
|
|
1190
|
+
updatedAt: string;
|
|
1191
|
+
};
|
|
1192
|
+
/**
|
|
1193
|
+
* Describes the message blink.v1.Order.
|
|
1194
|
+
* Use `create(OrderSchema)` to create a new message.
|
|
1195
|
+
*/
|
|
1196
|
+
export declare const OrderSchema: GenMessage<Order>;
|
|
1197
|
+
/**
|
|
1198
|
+
* @generated from message blink.v1.Deposit
|
|
1199
|
+
*/
|
|
1200
|
+
export type Deposit = Message<"blink.v1.Deposit"> & {
|
|
1201
|
+
/**
|
|
1202
|
+
* @generated from field: string chain = 1;
|
|
1203
|
+
*/
|
|
1204
|
+
chain: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* @generated from field: string tx_hash = 2;
|
|
1207
|
+
*/
|
|
1208
|
+
txHash: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* @generated from field: int64 log_index = 3;
|
|
1211
|
+
*/
|
|
1212
|
+
logIndex: bigint;
|
|
1213
|
+
/**
|
|
1214
|
+
* @generated from field: int64 block_number = 4;
|
|
1215
|
+
*/
|
|
1216
|
+
blockNumber: bigint;
|
|
1217
|
+
/**
|
|
1218
|
+
* @generated from field: string token = 5;
|
|
1219
|
+
*/
|
|
1220
|
+
token: string;
|
|
1221
|
+
/**
|
|
1222
|
+
* @generated from field: string amount = 6;
|
|
1223
|
+
*/
|
|
1224
|
+
amount: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* @generated from field: string from_address = 7;
|
|
1227
|
+
*/
|
|
1228
|
+
fromAddress: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* @generated from field: string block_time = 8;
|
|
1231
|
+
*/
|
|
1232
|
+
blockTime: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* @generated from field: string detected_at = 9;
|
|
1235
|
+
*/
|
|
1236
|
+
detectedAt: string;
|
|
1237
|
+
};
|
|
1238
|
+
/**
|
|
1239
|
+
* Describes the message blink.v1.Deposit.
|
|
1240
|
+
* Use `create(DepositSchema)` to create a new message.
|
|
1241
|
+
*/
|
|
1242
|
+
export declare const DepositSchema: GenMessage<Deposit>;
|
|
1243
|
+
/**
|
|
1244
|
+
* @generated from message blink.v1.Fulfillment
|
|
1245
|
+
*/
|
|
1246
|
+
export type Fulfillment = Message<"blink.v1.Fulfillment"> & {
|
|
1247
|
+
/**
|
|
1248
|
+
* @generated from field: string id = 1;
|
|
1249
|
+
*/
|
|
1250
|
+
id: string;
|
|
1251
|
+
/**
|
|
1252
|
+
* @generated from field: optional string dst_tx = 2;
|
|
1253
|
+
*/
|
|
1254
|
+
dstTx?: string | undefined;
|
|
1255
|
+
/**
|
|
1256
|
+
* @generated from field: string status = 3;
|
|
1257
|
+
*/
|
|
1258
|
+
status: string;
|
|
1259
|
+
/**
|
|
1260
|
+
* @generated from field: int64 attempts = 4;
|
|
1261
|
+
*/
|
|
1262
|
+
attempts: bigint;
|
|
1263
|
+
/**
|
|
1264
|
+
* @generated from field: optional string last_error = 5;
|
|
1265
|
+
*/
|
|
1266
|
+
lastError?: string | undefined;
|
|
1267
|
+
/**
|
|
1268
|
+
* @generated from field: optional string confirmed_at = 6;
|
|
1269
|
+
*/
|
|
1270
|
+
confirmedAt?: string | undefined;
|
|
1271
|
+
/**
|
|
1272
|
+
* @generated from field: string created_at = 7;
|
|
1273
|
+
*/
|
|
1274
|
+
createdAt: string;
|
|
1275
|
+
/**
|
|
1276
|
+
* @generated from field: optional int64 gas_used = 8;
|
|
1277
|
+
*/
|
|
1278
|
+
gasUsed?: bigint | undefined;
|
|
1279
|
+
/**
|
|
1280
|
+
* @generated from field: optional string effective_gas_price = 9;
|
|
1281
|
+
*/
|
|
1282
|
+
effectiveGasPrice?: string | undefined;
|
|
1283
|
+
/**
|
|
1284
|
+
* @generated from field: optional string actual_native_cost = 10;
|
|
1285
|
+
*/
|
|
1286
|
+
actualNativeCost?: string | undefined;
|
|
1287
|
+
/**
|
|
1288
|
+
* @generated from field: optional string filled_amount = 11;
|
|
1289
|
+
*/
|
|
1290
|
+
filledAmount?: string | undefined;
|
|
1291
|
+
};
|
|
1292
|
+
/**
|
|
1293
|
+
* Describes the message blink.v1.Fulfillment.
|
|
1294
|
+
* Use `create(FulfillmentSchema)` to create a new message.
|
|
1295
|
+
*/
|
|
1296
|
+
export declare const FulfillmentSchema: GenMessage<Fulfillment>;
|
|
1297
|
+
/**
|
|
1298
|
+
* @generated from message blink.v1.Refund
|
|
1299
|
+
*/
|
|
1300
|
+
export type Refund = Message<"blink.v1.Refund"> & {
|
|
1301
|
+
/**
|
|
1302
|
+
* @generated from field: string id = 1;
|
|
1303
|
+
*/
|
|
1304
|
+
id: string;
|
|
1305
|
+
/**
|
|
1306
|
+
* @generated from field: optional string src_tx = 2;
|
|
1307
|
+
*/
|
|
1308
|
+
srcTx?: string | undefined;
|
|
1309
|
+
/**
|
|
1310
|
+
* @generated from field: string status = 3;
|
|
1311
|
+
*/
|
|
1312
|
+
status: string;
|
|
1313
|
+
/**
|
|
1314
|
+
* @generated from field: int64 attempts = 4;
|
|
1315
|
+
*/
|
|
1316
|
+
attempts: bigint;
|
|
1317
|
+
/**
|
|
1318
|
+
* @generated from field: optional string last_error = 5;
|
|
1319
|
+
*/
|
|
1320
|
+
lastError?: string | undefined;
|
|
1321
|
+
/**
|
|
1322
|
+
* @generated from field: optional string confirmed_at = 6;
|
|
1323
|
+
*/
|
|
1324
|
+
confirmedAt?: string | undefined;
|
|
1325
|
+
/**
|
|
1326
|
+
* @generated from field: string created_at = 7;
|
|
1327
|
+
*/
|
|
1328
|
+
createdAt: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* @generated from field: optional int64 gas_used = 8;
|
|
1331
|
+
*/
|
|
1332
|
+
gasUsed?: bigint | undefined;
|
|
1333
|
+
/**
|
|
1334
|
+
* @generated from field: optional string effective_gas_price = 9;
|
|
1335
|
+
*/
|
|
1336
|
+
effectiveGasPrice?: string | undefined;
|
|
1337
|
+
/**
|
|
1338
|
+
* @generated from field: optional string actual_native_cost = 10;
|
|
1339
|
+
*/
|
|
1340
|
+
actualNativeCost?: string | undefined;
|
|
1341
|
+
/**
|
|
1342
|
+
* @generated from field: optional string refunded_amount = 11;
|
|
1343
|
+
*/
|
|
1344
|
+
refundedAmount?: string | undefined;
|
|
1345
|
+
};
|
|
1346
|
+
/**
|
|
1347
|
+
* Describes the message blink.v1.Refund.
|
|
1348
|
+
* Use `create(RefundSchema)` to create a new message.
|
|
1349
|
+
*/
|
|
1350
|
+
export declare const RefundSchema: GenMessage<Refund>;
|
|
1351
|
+
/**
|
|
1352
|
+
* @generated from message blink.v1.OrderDetail
|
|
1353
|
+
*/
|
|
1354
|
+
export type OrderDetail = Message<"blink.v1.OrderDetail"> & {
|
|
1355
|
+
/**
|
|
1356
|
+
* @generated from field: blink.v1.QuoteView quote = 1;
|
|
1357
|
+
*/
|
|
1358
|
+
quote?: QuoteView | undefined;
|
|
1359
|
+
/**
|
|
1360
|
+
* @generated from field: optional blink.v1.Order order = 2;
|
|
1361
|
+
*/
|
|
1362
|
+
order?: Order | undefined;
|
|
1363
|
+
/**
|
|
1364
|
+
* @generated from field: optional blink.v1.Deposit deposit = 3;
|
|
1365
|
+
*/
|
|
1366
|
+
deposit?: Deposit | undefined;
|
|
1367
|
+
/**
|
|
1368
|
+
* @generated from field: optional blink.v1.Fulfillment fulfillment = 4;
|
|
1369
|
+
*/
|
|
1370
|
+
fulfillment?: Fulfillment | undefined;
|
|
1371
|
+
/**
|
|
1372
|
+
* @generated from field: optional blink.v1.Refund refund = 5;
|
|
1373
|
+
*/
|
|
1374
|
+
refund?: Refund | undefined;
|
|
1375
|
+
};
|
|
1376
|
+
/**
|
|
1377
|
+
* Describes the message blink.v1.OrderDetail.
|
|
1378
|
+
* Use `create(OrderDetailSchema)` to create a new message.
|
|
1379
|
+
*/
|
|
1380
|
+
export declare const OrderDetailSchema: GenMessage<OrderDetail>;
|
|
1381
|
+
/**
|
|
1382
|
+
* @generated from message blink.v1.ListOrdersRequest
|
|
1383
|
+
*/
|
|
1384
|
+
export type ListOrdersRequest = Message<"blink.v1.ListOrdersRequest"> & {
|
|
1385
|
+
/**
|
|
1386
|
+
* @generated from field: string address = 1;
|
|
1387
|
+
*/
|
|
1388
|
+
address: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* @generated from field: optional int64 limit = 2;
|
|
1391
|
+
*/
|
|
1392
|
+
limit?: bigint | undefined;
|
|
1393
|
+
/**
|
|
1394
|
+
* @generated from field: optional string cursor = 3;
|
|
1395
|
+
*/
|
|
1396
|
+
cursor?: string | undefined;
|
|
1397
|
+
};
|
|
1398
|
+
/**
|
|
1399
|
+
* Describes the message blink.v1.ListOrdersRequest.
|
|
1400
|
+
* Use `create(ListOrdersRequestSchema)` to create a new message.
|
|
1401
|
+
*/
|
|
1402
|
+
export declare const ListOrdersRequestSchema: GenMessage<ListOrdersRequest>;
|
|
1403
|
+
/**
|
|
1404
|
+
* @generated from message blink.v1.OrderSummary
|
|
1405
|
+
*/
|
|
1406
|
+
export type OrderSummary = Message<"blink.v1.OrderSummary"> & {
|
|
1407
|
+
/**
|
|
1408
|
+
* @generated from field: string quote_hash = 1;
|
|
1409
|
+
*/
|
|
1410
|
+
quoteHash: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* @generated from field: blink.v1.Order order = 2;
|
|
1413
|
+
*/
|
|
1414
|
+
order?: Order | undefined;
|
|
1415
|
+
/**
|
|
1416
|
+
* @generated from field: optional blink.v1.Deposit deposit = 3;
|
|
1417
|
+
*/
|
|
1418
|
+
deposit?: Deposit | undefined;
|
|
1419
|
+
/**
|
|
1420
|
+
* @generated from field: string src_token = 4;
|
|
1421
|
+
*/
|
|
1422
|
+
srcToken: string;
|
|
1423
|
+
/**
|
|
1424
|
+
* @generated from field: string src_amount = 5;
|
|
1425
|
+
*/
|
|
1426
|
+
srcAmount: string;
|
|
1427
|
+
/**
|
|
1428
|
+
* @generated from field: string dst_token = 6;
|
|
1429
|
+
*/
|
|
1430
|
+
dstToken: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* @generated from field: string dst_amount = 7;
|
|
1433
|
+
*/
|
|
1434
|
+
dstAmount: string;
|
|
1435
|
+
/**
|
|
1436
|
+
* @generated from field: string recipient = 8;
|
|
1437
|
+
*/
|
|
1438
|
+
recipient: string;
|
|
1439
|
+
/**
|
|
1440
|
+
* @generated from field: bool gasless = 9;
|
|
1441
|
+
*/
|
|
1442
|
+
gasless: boolean;
|
|
1443
|
+
/**
|
|
1444
|
+
* @generated from field: optional string settled_at = 10;
|
|
1445
|
+
*/
|
|
1446
|
+
settledAt?: string | undefined;
|
|
1447
|
+
/**
|
|
1448
|
+
* @generated from field: string trade_type = 11;
|
|
1449
|
+
*/
|
|
1450
|
+
tradeType: string;
|
|
1451
|
+
};
|
|
1452
|
+
/**
|
|
1453
|
+
* Describes the message blink.v1.OrderSummary.
|
|
1454
|
+
* Use `create(OrderSummarySchema)` to create a new message.
|
|
1455
|
+
*/
|
|
1456
|
+
export declare const OrderSummarySchema: GenMessage<OrderSummary>;
|
|
1457
|
+
/**
|
|
1458
|
+
* @generated from message blink.v1.OrdersPage
|
|
1459
|
+
*/
|
|
1460
|
+
export type OrdersPage = Message<"blink.v1.OrdersPage"> & {
|
|
1461
|
+
/**
|
|
1462
|
+
* @generated from field: repeated blink.v1.OrderSummary items = 1;
|
|
1463
|
+
*/
|
|
1464
|
+
items: OrderSummary[];
|
|
1465
|
+
/**
|
|
1466
|
+
* @generated from field: optional string next_cursor = 2;
|
|
1467
|
+
*/
|
|
1468
|
+
nextCursor?: string | undefined;
|
|
1469
|
+
};
|
|
1470
|
+
/**
|
|
1471
|
+
* Describes the message blink.v1.OrdersPage.
|
|
1472
|
+
* Use `create(OrdersPageSchema)` to create a new message.
|
|
1473
|
+
*/
|
|
1474
|
+
export declare const OrdersPageSchema: GenMessage<OrdersPage>;
|
|
1475
|
+
/**
|
|
1476
|
+
* @generated from message blink.v1.ListRecentOrdersRequest
|
|
1477
|
+
*/
|
|
1478
|
+
export type ListRecentOrdersRequest = Message<"blink.v1.ListRecentOrdersRequest"> & {
|
|
1479
|
+
/**
|
|
1480
|
+
* @generated from field: optional int64 limit = 1;
|
|
1481
|
+
*/
|
|
1482
|
+
limit?: bigint | undefined;
|
|
1483
|
+
/**
|
|
1484
|
+
* @generated from field: optional string cursor = 2;
|
|
1485
|
+
*/
|
|
1486
|
+
cursor?: string | undefined;
|
|
1487
|
+
};
|
|
1488
|
+
/**
|
|
1489
|
+
* Describes the message blink.v1.ListRecentOrdersRequest.
|
|
1490
|
+
* Use `create(ListRecentOrdersRequestSchema)` to create a new message.
|
|
1491
|
+
*/
|
|
1492
|
+
export declare const ListRecentOrdersRequestSchema: GenMessage<ListRecentOrdersRequest>;
|
|
1493
|
+
/**
|
|
1494
|
+
* @generated from message blink.v1.GetChainsRequest
|
|
1495
|
+
*/
|
|
1496
|
+
export type GetChainsRequest = Message<"blink.v1.GetChainsRequest"> & {};
|
|
1497
|
+
/**
|
|
1498
|
+
* Describes the message blink.v1.GetChainsRequest.
|
|
1499
|
+
* Use `create(GetChainsRequestSchema)` to create a new message.
|
|
1500
|
+
*/
|
|
1501
|
+
export declare const GetChainsRequestSchema: GenMessage<GetChainsRequest>;
|
|
1502
|
+
/**
|
|
1503
|
+
* @generated from message blink.v1.ChainStatus
|
|
1504
|
+
*/
|
|
1505
|
+
export type ChainStatus = Message<"blink.v1.ChainStatus"> & {
|
|
1506
|
+
/**
|
|
1507
|
+
* @generated from field: string chain = 1;
|
|
1508
|
+
*/
|
|
1509
|
+
chain: string;
|
|
1510
|
+
/**
|
|
1511
|
+
* @generated from field: bool quote_enabled = 2;
|
|
1512
|
+
*/
|
|
1513
|
+
quoteEnabled: boolean;
|
|
1514
|
+
/**
|
|
1515
|
+
* @generated from field: bool indexer_enabled = 3;
|
|
1516
|
+
*/
|
|
1517
|
+
indexerEnabled: boolean;
|
|
1518
|
+
/**
|
|
1519
|
+
* @generated from field: bool relayer_enabled = 4;
|
|
1520
|
+
*/
|
|
1521
|
+
relayerEnabled: boolean;
|
|
1522
|
+
/**
|
|
1523
|
+
* @generated from field: optional string last_indexed_at = 5;
|
|
1524
|
+
*/
|
|
1525
|
+
lastIndexedAt?: string | undefined;
|
|
1526
|
+
/**
|
|
1527
|
+
* @generated from field: optional string cursor = 6;
|
|
1528
|
+
*/
|
|
1529
|
+
cursor?: string | undefined;
|
|
1530
|
+
/**
|
|
1531
|
+
* @generated from field: optional string rpc_url = 7;
|
|
1532
|
+
*/
|
|
1533
|
+
rpcUrl?: string | undefined;
|
|
1534
|
+
/**
|
|
1535
|
+
* @generated from field: optional string explorer_tx_url = 8;
|
|
1536
|
+
*/
|
|
1537
|
+
explorerTxUrl?: string | undefined;
|
|
1538
|
+
/**
|
|
1539
|
+
* @generated from field: optional string treasury = 9;
|
|
1540
|
+
*/
|
|
1541
|
+
treasury?: string | undefined;
|
|
1542
|
+
/**
|
|
1543
|
+
* @generated from field: string native_symbol = 10;
|
|
1544
|
+
*/
|
|
1545
|
+
nativeSymbol: string;
|
|
1546
|
+
/**
|
|
1547
|
+
* @generated from field: uint32 native_decimals = 11;
|
|
1548
|
+
*/
|
|
1549
|
+
nativeDecimals: number;
|
|
1550
|
+
/**
|
|
1551
|
+
* @generated from field: string logo_url = 12;
|
|
1552
|
+
*/
|
|
1553
|
+
logoUrl: string;
|
|
1554
|
+
/**
|
|
1555
|
+
* @generated from field: optional string explorer_address_url = 13;
|
|
1556
|
+
*/
|
|
1557
|
+
explorerAddressUrl?: string | undefined;
|
|
1558
|
+
/**
|
|
1559
|
+
* @generated from field: string max_gas_drop = 14;
|
|
1560
|
+
*/
|
|
1561
|
+
maxGasDrop: string;
|
|
1562
|
+
/**
|
|
1563
|
+
* @generated from field: optional string router = 15;
|
|
1564
|
+
*/
|
|
1565
|
+
router?: string | undefined;
|
|
1566
|
+
/**
|
|
1567
|
+
* @generated from field: bool gasless = 16;
|
|
1568
|
+
*/
|
|
1569
|
+
gasless: boolean;
|
|
1570
|
+
/**
|
|
1571
|
+
* @generated from field: string vm = 17;
|
|
1572
|
+
*/
|
|
1573
|
+
vm: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* @generated from field: optional string escrow = 18;
|
|
1576
|
+
*/
|
|
1577
|
+
escrow?: string | undefined;
|
|
1578
|
+
};
|
|
1579
|
+
/**
|
|
1580
|
+
* Describes the message blink.v1.ChainStatus.
|
|
1581
|
+
* Use `create(ChainStatusSchema)` to create a new message.
|
|
1582
|
+
*/
|
|
1583
|
+
export declare const ChainStatusSchema: GenMessage<ChainStatus>;
|
|
1584
|
+
/**
|
|
1585
|
+
* @generated from message blink.v1.ChainsResponse
|
|
1586
|
+
*/
|
|
1587
|
+
export type ChainsResponse = Message<"blink.v1.ChainsResponse"> & {
|
|
1588
|
+
/**
|
|
1589
|
+
* @generated from field: repeated blink.v1.ChainStatus chains = 1;
|
|
1590
|
+
*/
|
|
1591
|
+
chains: ChainStatus[];
|
|
1592
|
+
};
|
|
1593
|
+
/**
|
|
1594
|
+
* Describes the message blink.v1.ChainsResponse.
|
|
1595
|
+
* Use `create(ChainsResponseSchema)` to create a new message.
|
|
1596
|
+
*/
|
|
1597
|
+
export declare const ChainsResponseSchema: GenMessage<ChainsResponse>;
|
|
1598
|
+
/**
|
|
1599
|
+
* @generated from message blink.v1.Voucher
|
|
1600
|
+
*/
|
|
1601
|
+
export type Voucher = Message<"blink.v1.Voucher"> & {
|
|
1602
|
+
/**
|
|
1603
|
+
* @generated from field: string id = 1;
|
|
1604
|
+
*/
|
|
1605
|
+
id: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* @generated from field: string chain = 2;
|
|
1608
|
+
*/
|
|
1609
|
+
chain: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* @generated from field: optional uint64 chain_id = 3;
|
|
1612
|
+
*/
|
|
1613
|
+
chainId?: bigint | undefined;
|
|
1614
|
+
/**
|
|
1615
|
+
* @generated from field: string router_address = 4;
|
|
1616
|
+
*/
|
|
1617
|
+
routerAddress: string;
|
|
1618
|
+
/**
|
|
1619
|
+
* @generated from field: string token = 5;
|
|
1620
|
+
*/
|
|
1621
|
+
token: string;
|
|
1622
|
+
/**
|
|
1623
|
+
* @generated from field: string referrer = 6;
|
|
1624
|
+
*/
|
|
1625
|
+
referrer: string;
|
|
1626
|
+
/**
|
|
1627
|
+
* @generated from field: string amount = 7;
|
|
1628
|
+
*/
|
|
1629
|
+
amount: string;
|
|
1630
|
+
/**
|
|
1631
|
+
* @generated from field: string signature = 8;
|
|
1632
|
+
*/
|
|
1633
|
+
signature: string;
|
|
1634
|
+
/**
|
|
1635
|
+
* @generated from field: optional string calldata = 9;
|
|
1636
|
+
*/
|
|
1637
|
+
calldata?: string | undefined;
|
|
1638
|
+
/**
|
|
1639
|
+
* @generated from field: bool redeemed = 10;
|
|
1640
|
+
*/
|
|
1641
|
+
redeemed: boolean;
|
|
1642
|
+
/**
|
|
1643
|
+
* @generated from field: optional string redeem_tx = 11;
|
|
1644
|
+
*/
|
|
1645
|
+
redeemTx?: string | undefined;
|
|
1646
|
+
/**
|
|
1647
|
+
* @generated from field: string created_at = 12;
|
|
1648
|
+
*/
|
|
1649
|
+
createdAt: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* @generated from field: optional string redeemed_at = 13;
|
|
1652
|
+
*/
|
|
1653
|
+
redeemedAt?: string | undefined;
|
|
1654
|
+
/**
|
|
1655
|
+
* @generated from field: optional string token_symbol = 14;
|
|
1656
|
+
*/
|
|
1657
|
+
tokenSymbol?: string | undefined;
|
|
1658
|
+
/**
|
|
1659
|
+
* @generated from field: optional uint32 decimals = 15;
|
|
1660
|
+
*/
|
|
1661
|
+
decimals?: number | undefined;
|
|
1662
|
+
};
|
|
1663
|
+
/**
|
|
1664
|
+
* Describes the message blink.v1.Voucher.
|
|
1665
|
+
* Use `create(VoucherSchema)` to create a new message.
|
|
1666
|
+
*/
|
|
1667
|
+
export declare const VoucherSchema: GenMessage<Voucher>;
|
|
1668
|
+
/**
|
|
1669
|
+
* @generated from message blink.v1.ListVouchersResponse
|
|
1670
|
+
*/
|
|
1671
|
+
export type ListVouchersResponse = Message<"blink.v1.ListVouchersResponse"> & {
|
|
1672
|
+
/**
|
|
1673
|
+
* @generated from field: repeated blink.v1.Voucher vouchers = 1;
|
|
1674
|
+
*/
|
|
1675
|
+
vouchers: Voucher[];
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* Describes the message blink.v1.ListVouchersResponse.
|
|
1679
|
+
* Use `create(ListVouchersResponseSchema)` to create a new message.
|
|
1680
|
+
*/
|
|
1681
|
+
export declare const ListVouchersResponseSchema: GenMessage<ListVouchersResponse>;
|
|
1682
|
+
/**
|
|
1683
|
+
* @generated from enum blink.v1.TradeType
|
|
1684
|
+
*/
|
|
1685
|
+
export declare enum TradeType {
|
|
1686
|
+
/**
|
|
1687
|
+
* @generated from enum value: TRADE_TYPE_UNSPECIFIED = 0;
|
|
1688
|
+
*/
|
|
1689
|
+
UNSPECIFIED = 0,
|
|
1690
|
+
/**
|
|
1691
|
+
* @generated from enum value: TRADE_TYPE_EXACT_INPUT = 1;
|
|
1692
|
+
*/
|
|
1693
|
+
EXACT_INPUT = 1,
|
|
1694
|
+
/**
|
|
1695
|
+
* @generated from enum value: TRADE_TYPE_EXPECTED_OUTPUT = 2;
|
|
1696
|
+
*/
|
|
1697
|
+
EXPECTED_OUTPUT = 2,
|
|
1698
|
+
/**
|
|
1699
|
+
* @generated from enum value: TRADE_TYPE_EXACT_INPUT_GUARANTEED_OUTPUT = 3;
|
|
1700
|
+
*/
|
|
1701
|
+
EXACT_INPUT_GUARANTEED_OUTPUT = 3,
|
|
1702
|
+
/**
|
|
1703
|
+
* @generated from enum value: TRADE_TYPE_EXACT_OUTPUT = 4;
|
|
1704
|
+
*/
|
|
1705
|
+
EXACT_OUTPUT = 4
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* Describes the enum blink.v1.TradeType.
|
|
1709
|
+
*/
|
|
1710
|
+
export declare const TradeTypeSchema: GenEnum<TradeType>;
|
|
1711
|
+
/**
|
|
1712
|
+
* @generated from service blink.v1.BlinkApi
|
|
1713
|
+
*/
|
|
1714
|
+
export declare const BlinkApi: GenService<{
|
|
1715
|
+
/**
|
|
1716
|
+
* @generated from rpc blink.v1.BlinkApi.GetQuote
|
|
1717
|
+
*/
|
|
1718
|
+
getQuote: {
|
|
1719
|
+
methodKind: "unary";
|
|
1720
|
+
input: typeof QuoteRequestSchema;
|
|
1721
|
+
output: typeof QuoteResponseSchema;
|
|
1722
|
+
};
|
|
1723
|
+
/**
|
|
1724
|
+
* @generated from rpc blink.v1.BlinkApi.PreviewQuote
|
|
1725
|
+
*/
|
|
1726
|
+
previewQuote: {
|
|
1727
|
+
methodKind: "unary";
|
|
1728
|
+
input: typeof PreviewQuoteRequestSchema;
|
|
1729
|
+
output: typeof QuotePreviewSchema;
|
|
1730
|
+
};
|
|
1731
|
+
/**
|
|
1732
|
+
* @generated from rpc blink.v1.BlinkApi.GetSwapInstructions
|
|
1733
|
+
*/
|
|
1734
|
+
getSwapInstructions: {
|
|
1735
|
+
methodKind: "unary";
|
|
1736
|
+
input: typeof SwapInstructionsRequestSchema;
|
|
1737
|
+
output: typeof SwapInstructionsSchema;
|
|
1738
|
+
};
|
|
1739
|
+
/**
|
|
1740
|
+
* @generated from rpc blink.v1.BlinkApi.ListTokens
|
|
1741
|
+
*/
|
|
1742
|
+
listTokens: {
|
|
1743
|
+
methodKind: "unary";
|
|
1744
|
+
input: typeof ListTokensRequestSchema;
|
|
1745
|
+
output: typeof ListTokensResponseSchema;
|
|
1746
|
+
};
|
|
1747
|
+
/**
|
|
1748
|
+
* @generated from rpc blink.v1.BlinkApi.GetTokenInfo
|
|
1749
|
+
*/
|
|
1750
|
+
getTokenInfo: {
|
|
1751
|
+
methodKind: "unary";
|
|
1752
|
+
input: typeof TokenInfoRequestSchema;
|
|
1753
|
+
output: typeof TokenInfoSchema;
|
|
1754
|
+
};
|
|
1755
|
+
/**
|
|
1756
|
+
* @generated from rpc blink.v1.BlinkApi.GetOrder
|
|
1757
|
+
*/
|
|
1758
|
+
getOrder: {
|
|
1759
|
+
methodKind: "unary";
|
|
1760
|
+
input: typeof GetOrderRequestSchema;
|
|
1761
|
+
output: typeof OrderDetailSchema;
|
|
1762
|
+
};
|
|
1763
|
+
/**
|
|
1764
|
+
* @generated from rpc blink.v1.BlinkApi.Search
|
|
1765
|
+
*/
|
|
1766
|
+
search: {
|
|
1767
|
+
methodKind: "unary";
|
|
1768
|
+
input: typeof SearchRequestSchema;
|
|
1769
|
+
output: typeof SearchResponseSchema;
|
|
1770
|
+
};
|
|
1771
|
+
/**
|
|
1772
|
+
* @generated from rpc blink.v1.BlinkApi.SearchAddress
|
|
1773
|
+
*/
|
|
1774
|
+
searchAddress: {
|
|
1775
|
+
methodKind: "unary";
|
|
1776
|
+
input: typeof SearchAddressRequestSchema;
|
|
1777
|
+
output: typeof SearchAddressResponseSchema;
|
|
1778
|
+
};
|
|
1779
|
+
/**
|
|
1780
|
+
* @generated from rpc blink.v1.BlinkApi.ListOrders
|
|
1781
|
+
*/
|
|
1782
|
+
listOrders: {
|
|
1783
|
+
methodKind: "unary";
|
|
1784
|
+
input: typeof ListOrdersRequestSchema;
|
|
1785
|
+
output: typeof OrdersPageSchema;
|
|
1786
|
+
};
|
|
1787
|
+
/**
|
|
1788
|
+
* @generated from rpc blink.v1.BlinkApi.ListRecentOrders
|
|
1789
|
+
*/
|
|
1790
|
+
listRecentOrders: {
|
|
1791
|
+
methodKind: "unary";
|
|
1792
|
+
input: typeof ListRecentOrdersRequestSchema;
|
|
1793
|
+
output: typeof OrdersPageSchema;
|
|
1794
|
+
};
|
|
1795
|
+
/**
|
|
1796
|
+
* @generated from rpc blink.v1.BlinkApi.GetChains
|
|
1797
|
+
*/
|
|
1798
|
+
getChains: {
|
|
1799
|
+
methodKind: "unary";
|
|
1800
|
+
input: typeof GetChainsRequestSchema;
|
|
1801
|
+
output: typeof ChainsResponseSchema;
|
|
1802
|
+
};
|
|
1803
|
+
/**
|
|
1804
|
+
* @generated from rpc blink.v1.BlinkApi.SubmitGaslessOrder
|
|
1805
|
+
*/
|
|
1806
|
+
submitGaslessOrder: {
|
|
1807
|
+
methodKind: "unary";
|
|
1808
|
+
input: typeof SubmitGaslessOrderRequestSchema;
|
|
1809
|
+
output: typeof GaslessSubmissionSchema;
|
|
1810
|
+
};
|
|
1811
|
+
}>;
|