@trustwallet/wallet-core 3.0.4 → 3.0.5

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,642 @@ 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 a SigningInput. */
1186
+ interface ISigningInput {
1187
+
1188
+ /** SigningInput sender */
1189
+ sender?: (string|null);
1190
+
1191
+ /** SigningInput sequenceNumber */
1192
+ sequenceNumber?: (Long|null);
1193
+
1194
+ /** SigningInput transfer */
1195
+ transfer?: (TW.Aptos.Proto.ITransferMessage|null);
1196
+
1197
+ /** SigningInput tokenTransfer */
1198
+ tokenTransfer?: (TW.Aptos.Proto.ITokenTransferMessage|null);
1199
+
1200
+ /** SigningInput createAccount */
1201
+ createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
1202
+
1203
+ /** SigningInput maxGasAmount */
1204
+ maxGasAmount?: (Long|null);
1205
+
1206
+ /** SigningInput gasUnitPrice */
1207
+ gasUnitPrice?: (Long|null);
1208
+
1209
+ /** SigningInput expirationTimestampSecs */
1210
+ expirationTimestampSecs?: (Long|null);
1211
+
1212
+ /** SigningInput chainId */
1213
+ chainId?: (number|null);
1214
+
1215
+ /** SigningInput privateKey */
1216
+ privateKey?: (Uint8Array|null);
1217
+
1218
+ /** SigningInput anyEncoded */
1219
+ anyEncoded?: (string|null);
1220
+ }
1221
+
1222
+ /** Represents a SigningInput. */
1223
+ class SigningInput implements ISigningInput {
1224
+
1225
+ /**
1226
+ * Constructs a new SigningInput.
1227
+ * @param [properties] Properties to set
1228
+ */
1229
+ constructor(properties?: TW.Aptos.Proto.ISigningInput);
1230
+
1231
+ /** SigningInput sender. */
1232
+ public sender: string;
1233
+
1234
+ /** SigningInput sequenceNumber. */
1235
+ public sequenceNumber: Long;
1236
+
1237
+ /** SigningInput transfer. */
1238
+ public transfer?: (TW.Aptos.Proto.ITransferMessage|null);
1239
+
1240
+ /** SigningInput tokenTransfer. */
1241
+ public tokenTransfer?: (TW.Aptos.Proto.ITokenTransferMessage|null);
1242
+
1243
+ /** SigningInput createAccount. */
1244
+ public createAccount?: (TW.Aptos.Proto.ICreateAccountMessage|null);
1245
+
1246
+ /** SigningInput maxGasAmount. */
1247
+ public maxGasAmount: Long;
1248
+
1249
+ /** SigningInput gasUnitPrice. */
1250
+ public gasUnitPrice: Long;
1251
+
1252
+ /** SigningInput expirationTimestampSecs. */
1253
+ public expirationTimestampSecs: Long;
1254
+
1255
+ /** SigningInput chainId. */
1256
+ public chainId: number;
1257
+
1258
+ /** SigningInput privateKey. */
1259
+ public privateKey: Uint8Array;
1260
+
1261
+ /** SigningInput anyEncoded. */
1262
+ public anyEncoded: string;
1263
+
1264
+ /** SigningInput transactionPayload. */
1265
+ public transactionPayload?: ("transfer"|"tokenTransfer"|"createAccount");
1266
+
1267
+ /**
1268
+ * Creates a new SigningInput instance using the specified properties.
1269
+ * @param [properties] Properties to set
1270
+ * @returns SigningInput instance
1271
+ */
1272
+ public static create(properties?: TW.Aptos.Proto.ISigningInput): TW.Aptos.Proto.SigningInput;
1273
+
1274
+ /**
1275
+ * Encodes the specified SigningInput message. Does not implicitly {@link TW.Aptos.Proto.SigningInput.verify|verify} messages.
1276
+ * @param message SigningInput message or plain object to encode
1277
+ * @param [writer] Writer to encode to
1278
+ * @returns Writer
1279
+ */
1280
+ public static encode(message: TW.Aptos.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
1281
+
1282
+ /**
1283
+ * Decodes a SigningInput message from the specified reader or buffer.
1284
+ * @param reader Reader or buffer to decode from
1285
+ * @param [length] Message length if known beforehand
1286
+ * @returns SigningInput
1287
+ * @throws {Error} If the payload is not a reader or valid buffer
1288
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1289
+ */
1290
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.SigningInput;
1291
+
1292
+ /**
1293
+ * Verifies a SigningInput message.
1294
+ * @param message Plain object to verify
1295
+ * @returns `null` if valid, otherwise the reason why it is not
1296
+ */
1297
+ public static verify(message: { [k: string]: any }): (string|null);
1298
+
1299
+ /**
1300
+ * Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
1301
+ * @param object Plain object
1302
+ * @returns SigningInput
1303
+ */
1304
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.SigningInput;
1305
+
1306
+ /**
1307
+ * Creates a plain object from a SigningInput message. Also converts values to other types if specified.
1308
+ * @param message SigningInput
1309
+ * @param [options] Conversion options
1310
+ * @returns Plain object
1311
+ */
1312
+ public static toObject(message: TW.Aptos.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
1313
+
1314
+ /**
1315
+ * Converts this SigningInput to JSON.
1316
+ * @returns JSON object
1317
+ */
1318
+ public toJSON(): { [k: string]: any };
1319
+ }
1320
+
1321
+ /** Properties of a TransactionAuthenticator. */
1322
+ interface ITransactionAuthenticator {
1323
+
1324
+ /** TransactionAuthenticator signature */
1325
+ signature?: (Uint8Array|null);
1326
+
1327
+ /** TransactionAuthenticator publicKey */
1328
+ publicKey?: (Uint8Array|null);
1329
+ }
1330
+
1331
+ /** Represents a TransactionAuthenticator. */
1332
+ class TransactionAuthenticator implements ITransactionAuthenticator {
1333
+
1334
+ /**
1335
+ * Constructs a new TransactionAuthenticator.
1336
+ * @param [properties] Properties to set
1337
+ */
1338
+ constructor(properties?: TW.Aptos.Proto.ITransactionAuthenticator);
1339
+
1340
+ /** TransactionAuthenticator signature. */
1341
+ public signature: Uint8Array;
1342
+
1343
+ /** TransactionAuthenticator publicKey. */
1344
+ public publicKey: Uint8Array;
1345
+
1346
+ /**
1347
+ * Creates a new TransactionAuthenticator instance using the specified properties.
1348
+ * @param [properties] Properties to set
1349
+ * @returns TransactionAuthenticator instance
1350
+ */
1351
+ public static create(properties?: TW.Aptos.Proto.ITransactionAuthenticator): TW.Aptos.Proto.TransactionAuthenticator;
1352
+
1353
+ /**
1354
+ * Encodes the specified TransactionAuthenticator message. Does not implicitly {@link TW.Aptos.Proto.TransactionAuthenticator.verify|verify} messages.
1355
+ * @param message TransactionAuthenticator message or plain object to encode
1356
+ * @param [writer] Writer to encode to
1357
+ * @returns Writer
1358
+ */
1359
+ public static encode(message: TW.Aptos.Proto.ITransactionAuthenticator, writer?: $protobuf.Writer): $protobuf.Writer;
1360
+
1361
+ /**
1362
+ * Decodes a TransactionAuthenticator message from the specified reader or buffer.
1363
+ * @param reader Reader or buffer to decode from
1364
+ * @param [length] Message length if known beforehand
1365
+ * @returns TransactionAuthenticator
1366
+ * @throws {Error} If the payload is not a reader or valid buffer
1367
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1368
+ */
1369
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.TransactionAuthenticator;
1370
+
1371
+ /**
1372
+ * Verifies a TransactionAuthenticator message.
1373
+ * @param message Plain object to verify
1374
+ * @returns `null` if valid, otherwise the reason why it is not
1375
+ */
1376
+ public static verify(message: { [k: string]: any }): (string|null);
1377
+
1378
+ /**
1379
+ * Creates a TransactionAuthenticator message from a plain object. Also converts values to their respective internal types.
1380
+ * @param object Plain object
1381
+ * @returns TransactionAuthenticator
1382
+ */
1383
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.TransactionAuthenticator;
1384
+
1385
+ /**
1386
+ * Creates a plain object from a TransactionAuthenticator message. Also converts values to other types if specified.
1387
+ * @param message TransactionAuthenticator
1388
+ * @param [options] Conversion options
1389
+ * @returns Plain object
1390
+ */
1391
+ public static toObject(message: TW.Aptos.Proto.TransactionAuthenticator, options?: $protobuf.IConversionOptions): { [k: string]: any };
1392
+
1393
+ /**
1394
+ * Converts this TransactionAuthenticator to JSON.
1395
+ * @returns JSON object
1396
+ */
1397
+ public toJSON(): { [k: string]: any };
1398
+ }
1399
+
1400
+ /** Properties of a SigningOutput. */
1401
+ interface ISigningOutput {
1402
+
1403
+ /** The raw transaction (bytes) */
1404
+ rawTxn?: (Uint8Array|null);
1405
+
1406
+ /** Public key and signature to authenticate */
1407
+ authenticator?: (TW.Aptos.Proto.ITransactionAuthenticator|null);
1408
+
1409
+ /** Signed and encoded transaction bytes. */
1410
+ encoded?: (Uint8Array|null);
1411
+
1412
+ /** SigningOutput json */
1413
+ json?: (string|null);
1414
+ }
1415
+
1416
+ /** Represents a SigningOutput. */
1417
+ class SigningOutput implements ISigningOutput {
1418
+
1419
+ /**
1420
+ * Constructs a new SigningOutput.
1421
+ * @param [properties] Properties to set
1422
+ */
1423
+ constructor(properties?: TW.Aptos.Proto.ISigningOutput);
1424
+
1425
+ /** The raw transaction (bytes) */
1426
+ public rawTxn: Uint8Array;
1427
+
1428
+ /** Public key and signature to authenticate */
1429
+ public authenticator?: (TW.Aptos.Proto.ITransactionAuthenticator|null);
1430
+
1431
+ /** Signed and encoded transaction bytes. */
1432
+ public encoded: Uint8Array;
1433
+
1434
+ /** SigningOutput json. */
1435
+ public json: string;
1436
+
1437
+ /**
1438
+ * Creates a new SigningOutput instance using the specified properties.
1439
+ * @param [properties] Properties to set
1440
+ * @returns SigningOutput instance
1441
+ */
1442
+ public static create(properties?: TW.Aptos.Proto.ISigningOutput): TW.Aptos.Proto.SigningOutput;
1443
+
1444
+ /**
1445
+ * Encodes the specified SigningOutput message. Does not implicitly {@link TW.Aptos.Proto.SigningOutput.verify|verify} messages.
1446
+ * @param message SigningOutput message or plain object to encode
1447
+ * @param [writer] Writer to encode to
1448
+ * @returns Writer
1449
+ */
1450
+ public static encode(message: TW.Aptos.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
1451
+
1452
+ /**
1453
+ * Decodes a SigningOutput message from the specified reader or buffer.
1454
+ * @param reader Reader or buffer to decode from
1455
+ * @param [length] Message length if known beforehand
1456
+ * @returns SigningOutput
1457
+ * @throws {Error} If the payload is not a reader or valid buffer
1458
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1459
+ */
1460
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Aptos.Proto.SigningOutput;
1461
+
1462
+ /**
1463
+ * Verifies a SigningOutput message.
1464
+ * @param message Plain object to verify
1465
+ * @returns `null` if valid, otherwise the reason why it is not
1466
+ */
1467
+ public static verify(message: { [k: string]: any }): (string|null);
1468
+
1469
+ /**
1470
+ * Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
1471
+ * @param object Plain object
1472
+ * @returns SigningOutput
1473
+ */
1474
+ public static fromObject(object: { [k: string]: any }): TW.Aptos.Proto.SigningOutput;
1475
+
1476
+ /**
1477
+ * Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
1478
+ * @param message SigningOutput
1479
+ * @param [options] Conversion options
1480
+ * @returns Plain object
1481
+ */
1482
+ public static toObject(message: TW.Aptos.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
1483
+
1484
+ /**
1485
+ * Converts this SigningOutput to JSON.
1486
+ * @returns JSON object
1487
+ */
1488
+ public toJSON(): { [k: string]: any };
1489
+ }
1490
+ }
1491
+ }
1492
+
857
1493
  /** Namespace Binance. */
858
1494
  namespace Binance {
859
1495
 
@@ -1048,76 +1684,6 @@ export namespace TW {
1048
1684
  public toJSON(): { [k: string]: any };
1049
1685
  }
1050
1686
 
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
1687
  /** Properties of a TradeOrder. */
1122
1688
  interface ITradeOrder {
1123
1689
 
@@ -3313,10 +3879,10 @@ export namespace TW {
3313
3879
  /** SigningOutput encoded */
3314
3880
  encoded?: (Uint8Array|null);
3315
3881
 
3316
- /** error code, 0 is ok, other codes will be treated as errors */
3882
+ /** SigningOutput error */
3317
3883
  error?: (TW.Common.Proto.SigningError|null);
3318
3884
 
3319
- /** error description */
3885
+ /** SigningOutput errorMessage */
3320
3886
  errorMessage?: (string|null);
3321
3887
  }
3322
3888
 
@@ -3332,10 +3898,10 @@ export namespace TW {
3332
3898
  /** SigningOutput encoded. */
3333
3899
  public encoded: Uint8Array;
3334
3900
 
3335
- /** error code, 0 is ok, other codes will be treated as errors */
3901
+ /** SigningOutput error. */
3336
3902
  public error: TW.Common.Proto.SigningError;
3337
3903
 
3338
- /** error description */
3904
+ /** SigningOutput errorMessage. */
3339
3905
  public errorMessage: string;
3340
3906
 
3341
3907
  /**
@@ -4228,7 +4794,7 @@ export namespace TW {
4228
4794
  publicKeyHash?: (Uint8Array|null);
4229
4795
  }
4230
4796
 
4231
- /** Represents a HashPublicKey. */
4797
+ /** Pre-image hash to be used for signing */
4232
4798
  class HashPublicKey implements IHashPublicKey {
4233
4799
 
4234
4800
  /**
@@ -7963,10 +8529,10 @@ export namespace TW {
7963
8529
  /** Properties of a Transaction. */
7964
8530
  interface ITransaction {
7965
8531
 
7966
- /** Serialization format */
8532
+ /** Transaction serializeType */
7967
8533
  serializeType?: (number|null);
7968
8534
 
7969
- /** Transaction data format version */
8535
+ /** Transaction version */
7970
8536
  version?: (number|null);
7971
8537
 
7972
8538
  /** Transaction inputs */
@@ -7975,10 +8541,10 @@ export namespace TW {
7975
8541
  /** Transaction outputs */
7976
8542
  outputs?: (TW.Decred.Proto.ITransactionOutput[]|null);
7977
8543
 
7978
- /** The time when a transaction can be spent (usually zero, in which case it has no effect). */
8544
+ /** Transaction lockTime */
7979
8545
  lockTime?: (number|null);
7980
8546
 
7981
- /** The block height at which the transaction expires and is no longer valid. */
8547
+ /** Transaction expiry */
7982
8548
  expiry?: (number|null);
7983
8549
  }
7984
8550
 
@@ -7991,10 +8557,10 @@ export namespace TW {
7991
8557
  */
7992
8558
  constructor(properties?: TW.Decred.Proto.ITransaction);
7993
8559
 
7994
- /** Serialization format */
8560
+ /** Transaction serializeType. */
7995
8561
  public serializeType: number;
7996
8562
 
7997
- /** Transaction data format version */
8563
+ /** Transaction version. */
7998
8564
  public version: number;
7999
8565
 
8000
8566
  /** Transaction inputs. */
@@ -8003,10 +8569,10 @@ export namespace TW {
8003
8569
  /** Transaction outputs. */
8004
8570
  public outputs: TW.Decred.Proto.ITransactionOutput[];
8005
8571
 
8006
- /** The time when a transaction can be spent (usually zero, in which case it has no effect). */
8572
+ /** Transaction lockTime. */
8007
8573
  public lockTime: number;
8008
8574
 
8009
- /** The block height at which the transaction expires and is no longer valid. */
8575
+ /** Transaction expiry. */
8010
8576
  public expiry: number;
8011
8577
 
8012
8578
  /**
@@ -8172,7 +8738,7 @@ export namespace TW {
8172
8738
  /** TransactionOutput value */
8173
8739
  value?: (Long|null);
8174
8740
 
8175
- /** Transaction output version. */
8741
+ /** TransactionOutput version */
8176
8742
  version?: (number|null);
8177
8743
 
8178
8744
  /** TransactionOutput script */
@@ -8191,7 +8757,7 @@ export namespace TW {
8191
8757
  /** TransactionOutput value. */
8192
8758
  public value: Long;
8193
8759
 
8194
- /** Transaction output version. */
8760
+ /** TransactionOutput version. */
8195
8761
  public version: number;
8196
8762
 
8197
8763
  /** TransactionOutput script. */
@@ -10068,10 +10634,10 @@ export namespace TW {
10068
10634
  /** SigningOutput data */
10069
10635
  data?: (Uint8Array|null);
10070
10636
 
10071
- /** error code, 0 is ok, other codes will be treated as errors */
10637
+ /** SigningOutput error */
10072
10638
  error?: (TW.Common.Proto.SigningError|null);
10073
10639
 
10074
- /** error code description */
10640
+ /** SigningOutput errorMessage */
10075
10641
  errorMessage?: (string|null);
10076
10642
  }
10077
10643
 
@@ -10099,10 +10665,10 @@ export namespace TW {
10099
10665
  /** SigningOutput data. */
10100
10666
  public data: Uint8Array;
10101
10667
 
10102
- /** error code, 0 is ok, other codes will be treated as errors */
10668
+ /** SigningOutput error. */
10103
10669
  public error: TW.Common.Proto.SigningError;
10104
10670
 
10105
- /** error code description */
10671
+ /** SigningOutput errorMessage. */
10106
10672
  public errorMessage: string;
10107
10673
 
10108
10674
  /**
@@ -24031,19 +24597,19 @@ export namespace TW {
24031
24597
  /** Recipient address */
24032
24598
  toAddress?: (string|null);
24033
24599
 
24034
- /** Theta token amount to send in wei (256-bit number) */
24600
+ /** Theta token amount to send in wei (uint256, serialized little endian) */
24035
24601
  thetaAmount?: (Uint8Array|null);
24036
24602
 
24037
- /** TFuel token amount to send in wei (256-bit number) */
24603
+ /** TFuel token amount to send in wei (uint256, serialized little endian) */
24038
24604
  tfuelAmount?: (Uint8Array|null);
24039
24605
 
24040
24606
  /** Sequence number of the transaction for the sender address */
24041
24607
  sequence?: (Long|null);
24042
24608
 
24043
- /** Fee amount in TFuel wei for the transaction (256-bit number) */
24609
+ /** Fee amount in TFuel wei for the transaction (uint256, serialized little endian) */
24044
24610
  fee?: (Uint8Array|null);
24045
24611
 
24046
- /** Private key */
24612
+ /** The secret private key used for signing (32 bytes). */
24047
24613
  privateKey?: (Uint8Array|null);
24048
24614
  }
24049
24615
 
@@ -24062,19 +24628,19 @@ export namespace TW {
24062
24628
  /** Recipient address */
24063
24629
  public toAddress: string;
24064
24630
 
24065
- /** Theta token amount to send in wei (256-bit number) */
24631
+ /** Theta token amount to send in wei (uint256, serialized little endian) */
24066
24632
  public thetaAmount: Uint8Array;
24067
24633
 
24068
- /** TFuel token amount to send in wei (256-bit number) */
24634
+ /** TFuel token amount to send in wei (uint256, serialized little endian) */
24069
24635
  public tfuelAmount: Uint8Array;
24070
24636
 
24071
24637
  /** Sequence number of the transaction for the sender address */
24072
24638
  public sequence: Long;
24073
24639
 
24074
- /** Fee amount in TFuel wei for the transaction (256-bit number) */
24640
+ /** Fee amount in TFuel wei for the transaction (uint256, serialized little endian) */
24075
24641
  public fee: Uint8Array;
24076
24642
 
24077
- /** Private key */
24643
+ /** The secret private key used for signing (32 bytes). */
24078
24644
  public privateKey: Uint8Array;
24079
24645
 
24080
24646
  /**
@@ -24141,7 +24707,7 @@ export namespace TW {
24141
24707
  signature?: (Uint8Array|null);
24142
24708
  }
24143
24709
 
24144
- /** Transaction signing output */
24710
+ /** Represents a SigningOutput. */
24145
24711
  class SigningOutput implements ISigningOutput {
24146
24712
 
24147
24713
  /**
@@ -26134,7 +26700,7 @@ export namespace TW {
26134
26700
  /** Recipient address. */
26135
26701
  to?: (string|null);
26136
26702
 
26137
- /** Transaction amount. */
26703
+ /** Transaction amount (uint256, serialized little endian) */
26138
26704
  value?: (Uint8Array|null);
26139
26705
 
26140
26706
  /** Payload data. */
@@ -26153,7 +26719,7 @@ export namespace TW {
26153
26719
  /** Recipient address. */
26154
26720
  public to: string;
26155
26721
 
26156
- /** Transaction amount. */
26722
+ /** Transaction amount (uint256, serialized little endian) */
26157
26723
  public value: Uint8Array;
26158
26724
 
26159
26725
  /** Payload data. */
@@ -26240,7 +26806,7 @@ export namespace TW {
26240
26806
  /** Number set by user. */
26241
26807
  nonce?: (Long|null);
26242
26808
 
26243
- /** SigningInput privateKey */
26809
+ /** The secret private key used for signing (32 bytes). */
26244
26810
  privateKey?: (Uint8Array|null);
26245
26811
  }
26246
26812
 
@@ -26277,7 +26843,7 @@ export namespace TW {
26277
26843
  /** Number set by user. */
26278
26844
  public nonce: Long;
26279
26845
 
26280
- /** SigningInput privateKey. */
26846
+ /** The secret private key used for signing (32 bytes). */
26281
26847
  public privateKey: Uint8Array;
26282
26848
 
26283
26849
  /**