@trustwallet/wallet-core 3.0.9 → 3.1.0

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.
@@ -13919,6 +13919,527 @@ export namespace TW {
13919
13919
  }
13920
13920
  }
13921
13921
 
13922
+ /** Namespace Hedera. */
13923
+ namespace Hedera {
13924
+
13925
+ /** Namespace Proto. */
13926
+ namespace Proto {
13927
+
13928
+ /** Properties of a Timestamp. */
13929
+ interface ITimestamp {
13930
+
13931
+ /** Timestamp seconds */
13932
+ seconds?: (Long|null);
13933
+
13934
+ /** Timestamp nanos */
13935
+ nanos?: (number|null);
13936
+ }
13937
+
13938
+ /** Represents a Timestamp. */
13939
+ class Timestamp implements ITimestamp {
13940
+
13941
+ /**
13942
+ * Constructs a new Timestamp.
13943
+ * @param [properties] Properties to set
13944
+ */
13945
+ constructor(properties?: TW.Hedera.Proto.ITimestamp);
13946
+
13947
+ /** Timestamp seconds. */
13948
+ public seconds: Long;
13949
+
13950
+ /** Timestamp nanos. */
13951
+ public nanos: number;
13952
+
13953
+ /**
13954
+ * Creates a new Timestamp instance using the specified properties.
13955
+ * @param [properties] Properties to set
13956
+ * @returns Timestamp instance
13957
+ */
13958
+ public static create(properties?: TW.Hedera.Proto.ITimestamp): TW.Hedera.Proto.Timestamp;
13959
+
13960
+ /**
13961
+ * Encodes the specified Timestamp message. Does not implicitly {@link TW.Hedera.Proto.Timestamp.verify|verify} messages.
13962
+ * @param message Timestamp message or plain object to encode
13963
+ * @param [writer] Writer to encode to
13964
+ * @returns Writer
13965
+ */
13966
+ public static encode(message: TW.Hedera.Proto.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
13967
+
13968
+ /**
13969
+ * Decodes a Timestamp message from the specified reader or buffer.
13970
+ * @param reader Reader or buffer to decode from
13971
+ * @param [length] Message length if known beforehand
13972
+ * @returns Timestamp
13973
+ * @throws {Error} If the payload is not a reader or valid buffer
13974
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13975
+ */
13976
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Hedera.Proto.Timestamp;
13977
+
13978
+ /**
13979
+ * Verifies a Timestamp message.
13980
+ * @param message Plain object to verify
13981
+ * @returns `null` if valid, otherwise the reason why it is not
13982
+ */
13983
+ public static verify(message: { [k: string]: any }): (string|null);
13984
+
13985
+ /**
13986
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
13987
+ * @param object Plain object
13988
+ * @returns Timestamp
13989
+ */
13990
+ public static fromObject(object: { [k: string]: any }): TW.Hedera.Proto.Timestamp;
13991
+
13992
+ /**
13993
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
13994
+ * @param message Timestamp
13995
+ * @param [options] Conversion options
13996
+ * @returns Plain object
13997
+ */
13998
+ public static toObject(message: TW.Hedera.Proto.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
13999
+
14000
+ /**
14001
+ * Converts this Timestamp to JSON.
14002
+ * @returns JSON object
14003
+ */
14004
+ public toJSON(): { [k: string]: any };
14005
+ }
14006
+
14007
+ /** Properties of a TransactionID. */
14008
+ interface ITransactionID {
14009
+
14010
+ /** TransactionID transactionValidStart */
14011
+ transactionValidStart?: (TW.Hedera.Proto.ITimestamp|null);
14012
+
14013
+ /** TransactionID accountID */
14014
+ accountID?: (string|null);
14015
+
14016
+ /** TransactionID scheduled */
14017
+ scheduled?: (boolean|null);
14018
+
14019
+ /** TransactionID nonce */
14020
+ nonce?: (number|null);
14021
+ }
14022
+
14023
+ /** Represents a TransactionID. */
14024
+ class TransactionID implements ITransactionID {
14025
+
14026
+ /**
14027
+ * Constructs a new TransactionID.
14028
+ * @param [properties] Properties to set
14029
+ */
14030
+ constructor(properties?: TW.Hedera.Proto.ITransactionID);
14031
+
14032
+ /** TransactionID transactionValidStart. */
14033
+ public transactionValidStart?: (TW.Hedera.Proto.ITimestamp|null);
14034
+
14035
+ /** TransactionID accountID. */
14036
+ public accountID: string;
14037
+
14038
+ /** TransactionID scheduled. */
14039
+ public scheduled: boolean;
14040
+
14041
+ /** TransactionID nonce. */
14042
+ public nonce: number;
14043
+
14044
+ /**
14045
+ * Creates a new TransactionID instance using the specified properties.
14046
+ * @param [properties] Properties to set
14047
+ * @returns TransactionID instance
14048
+ */
14049
+ public static create(properties?: TW.Hedera.Proto.ITransactionID): TW.Hedera.Proto.TransactionID;
14050
+
14051
+ /**
14052
+ * Encodes the specified TransactionID message. Does not implicitly {@link TW.Hedera.Proto.TransactionID.verify|verify} messages.
14053
+ * @param message TransactionID message or plain object to encode
14054
+ * @param [writer] Writer to encode to
14055
+ * @returns Writer
14056
+ */
14057
+ public static encode(message: TW.Hedera.Proto.ITransactionID, writer?: $protobuf.Writer): $protobuf.Writer;
14058
+
14059
+ /**
14060
+ * Decodes a TransactionID message from the specified reader or buffer.
14061
+ * @param reader Reader or buffer to decode from
14062
+ * @param [length] Message length if known beforehand
14063
+ * @returns TransactionID
14064
+ * @throws {Error} If the payload is not a reader or valid buffer
14065
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14066
+ */
14067
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Hedera.Proto.TransactionID;
14068
+
14069
+ /**
14070
+ * Verifies a TransactionID message.
14071
+ * @param message Plain object to verify
14072
+ * @returns `null` if valid, otherwise the reason why it is not
14073
+ */
14074
+ public static verify(message: { [k: string]: any }): (string|null);
14075
+
14076
+ /**
14077
+ * Creates a TransactionID message from a plain object. Also converts values to their respective internal types.
14078
+ * @param object Plain object
14079
+ * @returns TransactionID
14080
+ */
14081
+ public static fromObject(object: { [k: string]: any }): TW.Hedera.Proto.TransactionID;
14082
+
14083
+ /**
14084
+ * Creates a plain object from a TransactionID message. Also converts values to other types if specified.
14085
+ * @param message TransactionID
14086
+ * @param [options] Conversion options
14087
+ * @returns Plain object
14088
+ */
14089
+ public static toObject(message: TW.Hedera.Proto.TransactionID, options?: $protobuf.IConversionOptions): { [k: string]: any };
14090
+
14091
+ /**
14092
+ * Converts this TransactionID to JSON.
14093
+ * @returns JSON object
14094
+ */
14095
+ public toJSON(): { [k: string]: any };
14096
+ }
14097
+
14098
+ /** Properties of a TransferMessage. */
14099
+ interface ITransferMessage {
14100
+
14101
+ /** TransferMessage from */
14102
+ from?: (string|null);
14103
+
14104
+ /** TransferMessage to */
14105
+ to?: (string|null);
14106
+
14107
+ /** TransferMessage amount */
14108
+ amount?: (Long|null);
14109
+ }
14110
+
14111
+ /** Represents a TransferMessage. */
14112
+ class TransferMessage implements ITransferMessage {
14113
+
14114
+ /**
14115
+ * Constructs a new TransferMessage.
14116
+ * @param [properties] Properties to set
14117
+ */
14118
+ constructor(properties?: TW.Hedera.Proto.ITransferMessage);
14119
+
14120
+ /** TransferMessage from. */
14121
+ public from: string;
14122
+
14123
+ /** TransferMessage to. */
14124
+ public to: string;
14125
+
14126
+ /** TransferMessage amount. */
14127
+ public amount: Long;
14128
+
14129
+ /**
14130
+ * Creates a new TransferMessage instance using the specified properties.
14131
+ * @param [properties] Properties to set
14132
+ * @returns TransferMessage instance
14133
+ */
14134
+ public static create(properties?: TW.Hedera.Proto.ITransferMessage): TW.Hedera.Proto.TransferMessage;
14135
+
14136
+ /**
14137
+ * Encodes the specified TransferMessage message. Does not implicitly {@link TW.Hedera.Proto.TransferMessage.verify|verify} messages.
14138
+ * @param message TransferMessage message or plain object to encode
14139
+ * @param [writer] Writer to encode to
14140
+ * @returns Writer
14141
+ */
14142
+ public static encode(message: TW.Hedera.Proto.ITransferMessage, writer?: $protobuf.Writer): $protobuf.Writer;
14143
+
14144
+ /**
14145
+ * Decodes a TransferMessage message from the specified reader or buffer.
14146
+ * @param reader Reader or buffer to decode from
14147
+ * @param [length] Message length if known beforehand
14148
+ * @returns TransferMessage
14149
+ * @throws {Error} If the payload is not a reader or valid buffer
14150
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14151
+ */
14152
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Hedera.Proto.TransferMessage;
14153
+
14154
+ /**
14155
+ * Verifies a TransferMessage message.
14156
+ * @param message Plain object to verify
14157
+ * @returns `null` if valid, otherwise the reason why it is not
14158
+ */
14159
+ public static verify(message: { [k: string]: any }): (string|null);
14160
+
14161
+ /**
14162
+ * Creates a TransferMessage message from a plain object. Also converts values to their respective internal types.
14163
+ * @param object Plain object
14164
+ * @returns TransferMessage
14165
+ */
14166
+ public static fromObject(object: { [k: string]: any }): TW.Hedera.Proto.TransferMessage;
14167
+
14168
+ /**
14169
+ * Creates a plain object from a TransferMessage message. Also converts values to other types if specified.
14170
+ * @param message TransferMessage
14171
+ * @param [options] Conversion options
14172
+ * @returns Plain object
14173
+ */
14174
+ public static toObject(message: TW.Hedera.Proto.TransferMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
14175
+
14176
+ /**
14177
+ * Converts this TransferMessage to JSON.
14178
+ * @returns JSON object
14179
+ */
14180
+ public toJSON(): { [k: string]: any };
14181
+ }
14182
+
14183
+ /** Properties of a TransactionBody. */
14184
+ interface ITransactionBody {
14185
+
14186
+ /** TransactionBody transactionID */
14187
+ transactionID?: (TW.Hedera.Proto.ITransactionID|null);
14188
+
14189
+ /** TransactionBody nodeAccountID */
14190
+ nodeAccountID?: (string|null);
14191
+
14192
+ /** TransactionBody transactionFee */
14193
+ transactionFee?: (Long|null);
14194
+
14195
+ /** TransactionBody transactionValidDuration */
14196
+ transactionValidDuration?: (Long|null);
14197
+
14198
+ /** TransactionBody memo */
14199
+ memo?: (string|null);
14200
+
14201
+ /** TransactionBody transfer */
14202
+ transfer?: (TW.Hedera.Proto.ITransferMessage|null);
14203
+ }
14204
+
14205
+ /** Represents a TransactionBody. */
14206
+ class TransactionBody implements ITransactionBody {
14207
+
14208
+ /**
14209
+ * Constructs a new TransactionBody.
14210
+ * @param [properties] Properties to set
14211
+ */
14212
+ constructor(properties?: TW.Hedera.Proto.ITransactionBody);
14213
+
14214
+ /** TransactionBody transactionID. */
14215
+ public transactionID?: (TW.Hedera.Proto.ITransactionID|null);
14216
+
14217
+ /** TransactionBody nodeAccountID. */
14218
+ public nodeAccountID: string;
14219
+
14220
+ /** TransactionBody transactionFee. */
14221
+ public transactionFee: Long;
14222
+
14223
+ /** TransactionBody transactionValidDuration. */
14224
+ public transactionValidDuration: Long;
14225
+
14226
+ /** TransactionBody memo. */
14227
+ public memo: string;
14228
+
14229
+ /** TransactionBody transfer. */
14230
+ public transfer?: (TW.Hedera.Proto.ITransferMessage|null);
14231
+
14232
+ /** TransactionBody data. */
14233
+ public data?: "transfer";
14234
+
14235
+ /**
14236
+ * Creates a new TransactionBody instance using the specified properties.
14237
+ * @param [properties] Properties to set
14238
+ * @returns TransactionBody instance
14239
+ */
14240
+ public static create(properties?: TW.Hedera.Proto.ITransactionBody): TW.Hedera.Proto.TransactionBody;
14241
+
14242
+ /**
14243
+ * Encodes the specified TransactionBody message. Does not implicitly {@link TW.Hedera.Proto.TransactionBody.verify|verify} messages.
14244
+ * @param message TransactionBody message or plain object to encode
14245
+ * @param [writer] Writer to encode to
14246
+ * @returns Writer
14247
+ */
14248
+ public static encode(message: TW.Hedera.Proto.ITransactionBody, writer?: $protobuf.Writer): $protobuf.Writer;
14249
+
14250
+ /**
14251
+ * Decodes a TransactionBody message from the specified reader or buffer.
14252
+ * @param reader Reader or buffer to decode from
14253
+ * @param [length] Message length if known beforehand
14254
+ * @returns TransactionBody
14255
+ * @throws {Error} If the payload is not a reader or valid buffer
14256
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14257
+ */
14258
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Hedera.Proto.TransactionBody;
14259
+
14260
+ /**
14261
+ * Verifies a TransactionBody message.
14262
+ * @param message Plain object to verify
14263
+ * @returns `null` if valid, otherwise the reason why it is not
14264
+ */
14265
+ public static verify(message: { [k: string]: any }): (string|null);
14266
+
14267
+ /**
14268
+ * Creates a TransactionBody message from a plain object. Also converts values to their respective internal types.
14269
+ * @param object Plain object
14270
+ * @returns TransactionBody
14271
+ */
14272
+ public static fromObject(object: { [k: string]: any }): TW.Hedera.Proto.TransactionBody;
14273
+
14274
+ /**
14275
+ * Creates a plain object from a TransactionBody message. Also converts values to other types if specified.
14276
+ * @param message TransactionBody
14277
+ * @param [options] Conversion options
14278
+ * @returns Plain object
14279
+ */
14280
+ public static toObject(message: TW.Hedera.Proto.TransactionBody, options?: $protobuf.IConversionOptions): { [k: string]: any };
14281
+
14282
+ /**
14283
+ * Converts this TransactionBody to JSON.
14284
+ * @returns JSON object
14285
+ */
14286
+ public toJSON(): { [k: string]: any };
14287
+ }
14288
+
14289
+ /** Properties of a SigningInput. */
14290
+ interface ISigningInput {
14291
+
14292
+ /** SigningInput privateKey */
14293
+ privateKey?: (Uint8Array|null);
14294
+
14295
+ /** SigningInput body */
14296
+ body?: (TW.Hedera.Proto.ITransactionBody|null);
14297
+ }
14298
+
14299
+ /** Represents a SigningInput. */
14300
+ class SigningInput implements ISigningInput {
14301
+
14302
+ /**
14303
+ * Constructs a new SigningInput.
14304
+ * @param [properties] Properties to set
14305
+ */
14306
+ constructor(properties?: TW.Hedera.Proto.ISigningInput);
14307
+
14308
+ /** SigningInput privateKey. */
14309
+ public privateKey: Uint8Array;
14310
+
14311
+ /** SigningInput body. */
14312
+ public body?: (TW.Hedera.Proto.ITransactionBody|null);
14313
+
14314
+ /**
14315
+ * Creates a new SigningInput instance using the specified properties.
14316
+ * @param [properties] Properties to set
14317
+ * @returns SigningInput instance
14318
+ */
14319
+ public static create(properties?: TW.Hedera.Proto.ISigningInput): TW.Hedera.Proto.SigningInput;
14320
+
14321
+ /**
14322
+ * Encodes the specified SigningInput message. Does not implicitly {@link TW.Hedera.Proto.SigningInput.verify|verify} messages.
14323
+ * @param message SigningInput message or plain object to encode
14324
+ * @param [writer] Writer to encode to
14325
+ * @returns Writer
14326
+ */
14327
+ public static encode(message: TW.Hedera.Proto.ISigningInput, writer?: $protobuf.Writer): $protobuf.Writer;
14328
+
14329
+ /**
14330
+ * Decodes a SigningInput message from the specified reader or buffer.
14331
+ * @param reader Reader or buffer to decode from
14332
+ * @param [length] Message length if known beforehand
14333
+ * @returns SigningInput
14334
+ * @throws {Error} If the payload is not a reader or valid buffer
14335
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14336
+ */
14337
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Hedera.Proto.SigningInput;
14338
+
14339
+ /**
14340
+ * Verifies a SigningInput message.
14341
+ * @param message Plain object to verify
14342
+ * @returns `null` if valid, otherwise the reason why it is not
14343
+ */
14344
+ public static verify(message: { [k: string]: any }): (string|null);
14345
+
14346
+ /**
14347
+ * Creates a SigningInput message from a plain object. Also converts values to their respective internal types.
14348
+ * @param object Plain object
14349
+ * @returns SigningInput
14350
+ */
14351
+ public static fromObject(object: { [k: string]: any }): TW.Hedera.Proto.SigningInput;
14352
+
14353
+ /**
14354
+ * Creates a plain object from a SigningInput message. Also converts values to other types if specified.
14355
+ * @param message SigningInput
14356
+ * @param [options] Conversion options
14357
+ * @returns Plain object
14358
+ */
14359
+ public static toObject(message: TW.Hedera.Proto.SigningInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
14360
+
14361
+ /**
14362
+ * Converts this SigningInput to JSON.
14363
+ * @returns JSON object
14364
+ */
14365
+ public toJSON(): { [k: string]: any };
14366
+ }
14367
+
14368
+ /** Properties of a SigningOutput. */
14369
+ interface ISigningOutput {
14370
+
14371
+ /** SigningOutput encoded */
14372
+ encoded?: (Uint8Array|null);
14373
+ }
14374
+
14375
+ /** Represents a SigningOutput. */
14376
+ class SigningOutput implements ISigningOutput {
14377
+
14378
+ /**
14379
+ * Constructs a new SigningOutput.
14380
+ * @param [properties] Properties to set
14381
+ */
14382
+ constructor(properties?: TW.Hedera.Proto.ISigningOutput);
14383
+
14384
+ /** SigningOutput encoded. */
14385
+ public encoded: Uint8Array;
14386
+
14387
+ /**
14388
+ * Creates a new SigningOutput instance using the specified properties.
14389
+ * @param [properties] Properties to set
14390
+ * @returns SigningOutput instance
14391
+ */
14392
+ public static create(properties?: TW.Hedera.Proto.ISigningOutput): TW.Hedera.Proto.SigningOutput;
14393
+
14394
+ /**
14395
+ * Encodes the specified SigningOutput message. Does not implicitly {@link TW.Hedera.Proto.SigningOutput.verify|verify} messages.
14396
+ * @param message SigningOutput message or plain object to encode
14397
+ * @param [writer] Writer to encode to
14398
+ * @returns Writer
14399
+ */
14400
+ public static encode(message: TW.Hedera.Proto.ISigningOutput, writer?: $protobuf.Writer): $protobuf.Writer;
14401
+
14402
+ /**
14403
+ * Decodes a SigningOutput message from the specified reader or buffer.
14404
+ * @param reader Reader or buffer to decode from
14405
+ * @param [length] Message length if known beforehand
14406
+ * @returns SigningOutput
14407
+ * @throws {Error} If the payload is not a reader or valid buffer
14408
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14409
+ */
14410
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Hedera.Proto.SigningOutput;
14411
+
14412
+ /**
14413
+ * Verifies a SigningOutput message.
14414
+ * @param message Plain object to verify
14415
+ * @returns `null` if valid, otherwise the reason why it is not
14416
+ */
14417
+ public static verify(message: { [k: string]: any }): (string|null);
14418
+
14419
+ /**
14420
+ * Creates a SigningOutput message from a plain object. Also converts values to their respective internal types.
14421
+ * @param object Plain object
14422
+ * @returns SigningOutput
14423
+ */
14424
+ public static fromObject(object: { [k: string]: any }): TW.Hedera.Proto.SigningOutput;
14425
+
14426
+ /**
14427
+ * Creates a plain object from a SigningOutput message. Also converts values to other types if specified.
14428
+ * @param message SigningOutput
14429
+ * @param [options] Conversion options
14430
+ * @returns Plain object
14431
+ */
14432
+ public static toObject(message: TW.Hedera.Proto.SigningOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
14433
+
14434
+ /**
14435
+ * Converts this SigningOutput to JSON.
14436
+ * @returns JSON object
14437
+ */
14438
+ public toJSON(): { [k: string]: any };
14439
+ }
14440
+ }
14441
+ }
14442
+
13922
14443
  /** Namespace Icon. */
13923
14444
  namespace Icon {
13924
14445
 
@@ -25565,6 +26086,15 @@ export namespace TW {
25565
26086
 
25566
26087
  /** SwapInput toAmountLimit */
25567
26088
  toAmountLimit?: (string|null);
26089
+
26090
+ /** SwapInput affiliateFeeAddress */
26091
+ affiliateFeeAddress?: (string|null);
26092
+
26093
+ /** SwapInput affiliateFeeRateBp */
26094
+ affiliateFeeRateBp?: (string|null);
26095
+
26096
+ /** SwapInput extraMemo */
26097
+ extraMemo?: (string|null);
25568
26098
  }
25569
26099
 
25570
26100
  /** Represents a SwapInput. */
@@ -25600,6 +26130,15 @@ export namespace TW {
25600
26130
  /** SwapInput toAmountLimit. */
25601
26131
  public toAmountLimit: string;
25602
26132
 
26133
+ /** SwapInput affiliateFeeAddress. */
26134
+ public affiliateFeeAddress: string;
26135
+
26136
+ /** SwapInput affiliateFeeRateBp. */
26137
+ public affiliateFeeRateBp: string;
26138
+
26139
+ /** SwapInput extraMemo. */
26140
+ public extraMemo: string;
26141
+
25603
26142
  /**
25604
26143
  * Creates a new SwapInput instance using the specified properties.
25605
26144
  * @param [properties] Properties to set