@trustwallet/wallet-core 4.3.2 → 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.
@@ -12428,6 +12428,9 @@ export namespace TW {
|
|
12428
12428
|
|
12429
12429
|
/** Message thorchainDepositMessage */
|
12430
12430
|
thorchainDepositMessage?: (TW.Cosmos.Proto.Message.ITHORChainDeposit|null);
|
12431
|
+
|
12432
|
+
/** Message wasmInstantiateContractMessage */
|
12433
|
+
wasmInstantiateContractMessage?: (TW.Cosmos.Proto.Message.IWasmInstantiateContract|null);
|
12431
12434
|
}
|
12432
12435
|
|
12433
12436
|
/** Represents a Message. */
|
@@ -12505,8 +12508,11 @@ export namespace TW {
|
|
12505
12508
|
/** Message thorchainDepositMessage. */
|
12506
12509
|
public thorchainDepositMessage?: (TW.Cosmos.Proto.Message.ITHORChainDeposit|null);
|
12507
12510
|
|
12511
|
+
/** Message wasmInstantiateContractMessage. */
|
12512
|
+
public wasmInstantiateContractMessage?: (TW.Cosmos.Proto.Message.IWasmInstantiateContract|null);
|
12513
|
+
|
12508
12514
|
/** Message messageOneof. */
|
12509
|
-
public messageOneof?: ("sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"wasmTerraExecuteContractGeneric"|"wasmExecuteContractTransferMessage"|"wasmExecuteContractSendMessage"|"wasmExecuteContractGeneric"|"signDirectMessage"|"authGrant"|"authRevoke"|"setWithdrawAddressMessage"|"msgVote"|"msgStrideLiquidStakingStake"|"msgStrideLiquidStakingRedeem"|"thorchainDepositMessage");
|
12515
|
+
public messageOneof?: ("sendCoinsMessage"|"transferTokensMessage"|"stakeMessage"|"unstakeMessage"|"restakeMessage"|"withdrawStakeRewardMessage"|"rawJsonMessage"|"wasmTerraExecuteContractTransferMessage"|"wasmTerraExecuteContractSendMessage"|"thorchainSendMessage"|"wasmTerraExecuteContractGeneric"|"wasmExecuteContractTransferMessage"|"wasmExecuteContractSendMessage"|"wasmExecuteContractGeneric"|"signDirectMessage"|"authGrant"|"authRevoke"|"setWithdrawAddressMessage"|"msgVote"|"msgStrideLiquidStakingStake"|"msgStrideLiquidStakingRedeem"|"thorchainDepositMessage"|"wasmInstantiateContractMessage");
|
12510
12516
|
|
12511
12517
|
/**
|
12512
12518
|
* Creates a new Message instance using the specified properties.
|
@@ -13953,6 +13959,109 @@ export namespace TW {
|
|
13953
13959
|
public toJSON(): { [k: string]: any };
|
13954
13960
|
}
|
13955
13961
|
|
13962
|
+
/** Properties of a WasmInstantiateContract. */
|
13963
|
+
interface IWasmInstantiateContract {
|
13964
|
+
|
13965
|
+
/** WasmInstantiateContract sender */
|
13966
|
+
sender?: (string|null);
|
13967
|
+
|
13968
|
+
/** WasmInstantiateContract admin */
|
13969
|
+
admin?: (string|null);
|
13970
|
+
|
13971
|
+
/** WasmInstantiateContract codeId */
|
13972
|
+
codeId?: (Long|null);
|
13973
|
+
|
13974
|
+
/** WasmInstantiateContract label */
|
13975
|
+
label?: (string|null);
|
13976
|
+
|
13977
|
+
/** WasmInstantiateContract msg */
|
13978
|
+
msg?: (Uint8Array|null);
|
13979
|
+
|
13980
|
+
/** WasmInstantiateContract initFunds */
|
13981
|
+
initFunds?: (TW.Cosmos.Proto.IAmount[]|null);
|
13982
|
+
}
|
13983
|
+
|
13984
|
+
/** Represents a WasmInstantiateContract. */
|
13985
|
+
class WasmInstantiateContract implements IWasmInstantiateContract {
|
13986
|
+
|
13987
|
+
/**
|
13988
|
+
* Constructs a new WasmInstantiateContract.
|
13989
|
+
* @param [properties] Properties to set
|
13990
|
+
*/
|
13991
|
+
constructor(properties?: TW.Cosmos.Proto.Message.IWasmInstantiateContract);
|
13992
|
+
|
13993
|
+
/** WasmInstantiateContract sender. */
|
13994
|
+
public sender: string;
|
13995
|
+
|
13996
|
+
/** WasmInstantiateContract admin. */
|
13997
|
+
public admin: string;
|
13998
|
+
|
13999
|
+
/** WasmInstantiateContract codeId. */
|
14000
|
+
public codeId: Long;
|
14001
|
+
|
14002
|
+
/** WasmInstantiateContract label. */
|
14003
|
+
public label: string;
|
14004
|
+
|
14005
|
+
/** WasmInstantiateContract msg. */
|
14006
|
+
public msg: Uint8Array;
|
14007
|
+
|
14008
|
+
/** WasmInstantiateContract initFunds. */
|
14009
|
+
public initFunds: TW.Cosmos.Proto.IAmount[];
|
14010
|
+
|
14011
|
+
/**
|
14012
|
+
* Creates a new WasmInstantiateContract instance using the specified properties.
|
14013
|
+
* @param [properties] Properties to set
|
14014
|
+
* @returns WasmInstantiateContract instance
|
14015
|
+
*/
|
14016
|
+
public static create(properties?: TW.Cosmos.Proto.Message.IWasmInstantiateContract): TW.Cosmos.Proto.Message.WasmInstantiateContract;
|
14017
|
+
|
14018
|
+
/**
|
14019
|
+
* Encodes the specified WasmInstantiateContract message. Does not implicitly {@link TW.Cosmos.Proto.Message.WasmInstantiateContract.verify|verify} messages.
|
14020
|
+
* @param message WasmInstantiateContract message or plain object to encode
|
14021
|
+
* @param [writer] Writer to encode to
|
14022
|
+
* @returns Writer
|
14023
|
+
*/
|
14024
|
+
public static encode(message: TW.Cosmos.Proto.Message.IWasmInstantiateContract, writer?: $protobuf.Writer): $protobuf.Writer;
|
14025
|
+
|
14026
|
+
/**
|
14027
|
+
* Decodes a WasmInstantiateContract message from the specified reader or buffer.
|
14028
|
+
* @param reader Reader or buffer to decode from
|
14029
|
+
* @param [length] Message length if known beforehand
|
14030
|
+
* @returns WasmInstantiateContract
|
14031
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
14032
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
14033
|
+
*/
|
14034
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cosmos.Proto.Message.WasmInstantiateContract;
|
14035
|
+
|
14036
|
+
/**
|
14037
|
+
* Verifies a WasmInstantiateContract message.
|
14038
|
+
* @param message Plain object to verify
|
14039
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
14040
|
+
*/
|
14041
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
14042
|
+
|
14043
|
+
/**
|
14044
|
+
* Creates a WasmInstantiateContract message from a plain object. Also converts values to their respective internal types.
|
14045
|
+
* @param object Plain object
|
14046
|
+
* @returns WasmInstantiateContract
|
14047
|
+
*/
|
14048
|
+
public static fromObject(object: { [k: string]: any }): TW.Cosmos.Proto.Message.WasmInstantiateContract;
|
14049
|
+
|
14050
|
+
/**
|
14051
|
+
* Creates a plain object from a WasmInstantiateContract message. Also converts values to other types if specified.
|
14052
|
+
* @param message WasmInstantiateContract
|
14053
|
+
* @param [options] Conversion options
|
14054
|
+
* @returns Plain object
|
14055
|
+
*/
|
14056
|
+
public static toObject(message: TW.Cosmos.Proto.Message.WasmInstantiateContract, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
14057
|
+
|
14058
|
+
/**
|
14059
|
+
* Converts this WasmInstantiateContract to JSON.
|
14060
|
+
* @returns JSON object
|
14061
|
+
*/
|
14062
|
+
public toJSON(): { [k: string]: any };
|
14063
|
+
}
|
14064
|
+
|
13956
14065
|
/** Properties of a RawJSON. */
|
13957
14066
|
interface IRawJSON {
|
13958
14067
|
|
@@ -17447,7 +17556,8 @@ export namespace TW {
|
|
17447
17556
|
MessageType_eip155 = 1,
|
17448
17557
|
MessageType_typed = 2,
|
17449
17558
|
MessageType_typed_eip155 = 3,
|
17450
|
-
MessageType_immutable_x = 4
|
17559
|
+
MessageType_immutable_x = 4,
|
17560
|
+
MessageType_eip7702_authorization = 5
|
17451
17561
|
}
|
17452
17562
|
|
17453
17563
|
/** Properties of a MaybeChainId. */
|
@@ -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
|
/**
|
@@ -51998,6 +52346,7 @@
|
|
51998
52346
|
* @property {number} MessageType_typed=2 MessageType_typed value
|
51999
52347
|
* @property {number} MessageType_typed_eip155=3 MessageType_typed_eip155 value
|
52000
52348
|
* @property {number} MessageType_immutable_x=4 MessageType_immutable_x value
|
52349
|
+
* @property {number} MessageType_eip7702_authorization=5 MessageType_eip7702_authorization value
|
52001
52350
|
*/
|
52002
52351
|
Proto.MessageType = (function() {
|
52003
52352
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -52006,6 +52355,7 @@
|
|
52006
52355
|
values[valuesById[2] = "MessageType_typed"] = 2;
|
52007
52356
|
values[valuesById[3] = "MessageType_typed_eip155"] = 3;
|
52008
52357
|
values[valuesById[4] = "MessageType_immutable_x"] = 4;
|
52358
|
+
values[valuesById[5] = "MessageType_eip7702_authorization"] = 5;
|
52009
52359
|
return values;
|
52010
52360
|
})();
|
52011
52361
|
|
@@ -52344,6 +52694,7 @@
|
|
52344
52694
|
case 2:
|
52345
52695
|
case 3:
|
52346
52696
|
case 4:
|
52697
|
+
case 5:
|
52347
52698
|
break;
|
52348
52699
|
}
|
52349
52700
|
return null;
|
@@ -52394,6 +52745,10 @@
|
|
52394
52745
|
case 4:
|
52395
52746
|
message.messageType = 4;
|
52396
52747
|
break;
|
52748
|
+
case "MessageType_eip7702_authorization":
|
52749
|
+
case 5:
|
52750
|
+
message.messageType = 5;
|
52751
|
+
break;
|
52397
52752
|
}
|
52398
52753
|
return message;
|
52399
52754
|
};
|
package/dist/lib/wallet-core.js
CHANGED
@@ -36,7 +36,7 @@ function $a(a,b){var c=M;return sa||"function"!=typeof WebAssembly.instantiateSt
|
|
36
36
|
function z(a,b){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){n("Module."+a+" has been replaced with plain "+b+" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}})}
|
37
37
|
function cb(a){return"FS_createPath"===a||"FS_createDataFile"===a||"FS_createPreloadedFile"===a||"FS_unlink"===a||"addRunDependency"===a||"FS_createLazyFile"===a||"FS_createDevice"===a||"removeRunDependency"===a}(function(a,b){"undefined"!==typeof globalThis&&Object.defineProperty(globalThis,a,{configurable:!0,get:function(){ya("`"+a+"` is not longer defined by emscripten. "+b)}})})("buffer","Please use HEAP8.buffer or wasmMemory.buffer");
|
38
38
|
function db(a){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";cb(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");n(b)}})}
|
39
|
-
var eb={
|
39
|
+
var eb={2185588:()=>{if(void 0===g.fa)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.fa=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.fa=a}catch(e){throw"No secure random number generator found";}}},2186310:()=>g.fa()};
|
40
40
|
function qa(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function fb(a){for(;0<a.length;)a.shift()(g)}function za(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function ya(a){gb||(gb={});gb[a]||(gb[a]=1,w&&(a="warning: "+a),y(a))}var gb,hb=[];function ib(a){var b=hb[a];b||(a>=hb.length&&(hb.length=a+1),hb[a]=b=Ha.get(a));assert(Ha.get(a)==b,"JavaScript-side Wasm function table mirror is out of date!");return b}
|
41
41
|
function jb(a){this.l=a-24;this.Oa=function(b){G[this.l+4>>2]=b};this.Ja=function(b){G[this.l+8>>2]=b};this.Ka=function(){F[this.l>>2]=0};this.Ea=function(){D[this.l+12>>0]=0};this.La=function(){D[this.l+13>>0]=0};this.I=function(b,c){this.Da();this.Oa(b);this.Ja(c);this.Ka();this.Ea();this.La()};this.Da=function(){G[this.l+16>>2]=0}}
|
42
42
|
var kb=0,lb=(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},mb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=lb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},nb=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},ob=
|
Binary file
|
@@ -911,6 +911,7 @@ export class SolanaTransaction {
|
|
911
911
|
static setComputeUnitPrice(encodedTx: string, price: string): string;
|
912
912
|
static setComputeUnitLimit(encodedTx: string, limit: string): string;
|
913
913
|
static setFeePayer(encodedTx: string, feePayer: string): string;
|
914
|
+
static addInstruction(encodedTx: string, instruction: string): string;
|
914
915
|
}
|
915
916
|
export class StarkExMessageSigner {
|
916
917
|
static signMessage(privateKey: PrivateKey, message: string): string;
|