@trustwallet/wallet-core 4.0.15 → 4.0.16
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.
@@ -4978,6 +4978,12 @@ export namespace TW {
|
|
4978
4978
|
|
4979
4979
|
/** SigningOutput errorMessage */
|
4980
4980
|
errorMessage?: (string|null);
|
4981
|
+
|
4982
|
+
/** SigningOutput signature */
|
4983
|
+
signature?: (Uint8Array|null);
|
4984
|
+
|
4985
|
+
/** SigningOutput signatureJson */
|
4986
|
+
signatureJson?: (string|null);
|
4981
4987
|
}
|
4982
4988
|
|
4983
4989
|
/** Represents a SigningOutput. */
|
@@ -4998,6 +5004,12 @@ export namespace TW {
|
|
4998
5004
|
/** SigningOutput errorMessage. */
|
4999
5005
|
public errorMessage: string;
|
5000
5006
|
|
5007
|
+
/** SigningOutput signature. */
|
5008
|
+
public signature: Uint8Array;
|
5009
|
+
|
5010
|
+
/** SigningOutput signatureJson. */
|
5011
|
+
public signatureJson: string;
|
5012
|
+
|
5001
5013
|
/**
|
5002
5014
|
* Creates a new SigningOutput instance using the specified properties.
|
5003
5015
|
* @param [properties] Properties to set
|
@@ -42940,6 +42952,198 @@ export namespace TW {
|
|
42940
42952
|
}
|
42941
42953
|
}
|
42942
42954
|
|
42955
|
+
/** Namespace WalletConnect. */
|
42956
|
+
namespace WalletConnect {
|
42957
|
+
|
42958
|
+
/** Namespace Proto. */
|
42959
|
+
namespace Proto {
|
42960
|
+
|
42961
|
+
/** Protocol enum. */
|
42962
|
+
enum Protocol {
|
42963
|
+
V2 = 0
|
42964
|
+
}
|
42965
|
+
|
42966
|
+
/** Method enum. */
|
42967
|
+
enum Method {
|
42968
|
+
Unknown = 0,
|
42969
|
+
CosmosSignAmino = 1
|
42970
|
+
}
|
42971
|
+
|
42972
|
+
/** Properties of a ParseRequestInput. */
|
42973
|
+
interface IParseRequestInput {
|
42974
|
+
|
42975
|
+
/** ParseRequestInput protocol */
|
42976
|
+
protocol?: (TW.WalletConnect.Proto.Protocol|null);
|
42977
|
+
|
42978
|
+
/** ParseRequestInput method */
|
42979
|
+
method?: (TW.WalletConnect.Proto.Method|null);
|
42980
|
+
|
42981
|
+
/** ParseRequestInput payload */
|
42982
|
+
payload?: (string|null);
|
42983
|
+
}
|
42984
|
+
|
42985
|
+
/** Represents a ParseRequestInput. */
|
42986
|
+
class ParseRequestInput implements IParseRequestInput {
|
42987
|
+
|
42988
|
+
/**
|
42989
|
+
* Constructs a new ParseRequestInput.
|
42990
|
+
* @param [properties] Properties to set
|
42991
|
+
*/
|
42992
|
+
constructor(properties?: TW.WalletConnect.Proto.IParseRequestInput);
|
42993
|
+
|
42994
|
+
/** ParseRequestInput protocol. */
|
42995
|
+
public protocol: TW.WalletConnect.Proto.Protocol;
|
42996
|
+
|
42997
|
+
/** ParseRequestInput method. */
|
42998
|
+
public method: TW.WalletConnect.Proto.Method;
|
42999
|
+
|
43000
|
+
/** ParseRequestInput payload. */
|
43001
|
+
public payload: string;
|
43002
|
+
|
43003
|
+
/**
|
43004
|
+
* Creates a new ParseRequestInput instance using the specified properties.
|
43005
|
+
* @param [properties] Properties to set
|
43006
|
+
* @returns ParseRequestInput instance
|
43007
|
+
*/
|
43008
|
+
public static create(properties?: TW.WalletConnect.Proto.IParseRequestInput): TW.WalletConnect.Proto.ParseRequestInput;
|
43009
|
+
|
43010
|
+
/**
|
43011
|
+
* Encodes the specified ParseRequestInput message. Does not implicitly {@link TW.WalletConnect.Proto.ParseRequestInput.verify|verify} messages.
|
43012
|
+
* @param message ParseRequestInput message or plain object to encode
|
43013
|
+
* @param [writer] Writer to encode to
|
43014
|
+
* @returns Writer
|
43015
|
+
*/
|
43016
|
+
public static encode(message: TW.WalletConnect.Proto.IParseRequestInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
43017
|
+
|
43018
|
+
/**
|
43019
|
+
* Decodes a ParseRequestInput message from the specified reader or buffer.
|
43020
|
+
* @param reader Reader or buffer to decode from
|
43021
|
+
* @param [length] Message length if known beforehand
|
43022
|
+
* @returns ParseRequestInput
|
43023
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
43024
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
43025
|
+
*/
|
43026
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.WalletConnect.Proto.ParseRequestInput;
|
43027
|
+
|
43028
|
+
/**
|
43029
|
+
* Verifies a ParseRequestInput message.
|
43030
|
+
* @param message Plain object to verify
|
43031
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
43032
|
+
*/
|
43033
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
43034
|
+
|
43035
|
+
/**
|
43036
|
+
* Creates a ParseRequestInput message from a plain object. Also converts values to their respective internal types.
|
43037
|
+
* @param object Plain object
|
43038
|
+
* @returns ParseRequestInput
|
43039
|
+
*/
|
43040
|
+
public static fromObject(object: { [k: string]: any }): TW.WalletConnect.Proto.ParseRequestInput;
|
43041
|
+
|
43042
|
+
/**
|
43043
|
+
* Creates a plain object from a ParseRequestInput message. Also converts values to other types if specified.
|
43044
|
+
* @param message ParseRequestInput
|
43045
|
+
* @param [options] Conversion options
|
43046
|
+
* @returns Plain object
|
43047
|
+
*/
|
43048
|
+
public static toObject(message: TW.WalletConnect.Proto.ParseRequestInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
43049
|
+
|
43050
|
+
/**
|
43051
|
+
* Converts this ParseRequestInput to JSON.
|
43052
|
+
* @returns JSON object
|
43053
|
+
*/
|
43054
|
+
public toJSON(): { [k: string]: any };
|
43055
|
+
}
|
43056
|
+
|
43057
|
+
/** Properties of a ParseRequestOutput. */
|
43058
|
+
interface IParseRequestOutput {
|
43059
|
+
|
43060
|
+
/** ParseRequestOutput error */
|
43061
|
+
error?: (TW.Common.Proto.SigningError|null);
|
43062
|
+
|
43063
|
+
/** ParseRequestOutput errorMessage */
|
43064
|
+
errorMessage?: (string|null);
|
43065
|
+
|
43066
|
+
/** ParseRequestOutput binance */
|
43067
|
+
binance?: (TW.Binance.Proto.ISigningInput|null);
|
43068
|
+
}
|
43069
|
+
|
43070
|
+
/** Represents a ParseRequestOutput. */
|
43071
|
+
class ParseRequestOutput implements IParseRequestOutput {
|
43072
|
+
|
43073
|
+
/**
|
43074
|
+
* Constructs a new ParseRequestOutput.
|
43075
|
+
* @param [properties] Properties to set
|
43076
|
+
*/
|
43077
|
+
constructor(properties?: TW.WalletConnect.Proto.IParseRequestOutput);
|
43078
|
+
|
43079
|
+
/** ParseRequestOutput error. */
|
43080
|
+
public error: TW.Common.Proto.SigningError;
|
43081
|
+
|
43082
|
+
/** ParseRequestOutput errorMessage. */
|
43083
|
+
public errorMessage: string;
|
43084
|
+
|
43085
|
+
/** ParseRequestOutput binance. */
|
43086
|
+
public binance?: (TW.Binance.Proto.ISigningInput|null);
|
43087
|
+
|
43088
|
+
/** ParseRequestOutput signingInputOneof. */
|
43089
|
+
public signingInputOneof?: "binance";
|
43090
|
+
|
43091
|
+
/**
|
43092
|
+
* Creates a new ParseRequestOutput instance using the specified properties.
|
43093
|
+
* @param [properties] Properties to set
|
43094
|
+
* @returns ParseRequestOutput instance
|
43095
|
+
*/
|
43096
|
+
public static create(properties?: TW.WalletConnect.Proto.IParseRequestOutput): TW.WalletConnect.Proto.ParseRequestOutput;
|
43097
|
+
|
43098
|
+
/**
|
43099
|
+
* Encodes the specified ParseRequestOutput message. Does not implicitly {@link TW.WalletConnect.Proto.ParseRequestOutput.verify|verify} messages.
|
43100
|
+
* @param message ParseRequestOutput message or plain object to encode
|
43101
|
+
* @param [writer] Writer to encode to
|
43102
|
+
* @returns Writer
|
43103
|
+
*/
|
43104
|
+
public static encode(message: TW.WalletConnect.Proto.IParseRequestOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
43105
|
+
|
43106
|
+
/**
|
43107
|
+
* Decodes a ParseRequestOutput message from the specified reader or buffer.
|
43108
|
+
* @param reader Reader or buffer to decode from
|
43109
|
+
* @param [length] Message length if known beforehand
|
43110
|
+
* @returns ParseRequestOutput
|
43111
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
43112
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
43113
|
+
*/
|
43114
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.WalletConnect.Proto.ParseRequestOutput;
|
43115
|
+
|
43116
|
+
/**
|
43117
|
+
* Verifies a ParseRequestOutput message.
|
43118
|
+
* @param message Plain object to verify
|
43119
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
43120
|
+
*/
|
43121
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
43122
|
+
|
43123
|
+
/**
|
43124
|
+
* Creates a ParseRequestOutput message from a plain object. Also converts values to their respective internal types.
|
43125
|
+
* @param object Plain object
|
43126
|
+
* @returns ParseRequestOutput
|
43127
|
+
*/
|
43128
|
+
public static fromObject(object: { [k: string]: any }): TW.WalletConnect.Proto.ParseRequestOutput;
|
43129
|
+
|
43130
|
+
/**
|
43131
|
+
* Creates a plain object from a ParseRequestOutput message. Also converts values to other types if specified.
|
43132
|
+
* @param message ParseRequestOutput
|
43133
|
+
* @param [options] Conversion options
|
43134
|
+
* @returns Plain object
|
43135
|
+
*/
|
43136
|
+
public static toObject(message: TW.WalletConnect.Proto.ParseRequestOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
43137
|
+
|
43138
|
+
/**
|
43139
|
+
* Converts this ParseRequestOutput to JSON.
|
43140
|
+
* @returns JSON object
|
43141
|
+
*/
|
43142
|
+
public toJSON(): { [k: string]: any };
|
43143
|
+
}
|
43144
|
+
}
|
43145
|
+
}
|
43146
|
+
|
42943
43147
|
/** Namespace Waves. */
|
42944
43148
|
namespace Waves {
|
42945
43149
|
|
@@ -14728,6 +14728,8 @@
|
|
14728
14728
|
* @property {Uint8Array|null} [encoded] SigningOutput encoded
|
14729
14729
|
* @property {TW.Common.Proto.SigningError|null} [error] SigningOutput error
|
14730
14730
|
* @property {string|null} [errorMessage] SigningOutput errorMessage
|
14731
|
+
* @property {Uint8Array|null} [signature] SigningOutput signature
|
14732
|
+
* @property {string|null} [signatureJson] SigningOutput signatureJson
|
14731
14733
|
*/
|
14732
14734
|
|
14733
14735
|
/**
|
@@ -14769,6 +14771,22 @@
|
|
14769
14771
|
*/
|
14770
14772
|
SigningOutput.prototype.errorMessage = "";
|
14771
14773
|
|
14774
|
+
/**
|
14775
|
+
* SigningOutput signature.
|
14776
|
+
* @member {Uint8Array} signature
|
14777
|
+
* @memberof TW.Binance.Proto.SigningOutput
|
14778
|
+
* @instance
|
14779
|
+
*/
|
14780
|
+
SigningOutput.prototype.signature = $util.newBuffer([]);
|
14781
|
+
|
14782
|
+
/**
|
14783
|
+
* SigningOutput signatureJson.
|
14784
|
+
* @member {string} signatureJson
|
14785
|
+
* @memberof TW.Binance.Proto.SigningOutput
|
14786
|
+
* @instance
|
14787
|
+
*/
|
14788
|
+
SigningOutput.prototype.signatureJson = "";
|
14789
|
+
|
14772
14790
|
/**
|
14773
14791
|
* Creates a new SigningOutput instance using the specified properties.
|
14774
14792
|
* @function create
|
@@ -14799,6 +14817,10 @@
|
|
14799
14817
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.error);
|
14800
14818
|
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
14801
14819
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorMessage);
|
14820
|
+
if (message.signature != null && Object.hasOwnProperty.call(message, "signature"))
|
14821
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.signature);
|
14822
|
+
if (message.signatureJson != null && Object.hasOwnProperty.call(message, "signatureJson"))
|
14823
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.signatureJson);
|
14802
14824
|
return writer;
|
14803
14825
|
};
|
14804
14826
|
|
@@ -14829,6 +14851,12 @@
|
|
14829
14851
|
case 3:
|
14830
14852
|
message.errorMessage = reader.string();
|
14831
14853
|
break;
|
14854
|
+
case 4:
|
14855
|
+
message.signature = reader.bytes();
|
14856
|
+
break;
|
14857
|
+
case 5:
|
14858
|
+
message.signatureJson = reader.string();
|
14859
|
+
break;
|
14832
14860
|
default:
|
14833
14861
|
reader.skipType(tag & 7);
|
14834
14862
|
break;
|
@@ -14885,6 +14913,12 @@
|
|
14885
14913
|
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
14886
14914
|
if (!$util.isString(message.errorMessage))
|
14887
14915
|
return "errorMessage: string expected";
|
14916
|
+
if (message.signature != null && message.hasOwnProperty("signature"))
|
14917
|
+
if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature)))
|
14918
|
+
return "signature: buffer expected";
|
14919
|
+
if (message.signatureJson != null && message.hasOwnProperty("signatureJson"))
|
14920
|
+
if (!$util.isString(message.signatureJson))
|
14921
|
+
return "signatureJson: string expected";
|
14888
14922
|
return null;
|
14889
14923
|
};
|
14890
14924
|
|
@@ -15009,6 +15043,13 @@
|
|
15009
15043
|
}
|
15010
15044
|
if (object.errorMessage != null)
|
15011
15045
|
message.errorMessage = String(object.errorMessage);
|
15046
|
+
if (object.signature != null)
|
15047
|
+
if (typeof object.signature === "string")
|
15048
|
+
$util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0);
|
15049
|
+
else if (object.signature.length)
|
15050
|
+
message.signature = object.signature;
|
15051
|
+
if (object.signatureJson != null)
|
15052
|
+
message.signatureJson = String(object.signatureJson);
|
15012
15053
|
return message;
|
15013
15054
|
};
|
15014
15055
|
|
@@ -15035,6 +15076,14 @@
|
|
15035
15076
|
}
|
15036
15077
|
object.error = options.enums === String ? "OK" : 0;
|
15037
15078
|
object.errorMessage = "";
|
15079
|
+
if (options.bytes === String)
|
15080
|
+
object.signature = "";
|
15081
|
+
else {
|
15082
|
+
object.signature = [];
|
15083
|
+
if (options.bytes !== Array)
|
15084
|
+
object.signature = $util.newBuffer(object.signature);
|
15085
|
+
}
|
15086
|
+
object.signatureJson = "";
|
15038
15087
|
}
|
15039
15088
|
if (message.encoded != null && message.hasOwnProperty("encoded"))
|
15040
15089
|
object.encoded = options.bytes === String ? $util.base64.encode(message.encoded, 0, message.encoded.length) : options.bytes === Array ? Array.prototype.slice.call(message.encoded) : message.encoded;
|
@@ -15042,6 +15091,10 @@
|
|
15042
15091
|
object.error = options.enums === String ? $root.TW.Common.Proto.SigningError[message.error] : message.error;
|
15043
15092
|
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
15044
15093
|
object.errorMessage = message.errorMessage;
|
15094
|
+
if (message.signature != null && message.hasOwnProperty("signature"))
|
15095
|
+
object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature;
|
15096
|
+
if (message.signatureJson != null && message.hasOwnProperty("signatureJson"))
|
15097
|
+
object.signatureJson = message.signatureJson;
|
15045
15098
|
return object;
|
15046
15099
|
};
|
15047
15100
|
|
@@ -127658,6 +127711,636 @@
|
|
127658
127711
|
return VeChain;
|
127659
127712
|
})();
|
127660
127713
|
|
127714
|
+
TW.WalletConnect = (function() {
|
127715
|
+
|
127716
|
+
/**
|
127717
|
+
* Namespace WalletConnect.
|
127718
|
+
* @memberof TW
|
127719
|
+
* @namespace
|
127720
|
+
*/
|
127721
|
+
var WalletConnect = {};
|
127722
|
+
|
127723
|
+
WalletConnect.Proto = (function() {
|
127724
|
+
|
127725
|
+
/**
|
127726
|
+
* Namespace Proto.
|
127727
|
+
* @memberof TW.WalletConnect
|
127728
|
+
* @namespace
|
127729
|
+
*/
|
127730
|
+
var Proto = {};
|
127731
|
+
|
127732
|
+
/**
|
127733
|
+
* Protocol enum.
|
127734
|
+
* @name TW.WalletConnect.Proto.Protocol
|
127735
|
+
* @enum {number}
|
127736
|
+
* @property {number} V2=0 V2 value
|
127737
|
+
*/
|
127738
|
+
Proto.Protocol = (function() {
|
127739
|
+
var valuesById = {}, values = Object.create(valuesById);
|
127740
|
+
values[valuesById[0] = "V2"] = 0;
|
127741
|
+
return values;
|
127742
|
+
})();
|
127743
|
+
|
127744
|
+
/**
|
127745
|
+
* Method enum.
|
127746
|
+
* @name TW.WalletConnect.Proto.Method
|
127747
|
+
* @enum {number}
|
127748
|
+
* @property {number} Unknown=0 Unknown value
|
127749
|
+
* @property {number} CosmosSignAmino=1 CosmosSignAmino value
|
127750
|
+
*/
|
127751
|
+
Proto.Method = (function() {
|
127752
|
+
var valuesById = {}, values = Object.create(valuesById);
|
127753
|
+
values[valuesById[0] = "Unknown"] = 0;
|
127754
|
+
values[valuesById[1] = "CosmosSignAmino"] = 1;
|
127755
|
+
return values;
|
127756
|
+
})();
|
127757
|
+
|
127758
|
+
Proto.ParseRequestInput = (function() {
|
127759
|
+
|
127760
|
+
/**
|
127761
|
+
* Properties of a ParseRequestInput.
|
127762
|
+
* @memberof TW.WalletConnect.Proto
|
127763
|
+
* @interface IParseRequestInput
|
127764
|
+
* @property {TW.WalletConnect.Proto.Protocol|null} [protocol] ParseRequestInput protocol
|
127765
|
+
* @property {TW.WalletConnect.Proto.Method|null} [method] ParseRequestInput method
|
127766
|
+
* @property {string|null} [payload] ParseRequestInput payload
|
127767
|
+
*/
|
127768
|
+
|
127769
|
+
/**
|
127770
|
+
* Constructs a new ParseRequestInput.
|
127771
|
+
* @memberof TW.WalletConnect.Proto
|
127772
|
+
* @classdesc Represents a ParseRequestInput.
|
127773
|
+
* @implements IParseRequestInput
|
127774
|
+
* @constructor
|
127775
|
+
* @param {TW.WalletConnect.Proto.IParseRequestInput=} [properties] Properties to set
|
127776
|
+
*/
|
127777
|
+
function ParseRequestInput(properties) {
|
127778
|
+
if (properties)
|
127779
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
127780
|
+
if (properties[keys[i]] != null)
|
127781
|
+
this[keys[i]] = properties[keys[i]];
|
127782
|
+
}
|
127783
|
+
|
127784
|
+
/**
|
127785
|
+
* ParseRequestInput protocol.
|
127786
|
+
* @member {TW.WalletConnect.Proto.Protocol} protocol
|
127787
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127788
|
+
* @instance
|
127789
|
+
*/
|
127790
|
+
ParseRequestInput.prototype.protocol = 0;
|
127791
|
+
|
127792
|
+
/**
|
127793
|
+
* ParseRequestInput method.
|
127794
|
+
* @member {TW.WalletConnect.Proto.Method} method
|
127795
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127796
|
+
* @instance
|
127797
|
+
*/
|
127798
|
+
ParseRequestInput.prototype.method = 0;
|
127799
|
+
|
127800
|
+
/**
|
127801
|
+
* ParseRequestInput payload.
|
127802
|
+
* @member {string} payload
|
127803
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127804
|
+
* @instance
|
127805
|
+
*/
|
127806
|
+
ParseRequestInput.prototype.payload = "";
|
127807
|
+
|
127808
|
+
/**
|
127809
|
+
* Creates a new ParseRequestInput instance using the specified properties.
|
127810
|
+
* @function create
|
127811
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127812
|
+
* @static
|
127813
|
+
* @param {TW.WalletConnect.Proto.IParseRequestInput=} [properties] Properties to set
|
127814
|
+
* @returns {TW.WalletConnect.Proto.ParseRequestInput} ParseRequestInput instance
|
127815
|
+
*/
|
127816
|
+
ParseRequestInput.create = function create(properties) {
|
127817
|
+
return new ParseRequestInput(properties);
|
127818
|
+
};
|
127819
|
+
|
127820
|
+
/**
|
127821
|
+
* Encodes the specified ParseRequestInput message. Does not implicitly {@link TW.WalletConnect.Proto.ParseRequestInput.verify|verify} messages.
|
127822
|
+
* @function encode
|
127823
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127824
|
+
* @static
|
127825
|
+
* @param {TW.WalletConnect.Proto.IParseRequestInput} message ParseRequestInput message or plain object to encode
|
127826
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
127827
|
+
* @returns {$protobuf.Writer} Writer
|
127828
|
+
*/
|
127829
|
+
ParseRequestInput.encode = function encode(message, writer) {
|
127830
|
+
if (!writer)
|
127831
|
+
writer = $Writer.create();
|
127832
|
+
if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol"))
|
127833
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.protocol);
|
127834
|
+
if (message.method != null && Object.hasOwnProperty.call(message, "method"))
|
127835
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.method);
|
127836
|
+
if (message.payload != null && Object.hasOwnProperty.call(message, "payload"))
|
127837
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.payload);
|
127838
|
+
return writer;
|
127839
|
+
};
|
127840
|
+
|
127841
|
+
/**
|
127842
|
+
* Decodes a ParseRequestInput message from the specified reader or buffer.
|
127843
|
+
* @function decode
|
127844
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127845
|
+
* @static
|
127846
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
127847
|
+
* @param {number} [length] Message length if known beforehand
|
127848
|
+
* @returns {TW.WalletConnect.Proto.ParseRequestInput} ParseRequestInput
|
127849
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
127850
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
127851
|
+
*/
|
127852
|
+
ParseRequestInput.decode = function decode(reader, length) {
|
127853
|
+
if (!(reader instanceof $Reader))
|
127854
|
+
reader = $Reader.create(reader);
|
127855
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.WalletConnect.Proto.ParseRequestInput();
|
127856
|
+
while (reader.pos < end) {
|
127857
|
+
var tag = reader.uint32();
|
127858
|
+
switch (tag >>> 3) {
|
127859
|
+
case 1:
|
127860
|
+
message.protocol = reader.int32();
|
127861
|
+
break;
|
127862
|
+
case 2:
|
127863
|
+
message.method = reader.int32();
|
127864
|
+
break;
|
127865
|
+
case 3:
|
127866
|
+
message.payload = reader.string();
|
127867
|
+
break;
|
127868
|
+
default:
|
127869
|
+
reader.skipType(tag & 7);
|
127870
|
+
break;
|
127871
|
+
}
|
127872
|
+
}
|
127873
|
+
return message;
|
127874
|
+
};
|
127875
|
+
|
127876
|
+
/**
|
127877
|
+
* Verifies a ParseRequestInput message.
|
127878
|
+
* @function verify
|
127879
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127880
|
+
* @static
|
127881
|
+
* @param {Object.<string,*>} message Plain object to verify
|
127882
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
127883
|
+
*/
|
127884
|
+
ParseRequestInput.verify = function verify(message) {
|
127885
|
+
if (typeof message !== "object" || message === null)
|
127886
|
+
return "object expected";
|
127887
|
+
if (message.protocol != null && message.hasOwnProperty("protocol"))
|
127888
|
+
switch (message.protocol) {
|
127889
|
+
default:
|
127890
|
+
return "protocol: enum value expected";
|
127891
|
+
case 0:
|
127892
|
+
break;
|
127893
|
+
}
|
127894
|
+
if (message.method != null && message.hasOwnProperty("method"))
|
127895
|
+
switch (message.method) {
|
127896
|
+
default:
|
127897
|
+
return "method: enum value expected";
|
127898
|
+
case 0:
|
127899
|
+
case 1:
|
127900
|
+
break;
|
127901
|
+
}
|
127902
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
127903
|
+
if (!$util.isString(message.payload))
|
127904
|
+
return "payload: string expected";
|
127905
|
+
return null;
|
127906
|
+
};
|
127907
|
+
|
127908
|
+
/**
|
127909
|
+
* Creates a ParseRequestInput message from a plain object. Also converts values to their respective internal types.
|
127910
|
+
* @function fromObject
|
127911
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127912
|
+
* @static
|
127913
|
+
* @param {Object.<string,*>} object Plain object
|
127914
|
+
* @returns {TW.WalletConnect.Proto.ParseRequestInput} ParseRequestInput
|
127915
|
+
*/
|
127916
|
+
ParseRequestInput.fromObject = function fromObject(object) {
|
127917
|
+
if (object instanceof $root.TW.WalletConnect.Proto.ParseRequestInput)
|
127918
|
+
return object;
|
127919
|
+
var message = new $root.TW.WalletConnect.Proto.ParseRequestInput();
|
127920
|
+
switch (object.protocol) {
|
127921
|
+
case "V2":
|
127922
|
+
case 0:
|
127923
|
+
message.protocol = 0;
|
127924
|
+
break;
|
127925
|
+
}
|
127926
|
+
switch (object.method) {
|
127927
|
+
case "Unknown":
|
127928
|
+
case 0:
|
127929
|
+
message.method = 0;
|
127930
|
+
break;
|
127931
|
+
case "CosmosSignAmino":
|
127932
|
+
case 1:
|
127933
|
+
message.method = 1;
|
127934
|
+
break;
|
127935
|
+
}
|
127936
|
+
if (object.payload != null)
|
127937
|
+
message.payload = String(object.payload);
|
127938
|
+
return message;
|
127939
|
+
};
|
127940
|
+
|
127941
|
+
/**
|
127942
|
+
* Creates a plain object from a ParseRequestInput message. Also converts values to other types if specified.
|
127943
|
+
* @function toObject
|
127944
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127945
|
+
* @static
|
127946
|
+
* @param {TW.WalletConnect.Proto.ParseRequestInput} message ParseRequestInput
|
127947
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
127948
|
+
* @returns {Object.<string,*>} Plain object
|
127949
|
+
*/
|
127950
|
+
ParseRequestInput.toObject = function toObject(message, options) {
|
127951
|
+
if (!options)
|
127952
|
+
options = {};
|
127953
|
+
var object = {};
|
127954
|
+
if (options.defaults) {
|
127955
|
+
object.protocol = options.enums === String ? "V2" : 0;
|
127956
|
+
object.method = options.enums === String ? "Unknown" : 0;
|
127957
|
+
object.payload = "";
|
127958
|
+
}
|
127959
|
+
if (message.protocol != null && message.hasOwnProperty("protocol"))
|
127960
|
+
object.protocol = options.enums === String ? $root.TW.WalletConnect.Proto.Protocol[message.protocol] : message.protocol;
|
127961
|
+
if (message.method != null && message.hasOwnProperty("method"))
|
127962
|
+
object.method = options.enums === String ? $root.TW.WalletConnect.Proto.Method[message.method] : message.method;
|
127963
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
127964
|
+
object.payload = message.payload;
|
127965
|
+
return object;
|
127966
|
+
};
|
127967
|
+
|
127968
|
+
/**
|
127969
|
+
* Converts this ParseRequestInput to JSON.
|
127970
|
+
* @function toJSON
|
127971
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestInput
|
127972
|
+
* @instance
|
127973
|
+
* @returns {Object.<string,*>} JSON object
|
127974
|
+
*/
|
127975
|
+
ParseRequestInput.prototype.toJSON = function toJSON() {
|
127976
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
127977
|
+
};
|
127978
|
+
|
127979
|
+
return ParseRequestInput;
|
127980
|
+
})();
|
127981
|
+
|
127982
|
+
Proto.ParseRequestOutput = (function() {
|
127983
|
+
|
127984
|
+
/**
|
127985
|
+
* Properties of a ParseRequestOutput.
|
127986
|
+
* @memberof TW.WalletConnect.Proto
|
127987
|
+
* @interface IParseRequestOutput
|
127988
|
+
* @property {TW.Common.Proto.SigningError|null} [error] ParseRequestOutput error
|
127989
|
+
* @property {string|null} [errorMessage] ParseRequestOutput errorMessage
|
127990
|
+
* @property {TW.Binance.Proto.ISigningInput|null} [binance] ParseRequestOutput binance
|
127991
|
+
*/
|
127992
|
+
|
127993
|
+
/**
|
127994
|
+
* Constructs a new ParseRequestOutput.
|
127995
|
+
* @memberof TW.WalletConnect.Proto
|
127996
|
+
* @classdesc Represents a ParseRequestOutput.
|
127997
|
+
* @implements IParseRequestOutput
|
127998
|
+
* @constructor
|
127999
|
+
* @param {TW.WalletConnect.Proto.IParseRequestOutput=} [properties] Properties to set
|
128000
|
+
*/
|
128001
|
+
function ParseRequestOutput(properties) {
|
128002
|
+
if (properties)
|
128003
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
128004
|
+
if (properties[keys[i]] != null)
|
128005
|
+
this[keys[i]] = properties[keys[i]];
|
128006
|
+
}
|
128007
|
+
|
128008
|
+
/**
|
128009
|
+
* ParseRequestOutput error.
|
128010
|
+
* @member {TW.Common.Proto.SigningError} error
|
128011
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128012
|
+
* @instance
|
128013
|
+
*/
|
128014
|
+
ParseRequestOutput.prototype.error = 0;
|
128015
|
+
|
128016
|
+
/**
|
128017
|
+
* ParseRequestOutput errorMessage.
|
128018
|
+
* @member {string} errorMessage
|
128019
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128020
|
+
* @instance
|
128021
|
+
*/
|
128022
|
+
ParseRequestOutput.prototype.errorMessage = "";
|
128023
|
+
|
128024
|
+
/**
|
128025
|
+
* ParseRequestOutput binance.
|
128026
|
+
* @member {TW.Binance.Proto.ISigningInput|null|undefined} binance
|
128027
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128028
|
+
* @instance
|
128029
|
+
*/
|
128030
|
+
ParseRequestOutput.prototype.binance = null;
|
128031
|
+
|
128032
|
+
// OneOf field names bound to virtual getters and setters
|
128033
|
+
var $oneOfFields;
|
128034
|
+
|
128035
|
+
/**
|
128036
|
+
* ParseRequestOutput signingInputOneof.
|
128037
|
+
* @member {"binance"|undefined} signingInputOneof
|
128038
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128039
|
+
* @instance
|
128040
|
+
*/
|
128041
|
+
Object.defineProperty(ParseRequestOutput.prototype, "signingInputOneof", {
|
128042
|
+
get: $util.oneOfGetter($oneOfFields = ["binance"]),
|
128043
|
+
set: $util.oneOfSetter($oneOfFields)
|
128044
|
+
});
|
128045
|
+
|
128046
|
+
/**
|
128047
|
+
* Creates a new ParseRequestOutput instance using the specified properties.
|
128048
|
+
* @function create
|
128049
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128050
|
+
* @static
|
128051
|
+
* @param {TW.WalletConnect.Proto.IParseRequestOutput=} [properties] Properties to set
|
128052
|
+
* @returns {TW.WalletConnect.Proto.ParseRequestOutput} ParseRequestOutput instance
|
128053
|
+
*/
|
128054
|
+
ParseRequestOutput.create = function create(properties) {
|
128055
|
+
return new ParseRequestOutput(properties);
|
128056
|
+
};
|
128057
|
+
|
128058
|
+
/**
|
128059
|
+
* Encodes the specified ParseRequestOutput message. Does not implicitly {@link TW.WalletConnect.Proto.ParseRequestOutput.verify|verify} messages.
|
128060
|
+
* @function encode
|
128061
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128062
|
+
* @static
|
128063
|
+
* @param {TW.WalletConnect.Proto.IParseRequestOutput} message ParseRequestOutput message or plain object to encode
|
128064
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
128065
|
+
* @returns {$protobuf.Writer} Writer
|
128066
|
+
*/
|
128067
|
+
ParseRequestOutput.encode = function encode(message, writer) {
|
128068
|
+
if (!writer)
|
128069
|
+
writer = $Writer.create();
|
128070
|
+
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
128071
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.error);
|
128072
|
+
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
128073
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage);
|
128074
|
+
if (message.binance != null && Object.hasOwnProperty.call(message, "binance"))
|
128075
|
+
$root.TW.Binance.Proto.SigningInput.encode(message.binance, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
128076
|
+
return writer;
|
128077
|
+
};
|
128078
|
+
|
128079
|
+
/**
|
128080
|
+
* Decodes a ParseRequestOutput message from the specified reader or buffer.
|
128081
|
+
* @function decode
|
128082
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128083
|
+
* @static
|
128084
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
128085
|
+
* @param {number} [length] Message length if known beforehand
|
128086
|
+
* @returns {TW.WalletConnect.Proto.ParseRequestOutput} ParseRequestOutput
|
128087
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
128088
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
128089
|
+
*/
|
128090
|
+
ParseRequestOutput.decode = function decode(reader, length) {
|
128091
|
+
if (!(reader instanceof $Reader))
|
128092
|
+
reader = $Reader.create(reader);
|
128093
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.WalletConnect.Proto.ParseRequestOutput();
|
128094
|
+
while (reader.pos < end) {
|
128095
|
+
var tag = reader.uint32();
|
128096
|
+
switch (tag >>> 3) {
|
128097
|
+
case 1:
|
128098
|
+
message.error = reader.int32();
|
128099
|
+
break;
|
128100
|
+
case 2:
|
128101
|
+
message.errorMessage = reader.string();
|
128102
|
+
break;
|
128103
|
+
case 3:
|
128104
|
+
message.binance = $root.TW.Binance.Proto.SigningInput.decode(reader, reader.uint32());
|
128105
|
+
break;
|
128106
|
+
default:
|
128107
|
+
reader.skipType(tag & 7);
|
128108
|
+
break;
|
128109
|
+
}
|
128110
|
+
}
|
128111
|
+
return message;
|
128112
|
+
};
|
128113
|
+
|
128114
|
+
/**
|
128115
|
+
* Verifies a ParseRequestOutput message.
|
128116
|
+
* @function verify
|
128117
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128118
|
+
* @static
|
128119
|
+
* @param {Object.<string,*>} message Plain object to verify
|
128120
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
128121
|
+
*/
|
128122
|
+
ParseRequestOutput.verify = function verify(message) {
|
128123
|
+
if (typeof message !== "object" || message === null)
|
128124
|
+
return "object expected";
|
128125
|
+
var properties = {};
|
128126
|
+
if (message.error != null && message.hasOwnProperty("error"))
|
128127
|
+
switch (message.error) {
|
128128
|
+
default:
|
128129
|
+
return "error: enum value expected";
|
128130
|
+
case 0:
|
128131
|
+
case 1:
|
128132
|
+
case 2:
|
128133
|
+
case 3:
|
128134
|
+
case 4:
|
128135
|
+
case 5:
|
128136
|
+
case 15:
|
128137
|
+
case 16:
|
128138
|
+
case 17:
|
128139
|
+
case 18:
|
128140
|
+
case 6:
|
128141
|
+
case 7:
|
128142
|
+
case 8:
|
128143
|
+
case 9:
|
128144
|
+
case 10:
|
128145
|
+
case 11:
|
128146
|
+
case 12:
|
128147
|
+
case 13:
|
128148
|
+
case 14:
|
128149
|
+
case 19:
|
128150
|
+
case 20:
|
128151
|
+
case 21:
|
128152
|
+
case 22:
|
128153
|
+
case 23:
|
128154
|
+
case 24:
|
128155
|
+
break;
|
128156
|
+
}
|
128157
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
128158
|
+
if (!$util.isString(message.errorMessage))
|
128159
|
+
return "errorMessage: string expected";
|
128160
|
+
if (message.binance != null && message.hasOwnProperty("binance")) {
|
128161
|
+
properties.signingInputOneof = 1;
|
128162
|
+
{
|
128163
|
+
var error = $root.TW.Binance.Proto.SigningInput.verify(message.binance);
|
128164
|
+
if (error)
|
128165
|
+
return "binance." + error;
|
128166
|
+
}
|
128167
|
+
}
|
128168
|
+
return null;
|
128169
|
+
};
|
128170
|
+
|
128171
|
+
/**
|
128172
|
+
* Creates a ParseRequestOutput message from a plain object. Also converts values to their respective internal types.
|
128173
|
+
* @function fromObject
|
128174
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128175
|
+
* @static
|
128176
|
+
* @param {Object.<string,*>} object Plain object
|
128177
|
+
* @returns {TW.WalletConnect.Proto.ParseRequestOutput} ParseRequestOutput
|
128178
|
+
*/
|
128179
|
+
ParseRequestOutput.fromObject = function fromObject(object) {
|
128180
|
+
if (object instanceof $root.TW.WalletConnect.Proto.ParseRequestOutput)
|
128181
|
+
return object;
|
128182
|
+
var message = new $root.TW.WalletConnect.Proto.ParseRequestOutput();
|
128183
|
+
switch (object.error) {
|
128184
|
+
case "OK":
|
128185
|
+
case 0:
|
128186
|
+
message.error = 0;
|
128187
|
+
break;
|
128188
|
+
case "Error_general":
|
128189
|
+
case 1:
|
128190
|
+
message.error = 1;
|
128191
|
+
break;
|
128192
|
+
case "Error_internal":
|
128193
|
+
case 2:
|
128194
|
+
message.error = 2;
|
128195
|
+
break;
|
128196
|
+
case "Error_low_balance":
|
128197
|
+
case 3:
|
128198
|
+
message.error = 3;
|
128199
|
+
break;
|
128200
|
+
case "Error_zero_amount_requested":
|
128201
|
+
case 4:
|
128202
|
+
message.error = 4;
|
128203
|
+
break;
|
128204
|
+
case "Error_missing_private_key":
|
128205
|
+
case 5:
|
128206
|
+
message.error = 5;
|
128207
|
+
break;
|
128208
|
+
case "Error_invalid_private_key":
|
128209
|
+
case 15:
|
128210
|
+
message.error = 15;
|
128211
|
+
break;
|
128212
|
+
case "Error_invalid_address":
|
128213
|
+
case 16:
|
128214
|
+
message.error = 16;
|
128215
|
+
break;
|
128216
|
+
case "Error_invalid_utxo":
|
128217
|
+
case 17:
|
128218
|
+
message.error = 17;
|
128219
|
+
break;
|
128220
|
+
case "Error_invalid_utxo_amount":
|
128221
|
+
case 18:
|
128222
|
+
message.error = 18;
|
128223
|
+
break;
|
128224
|
+
case "Error_wrong_fee":
|
128225
|
+
case 6:
|
128226
|
+
message.error = 6;
|
128227
|
+
break;
|
128228
|
+
case "Error_signing":
|
128229
|
+
case 7:
|
128230
|
+
message.error = 7;
|
128231
|
+
break;
|
128232
|
+
case "Error_tx_too_big":
|
128233
|
+
case 8:
|
128234
|
+
message.error = 8;
|
128235
|
+
break;
|
128236
|
+
case "Error_missing_input_utxos":
|
128237
|
+
case 9:
|
128238
|
+
message.error = 9;
|
128239
|
+
break;
|
128240
|
+
case "Error_not_enough_utxos":
|
128241
|
+
case 10:
|
128242
|
+
message.error = 10;
|
128243
|
+
break;
|
128244
|
+
case "Error_script_redeem":
|
128245
|
+
case 11:
|
128246
|
+
message.error = 11;
|
128247
|
+
break;
|
128248
|
+
case "Error_script_output":
|
128249
|
+
case 12:
|
128250
|
+
message.error = 12;
|
128251
|
+
break;
|
128252
|
+
case "Error_script_witness_program":
|
128253
|
+
case 13:
|
128254
|
+
message.error = 13;
|
128255
|
+
break;
|
128256
|
+
case "Error_invalid_memo":
|
128257
|
+
case 14:
|
128258
|
+
message.error = 14;
|
128259
|
+
break;
|
128260
|
+
case "Error_input_parse":
|
128261
|
+
case 19:
|
128262
|
+
message.error = 19;
|
128263
|
+
break;
|
128264
|
+
case "Error_no_support_n2n":
|
128265
|
+
case 20:
|
128266
|
+
message.error = 20;
|
128267
|
+
break;
|
128268
|
+
case "Error_signatures_count":
|
128269
|
+
case 21:
|
128270
|
+
message.error = 21;
|
128271
|
+
break;
|
128272
|
+
case "Error_invalid_params":
|
128273
|
+
case 22:
|
128274
|
+
message.error = 22;
|
128275
|
+
break;
|
128276
|
+
case "Error_invalid_requested_token_amount":
|
128277
|
+
case 23:
|
128278
|
+
message.error = 23;
|
128279
|
+
break;
|
128280
|
+
case "Error_not_supported":
|
128281
|
+
case 24:
|
128282
|
+
message.error = 24;
|
128283
|
+
break;
|
128284
|
+
}
|
128285
|
+
if (object.errorMessage != null)
|
128286
|
+
message.errorMessage = String(object.errorMessage);
|
128287
|
+
if (object.binance != null) {
|
128288
|
+
if (typeof object.binance !== "object")
|
128289
|
+
throw TypeError(".TW.WalletConnect.Proto.ParseRequestOutput.binance: object expected");
|
128290
|
+
message.binance = $root.TW.Binance.Proto.SigningInput.fromObject(object.binance);
|
128291
|
+
}
|
128292
|
+
return message;
|
128293
|
+
};
|
128294
|
+
|
128295
|
+
/**
|
128296
|
+
* Creates a plain object from a ParseRequestOutput message. Also converts values to other types if specified.
|
128297
|
+
* @function toObject
|
128298
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128299
|
+
* @static
|
128300
|
+
* @param {TW.WalletConnect.Proto.ParseRequestOutput} message ParseRequestOutput
|
128301
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
128302
|
+
* @returns {Object.<string,*>} Plain object
|
128303
|
+
*/
|
128304
|
+
ParseRequestOutput.toObject = function toObject(message, options) {
|
128305
|
+
if (!options)
|
128306
|
+
options = {};
|
128307
|
+
var object = {};
|
128308
|
+
if (options.defaults) {
|
128309
|
+
object.error = options.enums === String ? "OK" : 0;
|
128310
|
+
object.errorMessage = "";
|
128311
|
+
}
|
128312
|
+
if (message.error != null && message.hasOwnProperty("error"))
|
128313
|
+
object.error = options.enums === String ? $root.TW.Common.Proto.SigningError[message.error] : message.error;
|
128314
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
128315
|
+
object.errorMessage = message.errorMessage;
|
128316
|
+
if (message.binance != null && message.hasOwnProperty("binance")) {
|
128317
|
+
object.binance = $root.TW.Binance.Proto.SigningInput.toObject(message.binance, options);
|
128318
|
+
if (options.oneofs)
|
128319
|
+
object.signingInputOneof = "binance";
|
128320
|
+
}
|
128321
|
+
return object;
|
128322
|
+
};
|
128323
|
+
|
128324
|
+
/**
|
128325
|
+
* Converts this ParseRequestOutput to JSON.
|
128326
|
+
* @function toJSON
|
128327
|
+
* @memberof TW.WalletConnect.Proto.ParseRequestOutput
|
128328
|
+
* @instance
|
128329
|
+
* @returns {Object.<string,*>} JSON object
|
128330
|
+
*/
|
128331
|
+
ParseRequestOutput.prototype.toJSON = function toJSON() {
|
128332
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
128333
|
+
};
|
128334
|
+
|
128335
|
+
return ParseRequestOutput;
|
128336
|
+
})();
|
128337
|
+
|
128338
|
+
return Proto;
|
128339
|
+
})();
|
128340
|
+
|
128341
|
+
return WalletConnect;
|
128342
|
+
})();
|
128343
|
+
|
127661
128344
|
TW.Waves = (function() {
|
127662
128345
|
|
127663
128346
|
/**
|
package/dist/lib/wallet-core.js
CHANGED
@@ -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){p(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={
|
37
|
+
var Za,$a,ab={2154452:()=>{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";}}},2155174:()=>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(){D[this.l>>2]=0};this.Ia=function(){B[this.l+12>>0]=0};this.Na=function(){B[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=
|
@@ -146,7 +146,7 @@ d);e=e.min.call(e,2147483648,d+(65536-d%65536)%65536);a:{d=e;var f=ra.buffer;try
|
|
146
146
|
b;for(var f,h=b=0;h<c;h++){var l=F[a>>2],n=F[a+4>>2];a+=8;var m=e,q=l,t=n,u=f,k=B;if(0>t||0>u)throw new I(28);if(null===m.fd)throw new I(8);if(1===(m.flags&2097155))throw new I(8);if(16384===(m.node.mode&61440))throw new I(31);if(!m.h.read)throw new I(28);var r="undefined"!=typeof u;if(!r)u=m.position;else if(!m.seekable)throw new I(70);var x=m.h.read(m,k,q,t,u);r||(m.position+=x);var E=x;if(0>E){var P=-1;break a}b+=E;if(E<n)break;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==
|
147
147
|
typeof L||!(M instanceof I))throw M;return M.D}},fd_seek:function(a,b,c,d,e){try{assert(b==b>>>0||b==(b|0));assert(c===(c|0));var f=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(f))return 61;var h=N(a);Yb(h,f,d);$a=[h.position>>>0,(Za=h.position,1<=+Math.abs(Za)?0<Za?(Math.min(+Math.floor(Za/4294967296),4294967295)|0)>>>0:~~+Math.ceil((Za-+(~~Za>>>0))/4294967296)>>>0:0)];D[e>>2]=$a[0];D[e+4>>2]=$a[1];h.fa&&0===f&&0===d&&(h.fa=null);return 0}catch(l){if("undefined"==typeof L||!(l instanceof
|
148
148
|
I))throw l;return l.D}},fd_write:function(a,b,c,d){try{a:{var e=N(a);a=b;for(var f,h=b=0;h<c;h++){var l=F[a>>2],n=F[a+4>>2];a+=8;var m=e,q=l,t=n,u=f,k=B;if(0>t||0>u)throw new I(28);if(null===m.fd)throw new I(8);if(0===(m.flags&2097155))throw new I(8);if(16384===(m.node.mode&61440))throw new I(31);if(!m.h.write)throw new I(28);m.seekable&&m.flags&1024&&Yb(m,0,2);var r="undefined"!=typeof u;if(!r)u=m.position;else if(!m.seekable)throw new I(70);var x=m.h.write(m,k,q,t,u,void 0);r||(m.position+=x);var E=
|
149
|
-
x;if(0>E){var P=-1;break a}b+=E;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==typeof L||!(M instanceof I))throw M;return M.D}},getentropy:Fd,invoke_i:Qd,invoke_ii:Rd,invoke_iid:Sd,invoke_iii:Td,invoke_iiii:Ud,invoke_iiiii:Vd,invoke_iiiiii:Wd,invoke_iiiiiii:Xd,invoke_iij:Yd,
|
149
|
+
x;if(0>E){var P=-1;break a}b+=E;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==typeof L||!(M instanceof I))throw M;return M.D}},getentropy:Fd,invoke_i:Qd,invoke_ii:Rd,invoke_iid:Sd,invoke_iii:Td,invoke_iiii:Ud,invoke_iiiii:Vd,invoke_iiiiii:Wd,invoke_iiiiiii:Xd,invoke_iij:Yd,invoke_iijj:Zd,invoke_jii:$d,invoke_jiii:ae,invoke_jj:be,invoke_jjji:ce,invoke_v:de,invoke_vi:ee,invoke_vii:fe,invoke_viii:ge,invoke_viiii:he,invoke_viiiii:ie,invoke_viiiiii:je,invoke_viiiiiii:ke,
|
150
150
|
invoke_viiiiiiii:le,invoke_viiiiiji:me,invoke_viiij:ne,invoke_viiijii:oe,invoke_viij:pe,invoke_viijii:qe,invoke_vij:re,strftime_l:function(a,b,c,d){return Kd(a,b,c,d)}};
|
151
151
|
(function(){function a(f){g.asm=f.exports;ra=g.asm.memory;assert(ra,"memory not found in wasm exports");Da();Fa=g.asm.__indirect_function_table;assert(Fa,"table not found in wasm exports");Ma.unshift(g.asm.__wasm_call_ctors);Qa--;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert(Ta["wasm-instantiate"]);delete Ta["wasm-instantiate"];0==Qa&&(null!==Ra&&(clearInterval(Ra),Ra=null),Sa&&(f=Sa,Sa=null,f()))}function b(f){assert(g===e,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?");
|
152
152
|
e=null;a(f.instance)}function c(f){return Ya().then(function(h){return WebAssembly.instantiate(h,d)}).then(function(h){return h}).then(f,function(h){y("failed to asynchronously prepare wasm: "+h);ma(G)&&y("warning: Loading from a file URI ("+G+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing");p(h)})}var d={env:se,wasi_snapshot_preview1:se};Ua();var e=g;if(g.instantiateWasm)try{return g.instantiateWasm(d,
|
@@ -155,13 +155,13 @@ var zd=g._malloc=H("malloc"),Pd=g.___errno_location=H("__errno_location"),V=g._f
|
|
155
155
|
var X=g._setThrew=H("setThrew"),Nd=g.setTempRet0=H("setTempRet0"),te=g._emscripten_stack_init=function(){return(te=g._emscripten_stack_init=g.asm.emscripten_stack_init).apply(null,arguments)};g._emscripten_stack_get_free=function(){return(g._emscripten_stack_get_free=g.asm.emscripten_stack_get_free).apply(null,arguments)};g._emscripten_stack_get_base=function(){return(g._emscripten_stack_get_base=g.asm.emscripten_stack_get_base).apply(null,arguments)};
|
156
156
|
var Ha=g._emscripten_stack_get_end=function(){return(Ha=g._emscripten_stack_get_end=g.asm.emscripten_stack_get_end).apply(null,arguments)},Y=g.stackSave=H("stackSave"),Z=g.stackRestore=H("stackRestore");g.stackAlloc=H("stackAlloc");g._emscripten_stack_get_current=function(){return(g._emscripten_stack_get_current=g.asm.emscripten_stack_get_current).apply(null,arguments)};g.___cxa_free_exception=H("__cxa_free_exception");var Od=g.___cxa_can_catch=H("__cxa_can_catch");g.___cxa_is_pointer_type=H("__cxa_is_pointer_type");
|
157
157
|
g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiij=H("dynCall_iiiij");var ue=g.dynCall_jii=H("dynCall_jii");g.dynCall_ji=H("dynCall_ji");g.dynCall_iiji=H("dynCall_iiji");g.dynCall_iiiji=H("dynCall_iiiji");var ve=g.dynCall_jiii=H("dynCall_jiii");g.dynCall_jiiii=H("dynCall_jiiii");g.dynCall_iiij=H("dynCall_iiij");g.dynCall_jijjj=H("dynCall_jijjj");g.dynCall_jij=H("dynCall_jij");var we=g.dynCall_viijii=H("dynCall_viijii");g.dynCall_viiiijijji=H("dynCall_viiiijijji");
|
158
|
-
var xe=g.dynCall_jj=H("dynCall_jj"),ye=g.dynCall_vij=H("dynCall_vij"),ze=g.
|
158
|
+
var xe=g.dynCall_jj=H("dynCall_jj"),ye=g.dynCall_vij=H("dynCall_vij"),ze=g.dynCall_iij=H("dynCall_iij"),Ae=g.dynCall_viiij=H("dynCall_viiij"),Be=g.dynCall_iijj=H("dynCall_iijj"),Ce=g.dynCall_viiiiiji=H("dynCall_viiiiiji"),De=g.dynCall_viiijii=H("dynCall_viiijii"),Ee=g.dynCall_viij=H("dynCall_viij"),Fe=g.dynCall_jjji=H("dynCall_jjji");g.dynCall_viji=H("dynCall_viji");g.dynCall_jiji=H("dynCall_jiji");g.dynCall_iiiiijj=H("dynCall_iiiiijj");g.dynCall_iiiiiijj=H("dynCall_iiiiiijj");
|
159
159
|
function fe(a,b,c){var d=Y();try{U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function ee(a,b){var c=Y();try{U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function ge(a,b,c,d){var e=Y();try{U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function ie(a,b,c,d,e,f){var h=Y();try{U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Td(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
160
|
-
function he(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Rd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function de(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function
|
161
|
-
function
|
162
|
-
function Xd(a,b,c,d,e,f,h){var l=Y();try{return U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function le(a,b,c,d,e,f,h,l,n){var m=Y();try{U(a)(b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function
|
163
|
-
function
|
164
|
-
function
|
160
|
+
function he(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Rd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function de(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Ud(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}
|
161
|
+
function Vd(a,b,c,d,e){var f=Y();try{return U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function je(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function Sd(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function Wd(a,b,c,d,e,f){var h=Y();try{return U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function ke(a,b,c,d,e,f,h,l){var n=Y();try{U(a)(b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}
|
162
|
+
function Xd(a,b,c,d,e,f,h){var l=Y();try{return U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function le(a,b,c,d,e,f,h,l,n){var m=Y();try{U(a)(b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function be(a,b,c){var d=Y();try{return xe(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function re(a,b,c,d){var e=Y();try{ye(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function $d(a,b,c){var d=Y();try{return ue(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
163
|
+
function Yd(a,b,c,d){var e=Y();try{return ze(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function ne(a,b,c,d,e,f){var h=Y();try{Ae(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Zd(a,b,c,d,e,f){var h=Y();try{return Be(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function me(a,b,c,d,e,f,h,l,n){var m=Y();try{Ce(a,b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function ae(a,b,c,d){var e=Y();try{return ve(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}
|
164
|
+
function qe(a,b,c,d,e,f,h){var l=Y();try{we(a,b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function oe(a,b,c,d,e,f,h,l){var n=Y();try{De(a,b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function pe(a,b,c,d,e){var f=Y();try{Ee(a,b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function ce(a,b,c,d,e,f){var h=Y();try{return Fe(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
|
165
165
|
"run UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 addOnPreRun addOnInit addOnPreMain addOnExit addOnPostRun addRunDependency removeRunDependency FS_createFolder FS_createPath FS_createDataFile FS_createPreloadedFile FS_createLazyFile FS_createLink FS_createDevice FS_unlink getLEB getFunctionTables alignFunctionTables registerFunctions prettyPrint getCompilerSetting out err callMain abort keepRuntimeAlive wasmMemory stackAlloc stackSave stackRestore getTempRet0 setTempRet0 writeStackCookie checkStackCookie ptrToString zeroMemory stringToNewUTF8 exitJS getHeapMax emscripten_realloc_buffer ENV ERRNO_CODES ERRNO_MESSAGES setErrNo inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr DNS getHostByName Protocols Sockets getRandomDevice warnOnce traverseStack UNWIND_CACHE convertPCtoSourceLocation readEmAsmArgsArray readEmAsmArgs runEmAsmFunction runMainThreadEmAsm jstoi_q jstoi_s getExecutableName listenOnce autoResumeAudioContext dynCallLegacy getDynCaller dynCall handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle asyncLoad alignMemory mmapAlloc handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm freeTableIndexes functionsInTableMap getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString setValue getValue PATH PATH_FS intArrayFromString intArrayToString AsciiToString stringToAscii UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 allocateUTF8 allocateUTF8OnStack writeStringToMemory writeArrayToMemory writeAsciiToMemory SYSCALLS getSocketFromFD getSocketAddress JSEvents registerKeyEventCallback specialHTMLTargets maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox currentFullscreenStrategy restoreOldWindowedStyle softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize demangle demangleAll jsStackTrace stackTrace ExitStatus getEnvStrings checkWasiClock doReadv doWritev createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate promiseMap newNativePromise getPromise uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo exception_addRef exception_decRef Browser setMainLoop wget FS MEMFS TTY PIPEFS SOCKFS _setNetworkCallback InternalError BindingError UnboundTypeError PureVirtualError init_embind throwInternalError throwBindingError throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol extendError createNamedFunction embindRepr registeredInstances getBasestPointer registerInheritedInstance unregisterInheritedInstance getInheritedInstance getInheritedInstanceCount getLiveInheritedInstances registeredTypes awaitingDependencies typeDependencies registeredPointers registerType whenDependentTypesAreResolved embind_charCodes embind_init_charCodes readLatin1String getTypeName heap32VectorToArray requireRegisteredType getShiftFromSize integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer simpleReadValueFromPointer runDestructors new_ craftInvokerFunction embind__requireFunction tupleRegistrations structRegistrations genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_getPointee RegisteredPointer_destructor RegisteredPointer_deleteObject RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle ClassHandle_isAliasOf throwInstanceAlreadyDeleted ClassHandle_clone ClassHandle_delete deletionQueue ClassHandle_isDeleted ClassHandle_deleteLater flushPendingDeletes delayFunction setDelayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer validateThis char_0 char_9 makeLegalFunctionName emval_handle_array emval_free_list emval_symbols init_emval count_emval_handles get_first_emval getStringOrSymbol Emval emval_newers craftEmvalAllocator emval_get_global emval_lookupTypes emval_allocateDestructors emval_methodCallers emval_addMethodCaller emval_registeredMethods".split(" ").forEach(function(a){Object.getOwnPropertyDescriptor(g,a)||
|
166
166
|
Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");p(b)}})});
|
167
167
|
"stringToNewUTF8 exitJS inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr getHostByName traverseStack convertPCtoSourceLocation runMainThreadEmAsm jstoi_q jstoi_s listenOnce autoResumeAudioContext handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromU64 convertI32PairToI53 convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString intArrayToString AsciiToString stringToAscii allocateUTF8OnStack writeStringToMemory getSocketFromFD getSocketAddress registerKeyEventCallback maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize jsStackTrace stackTrace checkWasiClock createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate newNativePromise getPromise exception_addRef exception_decRef setMainLoop _setNetworkCallback registerInheritedInstance unregisterInheritedInstance validateThis".split(" ").forEach(function(a){"undefined"===typeof globalThis||
|
Binary file
|
@@ -949,6 +949,9 @@ export class TronMessageSigner {
|
|
949
949
|
static signMessage(privateKey: PrivateKey, message: string): string;
|
950
950
|
static verifyMessage(pubKey: PublicKey, message: string, signature: string): boolean;
|
951
951
|
}
|
952
|
+
export class WalletConnectRequest {
|
953
|
+
static parse(coin: CoinType, input: Uint8Array | Buffer): Uint8Array;
|
954
|
+
}
|
952
955
|
export class WebAuthn {
|
953
956
|
static getPublicKey(attestationObject: Uint8Array | Buffer): PublicKey;
|
954
957
|
static getRSValues(signature: Uint8Array | Buffer): Uint8Array;
|
@@ -1024,6 +1027,7 @@ export interface WalletCore {
|
|
1024
1027
|
TezosMessageSigner: typeof TezosMessageSigner;
|
1025
1028
|
TransactionCompiler: typeof TransactionCompiler;
|
1026
1029
|
TronMessageSigner: typeof TronMessageSigner;
|
1030
|
+
WalletConnectRequest: typeof WalletConnectRequest;
|
1027
1031
|
WebAuthn: typeof WebAuthn;
|
1028
1032
|
describeCurve: typeof describeCurve;
|
1029
1033
|
describeHRP: typeof describeHRP;
|