@trustwallet/wallet-core 3.2.6 → 3.2.8
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.
@@ -31873,6 +31873,109 @@ export namespace TW {
|
|
31873
31873
|
public toJSON(): { [k: string]: any };
|
31874
31874
|
}
|
31875
31875
|
|
31876
|
+
/** Properties of a JettonTransfer. */
|
31877
|
+
interface IJettonTransfer {
|
31878
|
+
|
31879
|
+
/** JettonTransfer transfer */
|
31880
|
+
transfer?: (TW.TheOpenNetwork.Proto.ITransfer|null);
|
31881
|
+
|
31882
|
+
/** JettonTransfer queryId */
|
31883
|
+
queryId?: (Long|null);
|
31884
|
+
|
31885
|
+
/** JettonTransfer jettonAmount */
|
31886
|
+
jettonAmount?: (Long|null);
|
31887
|
+
|
31888
|
+
/** JettonTransfer toOwner */
|
31889
|
+
toOwner?: (string|null);
|
31890
|
+
|
31891
|
+
/** JettonTransfer responseAddress */
|
31892
|
+
responseAddress?: (string|null);
|
31893
|
+
|
31894
|
+
/** JettonTransfer forwardAmount */
|
31895
|
+
forwardAmount?: (Long|null);
|
31896
|
+
}
|
31897
|
+
|
31898
|
+
/** Represents a JettonTransfer. */
|
31899
|
+
class JettonTransfer implements IJettonTransfer {
|
31900
|
+
|
31901
|
+
/**
|
31902
|
+
* Constructs a new JettonTransfer.
|
31903
|
+
* @param [properties] Properties to set
|
31904
|
+
*/
|
31905
|
+
constructor(properties?: TW.TheOpenNetwork.Proto.IJettonTransfer);
|
31906
|
+
|
31907
|
+
/** JettonTransfer transfer. */
|
31908
|
+
public transfer?: (TW.TheOpenNetwork.Proto.ITransfer|null);
|
31909
|
+
|
31910
|
+
/** JettonTransfer queryId. */
|
31911
|
+
public queryId: Long;
|
31912
|
+
|
31913
|
+
/** JettonTransfer jettonAmount. */
|
31914
|
+
public jettonAmount: Long;
|
31915
|
+
|
31916
|
+
/** JettonTransfer toOwner. */
|
31917
|
+
public toOwner: string;
|
31918
|
+
|
31919
|
+
/** JettonTransfer responseAddress. */
|
31920
|
+
public responseAddress: string;
|
31921
|
+
|
31922
|
+
/** JettonTransfer forwardAmount. */
|
31923
|
+
public forwardAmount: Long;
|
31924
|
+
|
31925
|
+
/**
|
31926
|
+
* Creates a new JettonTransfer instance using the specified properties.
|
31927
|
+
* @param [properties] Properties to set
|
31928
|
+
* @returns JettonTransfer instance
|
31929
|
+
*/
|
31930
|
+
public static create(properties?: TW.TheOpenNetwork.Proto.IJettonTransfer): TW.TheOpenNetwork.Proto.JettonTransfer;
|
31931
|
+
|
31932
|
+
/**
|
31933
|
+
* Encodes the specified JettonTransfer message. Does not implicitly {@link TW.TheOpenNetwork.Proto.JettonTransfer.verify|verify} messages.
|
31934
|
+
* @param message JettonTransfer message or plain object to encode
|
31935
|
+
* @param [writer] Writer to encode to
|
31936
|
+
* @returns Writer
|
31937
|
+
*/
|
31938
|
+
public static encode(message: TW.TheOpenNetwork.Proto.IJettonTransfer, writer?: $protobuf.Writer): $protobuf.Writer;
|
31939
|
+
|
31940
|
+
/**
|
31941
|
+
* Decodes a JettonTransfer message from the specified reader or buffer.
|
31942
|
+
* @param reader Reader or buffer to decode from
|
31943
|
+
* @param [length] Message length if known beforehand
|
31944
|
+
* @returns JettonTransfer
|
31945
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
31946
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
31947
|
+
*/
|
31948
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.TheOpenNetwork.Proto.JettonTransfer;
|
31949
|
+
|
31950
|
+
/**
|
31951
|
+
* Verifies a JettonTransfer message.
|
31952
|
+
* @param message Plain object to verify
|
31953
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
31954
|
+
*/
|
31955
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
31956
|
+
|
31957
|
+
/**
|
31958
|
+
* Creates a JettonTransfer message from a plain object. Also converts values to their respective internal types.
|
31959
|
+
* @param object Plain object
|
31960
|
+
* @returns JettonTransfer
|
31961
|
+
*/
|
31962
|
+
public static fromObject(object: { [k: string]: any }): TW.TheOpenNetwork.Proto.JettonTransfer;
|
31963
|
+
|
31964
|
+
/**
|
31965
|
+
* Creates a plain object from a JettonTransfer message. Also converts values to other types if specified.
|
31966
|
+
* @param message JettonTransfer
|
31967
|
+
* @param [options] Conversion options
|
31968
|
+
* @returns Plain object
|
31969
|
+
*/
|
31970
|
+
public static toObject(message: TW.TheOpenNetwork.Proto.JettonTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
31971
|
+
|
31972
|
+
/**
|
31973
|
+
* Converts this JettonTransfer to JSON.
|
31974
|
+
* @returns JSON object
|
31975
|
+
*/
|
31976
|
+
public toJSON(): { [k: string]: any };
|
31977
|
+
}
|
31978
|
+
|
31876
31979
|
/** Properties of a SigningInput. */
|
31877
31980
|
interface ISigningInput {
|
31878
31981
|
|
@@ -31881,6 +31984,9 @@ export namespace TW {
|
|
31881
31984
|
|
31882
31985
|
/** SigningInput transfer */
|
31883
31986
|
transfer?: (TW.TheOpenNetwork.Proto.ITransfer|null);
|
31987
|
+
|
31988
|
+
/** SigningInput jettonTransfer */
|
31989
|
+
jettonTransfer?: (TW.TheOpenNetwork.Proto.IJettonTransfer|null);
|
31884
31990
|
}
|
31885
31991
|
|
31886
31992
|
/** Represents a SigningInput. */
|
@@ -31898,8 +32004,11 @@ export namespace TW {
|
|
31898
32004
|
/** SigningInput transfer. */
|
31899
32005
|
public transfer?: (TW.TheOpenNetwork.Proto.ITransfer|null);
|
31900
32006
|
|
32007
|
+
/** SigningInput jettonTransfer. */
|
32008
|
+
public jettonTransfer?: (TW.TheOpenNetwork.Proto.IJettonTransfer|null);
|
32009
|
+
|
31901
32010
|
/** SigningInput actionOneof. */
|
31902
|
-
public actionOneof?: "transfer";
|
32011
|
+
public actionOneof?: ("transfer"|"jettonTransfer");
|
31903
32012
|
|
31904
32013
|
/**
|
31905
32014
|
* Creates a new SigningInput instance using the specified properties.
|
@@ -93871,6 +93871,322 @@
|
|
93871
93871
|
return Transfer;
|
93872
93872
|
})();
|
93873
93873
|
|
93874
|
+
Proto.JettonTransfer = (function() {
|
93875
|
+
|
93876
|
+
/**
|
93877
|
+
* Properties of a JettonTransfer.
|
93878
|
+
* @memberof TW.TheOpenNetwork.Proto
|
93879
|
+
* @interface IJettonTransfer
|
93880
|
+
* @property {TW.TheOpenNetwork.Proto.ITransfer|null} [transfer] JettonTransfer transfer
|
93881
|
+
* @property {Long|null} [queryId] JettonTransfer queryId
|
93882
|
+
* @property {Long|null} [jettonAmount] JettonTransfer jettonAmount
|
93883
|
+
* @property {string|null} [toOwner] JettonTransfer toOwner
|
93884
|
+
* @property {string|null} [responseAddress] JettonTransfer responseAddress
|
93885
|
+
* @property {Long|null} [forwardAmount] JettonTransfer forwardAmount
|
93886
|
+
*/
|
93887
|
+
|
93888
|
+
/**
|
93889
|
+
* Constructs a new JettonTransfer.
|
93890
|
+
* @memberof TW.TheOpenNetwork.Proto
|
93891
|
+
* @classdesc Represents a JettonTransfer.
|
93892
|
+
* @implements IJettonTransfer
|
93893
|
+
* @constructor
|
93894
|
+
* @param {TW.TheOpenNetwork.Proto.IJettonTransfer=} [properties] Properties to set
|
93895
|
+
*/
|
93896
|
+
function JettonTransfer(properties) {
|
93897
|
+
if (properties)
|
93898
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
93899
|
+
if (properties[keys[i]] != null)
|
93900
|
+
this[keys[i]] = properties[keys[i]];
|
93901
|
+
}
|
93902
|
+
|
93903
|
+
/**
|
93904
|
+
* JettonTransfer transfer.
|
93905
|
+
* @member {TW.TheOpenNetwork.Proto.ITransfer|null|undefined} transfer
|
93906
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
93907
|
+
* @instance
|
93908
|
+
*/
|
93909
|
+
JettonTransfer.prototype.transfer = null;
|
93910
|
+
|
93911
|
+
/**
|
93912
|
+
* JettonTransfer queryId.
|
93913
|
+
* @member {Long} queryId
|
93914
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
93915
|
+
* @instance
|
93916
|
+
*/
|
93917
|
+
JettonTransfer.prototype.queryId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
93918
|
+
|
93919
|
+
/**
|
93920
|
+
* JettonTransfer jettonAmount.
|
93921
|
+
* @member {Long} jettonAmount
|
93922
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
93923
|
+
* @instance
|
93924
|
+
*/
|
93925
|
+
JettonTransfer.prototype.jettonAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
93926
|
+
|
93927
|
+
/**
|
93928
|
+
* JettonTransfer toOwner.
|
93929
|
+
* @member {string} toOwner
|
93930
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
93931
|
+
* @instance
|
93932
|
+
*/
|
93933
|
+
JettonTransfer.prototype.toOwner = "";
|
93934
|
+
|
93935
|
+
/**
|
93936
|
+
* JettonTransfer responseAddress.
|
93937
|
+
* @member {string} responseAddress
|
93938
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
93939
|
+
* @instance
|
93940
|
+
*/
|
93941
|
+
JettonTransfer.prototype.responseAddress = "";
|
93942
|
+
|
93943
|
+
/**
|
93944
|
+
* JettonTransfer forwardAmount.
|
93945
|
+
* @member {Long} forwardAmount
|
93946
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
93947
|
+
* @instance
|
93948
|
+
*/
|
93949
|
+
JettonTransfer.prototype.forwardAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
93950
|
+
|
93951
|
+
/**
|
93952
|
+
* Creates a new JettonTransfer instance using the specified properties.
|
93953
|
+
* @function create
|
93954
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
93955
|
+
* @static
|
93956
|
+
* @param {TW.TheOpenNetwork.Proto.IJettonTransfer=} [properties] Properties to set
|
93957
|
+
* @returns {TW.TheOpenNetwork.Proto.JettonTransfer} JettonTransfer instance
|
93958
|
+
*/
|
93959
|
+
JettonTransfer.create = function create(properties) {
|
93960
|
+
return new JettonTransfer(properties);
|
93961
|
+
};
|
93962
|
+
|
93963
|
+
/**
|
93964
|
+
* Encodes the specified JettonTransfer message. Does not implicitly {@link TW.TheOpenNetwork.Proto.JettonTransfer.verify|verify} messages.
|
93965
|
+
* @function encode
|
93966
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
93967
|
+
* @static
|
93968
|
+
* @param {TW.TheOpenNetwork.Proto.IJettonTransfer} message JettonTransfer message or plain object to encode
|
93969
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
93970
|
+
* @returns {$protobuf.Writer} Writer
|
93971
|
+
*/
|
93972
|
+
JettonTransfer.encode = function encode(message, writer) {
|
93973
|
+
if (!writer)
|
93974
|
+
writer = $Writer.create();
|
93975
|
+
if (message.transfer != null && Object.hasOwnProperty.call(message, "transfer"))
|
93976
|
+
$root.TW.TheOpenNetwork.Proto.Transfer.encode(message.transfer, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
93977
|
+
if (message.queryId != null && Object.hasOwnProperty.call(message, "queryId"))
|
93978
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.queryId);
|
93979
|
+
if (message.jettonAmount != null && Object.hasOwnProperty.call(message, "jettonAmount"))
|
93980
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.jettonAmount);
|
93981
|
+
if (message.toOwner != null && Object.hasOwnProperty.call(message, "toOwner"))
|
93982
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.toOwner);
|
93983
|
+
if (message.responseAddress != null && Object.hasOwnProperty.call(message, "responseAddress"))
|
93984
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.responseAddress);
|
93985
|
+
if (message.forwardAmount != null && Object.hasOwnProperty.call(message, "forwardAmount"))
|
93986
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.forwardAmount);
|
93987
|
+
return writer;
|
93988
|
+
};
|
93989
|
+
|
93990
|
+
/**
|
93991
|
+
* Decodes a JettonTransfer message from the specified reader or buffer.
|
93992
|
+
* @function decode
|
93993
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
93994
|
+
* @static
|
93995
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
93996
|
+
* @param {number} [length] Message length if known beforehand
|
93997
|
+
* @returns {TW.TheOpenNetwork.Proto.JettonTransfer} JettonTransfer
|
93998
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
93999
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
94000
|
+
*/
|
94001
|
+
JettonTransfer.decode = function decode(reader, length) {
|
94002
|
+
if (!(reader instanceof $Reader))
|
94003
|
+
reader = $Reader.create(reader);
|
94004
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.TheOpenNetwork.Proto.JettonTransfer();
|
94005
|
+
while (reader.pos < end) {
|
94006
|
+
var tag = reader.uint32();
|
94007
|
+
switch (tag >>> 3) {
|
94008
|
+
case 1:
|
94009
|
+
message.transfer = $root.TW.TheOpenNetwork.Proto.Transfer.decode(reader, reader.uint32());
|
94010
|
+
break;
|
94011
|
+
case 2:
|
94012
|
+
message.queryId = reader.uint64();
|
94013
|
+
break;
|
94014
|
+
case 3:
|
94015
|
+
message.jettonAmount = reader.uint64();
|
94016
|
+
break;
|
94017
|
+
case 4:
|
94018
|
+
message.toOwner = reader.string();
|
94019
|
+
break;
|
94020
|
+
case 5:
|
94021
|
+
message.responseAddress = reader.string();
|
94022
|
+
break;
|
94023
|
+
case 6:
|
94024
|
+
message.forwardAmount = reader.uint64();
|
94025
|
+
break;
|
94026
|
+
default:
|
94027
|
+
reader.skipType(tag & 7);
|
94028
|
+
break;
|
94029
|
+
}
|
94030
|
+
}
|
94031
|
+
return message;
|
94032
|
+
};
|
94033
|
+
|
94034
|
+
/**
|
94035
|
+
* Verifies a JettonTransfer message.
|
94036
|
+
* @function verify
|
94037
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
94038
|
+
* @static
|
94039
|
+
* @param {Object.<string,*>} message Plain object to verify
|
94040
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
94041
|
+
*/
|
94042
|
+
JettonTransfer.verify = function verify(message) {
|
94043
|
+
if (typeof message !== "object" || message === null)
|
94044
|
+
return "object expected";
|
94045
|
+
if (message.transfer != null && message.hasOwnProperty("transfer")) {
|
94046
|
+
var error = $root.TW.TheOpenNetwork.Proto.Transfer.verify(message.transfer);
|
94047
|
+
if (error)
|
94048
|
+
return "transfer." + error;
|
94049
|
+
}
|
94050
|
+
if (message.queryId != null && message.hasOwnProperty("queryId"))
|
94051
|
+
if (!$util.isInteger(message.queryId) && !(message.queryId && $util.isInteger(message.queryId.low) && $util.isInteger(message.queryId.high)))
|
94052
|
+
return "queryId: integer|Long expected";
|
94053
|
+
if (message.jettonAmount != null && message.hasOwnProperty("jettonAmount"))
|
94054
|
+
if (!$util.isInteger(message.jettonAmount) && !(message.jettonAmount && $util.isInteger(message.jettonAmount.low) && $util.isInteger(message.jettonAmount.high)))
|
94055
|
+
return "jettonAmount: integer|Long expected";
|
94056
|
+
if (message.toOwner != null && message.hasOwnProperty("toOwner"))
|
94057
|
+
if (!$util.isString(message.toOwner))
|
94058
|
+
return "toOwner: string expected";
|
94059
|
+
if (message.responseAddress != null && message.hasOwnProperty("responseAddress"))
|
94060
|
+
if (!$util.isString(message.responseAddress))
|
94061
|
+
return "responseAddress: string expected";
|
94062
|
+
if (message.forwardAmount != null && message.hasOwnProperty("forwardAmount"))
|
94063
|
+
if (!$util.isInteger(message.forwardAmount) && !(message.forwardAmount && $util.isInteger(message.forwardAmount.low) && $util.isInteger(message.forwardAmount.high)))
|
94064
|
+
return "forwardAmount: integer|Long expected";
|
94065
|
+
return null;
|
94066
|
+
};
|
94067
|
+
|
94068
|
+
/**
|
94069
|
+
* Creates a JettonTransfer message from a plain object. Also converts values to their respective internal types.
|
94070
|
+
* @function fromObject
|
94071
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
94072
|
+
* @static
|
94073
|
+
* @param {Object.<string,*>} object Plain object
|
94074
|
+
* @returns {TW.TheOpenNetwork.Proto.JettonTransfer} JettonTransfer
|
94075
|
+
*/
|
94076
|
+
JettonTransfer.fromObject = function fromObject(object) {
|
94077
|
+
if (object instanceof $root.TW.TheOpenNetwork.Proto.JettonTransfer)
|
94078
|
+
return object;
|
94079
|
+
var message = new $root.TW.TheOpenNetwork.Proto.JettonTransfer();
|
94080
|
+
if (object.transfer != null) {
|
94081
|
+
if (typeof object.transfer !== "object")
|
94082
|
+
throw TypeError(".TW.TheOpenNetwork.Proto.JettonTransfer.transfer: object expected");
|
94083
|
+
message.transfer = $root.TW.TheOpenNetwork.Proto.Transfer.fromObject(object.transfer);
|
94084
|
+
}
|
94085
|
+
if (object.queryId != null)
|
94086
|
+
if ($util.Long)
|
94087
|
+
(message.queryId = $util.Long.fromValue(object.queryId)).unsigned = true;
|
94088
|
+
else if (typeof object.queryId === "string")
|
94089
|
+
message.queryId = parseInt(object.queryId, 10);
|
94090
|
+
else if (typeof object.queryId === "number")
|
94091
|
+
message.queryId = object.queryId;
|
94092
|
+
else if (typeof object.queryId === "object")
|
94093
|
+
message.queryId = new $util.LongBits(object.queryId.low >>> 0, object.queryId.high >>> 0).toNumber(true);
|
94094
|
+
if (object.jettonAmount != null)
|
94095
|
+
if ($util.Long)
|
94096
|
+
(message.jettonAmount = $util.Long.fromValue(object.jettonAmount)).unsigned = true;
|
94097
|
+
else if (typeof object.jettonAmount === "string")
|
94098
|
+
message.jettonAmount = parseInt(object.jettonAmount, 10);
|
94099
|
+
else if (typeof object.jettonAmount === "number")
|
94100
|
+
message.jettonAmount = object.jettonAmount;
|
94101
|
+
else if (typeof object.jettonAmount === "object")
|
94102
|
+
message.jettonAmount = new $util.LongBits(object.jettonAmount.low >>> 0, object.jettonAmount.high >>> 0).toNumber(true);
|
94103
|
+
if (object.toOwner != null)
|
94104
|
+
message.toOwner = String(object.toOwner);
|
94105
|
+
if (object.responseAddress != null)
|
94106
|
+
message.responseAddress = String(object.responseAddress);
|
94107
|
+
if (object.forwardAmount != null)
|
94108
|
+
if ($util.Long)
|
94109
|
+
(message.forwardAmount = $util.Long.fromValue(object.forwardAmount)).unsigned = true;
|
94110
|
+
else if (typeof object.forwardAmount === "string")
|
94111
|
+
message.forwardAmount = parseInt(object.forwardAmount, 10);
|
94112
|
+
else if (typeof object.forwardAmount === "number")
|
94113
|
+
message.forwardAmount = object.forwardAmount;
|
94114
|
+
else if (typeof object.forwardAmount === "object")
|
94115
|
+
message.forwardAmount = new $util.LongBits(object.forwardAmount.low >>> 0, object.forwardAmount.high >>> 0).toNumber(true);
|
94116
|
+
return message;
|
94117
|
+
};
|
94118
|
+
|
94119
|
+
/**
|
94120
|
+
* Creates a plain object from a JettonTransfer message. Also converts values to other types if specified.
|
94121
|
+
* @function toObject
|
94122
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
94123
|
+
* @static
|
94124
|
+
* @param {TW.TheOpenNetwork.Proto.JettonTransfer} message JettonTransfer
|
94125
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
94126
|
+
* @returns {Object.<string,*>} Plain object
|
94127
|
+
*/
|
94128
|
+
JettonTransfer.toObject = function toObject(message, options) {
|
94129
|
+
if (!options)
|
94130
|
+
options = {};
|
94131
|
+
var object = {};
|
94132
|
+
if (options.defaults) {
|
94133
|
+
object.transfer = null;
|
94134
|
+
if ($util.Long) {
|
94135
|
+
var long = new $util.Long(0, 0, true);
|
94136
|
+
object.queryId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
94137
|
+
} else
|
94138
|
+
object.queryId = options.longs === String ? "0" : 0;
|
94139
|
+
if ($util.Long) {
|
94140
|
+
var long = new $util.Long(0, 0, true);
|
94141
|
+
object.jettonAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
94142
|
+
} else
|
94143
|
+
object.jettonAmount = options.longs === String ? "0" : 0;
|
94144
|
+
object.toOwner = "";
|
94145
|
+
object.responseAddress = "";
|
94146
|
+
if ($util.Long) {
|
94147
|
+
var long = new $util.Long(0, 0, true);
|
94148
|
+
object.forwardAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
94149
|
+
} else
|
94150
|
+
object.forwardAmount = options.longs === String ? "0" : 0;
|
94151
|
+
}
|
94152
|
+
if (message.transfer != null && message.hasOwnProperty("transfer"))
|
94153
|
+
object.transfer = $root.TW.TheOpenNetwork.Proto.Transfer.toObject(message.transfer, options);
|
94154
|
+
if (message.queryId != null && message.hasOwnProperty("queryId"))
|
94155
|
+
if (typeof message.queryId === "number")
|
94156
|
+
object.queryId = options.longs === String ? String(message.queryId) : message.queryId;
|
94157
|
+
else
|
94158
|
+
object.queryId = options.longs === String ? $util.Long.prototype.toString.call(message.queryId) : options.longs === Number ? new $util.LongBits(message.queryId.low >>> 0, message.queryId.high >>> 0).toNumber(true) : message.queryId;
|
94159
|
+
if (message.jettonAmount != null && message.hasOwnProperty("jettonAmount"))
|
94160
|
+
if (typeof message.jettonAmount === "number")
|
94161
|
+
object.jettonAmount = options.longs === String ? String(message.jettonAmount) : message.jettonAmount;
|
94162
|
+
else
|
94163
|
+
object.jettonAmount = options.longs === String ? $util.Long.prototype.toString.call(message.jettonAmount) : options.longs === Number ? new $util.LongBits(message.jettonAmount.low >>> 0, message.jettonAmount.high >>> 0).toNumber(true) : message.jettonAmount;
|
94164
|
+
if (message.toOwner != null && message.hasOwnProperty("toOwner"))
|
94165
|
+
object.toOwner = message.toOwner;
|
94166
|
+
if (message.responseAddress != null && message.hasOwnProperty("responseAddress"))
|
94167
|
+
object.responseAddress = message.responseAddress;
|
94168
|
+
if (message.forwardAmount != null && message.hasOwnProperty("forwardAmount"))
|
94169
|
+
if (typeof message.forwardAmount === "number")
|
94170
|
+
object.forwardAmount = options.longs === String ? String(message.forwardAmount) : message.forwardAmount;
|
94171
|
+
else
|
94172
|
+
object.forwardAmount = options.longs === String ? $util.Long.prototype.toString.call(message.forwardAmount) : options.longs === Number ? new $util.LongBits(message.forwardAmount.low >>> 0, message.forwardAmount.high >>> 0).toNumber(true) : message.forwardAmount;
|
94173
|
+
return object;
|
94174
|
+
};
|
94175
|
+
|
94176
|
+
/**
|
94177
|
+
* Converts this JettonTransfer to JSON.
|
94178
|
+
* @function toJSON
|
94179
|
+
* @memberof TW.TheOpenNetwork.Proto.JettonTransfer
|
94180
|
+
* @instance
|
94181
|
+
* @returns {Object.<string,*>} JSON object
|
94182
|
+
*/
|
94183
|
+
JettonTransfer.prototype.toJSON = function toJSON() {
|
94184
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
94185
|
+
};
|
94186
|
+
|
94187
|
+
return JettonTransfer;
|
94188
|
+
})();
|
94189
|
+
|
93874
94190
|
Proto.SigningInput = (function() {
|
93875
94191
|
|
93876
94192
|
/**
|
@@ -93879,6 +94195,7 @@
|
|
93879
94195
|
* @interface ISigningInput
|
93880
94196
|
* @property {Uint8Array|null} [privateKey] SigningInput privateKey
|
93881
94197
|
* @property {TW.TheOpenNetwork.Proto.ITransfer|null} [transfer] SigningInput transfer
|
94198
|
+
* @property {TW.TheOpenNetwork.Proto.IJettonTransfer|null} [jettonTransfer] SigningInput jettonTransfer
|
93882
94199
|
*/
|
93883
94200
|
|
93884
94201
|
/**
|
@@ -93912,17 +94229,25 @@
|
|
93912
94229
|
*/
|
93913
94230
|
SigningInput.prototype.transfer = null;
|
93914
94231
|
|
94232
|
+
/**
|
94233
|
+
* SigningInput jettonTransfer.
|
94234
|
+
* @member {TW.TheOpenNetwork.Proto.IJettonTransfer|null|undefined} jettonTransfer
|
94235
|
+
* @memberof TW.TheOpenNetwork.Proto.SigningInput
|
94236
|
+
* @instance
|
94237
|
+
*/
|
94238
|
+
SigningInput.prototype.jettonTransfer = null;
|
94239
|
+
|
93915
94240
|
// OneOf field names bound to virtual getters and setters
|
93916
94241
|
var $oneOfFields;
|
93917
94242
|
|
93918
94243
|
/**
|
93919
94244
|
* SigningInput actionOneof.
|
93920
|
-
* @member {"transfer"|undefined} actionOneof
|
94245
|
+
* @member {"transfer"|"jettonTransfer"|undefined} actionOneof
|
93921
94246
|
* @memberof TW.TheOpenNetwork.Proto.SigningInput
|
93922
94247
|
* @instance
|
93923
94248
|
*/
|
93924
94249
|
Object.defineProperty(SigningInput.prototype, "actionOneof", {
|
93925
|
-
get: $util.oneOfGetter($oneOfFields = ["transfer"]),
|
94250
|
+
get: $util.oneOfGetter($oneOfFields = ["transfer", "jettonTransfer"]),
|
93926
94251
|
set: $util.oneOfSetter($oneOfFields)
|
93927
94252
|
});
|
93928
94253
|
|
@@ -93954,6 +94279,8 @@
|
|
93954
94279
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.privateKey);
|
93955
94280
|
if (message.transfer != null && Object.hasOwnProperty.call(message, "transfer"))
|
93956
94281
|
$root.TW.TheOpenNetwork.Proto.Transfer.encode(message.transfer, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
94282
|
+
if (message.jettonTransfer != null && Object.hasOwnProperty.call(message, "jettonTransfer"))
|
94283
|
+
$root.TW.TheOpenNetwork.Proto.JettonTransfer.encode(message.jettonTransfer, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
93957
94284
|
return writer;
|
93958
94285
|
};
|
93959
94286
|
|
@@ -93981,6 +94308,9 @@
|
|
93981
94308
|
case 2:
|
93982
94309
|
message.transfer = $root.TW.TheOpenNetwork.Proto.Transfer.decode(reader, reader.uint32());
|
93983
94310
|
break;
|
94311
|
+
case 3:
|
94312
|
+
message.jettonTransfer = $root.TW.TheOpenNetwork.Proto.JettonTransfer.decode(reader, reader.uint32());
|
94313
|
+
break;
|
93984
94314
|
default:
|
93985
94315
|
reader.skipType(tag & 7);
|
93986
94316
|
break;
|
@@ -94012,6 +94342,16 @@
|
|
94012
94342
|
return "transfer." + error;
|
94013
94343
|
}
|
94014
94344
|
}
|
94345
|
+
if (message.jettonTransfer != null && message.hasOwnProperty("jettonTransfer")) {
|
94346
|
+
if (properties.actionOneof === 1)
|
94347
|
+
return "actionOneof: multiple values";
|
94348
|
+
properties.actionOneof = 1;
|
94349
|
+
{
|
94350
|
+
var error = $root.TW.TheOpenNetwork.Proto.JettonTransfer.verify(message.jettonTransfer);
|
94351
|
+
if (error)
|
94352
|
+
return "jettonTransfer." + error;
|
94353
|
+
}
|
94354
|
+
}
|
94015
94355
|
return null;
|
94016
94356
|
};
|
94017
94357
|
|
@@ -94037,6 +94377,11 @@
|
|
94037
94377
|
throw TypeError(".TW.TheOpenNetwork.Proto.SigningInput.transfer: object expected");
|
94038
94378
|
message.transfer = $root.TW.TheOpenNetwork.Proto.Transfer.fromObject(object.transfer);
|
94039
94379
|
}
|
94380
|
+
if (object.jettonTransfer != null) {
|
94381
|
+
if (typeof object.jettonTransfer !== "object")
|
94382
|
+
throw TypeError(".TW.TheOpenNetwork.Proto.SigningInput.jettonTransfer: object expected");
|
94383
|
+
message.jettonTransfer = $root.TW.TheOpenNetwork.Proto.JettonTransfer.fromObject(object.jettonTransfer);
|
94384
|
+
}
|
94040
94385
|
return message;
|
94041
94386
|
};
|
94042
94387
|
|
@@ -94068,6 +94413,11 @@
|
|
94068
94413
|
if (options.oneofs)
|
94069
94414
|
object.actionOneof = "transfer";
|
94070
94415
|
}
|
94416
|
+
if (message.jettonTransfer != null && message.hasOwnProperty("jettonTransfer")) {
|
94417
|
+
object.jettonTransfer = $root.TW.TheOpenNetwork.Proto.JettonTransfer.toObject(message.jettonTransfer, options);
|
94418
|
+
if (options.oneofs)
|
94419
|
+
object.actionOneof = "jettonTransfer";
|
94420
|
+
}
|
94071
94421
|
return object;
|
94072
94422
|
};
|
94073
94423
|
|
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){n(b)}}
|
36
36
|
function Ya(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(G))return fetch(G,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+G+"'";return a.arrayBuffer()}).catch(function(){return Xa()});if(ja)return new Promise(function(a,b){ja(G,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Xa()})}
|
37
|
-
var Za,$a,ab={
|
37
|
+
var Za,$a,ab={1790292:()=>{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";}}},1791014:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
|
38
38
|
function va(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function pa(a){cb||(cb={});cb[a]||(cb[a]=1,v&&(a="warning: "+a),y(a))}var cb,db=0;
|
39
39
|
function eb(a){this.l=a-24;this.Ta=function(b){F[this.l+4>>2]=b};this.Da=function(){return F[this.l+4>>2]};this.Ja=function(b){F[this.l+8>>2]=b};this.Ka=function(){E[this.l>>2]=0};this.Ia=function(){C[this.l+12>>0]=0};this.Na=function(){C[this.l+13>>0]=0};this.Ea=function(b,c){this.F(0);this.Ta(b);this.Ja(c);this.Ka();this.Ia();this.Na()};this.F=function(b){F[this.l+16>>2]=b}}
|
40
40
|
var fb=0,gb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},hb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=gb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},ib=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},jb=
|
@@ -119,7 +119,7 @@ oc=g.InternalError=mc("InternalError");S.prototype.isAliasOf=function(a){if(!(th
|
|
119
119
|
S.prototype.clone=function(){this.g.l||rc(this);if(this.g.U)return this.g.count.value+=1,this;var a=Dc,b=Object,c=b.create,d=Object.getPrototypeOf(this),e=this.g;a=a(c.call(b,d,{g:{value:{count:e.count,R:e.R,U:e.U,l:e.l,o:e.o,v:e.v,A:e.A}}}));a.g.count.value+=1;a.g.R=!1;return a};S.prototype["delete"]=function(){this.g.l||rc(this);this.g.R&&!this.g.U&&Q("Object already scheduled for deletion");tc(this);uc(this.g);this.g.U||(this.g.v=void 0,this.g.l=void 0)};S.prototype.isDeleted=function(){return!this.g.l};
|
120
120
|
S.prototype.deleteLater=function(){this.g.l||rc(this);this.g.R&&!this.g.U&&Q("Object already scheduled for deletion");xc.push(this);1===xc.length&&zc&&zc(yc);this.g.R=!0;return this};g.getInheritedInstanceCount=function(){return Object.keys(Ac).length};g.getLiveInheritedInstances=function(){var a=[],b;for(b in Ac)Ac.hasOwnProperty(b)&&a.push(Ac[b]);return a};g.flushPendingDeletes=yc;g.setDelayFunction=function(a){zc=a;xc.length&&zc&&zc(yc)};T.prototype.Ca=function(a){this.va&&(a=this.va(a));return a};
|
121
121
|
T.prototype.na=function(a){this.M&&this.M(a)};T.prototype.argPackAdvance=8;T.prototype.readValueFromPointer=Oc;T.prototype.deleteObject=function(a){if(null!==a)a["delete"]()};T.prototype.fromWireType=Ec;Tc=g.UnboundTypeError=mc("UnboundTypeError");g.count_emval_handles=function(){for(var a=0,b=5;b<W.length;++b)void 0!==W[b]&&++a;return a};g.get_first_emval=function(){for(var a=5;a<W.length;++a)if(void 0!==W[a])return W[a];return null};
|
122
|
-
var
|
122
|
+
var je={__assert_fail:function(a,b,c,d){n("Assertion failed: "+wa(a)+", at: "+[b?wa(b):"unknown filename",c,d?wa(d):"unknown function"])},__cxa_find_matching_catch_2:function(){var a=db;if(!a)return Nd(0),0;var b=new eb(a);b.F(a);var c=b.Da();if(!c)return Nd(0),a;for(var d=0;d<arguments.length;d++){var e=arguments[d];if(0===e||e===c)break;if(Od(e,c,b.l+16))return Nd(e),a}Nd(c);return a},__cxa_throw:function(a,b,c){(new eb(a)).Ea(b,c);db=a;fb++;throw a+" - Exception catching is disabled, this exception cannot be caught. Compile with -sNO_DISABLE_EXCEPTION_CATCHING or -sEXCEPTION_CATCHING_ALLOWED=[..] to catch.";
|
123
123
|
},__resumeException:function(a){db||(db=a);throw a+" - Exception catching is disabled, this exception cannot be caught. Compile with -sNO_DISABLE_EXCEPTION_CATCHING or -sEXCEPTION_CATCHING_ALLOWED=[..] to catch.";},__syscall_fcntl64:function(a,b,c){dc=c;try{var d=N(a);switch(b){case 0:var e=ec();return 0>e?-28:Sb(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=ec(),d.flags|=e,0;case 5:return e=ec(),D[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return E[Pd()>>
|
124
124
|
2]=28,-1;default:return-28}}catch(f){if("undefined"==typeof L||!(f instanceof I))throw f;return-f.D}},__syscall_getcwd:function(a,b){try{if(0===b)return-28;var c=za("/")+1;if(b<c)return-68;ya("/",a,b);return c}catch(d){if("undefined"==typeof L||!(d instanceof I))throw d;return-d.D}},__syscall_ioctl:function(a,b,c){dc=c;try{var d=N(a);switch(b){case 21509:case 21505:return d.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return d.tty?0:-59;case 21519:if(!d.tty)return-59;
|
125
125
|
var e=ec();return E[e>>2]=0;case 21520:return d.tty?-28:-59;case 21531:a=e=ec();if(!d.h.Ga)throw new I(59);return d.h.Ga(d,b,a);case 21523:return d.tty?0:-59;case 21524:return d.tty?0:-59;default:return-28}}catch(f){if("undefined"==typeof L||!(f instanceof I))throw f;return-f.D}},__syscall_openat:function(a,b,c,d){dc=d;try{b=wa(b);var e=b;if("/"===e.charAt(0))b=e;else{var f=-100===a?"/":N(a).path;if(0==e.length)throw new I(44);b=hb(f+"/"+e)}var h=d?ec():0;return Xb(b,c,h).fd}catch(l){if("undefined"==
|
@@ -146,27 +146,28 @@ 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],p=F[a+4>>2];a+=8;var m=e,q=l,t=p,u=f,k=C;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 B=x;if(0>B){var P=-1;break a}b+=B;if(B<p)break;"undefined"!==typeof f&&(f+=B)}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)];E[e>>2]=$a[0];E[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],p=F[a+4>>2];a+=8;var m=e,q=l,t=p,u=f,k=C;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 B=
|
149
|
-
x;if(0>B){var P=-1;break a}b+=B;"undefined"!==typeof f&&(f+=B)}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_iii:Sd,invoke_iiii:Td,invoke_iiiii:Ud,invoke_iiiiii:Vd,invoke_jii:Wd,
|
150
|
-
|
151
|
-
|
149
|
+
x;if(0>B){var P=-1;break a}b+=B;"undefined"!==typeof f&&(f+=B)}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_iii:Sd,invoke_iiii:Td,invoke_iiiii:Ud,invoke_iiiiii:Vd,invoke_jii:Wd,invoke_jj:Xd,invoke_v:Yd,invoke_vi:Zd,invoke_vii:$d,invoke_viii:ae,invoke_viiii:be,invoke_viiiii:ce,invoke_viiiiii:de,invoke_viiiiiii:ee,invoke_viiiiiji:fe,invoke_viiji:ge,invoke_vij:he,invoke_viji:ie,strftime_l:function(a,b,c,
|
150
|
+
d){return Kd(a,b,c,d)}};
|
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?");e=
|
152
|
+
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");n(h)})}var d={env:je,wasi_snapshot_preview1:je};Ua();var e=g;if(g.instantiateWasm)try{return g.instantiateWasm(d,
|
152
153
|
a)}catch(f){y("Module.instantiateWasm callback failed with error: "+f),ba(f)}(function(){return qa||"function"!=typeof WebAssembly.instantiateStreaming||Va()||ma(G)||v||"function"!=typeof fetch?c(b):fetch(G,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(b,function(h){y("wasm streaming compile failed: "+h);y("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ba);return{}})();g.___wasm_call_ctors=H("__wasm_call_ctors");
|
153
154
|
var zd=g._malloc=H("malloc"),Pd=g.___errno_location=H("__errno_location"),V=g._free=H("free");g._fflush=H("fflush");var Vc=g.___getTypeName=H("__getTypeName");g.__embind_initialize_bindings=H("_embind_initialize_bindings");g._htonl=H("htonl");g._htons=H("htons");var xb=g._emscripten_builtin_memalign=H("emscripten_builtin_memalign");g._ntohs=H("ntohs");
|
154
|
-
var X=g._setThrew=H("setThrew"),Nd=g.setTempRet0=H("setTempRet0"),
|
155
|
+
var X=g._setThrew=H("setThrew"),Nd=g.setTempRet0=H("setTempRet0"),ke=g._emscripten_stack_init=function(){return(ke=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)};
|
155
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");
|
156
|
-
g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiij=H("dynCall_iiiij");var
|
157
|
-
g.
|
158
|
-
function
|
159
|
-
function
|
160
|
-
function
|
161
|
-
function
|
157
|
+
g.dynCall_jiij=H("dynCall_jiij");g.dynCall_jij=H("dynCall_jij");g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiij=H("dynCall_iiiij");var le=g.dynCall_jii=H("dynCall_jii");g.dynCall_ji=H("dynCall_ji");g.dynCall_iiji=H("dynCall_iiji");g.dynCall_iiiji=H("dynCall_iiiji");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_viijii=H("dynCall_viijii");g.dynCall_viiiijijji=H("dynCall_viiiijijji");
|
158
|
+
g.dynCall_iij=H("dynCall_iij");var me=g.dynCall_vij=H("dynCall_vij"),ne=g.dynCall_viiji=H("dynCall_viiji"),oe=g.dynCall_viji=H("dynCall_viji"),pe=g.dynCall_viiiiiji=H("dynCall_viiiiiji"),qe=g.dynCall_jj=H("dynCall_jj");g.dynCall_jiji=H("dynCall_jiji");g.dynCall_iiiiijj=H("dynCall_iiiiijj");g.dynCall_iiiiiijj=H("dynCall_iiiiiijj");function ae(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)}}
|
159
|
+
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 ce(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 $d(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 Zd(a,b){var c=Y();try{U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function be(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)}}
|
160
|
+
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 Yd(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function de(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(p){Z(l);if(p!==p+0)throw p;X(1,0)}}function Td(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)}}function Ud(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)}}
|
161
|
+
function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function ee(a,b,c,d,e,f,h,l){var p=Y();try{U(a)(b,c,d,e,f,h,l)}catch(m){Z(p);if(m!==m+0)throw m;X(1,0)}}function Vd(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 ge(a,b,c,d,e,f){var h=Y();try{ne(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function ie(a,b,c,d,e){var f=Y();try{oe(a,b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}
|
162
|
+
function Xd(a,b,c){var d=Y();try{return qe(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function he(a,b,c,d){var e=Y();try{me(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function fe(a,b,c,d,e,f,h,l,p){var m=Y();try{pe(a,b,c,d,e,f,h,l,p)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function Wd(a,b,c){var d=Y();try{return le(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
162
163
|
"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)||
|
163
164
|
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");n(b)}})});
|
164
165
|
"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||
|
165
|
-
Object.getOwnPropertyDescriptor(globalThis,a)||Object.defineProperty(globalThis,a,{configurable:!0,get:function(){var b="`"+a+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",c=a;c.startsWith("_")||(c="$"+a);b+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE="+c+")";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");pa(b)}})});var
|
166
|
-
Sa=function
|
167
|
-
function
|
166
|
+
Object.getOwnPropertyDescriptor(globalThis,a)||Object.defineProperty(globalThis,a,{configurable:!0,get:function(){var b="`"+a+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",c=a;c.startsWith("_")||(c="$"+a);b+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE="+c+")";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");pa(b)}})});var re;
|
167
|
+
Sa=function se(){re||te();re||(Sa=se)};
|
168
|
+
function te(){function a(){if(!re&&(re=!0,g.calledRun=!0,!sa)){assert(!Oa);Oa=!0;Ia();if(!g.noFSInit&&!$b){assert(!$b,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)");$b=!0;Zb();g.stdin=g.stdin;g.stdout=g.stdout;g.stderr=g.stderr;g.stdin?cc("stdin",g.stdin):Vb("/dev/tty","/dev/stdin");g.stdout?cc("stdout",null,g.stdout):Vb("/dev/tty","/dev/stdout");g.stderr?cc("stderr",null,
|
168
169
|
g.stderr):Vb("/dev/tty1","/dev/stderr");var b=Xb("/dev/stdin",0),c=Xb("/dev/stdout",1),d=Xb("/dev/stderr",1);assert(0===b.fd,"invalid handle for stdin ("+b.fd+")");assert(1===c.fd,"invalid handle for stdout ("+c.fd+")");assert(2===d.fd,"invalid handle for stderr ("+d.fd+")")}Gb=!1;bb(Ma);aa(g);if(g.onRuntimeInitialized)g.onRuntimeInitialized();assert(!g._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]');Ia();if(g.postRun)for("function"==
|
169
|
-
typeof g.postRun&&(g.postRun=[g.postRun]);g.postRun.length;)b=g.postRun.shift(),Na.unshift(b);bb(Na)}}if(!(0<Qa)){
|
170
|
+
typeof g.postRun&&(g.postRun=[g.postRun]);g.postRun.length;)b=g.postRun.shift(),Na.unshift(b);bb(Na)}}if(!(0<Qa)){ke();Ga();if(g.preRun)for("function"==typeof g.preRun&&(g.preRun=[g.preRun]);g.preRun.length;)Pa();bb(La);0<Qa||(g.setStatus?(g.setStatus("Running..."),setTimeout(function(){setTimeout(function(){g.setStatus("")},1);a()},1)):a(),Ia())}}if(g.preInit)for("function"==typeof g.preInit&&(g.preInit=[g.preInit]);0<g.preInit.length;)g.preInit.pop()();te();
|
170
171
|
|
171
172
|
|
172
173
|
return Module.ready
|
Binary file
|
@@ -128,6 +128,9 @@ export class BitcoinAddress {
|
|
128
128
|
keyhash(): Uint8Array;
|
129
129
|
delete(): void;
|
130
130
|
}
|
131
|
+
export class BitcoinFee {
|
132
|
+
static calculateFee(data: Uint8Array | Buffer, satVb: number): number;
|
133
|
+
}
|
131
134
|
export class BitcoinMessageSigner {
|
132
135
|
static signMessage(privateKey: PrivateKey, address: string, message: string): string;
|
133
136
|
static verifyMessage(address: string, message: string, signature: string): boolean;
|
@@ -370,6 +373,8 @@ export class CoinType {
|
|
370
373
|
static acala: CoinType;
|
371
374
|
static acalaEVM: CoinType;
|
372
375
|
static opBNBtestnet: CoinType;
|
376
|
+
static neon: CoinType;
|
377
|
+
static base: CoinType;
|
373
378
|
}
|
374
379
|
export class CoinTypeConfiguration {
|
375
380
|
static getSymbol(type: CoinType): string;
|
@@ -515,6 +520,7 @@ export class EthereumChainID {
|
|
515
520
|
static cfxevm: EthereumChainID;
|
516
521
|
static opbnb: EthereumChainID;
|
517
522
|
static gochain: EthereumChainID;
|
523
|
+
static base: EthereumChainID;
|
518
524
|
static meter: EthereumChainID;
|
519
525
|
static celo: EthereumChainID;
|
520
526
|
static scroll: EthereumChainID;
|
@@ -541,6 +547,7 @@ export class EthereumChainID {
|
|
541
547
|
static evmos: EthereumChainID;
|
542
548
|
static arbitrum: EthereumChainID;
|
543
549
|
static smartchain: EthereumChainID;
|
550
|
+
static neon: EthereumChainID;
|
544
551
|
static aurora: EthereumChainID;
|
545
552
|
}
|
546
553
|
export class EthereumMessageSigner {
|
@@ -938,6 +945,7 @@ export interface WalletCore {
|
|
938
945
|
Base58: typeof Base58;
|
939
946
|
Base64: typeof Base64;
|
940
947
|
BitcoinAddress: typeof BitcoinAddress;
|
948
|
+
BitcoinFee: typeof BitcoinFee;
|
941
949
|
BitcoinMessageSigner: typeof BitcoinMessageSigner;
|
942
950
|
BitcoinScript: typeof BitcoinScript;
|
943
951
|
BitcoinSigHashType: typeof BitcoinSigHashType;
|