@trustwallet/wallet-core 3.2.9 → 3.2.11

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.
@@ -2474,6 +2474,9 @@ export namespace TW {
2474
2474
 
2475
2475
  /** ContractAddressInput publicKey */
2476
2476
  publicKey?: (string|null);
2477
+
2478
+ /** ContractAddressInput salt */
2479
+ salt?: (number|null);
2477
2480
  }
2478
2481
 
2479
2482
  /** Represents a ContractAddressInput. */
@@ -2509,6 +2512,9 @@ export namespace TW {
2509
2512
  /** ContractAddressInput publicKey. */
2510
2513
  public publicKey: string;
2511
2514
 
2515
+ /** ContractAddressInput salt. */
2516
+ public salt: number;
2517
+
2512
2518
  /**
2513
2519
  * Creates a new ContractAddressInput instance using the specified properties.
2514
2520
  * @param [properties] Properties to set
@@ -7602,6 +7608,182 @@ export namespace TW {
7602
7608
  ASYNC = 2
7603
7609
  }
7604
7610
 
7611
+ /** Properties of a THORChainAsset. */
7612
+ interface ITHORChainAsset {
7613
+
7614
+ /** THORChainAsset chain */
7615
+ chain?: (string|null);
7616
+
7617
+ /** THORChainAsset symbol */
7618
+ symbol?: (string|null);
7619
+
7620
+ /** THORChainAsset ticker */
7621
+ ticker?: (string|null);
7622
+
7623
+ /** THORChainAsset synth */
7624
+ synth?: (boolean|null);
7625
+ }
7626
+
7627
+ /** Represents a THORChainAsset. */
7628
+ class THORChainAsset implements ITHORChainAsset {
7629
+
7630
+ /**
7631
+ * Constructs a new THORChainAsset.
7632
+ * @param [properties] Properties to set
7633
+ */
7634
+ constructor(properties?: TW.Cosmos.Proto.ITHORChainAsset);
7635
+
7636
+ /** THORChainAsset chain. */
7637
+ public chain: string;
7638
+
7639
+ /** THORChainAsset symbol. */
7640
+ public symbol: string;
7641
+
7642
+ /** THORChainAsset ticker. */
7643
+ public ticker: string;
7644
+
7645
+ /** THORChainAsset synth. */
7646
+ public synth: boolean;
7647
+
7648
+ /**
7649
+ * Creates a new THORChainAsset instance using the specified properties.
7650
+ * @param [properties] Properties to set
7651
+ * @returns THORChainAsset instance
7652
+ */
7653
+ public static create(properties?: TW.Cosmos.Proto.ITHORChainAsset): TW.Cosmos.Proto.THORChainAsset;
7654
+
7655
+ /**
7656
+ * Encodes the specified THORChainAsset message. Does not implicitly {@link TW.Cosmos.Proto.THORChainAsset.verify|verify} messages.
7657
+ * @param message THORChainAsset message or plain object to encode
7658
+ * @param [writer] Writer to encode to
7659
+ * @returns Writer
7660
+ */
7661
+ public static encode(message: TW.Cosmos.Proto.ITHORChainAsset, writer?: $protobuf.Writer): $protobuf.Writer;
7662
+
7663
+ /**
7664
+ * Decodes a THORChainAsset message from the specified reader or buffer.
7665
+ * @param reader Reader or buffer to decode from
7666
+ * @param [length] Message length if known beforehand
7667
+ * @returns THORChainAsset
7668
+ * @throws {Error} If the payload is not a reader or valid buffer
7669
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7670
+ */
7671
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cosmos.Proto.THORChainAsset;
7672
+
7673
+ /**
7674
+ * Verifies a THORChainAsset message.
7675
+ * @param message Plain object to verify
7676
+ * @returns `null` if valid, otherwise the reason why it is not
7677
+ */
7678
+ public static verify(message: { [k: string]: any }): (string|null);
7679
+
7680
+ /**
7681
+ * Creates a THORChainAsset message from a plain object. Also converts values to their respective internal types.
7682
+ * @param object Plain object
7683
+ * @returns THORChainAsset
7684
+ */
7685
+ public static fromObject(object: { [k: string]: any }): TW.Cosmos.Proto.THORChainAsset;
7686
+
7687
+ /**
7688
+ * Creates a plain object from a THORChainAsset message. Also converts values to other types if specified.
7689
+ * @param message THORChainAsset
7690
+ * @param [options] Conversion options
7691
+ * @returns Plain object
7692
+ */
7693
+ public static toObject(message: TW.Cosmos.Proto.THORChainAsset, options?: $protobuf.IConversionOptions): { [k: string]: any };
7694
+
7695
+ /**
7696
+ * Converts this THORChainAsset to JSON.
7697
+ * @returns JSON object
7698
+ */
7699
+ public toJSON(): { [k: string]: any };
7700
+ }
7701
+
7702
+ /** Properties of a THORChainCoin. */
7703
+ interface ITHORChainCoin {
7704
+
7705
+ /** THORChainCoin asset */
7706
+ asset?: (TW.Cosmos.Proto.ITHORChainAsset|null);
7707
+
7708
+ /** THORChainCoin amount */
7709
+ amount?: (string|null);
7710
+
7711
+ /** THORChainCoin decimals */
7712
+ decimals?: (Long|null);
7713
+ }
7714
+
7715
+ /** Represents a THORChainCoin. */
7716
+ class THORChainCoin implements ITHORChainCoin {
7717
+
7718
+ /**
7719
+ * Constructs a new THORChainCoin.
7720
+ * @param [properties] Properties to set
7721
+ */
7722
+ constructor(properties?: TW.Cosmos.Proto.ITHORChainCoin);
7723
+
7724
+ /** THORChainCoin asset. */
7725
+ public asset?: (TW.Cosmos.Proto.ITHORChainAsset|null);
7726
+
7727
+ /** THORChainCoin amount. */
7728
+ public amount: string;
7729
+
7730
+ /** THORChainCoin decimals. */
7731
+ public decimals: Long;
7732
+
7733
+ /**
7734
+ * Creates a new THORChainCoin instance using the specified properties.
7735
+ * @param [properties] Properties to set
7736
+ * @returns THORChainCoin instance
7737
+ */
7738
+ public static create(properties?: TW.Cosmos.Proto.ITHORChainCoin): TW.Cosmos.Proto.THORChainCoin;
7739
+
7740
+ /**
7741
+ * Encodes the specified THORChainCoin message. Does not implicitly {@link TW.Cosmos.Proto.THORChainCoin.verify|verify} messages.
7742
+ * @param message THORChainCoin message or plain object to encode
7743
+ * @param [writer] Writer to encode to
7744
+ * @returns Writer
7745
+ */
7746
+ public static encode(message: TW.Cosmos.Proto.ITHORChainCoin, writer?: $protobuf.Writer): $protobuf.Writer;
7747
+
7748
+ /**
7749
+ * Decodes a THORChainCoin message from the specified reader or buffer.
7750
+ * @param reader Reader or buffer to decode from
7751
+ * @param [length] Message length if known beforehand
7752
+ * @returns THORChainCoin
7753
+ * @throws {Error} If the payload is not a reader or valid buffer
7754
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7755
+ */
7756
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cosmos.Proto.THORChainCoin;
7757
+
7758
+ /**
7759
+ * Verifies a THORChainCoin message.
7760
+ * @param message Plain object to verify
7761
+ * @returns `null` if valid, otherwise the reason why it is not
7762
+ */
7763
+ public static verify(message: { [k: string]: any }): (string|null);
7764
+
7765
+ /**
7766
+ * Creates a THORChainCoin message from a plain object. Also converts values to their respective internal types.
7767
+ * @param object Plain object
7768
+ * @returns THORChainCoin
7769
+ */
7770
+ public static fromObject(object: { [k: string]: any }): TW.Cosmos.Proto.THORChainCoin;
7771
+
7772
+ /**
7773
+ * Creates a plain object from a THORChainCoin message. Also converts values to other types if specified.
7774
+ * @param message THORChainCoin
7775
+ * @param [options] Conversion options
7776
+ * @returns Plain object
7777
+ */
7778
+ public static toObject(message: TW.Cosmos.Proto.THORChainCoin, options?: $protobuf.IConversionOptions): { [k: string]: any };
7779
+
7780
+ /**
7781
+ * Converts this THORChainCoin to JSON.
7782
+ * @returns JSON object
7783
+ */
7784
+ public toJSON(): { [k: string]: any };
7785
+ }
7786
+
7605
7787
  /** Properties of a Message. */
7606
7788
  interface IMessage {
7607
7789
 
@@ -7670,6 +7852,9 @@ export namespace TW {
7670
7852
 
7671
7853
  /** Message msgStrideLiquidStakingRedeem */
7672
7854
  msgStrideLiquidStakingRedeem?: (TW.Cosmos.Proto.Message.IMsgStrideLiquidStakingRedeem|null);
7855
+
7856
+ /** Message thorchainDepositMessage */
7857
+ thorchainDepositMessage?: (TW.Cosmos.Proto.Message.ITHORChainDeposit|null);
7673
7858
  }
7674
7859
 
7675
7860
  /** Represents a Message. */
@@ -7747,8 +7932,11 @@ export namespace TW {
7747
7932
  /** Message msgStrideLiquidStakingRedeem. */
7748
7933
  public msgStrideLiquidStakingRedeem?: (TW.Cosmos.Proto.Message.IMsgStrideLiquidStakingRedeem|null);
7749
7934
 
7935
+ /** Message thorchainDepositMessage. */
7936
+ public thorchainDepositMessage?: (TW.Cosmos.Proto.Message.ITHORChainDeposit|null);
7937
+
7750
7938
  /** Message messageOneof. */
7751
- public messageOneof?: ("sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"executeContractMessage"|"wasmTerraExecuteContractGeneric"|"wasmExecuteContractTransferMessage"|"wasmExecuteContractSendMessage"|"wasmExecuteContractGeneric"|"signDirectMessage"|"authGrant"|"authRevoke"|"setWithdrawAddressMessage"|"msgVote"|"msgStrideLiquidStakingStake"|"msgStrideLiquidStakingRedeem");
7939
+ public messageOneof?: ("sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"executeContractMessage"|"wasmTerraExecuteContractGeneric"|"wasmExecuteContractTransferMessage"|"wasmExecuteContractSendMessage"|"wasmExecuteContractGeneric"|"signDirectMessage"|"authGrant"|"authRevoke"|"setWithdrawAddressMessage"|"msgVote"|"msgStrideLiquidStakingStake"|"msgStrideLiquidStakingRedeem"|"thorchainDepositMessage");
7752
7940
 
7753
7941
  /**
7754
7942
  * Creates a new Message instance using the specified properties.
@@ -8831,6 +9019,91 @@ export namespace TW {
8831
9019
  public toJSON(): { [k: string]: any };
8832
9020
  }
8833
9021
 
9022
+ /** Properties of a THORChainDeposit. */
9023
+ interface ITHORChainDeposit {
9024
+
9025
+ /** THORChainDeposit coins */
9026
+ coins?: (TW.Cosmos.Proto.ITHORChainCoin[]|null);
9027
+
9028
+ /** THORChainDeposit memo */
9029
+ memo?: (string|null);
9030
+
9031
+ /** THORChainDeposit signer */
9032
+ signer?: (Uint8Array|null);
9033
+ }
9034
+
9035
+ /** Represents a THORChainDeposit. */
9036
+ class THORChainDeposit implements ITHORChainDeposit {
9037
+
9038
+ /**
9039
+ * Constructs a new THORChainDeposit.
9040
+ * @param [properties] Properties to set
9041
+ */
9042
+ constructor(properties?: TW.Cosmos.Proto.Message.ITHORChainDeposit);
9043
+
9044
+ /** THORChainDeposit coins. */
9045
+ public coins: TW.Cosmos.Proto.ITHORChainCoin[];
9046
+
9047
+ /** THORChainDeposit memo. */
9048
+ public memo: string;
9049
+
9050
+ /** THORChainDeposit signer. */
9051
+ public signer: Uint8Array;
9052
+
9053
+ /**
9054
+ * Creates a new THORChainDeposit instance using the specified properties.
9055
+ * @param [properties] Properties to set
9056
+ * @returns THORChainDeposit instance
9057
+ */
9058
+ public static create(properties?: TW.Cosmos.Proto.Message.ITHORChainDeposit): TW.Cosmos.Proto.Message.THORChainDeposit;
9059
+
9060
+ /**
9061
+ * Encodes the specified THORChainDeposit message. Does not implicitly {@link TW.Cosmos.Proto.Message.THORChainDeposit.verify|verify} messages.
9062
+ * @param message THORChainDeposit message or plain object to encode
9063
+ * @param [writer] Writer to encode to
9064
+ * @returns Writer
9065
+ */
9066
+ public static encode(message: TW.Cosmos.Proto.Message.ITHORChainDeposit, writer?: $protobuf.Writer): $protobuf.Writer;
9067
+
9068
+ /**
9069
+ * Decodes a THORChainDeposit message from the specified reader or buffer.
9070
+ * @param reader Reader or buffer to decode from
9071
+ * @param [length] Message length if known beforehand
9072
+ * @returns THORChainDeposit
9073
+ * @throws {Error} If the payload is not a reader or valid buffer
9074
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9075
+ */
9076
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cosmos.Proto.Message.THORChainDeposit;
9077
+
9078
+ /**
9079
+ * Verifies a THORChainDeposit message.
9080
+ * @param message Plain object to verify
9081
+ * @returns `null` if valid, otherwise the reason why it is not
9082
+ */
9083
+ public static verify(message: { [k: string]: any }): (string|null);
9084
+
9085
+ /**
9086
+ * Creates a THORChainDeposit message from a plain object. Also converts values to their respective internal types.
9087
+ * @param object Plain object
9088
+ * @returns THORChainDeposit
9089
+ */
9090
+ public static fromObject(object: { [k: string]: any }): TW.Cosmos.Proto.Message.THORChainDeposit;
9091
+
9092
+ /**
9093
+ * Creates a plain object from a THORChainDeposit message. Also converts values to other types if specified.
9094
+ * @param message THORChainDeposit
9095
+ * @param [options] Conversion options
9096
+ * @returns Plain object
9097
+ */
9098
+ public static toObject(message: TW.Cosmos.Proto.Message.THORChainDeposit, options?: $protobuf.IConversionOptions): { [k: string]: any };
9099
+
9100
+ /**
9101
+ * Converts this THORChainDeposit to JSON.
9102
+ * @returns JSON object
9103
+ */
9104
+ public toJSON(): { [k: string]: any };
9105
+ }
9106
+
8834
9107
  /** Properties of a WasmTerraExecuteContractGeneric. */
8835
9108
  interface IWasmTerraExecuteContractGeneric {
8836
9109
 
@@ -7089,6 +7089,7 @@
7089
7089
  * @property {string|null} [defaultFallback] ContractAddressInput defaultFallback
7090
7090
  * @property {string|null} [bytecode] ContractAddressInput bytecode
7091
7091
  * @property {string|null} [publicKey] ContractAddressInput publicKey
7092
+ * @property {number|null} [salt] ContractAddressInput salt
7092
7093
  */
7093
7094
 
7094
7095
  /**
@@ -7170,6 +7171,14 @@
7170
7171
  */
7171
7172
  ContractAddressInput.prototype.publicKey = "";
7172
7173
 
7174
+ /**
7175
+ * ContractAddressInput salt.
7176
+ * @member {number} salt
7177
+ * @memberof TW.Barz.Proto.ContractAddressInput
7178
+ * @instance
7179
+ */
7180
+ ContractAddressInput.prototype.salt = 0;
7181
+
7173
7182
  /**
7174
7183
  * Creates a new ContractAddressInput instance using the specified properties.
7175
7184
  * @function create
@@ -7210,6 +7219,8 @@
7210
7219
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.bytecode);
7211
7220
  if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey"))
7212
7221
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.publicKey);
7222
+ if (message.salt != null && Object.hasOwnProperty.call(message, "salt"))
7223
+ writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.salt);
7213
7224
  return writer;
7214
7225
  };
7215
7226
 
@@ -7255,6 +7266,9 @@
7255
7266
  case 8:
7256
7267
  message.publicKey = reader.string();
7257
7268
  break;
7269
+ case 9:
7270
+ message.salt = reader.uint32();
7271
+ break;
7258
7272
  default:
7259
7273
  reader.skipType(tag & 7);
7260
7274
  break;
@@ -7298,6 +7312,9 @@
7298
7312
  if (message.publicKey != null && message.hasOwnProperty("publicKey"))
7299
7313
  if (!$util.isString(message.publicKey))
7300
7314
  return "publicKey: string expected";
7315
+ if (message.salt != null && message.hasOwnProperty("salt"))
7316
+ if (!$util.isInteger(message.salt))
7317
+ return "salt: integer expected";
7301
7318
  return null;
7302
7319
  };
7303
7320
 
@@ -7329,6 +7346,8 @@
7329
7346
  message.bytecode = String(object.bytecode);
7330
7347
  if (object.publicKey != null)
7331
7348
  message.publicKey = String(object.publicKey);
7349
+ if (object.salt != null)
7350
+ message.salt = object.salt >>> 0;
7332
7351
  return message;
7333
7352
  };
7334
7353
 
@@ -7354,6 +7373,7 @@
7354
7373
  object.defaultFallback = "";
7355
7374
  object.bytecode = "";
7356
7375
  object.publicKey = "";
7376
+ object.salt = 0;
7357
7377
  }
7358
7378
  if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
7359
7379
  object.entryPoint = message.entryPoint;
@@ -7371,6 +7391,8 @@
7371
7391
  object.bytecode = message.bytecode;
7372
7392
  if (message.publicKey != null && message.hasOwnProperty("publicKey"))
7373
7393
  object.publicKey = message.publicKey;
7394
+ if (message.salt != null && message.hasOwnProperty("salt"))
7395
+ object.salt = message.salt;
7374
7396
  return object;
7375
7397
  };
7376
7398
 
@@ -23011,6 +23033,453 @@
23011
23033
  return values;
23012
23034
  })();
23013
23035
 
23036
+ Proto.THORChainAsset = (function() {
23037
+
23038
+ /**
23039
+ * Properties of a THORChainAsset.
23040
+ * @memberof TW.Cosmos.Proto
23041
+ * @interface ITHORChainAsset
23042
+ * @property {string|null} [chain] THORChainAsset chain
23043
+ * @property {string|null} [symbol] THORChainAsset symbol
23044
+ * @property {string|null} [ticker] THORChainAsset ticker
23045
+ * @property {boolean|null} [synth] THORChainAsset synth
23046
+ */
23047
+
23048
+ /**
23049
+ * Constructs a new THORChainAsset.
23050
+ * @memberof TW.Cosmos.Proto
23051
+ * @classdesc Represents a THORChainAsset.
23052
+ * @implements ITHORChainAsset
23053
+ * @constructor
23054
+ * @param {TW.Cosmos.Proto.ITHORChainAsset=} [properties] Properties to set
23055
+ */
23056
+ function THORChainAsset(properties) {
23057
+ if (properties)
23058
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23059
+ if (properties[keys[i]] != null)
23060
+ this[keys[i]] = properties[keys[i]];
23061
+ }
23062
+
23063
+ /**
23064
+ * THORChainAsset chain.
23065
+ * @member {string} chain
23066
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23067
+ * @instance
23068
+ */
23069
+ THORChainAsset.prototype.chain = "";
23070
+
23071
+ /**
23072
+ * THORChainAsset symbol.
23073
+ * @member {string} symbol
23074
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23075
+ * @instance
23076
+ */
23077
+ THORChainAsset.prototype.symbol = "";
23078
+
23079
+ /**
23080
+ * THORChainAsset ticker.
23081
+ * @member {string} ticker
23082
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23083
+ * @instance
23084
+ */
23085
+ THORChainAsset.prototype.ticker = "";
23086
+
23087
+ /**
23088
+ * THORChainAsset synth.
23089
+ * @member {boolean} synth
23090
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23091
+ * @instance
23092
+ */
23093
+ THORChainAsset.prototype.synth = false;
23094
+
23095
+ /**
23096
+ * Creates a new THORChainAsset instance using the specified properties.
23097
+ * @function create
23098
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23099
+ * @static
23100
+ * @param {TW.Cosmos.Proto.ITHORChainAsset=} [properties] Properties to set
23101
+ * @returns {TW.Cosmos.Proto.THORChainAsset} THORChainAsset instance
23102
+ */
23103
+ THORChainAsset.create = function create(properties) {
23104
+ return new THORChainAsset(properties);
23105
+ };
23106
+
23107
+ /**
23108
+ * Encodes the specified THORChainAsset message. Does not implicitly {@link TW.Cosmos.Proto.THORChainAsset.verify|verify} messages.
23109
+ * @function encode
23110
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23111
+ * @static
23112
+ * @param {TW.Cosmos.Proto.ITHORChainAsset} message THORChainAsset message or plain object to encode
23113
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23114
+ * @returns {$protobuf.Writer} Writer
23115
+ */
23116
+ THORChainAsset.encode = function encode(message, writer) {
23117
+ if (!writer)
23118
+ writer = $Writer.create();
23119
+ if (message.chain != null && Object.hasOwnProperty.call(message, "chain"))
23120
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.chain);
23121
+ if (message.symbol != null && Object.hasOwnProperty.call(message, "symbol"))
23122
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.symbol);
23123
+ if (message.ticker != null && Object.hasOwnProperty.call(message, "ticker"))
23124
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.ticker);
23125
+ if (message.synth != null && Object.hasOwnProperty.call(message, "synth"))
23126
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.synth);
23127
+ return writer;
23128
+ };
23129
+
23130
+ /**
23131
+ * Decodes a THORChainAsset message from the specified reader or buffer.
23132
+ * @function decode
23133
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23134
+ * @static
23135
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23136
+ * @param {number} [length] Message length if known beforehand
23137
+ * @returns {TW.Cosmos.Proto.THORChainAsset} THORChainAsset
23138
+ * @throws {Error} If the payload is not a reader or valid buffer
23139
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23140
+ */
23141
+ THORChainAsset.decode = function decode(reader, length) {
23142
+ if (!(reader instanceof $Reader))
23143
+ reader = $Reader.create(reader);
23144
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Cosmos.Proto.THORChainAsset();
23145
+ while (reader.pos < end) {
23146
+ var tag = reader.uint32();
23147
+ switch (tag >>> 3) {
23148
+ case 1:
23149
+ message.chain = reader.string();
23150
+ break;
23151
+ case 2:
23152
+ message.symbol = reader.string();
23153
+ break;
23154
+ case 3:
23155
+ message.ticker = reader.string();
23156
+ break;
23157
+ case 4:
23158
+ message.synth = reader.bool();
23159
+ break;
23160
+ default:
23161
+ reader.skipType(tag & 7);
23162
+ break;
23163
+ }
23164
+ }
23165
+ return message;
23166
+ };
23167
+
23168
+ /**
23169
+ * Verifies a THORChainAsset message.
23170
+ * @function verify
23171
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23172
+ * @static
23173
+ * @param {Object.<string,*>} message Plain object to verify
23174
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23175
+ */
23176
+ THORChainAsset.verify = function verify(message) {
23177
+ if (typeof message !== "object" || message === null)
23178
+ return "object expected";
23179
+ if (message.chain != null && message.hasOwnProperty("chain"))
23180
+ if (!$util.isString(message.chain))
23181
+ return "chain: string expected";
23182
+ if (message.symbol != null && message.hasOwnProperty("symbol"))
23183
+ if (!$util.isString(message.symbol))
23184
+ return "symbol: string expected";
23185
+ if (message.ticker != null && message.hasOwnProperty("ticker"))
23186
+ if (!$util.isString(message.ticker))
23187
+ return "ticker: string expected";
23188
+ if (message.synth != null && message.hasOwnProperty("synth"))
23189
+ if (typeof message.synth !== "boolean")
23190
+ return "synth: boolean expected";
23191
+ return null;
23192
+ };
23193
+
23194
+ /**
23195
+ * Creates a THORChainAsset message from a plain object. Also converts values to their respective internal types.
23196
+ * @function fromObject
23197
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23198
+ * @static
23199
+ * @param {Object.<string,*>} object Plain object
23200
+ * @returns {TW.Cosmos.Proto.THORChainAsset} THORChainAsset
23201
+ */
23202
+ THORChainAsset.fromObject = function fromObject(object) {
23203
+ if (object instanceof $root.TW.Cosmos.Proto.THORChainAsset)
23204
+ return object;
23205
+ var message = new $root.TW.Cosmos.Proto.THORChainAsset();
23206
+ if (object.chain != null)
23207
+ message.chain = String(object.chain);
23208
+ if (object.symbol != null)
23209
+ message.symbol = String(object.symbol);
23210
+ if (object.ticker != null)
23211
+ message.ticker = String(object.ticker);
23212
+ if (object.synth != null)
23213
+ message.synth = Boolean(object.synth);
23214
+ return message;
23215
+ };
23216
+
23217
+ /**
23218
+ * Creates a plain object from a THORChainAsset message. Also converts values to other types if specified.
23219
+ * @function toObject
23220
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23221
+ * @static
23222
+ * @param {TW.Cosmos.Proto.THORChainAsset} message THORChainAsset
23223
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23224
+ * @returns {Object.<string,*>} Plain object
23225
+ */
23226
+ THORChainAsset.toObject = function toObject(message, options) {
23227
+ if (!options)
23228
+ options = {};
23229
+ var object = {};
23230
+ if (options.defaults) {
23231
+ object.chain = "";
23232
+ object.symbol = "";
23233
+ object.ticker = "";
23234
+ object.synth = false;
23235
+ }
23236
+ if (message.chain != null && message.hasOwnProperty("chain"))
23237
+ object.chain = message.chain;
23238
+ if (message.symbol != null && message.hasOwnProperty("symbol"))
23239
+ object.symbol = message.symbol;
23240
+ if (message.ticker != null && message.hasOwnProperty("ticker"))
23241
+ object.ticker = message.ticker;
23242
+ if (message.synth != null && message.hasOwnProperty("synth"))
23243
+ object.synth = message.synth;
23244
+ return object;
23245
+ };
23246
+
23247
+ /**
23248
+ * Converts this THORChainAsset to JSON.
23249
+ * @function toJSON
23250
+ * @memberof TW.Cosmos.Proto.THORChainAsset
23251
+ * @instance
23252
+ * @returns {Object.<string,*>} JSON object
23253
+ */
23254
+ THORChainAsset.prototype.toJSON = function toJSON() {
23255
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23256
+ };
23257
+
23258
+ return THORChainAsset;
23259
+ })();
23260
+
23261
+ Proto.THORChainCoin = (function() {
23262
+
23263
+ /**
23264
+ * Properties of a THORChainCoin.
23265
+ * @memberof TW.Cosmos.Proto
23266
+ * @interface ITHORChainCoin
23267
+ * @property {TW.Cosmos.Proto.ITHORChainAsset|null} [asset] THORChainCoin asset
23268
+ * @property {string|null} [amount] THORChainCoin amount
23269
+ * @property {Long|null} [decimals] THORChainCoin decimals
23270
+ */
23271
+
23272
+ /**
23273
+ * Constructs a new THORChainCoin.
23274
+ * @memberof TW.Cosmos.Proto
23275
+ * @classdesc Represents a THORChainCoin.
23276
+ * @implements ITHORChainCoin
23277
+ * @constructor
23278
+ * @param {TW.Cosmos.Proto.ITHORChainCoin=} [properties] Properties to set
23279
+ */
23280
+ function THORChainCoin(properties) {
23281
+ if (properties)
23282
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23283
+ if (properties[keys[i]] != null)
23284
+ this[keys[i]] = properties[keys[i]];
23285
+ }
23286
+
23287
+ /**
23288
+ * THORChainCoin asset.
23289
+ * @member {TW.Cosmos.Proto.ITHORChainAsset|null|undefined} asset
23290
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23291
+ * @instance
23292
+ */
23293
+ THORChainCoin.prototype.asset = null;
23294
+
23295
+ /**
23296
+ * THORChainCoin amount.
23297
+ * @member {string} amount
23298
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23299
+ * @instance
23300
+ */
23301
+ THORChainCoin.prototype.amount = "";
23302
+
23303
+ /**
23304
+ * THORChainCoin decimals.
23305
+ * @member {Long} decimals
23306
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23307
+ * @instance
23308
+ */
23309
+ THORChainCoin.prototype.decimals = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
23310
+
23311
+ /**
23312
+ * Creates a new THORChainCoin instance using the specified properties.
23313
+ * @function create
23314
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23315
+ * @static
23316
+ * @param {TW.Cosmos.Proto.ITHORChainCoin=} [properties] Properties to set
23317
+ * @returns {TW.Cosmos.Proto.THORChainCoin} THORChainCoin instance
23318
+ */
23319
+ THORChainCoin.create = function create(properties) {
23320
+ return new THORChainCoin(properties);
23321
+ };
23322
+
23323
+ /**
23324
+ * Encodes the specified THORChainCoin message. Does not implicitly {@link TW.Cosmos.Proto.THORChainCoin.verify|verify} messages.
23325
+ * @function encode
23326
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23327
+ * @static
23328
+ * @param {TW.Cosmos.Proto.ITHORChainCoin} message THORChainCoin message or plain object to encode
23329
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23330
+ * @returns {$protobuf.Writer} Writer
23331
+ */
23332
+ THORChainCoin.encode = function encode(message, writer) {
23333
+ if (!writer)
23334
+ writer = $Writer.create();
23335
+ if (message.asset != null && Object.hasOwnProperty.call(message, "asset"))
23336
+ $root.TW.Cosmos.Proto.THORChainAsset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
23337
+ if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
23338
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount);
23339
+ if (message.decimals != null && Object.hasOwnProperty.call(message, "decimals"))
23340
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.decimals);
23341
+ return writer;
23342
+ };
23343
+
23344
+ /**
23345
+ * Decodes a THORChainCoin message from the specified reader or buffer.
23346
+ * @function decode
23347
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23348
+ * @static
23349
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23350
+ * @param {number} [length] Message length if known beforehand
23351
+ * @returns {TW.Cosmos.Proto.THORChainCoin} THORChainCoin
23352
+ * @throws {Error} If the payload is not a reader or valid buffer
23353
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23354
+ */
23355
+ THORChainCoin.decode = function decode(reader, length) {
23356
+ if (!(reader instanceof $Reader))
23357
+ reader = $Reader.create(reader);
23358
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Cosmos.Proto.THORChainCoin();
23359
+ while (reader.pos < end) {
23360
+ var tag = reader.uint32();
23361
+ switch (tag >>> 3) {
23362
+ case 1:
23363
+ message.asset = $root.TW.Cosmos.Proto.THORChainAsset.decode(reader, reader.uint32());
23364
+ break;
23365
+ case 2:
23366
+ message.amount = reader.string();
23367
+ break;
23368
+ case 3:
23369
+ message.decimals = reader.int64();
23370
+ break;
23371
+ default:
23372
+ reader.skipType(tag & 7);
23373
+ break;
23374
+ }
23375
+ }
23376
+ return message;
23377
+ };
23378
+
23379
+ /**
23380
+ * Verifies a THORChainCoin message.
23381
+ * @function verify
23382
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23383
+ * @static
23384
+ * @param {Object.<string,*>} message Plain object to verify
23385
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23386
+ */
23387
+ THORChainCoin.verify = function verify(message) {
23388
+ if (typeof message !== "object" || message === null)
23389
+ return "object expected";
23390
+ if (message.asset != null && message.hasOwnProperty("asset")) {
23391
+ var error = $root.TW.Cosmos.Proto.THORChainAsset.verify(message.asset);
23392
+ if (error)
23393
+ return "asset." + error;
23394
+ }
23395
+ if (message.amount != null && message.hasOwnProperty("amount"))
23396
+ if (!$util.isString(message.amount))
23397
+ return "amount: string expected";
23398
+ if (message.decimals != null && message.hasOwnProperty("decimals"))
23399
+ if (!$util.isInteger(message.decimals) && !(message.decimals && $util.isInteger(message.decimals.low) && $util.isInteger(message.decimals.high)))
23400
+ return "decimals: integer|Long expected";
23401
+ return null;
23402
+ };
23403
+
23404
+ /**
23405
+ * Creates a THORChainCoin message from a plain object. Also converts values to their respective internal types.
23406
+ * @function fromObject
23407
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23408
+ * @static
23409
+ * @param {Object.<string,*>} object Plain object
23410
+ * @returns {TW.Cosmos.Proto.THORChainCoin} THORChainCoin
23411
+ */
23412
+ THORChainCoin.fromObject = function fromObject(object) {
23413
+ if (object instanceof $root.TW.Cosmos.Proto.THORChainCoin)
23414
+ return object;
23415
+ var message = new $root.TW.Cosmos.Proto.THORChainCoin();
23416
+ if (object.asset != null) {
23417
+ if (typeof object.asset !== "object")
23418
+ throw TypeError(".TW.Cosmos.Proto.THORChainCoin.asset: object expected");
23419
+ message.asset = $root.TW.Cosmos.Proto.THORChainAsset.fromObject(object.asset);
23420
+ }
23421
+ if (object.amount != null)
23422
+ message.amount = String(object.amount);
23423
+ if (object.decimals != null)
23424
+ if ($util.Long)
23425
+ (message.decimals = $util.Long.fromValue(object.decimals)).unsigned = false;
23426
+ else if (typeof object.decimals === "string")
23427
+ message.decimals = parseInt(object.decimals, 10);
23428
+ else if (typeof object.decimals === "number")
23429
+ message.decimals = object.decimals;
23430
+ else if (typeof object.decimals === "object")
23431
+ message.decimals = new $util.LongBits(object.decimals.low >>> 0, object.decimals.high >>> 0).toNumber();
23432
+ return message;
23433
+ };
23434
+
23435
+ /**
23436
+ * Creates a plain object from a THORChainCoin message. Also converts values to other types if specified.
23437
+ * @function toObject
23438
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23439
+ * @static
23440
+ * @param {TW.Cosmos.Proto.THORChainCoin} message THORChainCoin
23441
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23442
+ * @returns {Object.<string,*>} Plain object
23443
+ */
23444
+ THORChainCoin.toObject = function toObject(message, options) {
23445
+ if (!options)
23446
+ options = {};
23447
+ var object = {};
23448
+ if (options.defaults) {
23449
+ object.asset = null;
23450
+ object.amount = "";
23451
+ if ($util.Long) {
23452
+ var long = new $util.Long(0, 0, false);
23453
+ object.decimals = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
23454
+ } else
23455
+ object.decimals = options.longs === String ? "0" : 0;
23456
+ }
23457
+ if (message.asset != null && message.hasOwnProperty("asset"))
23458
+ object.asset = $root.TW.Cosmos.Proto.THORChainAsset.toObject(message.asset, options);
23459
+ if (message.amount != null && message.hasOwnProperty("amount"))
23460
+ object.amount = message.amount;
23461
+ if (message.decimals != null && message.hasOwnProperty("decimals"))
23462
+ if (typeof message.decimals === "number")
23463
+ object.decimals = options.longs === String ? String(message.decimals) : message.decimals;
23464
+ else
23465
+ object.decimals = options.longs === String ? $util.Long.prototype.toString.call(message.decimals) : options.longs === Number ? new $util.LongBits(message.decimals.low >>> 0, message.decimals.high >>> 0).toNumber() : message.decimals;
23466
+ return object;
23467
+ };
23468
+
23469
+ /**
23470
+ * Converts this THORChainCoin to JSON.
23471
+ * @function toJSON
23472
+ * @memberof TW.Cosmos.Proto.THORChainCoin
23473
+ * @instance
23474
+ * @returns {Object.<string,*>} JSON object
23475
+ */
23476
+ THORChainCoin.prototype.toJSON = function toJSON() {
23477
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23478
+ };
23479
+
23480
+ return THORChainCoin;
23481
+ })();
23482
+
23014
23483
  Proto.Message = (function() {
23015
23484
 
23016
23485
  /**
@@ -23039,6 +23508,7 @@
23039
23508
  * @property {TW.Cosmos.Proto.Message.IMsgVote|null} [msgVote] Message msgVote
23040
23509
  * @property {TW.Cosmos.Proto.Message.IMsgStrideLiquidStakingStake|null} [msgStrideLiquidStakingStake] Message msgStrideLiquidStakingStake
23041
23510
  * @property {TW.Cosmos.Proto.Message.IMsgStrideLiquidStakingRedeem|null} [msgStrideLiquidStakingRedeem] Message msgStrideLiquidStakingRedeem
23511
+ * @property {TW.Cosmos.Proto.Message.ITHORChainDeposit|null} [thorchainDepositMessage] Message thorchainDepositMessage
23042
23512
  */
23043
23513
 
23044
23514
  /**
@@ -23232,17 +23702,25 @@
23232
23702
  */
23233
23703
  Message.prototype.msgStrideLiquidStakingRedeem = null;
23234
23704
 
23705
+ /**
23706
+ * Message thorchainDepositMessage.
23707
+ * @member {TW.Cosmos.Proto.Message.ITHORChainDeposit|null|undefined} thorchainDepositMessage
23708
+ * @memberof TW.Cosmos.Proto.Message
23709
+ * @instance
23710
+ */
23711
+ Message.prototype.thorchainDepositMessage = null;
23712
+
23235
23713
  // OneOf field names bound to virtual getters and setters
23236
23714
  var $oneOfFields;
23237
23715
 
23238
23716
  /**
23239
23717
  * Message messageOneof.
23240
- * @member {"sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"executeContractMessage"|"wasmTerraExecuteContractGeneric"|"wasmExecuteContractTransferMessage"|"wasmExecuteContractSendMessage"|"wasmExecuteContractGeneric"|"signDirectMessage"|"authGrant"|"authRevoke"|"setWithdrawAddressMessage"|"msgVote"|"msgStrideLiquidStakingStake"|"msgStrideLiquidStakingRedeem"|undefined} messageOneof
23718
+ * @member {"sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"executeContractMessage"|"wasmTerraExecuteContractGeneric"|"wasmExecuteContractTransferMessage"|"wasmExecuteContractSendMessage"|"wasmExecuteContractGeneric"|"signDirectMessage"|"authGrant"|"authRevoke"|"setWithdrawAddressMessage"|"msgVote"|"msgStrideLiquidStakingStake"|"msgStrideLiquidStakingRedeem"|"thorchainDepositMessage"|undefined} messageOneof
23241
23719
  * @memberof TW.Cosmos.Proto.Message
23242
23720
  * @instance
23243
23721
  */
23244
23722
  Object.defineProperty(Message.prototype, "messageOneof", {
23245
- get: $util.oneOfGetter($oneOfFields = ["sendCoinsMessage", "transferTokensMessage", "stakeMessage", "unstakeMessage", "restakeMessage", "withdrawStakeRewardMessage", "rawJsonMessage", "wasmTerraExecuteContractTransferMessage", "wasmTerraExecuteContractSendMessage", "thorchainSendMessage", "executeContractMessage", "wasmTerraExecuteContractGeneric", "wasmExecuteContractTransferMessage", "wasmExecuteContractSendMessage", "wasmExecuteContractGeneric", "signDirectMessage", "authGrant", "authRevoke", "setWithdrawAddressMessage", "msgVote", "msgStrideLiquidStakingStake", "msgStrideLiquidStakingRedeem"]),
23723
+ get: $util.oneOfGetter($oneOfFields = ["sendCoinsMessage", "transferTokensMessage", "stakeMessage", "unstakeMessage", "restakeMessage", "withdrawStakeRewardMessage", "rawJsonMessage", "wasmTerraExecuteContractTransferMessage", "wasmTerraExecuteContractSendMessage", "thorchainSendMessage", "executeContractMessage", "wasmTerraExecuteContractGeneric", "wasmExecuteContractTransferMessage", "wasmExecuteContractSendMessage", "wasmExecuteContractGeneric", "signDirectMessage", "authGrant", "authRevoke", "setWithdrawAddressMessage", "msgVote", "msgStrideLiquidStakingStake", "msgStrideLiquidStakingRedeem", "thorchainDepositMessage"]),
23246
23724
  set: $util.oneOfSetter($oneOfFields)
23247
23725
  });
23248
23726
 
@@ -23314,6 +23792,8 @@
23314
23792
  $root.TW.Cosmos.Proto.Message.MsgStrideLiquidStakingStake.encode(message.msgStrideLiquidStakingStake, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
23315
23793
  if (message.msgStrideLiquidStakingRedeem != null && Object.hasOwnProperty.call(message, "msgStrideLiquidStakingRedeem"))
23316
23794
  $root.TW.Cosmos.Proto.Message.MsgStrideLiquidStakingRedeem.encode(message.msgStrideLiquidStakingRedeem, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
23795
+ if (message.thorchainDepositMessage != null && Object.hasOwnProperty.call(message, "thorchainDepositMessage"))
23796
+ $root.TW.Cosmos.Proto.Message.THORChainDeposit.encode(message.thorchainDepositMessage, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
23317
23797
  return writer;
23318
23798
  };
23319
23799
 
@@ -23401,6 +23881,9 @@
23401
23881
  case 22:
23402
23882
  message.msgStrideLiquidStakingRedeem = $root.TW.Cosmos.Proto.Message.MsgStrideLiquidStakingRedeem.decode(reader, reader.uint32());
23403
23883
  break;
23884
+ case 23:
23885
+ message.thorchainDepositMessage = $root.TW.Cosmos.Proto.Message.THORChainDeposit.decode(reader, reader.uint32());
23886
+ break;
23404
23887
  default:
23405
23888
  reader.skipType(tag & 7);
23406
23889
  break;
@@ -23639,6 +24122,16 @@
23639
24122
  return "msgStrideLiquidStakingRedeem." + error;
23640
24123
  }
23641
24124
  }
24125
+ if (message.thorchainDepositMessage != null && message.hasOwnProperty("thorchainDepositMessage")) {
24126
+ if (properties.messageOneof === 1)
24127
+ return "messageOneof: multiple values";
24128
+ properties.messageOneof = 1;
24129
+ {
24130
+ var error = $root.TW.Cosmos.Proto.Message.THORChainDeposit.verify(message.thorchainDepositMessage);
24131
+ if (error)
24132
+ return "thorchainDepositMessage." + error;
24133
+ }
24134
+ }
23642
24135
  return null;
23643
24136
  };
23644
24137
 
@@ -23764,6 +24257,11 @@
23764
24257
  throw TypeError(".TW.Cosmos.Proto.Message.msgStrideLiquidStakingRedeem: object expected");
23765
24258
  message.msgStrideLiquidStakingRedeem = $root.TW.Cosmos.Proto.Message.MsgStrideLiquidStakingRedeem.fromObject(object.msgStrideLiquidStakingRedeem);
23766
24259
  }
