@trustwallet/wallet-core 4.3.1 → 4.3.3

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.
@@ -37042,6 +37042,7 @@
37042
37042
  * @property {TW.Cosmos.Proto.Message.IMsgStrideLiquidStakingStake|null} [msgStrideLiquidStakingStake] Message msgStrideLiquidStakingStake
37043
37043
  * @property {TW.Cosmos.Proto.Message.IMsgStrideLiquidStakingRedeem|null} [msgStrideLiquidStakingRedeem] Message msgStrideLiquidStakingRedeem
37044
37044
  * @property {TW.Cosmos.Proto.Message.ITHORChainDeposit|null} [thorchainDepositMessage] Message thorchainDepositMessage
37045
+ * @property {TW.Cosmos.Proto.Message.IWasmInstantiateContract|null} [wasmInstantiateContractMessage] Message wasmInstantiateContractMessage
37045
37046
  */
37046
37047
 
37047
37048
  /**
@@ -37235,17 +37236,25 @@
37235
37236
  */
37236
37237
  Message.prototype.thorchainDepositMessage = null;
37237
37238
 
37239
+ /**
37240
+ * Message wasmInstantiateContractMessage.
37241
+ * @member {TW.Cosmos.Proto.Message.IWasmInstantiateContract|null|undefined} wasmInstantiateContractMessage
37242
+ * @memberof TW.Cosmos.Proto.Message
37243
+ * @instance
37244
+ */
37245
+ Message.prototype.wasmInstantiateContractMessage = null;
37246
+
37238
37247
  // OneOf field names bound to virtual getters and setters
37239
37248
  var $oneOfFields;
37240
37249
 
37241
37250
  /**
37242
37251
  * Message messageOneof.
37243
- * @member {"sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"wasmTerraExecuteContractGeneric"|"wasmExecuteContractTransferMessage"|"wasmExecuteContractSendMessage"|"wasmExecuteContractGeneric"|"signDirectMessage"|"authGrant"|"authRevoke"|"setWithdrawAddressMessage"|"msgVote"|"msgStrideLiquidStakingStake"|"msgStrideLiquidStakingRedeem"|"thorchainDepositMessage"|undefined} messageOneof
37252
+ * @member {"sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"wasmTerraExecuteContractGeneric"|"wasmExecuteContractTransferMessage"|"wasmExecuteContractSendMessage"|"wasmExecuteContractGeneric"|"signDirectMessage"|"authGrant"|"authRevoke"|"setWithdrawAddressMessage"|"msgVote"|"msgStrideLiquidStakingStake"|"msgStrideLiquidStakingRedeem"|"thorchainDepositMessage"|"wasmInstantiateContractMessage"|undefined} messageOneof
37244
37253
  * @memberof TW.Cosmos.Proto.Message
37245
37254
  * @instance
37246
37255
  */
37247
37256
  Object.defineProperty(Message.prototype, "messageOneof", {
37248
- get: $util.oneOfGetter($oneOfFields = ["sendCoinsMessage", "transferTokensMessage", "stakeMessage", "unstakeMessage", "restakeMessage", "withdrawStakeRewardMessage", "rawJsonMessage", "wasmTerraExecuteContractTransferMessage", "wasmTerraExecuteContractSendMessage", "thorchainSendMessage", "wasmTerraExecuteContractGeneric", "wasmExecuteContractTransferMessage", "wasmExecuteContractSendMessage", "wasmExecuteContractGeneric", "signDirectMessage", "authGrant", "authRevoke", "setWithdrawAddressMessage", "msgVote", "msgStrideLiquidStakingStake", "msgStrideLiquidStakingRedeem", "thorchainDepositMessage"]),
37257
+ get: $util.oneOfGetter($oneOfFields = ["sendCoinsMessage", "transferTokensMessage", "stakeMessage", "unstakeMessage", "restakeMessage", "withdrawStakeRewardMessage", "rawJsonMessage", "wasmTerraExecuteContractTransferMessage", "wasmTerraExecuteContractSendMessage", "thorchainSendMessage", "wasmTerraExecuteContractGeneric", "wasmExecuteContractTransferMessage", "wasmExecuteContractSendMessage", "wasmExecuteContractGeneric", "signDirectMessage", "authGrant", "authRevoke", "setWithdrawAddressMessage", "msgVote", "msgStrideLiquidStakingStake", "msgStrideLiquidStakingRedeem", "thorchainDepositMessage", "wasmInstantiateContractMessage"]),
37249
37258
  set: $util.oneOfSetter($oneOfFields)
37250
37259
  });
37251
37260
 
@@ -37317,6 +37326,8 @@
37317
37326
  $root.TW.Cosmos.Proto.Message.MsgStrideLiquidStakingRedeem.encode(message.msgStrideLiquidStakingRedeem, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
37318
37327
  if (message.thorchainDepositMessage != null && Object.hasOwnProperty.call(message, "thorchainDepositMessage"))
37319
37328
  $root.TW.Cosmos.Proto.Message.THORChainDeposit.encode(message.thorchainDepositMessage, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
37329
+ if (message.wasmInstantiateContractMessage != null && Object.hasOwnProperty.call(message, "wasmInstantiateContractMessage"))
37330
+ $root.TW.Cosmos.Proto.Message.WasmInstantiateContract.encode(message.wasmInstantiateContractMessage, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
37320
37331
  return writer;
37321
37332
  };
37322
37333
 
@@ -37404,6 +37415,9 @@
37404
37415
  case 23:
37405
37416
  message.thorchainDepositMessage = $root.TW.Cosmos.Proto.Message.THORChainDeposit.decode(reader, reader.uint32());
37406
37417
  break;
37418
+ case 24:
37419
+ message.wasmInstantiateContractMessage = $root.TW.Cosmos.Proto.Message.WasmInstantiateContract.decode(reader, reader.uint32());
37420
+ break;
37407
37421
  default:
37408
37422
  reader.skipType(tag & 7);
37409
37423
  break;
@@ -37642,6 +37656,16 @@
37642
37656
  return "thorchainDepositMessage." + error;
37643
37657
  }
37644
37658
  }
37659
+ if (message.wasmInstantiateContractMessage != null && message.hasOwnProperty("wasmInstantiateContractMessage")) {
37660
+ if (properties.messageOneof === 1)
37661
+ return "messageOneof: multiple values";
37662
+ properties.messageOneof = 1;
37663
+ {
37664
+ var error = $root.TW.Cosmos.Proto.Message.WasmInstantiateContract.verify(message.wasmInstantiateContractMessage);
37665
+ if (error)
37666
+ return "wasmInstantiateContractMessage." + error;
37667
+ }
37668
+ }
37645
37669
  return null;
