@meshtrade/api-old 1.34.0 → 1.36.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.
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +7 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +54 -1
- package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +10 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.js +91 -10
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.d.ts +13 -1
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.js +16 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.d.ts +24 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.js +124 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.d.ts +85 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +730 -0
- package/package.json +1 -1
|
@@ -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
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddSignatoriesToAccountRequest, AddSignatoriesToAccountResponse, CreateAccountRequest, GetAccountByNumberRequest, GetAccountRequest, ListAccountsRequest, ListAccountsResponse, OpenAccountRequest, OpenAccountResponse, RemoveSignatoriesFromAccountRequest, RemoveSignatoriesFromAccountResponse, SearchAccountsRequest, SearchAccountsResponse, UpdateAccountRequest } from "./service_pb";
|
|
1
|
+
import { AddSignatoriesToAccountRequest, AddSignatoriesToAccountResponse, CreateAccountRequest, DeregisterTokensFromAccountRequest, DeregisterTokensFromAccountResponse, GetAccountByNumberRequest, GetAccountRequest, ListAccountsRequest, ListAccountsResponse, OpenAccountRequest, OpenAccountResponse, RegisterTokensToAccountRequest, RegisterTokensToAccountResponse, RemoveSignatoriesFromAccountRequest, RemoveSignatoriesFromAccountResponse, SearchAccountsRequest, SearchAccountsResponse, UpdateAccountRequest } from "./service_pb";
|
|
2
2
|
import { Account } from "./account_pb";
|
|
3
3
|
import { UnaryInterceptor } from "grpc-web";
|
|
4
4
|
import { ConfigOpts } from "../../../common/config";
|
|
@@ -80,4 +80,16 @@ export declare class AccountServiceGrpcWebClientV1 {
|
|
|
80
80
|
* @returns {Promise<SearchAccountsResponse>} A promise that resolves with the search results.
|
|
81
81
|
*/
|
|
82
82
|
searchAccounts(request: SearchAccountsRequest): Promise<SearchAccountsResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* Performs registertokenstoaccount operation on account.
|
|
85
|
+
* @param {RegisterTokensToAccountRequest} request - The request object for registertokenstoaccount.
|
|
86
|
+
* @returns {Promise<RegisterTokensToAccountResponse>} A promise that resolves with the account.
|
|
87
|
+
*/
|
|
88
|
+
registerTokensToAccount(request: RegisterTokensToAccountRequest): Promise<RegisterTokensToAccountResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Performs deregistertokensfromaccount operation on account.
|
|
91
|
+
* @param {DeregisterTokensFromAccountRequest} request - The request object for deregistertokensfromaccount.
|
|
92
|
+
* @returns {Promise<DeregisterTokensFromAccountResponse>} A promise that resolves with the account.
|
|
93
|
+
*/
|
|
94
|
+
deregisterTokensFromAccount(request: DeregisterTokensFromAccountRequest): Promise<DeregisterTokensFromAccountResponse>;
|
|
83
95
|
}
|
|
@@ -122,5 +122,21 @@ class AccountServiceGrpcWebClientV1 {
|
|
|
122
122
|
searchAccounts(request) {
|
|
123
123
|
return this._service.searchAccounts(request);
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Performs registertokenstoaccount operation on account.
|
|
127
|
+
* @param {RegisterTokensToAccountRequest} request - The request object for registertokenstoaccount.
|
|
128
|
+
* @returns {Promise<RegisterTokensToAccountResponse>} A promise that resolves with the account.
|
|
129
|
+
*/
|
|
130
|
+
registerTokensToAccount(request) {
|
|
131
|
+
return this._service.registerTokensToAccount(request);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Performs deregistertokensfromaccount operation on account.
|
|
135
|
+
* @param {DeregisterTokensFromAccountRequest} request - The request object for deregistertokensfromaccount.
|
|
136
|
+
* @returns {Promise<DeregisterTokensFromAccountResponse>} A promise that resolves with the account.
|
|
137
|
+
*/
|
|
138
|
+
deregisterTokensFromAccount(request) {
|
|
139
|
+
return this._service.deregisterTokensFromAccount(request);
|
|
140
|
+
}
|
|
125
141
|
}
|
|
126
142
|
exports.AccountServiceGrpcWebClientV1 = AccountServiceGrpcWebClientV1;
|
|
@@ -72,6 +72,20 @@ export class AccountServiceClient {
|
|
|
72
72
|
response: meshtrade_wallet_account_v1_service_pb.SearchAccountsResponse) => void
|
|
73
73
|
): grpcWeb.ClientReadableStream<meshtrade_wallet_account_v1_service_pb.SearchAccountsResponse>;
|
|
74
74
|
|
|
75
|
+
registerTokensToAccount(
|
|
76
|
+
request: meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountRequest,
|
|
77
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
78
|
+
callback: (err: grpcWeb.RpcError,
|
|
79
|
+
response: meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountResponse) => void
|
|
80
|
+
): grpcWeb.ClientReadableStream<meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountResponse>;
|
|
81
|
+
|
|
82
|
+
deregisterTokensFromAccount(
|
|
83
|
+
request: meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountRequest,
|
|
84
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
85
|
+
callback: (err: grpcWeb.RpcError,
|
|
86
|
+
response: meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountResponse) => void
|
|
87
|
+
): grpcWeb.ClientReadableStream<meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountResponse>;
|
|
88
|
+
|
|
75
89
|
}
|
|
76
90
|
|
|
77
91
|
export class AccountServicePromiseClient {
|
|
@@ -124,5 +138,15 @@ export class AccountServicePromiseClient {
|
|
|
124
138
|
metadata?: grpcWeb.Metadata
|
|
125
139
|
): Promise<meshtrade_wallet_account_v1_service_pb.SearchAccountsResponse>;
|
|
126
140
|
|
|
141
|
+
registerTokensToAccount(
|
|
142
|
+
request: meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountRequest,
|
|
143
|
+
metadata?: grpcWeb.Metadata
|
|
144
|
+
): Promise<meshtrade_wallet_account_v1_service_pb.RegisterTokensToAccountResponse>;
|
|
145
|
+
|
|
146
|
+
deregisterTokensFromAccount(
|
|
147
|
+
request: meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountRequest,
|
|
148
|
+
metadata?: grpcWeb.Metadata
|
|
149
|
+
): Promise<meshtrade_wallet_account_v1_service_pb.DeregisterTokensFromAccountResponse>;
|
|
150
|
+
|
|
127
151
|
}
|
|
128
152
|
|
|
@@ -26,6 +26,8 @@ var meshtrade_option_method_options_v1_method_options_pb = require('../../../../
|
|
|
26
26
|
|
|
27
27
|
var meshtrade_type_v1_sorting_pb = require('../../../../meshtrade/type/v1/sorting_pb.js')
|
|
28
28
|
|
|
29
|
+
var meshtrade_type_v1_token_pb = require('../../../../meshtrade/type/v1/token_pb.js')
|
|
30
|
+
|
|
29
31
|
var meshtrade_wallet_account_v1_account_pb = require('../../../../meshtrade/wallet/account/v1/account_pb.js')
|
|
30
32
|
const proto = {};
|
|
31
33
|
proto.meshtrade = {};
|
|
@@ -634,5 +636,127 @@ proto.meshtrade.wallet.account.v1.AccountServicePromiseClient.prototype.searchAc
|
|
|
634
636
|
};
|
|
635
637
|
|
|
636
638
|
|
|
639
|
+
/**
|
|
640
|
+
* @const
|
|
641
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
642
|
+
* !proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest,
|
|
643
|
+
* !proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse>}
|
|
644
|
+
*/
|
|
645
|
+
const methodDescriptor_AccountService_RegisterTokensToAccount = new grpc.web.MethodDescriptor(
|
|
646
|
+
'/meshtrade.wallet.account.v1.AccountService/RegisterTokensToAccount',
|
|
647
|
+
grpc.web.MethodType.UNARY,
|
|
648
|
+
proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest,
|
|
649
|
+
proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse,
|
|
650
|
+
/**
|
|
651
|
+
* @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} request
|
|
652
|
+
* @return {!Uint8Array}
|
|
653
|
+
*/
|
|
654
|
+
function(request) {
|
|
655
|
+
return request.serializeBinary();
|
|
656
|
+
},
|
|
657
|
+
proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse.deserializeBinary
|
|
658
|
+
);
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} request The
|
|
663
|
+
* request proto
|
|
664
|
+
* @param {?Object<string, string>} metadata User defined
|
|
665
|
+
* call metadata
|
|
666
|
+
* @param {function(?grpc.web.RpcError, ?proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse)}
|
|
667
|
+
* callback The callback function(error, response)
|
|
668
|
+
* @return {!grpc.web.ClientReadableStream<!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse>|undefined}
|
|
669
|
+
* The XHR Node Readable Stream
|
|
670
|
+
*/
|
|
671
|
+
proto.meshtrade.wallet.account.v1.AccountServiceClient.prototype.registerTokensToAccount =
|
|
672
|
+
function(request, metadata, callback) {
|
|
673
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
674
|
+
'/meshtrade.wallet.account.v1.AccountService/RegisterTokensToAccount',
|
|
675
|
+
request,
|
|
676
|
+
metadata || {},
|
|
677
|
+
methodDescriptor_AccountService_RegisterTokensToAccount,
|
|
678
|
+
callback);
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* @param {!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountRequest} request The
|
|
684
|
+
* request proto
|
|
685
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
686
|
+
* call metadata
|
|
687
|
+
* @return {!Promise<!proto.meshtrade.wallet.account.v1.RegisterTokensToAccountResponse>}
|
|
688
|
+
* Promise that resolves to the response
|
|
689
|
+
*/
|
|
690
|
+
proto.meshtrade.wallet.account.v1.AccountServicePromiseClient.prototype.registerTokensToAccount =
|
|
691
|
+
function(request, metadata) {
|
|
692
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
693
|
+
'/meshtrade.wallet.account.v1.AccountService/RegisterTokensToAccount',
|
|
694
|
+
request,
|
|
695
|
+
metadata || {},
|
|
696
|
+
methodDescriptor_AccountService_RegisterTokensToAccount);
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @const
|
|
702
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
703
|
+
* !proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest,
|
|
704
|
+
* !proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse>}
|
|
705
|
+
*/
|
|
706
|
+
const methodDescriptor_AccountService_DeregisterTokensFromAccount = new grpc.web.MethodDescriptor(
|
|
707
|
+
'/meshtrade.wallet.account.v1.AccountService/DeregisterTokensFromAccount',
|
|
708
|
+
grpc.web.MethodType.UNARY,
|
|
709
|
+
proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest,
|
|
710
|
+
proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse,
|
|
711
|
+
/**
|
|
712
|
+
* @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} request
|
|
713
|
+
* @return {!Uint8Array}
|
|
714
|
+
*/
|
|
715
|
+
function(request) {
|
|
716
|
+
return request.serializeBinary();
|
|
717
|
+
},
|
|
718
|
+
proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse.deserializeBinary
|
|
719
|
+
);
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} request The
|
|
724
|
+
* request proto
|
|
725
|
+
* @param {?Object<string, string>} metadata User defined
|
|
726
|
+
* call metadata
|
|
727
|
+
* @param {function(?grpc.web.RpcError, ?proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse)}
|
|
728
|
+
* callback The callback function(error, response)
|
|
729
|
+
* @return {!grpc.web.ClientReadableStream<!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse>|undefined}
|
|
730
|
+
* The XHR Node Readable Stream
|
|
731
|
+
*/
|
|
732
|
+
proto.meshtrade.wallet.account.v1.AccountServiceClient.prototype.deregisterTokensFromAccount =
|
|
733
|
+
function(request, metadata, callback) {
|
|
734
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
735
|
+
'/meshtrade.wallet.account.v1.AccountService/DeregisterTokensFromAccount',
|
|
736
|
+
request,
|
|
737
|
+
metadata || {},
|
|
738
|
+
methodDescriptor_AccountService_DeregisterTokensFromAccount,
|
|
739
|
+
callback);
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* @param {!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountRequest} request The
|
|
745
|
+
* request proto
|
|
746
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
747
|
+
* call metadata
|
|
748
|
+
* @return {!Promise<!proto.meshtrade.wallet.account.v1.DeregisterTokensFromAccountResponse>}
|
|
749
|
+
* Promise that resolves to the response
|
|
750
|
+
*/
|
|
751
|
+
proto.meshtrade.wallet.account.v1.AccountServicePromiseClient.prototype.deregisterTokensFromAccount =
|
|
752
|
+
function(request, metadata) {
|
|
753
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
754
|
+
'/meshtrade.wallet.account.v1.AccountService/DeregisterTokensFromAccount',
|
|
755
|
+
request,
|
|
756
|
+
metadata || {},
|
|
757
|
+
methodDescriptor_AccountService_DeregisterTokensFromAccount);
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
|
|
637
761
|
module.exports = proto.meshtrade.wallet.account.v1;
|
|
638
762
|
|
|
@@ -3,6 +3,7 @@ import * as jspb from 'google-protobuf'
|
|
|
3
3
|
import * as buf_validate_validate_pb from '../../../../buf/validate/validate_pb'; // proto import: "buf/validate/validate.proto"
|
|
4
4
|
import * as meshtrade_option_method_options_v1_method_options_pb from '../../../../meshtrade/option/method_options/v1/method_options_pb'; // proto import: "meshtrade/option/method_options/v1/method_options.proto"
|
|
5
5
|
import * as meshtrade_type_v1_sorting_pb from '../../../../meshtrade/type/v1/sorting_pb'; // proto import: "meshtrade/type/v1/sorting.proto"
|
|
6
|
+
import * as meshtrade_type_v1_token_pb from '../../../../meshtrade/type/v1/token_pb'; // proto import: "meshtrade/type/v1/token.proto"
|
|
6
7
|
import * as meshtrade_wallet_account_v1_account_pb from '../../../../meshtrade/wallet/account/v1/account_pb'; // proto import: "meshtrade/wallet/account/v1/account.proto"
|
|
7
8
|
|
|
8
9
|
|
|
@@ -348,3 +349,87 @@ export namespace SearchAccountsResponse {
|
|
|
348
349
|
}
|
|
349
350
|
}
|
|
350
351
|
|
|
352
|
+
export class RegisterTokensToAccountRequest extends jspb.Message {
|
|
353
|
+
getName(): string;
|
|
354
|
+
setName(value: string): RegisterTokensToAccountRequest;
|
|
355
|
+
|
|
356
|
+
getTokensList(): Array<meshtrade_type_v1_token_pb.Token>;
|
|
357
|
+
setTokensList(value: Array<meshtrade_type_v1_token_pb.Token>): RegisterTokensToAccountRequest;
|
|
358
|
+
clearTokensList(): RegisterTokensToAccountRequest;
|
|
359
|
+
addTokens(value?: meshtrade_type_v1_token_pb.Token, index?: number): meshtrade_type_v1_token_pb.Token;
|
|
360
|
+
|
|
361
|
+
serializeBinary(): Uint8Array;
|
|
362
|
+
toObject(includeInstance?: boolean): RegisterTokensToAccountRequest.AsObject;
|
|
363
|
+
static toObject(includeInstance: boolean, msg: RegisterTokensToAccountRequest): RegisterTokensToAccountRequest.AsObject;
|
|
364
|
+
static serializeBinaryToWriter(message: RegisterTokensToAccountRequest, writer: jspb.BinaryWriter): void;
|
|
365
|
+
static deserializeBinary(bytes: Uint8Array): RegisterTokensToAccountRequest;
|
|
366
|
+
static deserializeBinaryFromReader(message: RegisterTokensToAccountRequest, reader: jspb.BinaryReader): RegisterTokensToAccountRequest;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export namespace RegisterTokensToAccountRequest {
|
|
370
|
+
export type AsObject = {
|
|
371
|
+
name: string,
|
|
372
|
+
tokensList: Array<meshtrade_type_v1_token_pb.Token.AsObject>,
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export class RegisterTokensToAccountResponse extends jspb.Message {
|
|
377
|
+
getLedgerTransaction(): string;
|
|
378
|
+
setLedgerTransaction(value: string): RegisterTokensToAccountResponse;
|
|
379
|
+
|
|
380
|
+
serializeBinary(): Uint8Array;
|
|
381
|
+
toObject(includeInstance?: boolean): RegisterTokensToAccountResponse.AsObject;
|
|
382
|
+
static toObject(includeInstance: boolean, msg: RegisterTokensToAccountResponse): RegisterTokensToAccountResponse.AsObject;
|
|
383
|
+
static serializeBinaryToWriter(message: RegisterTokensToAccountResponse, writer: jspb.BinaryWriter): void;
|
|
384
|
+
static deserializeBinary(bytes: Uint8Array): RegisterTokensToAccountResponse;
|
|
385
|
+
static deserializeBinaryFromReader(message: RegisterTokensToAccountResponse, reader: jspb.BinaryReader): RegisterTokensToAccountResponse;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export namespace RegisterTokensToAccountResponse {
|
|
389
|
+
export type AsObject = {
|
|
390
|
+
ledgerTransaction: string,
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export class DeregisterTokensFromAccountRequest extends jspb.Message {
|
|
395
|
+
getName(): string;
|
|
396
|
+
setName(value: string): DeregisterTokensFromAccountRequest;
|
|
397
|
+
|
|
398
|
+
getTokensList(): Array<meshtrade_type_v1_token_pb.Token>;
|
|
399
|
+
setTokensList(value: Array<meshtrade_type_v1_token_pb.Token>): DeregisterTokensFromAccountRequest;
|
|
400
|
+
clearTokensList(): DeregisterTokensFromAccountRequest;
|
|
401
|
+
addTokens(value?: meshtrade_type_v1_token_pb.Token, index?: number): meshtrade_type_v1_token_pb.Token;
|
|
402
|
+
|
|
403
|
+
serializeBinary(): Uint8Array;
|
|
404
|
+
toObject(includeInstance?: boolean): DeregisterTokensFromAccountRequest.AsObject;
|
|
405
|
+
static toObject(includeInstance: boolean, msg: DeregisterTokensFromAccountRequest): DeregisterTokensFromAccountRequest.AsObject;
|
|
406
|
+
static serializeBinaryToWriter(message: DeregisterTokensFromAccountRequest, writer: jspb.BinaryWriter): void;
|
|
407
|
+
static deserializeBinary(bytes: Uint8Array): DeregisterTokensFromAccountRequest;
|
|
408
|
+
static deserializeBinaryFromReader(message: DeregisterTokensFromAccountRequest, reader: jspb.BinaryReader): DeregisterTokensFromAccountRequest;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export namespace DeregisterTokensFromAccountRequest {
|
|
412
|
+
export type AsObject = {
|
|
413
|
+
name: string,
|
|
414
|
+
tokensList: Array<meshtrade_type_v1_token_pb.Token.AsObject>,
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export class DeregisterTokensFromAccountResponse extends jspb.Message {
|
|
419
|
+
getLedgerTransaction(): string;
|
|
420
|
+
setLedgerTransaction(value: string): DeregisterTokensFromAccountResponse;
|
|
421
|
+
|
|
422
|
+
serializeBinary(): Uint8Array;
|
|
423
|
+
toObject(includeInstance?: boolean): DeregisterTokensFromAccountResponse.AsObject;
|
|
424
|
+
static toObject(includeInstance: boolean, msg: DeregisterTokensFromAccountResponse): DeregisterTokensFromAccountResponse.AsObject;
|
|
425
|
+
static serializeBinaryToWriter(message: DeregisterTokensFromAccountResponse, writer: jspb.BinaryWriter): void;
|
|
426
|
+
static deserializeBinary(bytes: Uint8Array): DeregisterTokensFromAccountResponse;
|
|
427
|
+
static deserializeBinaryFromReader(message: DeregisterTokensFromAccountResponse, reader: jspb.BinaryReader): DeregisterTokensFromAccountResponse;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export namespace DeregisterTokensFromAccountResponse {
|
|
431
|
+
export type AsObject = {
|
|
432
|
+
ledgerTransaction: string,
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|