@uniswap/client-data-api 0.0.26 → 0.0.29
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.js +1 -1
- package/dist/data/v1/api_connect.js +1 -1
- package/dist/data/v1/api_pb.d.ts +4 -0
- package/dist/data/v1/api_pb.js +2 -1
- package/dist/data/v1/auction-AuctionService_connectquery.d.ts +14 -1
- package/dist/data/v1/auction-AuctionService_connectquery.js +15 -2
- package/dist/data/v1/auction_connect.d.ts +10 -1
- package/dist/data/v1/auction_connect.js +11 -2
- package/dist/data/v1/auction_pb.d.ts +77 -0
- package/dist/data/v1/auction_pb.js +118 -1
- package/dist/data/v1/plan_pb.d.ts +107 -0
- package/dist/data/v1/plan_pb.js +147 -0
- package/dist/data/v1/poolTypes_pb.js +1 -1
- package/dist/data/v1/reorged_block_pb.js +1 -1
- package/dist/data/v1/search-SearchService_connectquery.js +1 -1
- package/dist/data/v1/searchTypes_pb.js +1 -1
- package/dist/data/v1/search_connect.js +1 -1
- package/dist/data/v1/search_pb.js +1 -1
- package/dist/data/v1/types_pb.d.ts +142 -0
- package/dist/data/v1/types_pb.js +154 -1
- package/dist/data/v1/workerService-WorkerService_connectquery.js +1 -1
- package/dist/data/v1/workerService_connect.js +1 -1
- package/dist/data/v1/workerService_pb.js +1 -1
- package/package.json +1 -1
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -515,6 +515,10 @@ export declare class ListTransactionsRequest extends Message<ListTransactionsReq
|
|
|
515
515
|
* @generated from field: optional uint32 page_size = 5;
|
|
516
516
|
*/
|
|
517
517
|
pageSize?: number;
|
|
518
|
+
/**
|
|
519
|
+
* @generated from field: optional bool include_plans = 6;
|
|
520
|
+
*/
|
|
521
|
+
includePlans?: boolean;
|
|
518
522
|
constructor(data?: PartialMessage<ListTransactionsRequest>);
|
|
519
523
|
static readonly runtime: typeof proto3;
|
|
520
524
|
static readonly typeName = "data.v1.ListTransactionsRequest";
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v1/api.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -767,6 +767,7 @@ ListTransactionsRequest.fields = proto3.util.newFieldList(() => [
|
|
|
767
767
|
{ no: 3, name: "fiat_on_ramp_params", kind: "message", T: FiatOnRampParams, opt: true },
|
|
768
768
|
{ no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
769
769
|
{ no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
770
|
+
{ no: 6, name: "include_plans", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
770
771
|
]);
|
|
771
772
|
/**
|
|
772
773
|
* @generated from message data.v1.FiatOnRampParams
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
|
|
2
|
+
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v1.AuctionService.GetBidsByWallet
|
|
5
5
|
*/
|
|
@@ -39,3 +39,16 @@ export declare const getAuction: {
|
|
|
39
39
|
readonly typeName: "data.v1.AuctionService";
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* @generated from rpc data.v1.AuctionService.GetLatestCheckpoint
|
|
44
|
+
*/
|
|
45
|
+
export declare const getLatestCheckpoint: {
|
|
46
|
+
readonly localName: "getLatestCheckpoint";
|
|
47
|
+
readonly name: "GetLatestCheckpoint";
|
|
48
|
+
readonly kind: MethodKind.Unary;
|
|
49
|
+
readonly I: typeof GetLatestCheckpointRequest;
|
|
50
|
+
readonly O: typeof GetLatestCheckpointResponse;
|
|
51
|
+
readonly service: {
|
|
52
|
+
readonly typeName: "data.v1.AuctionService";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-query v1.4.
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
|
|
6
|
+
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v1.AuctionService.GetBidsByWallet
|
|
9
9
|
*/
|
|
@@ -43,3 +43,16 @@ export const getAuction = {
|
|
|
43
43
|
typeName: "data.v1.AuctionService"
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* @generated from rpc data.v1.AuctionService.GetLatestCheckpoint
|
|
48
|
+
*/
|
|
49
|
+
export const getLatestCheckpoint = {
|
|
50
|
+
localName: "getLatestCheckpoint",
|
|
51
|
+
name: "GetLatestCheckpoint",
|
|
52
|
+
kind: MethodKind.Unary,
|
|
53
|
+
I: GetLatestCheckpointRequest,
|
|
54
|
+
O: GetLatestCheckpointResponse,
|
|
55
|
+
service: {
|
|
56
|
+
typeName: "data.v1.AuctionService"
|
|
57
|
+
}
|
|
58
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
|
|
1
|
+
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v1.AuctionService
|
|
@@ -33,5 +33,14 @@ export declare const AuctionService: {
|
|
|
33
33
|
readonly O: typeof GetAuctionResponse;
|
|
34
34
|
readonly kind: MethodKind.Unary;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* @generated from rpc data.v1.AuctionService.GetLatestCheckpoint
|
|
38
|
+
*/
|
|
39
|
+
readonly getLatestCheckpoint: {
|
|
40
|
+
readonly name: "GetLatestCheckpoint";
|
|
41
|
+
readonly I: typeof GetLatestCheckpointRequest;
|
|
42
|
+
readonly O: typeof GetLatestCheckpointResponse;
|
|
43
|
+
readonly kind: MethodKind.Unary;
|
|
44
|
+
};
|
|
36
45
|
};
|
|
37
46
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
|
|
5
|
+
import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v1.AuctionService
|
|
@@ -37,5 +37,14 @@ export const AuctionService = {
|
|
|
37
37
|
O: GetAuctionResponse,
|
|
38
38
|
kind: MethodKind.Unary,
|
|
39
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* @generated from rpc data.v1.AuctionService.GetLatestCheckpoint
|
|
42
|
+
*/
|
|
43
|
+
getLatestCheckpoint: {
|
|
44
|
+
name: "GetLatestCheckpoint",
|
|
45
|
+
I: GetLatestCheckpointRequest,
|
|
46
|
+
O: GetLatestCheckpointResponse,
|
|
47
|
+
kind: MethodKind.Unary,
|
|
48
|
+
},
|
|
40
49
|
}
|
|
41
50
|
};
|
|
@@ -81,6 +81,10 @@ export declare class Bid extends Message<Bid> {
|
|
|
81
81
|
* @generated from field: string base_token_initial = 9;
|
|
82
82
|
*/
|
|
83
83
|
baseTokenInitial: string;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: string currency_spent = 10;
|
|
86
|
+
*/
|
|
87
|
+
currencySpent: string;
|
|
84
88
|
constructor(data?: PartialMessage<Bid>);
|
|
85
89
|
static readonly runtime: typeof proto3;
|
|
86
90
|
static readonly typeName = "data.v1.Bid";
|
|
@@ -337,3 +341,76 @@ export declare class GetAuctionResponse extends Message<GetAuctionResponse> {
|
|
|
337
341
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuctionResponse;
|
|
338
342
|
static equals(a: GetAuctionResponse | PlainMessage<GetAuctionResponse> | undefined, b: GetAuctionResponse | PlainMessage<GetAuctionResponse> | undefined): boolean;
|
|
339
343
|
}
|
|
344
|
+
/**
|
|
345
|
+
* Request to fetch the latest checkpoint for an auction.
|
|
346
|
+
*
|
|
347
|
+
* @generated from message data.v1.GetLatestCheckpointRequest
|
|
348
|
+
*/
|
|
349
|
+
export declare class GetLatestCheckpointRequest extends Message<GetLatestCheckpointRequest> {
|
|
350
|
+
/**
|
|
351
|
+
* @generated from field: int32 chain_id = 1;
|
|
352
|
+
*/
|
|
353
|
+
chainId: number;
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: string address = 2;
|
|
356
|
+
*/
|
|
357
|
+
address: string;
|
|
358
|
+
constructor(data?: PartialMessage<GetLatestCheckpointRequest>);
|
|
359
|
+
static readonly runtime: typeof proto3;
|
|
360
|
+
static readonly typeName = "data.v1.GetLatestCheckpointRequest";
|
|
361
|
+
static readonly fields: FieldList;
|
|
362
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLatestCheckpointRequest;
|
|
363
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLatestCheckpointRequest;
|
|
364
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestCheckpointRequest;
|
|
365
|
+
static equals(a: GetLatestCheckpointRequest | PlainMessage<GetLatestCheckpointRequest> | undefined, b: GetLatestCheckpointRequest | PlainMessage<GetLatestCheckpointRequest> | undefined): boolean;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* A checkpoint for an auction.
|
|
369
|
+
*
|
|
370
|
+
* @generated from message data.v1.Checkpoint
|
|
371
|
+
*/
|
|
372
|
+
export declare class Checkpoint extends Message<Checkpoint> {
|
|
373
|
+
/**
|
|
374
|
+
* @generated from field: string clearing_price = 1;
|
|
375
|
+
*/
|
|
376
|
+
clearingPrice: string;
|
|
377
|
+
/**
|
|
378
|
+
* @generated from field: string currency_raised_at_clearing_price_q96_x7 = 2;
|
|
379
|
+
*/
|
|
380
|
+
currencyRaisedAtClearingPriceQ96X7: string;
|
|
381
|
+
/**
|
|
382
|
+
* @generated from field: string cumulative_mps_per_price = 3;
|
|
383
|
+
*/
|
|
384
|
+
cumulativeMpsPerPrice: string;
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: int32 cumulative_mps = 4;
|
|
387
|
+
*/
|
|
388
|
+
cumulativeMps: number;
|
|
389
|
+
constructor(data?: PartialMessage<Checkpoint>);
|
|
390
|
+
static readonly runtime: typeof proto3;
|
|
391
|
+
static readonly typeName = "data.v1.Checkpoint";
|
|
392
|
+
static readonly fields: FieldList;
|
|
393
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Checkpoint;
|
|
394
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Checkpoint;
|
|
395
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Checkpoint;
|
|
396
|
+
static equals(a: Checkpoint | PlainMessage<Checkpoint> | undefined, b: Checkpoint | PlainMessage<Checkpoint> | undefined): boolean;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Response containing the latest checkpoint.
|
|
400
|
+
*
|
|
401
|
+
* @generated from message data.v1.GetLatestCheckpointResponse
|
|
402
|
+
*/
|
|
403
|
+
export declare class GetLatestCheckpointResponse extends Message<GetLatestCheckpointResponse> {
|
|
404
|
+
/**
|
|
405
|
+
* @generated from field: data.v1.Checkpoint checkpoint = 1;
|
|
406
|
+
*/
|
|
407
|
+
checkpoint?: Checkpoint;
|
|
408
|
+
constructor(data?: PartialMessage<GetLatestCheckpointResponse>);
|
|
409
|
+
static readonly runtime: typeof proto3;
|
|
410
|
+
static readonly typeName = "data.v1.GetLatestCheckpointResponse";
|
|
411
|
+
static readonly fields: FieldList;
|
|
412
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLatestCheckpointResponse;
|
|
413
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLatestCheckpointResponse;
|
|
414
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestCheckpointResponse;
|
|
415
|
+
static equals(a: GetLatestCheckpointResponse | PlainMessage<GetLatestCheckpointResponse> | undefined, b: GetLatestCheckpointResponse | PlainMessage<GetLatestCheckpointResponse> | undefined): boolean;
|
|
416
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -101,6 +101,10 @@ export class Bid extends Message {
|
|
|
101
101
|
* @generated from field: string base_token_initial = 9;
|
|
102
102
|
*/
|
|
103
103
|
this.baseTokenInitial = "";
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: string currency_spent = 10;
|
|
106
|
+
*/
|
|
107
|
+
this.currencySpent = "";
|
|
104
108
|
proto3.util.initPartial(data, this);
|
|
105
109
|
}
|
|
106
110
|
static fromBinary(bytes, options) {
|
|
@@ -128,6 +132,7 @@ Bid.fields = proto3.util.newFieldList(() => [
|
|
|
128
132
|
{ no: 7, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
129
133
|
{ no: 8, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
130
134
|
{ no: 9, name: "base_token_initial", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
135
|
+
{ no: 10, name: "currency_spent", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
131
136
|
]);
|
|
132
137
|
/**
|
|
133
138
|
* Response containing all bids for a wallet.
|
|
@@ -491,3 +496,115 @@ GetAuctionResponse.typeName = "data.v1.GetAuctionResponse";
|
|
|
491
496
|
GetAuctionResponse.fields = proto3.util.newFieldList(() => [
|
|
492
497
|
{ no: 1, name: "auctions", kind: "message", T: Auction, repeated: true },
|
|
493
498
|
]);
|
|
499
|
+
/**
|
|
500
|
+
* Request to fetch the latest checkpoint for an auction.
|
|
501
|
+
*
|
|
502
|
+
* @generated from message data.v1.GetLatestCheckpointRequest
|
|
503
|
+
*/
|
|
504
|
+
export class GetLatestCheckpointRequest extends Message {
|
|
505
|
+
constructor(data) {
|
|
506
|
+
super();
|
|
507
|
+
/**
|
|
508
|
+
* @generated from field: int32 chain_id = 1;
|
|
509
|
+
*/
|
|
510
|
+
this.chainId = 0;
|
|
511
|
+
/**
|
|
512
|
+
* @generated from field: string address = 2;
|
|
513
|
+
*/
|
|
514
|
+
this.address = "";
|
|
515
|
+
proto3.util.initPartial(data, this);
|
|
516
|
+
}
|
|
517
|
+
static fromBinary(bytes, options) {
|
|
518
|
+
return new GetLatestCheckpointRequest().fromBinary(bytes, options);
|
|
519
|
+
}
|
|
520
|
+
static fromJson(jsonValue, options) {
|
|
521
|
+
return new GetLatestCheckpointRequest().fromJson(jsonValue, options);
|
|
522
|
+
}
|
|
523
|
+
static fromJsonString(jsonString, options) {
|
|
524
|
+
return new GetLatestCheckpointRequest().fromJsonString(jsonString, options);
|
|
525
|
+
}
|
|
526
|
+
static equals(a, b) {
|
|
527
|
+
return proto3.util.equals(GetLatestCheckpointRequest, a, b);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
GetLatestCheckpointRequest.runtime = proto3;
|
|
531
|
+
GetLatestCheckpointRequest.typeName = "data.v1.GetLatestCheckpointRequest";
|
|
532
|
+
GetLatestCheckpointRequest.fields = proto3.util.newFieldList(() => [
|
|
533
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
534
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
535
|
+
]);
|
|
536
|
+
/**
|
|
537
|
+
* A checkpoint for an auction.
|
|
538
|
+
*
|
|
539
|
+
* @generated from message data.v1.Checkpoint
|
|
540
|
+
*/
|
|
541
|
+
export class Checkpoint extends Message {
|
|
542
|
+
constructor(data) {
|
|
543
|
+
super();
|
|
544
|
+
/**
|
|
545
|
+
* @generated from field: string clearing_price = 1;
|
|
546
|
+
*/
|
|
547
|
+
this.clearingPrice = "";
|
|
548
|
+
/**
|
|
549
|
+
* @generated from field: string currency_raised_at_clearing_price_q96_x7 = 2;
|
|
550
|
+
*/
|
|
551
|
+
this.currencyRaisedAtClearingPriceQ96X7 = "";
|
|
552
|
+
/**
|
|
553
|
+
* @generated from field: string cumulative_mps_per_price = 3;
|
|
554
|
+
*/
|
|
555
|
+
this.cumulativeMpsPerPrice = "";
|
|
556
|
+
/**
|
|
557
|
+
* @generated from field: int32 cumulative_mps = 4;
|
|
558
|
+
*/
|
|
559
|
+
this.cumulativeMps = 0;
|
|
560
|
+
proto3.util.initPartial(data, this);
|
|
561
|
+
}
|
|
562
|
+
static fromBinary(bytes, options) {
|
|
563
|
+
return new Checkpoint().fromBinary(bytes, options);
|
|
564
|
+
}
|
|
565
|
+
static fromJson(jsonValue, options) {
|
|
566
|
+
return new Checkpoint().fromJson(jsonValue, options);
|
|
567
|
+
}
|
|
568
|
+
static fromJsonString(jsonString, options) {
|
|
569
|
+
return new Checkpoint().fromJsonString(jsonString, options);
|
|
570
|
+
}
|
|
571
|
+
static equals(a, b) {
|
|
572
|
+
return proto3.util.equals(Checkpoint, a, b);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
Checkpoint.runtime = proto3;
|
|
576
|
+
Checkpoint.typeName = "data.v1.Checkpoint";
|
|
577
|
+
Checkpoint.fields = proto3.util.newFieldList(() => [
|
|
578
|
+
{ no: 1, name: "clearing_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
579
|
+
{ no: 2, name: "currency_raised_at_clearing_price_q96_x7", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
580
|
+
{ no: 3, name: "cumulative_mps_per_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
581
|
+
{ no: 4, name: "cumulative_mps", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
582
|
+
]);
|
|
583
|
+
/**
|
|
584
|
+
* Response containing the latest checkpoint.
|
|
585
|
+
*
|
|
586
|
+
* @generated from message data.v1.GetLatestCheckpointResponse
|
|
587
|
+
*/
|
|
588
|
+
export class GetLatestCheckpointResponse extends Message {
|
|
589
|
+
constructor(data) {
|
|
590
|
+
super();
|
|
591
|
+
proto3.util.initPartial(data, this);
|
|
592
|
+
}
|
|
593
|
+
static fromBinary(bytes, options) {
|
|
594
|
+
return new GetLatestCheckpointResponse().fromBinary(bytes, options);
|
|
595
|
+
}
|
|
596
|
+
static fromJson(jsonValue, options) {
|
|
597
|
+
return new GetLatestCheckpointResponse().fromJson(jsonValue, options);
|
|
598
|
+
}
|
|
599
|
+
static fromJsonString(jsonString, options) {
|
|
600
|
+
return new GetLatestCheckpointResponse().fromJsonString(jsonString, options);
|
|
601
|
+
}
|
|
602
|
+
static equals(a, b) {
|
|
603
|
+
return proto3.util.equals(GetLatestCheckpointResponse, a, b);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
GetLatestCheckpointResponse.runtime = proto3;
|
|
607
|
+
GetLatestCheckpointResponse.typeName = "data.v1.GetLatestCheckpointResponse";
|
|
608
|
+
GetLatestCheckpointResponse.fields = proto3.util.newFieldList(() => [
|
|
609
|
+
{ no: 1, name: "checkpoint", kind: "message", T: Checkpoint },
|
|
610
|
+
]);
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated from enum data.v1.SwapType
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SwapType {
|
|
5
|
+
/**
|
|
6
|
+
* @generated from enum value: SWAP_TYPE_UNKNOWN = 0;
|
|
7
|
+
*/
|
|
8
|
+
UNKNOWN = 0,
|
|
9
|
+
/**
|
|
10
|
+
* @generated from enum value: SWAP_TYPE_CLASSIC = 1;
|
|
11
|
+
*/
|
|
12
|
+
CLASSIC = 1,
|
|
13
|
+
/**
|
|
14
|
+
* @generated from enum value: SWAP_TYPE_DUTCH_LIMIT = 2;
|
|
15
|
+
*/
|
|
16
|
+
DUTCH_LIMIT = 2,
|
|
17
|
+
/**
|
|
18
|
+
* @generated from enum value: SWAP_TYPE_DUTCH_V2 = 3;
|
|
19
|
+
*/
|
|
20
|
+
DUTCH_V2 = 3,
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: SWAP_TYPE_LIMIT_ORDER = 4;
|
|
23
|
+
*/
|
|
24
|
+
LIMIT_ORDER = 4,
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum value: SWAP_TYPE_WRAP = 5;
|
|
27
|
+
*/
|
|
28
|
+
WRAP = 5,
|
|
29
|
+
/**
|
|
30
|
+
* @generated from enum value: SWAP_TYPE_UNWRAP = 6;
|
|
31
|
+
*/
|
|
32
|
+
UNWRAP = 6,
|
|
33
|
+
/**
|
|
34
|
+
* @generated from enum value: SWAP_TYPE_BRIDGE = 7;
|
|
35
|
+
*/
|
|
36
|
+
BRIDGE = 7,
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: SWAP_TYPE_PRIORITY = 8;
|
|
39
|
+
*/
|
|
40
|
+
PRIORITY = 8,
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: SWAP_TYPE_DUTCH_V3 = 9;
|
|
43
|
+
*/
|
|
44
|
+
DUTCH_V3 = 9,
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: SWAP_TYPE_CHAINED = 10;
|
|
47
|
+
*/
|
|
48
|
+
CHAINED = 10,
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: SWAP_TYPE_QUICKROUTE = 11;
|
|
51
|
+
*/
|
|
52
|
+
QUICKROUTE = 11
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @generated from enum data.v1.PlanStepStatus
|
|
56
|
+
*/
|
|
57
|
+
export declare enum PlanStepStatus {
|
|
58
|
+
/**
|
|
59
|
+
* @generated from enum value: PLAN_STEP_STATUS_UNKNOWN = 0;
|
|
60
|
+
*/
|
|
61
|
+
UNKNOWN = 0,
|
|
62
|
+
/**
|
|
63
|
+
* @generated from enum value: PLAN_STEP_STATUS_NOT_READY = 1;
|
|
64
|
+
*/
|
|
65
|
+
NOT_READY = 1,
|
|
66
|
+
/**
|
|
67
|
+
* @generated from enum value: PLAN_STEP_STATUS_AWAITING_ACTION = 2;
|
|
68
|
+
*/
|
|
69
|
+
AWAITING_ACTION = 2,
|
|
70
|
+
/**
|
|
71
|
+
* @generated from enum value: PLAN_STEP_STATUS_IN_PROGRESS = 3;
|
|
72
|
+
*/
|
|
73
|
+
IN_PROGRESS = 3,
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum value: PLAN_STEP_STATUS_COMPLETE = 4;
|
|
76
|
+
*/
|
|
77
|
+
COMPLETE = 4,
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: PLAN_STEP_STATUS_ERROR = 5;
|
|
80
|
+
*/
|
|
81
|
+
ERROR = 5
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @generated from enum data.v1.PlanStatus
|
|
85
|
+
*/
|
|
86
|
+
export declare enum PlanStatus {
|
|
87
|
+
/**
|
|
88
|
+
* @generated from enum value: PLAN_STATUS_UNKNOWN = 0;
|
|
89
|
+
*/
|
|
90
|
+
UNKNOWN = 0,
|
|
91
|
+
/**
|
|
92
|
+
* @generated from enum value: PLAN_STATUS_ACTIVE = 1;
|
|
93
|
+
*/
|
|
94
|
+
ACTIVE = 1,
|
|
95
|
+
/**
|
|
96
|
+
* @generated from enum value: PLAN_STATUS_IN_PROGRESS = 2;
|
|
97
|
+
*/
|
|
98
|
+
IN_PROGRESS = 2,
|
|
99
|
+
/**
|
|
100
|
+
* @generated from enum value: PLAN_STATUS_COMPLETED = 3;
|
|
101
|
+
*/
|
|
102
|
+
COMPLETED = 3,
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum value: PLAN_STATUS_FAILED = 4;
|
|
105
|
+
*/
|
|
106
|
+
FAILED = 4
|
|
107
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v1/plan.proto (package data.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from enum data.v1.SwapType
|
|
8
|
+
*/
|
|
9
|
+
export var SwapType;
|
|
10
|
+
(function (SwapType) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: SWAP_TYPE_UNKNOWN = 0;
|
|
13
|
+
*/
|
|
14
|
+
SwapType[SwapType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: SWAP_TYPE_CLASSIC = 1;
|
|
17
|
+
*/
|
|
18
|
+
SwapType[SwapType["CLASSIC"] = 1] = "CLASSIC";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: SWAP_TYPE_DUTCH_LIMIT = 2;
|
|
21
|
+
*/
|
|
22
|
+
SwapType[SwapType["DUTCH_LIMIT"] = 2] = "DUTCH_LIMIT";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: SWAP_TYPE_DUTCH_V2 = 3;
|
|
25
|
+
*/
|
|
26
|
+
SwapType[SwapType["DUTCH_V2"] = 3] = "DUTCH_V2";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: SWAP_TYPE_LIMIT_ORDER = 4;
|
|
29
|
+
*/
|
|
30
|
+
SwapType[SwapType["LIMIT_ORDER"] = 4] = "LIMIT_ORDER";
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: SWAP_TYPE_WRAP = 5;
|
|
33
|
+
*/
|
|
34
|
+
SwapType[SwapType["WRAP"] = 5] = "WRAP";
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum value: SWAP_TYPE_UNWRAP = 6;
|
|
37
|
+
*/
|
|
38
|
+
SwapType[SwapType["UNWRAP"] = 6] = "UNWRAP";
|
|
39
|
+
/**
|
|
40
|
+
* @generated from enum value: SWAP_TYPE_BRIDGE = 7;
|
|
41
|
+
*/
|
|
42
|
+
SwapType[SwapType["BRIDGE"] = 7] = "BRIDGE";
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: SWAP_TYPE_PRIORITY = 8;
|
|
45
|
+
*/
|
|
46
|
+
SwapType[SwapType["PRIORITY"] = 8] = "PRIORITY";
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum value: SWAP_TYPE_DUTCH_V3 = 9;
|
|
49
|
+
*/
|
|
50
|
+
SwapType[SwapType["DUTCH_V3"] = 9] = "DUTCH_V3";
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: SWAP_TYPE_CHAINED = 10;
|
|
53
|
+
*/
|
|
54
|
+
SwapType[SwapType["CHAINED"] = 10] = "CHAINED";
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: SWAP_TYPE_QUICKROUTE = 11;
|
|
57
|
+
*/
|
|
58
|
+
SwapType[SwapType["QUICKROUTE"] = 11] = "QUICKROUTE";
|
|
59
|
+
})(SwapType || (SwapType = {}));
|
|
60
|
+
// Retrieve enum metadata with: proto3.getEnumType(SwapType)
|
|
61
|
+
proto3.util.setEnumType(SwapType, "data.v1.SwapType", [
|
|
62
|
+
{ no: 0, name: "SWAP_TYPE_UNKNOWN" },
|
|
63
|
+
{ no: 1, name: "SWAP_TYPE_CLASSIC" },
|
|
64
|
+
{ no: 2, name: "SWAP_TYPE_DUTCH_LIMIT" },
|
|
65
|
+
{ no: 3, name: "SWAP_TYPE_DUTCH_V2" },
|
|
66
|
+
{ no: 4, name: "SWAP_TYPE_LIMIT_ORDER" },
|
|
67
|
+
{ no: 5, name: "SWAP_TYPE_WRAP" },
|
|
68
|
+
{ no: 6, name: "SWAP_TYPE_UNWRAP" },
|
|
69
|
+
{ no: 7, name: "SWAP_TYPE_BRIDGE" },
|
|
70
|
+
{ no: 8, name: "SWAP_TYPE_PRIORITY" },
|
|
71
|
+
{ no: 9, name: "SWAP_TYPE_DUTCH_V3" },
|
|
72
|
+
{ no: 10, name: "SWAP_TYPE_CHAINED" },
|
|
73
|
+
{ no: 11, name: "SWAP_TYPE_QUICKROUTE" },
|
|
74
|
+
]);
|
|
75
|
+
/**
|
|
76
|
+
* @generated from enum data.v1.PlanStepStatus
|
|
77
|
+
*/
|
|
78
|
+
export var PlanStepStatus;
|
|
79
|
+
(function (PlanStepStatus) {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from enum value: PLAN_STEP_STATUS_UNKNOWN = 0;
|
|
82
|
+
*/
|
|
83
|
+
PlanStepStatus[PlanStepStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
84
|
+
/**
|
|
85
|
+
* @generated from enum value: PLAN_STEP_STATUS_NOT_READY = 1;
|
|
86
|
+
*/
|
|
87
|
+
PlanStepStatus[PlanStepStatus["NOT_READY"] = 1] = "NOT_READY";
|
|
88
|
+
/**
|
|
89
|
+
* @generated from enum value: PLAN_STEP_STATUS_AWAITING_ACTION = 2;
|
|
90
|
+
*/
|
|
91
|
+
PlanStepStatus[PlanStepStatus["AWAITING_ACTION"] = 2] = "AWAITING_ACTION";
|
|
92
|
+
/**
|
|
93
|
+
* @generated from enum value: PLAN_STEP_STATUS_IN_PROGRESS = 3;
|
|
94
|
+
*/
|
|
95
|
+
PlanStepStatus[PlanStepStatus["IN_PROGRESS"] = 3] = "IN_PROGRESS";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from enum value: PLAN_STEP_STATUS_COMPLETE = 4;
|
|
98
|
+
*/
|
|
99
|
+
PlanStepStatus[PlanStepStatus["COMPLETE"] = 4] = "COMPLETE";
|
|
100
|
+
/**
|
|
101
|
+
* @generated from enum value: PLAN_STEP_STATUS_ERROR = 5;
|
|
102
|
+
*/
|
|
103
|
+
PlanStepStatus[PlanStepStatus["ERROR"] = 5] = "ERROR";
|
|
104
|
+
})(PlanStepStatus || (PlanStepStatus = {}));
|
|
105
|
+
// Retrieve enum metadata with: proto3.getEnumType(PlanStepStatus)
|
|
106
|
+
proto3.util.setEnumType(PlanStepStatus, "data.v1.PlanStepStatus", [
|
|
107
|
+
{ no: 0, name: "PLAN_STEP_STATUS_UNKNOWN" },
|
|
108
|
+
{ no: 1, name: "PLAN_STEP_STATUS_NOT_READY" },
|
|
109
|
+
{ no: 2, name: "PLAN_STEP_STATUS_AWAITING_ACTION" },
|
|
110
|
+
{ no: 3, name: "PLAN_STEP_STATUS_IN_PROGRESS" },
|
|
111
|
+
{ no: 4, name: "PLAN_STEP_STATUS_COMPLETE" },
|
|
112
|
+
{ no: 5, name: "PLAN_STEP_STATUS_ERROR" },
|
|
113
|
+
]);
|
|
114
|
+
/**
|
|
115
|
+
* @generated from enum data.v1.PlanStatus
|
|
116
|
+
*/
|
|
117
|
+
export var PlanStatus;
|
|
118
|
+
(function (PlanStatus) {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from enum value: PLAN_STATUS_UNKNOWN = 0;
|
|
121
|
+
*/
|
|
122
|
+
PlanStatus[PlanStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
123
|
+
/**
|
|
124
|
+
* @generated from enum value: PLAN_STATUS_ACTIVE = 1;
|
|
125
|
+
*/
|
|
126
|
+
PlanStatus[PlanStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
127
|
+
/**
|
|
128
|
+
* @generated from enum value: PLAN_STATUS_IN_PROGRESS = 2;
|
|
129
|
+
*/
|
|
130
|
+
PlanStatus[PlanStatus["IN_PROGRESS"] = 2] = "IN_PROGRESS";
|
|
131
|
+
/**
|
|
132
|
+
* @generated from enum value: PLAN_STATUS_COMPLETED = 3;
|
|
133
|
+
*/
|
|
134
|
+
PlanStatus[PlanStatus["COMPLETED"] = 3] = "COMPLETED";
|
|
135
|
+
/**
|
|
136
|
+
* @generated from enum value: PLAN_STATUS_FAILED = 4;
|
|
137
|
+
*/
|
|
138
|
+
PlanStatus[PlanStatus["FAILED"] = 4] = "FAILED";
|
|
139
|
+
})(PlanStatus || (PlanStatus = {}));
|
|
140
|
+
// Retrieve enum metadata with: proto3.getEnumType(PlanStatus)
|
|
141
|
+
proto3.util.setEnumType(PlanStatus, "data.v1.PlanStatus", [
|
|
142
|
+
{ no: 0, name: "PLAN_STATUS_UNKNOWN" },
|
|
143
|
+
{ no: 1, name: "PLAN_STATUS_ACTIVE" },
|
|
144
|
+
{ no: 2, name: "PLAN_STATUS_IN_PROGRESS" },
|
|
145
|
+
{ no: 3, name: "PLAN_STATUS_COMPLETED" },
|
|
146
|
+
{ no: 4, name: "PLAN_STATUS_FAILED" },
|
|
147
|
+
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-query v1.4.
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v1/search.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { PlanStatus, PlanStepStatus, SwapType } from "./plan_pb.js";
|
|
3
4
|
import { ProtocolVersion } from "./poolTypes_pb.js";
|
|
4
5
|
/**
|
|
5
6
|
* @generated from enum data.v1.TokenType
|
|
@@ -792,6 +793,12 @@ export declare class Transaction extends Message<Transaction> {
|
|
|
792
793
|
*/
|
|
793
794
|
value: FiatOnRampTransaction;
|
|
794
795
|
case: "fiatOnRamp";
|
|
796
|
+
} | {
|
|
797
|
+
/**
|
|
798
|
+
* @generated from field: data.v1.PlanTransaction plan = 4;
|
|
799
|
+
*/
|
|
800
|
+
value: PlanTransaction;
|
|
801
|
+
case: "plan";
|
|
795
802
|
} | {
|
|
796
803
|
case: undefined;
|
|
797
804
|
value?: undefined;
|
|
@@ -1150,6 +1157,141 @@ export declare class OnRampServiceProvider extends Message<OnRampServiceProvider
|
|
|
1150
1157
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OnRampServiceProvider;
|
|
1151
1158
|
static equals(a: OnRampServiceProvider | PlainMessage<OnRampServiceProvider> | undefined, b: OnRampServiceProvider | PlainMessage<OnRampServiceProvider> | undefined): boolean;
|
|
1152
1159
|
}
|
|
1160
|
+
/**
|
|
1161
|
+
* @generated from message data.v1.PlanTransaction
|
|
1162
|
+
*/
|
|
1163
|
+
export declare class PlanTransaction extends Message<PlanTransaction> {
|
|
1164
|
+
/**
|
|
1165
|
+
* @generated from field: string plan_id = 1;
|
|
1166
|
+
*/
|
|
1167
|
+
planId: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* @generated from field: uint64 timestamp_millis = 2;
|
|
1170
|
+
*/
|
|
1171
|
+
timestampMillis: bigint;
|
|
1172
|
+
/**
|
|
1173
|
+
* @generated from field: data.v1.PlanStatus status = 3;
|
|
1174
|
+
*/
|
|
1175
|
+
status: PlanStatus;
|
|
1176
|
+
/**
|
|
1177
|
+
* @generated from field: repeated data.v1.PlanActivity activities = 4;
|
|
1178
|
+
*/
|
|
1179
|
+
activities: PlanActivity[];
|
|
1180
|
+
/**
|
|
1181
|
+
* @generated from field: repeated data.v1.TokenAmount assets_in = 5;
|
|
1182
|
+
*/
|
|
1183
|
+
assetsIn: TokenAmount[];
|
|
1184
|
+
/**
|
|
1185
|
+
* @generated from field: repeated data.v1.TokenAmount assets_out = 6;
|
|
1186
|
+
*/
|
|
1187
|
+
assetsOut: TokenAmount[];
|
|
1188
|
+
/**
|
|
1189
|
+
* @generated from field: uint64 created_at_millis = 7;
|
|
1190
|
+
*/
|
|
1191
|
+
createdAtMillis: bigint;
|
|
1192
|
+
/**
|
|
1193
|
+
* @generated from field: optional uint64 updated_at_millis = 8;
|
|
1194
|
+
*/
|
|
1195
|
+
updatedAtMillis?: bigint;
|
|
1196
|
+
/**
|
|
1197
|
+
* @generated from field: optional uint64 completed_at_millis = 9;
|
|
1198
|
+
*/
|
|
1199
|
+
completedAtMillis?: bigint;
|
|
1200
|
+
/**
|
|
1201
|
+
* @generated from field: optional uint64 duration_millis = 10;
|
|
1202
|
+
*/
|
|
1203
|
+
durationMillis?: bigint;
|
|
1204
|
+
/**
|
|
1205
|
+
* @generated from field: string swapper = 11;
|
|
1206
|
+
*/
|
|
1207
|
+
swapper: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* @generated from field: string recipient = 12;
|
|
1210
|
+
*/
|
|
1211
|
+
recipient: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* @generated from field: repeated string transaction_hashes = 13;
|
|
1214
|
+
*/
|
|
1215
|
+
transactionHashes: string[];
|
|
1216
|
+
constructor(data?: PartialMessage<PlanTransaction>);
|
|
1217
|
+
static readonly runtime: typeof proto3;
|
|
1218
|
+
static readonly typeName = "data.v1.PlanTransaction";
|
|
1219
|
+
static readonly fields: FieldList;
|
|
1220
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanTransaction;
|
|
1221
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanTransaction;
|
|
1222
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanTransaction;
|
|
1223
|
+
static equals(a: PlanTransaction | PlainMessage<PlanTransaction> | undefined, b: PlanTransaction | PlainMessage<PlanTransaction> | undefined): boolean;
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
* @generated from message data.v1.PlanActivity
|
|
1227
|
+
*/
|
|
1228
|
+
export declare class PlanActivity extends Message<PlanActivity> {
|
|
1229
|
+
/**
|
|
1230
|
+
* @generated from field: uint32 step_index = 1;
|
|
1231
|
+
*/
|
|
1232
|
+
stepIndex: number;
|
|
1233
|
+
/**
|
|
1234
|
+
* @generated from field: data.v1.SwapType swap_type = 2;
|
|
1235
|
+
*/
|
|
1236
|
+
swapType: SwapType;
|
|
1237
|
+
/**
|
|
1238
|
+
* @generated from field: optional data.v1.Token token_in = 3;
|
|
1239
|
+
*/
|
|
1240
|
+
tokenIn?: Token;
|
|
1241
|
+
/**
|
|
1242
|
+
* @generated from field: optional data.v1.Amount token_in_amount = 4;
|
|
1243
|
+
*/
|
|
1244
|
+
tokenInAmount?: Amount;
|
|
1245
|
+
/**
|
|
1246
|
+
* @generated from field: optional data.v1.Token token_out = 5;
|
|
1247
|
+
*/
|
|
1248
|
+
tokenOut?: Token;
|
|
1249
|
+
/**
|
|
1250
|
+
* @generated from field: optional data.v1.Amount token_out_amount = 6;
|
|
1251
|
+
*/
|
|
1252
|
+
tokenOutAmount?: Amount;
|
|
1253
|
+
/**
|
|
1254
|
+
* @generated from field: data.v1.PlanStepStatus status = 7;
|
|
1255
|
+
*/
|
|
1256
|
+
status: PlanStepStatus;
|
|
1257
|
+
/**
|
|
1258
|
+
* @generated from field: optional string transaction_hash = 8;
|
|
1259
|
+
*/
|
|
1260
|
+
transactionHash?: string;
|
|
1261
|
+
/**
|
|
1262
|
+
* @generated from field: optional uint32 chain_id = 9;
|
|
1263
|
+
*/
|
|
1264
|
+
chainId?: number;
|
|
1265
|
+
constructor(data?: PartialMessage<PlanActivity>);
|
|
1266
|
+
static readonly runtime: typeof proto3;
|
|
1267
|
+
static readonly typeName = "data.v1.PlanActivity";
|
|
1268
|
+
static readonly fields: FieldList;
|
|
1269
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanActivity;
|
|
1270
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanActivity;
|
|
1271
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanActivity;
|
|
1272
|
+
static equals(a: PlanActivity | PlainMessage<PlanActivity> | undefined, b: PlanActivity | PlainMessage<PlanActivity> | undefined): boolean;
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* @generated from message data.v1.TokenAmount
|
|
1276
|
+
*/
|
|
1277
|
+
export declare class TokenAmount extends Message<TokenAmount> {
|
|
1278
|
+
/**
|
|
1279
|
+
* @generated from field: data.v1.Token token = 1;
|
|
1280
|
+
*/
|
|
1281
|
+
token?: Token;
|
|
1282
|
+
/**
|
|
1283
|
+
* @generated from field: data.v1.Amount amount = 2;
|
|
1284
|
+
*/
|
|
1285
|
+
amount?: Amount;
|
|
1286
|
+
constructor(data?: PartialMessage<TokenAmount>);
|
|
1287
|
+
static readonly runtime: typeof proto3;
|
|
1288
|
+
static readonly typeName = "data.v1.TokenAmount";
|
|
1289
|
+
static readonly fields: FieldList;
|
|
1290
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenAmount;
|
|
1291
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenAmount;
|
|
1292
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenAmount;
|
|
1293
|
+
static equals(a: TokenAmount | PlainMessage<TokenAmount> | undefined, b: TokenAmount | PlainMessage<TokenAmount> | undefined): boolean;
|
|
1294
|
+
}
|
|
1153
1295
|
/**
|
|
1154
1296
|
* @generated from message data.v1.TransactionFee
|
|
1155
1297
|
*/
|
package/dist/data/v1/types_pb.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v1/types.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
|
+
import { PlanStatus, PlanStepStatus, SwapType } from "./plan_pb.js";
|
|
6
7
|
import { ProtocolVersion } from "./poolTypes_pb.js";
|
|
7
8
|
/**
|
|
8
9
|
* @generated from enum data.v1.TokenType
|
|
@@ -1098,6 +1099,7 @@ Transaction.fields = proto3.util.newFieldList(() => [
|
|
|
1098
1099
|
{ no: 1, name: "on_chain", kind: "message", T: OnChainTransaction, oneof: "transaction" },
|
|
1099
1100
|
{ no: 2, name: "uniswap_x", kind: "message", T: UniswapXTransaction, oneof: "transaction" },
|
|
1100
1101
|
{ no: 3, name: "fiat_on_ramp", kind: "message", T: FiatOnRampTransaction, oneof: "transaction" },
|
|
1102
|
+
{ no: 4, name: "plan", kind: "message", T: PlanTransaction, oneof: "transaction" },
|
|
1101
1103
|
]);
|
|
1102
1104
|
/**
|
|
1103
1105
|
* @generated from message data.v1.OnChainTransaction
|
|
@@ -1504,6 +1506,157 @@ OnRampServiceProvider.fields = proto3.util.newFieldList(() => [
|
|
|
1504
1506
|
{ no: 5, name: "logo_dark_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1505
1507
|
{ no: 6, name: "support_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1506
1508
|
]);
|
|
1509
|
+
/**
|
|
1510
|
+
* @generated from message data.v1.PlanTransaction
|
|
1511
|
+
*/
|
|
1512
|
+
export class PlanTransaction extends Message {
|
|
1513
|
+
constructor(data) {
|
|
1514
|
+
super();
|
|
1515
|
+
/**
|
|
1516
|
+
* @generated from field: string plan_id = 1;
|
|
1517
|
+
*/
|
|
1518
|
+
this.planId = "";
|
|
1519
|
+
/**
|
|
1520
|
+
* @generated from field: uint64 timestamp_millis = 2;
|
|
1521
|
+
*/
|
|
1522
|
+
this.timestampMillis = protoInt64.zero;
|
|
1523
|
+
/**
|
|
1524
|
+
* @generated from field: data.v1.PlanStatus status = 3;
|
|
1525
|
+
*/
|
|
1526
|
+
this.status = PlanStatus.UNKNOWN;
|
|
1527
|
+
/**
|
|
1528
|
+
* @generated from field: repeated data.v1.PlanActivity activities = 4;
|
|
1529
|
+
*/
|
|
1530
|
+
this.activities = [];
|
|
1531
|
+
/**
|
|
1532
|
+
* @generated from field: repeated data.v1.TokenAmount assets_in = 5;
|
|
1533
|
+
*/
|
|
1534
|
+
this.assetsIn = [];
|
|
1535
|
+
/**
|
|
1536
|
+
* @generated from field: repeated data.v1.TokenAmount assets_out = 6;
|
|
1537
|
+
*/
|
|
1538
|
+
this.assetsOut = [];
|
|
1539
|
+
/**
|
|
1540
|
+
* @generated from field: uint64 created_at_millis = 7;
|
|
1541
|
+
*/
|
|
1542
|
+
this.createdAtMillis = protoInt64.zero;
|
|
1543
|
+
/**
|
|
1544
|
+
* @generated from field: string swapper = 11;
|
|
1545
|
+
*/
|
|
1546
|
+
this.swapper = "";
|
|
1547
|
+
/**
|
|
1548
|
+
* @generated from field: string recipient = 12;
|
|
1549
|
+
*/
|
|
1550
|
+
this.recipient = "";
|
|
1551
|
+
/**
|
|
1552
|
+
* @generated from field: repeated string transaction_hashes = 13;
|
|
1553
|
+
*/
|
|
1554
|
+
this.transactionHashes = [];
|
|
1555
|
+
proto3.util.initPartial(data, this);
|
|
1556
|
+
}
|
|
1557
|
+
static fromBinary(bytes, options) {
|
|
1558
|
+
return new PlanTransaction().fromBinary(bytes, options);
|
|
1559
|
+
}
|
|
1560
|
+
static fromJson(jsonValue, options) {
|
|
1561
|
+
return new PlanTransaction().fromJson(jsonValue, options);
|
|
1562
|
+
}
|
|
1563
|
+
static fromJsonString(jsonString, options) {
|
|
1564
|
+
return new PlanTransaction().fromJsonString(jsonString, options);
|
|
1565
|
+
}
|
|
1566
|
+
static equals(a, b) {
|
|
1567
|
+
return proto3.util.equals(PlanTransaction, a, b);
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
PlanTransaction.runtime = proto3;
|
|
1571
|
+
PlanTransaction.typeName = "data.v1.PlanTransaction";
|
|
1572
|
+
PlanTransaction.fields = proto3.util.newFieldList(() => [
|
|
1573
|
+
{ no: 1, name: "plan_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1574
|
+
{ no: 2, name: "timestamp_millis", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1575
|
+
{ no: 3, name: "status", kind: "enum", T: proto3.getEnumType(PlanStatus) },
|
|
1576
|
+
{ no: 4, name: "activities", kind: "message", T: PlanActivity, repeated: true },
|
|
1577
|
+
{ no: 5, name: "assets_in", kind: "message", T: TokenAmount, repeated: true },
|
|
1578
|
+
{ no: 6, name: "assets_out", kind: "message", T: TokenAmount, repeated: true },
|
|
1579
|
+
{ no: 7, name: "created_at_millis", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1580
|
+
{ no: 8, name: "updated_at_millis", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1581
|
+
{ no: 9, name: "completed_at_millis", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1582
|
+
{ no: 10, name: "duration_millis", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
1583
|
+
{ no: 11, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1584
|
+
{ no: 12, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1585
|
+
{ no: 13, name: "transaction_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1586
|
+
]);
|
|
1587
|
+
/**
|
|
1588
|
+
* @generated from message data.v1.PlanActivity
|
|
1589
|
+
*/
|
|
1590
|
+
export class PlanActivity extends Message {
|
|
1591
|
+
constructor(data) {
|
|
1592
|
+
super();
|
|
1593
|
+
/**
|
|
1594
|
+
* @generated from field: uint32 step_index = 1;
|
|
1595
|
+
*/
|
|
1596
|
+
this.stepIndex = 0;
|
|
1597
|
+
/**
|
|
1598
|
+
* @generated from field: data.v1.SwapType swap_type = 2;
|
|
1599
|
+
*/
|
|
1600
|
+
this.swapType = SwapType.UNKNOWN;
|
|
1601
|
+
/**
|
|
1602
|
+
* @generated from field: data.v1.PlanStepStatus status = 7;
|
|
1603
|
+
*/
|
|
1604
|
+
this.status = PlanStepStatus.UNKNOWN;
|
|
1605
|
+
proto3.util.initPartial(data, this);
|
|
1606
|
+
}
|
|
1607
|
+
static fromBinary(bytes, options) {
|
|
1608
|
+
return new PlanActivity().fromBinary(bytes, options);
|
|
1609
|
+
}
|
|
1610
|
+
static fromJson(jsonValue, options) {
|
|
1611
|
+
return new PlanActivity().fromJson(jsonValue, options);
|
|
1612
|
+
}
|
|
1613
|
+
static fromJsonString(jsonString, options) {
|
|
1614
|
+
return new PlanActivity().fromJsonString(jsonString, options);
|
|
1615
|
+
}
|
|
1616
|
+
static equals(a, b) {
|
|
1617
|
+
return proto3.util.equals(PlanActivity, a, b);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
PlanActivity.runtime = proto3;
|
|
1621
|
+
PlanActivity.typeName = "data.v1.PlanActivity";
|
|
1622
|
+
PlanActivity.fields = proto3.util.newFieldList(() => [
|
|
1623
|
+
{ no: 1, name: "step_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1624
|
+
{ no: 2, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) },
|
|
1625
|
+
{ no: 3, name: "token_in", kind: "message", T: Token, opt: true },
|
|
1626
|
+
{ no: 4, name: "token_in_amount", kind: "message", T: Amount, opt: true },
|
|
1627
|
+
{ no: 5, name: "token_out", kind: "message", T: Token, opt: true },
|
|
1628
|
+
{ no: 6, name: "token_out_amount", kind: "message", T: Amount, opt: true },
|
|
1629
|
+
{ no: 7, name: "status", kind: "enum", T: proto3.getEnumType(PlanStepStatus) },
|
|
1630
|
+
{ no: 8, name: "transaction_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1631
|
+
{ no: 9, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1632
|
+
]);
|
|
1633
|
+
/**
|
|
1634
|
+
* @generated from message data.v1.TokenAmount
|
|
1635
|
+
*/
|
|
1636
|
+
export class TokenAmount extends Message {
|
|
1637
|
+
constructor(data) {
|
|
1638
|
+
super();
|
|
1639
|
+
proto3.util.initPartial(data, this);
|
|
1640
|
+
}
|
|
1641
|
+
static fromBinary(bytes, options) {
|
|
1642
|
+
return new TokenAmount().fromBinary(bytes, options);
|
|
1643
|
+
}
|
|
1644
|
+
static fromJson(jsonValue, options) {
|
|
1645
|
+
return new TokenAmount().fromJson(jsonValue, options);
|
|
1646
|
+
}
|
|
1647
|
+
static fromJsonString(jsonString, options) {
|
|
1648
|
+
return new TokenAmount().fromJsonString(jsonString, options);
|
|
1649
|
+
}
|
|
1650
|
+
static equals(a, b) {
|
|
1651
|
+
return proto3.util.equals(TokenAmount, a, b);
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
TokenAmount.runtime = proto3;
|
|
1655
|
+
TokenAmount.typeName = "data.v1.TokenAmount";
|
|
1656
|
+
TokenAmount.fields = proto3.util.newFieldList(() => [
|
|
1657
|
+
{ no: 1, name: "token", kind: "message", T: Token },
|
|
1658
|
+
{ no: 2, name: "amount", kind: "message", T: Amount },
|
|
1659
|
+
]);
|
|
1507
1660
|
/**
|
|
1508
1661
|
* @generated from message data.v1.TransactionFee
|
|
1509
1662
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-query v1.4.
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|