@trustwallet/wallet-core 3.0.3 → 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.
- package/dist/generated/core_proto.d.ts +1044 -120
- package/dist/generated/core_proto.js +9658 -7056
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -1
- package/dist/lib/wallet-core.js +148 -160
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/keystore/default-impl.d.ts +19 -0
- package/dist/src/keystore/default-impl.js +127 -0
- package/dist/src/keystore/extension-storage.d.ts +12 -0
- package/dist/src/keystore/extension-storage.js +74 -0
- package/dist/src/keystore/fs-storage.d.ts +10 -0
- package/dist/src/keystore/fs-storage.js +39 -0
- package/dist/src/keystore/index.d.ts +4 -0
- package/dist/src/keystore/index.js +29 -0
- package/dist/src/keystore/types.d.ts +47 -0
- package/dist/src/keystore/types.js +24 -0
- package/dist/{wallet-core.d.ts → src/wallet-core.d.ts} +548 -521
- package/package.json +4 -2
@@ -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
|
|
@@ -1026,96 +1662,26 @@ export namespace TW {
|
|
1026
1662
|
*/
|
1027
1663
|
public static verify(message: { [k: string]: any }): (string|null);
|
1028
1664
|
|
1029
|
-
/**
|
1030
|
-
* Creates a Signature message from a plain object. Also converts values to their respective internal types.
|
1031
|
-
* @param object Plain object
|
1032
|
-
* @returns Signature
|
1033
|
-
*/
|
1034
|
-
public static fromObject(object: { [k: string]: any }): TW.Binance.Proto.Signature;
|
1035
|
-
|
1036
|
-
/**
|
1037
|
-
* Creates a plain object from a Signature message. Also converts values to other types if specified.
|
1038
|
-
* @param message Signature
|
1039
|
-
* @param [options] Conversion options
|
1040
|
-
* @returns Plain object
|
1041
|
-
*/
|
1042
|
-
public static toObject(message: TW.Binance.Proto.Signature, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1043
|
-
|
1044
|
-
/**
|
1045
|
-
* Converts this Signature to JSON.
|
1046
|
-
* @returns JSON object
|
1047
|
-
*/
|
1048
|
-
public toJSON(): { [k: string]: any };
|
1049
|
-
}
|
1050
|
-
|
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;
|
1665
|
+
/**
|
1666
|
+
* Creates a Signature message from a plain object. Also converts values to their respective internal types.
|
1667
|
+
* @param object Plain object
|
1668
|
+
* @returns Signature
|
1669
|
+
*/
|
1670
|
+
public static fromObject(object: { [k: string]: any }): TW.Binance.Proto.Signature;
|
1104
1671
|
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1672
|
+
/**
|
1673
|
+
* Creates a plain object from a Signature message. Also converts values to other types if specified.
|
1674
|
+
* @param message Signature
|
1675
|
+
* @param [options] Conversion options
|
1676
|
+
* @returns Plain object
|
1677
|
+
*/
|
1678
|
+
public static toObject(message: TW.Binance.Proto.Signature, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1112
1679
|
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
}
|
1680
|
+
/**
|
1681
|
+
* Converts this Signature to JSON.
|
1682
|
+
* @returns JSON object
|
1683
|
+
*/
|
1684
|
+
public toJSON(): { [k: string]: any };
|
1119
1685
|
}
|
1120
1686
|
|
1121
1687
|
/** Properties of a TradeOrder. */
|
@@ -3313,10 +3879,10 @@ export namespace TW {
|
|
3313
3879
|
/** SigningOutput encoded */
|
3314
3880
|
encoded?: (Uint8Array|null);
|
3315
3881
|
|
3316
|
-
/** error
|
3882
|
+
/** SigningOutput error */
|
3317
3883
|
error?: (TW.Common.Proto.SigningError|null);
|
3318
3884
|
|
3319
|
-
/**
|
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
|
3901
|
+
/** SigningOutput error. */
|
3336
3902
|
public error: TW.Common.Proto.SigningError;
|
3337
3903
|
|
3338
|
-
/**
|
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
|
-
/**
|
4797
|
+
/** Pre-image hash to be used for signing */
|
4232
4798
|
class HashPublicKey implements IHashPublicKey {
|
4233
4799
|
|
4234
4800
|
/**
|
@@ -4906,6 +5472,328 @@ export namespace TW {
|
|
4906
5472
|
public toJSON(): { [k: string]: any };
|
4907
5473
|
}
|
4908
5474
|
|
5475
|
+
/** Properties of a RegisterStakingKey. */
|
5476
|
+
interface IRegisterStakingKey {
|
5477
|
+
|
5478
|
+
/** RegisterStakingKey stakingAddress */
|
5479
|
+
stakingAddress?: (string|null);
|
5480
|
+
|
5481
|
+
/** RegisterStakingKey depositAmount */
|
5482
|
+
depositAmount?: (Long|null);
|
5483
|
+
}
|
5484
|
+
|
5485
|
+
/** Represents a RegisterStakingKey. */
|
5486
|
+
class RegisterStakingKey implements IRegisterStakingKey {
|
5487
|
+
|
5488
|
+
/**
|
5489
|
+
* Constructs a new RegisterStakingKey.
|
5490
|
+
* @param [properties] Properties to set
|
5491
|
+
*/
|
5492
|
+
constructor(properties?: TW.Cardano.Proto.IRegisterStakingKey);
|
5493
|
+
|
5494
|
+
/** RegisterStakingKey stakingAddress. */
|
5495
|
+
public stakingAddress: string;
|
5496
|
+
|
5497
|
+
/** RegisterStakingKey depositAmount. */
|
5498
|
+
public depositAmount: Long;
|
5499
|
+
|
5500
|
+
/**
|
5501
|
+
* Creates a new RegisterStakingKey instance using the specified properties.
|
5502
|
+
* @param [properties] Properties to set
|
5503
|
+
* @returns RegisterStakingKey instance
|
5504
|
+
*/
|
5505
|
+
public static create(properties?: TW.Cardano.Proto.IRegisterStakingKey): TW.Cardano.Proto.RegisterStakingKey;
|
5506
|
+
|
5507
|
+
/**
|
5508
|
+
* Encodes the specified RegisterStakingKey message. Does not implicitly {@link TW.Cardano.Proto.RegisterStakingKey.verify|verify} messages.
|
5509
|
+
* @param message RegisterStakingKey message or plain object to encode
|
5510
|
+
* @param [writer] Writer to encode to
|
5511
|
+
* @returns Writer
|
5512
|
+
*/
|
5513
|
+
public static encode(message: TW.Cardano.Proto.IRegisterStakingKey, writer?: $protobuf.Writer): $protobuf.Writer;
|
5514
|
+
|
5515
|
+
/**
|
5516
|
+
* Decodes a RegisterStakingKey message from the specified reader or buffer.
|
5517
|
+
* @param reader Reader or buffer to decode from
|
5518
|
+
* @param [length] Message length if known beforehand
|
5519
|
+
* @returns RegisterStakingKey
|
5520
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
5521
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5522
|
+
*/
|
5523
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cardano.Proto.RegisterStakingKey;
|
5524
|
+
|
5525
|
+
/**
|
5526
|
+
* Verifies a RegisterStakingKey message.
|
5527
|
+
* @param message Plain object to verify
|
5528
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
5529
|
+
*/
|
5530
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
5531
|
+
|
5532
|
+
/**
|
5533
|
+
* Creates a RegisterStakingKey message from a plain object. Also converts values to their respective internal types.
|
5534
|
+
* @param object Plain object
|
5535
|
+
* @returns RegisterStakingKey
|
5536
|
+
*/
|
5537
|
+
public static fromObject(object: { [k: string]: any }): TW.Cardano.Proto.RegisterStakingKey;
|
5538
|
+
|
5539
|
+
/**
|
5540
|
+
* Creates a plain object from a RegisterStakingKey message. Also converts values to other types if specified.
|
5541
|
+
* @param message RegisterStakingKey
|
5542
|
+
* @param [options] Conversion options
|
5543
|
+
* @returns Plain object
|
5544
|
+
*/
|
5545
|
+
public static toObject(message: TW.Cardano.Proto.RegisterStakingKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5546
|
+
|
5547
|
+
/**
|
5548
|
+
* Converts this RegisterStakingKey to JSON.
|
5549
|
+
* @returns JSON object
|
5550
|
+
*/
|
5551
|
+
public toJSON(): { [k: string]: any };
|
5552
|
+
}
|
5553
|
+
|
5554
|
+
/** Properties of a DeregisterStakingKey. */
|
5555
|
+
interface IDeregisterStakingKey {
|
5556
|
+
|
5557
|
+
/** DeregisterStakingKey stakingAddress */
|
5558
|
+
stakingAddress?: (string|null);
|
5559
|
+
|
5560
|
+
/** DeregisterStakingKey undepositAmount */
|
5561
|
+
undepositAmount?: (Long|null);
|
5562
|
+
}
|
5563
|
+
|
5564
|
+
/** Represents a DeregisterStakingKey. */
|
5565
|
+
class DeregisterStakingKey implements IDeregisterStakingKey {
|
5566
|
+
|
5567
|
+
/**
|
5568
|
+
* Constructs a new DeregisterStakingKey.
|
5569
|
+
* @param [properties] Properties to set
|
5570
|
+
*/
|
5571
|
+
constructor(properties?: TW.Cardano.Proto.IDeregisterStakingKey);
|
5572
|
+
|
5573
|
+
/** DeregisterStakingKey stakingAddress. */
|
5574
|
+
public stakingAddress: string;
|
5575
|
+
|
5576
|
+
/** DeregisterStakingKey undepositAmount. */
|
5577
|
+
public undepositAmount: Long;
|
5578
|
+
|
5579
|
+
/**
|
5580
|
+
* Creates a new DeregisterStakingKey instance using the specified properties.
|
5581
|
+
* @param [properties] Properties to set
|
5582
|
+
* @returns DeregisterStakingKey instance
|
5583
|
+
*/
|
5584
|
+
public static create(properties?: TW.Cardano.Proto.IDeregisterStakingKey): TW.Cardano.Proto.DeregisterStakingKey;
|
5585
|
+
|
5586
|
+
/**
|
5587
|
+
* Encodes the specified DeregisterStakingKey message. Does not implicitly {@link TW.Cardano.Proto.DeregisterStakingKey.verify|verify} messages.
|
5588
|
+
* @param message DeregisterStakingKey message or plain object to encode
|
5589
|
+
* @param [writer] Writer to encode to
|
5590
|
+
* @returns Writer
|
5591
|
+
*/
|
5592
|
+
public static encode(message: TW.Cardano.Proto.IDeregisterStakingKey, writer?: $protobuf.Writer): $protobuf.Writer;
|
5593
|
+
|
5594
|
+
/**
|
5595
|
+
* Decodes a DeregisterStakingKey message from the specified reader or buffer.
|
5596
|
+
* @param reader Reader or buffer to decode from
|
5597
|
+
* @param [length] Message length if known beforehand
|
5598
|
+
* @returns DeregisterStakingKey
|
5599
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
5600
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5601
|
+
*/
|
5602
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cardano.Proto.DeregisterStakingKey;
|
5603
|
+
|
5604
|
+
/**
|
5605
|
+
* Verifies a DeregisterStakingKey message.
|
5606
|
+
* @param message Plain object to verify
|
5607
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
5608
|
+
*/
|
5609
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
5610
|
+
|
5611
|
+
/**
|
5612
|
+
* Creates a DeregisterStakingKey message from a plain object. Also converts values to their respective internal types.
|
5613
|
+
* @param object Plain object
|
5614
|
+
* @returns DeregisterStakingKey
|
5615
|
+
*/
|
5616
|
+
public static fromObject(object: { [k: string]: any }): TW.Cardano.Proto.DeregisterStakingKey;
|
5617
|
+
|
5618
|
+
/**
|
5619
|
+
* Creates a plain object from a DeregisterStakingKey message. Also converts values to other types if specified.
|
5620
|
+
* @param message DeregisterStakingKey
|
5621
|
+
* @param [options] Conversion options
|
5622
|
+
* @returns Plain object
|
5623
|
+
*/
|
5624
|
+
public static toObject(message: TW.Cardano.Proto.DeregisterStakingKey, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5625
|
+
|
5626
|
+
/**
|
5627
|
+
* Converts this DeregisterStakingKey to JSON.
|
5628
|
+
* @returns JSON object
|
5629
|
+
*/
|
5630
|
+
public toJSON(): { [k: string]: any };
|
5631
|
+
}
|
5632
|
+
|
5633
|
+
/** Properties of a Delegate. */
|
5634
|
+
interface IDelegate {
|
5635
|
+
|
5636
|
+
/** Delegate stakingAddress */
|
5637
|
+
stakingAddress?: (string|null);
|
5638
|
+
|
5639
|
+
/** Delegate poolId */
|
5640
|
+
poolId?: (Uint8Array|null);
|
5641
|
+
|
5642
|
+
/** Delegate depositAmount */
|
5643
|
+
depositAmount?: (Long|null);
|
5644
|
+
}
|
5645
|
+
|
5646
|
+
/** Represents a Delegate. */
|
5647
|
+
class Delegate implements IDelegate {
|
5648
|
+
|
5649
|
+
/**
|
5650
|
+
* Constructs a new Delegate.
|
5651
|
+
* @param [properties] Properties to set
|
5652
|
+
*/
|
5653
|
+
constructor(properties?: TW.Cardano.Proto.IDelegate);
|
5654
|
+
|
5655
|
+
/** Delegate stakingAddress. */
|
5656
|
+
public stakingAddress: string;
|
5657
|
+
|
5658
|
+
/** Delegate poolId. */
|
5659
|
+
public poolId: Uint8Array;
|
5660
|
+
|
5661
|
+
/** Delegate depositAmount. */
|
5662
|
+
public depositAmount: Long;
|
5663
|
+
|
5664
|
+
/**
|
5665
|
+
* Creates a new Delegate instance using the specified properties.
|
5666
|
+
* @param [properties] Properties to set
|
5667
|
+
* @returns Delegate instance
|
5668
|
+
*/
|
5669
|
+
public static create(properties?: TW.Cardano.Proto.IDelegate): TW.Cardano.Proto.Delegate;
|
5670
|
+
|
5671
|
+
/**
|
5672
|
+
* Encodes the specified Delegate message. Does not implicitly {@link TW.Cardano.Proto.Delegate.verify|verify} messages.
|
5673
|
+
* @param message Delegate message or plain object to encode
|
5674
|
+
* @param [writer] Writer to encode to
|
5675
|
+
* @returns Writer
|
5676
|
+
*/
|
5677
|
+
public static encode(message: TW.Cardano.Proto.IDelegate, writer?: $protobuf.Writer): $protobuf.Writer;
|
5678
|
+
|
5679
|
+
/**
|
5680
|
+
* Decodes a Delegate message from the specified reader or buffer.
|
5681
|
+
* @param reader Reader or buffer to decode from
|
5682
|
+
* @param [length] Message length if known beforehand
|
5683
|
+
* @returns Delegate
|
5684
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
5685
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5686
|
+
*/
|
5687
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cardano.Proto.Delegate;
|
5688
|
+
|
5689
|
+
/**
|
5690
|
+
* Verifies a Delegate message.
|
5691
|
+
* @param message Plain object to verify
|
5692
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
5693
|
+
*/
|
5694
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
5695
|
+
|
5696
|
+
/**
|
5697
|
+
* Creates a Delegate message from a plain object. Also converts values to their respective internal types.
|
5698
|
+
* @param object Plain object
|
5699
|
+
* @returns Delegate
|
5700
|
+
*/
|
5701
|
+
public static fromObject(object: { [k: string]: any }): TW.Cardano.Proto.Delegate;
|
5702
|
+
|
5703
|
+
/**
|
5704
|
+
* Creates a plain object from a Delegate message. Also converts values to other types if specified.
|
5705
|
+
* @param message Delegate
|
5706
|
+
* @param [options] Conversion options
|
5707
|
+
* @returns Plain object
|
5708
|
+
*/
|
5709
|
+
public static toObject(message: TW.Cardano.Proto.Delegate, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5710
|
+
|
5711
|
+
/**
|
5712
|
+
* Converts this Delegate to JSON.
|
5713
|
+
* @returns JSON object
|
5714
|
+
*/
|
5715
|
+
public toJSON(): { [k: string]: any };
|
5716
|
+
}
|
5717
|
+
|
5718
|
+
/** Properties of a Withdraw. */
|
5719
|
+
interface IWithdraw {
|
5720
|
+
|
5721
|
+
/** Withdraw stakingAddress */
|
5722
|
+
stakingAddress?: (string|null);
|
5723
|
+
|
5724
|
+
/** Withdraw withdrawAmount */
|
5725
|
+
withdrawAmount?: (Long|null);
|
5726
|
+
}
|
5727
|
+
|
5728
|
+
/** Represents a Withdraw. */
|
5729
|
+
class Withdraw implements IWithdraw {
|
5730
|
+
|
5731
|
+
/**
|
5732
|
+
* Constructs a new Withdraw.
|
5733
|
+
* @param [properties] Properties to set
|
5734
|
+
*/
|
5735
|
+
constructor(properties?: TW.Cardano.Proto.IWithdraw);
|
5736
|
+
|
5737
|
+
/** Withdraw stakingAddress. */
|
5738
|
+
public stakingAddress: string;
|
5739
|
+
|
5740
|
+
/** Withdraw withdrawAmount. */
|
5741
|
+
public withdrawAmount: Long;
|
5742
|
+
|
5743
|
+
/**
|
5744
|
+
* Creates a new Withdraw instance using the specified properties.
|
5745
|
+
* @param [properties] Properties to set
|
5746
|
+
* @returns Withdraw instance
|
5747
|
+
*/
|
5748
|
+
public static create(properties?: TW.Cardano.Proto.IWithdraw): TW.Cardano.Proto.Withdraw;
|
5749
|
+
|
5750
|
+
/**
|
5751
|
+
* Encodes the specified Withdraw message. Does not implicitly {@link TW.Cardano.Proto.Withdraw.verify|verify} messages.
|
5752
|
+
* @param message Withdraw message or plain object to encode
|
5753
|
+
* @param [writer] Writer to encode to
|
5754
|
+
* @returns Writer
|
5755
|
+
*/
|
5756
|
+
public static encode(message: TW.Cardano.Proto.IWithdraw, writer?: $protobuf.Writer): $protobuf.Writer;
|
5757
|
+
|
5758
|
+
/**
|
5759
|
+
* Decodes a Withdraw message from the specified reader or buffer.
|
5760
|
+
* @param reader Reader or buffer to decode from
|
5761
|
+
* @param [length] Message length if known beforehand
|
5762
|
+
* @returns Withdraw
|
5763
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
5764
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5765
|
+
*/
|
5766
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cardano.Proto.Withdraw;
|
5767
|
+
|
5768
|
+
/**
|
5769
|
+
* Verifies a Withdraw message.
|
5770
|
+
* @param message Plain object to verify
|
5771
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
5772
|
+
*/
|
5773
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
5774
|
+
|
5775
|
+
/**
|
5776
|
+
* Creates a Withdraw message from a plain object. Also converts values to their respective internal types.
|
5777
|
+
* @param object Plain object
|
5778
|
+
* @returns Withdraw
|
5779
|
+
*/
|
5780
|
+
public static fromObject(object: { [k: string]: any }): TW.Cardano.Proto.Withdraw;
|
5781
|
+
|
5782
|
+
/**
|
5783
|
+
* Creates a plain object from a Withdraw message. Also converts values to other types if specified.
|
5784
|
+
* @param message Withdraw
|
5785
|
+
* @param [options] Conversion options
|
5786
|
+
* @returns Plain object
|
5787
|
+
*/
|
5788
|
+
public static toObject(message: TW.Cardano.Proto.Withdraw, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
5789
|
+
|
5790
|
+
/**
|
5791
|
+
* Converts this Withdraw to JSON.
|
5792
|
+
* @returns JSON object
|
5793
|
+
*/
|
5794
|
+
public toJSON(): { [k: string]: any };
|
5795
|
+
}
|
5796
|
+
|
4909
5797
|
/** Properties of a TransactionPlan. */
|
4910
5798
|
interface ITransactionPlan {
|
4911
5799
|
|
@@ -4921,6 +5809,12 @@ export namespace TW {
|
|
4921
5809
|
/** TransactionPlan change */
|
4922
5810
|
change?: (Long|null);
|
4923
5811
|
|
5812
|
+
/** TransactionPlan deposit */
|
5813
|
+
deposit?: (Long|null);
|
5814
|
+
|
5815
|
+
/** TransactionPlan undeposit */
|
5816
|
+
undeposit?: (Long|null);
|
5817
|
+
|
4924
5818
|
/** TransactionPlan availableTokens */
|
4925
5819
|
availableTokens?: (TW.Cardano.Proto.ITokenAmount[]|null);
|
4926
5820
|
|
@@ -4958,6 +5852,12 @@ export namespace TW {
|
|
4958
5852
|
/** TransactionPlan change. */
|
4959
5853
|
public change: Long;
|
4960
5854
|
|
5855
|
+
/** TransactionPlan deposit. */
|
5856
|
+
public deposit: Long;
|
5857
|
+
|
5858
|
+
/** TransactionPlan undeposit. */
|
5859
|
+
public undeposit: Long;
|
5860
|
+
|
4961
5861
|
/** TransactionPlan availableTokens. */
|
4962
5862
|
public availableTokens: TW.Cardano.Proto.ITokenAmount[];
|
4963
5863
|
|
@@ -5039,6 +5939,18 @@ export namespace TW {
|
|
5039
5939
|
/** SigningInput transferMessage */
|
5040
5940
|
transferMessage?: (TW.Cardano.Proto.ITransfer|null);
|
5041
5941
|
|
5942
|
+
/** SigningInput registerStakingKey */
|
5943
|
+
registerStakingKey?: (TW.Cardano.Proto.IRegisterStakingKey|null);
|
5944
|
+
|
5945
|
+
/** SigningInput delegate */
|
5946
|
+
delegate?: (TW.Cardano.Proto.IDelegate|null);
|
5947
|
+
|
5948
|
+
/** SigningInput withdraw */
|
5949
|
+
withdraw?: (TW.Cardano.Proto.IWithdraw|null);
|
5950
|
+
|
5951
|
+
/** SigningInput deregisterStakingKey */
|
5952
|
+
deregisterStakingKey?: (TW.Cardano.Proto.IDeregisterStakingKey|null);
|
5953
|
+
|
5042
5954
|
/** SigningInput ttl */
|
5043
5955
|
ttl?: (Long|null);
|
5044
5956
|
|
@@ -5064,6 +5976,18 @@ export namespace TW {
|
|
5064
5976
|
/** SigningInput transferMessage. */
|
5065
5977
|
public transferMessage?: (TW.Cardano.Proto.ITransfer|null);
|
5066
5978
|
|
5979
|
+
/** SigningInput registerStakingKey. */
|
5980
|
+
public registerStakingKey?: (TW.Cardano.Proto.IRegisterStakingKey|null);
|
5981
|
+
|
5982
|
+
/** SigningInput delegate. */
|
5983
|
+
public delegate?: (TW.Cardano.Proto.IDelegate|null);
|
5984
|
+
|
5985
|
+
/** SigningInput withdraw. */
|
5986
|
+
public withdraw?: (TW.Cardano.Proto.IWithdraw|null);
|
5987
|
+
|
5988
|
+
/** SigningInput deregisterStakingKey. */
|
5989
|
+
public deregisterStakingKey?: (TW.Cardano.Proto.IDeregisterStakingKey|null);
|
5990
|
+
|
5067
5991
|
/** SigningInput ttl. */
|
5068
5992
|
public ttl: Long;
|
5069
5993
|
|
@@ -7605,10 +8529,10 @@ export namespace TW {
|
|
7605
8529
|
/** Properties of a Transaction. */
|
7606
8530
|
interface ITransaction {
|
7607
8531
|
|
7608
|
-
/**
|
8532
|
+
/** Transaction serializeType */
|
7609
8533
|
serializeType?: (number|null);
|
7610
8534
|
|
7611
|
-
/** Transaction
|
8535
|
+
/** Transaction version */
|
7612
8536
|
version?: (number|null);
|
7613
8537
|
|
7614
8538
|
/** Transaction inputs */
|
@@ -7617,10 +8541,10 @@ export namespace TW {
|
|
7617
8541
|
/** Transaction outputs */
|
7618
8542
|
outputs?: (TW.Decred.Proto.ITransactionOutput[]|null);
|
7619
8543
|
|
7620
|
-
/**
|
8544
|
+
/** Transaction lockTime */
|
7621
8545
|
lockTime?: (number|null);
|
7622
8546
|
|
7623
|
-
/**
|
8547
|
+
/** Transaction expiry */
|
7624
8548
|
expiry?: (number|null);
|
7625
8549
|
}
|
7626
8550
|
|
@@ -7633,10 +8557,10 @@ export namespace TW {
|
|
7633
8557
|
*/
|
7634
8558
|
constructor(properties?: TW.Decred.Proto.ITransaction);
|
7635
8559
|
|
7636
|
-
/**
|
8560
|
+
/** Transaction serializeType. */
|
7637
8561
|
public serializeType: number;
|
7638
8562
|
|
7639
|
-
/** Transaction
|
8563
|
+
/** Transaction version. */
|
7640
8564
|
public version: number;
|
7641
8565
|
|
7642
8566
|
/** Transaction inputs. */
|
@@ -7645,10 +8569,10 @@ export namespace TW {
|
|
7645
8569
|
/** Transaction outputs. */
|
7646
8570
|
public outputs: TW.Decred.Proto.ITransactionOutput[];
|
7647
8571
|
|
7648
|
-
/**
|
8572
|
+
/** Transaction lockTime. */
|
7649
8573
|
public lockTime: number;
|
7650
8574
|
|
7651
|
-
/**
|
8575
|
+
/** Transaction expiry. */
|
7652
8576
|
public expiry: number;
|
7653
8577
|
|
7654
8578
|
/**
|
@@ -7814,7 +8738,7 @@ export namespace TW {
|
|
7814
8738
|
/** TransactionOutput value */
|
7815
8739
|
value?: (Long|null);
|
7816
8740
|
|
7817
|
-
/**
|
8741
|
+
/** TransactionOutput version */
|
7818
8742
|
version?: (number|null);
|
7819
8743
|
|
7820
8744
|
/** TransactionOutput script */
|
@@ -7833,7 +8757,7 @@ export namespace TW {
|
|
7833
8757
|
/** TransactionOutput value. */
|
7834
8758
|
public value: Long;
|
7835
8759
|
|
7836
|
-
/**
|
8760
|
+
/** TransactionOutput version. */
|
7837
8761
|
public version: number;
|
7838
8762
|
|
7839
8763
|
/** TransactionOutput script. */
|
@@ -9710,10 +10634,10 @@ export namespace TW {
|
|
9710
10634
|
/** SigningOutput data */
|
9711
10635
|
data?: (Uint8Array|null);
|
9712
10636
|
|
9713
|
-
/** error
|
10637
|
+
/** SigningOutput error */
|
9714
10638
|
error?: (TW.Common.Proto.SigningError|null);
|
9715
10639
|
|
9716
|
-
/**
|
10640
|
+
/** SigningOutput errorMessage */
|
9717
10641
|
errorMessage?: (string|null);
|
9718
10642
|
}
|
9719
10643
|
|
@@ -9741,10 +10665,10 @@ export namespace TW {
|
|
9741
10665
|
/** SigningOutput data. */
|
9742
10666
|
public data: Uint8Array;
|
9743
10667
|
|
9744
|
-
/** error
|
10668
|
+
/** SigningOutput error. */
|
9745
10669
|
public error: TW.Common.Proto.SigningError;
|
9746
10670
|
|
9747
|
-
/**
|
10671
|
+
/** SigningOutput errorMessage. */
|
9748
10672
|
public errorMessage: string;
|
9749
10673
|
|
9750
10674
|
/**
|
@@ -23673,19 +24597,19 @@ export namespace TW {
|
|
23673
24597
|
/** Recipient address */
|
23674
24598
|
toAddress?: (string|null);
|
23675
24599
|
|
23676
|
-
/** Theta token amount to send in wei (
|
24600
|
+
/** Theta token amount to send in wei (uint256, serialized little endian) */
|
23677
24601
|
thetaAmount?: (Uint8Array|null);
|
23678
24602
|
|
23679
|
-
/** TFuel token amount to send in wei (
|
24603
|
+
/** TFuel token amount to send in wei (uint256, serialized little endian) */
|
23680
24604
|
tfuelAmount?: (Uint8Array|null);
|
23681
24605
|
|
23682
24606
|
/** Sequence number of the transaction for the sender address */
|
23683
24607
|
sequence?: (Long|null);
|
23684
24608
|
|
23685
|
-
/** Fee amount in TFuel wei for the transaction (
|
24609
|
+
/** Fee amount in TFuel wei for the transaction (uint256, serialized little endian) */
|
23686
24610
|
fee?: (Uint8Array|null);
|
23687
24611
|
|
23688
|
-
/**
|
24612
|
+
/** The secret private key used for signing (32 bytes). */
|
23689
24613
|
privateKey?: (Uint8Array|null);
|
23690
24614
|
}
|
23691
24615
|
|
@@ -23704,19 +24628,19 @@ export namespace TW {
|
|
23704
24628
|
/** Recipient address */
|
23705
24629
|
public toAddress: string;
|
23706
24630
|
|
23707
|
-
/** Theta token amount to send in wei (
|
24631
|
+
/** Theta token amount to send in wei (uint256, serialized little endian) */
|
23708
24632
|
public thetaAmount: Uint8Array;
|
23709
24633
|
|
23710
|
-
/** TFuel token amount to send in wei (
|
24634
|
+
/** TFuel token amount to send in wei (uint256, serialized little endian) */
|
23711
24635
|
public tfuelAmount: Uint8Array;
|
23712
24636
|
|
23713
24637
|
/** Sequence number of the transaction for the sender address */
|
23714
24638
|
public sequence: Long;
|
23715
24639
|
|
23716
|
-
/** Fee amount in TFuel wei for the transaction (
|
24640
|
+
/** Fee amount in TFuel wei for the transaction (uint256, serialized little endian) */
|
23717
24641
|
public fee: Uint8Array;
|
23718
24642
|
|
23719
|
-
/**
|
24643
|
+
/** The secret private key used for signing (32 bytes). */
|
23720
24644
|
public privateKey: Uint8Array;
|
23721
24645
|
|
23722
24646
|
/**
|
@@ -23783,7 +24707,7 @@ export namespace TW {
|
|
23783
24707
|
signature?: (Uint8Array|null);
|
23784
24708
|
}
|
23785
24709
|
|
23786
|
-
/**
|
24710
|
+
/** Represents a SigningOutput. */
|
23787
24711
|
class SigningOutput implements ISigningOutput {
|
23788
24712
|
|
23789
24713
|
/**
|
@@ -25776,7 +26700,7 @@ export namespace TW {
|
|
25776
26700
|
/** Recipient address. */
|
25777
26701
|
to?: (string|null);
|
25778
26702
|
|
25779
|
-
/** Transaction amount
|
26703
|
+
/** Transaction amount (uint256, serialized little endian) */
|
25780
26704
|
value?: (Uint8Array|null);
|
25781
26705
|
|
25782
26706
|
/** Payload data. */
|
@@ -25795,7 +26719,7 @@ export namespace TW {
|
|
25795
26719
|
/** Recipient address. */
|
25796
26720
|
public to: string;
|
25797
26721
|
|
25798
|
-
/** Transaction amount
|
26722
|
+
/** Transaction amount (uint256, serialized little endian) */
|
25799
26723
|
public value: Uint8Array;
|
25800
26724
|
|
25801
26725
|
/** Payload data. */
|
@@ -25882,7 +26806,7 @@ export namespace TW {
|
|
25882
26806
|
/** Number set by user. */
|
25883
26807
|
nonce?: (Long|null);
|
25884
26808
|
|
25885
|
-
/**
|
26809
|
+
/** The secret private key used for signing (32 bytes). */
|
25886
26810
|
privateKey?: (Uint8Array|null);
|
25887
26811
|
}
|
25888
26812
|
|
@@ -25919,7 +26843,7 @@ export namespace TW {
|
|
25919
26843
|
/** Number set by user. */
|
25920
26844
|
public nonce: Long;
|
25921
26845
|
|
25922
|
-
/**
|
26846
|
+
/** The secret private key used for signing (32 bytes). */
|
25923
26847
|
public privateKey: Uint8Array;
|
25924
26848
|
|
25925
26849
|
/**
|