37646
37670
  };
37647
37671
 
@@ -37767,6 +37791,11 @@
37767
37791
  throw TypeError(".TW.Cosmos.Proto.Message.thorchainDepositMessage: object expected");
37768
37792
  message.thorchainDepositMessage = $root.TW.Cosmos.Proto.Message.THORChainDeposit.fromObject(object.thorchainDepositMessage);
37769
37793
  }
37794
+ if (object.wasmInstantiateContractMessage != null) {
37795
+ if (typeof object.wasmInstantiateContractMessage !== "object")
37796
+ throw TypeError(".TW.Cosmos.Proto.Message.wasmInstantiateContractMessage: object expected");
37797
+ message.wasmInstantiateContractMessage = $root.TW.Cosmos.Proto.Message.WasmInstantiateContract.fromObject(object.wasmInstantiateContractMessage);
37798
+ }
37770
37799
  return message;
37771
37800
  };
37772
37801
 
@@ -37893,6 +37922,11 @@
37893
37922
  if (options.oneofs)
37894
37923
  object.messageOneof = "thorchainDepositMessage";
37895
37924
  }
37925
+ if (message.wasmInstantiateContractMessage != null && message.hasOwnProperty("wasmInstantiateContractMessage")) {
37926
+ object.wasmInstantiateContractMessage = $root.TW.Cosmos.Proto.Message.WasmInstantiateContract.toObject(message.wasmInstantiateContractMessage, options);
37927
+ if (options.oneofs)
37928
+ object.messageOneof = "wasmInstantiateContractMessage";
37929
+ }
37896
37930
  return object;
37897
37931
  };
37898
37932
 
@@ -41616,6 +41650,320 @@
41616
41650
  return WasmExecuteContractGeneric;
41617
41651
  })();
41618
41652
 
