@trustwallet/wallet-core 3.0.4 → 3.0.6

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.
@@ -854,6 +854,1033 @@ export namespace TW {
854
854
  }
855
855
  }
856
856
 
857
+ /** Namespace Aptos. */
858
+ namespace Aptos {
859
+
860
+ /** Namespace Proto. */
861
+ namespace Proto {
862
+
863
+ /** Properties of a TransferMessage. */
864
+ interface ITransferMessage {
865
+
866
+ /** TransferMessage to */
867
+ to?: (string|null);
868
+
869
+ /** TransferMessage amount */
870
+ amount?: (Long|null);
871
+ }
872
+
873
+ /** Represents a TransferMessage. */
874
+ class TransferMessage implements ITransferMessage {
875
+
876
+ /**
877
+ * Constructs a new TransferMessage.
878
+ * @param [properties] Properties to set
879
+ */
880
+ constructor(properties?: TW.Aptos.Proto.ITransferMessage);
881
+
882
+ /** TransferMessage to. */
883
+ public to: string;
884
+
885
+ /** TransferMessage amount. */
886
+ public amount: Long;
887
+
888
+ /**
889
+ * Creates a new TransferMessage instance using the specified properties.
890
+ * @param [properties] Properties to set
891
+ * @returns TransferMessage instance
892
+ */
893
+ public static create(properties?: TW.Aptos.Proto.ITransferMessage): TW.Aptos.Proto.TransferMessage;
894
+
895
+ /**
896
+ * Encodes the specified TransferMessage message. Does not implicitly {@link TW.Aptos.Proto.TransferMessage.verify|verify} messages.
897
+ * @param message TransferMessage message or plain object to encode
898
+ * @param [writer] Writer to encode to
899
+ * @returns Writer
900
+ */
901
+ public static encode(message: TW.Aptos.Proto.ITransferMessage, writer?: $protobuf.Writer): $protobuf.Writer;
902
+
903
+ /**
904
+ * Decodes a TransferMessage message from the specified reader or buffer.
905
+ * @param reader Reader or buffer to decode from
906
+ * @param [length] Message length if known beforehand
907
+ * @returns TransferMessage
908
+ * @throws {Error} If the payload is not a reader or valid buffer
909
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
910
+ */
911
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.TransferMessage;
912
+
913
+ /**
914
+ * Verifies a TransferMessage message.
915
+ * @param message Plain object to verify
916
+ * @returns `null` if valid, otherwise the reason why it is not
917
+ */
918
+ public static verify(message: { [k: string]: any }): (string|null);
919
+
920
+ /**
921
+ * Creates a TransferMessage message from a plain object. Also converts values to their respective internal types.
922
+ * @param object Plain object
923
+ * @returns TransferMessage
924
+ */
925
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.TransferMessage;
926
+
927
+ /**
928
+ * Creates a plain object from a TransferMessage message. Also converts values to other types if specified.
929
+ * @param message TransferMessage
930
+ * @param [options] Conversion options
931
+ * @returns Plain object
932
+ */
933
+ public static toObject(message: TW.Aptos.Proto.TransferMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
934
+
935
+ /**
936
+ * Converts this TransferMessage to JSON.
937
+ * @returns JSON object
938
+ */
939
+ public toJSON(): { [k: string]: any };
940
+ }
941
+
942
+ /** Properties of a StructTag. */
943
+ interface IStructTag {
944
+
945
+ /** StructTag accountAddress */
946
+ accountAddress?: (string|null);
947
+
948
+ /** StructTag module */
949
+ module?: (string|null);
950
+
951
+ /** StructTag name */
952
+ name?: (string|null);
953
+ }
954
+
955
+ /** Represents a StructTag. */
956
+ class StructTag implements IStructTag {
957
+
958
+ /**
959
+ * Constructs a new StructTag.
960
+ * @param [properties] Properties to set
961
+ */
962
+ constructor(properties?: TW.Aptos.Proto.IStructTag);
963
+
964
+ /** StructTag accountAddress. */
965
+ public accountAddress: string;
966
+
967
+ /** StructTag module. */
968
+ public module: string;
969
+
970
+ /** StructTag name. */
971
+ public name: string;
972
+
973
+ /**
974
+ * Creates a new StructTag instance using the specified properties.
975
+ * @param [properties] Properties to set
976
+ * @returns StructTag instance
977
+ */
978
+ public static create(properties?: TW.Aptos.Proto.IStructTag): TW.Aptos.Proto.StructTag;
979
+
980
+ /**
981
+ * Encodes the specified StructTag message. Does not implicitly {@link TW.Aptos.Proto.StructTag.verify|verify} messages.
982
+ * @param message StructTag message or plain object to encode
983
+ * @param [writer] Writer to encode to
984
+ * @returns Writer
985
+ */
986
+ public static encode(message: TW.Aptos.Proto.IStructTag, writer?: $protobuf.Writer): $protobuf.Writer;
987
+
988
+ /**
989
+ * Decodes a StructTag message from the specified reader or buffer.
990
+ * @param reader Reader or buffer to decode from
991
+ * @param [length] Message length if known beforehand
992
+ * @returns StructTag
993
+ * @throws {Error} If the payload is not a reader or valid buffer
994
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
995
+ */
996
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.StructTag;
997
+
998
+ /**
999
+ * Verifies a StructTag message.
1000
+ * @param message Plain object to verify
1001
+ * @returns `null` if valid, otherwise the reason why it is not
1002
+ */
1003
+ public static verify(message: { [k: string]: any }): (string|null);
1004
+
1005
+ /**
1006
+ * Creates a StructTag message from a plain object. Also converts values to their respective internal types.
1007
+ * @param object Plain object
1008
+ * @returns StructTag
1009
+ */
1010
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.StructTag;
1011
+
1012
+ /**
1013
+ * Creates a plain object from a StructTag message. Also converts values to other types if specified.
1014
+ * @param message StructTag
1015
+ * @param [options] Conversion options
1016
+ * @returns Plain object
1017
+ */
1018
+ public static toObject(message: TW.Aptos.Proto.StructTag, options?: $protobuf.IConversionOptions): { [k: string]: any };
1019
+
1020
+ /**
1021
+ * Converts this StructTag to JSON.
1022
+ * @returns JSON object
1023
+ */
1024
+ public toJSON(): { [k: string]: any };
1025
+ }
1026
+
1027
+ /** Properties of a TokenTransferMessage. */
1028
+ interface ITokenTransferMessage {
1029
+
1030
+ /** TokenTransferMessage to */
1031
+ to?: (string|null);
1032
+
1033
+ /** TokenTransferMessage amount */
1034
+ amount?: (Long|null);
1035
+
1036
+ /** TokenTransferMessage function */
1037
+ "function"?: (TW.Aptos.Proto.IStructTag|null);
1038
+ }
1039
+
1040
+ /** Represents a TokenTransferMessage. */
1041
+ class TokenTransferMessage implements ITokenTransferMessage {
1042
+
1043
+ /**
1044
+ * Constructs a new TokenTransferMessage.
1045
+ * @param [properties] Properties to set
1046
+ */
1047
+ constructor(properties?: TW.Aptos.Proto.ITokenTransferMessage);
1048
+
1049
+ /** TokenTransferMessage to. */
1050
+ public to: string;
1051
+
1052
+ /** TokenTransferMessage amount. */
1053
+ public amount: Long;
1054
+
1055
+ /** TokenTransferMessage function. */
1056
+ public function?: (TW.Aptos.Proto.IStructTag|null);
1057
+
1058
+ /**
1059
+ * Creates a new TokenTransferMessage instance using the specified properties.
1060
+ * @param [properties] Properties to set
1061
+ * @returns TokenTransferMessage instance
1062
+ */
1063
+ public static create(properties?: TW.Aptos.Proto.ITokenTransferMessage): TW.Aptos.Proto.TokenTransferMessage;
1064
+
1065
+ /**
1066
+ * Encodes the specified TokenTransferMessage message. Does not implicitly {@link TW.Aptos.Proto.TokenTransferMessage.verify|verify} messages.
1067
+ * @param message TokenTransferMessage message or plain object to encode
1068
+ * @param [writer] Writer to encode to
1069
+ * @returns Writer
1070
+ */
1071
+ public static encode(message: TW.Aptos.Proto.ITokenTransferMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1072
+
1073
+ /**
1074
+ * Decodes a TokenTransferMessage message from the specified reader or buffer.
1075
+ * @param reader Reader or buffer to decode from
1076
+ * @param [length] Message length if known beforehand
1077
+ * @returns TokenTransferMessage
1078
+ * @throws {Error} If the payload is not a reader or valid buffer
1079
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1080
+ */
1081
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.TokenTransferMessage;
1082
+
1083
+ /**
1084
+ * Verifies a TokenTransferMessage message.
1085
+ * @param message Plain object to verify
1086
+ * @returns `null` if valid, otherwise the reason why it is not
1087
+ */
1088
+ public static verify(message: { [k: string]: any }): (string|null);
1089
+
1090
+ /**
1091
+ * Creates a TokenTransferMessage message from a plain object. Also converts values to their respective internal types.
1092
+ * @param object Plain object
1093
+ * @returns TokenTransferMessage
1094
+ */
1095
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.TokenTransferMessage;
1096
+
1097
+ /**
1098
+ * Creates a plain object from a TokenTransferMessage message. Also converts values to other types if specified.
1099
+ * @param message TokenTransferMessage
1100
+ * @param [options] Conversion options
1101
+ * @returns Plain object
1102
+ */
1103
+ public static toObject(message: TW.Aptos.Proto.TokenTransferMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1104
+
1105
+ /**
1106
+ * Converts this TokenTransferMessage to JSON.
1107
+ * @returns JSON object
1108
+ */
1109
+ public toJSON(): { [k: string]: any };
1110
+ }
1111
+
1112
+ /** Properties of a CreateAccountMessage. */
1113
+ interface ICreateAccountMessage {
1114
+
1115
+ /** CreateAccountMessage authKey */
1116
+ authKey?: (string|null);
1117
+ }
1118
+
1119
+ /** Represents a CreateAccountMessage. */
1120
+ class CreateAccountMessage implements ICreateAccountMessage {
1121
+
1122
+ /**
1123
+ * Constructs a new CreateAccountMessage.
1124
+ * @param [properties] Properties to set
1125
+ */
1126
+ constructor(properties?: TW.Aptos.Proto.ICreateAccountMessage);
1127
+
1128
+ /** CreateAccountMessage authKey. */
1129
+ public authKey: string;
1130
+
1131
+ /**
1132
+ * Creates a new CreateAccountMessage instance using the specified properties.
1133
+ * @param [properties] Properties to set
1134
+ * @returns CreateAccountMessage instance
1135
+ */
1136
+ public static create(properties?: TW.Aptos.Proto.ICreateAccountMessage): TW.Aptos.Proto.CreateAccountMessage;
1137
+
1138
+ /**
1139
+ * Encodes the specified CreateAccountMessage message. Does not implicitly {@link TW.Aptos.Proto.CreateAccountMessage.verify|verify} messages.
1140
+ * @param message CreateAccountMessage message or plain object to encode
1141
+ * @param [writer] Writer to encode to
1142
+ * @returns Writer
1143
+ */
1144
+ public static encode(message: TW.Aptos.Proto.ICreateAccountMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1145
+
1146
+ /**
1147
+ * Decodes a CreateAccountMessage message from the specified reader or buffer.
1148
+ * @param reader Reader or buffer to decode from
1149
+ * @param [length] Message length if known beforehand
1150
+ * @returns CreateAccountMessage
1151
+ * @throws {Error} If the payload is not a reader or valid buffer
1152
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1153
+ */
1154
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.CreateAccountMessage;
1155
+
1156
+ /**
1157
+ * Verifies a CreateAccountMessage message.
1158
+ * @param message Plain object to verify
1159
+ * @returns `null` if valid, otherwise the reason why it is not
1160
+ */
1161
+ public static verify(message: { [k: string]: any }): (string|null);
1162
+
1163
+ /**
1164
+ * Creates a CreateAccountMessage message from a plain object. Also converts values to their respective internal types.
1165
+ * @param object Plain object
1166
+ * @returns CreateAccountMessage
1167
+ */
1168
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.CreateAccountMessage;
1169
+
1170
+ /**
1171
+ * Creates a plain object from a CreateAccountMessage message. Also converts values to other types if specified.
1172
+ * @param message CreateAccountMessage
1173
+ * @param [options] Conversion options
1174
+ * @returns Plain object
1175
+ */
1176
+ public static toObject(message: TW.Aptos.Proto.CreateAccountMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1177
+
1178
+ /**
1179
+ * Converts this CreateAccountMessage to JSON.
1180
+ * @returns JSON object
1181
+ */
1182
+ public toJSON(): { [k: string]: any };
1183
+ }
1184
+
1185
+ /** Properties of an OfferNftMessage. */
1186
+ interface IOfferNftMessage {
1187
+
1188
+ /** OfferNftMessage receiver */
1189
+ receiver?: (string|null);
1190
+
1191
+ /** OfferNftMessage creator */
1192
+ creator?: (string|null);
1193
+
1194
+ /** OfferNftMessage collectionName */
1195
+ collectionName?: (string|null);
1196
+
1197
+ /** OfferNftMessage name */
1198
+ name?: (string|null);
1199
+
1200
+ /** OfferNftMessage propertyVersion */
1201
+ propertyVersion?: (Long|null);
1202
+
1203
+ /** OfferNftMessage amount */
1204
+ amount?: (Long|null);
1205
+ }
1206
+
1207
+ /** Represents an OfferNftMessage. */
1208
+ class OfferNftMessage implements IOfferNftMessage {
1209
+
1210
+ /**
1211
+ * Constructs a new OfferNftMessage.
1212
+ * @param [properties] Properties to set
1213
+ */
1214
+ constructor(properties?: TW.Aptos.Proto.IOfferNftMessage);
1215
+
1216
+ /** OfferNftMessage receiver. */
1217
+ public receiver: string;
1218
+
1219
+ /** OfferNftMessage creator. */
1220
+ public creator: string;
1221
+
1222
+ /** OfferNftMessage collectionName. */
1223
+ public collectionName: string;
1224
+
1225
+ /** OfferNftMessage name. */
1226
+ public name: string;
1227
+
1228
+ /** OfferNftMessage propertyVersion. */
1229
+ public propertyVersion: Long;
1230
+
1231
+ /** OfferNftMessage amount. */
1232
+ public amount: Long;
1233
+
1234
+ /**
1235
+ * Creates a new OfferNftMessage instance using the specified properties.
1236
+ * @param [properties] Properties to set
1237
+ * @returns OfferNftMessage instance
1238
+ */
1239
+ public static create(properties?: TW.Aptos.Proto.IOfferNftMessage): TW.Aptos.Proto.OfferNftMessage;
1240
+
1241
+ /**
1242
+ * Encodes the specified OfferNftMessage message. Does not implicitly {@link TW.Aptos.Proto.OfferNftMessage.verify|verify} messages.
1243
+ * @param message OfferNftMessage message or plain object to encode
1244
+ * @param [writer] Writer to encode to
1245
+ * @returns Writer
1246
+ */
1247
+ public static encode(message: TW.Aptos.Proto.IOfferNftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1248
+
1249
+ /**
1250
+ * Decodes an OfferNftMessage message from the specified reader or buffer.
1251
+ * @param reader Reader or buffer to decode from
1252
+ * @param [length] Message length if known beforehand
1253
+ * @returns OfferNftMessage
1254
+ * @throws {Error} If the payload is not a reader or valid buffer
1255
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1256
+ */
1257
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.OfferNftMessage;
1258
+
1259
+ /**
1260
+ * Verifies an OfferNftMessage message.
1261
+ * @param message Plain object to verify
1262
+ * @returns `null` if valid, otherwise the reason why it is not
1263
+ */
1264
+ public static verify(message: { [k: string]: any }): (string|null);
1265
+
1266
+ /**
1267
+ * Creates an OfferNftMessage message from a plain object. Also converts values to their respective internal types.
1268
+ * @param object Plain object
1269
+ * @returns OfferNftMessage
1270
+ */
1271
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.OfferNftMessage;
1272
+
1273
+ /**
1274
+ * Creates a plain object from an OfferNftMessage message. Also converts values to other types if specified.
1275
+ * @param message OfferNftMessage
1276
+ * @param [options] Conversion options
1277
+ * @returns Plain object
1278
+ */
1279
+ public static toObject(message: TW.Aptos.Proto.OfferNftMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1280
+
1281
+ /**
1282
+ * Converts this OfferNftMessage to JSON.
1283
+ * @returns JSON object
1284
+ */
1285
+ public toJSON(): { [k: string]: any };
1286
+ }
1287
+
1288
+ /** Properties of a CancelOfferNftMessage. */
1289
+ interface ICancelOfferNftMessage {
1290
+
1291
+ /** CancelOfferNftMessage receiver */
1292
+ receiver?: (string|null);
1293
+
1294
+ /** CancelOfferNftMessage creator */
1295
+ creator?: (string|null);
1296
+
1297
+ /** CancelOfferNftMessage collectionName */
1298
+ collectionName?: (string|null);
1299
+
1300
+ /** CancelOfferNftMessage name */
1301
+ name?: (string|null);
1302
+
1303
+ /** CancelOfferNftMessage propertyVersion */
1304
+ propertyVersion?: (Long|null);
1305
+ }
1306
+
1307
+ /** Represents a CancelOfferNftMessage. */
1308
+ class CancelOfferNftMessage implements ICancelOfferNftMessage {
1309
+
1310
+ /**
1311
+ * Constructs a new CancelOfferNftMessage.
1312
+ * @param [properties] Properties to set
1313
+ */
1314
+ constructor(properties?: TW.Aptos.Proto.ICancelOfferNftMessage);
1315
+
1316
+ /** CancelOfferNftMessage receiver. */
1317
+ public receiver: string;
1318
+
1319
+ /** CancelOfferNftMessage creator. */
1320
+ public creator: string;
1321
+
1322
+ /** CancelOfferNftMessage collectionName. */
1323
+ public collectionName: string;
1324
+
1325
+ /** CancelOfferNftMessage name. */
1326
+ public name: string;
1327
+
1328
+ /** CancelOfferNftMessage propertyVersion. */
1329
+ public propertyVersion: Long;
1330
+
1331
+ /**
1332
+ * Creates a new CancelOfferNftMessage instance using the specified properties.
1333
+ * @param [properties] Properties to set
1334
+ * @returns CancelOfferNftMessage instance
1335
+ */
1336
+ public static create(properties?: TW.Aptos.Proto.ICancelOfferNftMessage): TW.Aptos.Proto.CancelOfferNftMessage;
1337
+
1338
+ /**
1339
+ * Encodes the specified CancelOfferNftMessage message. Does not implicitly {@link TW.Aptos.Proto.CancelOfferNftMessage.verify|verify} messages.
1340
+ * @param message CancelOfferNftMessage message or plain object to encode
1341
+ * @param [writer] Writer to encode to
1342
+ * @returns Writer
1343
+ */
1344
+ public static encode(message: TW.Aptos.Proto.ICancelOfferNftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1345
+
1346
+ /**
1347
+ * Decodes a CancelOfferNftMessage message from the specified reader or buffer.
1348
+ * @param reader Reader or buffer to decode from
1349
+ * @param [length] Message length if known beforehand
1350
+ * @returns CancelOfferNftMessage
1351
+ * @throws {Error} If the payload is not a reader or valid buffer
1352
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1353
+ */
1354
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.CancelOfferNftMessage;
1355
+
1356
+ /**
1357
+ * Verifies a CancelOfferNftMessage message.
1358
+ * @param message Plain object to verify
1359
+ * @returns `null` if valid, otherwise the reason why it is not
1360
+ */
1361
+ public static verify(message: { [k: string]: any }): (string|null);
1362
+
1363
+ /**
1364
+ * Creates a CancelOfferNftMessage message from a plain object. Also converts values to their respective internal types.
1365
+ * @param object Plain object
1366
+ * @returns CancelOfferNftMessage
1367
+ */
1368
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.CancelOfferNftMessage;
1369
+
1370
+ /**
1371
+ * Creates a plain object from a CancelOfferNftMessage message. Also converts values to other types if specified.
1372
+ * @param message CancelOfferNftMessage
1373
+ * @param [options] Conversion options
1374
+ * @returns Plain object
1375
+ */
1376
+ public static toObject(message: TW.Aptos.Proto.CancelOfferNftMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1377
+
1378
+ /**
1379
+ * Converts this CancelOfferNftMessage to JSON.
1380
+ * @returns JSON object
1381
+ */
1382
+ public toJSON(): { [k: string]: any };
1383
+ }
1384
+
1385
+ /** Properties of a ClaimNftMessage. */
1386
+ interface IClaimNftMessage {
1387
+
1388
+ /** ClaimNftMessage sender */
1389
+ sender?: (string|null);
1390
+
1391
+ /** ClaimNftMessage creator */
1392
+ creator?: (string|null);
1393
+
1394
+ /** ClaimNftMessage collectionName */
1395
+ collectionName?: (string|null);
1396
+
1397
+ /** ClaimNftMessage name */
1398
+ name?: (string|null);
1399
+
1400
+ /** ClaimNftMessage propertyVersion */
1401
+ propertyVersion?: (Long|null);
1402
+ }
1403
+
1404
+ /** Represents a ClaimNftMessage. */
1405
+ class ClaimNftMessage implements IClaimNftMessage {
1406
+
1407
+ /**
1408
+ * Constructs a new ClaimNftMessage.
1409
+ * @param [properties] Properties to set
1410
+ */
1411
+ constructor(properties?: TW.Aptos.Proto.IClaimNftMessage);
1412
+
1413
+ /** ClaimNftMessage sender. */
1414
+ public sender: string;
1415
+
1416
+ /** ClaimNftMessage creator. */
1417
+ public creator: string;
1418
+
1419
+ /** ClaimNftMessage collectionName. */
1420
+ public collectionName: string;
1421
+
1422
+ /** ClaimNftMessage name. */
1423
+ public name: string;
1424
+
1425
+ /** ClaimNftMessage propertyVersion. */
1426
+ public propertyVersion: Long;
1427
+
1428
+ /**
1429
+ * Creates a new ClaimNftMessage instance using the specified properties.
1430
+ * @param [properties] Properties to set
1431
+ * @returns ClaimNftMessage instance
1432
+ */
1433
+ public static create(properties?: TW.Aptos.Proto.IClaimNftMessage): TW.Aptos.Proto.ClaimNftMessage;
1434
+
1435
+ /**
1436
+ * Encodes the specified ClaimNftMessage message. Does not implicitly {@link TW.Aptos.Proto.ClaimNftMessage.verify|verify} messages.
1437
+ * @param message ClaimNftMessage message or plain object to encode
1438
+ * @param [writer] Writer to encode to
1439
+ * @returns Writer
1440
+ */
1441
+ public static encode(message: TW.Aptos.Proto.IClaimNftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1442
+
1443
+ /**
1444
+ * Decodes a ClaimNftMessage message from the specified reader or buffer.
1445
+ * @param reader Reader or buffer to decode from
1446
+ * @param [length] Message length if known beforehand
1447
+ * @returns ClaimNftMessage
1448
+ * @throws {Error} If the payload is not a reader or valid buffer
1449
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1450
+ */
1451
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.ClaimNftMessage;
1452
+
1453
+ /**
1454
+ * Verifies a ClaimNftMessage message.
1455
+ * @param message Plain object to verify
1456
+ * @returns `null` if valid, otherwise the reason why it is not
1457
+ */
1458
+ public static verify(message: { [k: string]: any }): (string|null);
1459
+
1460
+ /**
1461
+ * Creates a ClaimNftMessage message from a plain object. Also converts values to their respective internal types.
1462
+ * @param object Plain object
1463
+ * @returns ClaimNftMessage
1464
+ */
1465
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.ClaimNftMessage;
1466
+
1467
+ /**
1468
+ * Creates a plain object from a ClaimNftMessage message. Also converts values to other types if specified.
1469
+ * @param message ClaimNftMessage
1470
+ * @param [options] Conversion options
1471
+ * @returns Plain object
1472
+ */
1473
+ public static toObject(message: TW.Aptos.Proto.ClaimNftMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1474
+
1475
+ /**
1476
+ * Converts this ClaimNftMessage to JSON.
1477
+ * @returns JSON object
1478
+ */
1479
+ public toJSON(): { [k: string]: any };
1480
+ }
1481
+
1482
+ /** Properties of a NftMessage. */
1483
+ interface INftMessage {
1484
+
1485
+ /** NftMessage offerNft */
1486
+ offerNft?: (TW.Aptos.Proto.IOfferNftMessage|null);
1487
+
1488
+ /** NftMessage cancelOfferNft */
1489
+ cancelOfferNft?: (TW.Aptos.Proto.ICancelOfferNftMessage|null);
1490
+
1491
+ /** NftMessage claimNft */
1492
+ claimNft?: (TW.Aptos.Proto.IClaimNftMessage|null);
1493
+ }
1494
+
1495
+ /** Represents a NftMessage. */
1496
+ class NftMessage implements INftMessage {
1497
+
1498
+ /**
1499
+ * Constructs a new NftMessage.
1500
+ * @param [properties] Properties to set
1501
+ */
1502
+ constructor(properties?: TW.Aptos.Proto.INftMessage);
1503
+
1504
+ /** NftMessage offerNft. */
1505
+ public offerNft?: (TW.Aptos.Proto.IOfferNftMessage|null);
1506
+
1507
+ /** NftMessage cancelOfferNft. */
1508
+ public cancelOfferNft?: (TW.Aptos.Proto.ICancelOfferNftMessage|null);
1509
+
1510
+ /** NftMessage claimNft. */
1511
+ public claimNft?: (TW.Aptos.Proto.IClaimNftMessage|null);
1512
+
1513
+ /** NftMessage nftTransactionPayload. */
1514
+ public nftTransactionPayload?: ("offerNft"|"cancelOfferNft"|"claimNft");
1515
+
1516
+ /**
1517
+ * Creates a new NftMessage instance using the specified properties.
1518
+ * @param [properties] Properties to set
1519
+ * @returns NftMessage instance
1520
+ */
1521
+ public static create(properties?: TW.Aptos.Proto.INftMessage): TW.Aptos.Proto.NftMessage;
1522
+
1523
+ /**
1524
+ * Encodes the specified NftMessage message. Does not implicitly {@link TW.Aptos.Proto.NftMessage.verify|verify} messages.
1525
+ * @param message NftMessage message or plain object to encode
1526
+ * @param [writer] Writer to encode to
1527
+ * @returns Writer
1528
+ */
1529
+ public static encode(message: TW.Aptos.Proto.INftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
1530
+
1531
+ /**
1532
+ * Decodes a NftMessage message from the specified reader or buffer.
1533
+ * @param reader Reader or buffer to decode from
1534
+ * @param [length] Message length if known beforehand
1535
+ * @returns NftMessage
1536
+ * @throws {Error} If the payload is not a reader or valid buffer
1537
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1538
+ */
1539
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.NftMessage;
1540
+
1541
+ /**
1542
+ * Verifies a NftMessage message.
1543
+ * @param message Plain object to verify
1544
+ * @returns `null` if valid, otherwise the reason why it is not
1545
+ */
1546
+ public static verify(message: { [k: string]: any }): (string|null);
1547
+
1548
+ /**
1549
+ * Creates a NftMessage message from a plain object. Also converts values to their respective internal types.
1550
+ * @param object Plain object
1551
+ * @returns NftMessage
1552
+ */
1553
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.NftMessage;
1554
+
1555
+ /**
1556
+ * Creates a plain object from a NftMessage message. Also converts values to other types if specified.
1557
+ * @param message NftMessage
1558
+ * @param [options] Conversion options
1559
+ * @returns Plain object
1560
+ */
1561
+ public static toObject(message: TW.Aptos.Proto.NftMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1562
+
1563
+ /**
1564
+ * Converts this NftMessage to JSON.
1565
+ * @returns JSON object
1566
+ */
1567
+ public toJSON(): { [k: string]: any };
1568
+ }
1569
+
1570
+ /** Properties of a SigningInput. */
1571
+ interface ISigningInput {
1572
+
1573
+ /** SigningInput sender */
1574
+ sender?: (string|null);
1575
+
1576
+ /** SigningInput sequenceNumber */
1577
+ sequenceNumber?: (Long|null);
1578
+
1579
+ /** SigningInput transfer */
1580
+ transfer?: (TW.Aptos.Proto.ITransferMessage|null);
1581
+
1582
+ /** SigningInput tokenTransfer */
1583
+ tokenTransfer?: (TW.Aptos.Proto.ITokenTransferMessage|null);
1584
+
1585
+ /** SigningInput createAccount */
1586
+ createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
1587
+
1588
+ /** SigningInput nftMessage */
1589
+ nftMessage?: (TW.Aptos.Proto.INftMessage|null);
1590
+
1591
+ /** SigningInput maxGasAmount */
1592
+ maxGasAmount?: (Long|null);
1593
+
1594
+ /** SigningInput gasUnitPrice */
1595
+ gasUnitPrice?: (Long|null);
1596
+
1597
+ /** SigningInput expirationTimestampSecs */
1598
+ expirationTimestampSecs?: (Long|null);
1599
+
1600
+ /** SigningInput chainId */
1601
+ chainId?: (number|null);
1602
+
1603
+ /** SigningInput privateKey */
1604
+ privateKey?: (Uint8Array|null);
1605
+
1606
+ /** SigningInput anyEncoded */
1607
+ anyEncoded?: (string|null);
1608
+ }
1609
+
1610
+ /** Represents a SigningInput. */
1611
+ class SigningInput implements ISigningInput {
1612
+
1613
+ /**
1614
+ * Constructs a new SigningInput.
1615
+ * @param [properties] Properties to set
1616
+ */
1617
+ constructor(properties?: TW.Aptos.Proto.ISigningInput);
1618
+
1619
+ /** SigningInput sender. */
1620
+ public sender: string;
1621
+
1622
+ /** SigningInput sequenceNumber. */
1623
+ public sequenceNumber: Long;
1624
+
1625
+ /** SigningInput transfer. */
1626
+ public transfer?: (TW.Aptos.Proto.ITransferMessage|null);
1627
+
1628
+ /** SigningInput tokenTransfer. */
1629
+ public tokenTransfer?: (TW.Aptos.Proto.ITokenTransferMessage|null);
1630
+
1631
+ /** SigningInput createAccount. */
1632
+ public createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
1633
+
1634
+ /** SigningInput nftMessage. */
1635
+ public nftMessage?: (TW.Aptos.Proto.INftMessage|null);
1636
+
1637
+ /** SigningInput maxGasAmount. */
1638
+ public maxGasAmount: Long;
1639
+
1640
+ /** SigningInput gasUnitPrice. */
1641
+ public gasUnitPrice: Long;
1642
+
1643
+ /** SigningInput expirationTimestampSecs. */
1644
+ public expirationTimestampSecs: Long;
1645
+
1646
+ /** SigningInput chainId. */
1647
+ public chainId: number;
1648
+
1649
+ /** SigningInput privateKey. */
1650
+ public privateKey: Uint8Array;
1651
+
1652
+ /** SigningInput anyEncoded. */
1653
+ public anyEncoded: string;
1654
+
1655
+ /** SigningInput transactionPayload. */
1656
+ public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount"|"nftMessage");
1657
+
1658
+ /**
1659
+ * Creates a new SigningInput instance using the specified properties.
1660
+ * @param [properties] Properties to set
1661
+ * @returns SigningInput instance
1662
+ */
1663
+ public static create(properties?: TW.Aptos.Proto.ISigningInput): TW.Aptos.Proto.SigningInput;
1664
+
1665
+ /**
1666
+ * Encodes the specified SigningInput message. Does not implicitly {@link TW.Aptos.Proto.SigningInput.verify|verify} messages.
1667
+ * @param message SigningInput message or plain object to encode
1668
+ * @param [writer] Writer to encode to
1669
+ * @returns Writer
1670
+ */
1671
+ public static encode(message: TW.Aptos.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
1672
+
1673
+ /**
1674
+ * Decodes a SigningInput message from the specified reader or buffer.
1675
+ * @param reader Reader or buffer to decode from
1676
+ * @param [length] Message length if known beforehand
1677
+ * @returns SigningInput
1678
+ * @throws {Error} If the payload is not a reader or valid buffer
1679
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1680
+ */
1681
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.SigningInput;
1682
+
1683
+ /**
1684
+ * Verifies a SigningInput message.
1685
+ * @param message Plain object to verify
1686
+ * @returns `null` if valid, otherwise the reason why it is not
1687
+ */
1688
+ public static verify(message: { [k: string]: any }): (string|null);
1689
+
1690
+ /**
1691
+ * Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
1692
+ * @param object Plain object
1693
+ * @returns SigningInput
1694
+ */
1695
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.SigningInput;
1696
+
1697
+ /**
1698
+ * Creates a plain object from a SigningInput message. Also converts values to other types if specified.
1699
+ * @param message SigningInput
1700
+ * @param [options] Conversion options
1701
+ * @returns Plain object
1702
+ */
1703
+ public static toObject(message: TW.Aptos.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
1704
+
1705
+ /**
1706
+ * Converts this SigningInput to JSON.
1707
+ * @returns JSON object
1708
+ */
1709
+ public toJSON(): { [k: string]: any };
1710
+ }
1711
+
1712
+ /** Properties of a TransactionAuthenticator. */
1713
+ interface ITransactionAuthenticator {
1714
+
1715
+ /** TransactionAuthenticator signature */
1716
+ signature?: (Uint8Array|null);
1717
+
1718
+ /** TransactionAuthenticator publicKey */
1719
+ publicKey?: (Uint8Array|null);
1720
+ }
1721
+
1722
+ /** Represents a TransactionAuthenticator. */
1723
+ class TransactionAuthenticator implements ITransactionAuthenticator {
1724
+
1725
+ /**
1726
+ * Constructs a new TransactionAuthenticator.
1727
+ * @param [properties] Properties to set
1728
+ */
1729
+ constructor(properties?: TW.Aptos.Proto.ITransactionAuthenticator);
1730
+
1731
+ /** TransactionAuthenticator signature. */
1732
+ public signature: Uint8Array;
1733
+
1734
+ /** TransactionAuthenticator publicKey. */
1735
+ public publicKey: Uint8Array;
1736
+
1737
+ /**
1738
+ * Creates a new TransactionAuthenticator instance using the specified properties.
1739
+ * @param [properties] Properties to set
1740
+ * @returns TransactionAuthenticator instance
1741
+ */
1742
+ public static create(properties?: TW.Aptos.Proto.ITransactionAuthenticator): TW.Aptos.Proto.TransactionAuthenticator;
1743
+
1744
+ /**
1745
+ * Encodes the specified TransactionAuthenticator message. Does not implicitly {@link TW.Aptos.Proto.TransactionAuthenticator.verify|verify} messages.
1746
+ * @param message TransactionAuthenticator message or plain object to encode
1747
+ * @param [writer] Writer to encode to
1748
+ * @returns Writer
1749
+ */
1750
+ public static encode(message: TW.Aptos.Proto.ITransactionAuthenticator, writer?: $protobuf.Writer): $protobuf.Writer;
1751
+
1752
+ /**
1753
+ * Decodes a TransactionAuthenticator message from the specified reader or buffer.
1754
+ * @param reader Reader or buffer to decode from
1755
+ * @param [length] Message length if known beforehand
1756
+ * @returns TransactionAuthenticator
1757
+ * @throws {Error} If the payload is not a reader or valid buffer
1758
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1759
+ */
1760
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.TransactionAuthenticator;
1761
+
1762
+ /**
1763
+ * Verifies a TransactionAuthenticator message.
1764
+ * @param message Plain object to verify
1765
+ * @returns `null` if valid, otherwise the reason why it is not
1766
+ */
1767
+ public static verify(message: { [k: string]: any }): (string|null);
1768
+
1769
+ /**
1770
+ * Creates a TransactionAuthenticator message from a plain object. Also converts values to their respective internal types.
1771
+ * @param object Plain object
1772
+ * @returns TransactionAuthenticator
1773
+ */
1774
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.TransactionAuthenticator;
1775
+
1776
+ /**
1777
+ * Creates a plain object from a TransactionAuthenticator message. Also converts values to other types if specified.
1778
+ * @param message TransactionAuthenticator
1779
+ * @param [options] Conversion options
1780
+ * @returns Plain object
1781
+ */
1782
+ public static toObject(message: TW.Aptos.Proto.TransactionAuthenticator, options?: $protobuf.IConversionOptions): { [k: string]: any };
1783
+
1784
+ /**
1785
+ * Converts this TransactionAuthenticator to JSON.
1786
+ * @returns JSON object
1787
+ */
1788
+ public toJSON(): { [k: string]: any };
1789
+ }
1790
+
1791
+ /** Properties of a SigningOutput. */
1792
+ interface ISigningOutput {
1793
+
1794
+ /** The raw transaction (bytes) */
1795
+ rawTxn?: (Uint8Array|null);
1796
+
1797
+ /** Public key and signature to authenticate */
1798
+ authenticator?: (TW.Aptos.Proto.ITransactionAuthenticator|null);
1799
+
1800
+ /** Signed and encoded transaction bytes. */
1801
+ encoded?: (Uint8Array|null);
1802
+
1803
+ /** SigningOutput json */
1804
+ json?: (string|null);
1805
+ }
1806
+
1807
+ /** Represents a SigningOutput. */
1808
+ class SigningOutput implements ISigningOutput {
1809
+
1810
+ /**
1811
+ * Constructs a new SigningOutput.
1812
+ * @param [properties] Properties to set
1813
+ */
1814
+ constructor(properties?: TW.Aptos.Proto.ISigningOutput);
1815
+
1816
+ /** The raw transaction (bytes) */
1817
+ public rawTxn: Uint8Array;
1818
+
1819
+ /** Public key and signature to authenticate */
1820
+ public authenticator?: (TW.Aptos.Proto.ITransactionAuthenticator|null);
1821
+
1822
+ /** Signed and encoded transaction bytes. */
1823
+ public encoded: Uint8Array;
1824
+
1825
+ /** SigningOutput json. */
1826
+ public json: string;
1827
+
1828
+ /**
1829
+ * Creates a new SigningOutput instance using the specified properties.
1830
+ * @param [properties] Properties to set
1831
+ * @returns SigningOutput instance
1832
+ */
1833
+ public static create(properties?: TW.Aptos.Proto.ISigningOutput): TW.Aptos.Proto.SigningOutput;
1834
+
1835
+ /**
1836
+ * Encodes the specified SigningOutput message. Does not implicitly {@link TW.Aptos.Proto.SigningOutput.verify|verify} messages.
1837
+ * @param message SigningOutput message or plain object to encode
1838
+ * @param [writer] Writer to encode to
1839
+ * @returns Writer
1840
+ */
1841
+ public static encode(message: TW.Aptos.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
1842
+
1843
+ /**
1844
+ * Decodes a SigningOutput message from the specified reader or buffer.
1845
+ * @param reader Reader or buffer to decode from
1846
+ * @param [length] Message length if known beforehand
1847
+ * @returns SigningOutput
1848
+ * @throws {Error} If the payload is not a reader or valid buffer
1849
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1850
+ */
1851
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.SigningOutput;
1852
+
1853
+ /**
1854
+ * Verifies a SigningOutput message.
1855
+ * @param message Plain object to verify
1856
+ * @returns `null` if valid, otherwise the reason why it is not
1857
+ */
1858
+ public static verify(message: { [k: string]: any }): (string|null);
1859
+
1860
+ /**
1861
+ * Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
1862
+ * @param object Plain object
1863
+ * @returns SigningOutput
1864
+ */
1865
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.SigningOutput;
1866
+
1867
+ /**
1868
+ * Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
1869
+ * @param message SigningOutput
1870
+ * @param [options] Conversion options
1871
+ * @returns Plain object
1872
+ */
1873
+ public static toObject(message: TW.Aptos.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
1874
+
1875
+ /**
1876
+ * Converts this SigningOutput to JSON.
1877
+ * @returns JSON object
1878
+ */
1879
+ public toJSON(): { [k: string]: any };
1880
+ }
1881
+ }
1882
+ }
1883
+
857
1884
  /** Namespace Binance. */
858
1885
  namespace Binance {
859
1886
 
@@ -1048,76 +2075,6 @@ export namespace TW {
1048
2075
  public toJSON(): { [k: string]: any };
1049
2076
  }
1050
2077
 
1051
- namespace Signature {
1052
-
1053
- /** Properties of a PubKey. */
1054
- interface IPubKey {
1055
- }
1056
-
1057
- /** Represents a PubKey. */
1058
- class PubKey implements IPubKey {
1059
-
1060
- /**
1061
- * Constructs a new PubKey.
1062
- * @param [properties] Properties to set
1063
- */
1064
- constructor(properties?: TW.Binance.Proto.Signature.IPubKey);
1065
-
1066
- /**
1067
- * Creates a new PubKey instance using the specified properties.
1068
- * @param [properties] Properties to set
1069
- * @returns PubKey instance
1070
- */
1071
- public static create(properties?: TW.Binance.Proto.Signature.IPubKey): TW.Binance.Proto.Signature.PubKey;
1072
-
1073
- /**
1074
- * Encodes the specified PubKey message. Does not implicitly {@link TW.Binance.Proto.Signature.PubKey.verify|verify} messages.
1075
- * @param message PubKey message or plain object to encode
1076
- * @param [writer] Writer to encode to
1077
- * @returns Writer
1078
- */
1079
- public static encode(message: TW.Binance.Proto.Signature.IPubKey, writer?: $protobuf.Writer): $protobuf.Writer;
1080
-
1081
- /**
1082
- * Decodes a PubKey message from the specified reader or buffer.
1083
- * @param reader Reader or buffer to decode from
1084
- * @param [length] Message length if known beforehand
1085
- * @returns PubKey
1086
- * @throws {Error} If the payload is not a reader or valid buffer
1087
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1088
- */
1089
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Binance.Proto.Signature.PubKey;
1090
-
1091
- /**
1092
- * Verifies a PubKey message.
1093
- * @param message Plain object to verify
1094
- * @returns `null` if valid, otherwise the reason why it is not
1095
- */
1096
- public static verify(message: { [k: string]: any }): (string|null);
1097
-
1098
- /**
1099
- * Creates a PubKey message from a plain object. Also converts values to their respective internal types.
1100
- * @param object Plain object
1101
- * @returns PubKey
1102
- */
1103
- public static fromObject(object: { [k: string]: any }): TW.Binance.Proto.Signature.PubKey;
1104
-
1105
- /**
1106
- * Creates a plain object from a PubKey message. Also converts values to other types if specified.
1107
- * @param message PubKey
1108
- * @param [options] Conversion options
1109
- * @returns Plain object
1110
- */
1111
- public static toObject(message: TW.Binance.Proto.Signature.PubKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
1112
-
1113
- /**
1114
- * Converts this PubKey to JSON.
1115
- * @returns JSON object
1116
- */
1117
- public toJSON(): { [k: string]: any };
1118
- }
1119
- }
1120
-
1121
2078
  /** Properties of a TradeOrder. */
1122
2079
  interface ITradeOrder {
1123
2080
 
@@ -3313,10 +4270,10 @@ export namespace TW {
3313
4270
  /** SigningOutput encoded */
3314
4271
  encoded?: (Uint8Array|null);
3315
4272
 
3316
- /** error code, 0 is ok, other codes will be treated as errors */
4273
+ /** SigningOutput error */
3317
4274
  error?: (TW.Common.Proto.SigningError|null);
3318
4275
 
3319
- /** error description */
4276
+ /** SigningOutput errorMessage */
3320
4277
  errorMessage?: (string|null);
3321
4278
  }
3322
4279
 
@@ -3332,10 +4289,10 @@ export namespace TW {
3332
4289
  /** SigningOutput encoded. */
3333
4290
  public encoded: Uint8Array;
3334
4291
 
3335
- /** error code, 0 is ok, other codes will be treated as errors */
4292
+ /** SigningOutput error. */
3336
4293
  public error: TW.Common.Proto.SigningError;
3337
4294
 
3338
- /** error description */
4295
+ /** SigningOutput errorMessage. */
3339
4296
  public errorMessage: string;
3340
4297
 
3341
4298
  /**
@@ -4228,7 +5185,7 @@ export namespace TW {
4228
5185
  publicKeyHash?: (Uint8Array|null);
4229
5186
  }
4230
5187
 
4231
- /** Represents a HashPublicKey. */
5188
+ /** Pre-image hash to be used for signing */
4232
5189
  class HashPublicKey implements IHashPublicKey {
4233
5190
 
4234
5191
  /**
@@ -7963,10 +8920,10 @@ export namespace TW {
7963
8920
  /** Properties of a Transaction. */
7964
8921
  interface ITransaction {
7965
8922
 
7966
- /** Serialization format */
8923
+ /** Transaction serializeType */
7967
8924
  serializeType?: (number|null);
7968
8925
 
7969
- /** Transaction data format version */
8926
+ /** Transaction version */
7970
8927
  version?: (number|null);
7971
8928
 
7972
8929
  /** Transaction inputs */
@@ -7975,10 +8932,10 @@ export namespace TW {
7975
8932
  /** Transaction outputs */
7976
8933
  outputs?: (TW.Decred.Proto.ITransactionOutput[]|null);
7977
8934
 
7978
- /** The time when a transaction can be spent (usually zero, in which case it has no effect). */
8935
+ /** Transaction lockTime */
7979
8936
  lockTime?: (number|null);
7980
8937
 
7981
- /** The block height at which the transaction expires and is no longer valid. */
8938
+ /** Transaction expiry */
7982
8939
  expiry?: (number|null);
7983
8940
  }
7984
8941
 
@@ -7991,10 +8948,10 @@ export namespace TW {
7991
8948
  */
7992
8949
  constructor(properties?: TW.Decred.Proto.ITransaction);
7993
8950
 
7994
- /** Serialization format */
8951
+ /** Transaction serializeType. */
7995
8952
  public serializeType: number;
7996
8953
 
7997
- /** Transaction data format version */
8954
+ /** Transaction version. */
7998
8955
  public version: number;
7999
8956
 
8000
8957
  /** Transaction inputs. */
@@ -8003,10 +8960,10 @@ export namespace TW {
8003
8960
  /** Transaction outputs. */
8004
8961
  public outputs: TW.Decred.Proto.ITransactionOutput[];
8005
8962
 
8006
- /** The time when a transaction can be spent (usually zero, in which case it has no effect). */
8963
+ /** Transaction lockTime. */
8007
8964
  public lockTime: number;
8008
8965
 
8009
- /** The block height at which the transaction expires and is no longer valid. */
8966
+ /** Transaction expiry. */
8010
8967
  public expiry: number;
8011
8968
 
8012
8969
  /**
@@ -8172,7 +9129,7 @@ export namespace TW {
8172
9129
  /** TransactionOutput value */
8173
9130
  value?: (Long|null);
8174
9131
 
8175
- /** Transaction output version. */
9132
+ /** TransactionOutput version */
8176
9133
  version?: (number|null);
8177
9134
 
8178
9135
  /** TransactionOutput script */
@@ -8191,7 +9148,7 @@ export namespace TW {
8191
9148
  /** TransactionOutput value. */
8192
9149
  public value: Long;
8193
9150
 
8194
- /** Transaction output version. */
9151
+ /** TransactionOutput version. */
8195
9152
  public version: number;
8196
9153
 
8197
9154
  /** TransactionOutput script. */
@@ -10068,10 +11025,10 @@ export namespace TW {
10068
11025
  /** SigningOutput data */
10069
11026
  data?: (Uint8Array|null);
10070
11027
 
10071
- /** error code, 0 is ok, other codes will be treated as errors */
11028
+ /** SigningOutput error */
10072
11029
  error?: (TW.Common.Proto.SigningError|null);
10073
11030
 
10074
- /** error code description */
11031
+ /** SigningOutput errorMessage */
10075
11032
  errorMessage?: (string|null);
10076
11033
  }
10077
11034
 
@@ -10099,10 +11056,10 @@ export namespace TW {
10099
11056
  /** SigningOutput data. */
10100
11057
  public data: Uint8Array;
10101
11058
 
10102
- /** error code, 0 is ok, other codes will be treated as errors */
11059
+ /** SigningOutput error. */
10103
11060
  public error: TW.Common.Proto.SigningError;
10104
11061
 
10105
- /** error code description */
11062
+ /** SigningOutput errorMessage. */
10106
11063
  public errorMessage: string;
10107
11064
 
10108
11065
  /**
@@ -24031,19 +24988,19 @@ export namespace TW {
24031
24988
  /** Recipient address */
24032
24989
  toAddress?: (string|null);
24033
24990
 
24034
- /** Theta token amount to send in wei (256-bit number) */
24991
+ /** Theta token amount to send in wei (uint256, serialized little endian) */
24035
24992
  thetaAmount?: (Uint8Array|null);
24036
24993
 
24037
- /** TFuel token amount to send in wei (256-bit number) */
24994
+ /** TFuel token amount to send in wei (uint256, serialized little endian) */
24038
24995
  tfuelAmount?: (Uint8Array|null);
24039
24996
 
24040
24997
  /** Sequence number of the transaction for the sender address */
24041
24998
  sequence?: (Long|null);
24042
24999
 
24043
- /** Fee amount in TFuel wei for the transaction (256-bit number) */
25000
+ /** Fee amount in TFuel wei for the transaction (uint256, serialized little endian) */
24044
25001
  fee?: (Uint8Array|null);
24045
25002
 
24046
- /** Private key */
25003
+ /** The secret private key used for signing (32 bytes). */
24047
25004
  privateKey?: (Uint8Array|null);
24048
25005
  }
24049
25006
 
@@ -24062,19 +25019,19 @@ export namespace TW {
24062
25019
  /** Recipient address */
24063
25020
  public toAddress: string;
24064
25021
 
24065
- /** Theta token amount to send in wei (256-bit number) */
25022
+ /** Theta token amount to send in wei (uint256, serialized little endian) */
24066
25023
  public thetaAmount: Uint8Array;
24067
25024
 
24068
- /** TFuel token amount to send in wei (256-bit number) */
25025
+ /** TFuel token amount to send in wei (uint256, serialized little endian) */
24069
25026
  public tfuelAmount: Uint8Array;
24070
25027
 
24071
25028
  /** Sequence number of the transaction for the sender address */
24072
25029
  public sequence: Long;
24073
25030
 
24074
- /** Fee amount in TFuel wei for the transaction (256-bit number) */
25031
+ /** Fee amount in TFuel wei for the transaction (uint256, serialized little endian) */
24075
25032
  public fee: Uint8Array;
24076
25033
 
24077
- /** Private key */
25034
+ /** The secret private key used for signing (32 bytes). */
24078
25035
  public privateKey: Uint8Array;
24079
25036
 
24080
25037
  /**
@@ -24141,7 +25098,7 @@ export namespace TW {
24141
25098
  signature?: (Uint8Array|null);
24142
25099
  }
24143
25100
 
24144
- /** Transaction signing output */
25101
+ /** Represents a SigningOutput. */
24145
25102
  class SigningOutput implements ISigningOutput {
24146
25103
 
24147
25104
  /**
@@ -26134,7 +27091,7 @@ export namespace TW {
26134
27091
  /** Recipient address. */
26135
27092
  to?: (string|null);
26136
27093
 
26137
- /** Transaction amount. */
27094
+ /** Transaction amount (uint256, serialized little endian) */
26138
27095
  value?: (Uint8Array|null);
26139
27096
 
26140
27097
  /** Payload data. */
@@ -26153,7 +27110,7 @@ export namespace TW {
26153
27110
  /** Recipient address. */
26154
27111
  public to: string;
26155
27112
 
26156
- /** Transaction amount. */
27113
+ /** Transaction amount (uint256, serialized little endian) */
26157
27114
  public value: Uint8Array;
26158
27115
 
26159
27116
  /** Payload data. */
@@ -26240,7 +27197,7 @@ export namespace TW {
26240
27197
  /** Number set by user. */
26241
27198
  nonce?: (Long|null);
26242
27199
 
26243
- /** SigningInput privateKey */
27200
+ /** The secret private key used for signing (32 bytes). */
26244
27201
  privateKey?: (Uint8Array|null);
26245
27202
  }
26246
27203
 
@@ -26277,7 +27234,7 @@ export namespace TW {
26277
27234
  /** Number set by user. */
26278
27235
  public nonce: Long;
26279
27236
 
26280
- /** SigningInput privateKey. */
27237
+ /** The secret private key used for signing (32 bytes). */
26281
27238
  public privateKey: Uint8Array;
26282
27239
 
26283
27240
  /**