@trustwallet/wallet-core 3.1.9 → 3.1.10

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.
@@ -25223,6 +25223,248 @@ export namespace TW {
25223
25223
  }
25224
25224
  }
25225
25225
 
25226
+ /** Namespace Sui. */
25227
+ namespace Sui {
25228
+
25229
+ /** Namespace Proto. */
25230
+ namespace Proto {
25231
+
25232
+ /** Properties of a SignDirect. */
25233
+ interface ISignDirect {
25234
+
25235
+ /** SignDirect unsignedTxMsg */
25236
+ unsignedTxMsg?: (string|null);
25237
+ }
25238
+
25239
+ /** Represents a SignDirect. */
25240
+ class SignDirect implements ISignDirect {
25241
+
25242
+ /**
25243
+ * Constructs a new SignDirect.
25244
+ * @param [properties] Properties to set
25245
+ */
25246
+ constructor(properties?: TW.Sui.Proto.ISignDirect);
25247
+
25248
+ /** SignDirect unsignedTxMsg. */
25249
+ public unsignedTxMsg: string;
25250
+
25251
+ /**
25252
+ * Creates a new SignDirect instance using the specified properties.
25253
+ * @param [properties] Properties to set
25254
+ * @returns SignDirect instance
25255
+ */
25256
+ public static create(properties?: TW.Sui.Proto.ISignDirect): TW.Sui.Proto.SignDirect;
25257
+
25258
+ /**
25259
+ * Encodes the specified SignDirect message. Does not implicitly {@link TW.Sui.Proto.SignDirect.verify|verify} messages.
25260
+ * @param message SignDirect message or plain object to encode
25261
+ * @param [writer] Writer to encode to
25262
+ * @returns Writer
25263
+ */
25264
+ public static encode(message: TW.Sui.Proto.ISignDirect, writer?: $protobuf.Writer): $protobuf.Writer;
25265
+
25266
+ /**
25267
+ * Decodes a SignDirect message from the specified reader or buffer.
25268
+ * @param reader Reader or buffer to decode from
25269
+ * @param [length] Message length if known beforehand
25270
+ * @returns SignDirect
25271
+ * @throws {Error} If the payload is not a reader or valid buffer
25272
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25273
+ */
25274
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.SignDirect;
25275
+
25276
+ /**
25277
+ * Verifies a SignDirect message.
25278
+ * @param message Plain object to verify
25279
+ * @returns `null` if valid, otherwise the reason why it is not
25280
+ */
25281
+ public static verify(message: { [k: string]: any }): (string|null);
25282
+
25283
+ /**
25284
+ * Creates a SignDirect message from a plain object. Also converts values to their respective internal types.
25285
+ * @param object Plain object
25286
+ * @returns SignDirect
25287
+ */
25288
+ public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.SignDirect;
25289
+
25290
+ /**
25291
+ * Creates a plain object from a SignDirect message. Also converts values to other types if specified.
25292
+ * @param message SignDirect
25293
+ * @param [options] Conversion options
25294
+ * @returns Plain object
25295
+ */
25296
+ public static toObject(message: TW.Sui.Proto.SignDirect, options?: $protobuf.IConversionOptions): { [k: string]: any };
25297
+
25298
+ /**
25299
+ * Converts this SignDirect to JSON.
25300
+ * @returns JSON object
25301
+ */
25302
+ public toJSON(): { [k: string]: any };
25303
+ }
25304
+
25305
+ /** Properties of a SigningInput. */
25306
+ interface ISigningInput {
25307
+
25308
+ /** SigningInput privateKey */
25309
+ privateKey?: (Uint8Array|null);
25310
+
25311
+ /** SigningInput signDirectMessage */
25312
+ signDirectMessage?: (TW.Sui.Proto.ISignDirect|null);
25313
+ }
25314
+
25315
+ /** Represents a SigningInput. */
25316
+ class SigningInput implements ISigningInput {
25317
+
25318
+ /**
25319
+ * Constructs a new SigningInput.
25320
+ * @param [properties] Properties to set
25321
+ */
25322
+ constructor(properties?: TW.Sui.Proto.ISigningInput);
25323
+
25324
+ /** SigningInput privateKey. */
25325
+ public privateKey: Uint8Array;
25326
+
25327
+ /** SigningInput signDirectMessage. */
25328
+ public signDirectMessage?: (TW.Sui.Proto.ISignDirect|null);
25329
+
25330
+ /** SigningInput transactionPayload. */
25331
+ public transactionPayload?: "signDirectMessage";
25332
+
25333
+ /**
25334
+ * Creates a new SigningInput instance using the specified properties.
25335
+ * @param [properties] Properties to set
25336
+ * @returns SigningInput instance
25337
+ */
25338
+ public static create(properties?: TW.Sui.Proto.ISigningInput): TW.Sui.Proto.SigningInput;
25339
+
25340
+ /**
25341
+ * Encodes the specified SigningInput message. Does not implicitly {@link TW.Sui.Proto.SigningInput.verify|verify} messages.
25342
+ * @param message SigningInput message or plain object to encode
25343
+ * @param [writer] Writer to encode to
25344
+ * @returns Writer
25345
+ */
25346
+ public static encode(message: TW.Sui.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
25347
+
25348
+ /**
25349
+ * Decodes a SigningInput message from the specified reader or buffer.
25350
+ * @param reader Reader or buffer to decode from
25351
+ * @param [length] Message length if known beforehand
25352
+ * @returns SigningInput
25353
+ * @throws {Error} If the payload is not a reader or valid buffer
25354
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25355
+ */
25356
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.SigningInput;
25357
+
25358
+ /**
25359
+ * Verifies a SigningInput message.
25360
+ * @param message Plain object to verify
25361
+ * @returns `null` if valid, otherwise the reason why it is not
25362
+ */
25363
+ public static verify(message: { [k: string]: any }): (string|null);
25364
+
25365
+ /**
25366
+ * Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
25367
+ * @param object Plain object
25368
+ * @returns SigningInput
25369
+ */
25370
+ public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.SigningInput;
25371
+
25372
+ /**
25373
+ * Creates a plain object from a SigningInput message. Also converts values to other types if specified.
25374
+ * @param message SigningInput
25375
+ * @param [options] Conversion options
25376
+ * @returns Plain object
25377
+ */
25378
+ public static toObject(message: TW.Sui.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
25379
+
25380
+ /**
25381
+ * Converts this SigningInput to JSON.
25382
+ * @returns JSON object
25383
+ */
25384
+ public toJSON(): { [k: string]: any };
25385
+ }
25386
+
25387
+ /** Properties of a SigningOutput. */
25388
+ interface ISigningOutput {
25389
+
25390
+ /** The raw transaction without indent in base64 */
25391
+ unsignedTx?: (string|null);
25392
+
25393
+ /** The signature encoded in base64 */
25394
+ signature?: (string|null);
25395
+ }
25396
+
25397
+ /** Represents a SigningOutput. */
25398
+ class SigningOutput implements ISigningOutput {
25399
+
25400
+ /**
25401
+ * Constructs a new SigningOutput.
25402
+ * @param [properties] Properties to set
25403
+ */
25404
+ constructor(properties?: TW.Sui.Proto.ISigningOutput);
25405
+
25406
+ /** The raw transaction without indent in base64 */
25407
+ public unsignedTx: string;
25408
+
25409
+ /** The signature encoded in base64 */
25410
+ public signature: string;
25411
+
25412
+ /**
25413
+ * Creates a new SigningOutput instance using the specified properties.
25414
+ * @param [properties] Properties to set
25415
+ * @returns SigningOutput instance
25416
+ */
25417
+ public static create(properties?: TW.Sui.Proto.ISigningOutput): TW.Sui.Proto.SigningOutput;
25418
+
25419
+ /**
25420
+ * Encodes the specified SigningOutput message. Does not implicitly {@link TW.Sui.Proto.SigningOutput.verify|verify} messages.
25421
+ * @param message SigningOutput message or plain object to encode
25422
+ * @param [writer] Writer to encode to
25423
+ * @returns Writer
25424
+ */
25425
+ public static encode(message: TW.Sui.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
25426
+
25427
+ /**
25428
+ * Decodes a SigningOutput message from the specified reader or buffer.
25429
+ * @param reader Reader or buffer to decode from
25430
+ * @param [length] Message length if known beforehand
25431
+ * @returns SigningOutput
25432
+ * @throws {Error} If the payload is not a reader or valid buffer
25433
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
25434
+ */
25435
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.SigningOutput;
25436
+
25437
+ /**
25438
+ * Verifies a SigningOutput message.
25439
+ * @param message Plain object to verify
25440
+ * @returns `null` if valid, otherwise the reason why it is not
25441
+ */
25442
+ public static verify(message: { [k: string]: any }): (string|null);
25443
+
25444
+ /**
25445
+ * Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
25446
+ * @param object Plain object
25447
+ * @returns SigningOutput
25448
+ */
25449
+ public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.SigningOutput;
25450
+
25451
+ /**
25452
+ * Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
25453
+ * @param message SigningOutput
25454
+ * @param [options] Conversion options
25455
+ * @returns Plain object
25456
+ */
25457
+ public static toObject(message: TW.Sui.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
25458
+
25459
+ /**
25460
+ * Converts this SigningOutput to JSON.
25461
+ * @returns JSON object
25462
+ */
25463
+ public toJSON(): { [k: string]: any };
25464
+ }
25465
+ }
25466
+ }
25467
+
25226
25468
  /** Namespace Tezos. */
25227
25469
  namespace Tezos {
25228
25470