24260
+ if (object.thorchainDepositMessage != null) {
24261
+ if (typeof object.thorchainDepositMessage !== "object")
24262
+ throw TypeError(".TW.Cosmos.Proto.Message.thorchainDepositMessage: object expected");
24263
+ message.thorchainDepositMessage = $root.TW.Cosmos.Proto.Message.THORChainDeposit.fromObject(object.thorchainDepositMessage);
24264
+ }
23767
24265
  return message;
23768
24266
  };
23769
24267
 
@@ -23890,6 +24388,11 @@
23890
24388
  if (options.oneofs)
23891
24389
  object.messageOneof = "msgStrideLiquidStakingRedeem";
23892
24390
  }
24391
+ if (message.thorchainDepositMessage != null && message.hasOwnProperty("thorchainDepositMessage")) {
24392
+ object.thorchainDepositMessage = $root.TW.Cosmos.Proto.Message.THORChainDeposit.toObject(message.thorchainDepositMessage, options);
24393
+ if (options.oneofs)
24394
+ object.messageOneof = "thorchainDepositMessage";
24395
+ }
23893
24396
  return object;
23894
24397
  };
23895
24398
 
@@ -26625,6 +27128,240 @@
26625
27128
  return THORChainSend;
26626
27129
  })();
26627
27130
 
