@uniswap/client-data-api 0.0.26 → 0.0.28
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_pb.d.ts +4 -0
- package/dist/data/v1/api_pb.js +1 -0
- package/dist/data/v1/auction_pb.d.ts +4 -0
- package/dist/data/v1/auction_pb.js +5 -0
- package/dist/data/v1/plan_pb.d.ts +107 -0
- package/dist/data/v1/plan_pb.js +147 -0
- package/dist/data/v1/types_pb.d.ts +142 -0
- package/dist/data/v1/types_pb.js +153 -0
- 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
|
@@ -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
|
|
@@ -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";
|
|
@@ -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.
|
|
@@ -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.0 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,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
|
@@ -3,6 +3,7 @@
|
|
|
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
|
*/
|