41653
+ Message.WasmInstantiateContract = (function() {
41654
+
41655
+ /**
41656
+ * Properties of a WasmInstantiateContract.
41657
+ * @memberof TW.Cosmos.Proto.Message
41658
+ * @interface IWasmInstantiateContract
41659
+ * @property {string|null} [sender] WasmInstantiateContract sender
41660
+ * @property {string|null} [admin] WasmInstantiateContract admin
41661
+ * @property {Long|null} [codeId] WasmInstantiateContract codeId
41662
+ * @property {string|null} [label] WasmInstantiateContract label
41663
+ * @property {Uint8Array|null} [msg] WasmInstantiateContract msg
41664
+ * @property {Array.<TW.Cosmos.Proto.IAmount>|null} [initFunds] WasmInstantiateContract initFunds
41665
+ */
41666
+
41667
+ /**
41668
+ * Constructs a new WasmInstantiateContract.
41669
+ * @memberof TW.Cosmos.Proto.Message
41670
+ * @classdesc Represents a WasmInstantiateContract.
41671
+ * @implements IWasmInstantiateContract
41672
+ * @constructor
41673
+ * @param {TW.Cosmos.Proto.Message.IWasmInstantiateContract=} [properties] Properties to set
41674
+ */
41675
+ function WasmInstantiateContract(properties) {
41676
+ this.initFunds = [];
41677
+ if (properties)
41678
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
41679
+ if (properties[keys[i]] != null)
41680
+ this[keys[i]] = properties[keys[i]];
41681
+ }
41682
+
41683
+ /**
41684
+ * WasmInstantiateContract sender.
41685
+ * @member {string} sender
41686
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41687
+ * @instance
41688
+ */
41689
+ WasmInstantiateContract.prototype.sender = "";
41690
+
41691
+ /**
41692
+ * WasmInstantiateContract admin.
41693
+ * @member {string} admin
41694
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41695
+ * @instance
41696
+ */
41697
+ WasmInstantiateContract.prototype.admin = "";
41698
+
41699
+ /**
41700
+ * WasmInstantiateContract codeId.
41701
+ * @member {Long} codeId
41702
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41703
+ * @instance
41704
+ */
41705
+ WasmInstantiateContract.prototype.codeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
41706
+
41707
+ /**
41708
+ * WasmInstantiateContract label.
41709
+ * @member {string} label
41710
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41711
+ * @instance
41712
+ */
41713
+ WasmInstantiateContract.prototype.label = "";
41714
+
41715
+ /**
41716
+ * WasmInstantiateContract msg.
41717
+ * @member {Uint8Array} msg
41718
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41719
+ * @instance
41720
+ */
41721
+ WasmInstantiateContract.prototype.msg = $util.newBuffer([]);
41722
+
41723
+ /**
41724
+ * WasmInstantiateContract initFunds.
41725
+ * @member {Array.<TW.Cosmos.Proto.IAmount>} initFunds
41726
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41727
+ * @instance
41728
+ */
41729
+ WasmInstantiateContract.prototype.initFunds = $util.emptyArray;
41730
+
41731
+ /**
41732
+ * Creates a new WasmInstantiateContract instance using the specified properties.
41733
+ * @function create
41734
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41735
+ * @static
41736
+ * @param {TW.Cosmos.Proto.Message.IWasmInstantiateContract=} [properties] Properties to set
41737
+ * @returns {TW.Cosmos.Proto.Message.WasmInstantiateContract} WasmInstantiateContract instance
41738
+ */
41739
+ WasmInstantiateContract.create = function create(properties) {
41740
+ return new WasmInstantiateContract(properties);
41741
+ };
41742
+
41743
+ /**
41744
+ * Encodes the specified WasmInstantiateContract message. Does not implicitly {@link TW.Cosmos.Proto.Message.WasmInstantiateContract.verify|verify} messages.
41745
+ * @function encode
41746
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41747
+ * @static
41748
+ * @param {TW.Cosmos.Proto.Message.IWasmInstantiateContract} message WasmInstantiateContract message or plain object to encode
41749
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41750
+ * @returns {$protobuf.Writer} Writer
41751
+ */
41752
+ WasmInstantiateContract.encode = function encode(message, writer) {
41753
+ if (!writer)
41754
+ writer = $Writer.create();
41755
+ if (message.sender != null && Object.hasOwnProperty.call(message, "sender"))
41756
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.sender);
41757
+ if (message.admin != null && Object.hasOwnProperty.call(message, "admin"))
41758
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.admin);
41759
+ if (message.codeId != null && Object.hasOwnProperty.call(message, "codeId"))
41760
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.codeId);
41761
+ if (message.label != null && Object.hasOwnProperty.call(message, "label"))
41762
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.label);
41763
+ if (message.msg != null && Object.hasOwnProperty.call(message, "msg"))
41764
+ writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.msg);
41765
+ if (message.initFunds != null && message.initFunds.length)
41766
+ for (var i = 0; i < message.initFunds.length; ++i)
41767
+ $root.TW.Cosmos.Proto.Amount.encode(message.initFunds[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
41768
+ return writer;
41769
+ };
41770
+
41771
+ /**
41772
+ * Decodes a WasmInstantiateContract message from the specified reader or buffer.
41773
+ * @function decode
41774
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41775
+ * @static
41776
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41777
+ * @param {number} [length] Message length if known beforehand
41778
+ * @returns {TW.Cosmos.Proto.Message.WasmInstantiateContract} WasmInstantiateContract
41779
+ * @throws {Error} If the payload is not a reader or valid buffer
41780
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41781
+ */
41782
+ WasmInstantiateContract.decode = function decode(reader, length) {
41783
+ if (!(reader instanceof $Reader))
41784
+ reader = $Reader.create(reader);
41785
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Cosmos.Proto.Message.WasmInstantiateContract();
41786
+ while (reader.pos < end) {
41787
+ var tag = reader.uint32();
41788
+ switch (tag >>> 3) {
41789
+ case 1:
41790
+ message.sender = reader.string();
41791
+ break;
41792
+ case 2:
41793
+ message.admin = reader.string();
41794
+ break;
41795
+ case 3:
41796
+ message.codeId = reader.uint64();
41797
+ break;
41798
+ case 4:
41799
+ message.label = reader.string();
41800
+ break;
41801
+ case 5:
41802
+ message.msg = reader.bytes();
41803
+ break;
41804
+ case 6:
41805
+ if (!(message.initFunds && message.initFunds.length))
41806
+ message.initFunds = [];
41807
+ message.initFunds.push($root.TW.Cosmos.Proto.Amount.decode(reader, reader.uint32()));
41808
+ break;
41809
+ default:
41810
+ reader.skipType(tag & 7);
41811
+ break;
41812
+ }
41813
+ }
41814
+ return message;
41815
+ };
41816
+
41817
+ /**
41818
+ * Verifies a WasmInstantiateContract message.
41819
+ * @function verify
41820
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41821
+ * @static
41822
+ * @param {Object.<string,*>} message Plain object to verify
41823
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
41824
+ */
41825
+ WasmInstantiateContract.verify = function verify(message) {
41826
+ if (typeof message !== "object" || message === null)
41827
+ return "object expected";
41828
+ if (message.sender != null && message.hasOwnProperty("sender"))
41829
+ if (!$util.isString(message.sender))
41830
+ return "sender: string expected";
41831
+ if (message.admin != null && message.hasOwnProperty("admin"))
41832
+ if (!$util.isString(message.admin))
41833
+ return "admin: string expected";
41834
+ if (message.codeId != null && message.hasOwnProperty("codeId"))
41835
+ if (!$util.isInteger(message.codeId) && !(message.codeId && $util.isInteger(message.codeId.low) && $util.isInteger(message.codeId.high)))
41836
+ return "codeId: integer|Long expected";
41837
+ if (message.label != null && message.hasOwnProperty("label"))
41838
+ if (!$util.isString(message.label))
41839
+ return "label: string expected";
41840
+ if (message.msg != null && message.hasOwnProperty("msg"))
41841
+ if (!(message.msg && typeof message.msg.length === "number" || $util.isString(message.msg)))
41842
+ return "msg: buffer expected";
41843
+ if (message.initFunds != null && message.hasOwnProperty("initFunds")) {
41844
+ if (!Array.isArray(message.initFunds))
41845
+ return "initFunds: array expected";
41846
+ for (var i = 0; i < message.initFunds.length; ++i) {
41847
+ var error = $root.TW.Cosmos.Proto.Amount.verify(message.initFunds[i]);
41848
+ if (error)
41849
+ return "initFunds." + error;
41850
+ }
41851
+ }
41852
+ return null;
41853
+ };
41854
+
41855
+ /**
41856
+ * Creates a WasmInstantiateContract message from a plain object. Also converts values to their respective internal types.
41857
+ * @function fromObject
41858
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41859
+ * @static
41860
+ * @param {Object.<string,*>} object Plain object
41861
+ * @returns {TW.Cosmos.Proto.Message.WasmInstantiateContract} WasmInstantiateContract
41862
+ */
41863
+ WasmInstantiateContract.fromObject = function fromObject(object) {
41864
+ if (object instanceof $root.TW.Cosmos.Proto.Message.WasmInstantiateContract)
41865
+ return object;
41866
+ var message = new $root.TW.Cosmos.Proto.Message.WasmInstantiateContract();
41867
+ if (object.sender != null)
41868
+ message.sender = String(object.sender);
41869
+ if (object.admin != null)
41870
+ message.admin = String(object.admin);
41871
+ if (object.codeId != null)
41872
+ if ($util.Long)
41873
+ (message.codeId = $util.Long.fromValue(object.codeId)).unsigned = true;
41874
+ else if (typeof object.codeId === "string")
41875
+ message.codeId = parseInt(object.codeId, 10);
41876
+ else if (typeof object.codeId === "number")
41877
+ message.codeId = object.codeId;
41878
+ else if (typeof object.codeId === "object")
41879
+ message.codeId = new $util.LongBits(object.codeId.low >>> 0, object.codeId.high >>> 0).toNumber(true);
41880
+ if (object.label != null)
41881
+ message.label = String(object.label);
41882
+ if (object.msg != null)
41883
+ if (typeof object.msg === "string")
41884
+ $util.base64.decode(object.msg, message.msg = $util.newBuffer($util.base64.length(object.msg)), 0);
41885
+ else if (object.msg.length)
41886
+ message.msg = object.msg;
41887
+ if (object.initFunds) {
41888
+ if (!Array.isArray(object.initFunds))
41889
+ throw TypeError(".TW.Cosmos.Proto.Message.WasmInstantiateContract.initFunds: array expected");
41890
+ message.initFunds = [];
41891
+ for (var i = 0; i < object.initFunds.length; ++i) {
41892
+ if (typeof object.initFunds[i] !== "object")
41893
+ throw TypeError(".TW.Cosmos.Proto.Message.WasmInstantiateContract.initFunds: object expected");
41894
+ message.initFunds[i] = $root.TW.Cosmos.Proto.Amount.fromObject(object.initFunds[i]);
41895
+ }
41896
+ }
41897
+ return message;
41898
+ };
41899
+
41900
+ /**
41901
+ * Creates a plain object from a WasmInstantiateContract message. Also converts values to other types if specified.
41902
+ * @function toObject
41903
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41904
+ * @static
41905
+ * @param {TW.Cosmos.Proto.Message.WasmInstantiateContract} message WasmInstantiateContract
41906
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41907
+ * @returns {Object.<string,*>} Plain object
41908
+ */
41909
+ WasmInstantiateContract.toObject = function toObject(message, options) {
41910
+ if (!options)
41911
+ options = {};
41912
+ var object = {};
41913
+ if (options.arrays || options.defaults)
41914
+ object.initFunds = [];
41915
+ if (options.defaults) {
41916
+ object.sender = "";
41917
+ object.admin = "";
41918
+ if ($util.Long) {
41919
+ var long = new $util.Long(0, 0, true);
41920
+ object.codeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
41921
+ } else
41922
+ object.codeId = options.longs === String ? "0" : 0;
41923
+ object.label = "";
41924
+ if (options.bytes === String)
41925
+ object.msg = "";
41926
+ else {
41927
+ object.msg = [];
41928
+ if (options.bytes !== Array)
41929
+ object.msg = $util.newBuffer(object.msg);
41930
+ }
41931
+ }
41932
+ if (message.sender != null && message.hasOwnProperty("sender"))
41933
+ object.sender = message.sender;
41934
+ if (message.admin != null && message.hasOwnProperty("admin"))
41935
+ object.admin = message.admin;
41936
+ if (message.codeId != null && message.hasOwnProperty("codeId"))
41937
+ if (typeof message.codeId === "number")
41938
+ object.codeId = options.longs === String ? String(message.codeId) : message.codeId;
41939
+ else
41940
+ object.codeId = options.longs === String ? $util.Long.prototype.toString.call(message.codeId) : options.longs === Number ? new $util.LongBits(message.codeId.low >>> 0, message.codeId.high >>> 0).toNumber(true) : message.codeId;
41941
+ if (message.label != null && message.hasOwnProperty("label"))
41942
+ object.label = message.label;
41943
+ if (message.msg != null && message.hasOwnProperty("msg"))
41944
+ object.msg = options.bytes === String ? $util.base64.encode(message.msg, 0, message.msg.length) : options.bytes === Array ? Array.prototype.slice.call(message.msg) : message.msg;
41945
+ if (message.initFunds && message.initFunds.length) {
41946
+ object.initFunds = [];
41947
+ for (var j = 0; j < message.initFunds.length; ++j)
41948
+ object.initFunds[j] = $root.TW.Cosmos.Proto.Amount.toObject(message.initFunds[j], options);
41949
+ }
41950
+ return object;
41951
+ };
41952
+
41953
+ /**
41954
+ * Converts this WasmInstantiateContract to JSON.
41955
+ * @function toJSON
41956
+ * @memberof TW.Cosmos.Proto.Message.WasmInstantiateContract
41957
+ * @instance
41958
+ * @returns {Object.<string,*>} JSON object
41959
+ */
41960
+ WasmInstantiateContract.prototype.toJSON = function toJSON() {
41961
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41962
+ };
41963
+
41964
+ return WasmInstantiateContract;
41965
+ })();
41966
+
41619
41967
  Message.RawJSON = (function() {
41620
41968
 
41621
41969
  /**
@@ -50466,24 +50814,25 @@
50466
50814
  return Access;
50467
50815
  })();
50468
50816
 
50469
- Proto.Authority = (function() {
50817
+ Proto.Authorization = (function() {
50470
50818
 
50471
50819
  /**
50472
- * Properties of an Authority.
50820
+ * Properties of an Authorization.
50473
50821
  * @memberof TW.Ethereum.Proto
50474
- * @interface IAuthority
50475
- * @property {string|null} [address] Authority address
50822
+ * @interface IAuthorization
50823
+ * @property {string|null} [address] Authorization address
50824
+ * @property {TW.Ethereum.Proto.IAuthorizationCustomSignature|null} [customSignature] Authorization customSignature
50476
50825
  */
50477
50826
 
50478
50827
  /**
50479
- * Constructs a new Authority.
50828
+ * Constructs a new Authorization.
50480
50829
  * @memberof TW.Ethereum.Proto
50481
- * @classdesc Represents an Authority.
50482
- * @implements IAuthority
50830
+ * @classdesc Represents an Authorization.
50831
+ * @implements IAuthorization
50483
50832
  * @constructor
50484
- * @param {TW.Ethereum.Proto.IAuthority=} [properties] Properties to set
50833
+ * @param {TW.Ethereum.Proto.IAuthorization=} [properties] Properties to set
50485
50834
  */
50486
- function Authority(properties) {
50835
+ function Authorization(properties) {
50487
50836
  if (properties)
50488
50837
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50489
50838
  if (properties[keys[i]] != null)
@@ -50491,63 +50840,76 @@
50491
50840
  }
50492
50841
 
50493
50842
  /**
50494
- * Authority address.
50843
+ * Authorization address.
50495
50844
  * @member {string} address
50496
- * @memberof TW.Ethereum.Proto.Authority
50845
+ * @memberof TW.Ethereum.Proto.Authorization
50497
50846
  * @instance
50498
50847
  */
50499
- Authority.prototype.address = "";
50848
+ Authorization.prototype.address = "";
50500
50849
 
50501
50850
  /**
50502
- * Creates a new Authority instance using the specified properties.
50851
+ * Authorization customSignature.
50852
+ * @member {TW.Ethereum.Proto.IAuthorizationCustomSignature|null|undefined} customSignature
50853
+ * @memberof TW.Ethereum.Proto.Authorization
50854
+ * @instance
50855
+ */
50856
+ Authorization.prototype.customSignature = null;
50857
+
50858
+ /**
50859
+ * Creates a new Authorization instance using the specified properties.
50503
50860
  * @function create
50504
- * @memberof TW.Ethereum.Proto.Authority
50861
+ * @memberof TW.Ethereum.Proto.Authorization
50505
50862
  * @static
50506
- * @param {TW.Ethereum.Proto.IAuthority=} [properties] Properties to set
50507
- * @returns {TW.Ethereum.Proto.Authority} Authority instance
50863
+ * @param {TW.Ethereum.Proto.IAuthorization=} [properties] Properties to set
50864
+ * @returns {TW.Ethereum.Proto.Authorization} Authorization instance
50508
50865
  */
50509
- Authority.create = function create(properties) {
50510
- return new Authority(properties);
50866
+ Authorization.create = function create(properties) {
50867
+ return new Authorization(properties);
50511
50868
  };
50512
50869
 
50513
50870
  /**
50514
- * Encodes the specified Authority message. Does not implicitly {@link TW.Ethereum.Proto.Authority.verify|verify} messages.
50871
+ * Encodes the specified Authorization message. Does not implicitly {@link TW.Ethereum.Proto.Authorization.verify|verify} messages.
50515
50872
  * @function encode
50516
- * @memberof TW.Ethereum.Proto.Authority
50873
+ * @memberof TW.Ethereum.Proto.Authorization
50517
50874
  * @static
50518
- * @param {TW.Ethereum.Proto.IAuthority} message Authority message or plain object to encode
50875
+ * @param {TW.Ethereum.Proto.IAuthorization} message Authorization message or plain object to encode
50519
50876
  * @param {$protobuf.Writer} [writer] Writer to encode to
50520
50877
  * @returns {$protobuf.Writer} Writer
50521
50878
  */
50522
- Authority.encode = function encode(message, writer) {
50879
+ Authorization.encode = function encode(message, writer) {
50523
50880
  if (!writer)
50524
50881
  writer = $Writer.create();
50525
50882
  if (message.address != null && Object.hasOwnProperty.call(message, "address"))
50526
50883
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.address);
50884
+ if (message.customSignature != null && Object.hasOwnProperty.call(message, "customSignature"))
50885
+ $root.TW.Ethereum.Proto.AuthorizationCustomSignature.encode(message.customSignature, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
50527
50886
  return writer;
50528
50887
  };
50529
50888
 
50530
50889
  /**
50531
- * Decodes an Authority message from the specified reader or buffer.
50890
+ * Decodes an Authorization message from the specified reader or buffer.
50532
50891
  * @function decode
50533
- * @memberof TW.Ethereum.Proto.Authority
50892
+ * @memberof TW.Ethereum.Proto.Authorization
50534
50893
  * @static
50535
50894
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50536
50895
  * @param {number} [length] Message length if known beforehand
50537
- * @returns {TW.Ethereum.Proto.Authority} Authority
50896
+ * @returns {TW.Ethereum.Proto.Authorization} Authorization
50538
50897
  * @throws {Error} If the payload is not a reader or valid buffer
50539
50898
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
50540
50899
  */
50541
- Authority.decode = function decode(reader, length) {
50900
+ Authorization.decode = function decode(reader, length) {
50542
50901
  if (!(reader instanceof $Reader))
50543
50902
  reader = $Reader.create(reader);
50544
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ethereum.Proto.Authority();
50903
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ethereum.Proto.Authorization();
50545
50904
  while (reader.pos < end) {
50546
50905
  var tag = reader.uint32();
50547
50906
  switch (tag >>> 3) {
50548
50907
  case 2:
50549
50908
  message.address = reader.string();
50550
50909
  break;
50910
+ case 3:
50911
+ message.customSignature = $root.TW.Ethereum.Proto.AuthorizationCustomSignature.decode(reader, reader.uint32());
50912
+ break;
50551
50913
  default:
50552
50914
  reader.skipType(tag & 7);
50553
50915
  break;
@@ -50557,71 +50919,306 @@
50557
50919
  };
50558
50920
 
50559
50921
  /**
50560
- * Verifies an Authority message.
50922
+ * Verifies an Authorization message.
50561
50923
  * @function verify
50562
- * @memberof TW.Ethereum.Proto.Authority
50924
+ * @memberof TW.Ethereum.Proto.Authorization
50563
50925
  * @static
50564
50926
  * @param {Object.<string,*>} message Plain object to verify
50565
50927
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
50566
50928
  */
50567
- Authority.verify = function verify(message) {
50929
+ Authorization.verify = function verify(message) {
50568
50930
  if (typeof message !== "object" || message === null)
50569
50931
  return "object expected";
50570
50932
  if (message.address != null && message.hasOwnProperty("address"))
50571
50933
  if (!$util.isString(message.address))
50572
50934
  return "address: string expected";
50935
+ if (message.customSignature != null && message.hasOwnProperty("customSignature")) {
50936
+ var error = $root.TW.Ethereum.Proto.AuthorizationCustomSignature.verify(message.customSignature);
50937
+ if (error)
50938
+ return "customSignature." + error;
50939
+ }
50573
50940
  return null;
50574
50941
  };
50575
50942
 
50576
50943
  /**
50577
- * Creates an Authority message from a plain object. Also converts values to their respective internal types.
50944
+ * Creates an Authorization message from a plain object. Also converts values to their respective internal types.
50578
50945
  * @function fromObject
50579
- * @memberof TW.Ethereum.Proto.Authority
50946
+ * @memberof TW.Ethereum.Proto.Authorization
50580
50947
  * @static
50581
50948
  * @param {Object.<string,*>} object Plain object
50582
- * @returns {TW.Ethereum.Proto.Authority} Authority
50949
+ * @returns {TW.Ethereum.Proto.Authorization} Authorization
50583
50950
  */
50584
- Authority.fromObject = function fromObject(object) {
50585
- if (object instanceof $root.TW.Ethereum.Proto.Authority)
50951
+ Authorization.fromObject = function fromObject(object) {
50952
+ if (object instanceof $root.TW.Ethereum.Proto.Authorization)
50586
50953
  return object;
50587
- var message = new $root.TW.Ethereum.Proto.Authority();
50954
+ var message = new $root.TW.Ethereum.Proto.Authorization();
50588
50955
  if (object.address != null)
50589
50956
  message.address = String(object.address);
50957
+ if (object.customSignature != null) {
50958
+ if (typeof object.customSignature !== "object")
50959
+ throw TypeError(".TW.Ethereum.Proto.Authorization.customSignature: object expected");
50960
+ message.customSignature = $root.TW.Ethereum.Proto.AuthorizationCustomSignature.fromObject(object.customSignature);
50961
+ }
50590
50962
  return message;
50591
50963
  };
50592
50964
 
50593
50965
  /**
50594
- * Creates a plain object from an Authority message. Also converts values to other types if specified.
50966
+ * Creates a plain object from an Authorization message. Also converts values to other types if specified.
50595
50967
  * @function toObject
50596
- * @memberof TW.Ethereum.Proto.Authority
50968
+ * @memberof TW.Ethereum.Proto.Authorization
50597
50969
  * @static
50598
- * @param {TW.Ethereum.Proto.Authority} message Authority
50970
+ * @param {TW.Ethereum.Proto.Authorization} message Authorization
50599
50971
  * @param {$protobuf.IConversionOptions} [options] Conversion options
50600
50972
  * @returns {Object.<string,*>} Plain object
50601
50973
  */
50602
- Authority.toObject = function toObject(message, options) {
50974
+ Authorization.toObject = function toObject(message, options) {
50603
50975
  if (!options)
50604
50976
  options = {};
50605
50977
  var object = {};
50606
- if (options.defaults)
50978
+ if (options.defaults) {
50607
50979
  object.address = "";
50980
+ object.customSignature = null;
50981
+ }
50608
50982
  if (message.address != null && message.hasOwnProperty("address"))
50609
50983
  object.address = message.address;
50984
+ if (message.customSignature != null && message.hasOwnProperty("customSignature"))
50985
+ object.customSignature = $root.TW.Ethereum.Proto.AuthorizationCustomSignature.toObject(message.customSignature, options);
50986
+ return object;
50987
+ };
50988
+
50989
+ /**
50990
+ * Converts this Authorization to JSON.
50991
+ * @function toJSON
50992
+ * @memberof TW.Ethereum.Proto.Authorization
50993
+ * @instance
50994
+ * @returns {Object.<string,*>} JSON object
50995
+ */
50996
+ Authorization.prototype.toJSON = function toJSON() {
50997
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50998
+ };
50999
+
51000
+ return Authorization;
51001
+ })();
51002
+
51003
+ Proto.AuthorizationCustomSignature = (function() {
51004
+
51005
+ /**
51006
+ * Properties of an AuthorizationCustomSignature.
51007
+ * @memberof TW.Ethereum.Proto
51008
+ * @interface IAuthorizationCustomSignature
51009
+ * @property {Uint8Array|null} [chainId] AuthorizationCustomSignature chainId
51010
+ * @property {Uint8Array|null} [nonce] AuthorizationCustomSignature nonce
51011
+ * @property {string|null} [signature] AuthorizationCustomSignature signature
51012
+ */
51013
+
51014
+ /**
51015
+ * Constructs a new AuthorizationCustomSignature.
51016
+ * @memberof TW.Ethereum.Proto
51017
+ * @classdesc Represents an AuthorizationCustomSignature.
51018
+ * @implements IAuthorizationCustomSignature
51019
+ * @constructor
51020
+ * @param {TW.Ethereum.Proto.IAuthorizationCustomSignature=} [properties] Properties to set
51021
+ */
51022
+ function AuthorizationCustomSignature(properties) {
51023
+ if (properties)
51024
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51025
+ if (properties[keys[i]] != null)
51026
+ this[keys[i]] = properties[keys[i]];
51027
+ }
51028
+
51029
+ /**
51030
+ * AuthorizationCustomSignature chainId.
51031
+ * @member {Uint8Array} chainId
51032
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
51033
+ * @instance
51034
+ */
51035
+ AuthorizationCustomSignature.prototype.chainId = $util.newBuffer([]);
51036
+
51037
+ /**
51038
+ * AuthorizationCustomSignature nonce.
51039
+ * @member {Uint8Array} nonce
51040
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
51041
+ * @instance
51042
+ */
51043
+ AuthorizationCustomSignature.prototype.nonce = $util.newBuffer([]);
51044
+
51045
+ /**
51046
+ * AuthorizationCustomSignature signature.
51047
+ * @member {string} signature
51048
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
51049
+ * @instance
51050
+ */
51051
+ AuthorizationCustomSignature.prototype.signature = "";
51052
+
51053
+ /**
51054
+ * Creates a new AuthorizationCustomSignature instance using the specified properties.
51055
+ * @function create
51056
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
51057
+ * @static
51058
+ * @param {TW.Ethereum.Proto.IAuthorizationCustomSignature=} [properties] Properties to set
51059
+ * @returns {TW.Ethereum.Proto.AuthorizationCustomSignature} AuthorizationCustomSignature instance
51060
+ */
51061
+ AuthorizationCustomSignature.create = function create(properties) {
51062
+ return new AuthorizationCustomSignature(properties);
51063
+ };
51064
+
51065
+ /**
51066
+ * Encodes the specified AuthorizationCustomSignature message. Does not implicitly {@link TW.Ethereum.Proto.AuthorizationCustomSignature.verify|verify} messages.
51067
+ * @function encode
51068
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
51069
+ * @static
51070
+ * @param {TW.Ethereum.Proto.IAuthorizationCustomSignature} message AuthorizationCustomSignature message or plain object to encode
51071
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51072
+ * @returns {$protobuf.Writer} Writer
51073
+ */
51074
+ AuthorizationCustomSignature.encode = function encode(message, writer) {
51075
+ if (!writer)
51076
+ writer = $Writer.create();
51077
+ if (message.chainId != null && Object.hasOwnProperty.call(message, "chainId"))
51078
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.chainId);
51079
+ if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
51080
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.nonce);
51081
+ if (message.signature != null && Object.hasOwnProperty.call(message, "signature"))
51082
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.signature);
51083
+ return writer;
51084
+ };
51085
+
51086
+ /**
51087
+ * Decodes an AuthorizationCustomSignature message from the specified reader or buffer.
51088
+ * @function decode
51089
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
51090
+ * @static
51091
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51092
+ * @param {number} [length] Message length if known beforehand
51093
+ * @returns {TW.Ethereum.Proto.AuthorizationCustomSignature} AuthorizationCustomSignature
51094
+ * @throws {Error} If the payload is not a reader or valid buffer
51095
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51096
+ */
51097
+ AuthorizationCustomSignature.decode = function decode(reader, length) {
51098
+ if (!(reader instanceof $Reader))
51099
+ reader = $Reader.create(reader);
51100
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ethereum.Proto.AuthorizationCustomSignature();
51101
+ while (reader.pos < end) {
51102
+ var tag = reader.uint32();
51103
+ switch (tag >>> 3) {
51104
+ case 1:
51105
+ message.chainId = reader.bytes();
51106
+ break;
51107
+ case 2:
51108
+ message.nonce = reader.bytes();
51109
+ break;
51110
+ case 3:
51111
+ message.signature = reader.string();
51112
+ break;
51113
+ default:
51114
+ reader.skipType(tag & 7);
51115
+ break;
51116
+ }
51117
+ }
51118
+ return message;
51119
+ };
51120
+
51121
+ /**
51122
+ * Verifies an AuthorizationCustomSignature message.
51123
+ * @function verify
51124
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
51125
+ * @static
51126
+ * @param {Object.<string,*>} message Plain object to verify
51127
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51128
+ */
51129
+ AuthorizationCustomSignature.verify = function verify(message) {
51130
+ if (typeof message !== "object" || message === null)
51131
+ return "object expected";
51132
+ if (message.chainId != null && message.hasOwnProperty("chainId"))
51133
+ if (!(message.chainId && typeof message.chainId.length === "number" || $util.isString(message.chainId)))
51134
+ return "chainId: buffer expected";
51135
+ if (message.nonce != null && message.hasOwnProperty("nonce"))
51136
+ if (!(message.nonce && typeof message.nonce.length === "number" || $util.isString(message.nonce)))
51137
+ return "nonce: buffer expected";
51138
+ if (message.signature != null && message.hasOwnProperty("signature"))
51139
+ if (!$util.isString(message.signature))
51140
+ return "signature: string expected";
51141
+ return null;
51142
+ };
51143
+
51144
+ /**
51145
+ * Creates an AuthorizationCustomSignature message from a plain object. Also converts values to their respective internal types.
51146
+ * @function fromObject
51147
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
51148
+ * @static
51149
+ * @param {Object.<string,*>} object Plain object
51150
+ * @returns {TW.Ethereum.Proto.AuthorizationCustomSignature} AuthorizationCustomSignature
51151
+ */
51152
+ AuthorizationCustomSignature.fromObject = function fromObject(object) {
51153
+ if (object instanceof $root.TW.Ethereum.Proto.AuthorizationCustomSignature)
51154
+ return object;
51155
+ var message = new $root.TW.Ethereum.Proto.AuthorizationCustomSignature();
51156
+ if (object.chainId != null)
51157
+ if (typeof object.chainId === "string")
51158
+ $util.base64.decode(object.chainId, message.chainId = $util.newBuffer($util.base64.length(object.chainId)), 0);
51159
+ else if (object.chainId.length)
51160
+ message.chainId = object.chainId;
51161
+ if (object.nonce != null)
51162
+ if (typeof object.nonce === "string")
51163
+ $util.base64.decode(object.nonce, message.nonce = $util.newBuffer($util.base64.length(object.nonce)), 0);
51164
+ else if (object.nonce.length)
51165
+ message.nonce = object.nonce;
51166
+ if (object.signature != null)
51167
+ message.signature = String(object.signature);
51168
+ return message;
51169
+ };
51170
+
51171
+ /**
51172
+ * Creates a plain object from an AuthorizationCustomSignature message. Also converts values to other types if specified.
51173
+ * @function toObject
51174
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
51175
+ * @static
51176
+ * @param {TW.Ethereum.Proto.AuthorizationCustomSignature} message AuthorizationCustomSignature
51177
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51178
+ * @returns {Object.<string,*>} Plain object
51179
+ */
51180
+ AuthorizationCustomSignature.toObject = function toObject(message, options) {
51181
+ if (!options)
51182
+ options = {};
51183
+ var object = {};
51184
+ if (options.defaults) {
51185
+ if (options.bytes === String)
51186
+ object.chainId = "";
51187
+ else {
51188
+ object.chainId = [];
51189
+ if (options.bytes !== Array)
51190
+ object.chainId = $util.newBuffer(object.chainId);
51191
+ }
51192
+ if (options.bytes === String)
51193
+ object.nonce = "";
51194
+ else {
51195
+ object.nonce = [];
51196
+ if (options.bytes !== Array)
51197
+ object.nonce = $util.newBuffer(object.nonce);
51198
+ }
51199
+ object.signature = "";
51200
+ }
51201
+ if (message.chainId != null && message.hasOwnProperty("chainId"))
51202
+ object.chainId = options.bytes === String ? $util.base64.encode(message.chainId, 0, message.chainId.length) : options.bytes === Array ? Array.prototype.slice.call(message.chainId) : message.chainId;
51203
+ if (message.nonce != null && message.hasOwnProperty("nonce"))
51204
+ object.nonce = options.bytes === String ? $util.base64.encode(message.nonce, 0, message.nonce.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonce) : message.nonce;
51205
+ if (message.signature != null && message.hasOwnProperty("signature"))
51206
+ object.signature = message.signature;
50610
51207
  return object;
50611
51208
  };
50612
51209
 
50613
51210
  /**
50614
- * Converts this Authority to JSON.
51211
+ * Converts this AuthorizationCustomSignature to JSON.
50615
51212
  * @function toJSON
50616
- * @memberof TW.Ethereum.Proto.Authority
51213
+ * @memberof TW.Ethereum.Proto.AuthorizationCustomSignature
50617
51214
  * @instance
50618
51215
  * @returns {Object.<string,*>} JSON object
50619
51216
  */
50620
- Authority.prototype.toJSON = function toJSON() {
51217
+ AuthorizationCustomSignature.prototype.toJSON = function toJSON() {
50621
51218
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50622
51219
  };
50623
51220
 
50624
- return Authority;
51221
+ return AuthorizationCustomSignature;
50625
51222
  })();
50626
51223
 
50627
51224
  /**
@@ -50659,7 +51256,7 @@
50659
51256
  * @property {TW.Ethereum.Proto.IUserOperation|null} [userOperation] SigningInput userOperation
50660
51257
  * @property {TW.Ethereum.Proto.IUserOperationV0_7|null} [userOperationV0_7] SigningInput userOperationV0_7
50661
51258
  * @property {Array.<TW.Ethereum.Proto.IAccess>|null} [accessList] SigningInput accessList
50662
- * @property {TW.Ethereum.Proto.IAuthority|null} [eip7702Authority] SigningInput eip7702Authority
51259
+ * @property {TW.Ethereum.Proto.IAuthorization|null} [eip7702Authorization] SigningInput eip7702Authorization
50663
51260
  */
50664
51261
 
50665
51262
  /**
@@ -50783,12 +51380,12 @@
50783
51380
  SigningInput.prototype.accessList = $util.emptyArray;
50784
51381
 
50785
51382
  /**
50786
- * SigningInput eip7702Authority.
50787
- * @member {TW.Ethereum.Proto.IAuthority|null|undefined} eip7702Authority
51383
+ * SigningInput eip7702Authorization.
51384
+ * @member {TW.Ethereum.Proto.IAuthorization|null|undefined} eip7702Authorization
50788
51385
  * @memberof TW.Ethereum.Proto.SigningInput
50789
51386
  * @instance
50790
51387
  */
50791
- SigningInput.prototype.eip7702Authority = null;
51388
+ SigningInput.prototype.eip7702Authorization = null;
50792
51389
 
50793
51390
  // OneOf field names bound to virtual getters and setters
50794
51391
  var $oneOfFields;
@@ -50855,8 +51452,8 @@
50855
51452
  $root.TW.Ethereum.Proto.Access.encode(message.accessList[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
50856
51453
  if (message.userOperationV0_7 != null && Object.hasOwnProperty.call(message, "userOperationV0_7"))
50857
51454
  $root.TW.Ethereum.Proto.UserOperationV0_7.encode(message.userOperationV0_7, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
50858
- if (message.eip7702Authority != null && Object.hasOwnProperty.call(message, "eip7702Authority"))
50859
- $root.TW.Ethereum.Proto.Authority.encode(message.eip7702Authority, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
51455
+ if (message.eip7702Authorization != null && Object.hasOwnProperty.call(message, "eip7702Authorization"))
51456
+ $root.TW.Ethereum.Proto.Authorization.encode(message.eip7702Authorization, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
50860
51457
  return writer;
50861
51458
  };
50862
51459
 
@@ -50920,7 +51517,7 @@
50920
51517
  message.accessList.push($root.TW.Ethereum.Proto.Access.decode(reader, reader.uint32()));
50921
51518
  break;
50922
51519
  case 15:
50923
- message.eip7702Authority = $root.TW.Ethereum.Proto.Authority.decode(reader, reader.uint32());
51520
+ message.eip7702Authorization = $root.TW.Ethereum.Proto.Authorization.decode(reader, reader.uint32());
50924
51521
  break;
50925
51522
  default:
50926
51523
  reader.skipType(tag & 7);
@@ -51008,10 +51605,10 @@
51008
51605
  return "accessList." + error;
51009
51606
  }
51010
51607
  }
51011
- if (message.eip7702Authority != null && message.hasOwnProperty("eip7702Authority")) {
51012
- var error = $root.TW.Ethereum.Proto.Authority.verify(message.eip7702Authority);
51608
+ if (message.eip7702Authorization != null && message.hasOwnProperty("eip7702Authorization")) {
51609
+ var error = $root.TW.Ethereum.Proto.Authorization.verify(message.eip7702Authorization);
51013
51610
  if (error)
51014
- return "eip7702Authority." + error;
51611
+ return "eip7702Authorization." + error;
51015
51612
  }
51016
51613
  return null;
51017
51614
  };
@@ -51108,10 +51705,10 @@
51108
51705
  message.accessList[i] = $root.TW.Ethereum.Proto.Access.fromObject(object.accessList[i]);
51109
51706
  }
51110
51707
  }
51111
- if (object.eip7702Authority != null) {
51112
- if (typeof object.eip7702Authority !== "object")
51113
- throw TypeError(".TW.Ethereum.Proto.SigningInput.eip7702Authority: object expected");
51114
- message.eip7702Authority = $root.TW.Ethereum.Proto.Authority.fromObject(object.eip7702Authority);
51708
+ if (object.eip7702Authorization != null) {
51709
+ if (typeof object.eip7702Authorization !== "object")
51710
+ throw TypeError(".TW.Ethereum.Proto.SigningInput.eip7702Authorization: object expected");
51711
+ message.eip7702Authorization = $root.TW.Ethereum.Proto.Authorization.fromObject(object.eip7702Authorization);
51115
51712
  }
51116
51713
  return message;
51117
51714
  };
@@ -51184,7 +51781,7 @@
51184
51781
  object.privateKey = $util.newBuffer(object.privateKey);
51185
51782
  }
51186
51783
  object.transaction = null;
51187
- object.eip7702Authority = null;
51784
+ object.eip7702Authorization = null;
51188
51785
  }
51189
51786
  if (message.chainId != null && message.hasOwnProperty("chainId"))
51190
51787
  object.chainId = options.bytes === String ? $util.base64.encode(message.chainId, 0, message.chainId.length) : options.bytes === Array ? Array.prototype.slice.call(message.chainId) : message.chainId;
@@ -51221,8 +51818,8 @@
51221
51818
  if (options.oneofs)
51222
51819
  object.userOperationOneof = "userOperationV0_7";
51223
51820
  }
51224
- if (message.eip7702Authority != null && message.hasOwnProperty("eip7702Authority"))
51225
- object.eip7702Authority = $root.TW.Ethereum.Proto.Authority.toObject(message.eip7702Authority, options);
51821
+ if (message.eip7702Authorization != null && message.hasOwnProperty("eip7702Authorization"))
51822
+ object.eip7702Authorization = $root.TW.Ethereum.Proto.Authorization.toObject(message.eip7702Authorization, options);
51226
51823
  return object;
51227
51824
  };
51228
51825
 
@@ -51749,6 +52346,7 @@
51749
52346
  * @property {number} MessageType_typed=2 MessageType_typed value
51750
52347
  * @property {number} MessageType_typed_eip155=3 MessageType_typed_eip155 value
51751
52348
  * @property {number} MessageType_immutable_x=4 MessageType_immutable_x value
52349
+ * @property {number} MessageType_eip7702_authorization=5 MessageType_eip7702_authorization value
51752
52350
  */
51753
52351
  Proto.MessageType = (function() {
51754
52352
  var valuesById = {}, values = Object.create(valuesById);
@@ -51757,6 +52355,7 @@
51757
52355
  values[valuesById[2] = "MessageType_typed"] = 2;
51758
52356
  values[valuesById[3] = "MessageType_typed_eip155"] = 3;
51759
52357
  values[valuesById[4] = "MessageType_immutable_x"] = 4;
52358
+ values[valuesById[5] = "MessageType_eip7702_authorization"] = 5;
51760
52359
  return values;
51761
52360
  })();
51762
52361
 
@@ -52095,6 +52694,7 @@
52095
52694
  case 2:
52096
52695
  case 3:
52097
52696
  case 4:
52697
+ case 5:
52098
52698
  break;
52099
52699
  }
52100
52700
  return null;
@@ -52145,6 +52745,10 @@
52145
52745
  case 4:
52146
52746
  message.messageType = 4;
52147
52747
  break;
52748
+ case "MessageType_eip7702_authorization":
52749
+ case 5:
52750
+ message.messageType = 5;
52751
+ break;
52148
52752
  }
52149
52753
  return message;
52150
52754
  };