@trustwallet/wallet-core 4.1.15 → 4.1.17

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.
@@ -31996,6 +31996,466 @@ export namespace TW {
31996
31996
  }
31997
31997
  }
31998
31998
 
31999
+ /** Namespace Pactus. */
32000
+ namespace Pactus {
32001
+
32002
+ /** Namespace Proto. */
32003
+ namespace Proto {
32004
+
32005
+ /** Properties of a TransactionMessage. */
32006
+ interface ITransactionMessage {
32007
+
32008
+ /** TransactionMessage lockTime */
32009
+ lockTime?: (number|null);
32010
+
32011
+ /** TransactionMessage fee */
32012
+ fee?: (Long|null);
32013
+
32014
+ /** TransactionMessage memo */
32015
+ memo?: (string|null);
32016
+
32017
+ /** TransactionMessage transfer */
32018
+ transfer?: (TW.Pactus.Proto.ITransferPayload|null);
32019
+
32020
+ /** TransactionMessage bond */
32021
+ bond?: (TW.Pactus.Proto.IBondPayload|null);
32022
+ }
32023
+
32024
+ /** Represents a TransactionMessage. */
32025
+ class TransactionMessage implements ITransactionMessage {
32026
+
32027
+ /**
32028
+ * Constructs a new TransactionMessage.
32029
+ * @param [properties] Properties to set
32030
+ */
32031
+ constructor(properties?: TW.Pactus.Proto.ITransactionMessage);
32032
+
32033
+ /** TransactionMessage lockTime. */
32034
+ public lockTime: number;
32035
+
32036
+ /** TransactionMessage fee. */
32037
+ public fee: Long;
32038
+
32039
+ /** TransactionMessage memo. */
32040
+ public memo: string;
32041
+
32042
+ /** TransactionMessage transfer. */
32043
+ public transfer?: (TW.Pactus.Proto.ITransferPayload|null);
32044
+
32045
+ /** TransactionMessage bond. */
32046
+ public bond?: (TW.Pactus.Proto.IBondPayload|null);
32047
+
32048
+ /** TransactionMessage payload. */
32049
+ public payload?: ("transfer"|"bond");
32050
+
32051
+ /**
32052
+ * Creates a new TransactionMessage instance using the specified properties.
32053
+ * @param [properties] Properties to set
32054
+ * @returns TransactionMessage instance
32055
+ */
32056
+ public static create(properties?: TW.Pactus.Proto.ITransactionMessage): TW.Pactus.Proto.TransactionMessage;
32057
+
32058
+ /**
32059
+ * Encodes the specified TransactionMessage message. Does not implicitly {@link TW.Pactus.Proto.TransactionMessage.verify|verify} messages.
32060
+ * @param message TransactionMessage message or plain object to encode
32061
+ * @param [writer] Writer to encode to
32062
+ * @returns Writer
32063
+ */
32064
+ public static encode(message: TW.Pactus.Proto.ITransactionMessage, writer?: $protobuf.Writer): $protobuf.Writer;
32065
+
32066
+ /**
32067
+ * Decodes a TransactionMessage message from the specified reader or buffer.
32068
+ * @param reader Reader or buffer to decode from
32069
+ * @param [length] Message length if known beforehand
32070
+ * @returns TransactionMessage
32071
+ * @throws {Error} If the payload is not a reader or valid buffer
32072
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32073
+ */
32074
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Pactus.Proto.TransactionMessage;
32075
+
32076
+ /**
32077
+ * Verifies a TransactionMessage message.
32078
+ * @param message Plain object to verify
32079
+ * @returns `null` if valid, otherwise the reason why it is not
32080
+ */
32081
+ public static verify(message: { [k: string]: any }): (string|null);
32082
+
32083
+ /**
32084
+ * Creates a TransactionMessage message from a plain object. Also converts values to their respective internal types.
32085
+ * @param object Plain object
32086
+ * @returns TransactionMessage
32087
+ */
32088
+ public static fromObject(object: { [k: string]: any }): TW.Pactus.Proto.TransactionMessage;
32089
+
32090
+ /**
32091
+ * Creates a plain object from a TransactionMessage message. Also converts values to other types if specified.
32092
+ * @param message TransactionMessage
32093
+ * @param [options] Conversion options
32094
+ * @returns Plain object
32095
+ */
32096
+ public static toObject(message: TW.Pactus.Proto.TransactionMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
32097
+
32098
+ /**
32099
+ * Converts this TransactionMessage to JSON.
32100
+ * @returns JSON object
32101
+ */
32102
+ public toJSON(): { [k: string]: any };
32103
+ }
32104
+
32105
+ /** Properties of a TransferPayload. */
32106
+ interface ITransferPayload {
32107
+
32108
+ /** TransferPayload sender */
32109
+ sender?: (string|null);
32110
+
32111
+ /** TransferPayload receiver */
32112
+ receiver?: (string|null);
32113
+
32114
+ /** TransferPayload amount */
32115
+ amount?: (Long|null);
32116
+ }
32117
+
32118
+ /** Represents a TransferPayload. */
32119
+ class TransferPayload implements ITransferPayload {
32120
+
32121
+ /**
32122
+ * Constructs a new TransferPayload.
32123
+ * @param [properties] Properties to set
32124
+ */
32125
+ constructor(properties?: TW.Pactus.Proto.ITransferPayload);
32126
+
32127
+ /** TransferPayload sender. */
32128
+ public sender: string;
32129
+
32130
+ /** TransferPayload receiver. */
32131
+ public receiver: string;
32132
+
32133
+ /** TransferPayload amount. */
32134
+ public amount: Long;
32135
+
32136
+ /**
32137
+ * Creates a new TransferPayload instance using the specified properties.
32138
+ * @param [properties] Properties to set
32139
+ * @returns TransferPayload instance
32140
+ */
32141
+ public static create(properties?: TW.Pactus.Proto.ITransferPayload): TW.Pactus.Proto.TransferPayload;
32142
+
32143
+ /**
32144
+ * Encodes the specified TransferPayload message. Does not implicitly {@link TW.Pactus.Proto.TransferPayload.verify|verify} messages.
32145
+ * @param message TransferPayload message or plain object to encode
32146
+ * @param [writer] Writer to encode to
32147
+ * @returns Writer
32148
+ */
32149
+ public static encode(message: TW.Pactus.Proto.ITransferPayload, writer?: $protobuf.Writer): $protobuf.Writer;
32150
+
32151
+ /**
32152
+ * Decodes a TransferPayload message from the specified reader or buffer.
32153
+ * @param reader Reader or buffer to decode from
32154
+ * @param [length] Message length if known beforehand
32155
+ * @returns TransferPayload
32156
+ * @throws {Error} If the payload is not a reader or valid buffer
32157
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32158
+ */
32159
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Pactus.Proto.TransferPayload;
32160
+
32161
+ /**
32162
+ * Verifies a TransferPayload message.
32163
+ * @param message Plain object to verify
32164
+ * @returns `null` if valid, otherwise the reason why it is not
32165
+ */
32166
+ public static verify(message: { [k: string]: any }): (string|null);
32167
+
32168
+ /**
32169
+ * Creates a TransferPayload message from a plain object. Also converts values to their respective internal types.
32170
+ * @param object Plain object
32171
+ * @returns TransferPayload
32172
+ */
32173
+ public static fromObject(object: { [k: string]: any }): TW.Pactus.Proto.TransferPayload;
32174
+
32175
+ /**
32176
+ * Creates a plain object from a TransferPayload message. Also converts values to other types if specified.
32177
+ * @param message TransferPayload
32178
+ * @param [options] Conversion options
32179
+ * @returns Plain object
32180
+ */
32181
+ public static toObject(message: TW.Pactus.Proto.TransferPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
32182
+
32183
+ /**
32184
+ * Converts this TransferPayload to JSON.
32185
+ * @returns JSON object
32186
+ */
32187
+ public toJSON(): { [k: string]: any };
32188
+ }
32189
+
32190
+ /** Properties of a BondPayload. */
32191
+ interface IBondPayload {
32192
+
32193
+ /** BondPayload sender */
32194
+ sender?: (string|null);
32195
+
32196
+ /** BondPayload receiver */
32197
+ receiver?: (string|null);
32198
+
32199
+ /** BondPayload stake */
32200
+ stake?: (Long|null);
32201
+
32202
+ /** BondPayload publicKey */
32203
+ publicKey?: (string|null);
32204
+ }
32205
+
32206
+ /** Represents a BondPayload. */
32207
+ class BondPayload implements IBondPayload {
32208
+
32209
+ /**
32210
+ * Constructs a new BondPayload.
32211
+ * @param [properties] Properties to set
32212
+ */
32213
+ constructor(properties?: TW.Pactus.Proto.IBondPayload);
32214
+
32215
+ /** BondPayload sender. */
32216
+ public sender: string;
32217
+
32218
+ /** BondPayload receiver. */
32219
+ public receiver: string;
32220
+
32221
+ /** BondPayload stake. */
32222
+ public stake: Long;
32223
+
32224
+ /** BondPayload publicKey. */
32225
+ public publicKey: string;
32226
+
32227
+ /**
32228
+ * Creates a new BondPayload instance using the specified properties.
32229
+ * @param [properties] Properties to set
32230
+ * @returns BondPayload instance
32231
+ */
32232
+ public static create(properties?: TW.Pactus.Proto.IBondPayload): TW.Pactus.Proto.BondPayload;
32233
+
32234
+ /**
32235
+ * Encodes the specified BondPayload message. Does not implicitly {@link TW.Pactus.Proto.BondPayload.verify|verify} messages.
32236
+ * @param message BondPayload message or plain object to encode
32237
+ * @param [writer] Writer to encode to
32238
+ * @returns Writer
32239
+ */
32240
+ public static encode(message: TW.Pactus.Proto.IBondPayload, writer?: $protobuf.Writer): $protobuf.Writer;
32241
+
32242
+ /**
32243
+ * Decodes a BondPayload message from the specified reader or buffer.
32244
+ * @param reader Reader or buffer to decode from
32245
+ * @param [length] Message length if known beforehand
32246
+ * @returns BondPayload
32247
+ * @throws {Error} If the payload is not a reader or valid buffer
32248
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32249
+ */
32250
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Pactus.Proto.BondPayload;
32251
+
32252
+ /**
32253
+ * Verifies a BondPayload message.
32254
+ * @param message Plain object to verify
32255
+ * @returns `null` if valid, otherwise the reason why it is not
32256
+ */
32257
+ public static verify(message: { [k: string]: any }): (string|null);
32258
+
32259
+ /**
32260
+ * Creates a BondPayload message from a plain object. Also converts values to their respective internal types.
32261
+ * @param object Plain object
32262
+ * @returns BondPayload
32263
+ */
32264
+ public static fromObject(object: { [k: string]: any }): TW.Pactus.Proto.BondPayload;
32265
+
32266
+ /**
32267
+ * Creates a plain object from a BondPayload message. Also converts values to other types if specified.
32268
+ * @param message BondPayload
32269
+ * @param [options] Conversion options
32270
+ * @returns Plain object
32271
+ */
32272
+ public static toObject(message: TW.Pactus.Proto.BondPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
32273
+
32274
+ /**
32275
+ * Converts this BondPayload to JSON.
32276
+ * @returns JSON object
32277
+ */
32278
+ public toJSON(): { [k: string]: any };
32279
+ }
32280
+
32281
+ /** Properties of a SigningInput. */
32282
+ interface ISigningInput {
32283
+
32284
+ /** SigningInput privateKey */
32285
+ privateKey?: (Uint8Array|null);
32286
+
32287
+ /** SigningInput transaction */
32288
+ transaction?: (TW.Pactus.Proto.ITransactionMessage|null);
32289
+ }
32290
+
32291
+ /** Represents a SigningInput. */
32292
+ class SigningInput implements ISigningInput {
32293
+
32294
+ /**
32295
+ * Constructs a new SigningInput.
32296
+ * @param [properties] Properties to set
32297
+ */
32298
+ constructor(properties?: TW.Pactus.Proto.ISigningInput);
32299
+
32300
+ /** SigningInput privateKey. */
32301
+ public privateKey: Uint8Array;
32302
+
32303
+ /** SigningInput transaction. */
32304
+ public transaction?: (TW.Pactus.Proto.ITransactionMessage|null);
32305
+
32306
+ /**
32307
+ * Creates a new SigningInput instance using the specified properties.
32308
+ * @param [properties] Properties to set
32309
+ * @returns SigningInput instance
32310
+ */
32311
+ public static create(properties?: TW.Pactus.Proto.ISigningInput): TW.Pactus.Proto.SigningInput;
32312
+
32313
+ /**
32314
+ * Encodes the specified SigningInput message. Does not implicitly {@link TW.Pactus.Proto.SigningInput.verify|verify} messages.
32315
+ * @param message SigningInput message or plain object to encode
32316
+ * @param [writer] Writer to encode to
32317
+ * @returns Writer
32318
+ */
32319
+ public static encode(message: TW.Pactus.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
32320
+
32321
+ /**
32322
+ * Decodes a SigningInput message from the specified reader or buffer.
32323
+ * @param reader Reader or buffer to decode from
32324
+ * @param [length] Message length if known beforehand
32325
+ * @returns SigningInput
32326
+ * @throws {Error} If the payload is not a reader or valid buffer
32327
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32328
+ */
32329
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Pactus.Proto.SigningInput;
32330
+
32331
+ /**
32332
+ * Verifies a SigningInput message.
32333
+ * @param message Plain object to verify
32334
+ * @returns `null` if valid, otherwise the reason why it is not
32335
+ */
32336
+ public static verify(message: { [k: string]: any }): (string|null);
32337
+
32338
+ /**
32339
+ * Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
32340
+ * @param object Plain object
32341
+ * @returns SigningInput
32342
+ */
32343
+ public static fromObject(object: { [k: string]: any }): TW.Pactus.Proto.SigningInput;
32344
+
32345
+ /**
32346
+ * Creates a plain object from a SigningInput message. Also converts values to other types if specified.
32347
+ * @param message SigningInput
32348
+ * @param [options] Conversion options
32349
+ * @returns Plain object
32350
+ */
32351
+ public static toObject(message: TW.Pactus.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
32352
+
32353
+ /**
32354
+ * Converts this SigningInput to JSON.
32355
+ * @returns JSON object
32356
+ */
32357
+ public toJSON(): { [k: string]: any };
32358
+ }
32359
+
32360
+ /** Properties of a SigningOutput. */
32361
+ interface ISigningOutput {
32362
+
32363
+ /** SigningOutput transactionId */
32364
+ transactionId?: (Uint8Array|null);
32365
+
32366
+ /** SigningOutput signedTransactionData */
32367
+ signedTransactionData?: (Uint8Array|null);
32368
+
32369
+ /** SigningOutput signature */
32370
+ signature?: (Uint8Array|null);
32371
+
32372
+ /** SigningOutput error */
32373
+ error?: (TW.Common.Proto.SigningError|null);
32374
+
32375
+ /** SigningOutput errorMessage */
32376
+ errorMessage?: (string|null);
32377
+ }
32378
+
32379
+ /** Represents a SigningOutput. */
32380
+ class SigningOutput implements ISigningOutput {
32381
+
32382
+ /**
32383
+ * Constructs a new SigningOutput.
32384
+ * @param [properties] Properties to set
32385
+ */
32386
+ constructor(properties?: TW.Pactus.Proto.ISigningOutput);
32387
+
32388
+ /** SigningOutput transactionId. */
32389
+ public transactionId: Uint8Array;
32390
+
32391
+ /** SigningOutput signedTransactionData. */
32392
+ public signedTransactionData: Uint8Array;
32393
+
32394
+ /** SigningOutput signature. */
32395
+ public signature: Uint8Array;
32396
+
32397
+ /** SigningOutput error. */
32398
+ public error: TW.Common.Proto.SigningError;
32399
+
32400
+ /** SigningOutput errorMessage. */
32401
+ public errorMessage: string;
32402
+
32403
+ /**
32404
+ * Creates a new SigningOutput instance using the specified properties.
32405
+ * @param [properties] Properties to set
32406
+ * @returns SigningOutput instance
32407
+ */
32408
+ public static create(properties?: TW.Pactus.Proto.ISigningOutput): TW.Pactus.Proto.SigningOutput;
32409
+
32410
+ /**
32411
+ * Encodes the specified SigningOutput message. Does not implicitly {@link TW.Pactus.Proto.SigningOutput.verify|verify} messages.
32412
+ * @param message SigningOutput message or plain object to encode
32413
+ * @param [writer] Writer to encode to
32414
+ * @returns Writer
32415
+ */
32416
+ public static encode(message: TW.Pactus.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
32417
+
32418
+ /**
32419
+ * Decodes a SigningOutput message from the specified reader or buffer.
32420
+ * @param reader Reader or buffer to decode from
32421
+ * @param [length] Message length if known beforehand
32422
+ * @returns SigningOutput
32423
+ * @throws {Error} If the payload is not a reader or valid buffer
32424
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32425
+ */
32426
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Pactus.Proto.SigningOutput;
32427
+
32428
+ /**
32429
+ * Verifies a SigningOutput message.
32430
+ * @param message Plain object to verify
32431
+ * @returns `null` if valid, otherwise the reason why it is not
32432
+ */
32433
+ public static verify(message: { [k: string]: any }): (string|null);
32434
+
32435
+ /**
32436
+ * Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
32437
+ * @param object Plain object
32438
+ * @returns SigningOutput
32439
+ */
32440
+ public static fromObject(object: { [k: string]: any }): TW.Pactus.Proto.SigningOutput;
32441
+
32442
+ /**
32443
+ * Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
32444
+ * @param message SigningOutput
32445
+ * @param [options] Conversion options
32446
+ * @returns Plain object
32447
+ */
32448
+ public static toObject(message: TW.Pactus.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
32449
+
32450
+ /**
32451
+ * Converts this SigningOutput to JSON.
32452
+ * @returns JSON object
32453
+ */
32454
+ public toJSON(): { [k: string]: any };
32455
+ }
32456
+ }
32457
+ }
32458
+
31999
32459
  /** Namespace Polkadot. */
32000
32460
  namespace Polkadot {
32001
32461
 
@@ -43679,6 +44139,9 @@ export namespace TW {
43679
44139
  /** Transaction feeLimit */
43680
44140
  feeLimit?: (Long|null);
43681
44141
 
44142
+ /** Transaction memo */
44143
+ memo?: (string|null);
44144
+
43682
44145
  /** Transaction transfer */
43683
44146
  transfer?: (TW.Tron.Proto.ITransferContract|null);
43684
44147
 
@@ -43746,6 +44209,9 @@ export namespace TW {
43746
44209
  /** Transaction feeLimit. */
43747
44210
  public feeLimit: Long;
43748
44211
 
44212
+ /** Transaction memo. */
44213
+ public memo: string;
44214
+
43749
44215
  /** Transaction transfer. */
43750
44216
  public transfer?: (TW.Tron.Proto.ITransferContract|null);
43751
44217