27131
+ Message.THORChainDeposit = (function() {
27132
+
27133
+ /**
27134
+ * Properties of a THORChainDeposit.
27135
+ * @memberof TW.Cosmos.Proto.Message
27136
+ * @interface ITHORChainDeposit
27137
+ * @property {Array.<TW.Cosmos.Proto.ITHORChainCoin>|null} [coins] THORChainDeposit coins
27138
+ * @property {string|null} [memo] THORChainDeposit memo
27139
+ * @property {Uint8Array|null} [signer] THORChainDeposit signer
27140
+ */
27141
+
27142
+ /**
27143
+ * Constructs a new THORChainDeposit.
27144
+ * @memberof TW.Cosmos.Proto.Message
27145
+ * @classdesc Represents a THORChainDeposit.
27146
+ * @implements ITHORChainDeposit
27147
+ * @constructor
27148
+ * @param {TW.Cosmos.Proto.Message.ITHORChainDeposit=} [properties] Properties to set
27149
+ */
27150
+ function THORChainDeposit(properties) {
27151
+ this.coins = [];
27152
+ if (properties)
27153
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27154
+ if (properties[keys[i]] != null)
27155
+ this[keys[i]] = properties[keys[i]];
27156
+ }
27157
+
27158
+ /**
27159
+ * THORChainDeposit coins.
27160
+ * @member {Array.<TW.Cosmos.Proto.ITHORChainCoin>} coins
27161
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27162
+ * @instance
27163
+ */
27164
+ THORChainDeposit.prototype.coins = $util.emptyArray;
27165
+
27166
+ /**
27167
+ * THORChainDeposit memo.
27168
+ * @member {string} memo
27169
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27170
+ * @instance
27171
+ */
27172
+ THORChainDeposit.prototype.memo = "";
27173
+
27174
+ /**
27175
+ * THORChainDeposit signer.
27176
+ * @member {Uint8Array} signer
27177
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27178
+ * @instance
27179
+ */
27180
+ THORChainDeposit.prototype.signer = $util.newBuffer([]);
27181
+
27182
+ /**
27183
+ * Creates a new THORChainDeposit instance using the specified properties.
27184
+ * @function create
27185
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27186
+ * @static
27187
+ * @param {TW.Cosmos.Proto.Message.ITHORChainDeposit=} [properties] Properties to set
27188
+ * @returns {TW.Cosmos.Proto.Message.THORChainDeposit} THORChainDeposit instance
27189
+ */
27190
+ THORChainDeposit.create = function create(properties) {
27191
+ return new THORChainDeposit(properties);
27192
+ };
27193
+
27194
+ /**
27195
+ * Encodes the specified THORChainDeposit message. Does not implicitly {@link TW.Cosmos.Proto.Message.THORChainDeposit.verify|verify} messages.
27196
+ * @function encode
27197
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27198
+ * @static
27199
+ * @param {TW.Cosmos.Proto.Message.ITHORChainDeposit} message THORChainDeposit message or plain object to encode
27200
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27201
+ * @returns {$protobuf.Writer} Writer
27202
+ */
27203
+ THORChainDeposit.encode = function encode(message, writer) {
27204
+ if (!writer)
27205
+ writer = $Writer.create();
27206
+ if (message.coins != null && message.coins.length)
27207
+ for (var i = 0; i < message.coins.length; ++i)
27208
+ $root.TW.Cosmos.Proto.THORChainCoin.encode(message.coins[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
27209
+ if (message.memo != null && Object.hasOwnProperty.call(message, "memo"))
27210
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.memo);
27211
+ if (message.signer != null && Object.hasOwnProperty.call(message, "signer"))
27212
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signer);
27213
+ return writer;
27214
+ };
27215
+
27216
+ /**
27217
+ * Decodes a THORChainDeposit message from the specified reader or buffer.
27218
+ * @function decode
27219
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27220
+ * @static
27221
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27222
+ * @param {number} [length] Message length if known beforehand
27223
+ * @returns {TW.Cosmos.Proto.Message.THORChainDeposit} THORChainDeposit
27224
+ * @throws {Error} If the payload is not a reader or valid buffer
27225
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27226
+ */
27227
+ THORChainDeposit.decode = function decode(reader, length) {
27228
+ if (!(reader instanceof $Reader))
27229
+ reader = $Reader.create(reader);
27230
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Cosmos.Proto.Message.THORChainDeposit();
27231
+ while (reader.pos < end) {
27232
+ var tag = reader.uint32();
27233
+ switch (tag >>> 3) {
27234
+ case 1:
27235
+ if (!(message.coins && message.coins.length))
27236
+ message.coins = [];
27237
+ message.coins.push($root.TW.Cosmos.Proto.THORChainCoin.decode(reader, reader.uint32()));
27238
+ break;
27239
+ case 2:
27240
+ message.memo = reader.string();
27241
+ break;
27242
+ case 3:
27243
+ message.signer = reader.bytes();
27244
+ break;
27245
+ default:
27246
+ reader.skipType(tag & 7);
27247
+ break;
27248
+ }
27249
+ }
27250
+ return message;
27251
+ };
27252
+
27253
+ /**
27254
+ * Verifies a THORChainDeposit message.
27255
+ * @function verify
27256
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27257
+ * @static
27258
+ * @param {Object.<string,*>} message Plain object to verify
27259
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
27260
+ */
27261
+ THORChainDeposit.verify = function verify(message) {
27262
+ if (typeof message !== "object" || message === null)
27263
+ return "object expected";
27264
+ if (message.coins != null && message.hasOwnProperty("coins")) {
27265
+ if (!Array.isArray(message.coins))
27266
+ return "coins: array expected";
27267
+ for (var i = 0; i < message.coins.length; ++i) {
27268
+ var error = $root.TW.Cosmos.Proto.THORChainCoin.verify(message.coins[i]);
27269
+ if (error)
27270
+ return "coins." + error;
27271
+ }
27272
+ }
27273
+ if (message.memo != null && message.hasOwnProperty("memo"))
27274
+ if (!$util.isString(message.memo))
27275
+ return "memo: string expected";
27276
+ if (message.signer != null && message.hasOwnProperty("signer"))
27277
+ if (!(message.signer && typeof message.signer.length === "number" || $util.isString(message.signer)))
27278
+ return "signer: buffer expected";
27279
+ return null;
27280
+ };
27281
+
27282
+ /**
27283
+ * Creates a THORChainDeposit message from a plain object. Also converts values to their respective internal types.
27284
+ * @function fromObject
27285
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27286
+ * @static
27287
+ * @param {Object.<string,*>} object Plain object
27288
+ * @returns {TW.Cosmos.Proto.Message.THORChainDeposit} THORChainDeposit
27289
+ */
27290
+ THORChainDeposit.fromObject = function fromObject(object) {
27291
+ if (object instanceof $root.TW.Cosmos.Proto.Message.THORChainDeposit)
27292
+ return object;
27293
+ var message = new $root.TW.Cosmos.Proto.Message.THORChainDeposit();
27294
+ if (object.coins) {
27295
+ if (!Array.isArray(object.coins))
27296
+ throw TypeError(".TW.Cosmos.Proto.Message.THORChainDeposit.coins: array expected");
27297
+ message.coins = [];
27298
+ for (var i = 0; i < object.coins.length; ++i) {
27299
+ if (typeof object.coins[i] !== "object")
27300
+ throw TypeError(".TW.Cosmos.Proto.Message.THORChainDeposit.coins: object expected");
27301
+ message.coins[i] = $root.TW.Cosmos.Proto.THORChainCoin.fromObject(object.coins[i]);
27302
+ }
27303
+ }
27304
+ if (object.memo != null)
27305
+ message.memo = String(object.memo);
27306
+ if (object.signer != null)
27307
+ if (typeof object.signer === "string")
27308
+ $util.base64.decode(object.signer, message.signer = $util.newBuffer($util.base64.length(object.signer)), 0);
27309
+ else if (object.signer.length)
27310
+ message.signer = object.signer;
27311
+ return message;
27312
+ };
27313
+
27314
+ /**
27315
+ * Creates a plain object from a THORChainDeposit message. Also converts values to other types if specified.
27316
+ * @function toObject
27317
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27318
+ * @static
27319
+ * @param {TW.Cosmos.Proto.Message.THORChainDeposit} message THORChainDeposit
27320
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
27321
+ * @returns {Object.<string,*>} Plain object
27322
+ */
27323
+ THORChainDeposit.toObject = function toObject(message, options) {
27324
+ if (!options)
27325
+ options = {};
27326
+ var object = {};
27327
+ if (options.arrays || options.defaults)
27328
+ object.coins = [];
27329
+ if (options.defaults) {
27330
+ object.memo = "";
27331
+ if (options.bytes === String)
27332
+ object.signer = "";
27333
+ else {
27334
+ object.signer = [];
27335
+ if (options.bytes !== Array)
27336
+ object.signer = $util.newBuffer(object.signer);
27337
+ }
27338
+ }
27339
+ if (message.coins && message.coins.length) {
27340
+ object.coins = [];
27341
+ for (var j = 0; j < message.coins.length; ++j)
27342
+ object.coins[j] = $root.TW.Cosmos.Proto.THORChainCoin.toObject(message.coins[j], options);
27343
+ }
27344
+ if (message.memo != null && message.hasOwnProperty("memo"))
27345
+ object.memo = message.memo;
27346
+ if (message.signer != null && message.hasOwnProperty("signer"))
27347
+ object.signer = options.bytes === String ? $util.base64.encode(message.signer, 0, message.signer.length) : options.bytes === Array ? Array.prototype.slice.call(message.signer) : message.signer;
27348
+ return object;
27349
+ };
27350
+
27351
+ /**
27352
+ * Converts this THORChainDeposit to JSON.
27353
+ * @function toJSON
27354
+ * @memberof TW.Cosmos.Proto.Message.THORChainDeposit
27355
+ * @instance
27356
+ * @returns {Object.<string,*>} JSON object
27357
+ */
27358
+ THORChainDeposit.prototype.toJSON = function toJSON() {
27359
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27360
+ };
27361
+
27362
+ return THORChainDeposit;
27363
+ })();
27364
+
26628
27365
  Message.WasmTerraExecuteContractGeneric = (function() {
26629
27366
 
26630
27367
  /**
@@ -34,7 +34,7 @@ function Ua(){Qa++;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert
34
34
  function Va(){return G.startsWith("data:application/octet-stream;base64,")}function ma(a){return a.startsWith("file://")}function H(a){return function(){var b=g.asm;assert(Oa,"native function `"+a+"` called before runtime initialization");b[a]||assert(b[a],"exported native function `"+a+"` not found");return b[a].apply(null,arguments)}}var G;G="wallet-core.wasm";if(!Va()){var Wa=G;G=g.locateFile?g.locateFile(Wa,w):w+Wa}
35
35
  function Xa(){var a=G;try{if(a==G&&qa)return new Uint8Array(qa);if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";}catch(b){n(b)}}
36
36
  function Ya(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(G))return fetch(G,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+G+"'";return a.arrayBuffer()}).catch(function(){return Xa()});if(ja)return new Promise(function(a,b){ja(G,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Xa()})}
37
- var Za,$a,ab={1790740:()=>{if(void 0===g.ea)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.ea=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.ea=a}catch(e){throw"No secure random number generator found";}}},1791462:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
37
+ var Za,$a,ab={1793428:()=>{if(void 0===g.ea)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.ea=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.ea=a}catch(e){throw"No secure random number generator found";}}},1794150:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
38
38
  function va(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function pa(a){cb||(cb={});cb[a]||(cb[a]=1,v&&(a="warning: "+a),y(a))}var cb,db=0;
39
39
  function eb(a){this.l=a-24;this.Ta=function(b){F[this.l+4>>2]=b};this.Da=function(){return F[this.l+4>>2]};this.Ja=function(b){F[this.l+8>>2]=b};this.Ka=function(){E[this.l>>2]=0};this.Ia=function(){C[this.l+12>>0]=0};this.Na=function(){C[this.l+13>>0]=0};this.Ea=function(b,c){this.F(0);this.Ta(b);this.Ja(c);this.Ka();this.Ia();this.Na()};this.F=function(b){F[this.l+16>>2]=b}}
40
40
  var fb=0,gb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},hb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=gb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},ib=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},jb=
Binary file
@@ -95,7 +95,7 @@ export class AsnParser {
95
95
  }
96
96
  export class Barz {
97
97
  static getCounterfactualAddress(input: Uint8Array | Buffer): string;
98
- static getInitCode(factory: string, publicKey: PublicKey, verificationFacet: string): Uint8Array;
98
+ static getInitCode(factory: string, publicKey: PublicKey, verificationFacet: string, salt: number): Uint8Array;
99
99
  static getFormattedSignature(signature: Uint8Array | Buffer, challenge: Uint8Array | Buffer, authenticatorData: Uint8Array | Buffer, clientDataJSON: string): Uint8Array;
100
100
  }
101
101
  export class Base32 {
@@ -372,9 +372,10 @@ export class CoinType {
372
372
  static confluxeSpace: CoinType;
373
373
  static acala: CoinType;
374
374
  static acalaEVM: CoinType;
375
- static opBNBtestnet: CoinType;
375
+ static opBNB: CoinType;
376
376
  static neon: CoinType;
377
377
  static base: CoinType;
378
+ static sei: CoinType;
378
379
  }
379
380
  export class CoinTypeConfiguration {
380
381
  static getSymbol(type: CoinType): string;
@@ -510,6 +511,7 @@ export class EthereumChainID {
510
511
  static classic: EthereumChainID;
511
512
  static rootstock: EthereumChainID;
512
513
  static poa: EthereumChainID;
514
+ static opbnb: EthereumChainID;
513
515
  static tfuelevm: EthereumChainID;
514
516
  static vechain: EthereumChainID;
515
517
  static callisto: EthereumChainID;
@@ -518,7 +520,6 @@ export class EthereumChainID {
518
520
  static okc: EthereumChainID;
519
521
  static thundertoken: EthereumChainID;
520
522
  static cfxevm: EthereumChainID;
521
- static opbnb: EthereumChainID;
522
523
  static gochain: EthereumChainID;
523
524
  static base: EthereumChainID;
524
525
  static meter: EthereumChainID;
@@ -676,6 +677,7 @@ export class HRP {
676
677
  static persistence: HRP;
677
678
  static akash: HRP;
678
679
  static noble: HRP;
680
+ static sei: HRP;
679
681
  static stargaze: HRP;
680
682
  static nativeEvmos: HRP;
681
683
  static juno: HRP;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "3.2.9",
3
+ "version": "3.2.11",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",