@meshtrade/api-old 1.34.0 → 1.35.0
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as jspb from 'google-protobuf'
|
|
2
2
|
|
|
3
3
|
import * as buf_validate_validate_pb from '../../../../buf/validate/validate_pb'; // proto import: "buf/validate/validate.proto"
|
|
4
|
+
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
|
|
4
5
|
import * as meshtrade_type_v1_amount_pb from '../../../../meshtrade/type/v1/amount_pb'; // proto import: "meshtrade/type/v1/amount.proto"
|
|
5
6
|
|
|
6
7
|
|
|
@@ -51,6 +52,11 @@ export class LimitOrder extends jspb.Message {
|
|
|
51
52
|
getNumber(): string;
|
|
52
53
|
setNumber(value: string): LimitOrder;
|
|
53
54
|
|
|
55
|
+
getSubmittedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
56
|
+
setSubmittedAt(value?: google_protobuf_timestamp_pb.Timestamp): LimitOrder;
|
|
57
|
+
hasSubmittedAt(): boolean;
|
|
58
|
+
clearSubmittedAt(): LimitOrder;
|
|
59
|
+
|
|
54
60
|
serializeBinary(): Uint8Array;
|
|
55
61
|
toObject(includeInstance?: boolean): LimitOrder.AsObject;
|
|
56
62
|
static toObject(includeInstance: boolean, msg: LimitOrder): LimitOrder.AsObject;
|
|
@@ -73,6 +79,7 @@ export namespace LimitOrder {
|
|
|
73
79
|
filledQuantity?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
74
80
|
state: LimitOrderState,
|
|
75
81
|
number: string,
|
|
82
|
+
submittedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
76
83
|
}
|
|
77
84
|
}
|
|
78
85
|
|
|
@@ -23,6 +23,8 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var buf_validate_validate_pb = require('../../../../buf/validate/validate_pb.js');
|
|
25
25
|
goog.object.extend(proto, buf_validate_validate_pb);
|
|
26
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
28
|
var meshtrade_type_v1_amount_pb = require('../../../../meshtrade/type/v1/amount_pb.js');
|
|
27
29
|
goog.object.extend(proto, meshtrade_type_v1_amount_pb);
|
|
28
30
|
goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.LimitOrder', null, global);
|
|
@@ -99,7 +101,8 @@ quantity: (f = msg.getQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject
|
|
|
99
101
|
fillPrice: (f = msg.getFillPrice()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
100
102
|
filledQuantity: (f = msg.getFilledQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
101
103
|
state: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
102
|
-
number: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
104
|
+
number: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
105
|
+
submittedAt: (f = msg.getSubmittedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
103
106
|
};
|
|
104
107
|
|
|
105
108
|
if (includeInstance) {
|
|
@@ -188,6 +191,11 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.deserializeBinaryFromReader =
|
|
|
188
191
|
var value = /** @type {string} */ (reader.readString());
|
|
189
192
|
msg.setNumber(value);
|
|
190
193
|
break;
|
|
194
|
+
case 14:
|
|
195
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
196
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
197
|
+
msg.setSubmittedAt(value);
|
|
198
|
+
break;
|
|
191
199
|
default:
|
|
192
200
|
reader.skipField();
|
|
193
201
|
break;
|
|
@@ -305,6 +313,14 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.serializeBinaryToWriter = func
|
|
|
305
313
|
f
|
|
306
314
|
);
|
|
307
315
|
}
|
|
316
|
+
f = message.getSubmittedAt();
|
|
317
|
+
if (f != null) {
|
|
318
|
+
writer.writeMessage(
|
|
319
|
+
14,
|
|
320
|
+
f,
|
|
321
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
322
|
+
);
|
|
323
|
+
}
|
|
308
324
|
};
|
|
309
325
|
|
|
310
326
|
|
|
@@ -619,6 +635,43 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setNumber = function
|
|
|
619
635
|
};
|
|
620
636
|
|
|
621
637
|
|
|
638
|
+
/**
|
|
639
|
+
* optional google.protobuf.Timestamp submitted_at = 14;
|
|
640
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
641
|
+
*/
|
|
642
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getSubmittedAt = function() {
|
|
643
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
644
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 14));
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
650
|
+
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
651
|
+
*/
|
|
652
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setSubmittedAt = function(value) {
|
|
653
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Clears the message field making it undefined.
|
|
659
|
+
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
660
|
+
*/
|
|
661
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.clearSubmittedAt = function() {
|
|
662
|
+
return this.setSubmittedAt(undefined);
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Returns whether this field is set.
|
|
668
|
+
* @return {boolean}
|
|
669
|
+
*/
|
|
670
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.hasSubmittedAt = function() {
|
|
671
|
+
return jspb.Message.getField(this, 14) != null;
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
|
|
622
675
|
/**
|
|
623
676
|
* @enum {number}
|
|
624
677
|
*/
|
|
@@ -106,6 +106,11 @@ export class Balance extends jspb.Message {
|
|
|
106
106
|
hasAmount(): boolean;
|
|
107
107
|
clearAmount(): Balance;
|
|
108
108
|
|
|
109
|
+
getAvailableAmount(): meshtrade_type_v1_amount_pb.Amount | undefined;
|
|
110
|
+
setAvailableAmount(value?: meshtrade_type_v1_amount_pb.Amount): Balance;
|
|
111
|
+
hasAvailableAmount(): boolean;
|
|
112
|
+
clearAvailableAmount(): Balance;
|
|
113
|
+
|
|
109
114
|
getInstrumentMetadata(): InstrumentMetaData | undefined;
|
|
110
115
|
setInstrumentMetadata(value?: InstrumentMetaData): Balance;
|
|
111
116
|
hasInstrumentMetadata(): boolean;
|
|
@@ -122,6 +127,7 @@ export class Balance extends jspb.Message {
|
|
|
122
127
|
export namespace Balance {
|
|
123
128
|
export type AsObject = {
|
|
124
129
|
amount?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
130
|
+
availableAmount?: meshtrade_type_v1_amount_pb.Amount.AsObject,
|
|
125
131
|
instrumentMetadata?: InstrumentMetaData.AsObject,
|
|
126
132
|
}
|
|
127
133
|
}
|
|
@@ -130,6 +136,9 @@ export class Signatory extends jspb.Message {
|
|
|
130
136
|
getDisplayName(): string;
|
|
131
137
|
setDisplayName(value: string): Signatory;
|
|
132
138
|
|
|
139
|
+
getResourceName(): string;
|
|
140
|
+
setResourceName(value: string): Signatory;
|
|
141
|
+
|
|
133
142
|
getLedgerId(): string;
|
|
134
143
|
setLedgerId(value: string): Signatory;
|
|
135
144
|
|
|
@@ -144,6 +153,7 @@ export class Signatory extends jspb.Message {
|
|
|
144
153
|
export namespace Signatory {
|
|
145
154
|
export type AsObject = {
|
|
146
155
|
displayName: string,
|
|
156
|
+
resourceName: string,
|
|
147
157
|
ledgerId: string,
|
|
148
158
|
}
|
|
149
159
|
}
|
|
@@ -868,6 +868,7 @@ proto.meshtrade.wallet.account.v1.Balance.prototype.toObject = function(opt_incl
|
|
|
868
868
|
proto.meshtrade.wallet.account.v1.Balance.toObject = function(includeInstance, msg) {
|
|
869
869
|
var f, obj = {
|
|
870
870
|
amount: (f = msg.getAmount()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
871
|
+
availableAmount: (f = msg.getAvailableAmount()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
871
872
|
instrumentMetadata: (f = msg.getInstrumentMetadata()) && proto.meshtrade.wallet.account.v1.InstrumentMetaData.toObject(includeInstance, f)
|
|
872
873
|
};
|
|
873
874
|
|
|
@@ -911,6 +912,11 @@ proto.meshtrade.wallet.account.v1.Balance.deserializeBinaryFromReader = function
|
|
|
911
912
|
msg.setAmount(value);
|
|
912
913
|
break;
|
|
913
914
|
case 2:
|
|
915
|
+
var value = new meshtrade_type_v1_amount_pb.Amount;
|
|
916
|
+
reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
|
|
917
|
+
msg.setAvailableAmount(value);
|
|
918
|
+
break;
|
|
919
|
+
case 3:
|
|
914
920
|
var value = new proto.meshtrade.wallet.account.v1.InstrumentMetaData;
|
|
915
921
|
reader.readMessage(value,proto.meshtrade.wallet.account.v1.InstrumentMetaData.deserializeBinaryFromReader);
|
|
916
922
|
msg.setInstrumentMetadata(value);
|
|
@@ -952,11 +958,19 @@ proto.meshtrade.wallet.account.v1.Balance.serializeBinaryToWriter = function(mes
|
|
|
952
958
|
meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
|
|
953
959
|
);
|
|
954
960
|
}
|
|
955
|
-
f = message.
|
|
961
|
+
f = message.getAvailableAmount();
|
|
956
962
|
if (f != null) {
|
|
957
963
|
writer.writeMessage(
|
|
958
964
|
2,
|
|
959
965
|
f,
|
|
966
|
+
meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
|
|
967
|
+
);
|
|
968
|
+
}
|
|
969
|
+
f = message.getInstrumentMetadata();
|
|
970
|
+
if (f != null) {
|
|
971
|
+
writer.writeMessage(
|
|
972
|
+
3,
|
|
973
|
+
f,
|
|
960
974
|
proto.meshtrade.wallet.account.v1.InstrumentMetaData.serializeBinaryToWriter
|
|
961
975
|
);
|
|
962
976
|
}
|
|
@@ -1001,12 +1015,49 @@ proto.meshtrade.wallet.account.v1.Balance.prototype.hasAmount = function() {
|
|
|
1001
1015
|
|
|
1002
1016
|
|
|
1003
1017
|
/**
|
|
1004
|
-
* optional
|
|
1018
|
+
* optional meshtrade.type.v1.Amount available_amount = 2;
|
|
1019
|
+
* @return {?proto.meshtrade.type.v1.Amount}
|
|
1020
|
+
*/
|
|
1021
|
+
proto.meshtrade.wallet.account.v1.Balance.prototype.getAvailableAmount = function() {
|
|
1022
|
+
return /** @type{?proto.meshtrade.type.v1.Amount} */ (
|
|
1023
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 2));
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* @param {?proto.meshtrade.type.v1.Amount|undefined} value
|
|
1029
|
+
* @return {!proto.meshtrade.wallet.account.v1.Balance} returns this
|
|
1030
|
+
*/
|
|
1031
|
+
proto.meshtrade.wallet.account.v1.Balance.prototype.setAvailableAmount = function(value) {
|
|
1032
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Clears the message field making it undefined.
|
|
1038
|
+
* @return {!proto.meshtrade.wallet.account.v1.Balance} returns this
|
|
1039
|
+
*/
|
|
1040
|
+
proto.meshtrade.wallet.account.v1.Balance.prototype.clearAvailableAmount = function() {
|
|
1041
|
+
return this.setAvailableAmount(undefined);
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Returns whether this field is set.
|
|
1047
|
+
* @return {boolean}
|
|
1048
|
+
*/
|
|
1049
|
+
proto.meshtrade.wallet.account.v1.Balance.prototype.hasAvailableAmount = function() {
|
|
1050
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* optional InstrumentMetaData instrument_metadata = 3;
|
|
1005
1056
|
* @return {?proto.meshtrade.wallet.account.v1.InstrumentMetaData}
|
|
1006
1057
|
*/
|
|
1007
1058
|
proto.meshtrade.wallet.account.v1.Balance.prototype.getInstrumentMetadata = function() {
|
|
1008
1059
|
return /** @type{?proto.meshtrade.wallet.account.v1.InstrumentMetaData} */ (
|
|
1009
|
-
jspb.Message.getWrapperField(this, proto.meshtrade.wallet.account.v1.InstrumentMetaData,
|
|
1060
|
+
jspb.Message.getWrapperField(this, proto.meshtrade.wallet.account.v1.InstrumentMetaData, 3));
|
|
1010
1061
|
};
|
|
1011
1062
|
|
|
1012
1063
|
|
|
@@ -1015,7 +1066,7 @@ proto.meshtrade.wallet.account.v1.Balance.prototype.getInstrumentMetadata = func
|
|
|
1015
1066
|
* @return {!proto.meshtrade.wallet.account.v1.Balance} returns this
|
|
1016
1067
|
*/
|
|
1017
1068
|
proto.meshtrade.wallet.account.v1.Balance.prototype.setInstrumentMetadata = function(value) {
|
|
1018
|
-
return jspb.Message.setWrapperField(this,
|
|
1069
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1019
1070
|
};
|
|
1020
1071
|
|
|
1021
1072
|
|
|
@@ -1033,7 +1084,7 @@ proto.meshtrade.wallet.account.v1.Balance.prototype.clearInstrumentMetadata = fu
|
|
|
1033
1084
|
* @return {boolean}
|
|
1034
1085
|
*/
|
|
1035
1086
|
proto.meshtrade.wallet.account.v1.Balance.prototype.hasInstrumentMetadata = function() {
|
|
1036
|
-
return jspb.Message.getField(this,
|
|
1087
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1037
1088
|
};
|
|
1038
1089
|
|
|
1039
1090
|
|
|
@@ -1070,7 +1121,8 @@ proto.meshtrade.wallet.account.v1.Signatory.prototype.toObject = function(opt_in
|
|
|
1070
1121
|
proto.meshtrade.wallet.account.v1.Signatory.toObject = function(includeInstance, msg) {
|
|
1071
1122
|
var f, obj = {
|
|
1072
1123
|
displayName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1073
|
-
|
|
1124
|
+
resourceName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1125
|
+
ledgerId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1074
1126
|
};
|
|
1075
1127
|
|
|
1076
1128
|
if (includeInstance) {
|
|
@@ -1112,6 +1164,10 @@ proto.meshtrade.wallet.account.v1.Signatory.deserializeBinaryFromReader = functi
|
|
|
1112
1164
|
msg.setDisplayName(value);
|
|
1113
1165
|
break;
|
|
1114
1166
|
case 2:
|
|
1167
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1168
|
+
msg.setResourceName(value);
|
|
1169
|
+
break;
|
|
1170
|
+
case 3:
|
|
1115
1171
|
var value = /** @type {string} */ (reader.readString());
|
|
1116
1172
|
msg.setLedgerId(value);
|
|
1117
1173
|
break;
|
|
@@ -1151,13 +1207,20 @@ proto.meshtrade.wallet.account.v1.Signatory.serializeBinaryToWriter = function(m
|
|
|
1151
1207
|
f
|
|
1152
1208
|
);
|
|
1153
1209
|
}
|
|
1154
|
-
f = message.
|
|
1210
|
+
f = message.getResourceName();
|
|
1155
1211
|
if (f.length > 0) {
|
|
1156
1212
|
writer.writeString(
|
|
1157
1213
|
2,
|
|
1158
1214
|
f
|
|
1159
1215
|
);
|
|
1160
1216
|
}
|
|
1217
|
+
f = message.getLedgerId();
|
|
1218
|
+
if (f.length > 0) {
|
|
1219
|
+
writer.writeString(
|
|
1220
|
+
3,
|
|
1221
|
+
f
|
|
1222
|
+
);
|
|
1223
|
+
}
|
|
1161
1224
|
};
|
|
1162
1225
|
|
|
1163
1226
|
|
|
@@ -1180,10 +1243,10 @@ proto.meshtrade.wallet.account.v1.Signatory.prototype.setDisplayName = function(
|
|
|
1180
1243
|
|
|
1181
1244
|
|
|
1182
1245
|
/**
|
|
1183
|
-
* optional string
|
|
1246
|
+
* optional string resource_name = 2;
|
|
1184
1247
|
* @return {string}
|
|
1185
1248
|
*/
|
|
1186
|
-
proto.meshtrade.wallet.account.v1.Signatory.prototype.
|
|
1249
|
+
proto.meshtrade.wallet.account.v1.Signatory.prototype.getResourceName = function() {
|
|
1187
1250
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1188
1251
|
};
|
|
1189
1252
|
|
|
@@ -1192,11 +1255,29 @@ proto.meshtrade.wallet.account.v1.Signatory.prototype.getLedgerId = function() {
|
|
|
1192
1255
|
* @param {string} value
|
|
1193
1256
|
* @return {!proto.meshtrade.wallet.account.v1.Signatory} returns this
|
|
1194
1257
|
*/
|
|
1195
|
-
proto.meshtrade.wallet.account.v1.Signatory.prototype.
|
|
1258
|
+
proto.meshtrade.wallet.account.v1.Signatory.prototype.setResourceName = function(value) {
|
|
1196
1259
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1197
1260
|
};
|
|
1198
1261
|
|
|
1199
1262
|
|
|
1263
|
+
/**
|
|
1264
|
+
* optional string ledger_id = 3;
|
|
1265
|
+
* @return {string}
|
|
1266
|
+
*/
|
|
1267
|
+
proto.meshtrade.wallet.account.v1.Signatory.prototype.getLedgerId = function() {
|
|
1268
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* @param {string} value
|
|
1274
|
+
* @return {!proto.meshtrade.wallet.account.v1.Signatory} returns this
|
|
1275
|
+
*/
|
|
1276
|
+
proto.meshtrade.wallet.account.v1.Signatory.prototype.setLedgerId = function(value) {
|
|
1277
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
|
|
1200
1281
|
/**
|
|
1201
1282
|
* @enum {number}
|
|
1202
1283
|
*/
|