@trustwallet/wallet-core 4.6.7 → 4.6.9

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.
@@ -12689,1180 +12689,6 @@
12689
12689
  return SendOrder;
12690
12690
  })();
12691
12691
 
12692
- Proto.TokenIssueOrder = (function() {
12693
-
12694
- /**
12695
- * Properties of a TokenIssueOrder.
12696
- * @memberof TW.Binance.Proto
12697
- * @interface ITokenIssueOrder
12698
- * @property {Uint8Array|null} [from] TokenIssueOrder from
12699
- * @property {string|null} [name] TokenIssueOrder name
12700
- * @property {string|null} [symbol] TokenIssueOrder symbol
12701
- * @property {Long|null} [totalSupply] TokenIssueOrder totalSupply
12702
- * @property {boolean|null} [mintable] TokenIssueOrder mintable
12703
- */
12704
-
12705
- /**
12706
- * Constructs a new TokenIssueOrder.
12707
- * @memberof TW.Binance.Proto
12708
- * @classdesc Represents a TokenIssueOrder.
12709
- * @implements ITokenIssueOrder
12710
- * @constructor
12711
- * @param {TW.Binance.Proto.ITokenIssueOrder=} [properties] Properties to set
12712
- */
12713
- function TokenIssueOrder(properties) {
12714
- if (properties)
12715
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12716
- if (properties[keys[i]] != null)
12717
- this[keys[i]] = properties[keys[i]];
12718
- }
12719
-
12720
- /**
12721
- * TokenIssueOrder from.
12722
- * @member {Uint8Array} from
12723
- * @memberof TW.Binance.Proto.TokenIssueOrder
12724
- * @instance
12725
- */
12726
- TokenIssueOrder.prototype.from = $util.newBuffer([]);
12727
-
12728
- /**
12729
- * TokenIssueOrder name.
12730
- * @member {string} name
12731
- * @memberof TW.Binance.Proto.TokenIssueOrder
12732
- * @instance
12733
- */
12734
- TokenIssueOrder.prototype.name = "";
12735
-
12736
- /**
12737
- * TokenIssueOrder symbol.
12738
- * @member {string} symbol
12739
- * @memberof TW.Binance.Proto.TokenIssueOrder
12740
- * @instance
12741
- */
12742
- TokenIssueOrder.prototype.symbol = "";
12743
-
12744
- /**
12745
- * TokenIssueOrder totalSupply.
12746
- * @member {Long} totalSupply
12747
- * @memberof TW.Binance.Proto.TokenIssueOrder
12748
- * @instance
12749
- */
12750
- TokenIssueOrder.prototype.totalSupply = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
12751
-
12752
- /**
12753
- * TokenIssueOrder mintable.
12754
- * @member {boolean} mintable
12755
- * @memberof TW.Binance.Proto.TokenIssueOrder
12756
- * @instance
12757
- */
12758
- TokenIssueOrder.prototype.mintable = false;
12759
-
12760
- /**
12761
- * Creates a new TokenIssueOrder instance using the specified properties.
12762
- * @function create
12763
- * @memberof TW.Binance.Proto.TokenIssueOrder
12764
- * @static
12765
- * @param {TW.Binance.Proto.ITokenIssueOrder=} [properties] Properties to set
12766
- * @returns {TW.Binance.Proto.TokenIssueOrder} TokenIssueOrder instance
12767
- */
12768
- TokenIssueOrder.create = function create(properties) {
12769
- return new TokenIssueOrder(properties);
12770
- };
12771
-
12772
- /**
12773
- * Encodes the specified TokenIssueOrder message. Does not implicitly {@link TW.Binance.Proto.TokenIssueOrder.verify|verify} messages.
12774
- * @function encode
12775
- * @memberof TW.Binance.Proto.TokenIssueOrder
12776
- * @static
12777
- * @param {TW.Binance.Proto.ITokenIssueOrder} message TokenIssueOrder message or plain object to encode
12778
- * @param {$protobuf.Writer} [writer] Writer to encode to
12779
- * @returns {$protobuf.Writer} Writer
12780
- */
12781
- TokenIssueOrder.encode = function encode(message, writer) {
12782
- if (!writer)
12783
- writer = $Writer.create();
12784
- if (message.from != null && Object.hasOwnProperty.call(message, "from"))
12785
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.from);
12786
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
12787
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
12788
- if (message.symbol != null && Object.hasOwnProperty.call(message, "symbol"))
12789
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.symbol);
12790
- if (message.totalSupply != null && Object.hasOwnProperty.call(message, "totalSupply"))
12791
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.totalSupply);
12792
- if (message.mintable != null && Object.hasOwnProperty.call(message, "mintable"))
12793
- writer.uint32(/* id 5, wireType 0 =*/40).bool(message.mintable);
12794
- return writer;
12795
- };
12796
-
12797
- /**
12798
- * Decodes a TokenIssueOrder message from the specified reader or buffer.
12799
- * @function decode
12800
- * @memberof TW.Binance.Proto.TokenIssueOrder
12801
- * @static
12802
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12803
- * @param {number} [length] Message length if known beforehand
12804
- * @returns {TW.Binance.Proto.TokenIssueOrder} TokenIssueOrder
12805
- * @throws {Error} If the payload is not a reader or valid buffer
12806
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
12807
- */
12808
- TokenIssueOrder.decode = function decode(reader, length) {
12809
- if (!(reader instanceof $Reader))
12810
- reader = $Reader.create(reader);
12811
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Binance.Proto.TokenIssueOrder();
12812
- while (reader.pos < end) {
12813
- var tag = reader.uint32();
12814
- switch (tag >>> 3) {
12815
- case 1:
12816
- message.from = reader.bytes();
12817
- break;
12818
- case 2:
12819
- message.name = reader.string();
12820
- break;
12821
- case 3:
12822
- message.symbol = reader.string();
12823
- break;
12824
- case 4:
12825
- message.totalSupply = reader.int64();
12826
- break;
12827
- case 5:
12828
- message.mintable = reader.bool();
12829
- break;
12830
- default:
12831
- reader.skipType(tag & 7);
12832
- break;
12833
- }
12834
- }
12835
- return message;
12836
- };
12837
-
12838
- /**
12839
- * Verifies a TokenIssueOrder message.
12840
- * @function verify
12841
- * @memberof TW.Binance.Proto.TokenIssueOrder
12842
- * @static
12843
- * @param {Object.<string,*>} message Plain object to verify
12844
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
12845
- */
12846
- TokenIssueOrder.verify = function verify(message) {
12847
- if (typeof message !== "object" || message === null)
12848
- return "object expected";
12849
- if (message.from != null && message.hasOwnProperty("from"))
12850
- if (!(message.from && typeof message.from.length === "number" || $util.isString(message.from)))
12851
- return "from: buffer expected";
12852
- if (message.name != null && message.hasOwnProperty("name"))
12853
- if (!$util.isString(message.name))
12854
- return "name: string expected";
12855
- if (message.symbol != null && message.hasOwnProperty("symbol"))
12856
- if (!$util.isString(message.symbol))
12857
- return "symbol: string expected";
12858
- if (message.totalSupply != null && message.hasOwnProperty("totalSupply"))
12859
- if (!$util.isInteger(message.totalSupply) && !(message.totalSupply && $util.isInteger(message.totalSupply.low) && $util.isInteger(message.totalSupply.high)))
12860
- return "totalSupply: integer|Long expected";
12861
- if (message.mintable != null && message.hasOwnProperty("mintable"))
12862
- if (typeof message.mintable !== "boolean")
12863
- return "mintable: boolean expected";
12864
- return null;
12865
- };
12866
-
12867
- /**
12868
- * Creates a TokenIssueOrder message from a plain object. Also converts values to their respective internal types.
12869
- * @function fromObject
12870
- * @memberof TW.Binance.Proto.TokenIssueOrder
12871
- * @static
12872
- * @param {Object.<string,*>} object Plain object
12873
- * @returns {TW.Binance.Proto.TokenIssueOrder} TokenIssueOrder
12874
- */
12875
- TokenIssueOrder.fromObject = function fromObject(object) {
12876
- if (object instanceof $root.TW.Binance.Proto.TokenIssueOrder)
12877
- return object;
12878
- var message = new $root.TW.Binance.Proto.TokenIssueOrder();
12879
- if (object.from != null)
12880
- if (typeof object.from === "string")
12881
- $util.base64.decode(object.from, message.from = $util.newBuffer($util.base64.length(object.from)), 0);
12882
- else if (object.from.length)
12883
- message.from = object.from;
12884
- if (object.name != null)
12885
- message.name = String(object.name);
12886
- if (object.symbol != null)
12887
- message.symbol = String(object.symbol);
12888
- if (object.totalSupply != null)
12889
- if ($util.Long)
12890
- (message.totalSupply = $util.Long.fromValue(object.totalSupply)).unsigned = false;
12891
- else if (typeof object.totalSupply === "string")
12892
- message.totalSupply = parseInt(object.totalSupply, 10);
12893
- else if (typeof object.totalSupply === "number")
12894
- message.totalSupply = object.totalSupply;
12895
- else if (typeof object.totalSupply === "object")
12896
- message.totalSupply = new $util.LongBits(object.totalSupply.low >>> 0, object.totalSupply.high >>> 0).toNumber();
12897
- if (object.mintable != null)
12898
- message.mintable = Boolean(object.mintable);
12899
- return message;
12900
- };
12901
-
12902
- /**
12903
- * Creates a plain object from a TokenIssueOrder message. Also converts values to other types if specified.
12904
- * @function toObject
12905
- * @memberof TW.Binance.Proto.TokenIssueOrder
12906
- * @static
12907
- * @param {TW.Binance.Proto.TokenIssueOrder} message TokenIssueOrder
12908
- * @param {$protobuf.IConversionOptions} [options] Conversion options
12909
- * @returns {Object.<string,*>} Plain object
12910
- */
12911
- TokenIssueOrder.toObject = function toObject(message, options) {
12912
- if (!options)
12913
- options = {};
12914
- var object = {};
12915
- if (options.defaults) {
12916
- if (options.bytes === String)
12917
- object.from = "";
12918
- else {
12919
- object.from = [];
12920
- if (options.bytes !== Array)
12921
- object.from = $util.newBuffer(object.from);
12922
- }
12923
- object.name = "";
12924
- object.symbol = "";
12925
- if ($util.Long) {
12926
- var long = new $util.Long(0, 0, false);
12927
- object.totalSupply = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
12928
- } else
12929
- object.totalSupply = options.longs === String ? "0" : 0;
12930
- object.mintable = false;
12931
- }
12932
- if (message.from != null && message.hasOwnProperty("from"))
12933
- object.from = options.bytes === String ? $util.base64.encode(message.from, 0, message.from.length) : options.bytes === Array ? Array.prototype.slice.call(message.from) : message.from;
12934
- if (message.name != null && message.hasOwnProperty("name"))
12935
- object.name = message.name;
12936
- if (message.symbol != null && message.hasOwnProperty("symbol"))
12937
- object.symbol = message.symbol;
12938
- if (message.totalSupply != null && message.hasOwnProperty("totalSupply"))
12939
- if (typeof message.totalSupply === "number")
12940
- object.totalSupply = options.longs === String ? String(message.totalSupply) : message.totalSupply;
12941
- else
12942
- object.totalSupply = options.longs === String ? $util.Long.prototype.toString.call(message.totalSupply) : options.longs === Number ? new $util.LongBits(message.totalSupply.low >>> 0, message.totalSupply.high >>> 0).toNumber() : message.totalSupply;
12943
- if (message.mintable != null && message.hasOwnProperty("mintable"))
12944
- object.mintable = message.mintable;
12945
- return object;
12946
- };
12947
-
12948
- /**
12949
- * Converts this TokenIssueOrder to JSON.
12950
- * @function toJSON
12951
- * @memberof TW.Binance.Proto.TokenIssueOrder
12952
- * @instance
12953
- * @returns {Object.<string,*>} JSON object
12954
- */
12955
- TokenIssueOrder.prototype.toJSON = function toJSON() {
12956
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12957
- };
12958
-
12959
- return TokenIssueOrder;
12960
- })();
12961
-
12962
- Proto.TokenMintOrder = (function() {
12963
-
12964
- /**
12965
- * Properties of a TokenMintOrder.
12966
- * @memberof TW.Binance.Proto
12967
- * @interface ITokenMintOrder
12968
- * @property {Uint8Array|null} [from] TokenMintOrder from
12969
- * @property {string|null} [symbol] TokenMintOrder symbol
12970
- * @property {Long|null} [amount] TokenMintOrder amount
12971
- */
12972
-
12973
- /**
12974
- * Constructs a new TokenMintOrder.
12975
- * @memberof TW.Binance.Proto
12976
- * @classdesc Represents a TokenMintOrder.
12977
- * @implements ITokenMintOrder
12978
- * @constructor
12979
- * @param {TW.Binance.Proto.ITokenMintOrder=} [properties] Properties to set
12980
- */
12981
- function TokenMintOrder(properties) {
12982
- if (properties)
12983
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12984
- if (properties[keys[i]] != null)
12985
- this[keys[i]] = properties[keys[i]];
12986
- }
12987
-
12988
- /**
12989
- * TokenMintOrder from.
12990
- * @member {Uint8Array} from
12991
- * @memberof TW.Binance.Proto.TokenMintOrder
12992
- * @instance
12993
- */
12994
- TokenMintOrder.prototype.from = $util.newBuffer([]);
12995
-
12996
- /**
12997
- * TokenMintOrder symbol.
12998
- * @member {string} symbol
12999
- * @memberof TW.Binance.Proto.TokenMintOrder
13000
- * @instance
13001
- */
13002
- TokenMintOrder.prototype.symbol = "";
13003
-
13004
- /**
13005
- * TokenMintOrder amount.
13006
- * @member {Long} amount
13007
- * @memberof TW.Binance.Proto.TokenMintOrder
13008
- * @instance
13009
- */
13010
- TokenMintOrder.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
13011
-
13012
- /**
13013
- * Creates a new TokenMintOrder instance using the specified properties.
13014
- * @function create
13015
- * @memberof TW.Binance.Proto.TokenMintOrder
13016
- * @static
13017
- * @param {TW.Binance.Proto.ITokenMintOrder=} [properties] Properties to set
13018
- * @returns {TW.Binance.Proto.TokenMintOrder} TokenMintOrder instance
13019
- */
13020
- TokenMintOrder.create = function create(properties) {
13021
- return new TokenMintOrder(properties);
13022
- };
13023
-
13024
- /**
13025
- * Encodes the specified TokenMintOrder message. Does not implicitly {@link TW.Binance.Proto.TokenMintOrder.verify|verify} messages.
13026
- * @function encode
13027
- * @memberof TW.Binance.Proto.TokenMintOrder
13028
- * @static
13029
- * @param {TW.Binance.Proto.ITokenMintOrder} message TokenMintOrder message or plain object to encode
13030
- * @param {$protobuf.Writer} [writer] Writer to encode to
13031
- * @returns {$protobuf.Writer} Writer
13032
- */
13033
- TokenMintOrder.encode = function encode(message, writer) {
13034
- if (!writer)
13035
- writer = $Writer.create();
13036
- if (message.from != null && Object.hasOwnProperty.call(message, "from"))
13037
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.from);
13038
- if (message.symbol != null && Object.hasOwnProperty.call(message, "symbol"))
13039
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.symbol);
13040
- if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
13041
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.amount);
13042
- return writer;
13043
- };
13044
-
13045
- /**
13046
- * Decodes a TokenMintOrder message from the specified reader or buffer.
13047
- * @function decode
13048
- * @memberof TW.Binance.Proto.TokenMintOrder
13049
- * @static
13050
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13051
- * @param {number} [length] Message length if known beforehand
13052
- * @returns {TW.Binance.Proto.TokenMintOrder} TokenMintOrder
13053
- * @throws {Error} If the payload is not a reader or valid buffer
13054
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
13055
- */
13056
- TokenMintOrder.decode = function decode(reader, length) {
13057
- if (!(reader instanceof $Reader))
13058
- reader = $Reader.create(reader);
13059
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Binance.Proto.TokenMintOrder();
13060
- while (reader.pos < end) {
13061
- var tag = reader.uint32();
13062
- switch (tag >>> 3) {
13063
- case 1:
13064
- message.from = reader.bytes();
13065
- break;
13066
- case 2:
13067
- message.symbol = reader.string();
13068
- break;
13069
- case 3:
13070
- message.amount = reader.int64();
13071
- break;
13072
- default:
13073
- reader.skipType(tag & 7);
13074
- break;
13075
- }
13076
- }
13077
- return message;
13078
- };
13079
-
13080
- /**
13081
- * Verifies a TokenMintOrder message.
13082
- * @function verify
13083
- * @memberof TW.Binance.Proto.TokenMintOrder
13084
- * @static
13085
- * @param {Object.<string,*>} message Plain object to verify
13086
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
13087
- */
13088
- TokenMintOrder.verify = function verify(message) {
13089
- if (typeof message !== "object" || message === null)
13090
- return "object expected";
13091
- if (message.from != null && message.hasOwnProperty("from"))
13092
- if (!(message.from && typeof message.from.length === "number" || $util.isString(message.from)))
13093
- return "from: buffer expected";
13094
- if (message.symbol != null && message.hasOwnProperty("symbol"))
13095
- if (!$util.isString(message.symbol))
13096
- return "symbol: string expected";
13097
- if (message.amount != null && message.hasOwnProperty("amount"))
13098
- if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
13099
- return "amount: integer|Long expected";
13100
- return null;
13101
- };
13102
-
13103
- /**
13104
- * Creates a TokenMintOrder message from a plain object. Also converts values to their respective internal types.
13105
- * @function fromObject
13106
- * @memberof TW.Binance.Proto.TokenMintOrder
13107
- * @static
13108
- * @param {Object.<string,*>} object Plain object
13109
- * @returns {TW.Binance.Proto.TokenMintOrder} TokenMintOrder
13110
- */
13111
- TokenMintOrder.fromObject = function fromObject(object) {
13112
- if (object instanceof $root.TW.Binance.Proto.TokenMintOrder)
13113
- return object;
13114
- var message = new $root.TW.Binance.Proto.TokenMintOrder();
13115
- if (object.from != null)
13116
- if (typeof object.from === "string")
13117
- $util.base64.decode(object.from, message.from = $util.newBuffer($util.base64.length(object.from)), 0);
13118
- else if (object.from.length)
13119
- message.from = object.from;
13120
- if (object.symbol != null)
13121
- message.symbol = String(object.symbol);
13122
- if (object.amount != null)
13123
- if ($util.Long)
13124
- (message.amount = $util.Long.fromValue(object.amount)).unsigned = false;
13125
- else if (typeof object.amount === "string")
13126
- message.amount = parseInt(object.amount, 10);
13127
- else if (typeof object.amount === "number")
13128
- message.amount = object.amount;
13129
- else if (typeof object.amount === "object")
13130
- message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber();
13131
- return message;
13132
- };
13133
-
13134
- /**
13135
- * Creates a plain object from a TokenMintOrder message. Also converts values to other types if specified.
13136
- * @function toObject
13137
- * @memberof TW.Binance.Proto.TokenMintOrder
13138
- * @static
13139
- * @param {TW.Binance.Proto.TokenMintOrder} message TokenMintOrder
13140
- * @param {$protobuf.IConversionOptions} [options] Conversion options
13141
- * @returns {Object.<string,*>} Plain object
13142
- */
13143
- TokenMintOrder.toObject = function toObject(message, options) {
13144
- if (!options)
13145
- options = {};
13146
- var object = {};
13147
- if (options.defaults) {
13148
- if (options.bytes === String)
13149
- object.from = "";
13150
- else {
13151
- object.from = [];
13152
- if (options.bytes !== Array)
13153
- object.from = $util.newBuffer(object.from);
13154
- }
13155
- object.symbol = "";
13156
- if ($util.Long) {
13157
- var long = new $util.Long(0, 0, false);
13158
- object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13159
- } else
13160
- object.amount = options.longs === String ? "0" : 0;
13161
- }
13162
- if (message.from != null && message.hasOwnProperty("from"))
13163
- object.from = options.bytes === String ? $util.base64.encode(message.from, 0, message.from.length) : options.bytes === Array ? Array.prototype.slice.call(message.from) : message.from;
13164
- if (message.symbol != null && message.hasOwnProperty("symbol"))
13165
- object.symbol = message.symbol;
13166
- if (message.amount != null && message.hasOwnProperty("amount"))
13167
- if (typeof message.amount === "number")
13168
- object.amount = options.longs === String ? String(message.amount) : message.amount;
13169
- else
13170
- object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber() : message.amount;
13171
- return object;
13172
- };
13173
-
13174
- /**
13175
- * Converts this TokenMintOrder to JSON.
13176
- * @function toJSON
13177
- * @memberof TW.Binance.Proto.TokenMintOrder
13178
- * @instance
13179
- * @returns {Object.<string,*>} JSON object
13180
- */
13181
- TokenMintOrder.prototype.toJSON = function toJSON() {
13182
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13183
- };
13184
-
13185
- return TokenMintOrder;
13186
- })();
13187
-
13188
- Proto.TokenBurnOrder = (function() {
13189
-
13190
- /**
13191
- * Properties of a TokenBurnOrder.
13192
- * @memberof TW.Binance.Proto
13193
- * @interface ITokenBurnOrder
13194
- * @property {Uint8Array|null} [from] TokenBurnOrder from
13195
- * @property {string|null} [symbol] TokenBurnOrder symbol
13196
- * @property {Long|null} [amount] TokenBurnOrder amount
13197
- */
13198
-
13199
- /**
13200
- * Constructs a new TokenBurnOrder.
13201
- * @memberof TW.Binance.Proto
13202
- * @classdesc Represents a TokenBurnOrder.
13203
- * @implements ITokenBurnOrder
13204
- * @constructor
13205
- * @param {TW.Binance.Proto.ITokenBurnOrder=} [properties] Properties to set
13206
- */
13207
- function TokenBurnOrder(properties) {
13208
- if (properties)
13209
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13210
- if (properties[keys[i]] != null)
13211
- this[keys[i]] = properties[keys[i]];
13212
- }
13213
-
13214
- /**
13215
- * TokenBurnOrder from.
13216
- * @member {Uint8Array} from
13217
- * @memberof TW.Binance.Proto.TokenBurnOrder
13218
- * @instance
13219
- */
13220
- TokenBurnOrder.prototype.from = $util.newBuffer([]);
13221
-
13222
- /**
13223
- * TokenBurnOrder symbol.
13224
- * @member {string} symbol
13225
- * @memberof TW.Binance.Proto.TokenBurnOrder
13226
- * @instance
13227
- */
13228
- TokenBurnOrder.prototype.symbol = "";
13229
-
13230
- /**
13231
- * TokenBurnOrder amount.
13232
- * @member {Long} amount
13233
- * @memberof TW.Binance.Proto.TokenBurnOrder
13234
- * @instance
13235
- */
13236
- TokenBurnOrder.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
13237
-
13238
- /**
13239
- * Creates a new TokenBurnOrder instance using the specified properties.
13240
- * @function create
13241
- * @memberof TW.Binance.Proto.TokenBurnOrder
13242
- * @static
13243
- * @param {TW.Binance.Proto.ITokenBurnOrder=} [properties] Properties to set
13244
- * @returns {TW.Binance.Proto.TokenBurnOrder} TokenBurnOrder instance
13245
- */
13246
- TokenBurnOrder.create = function create(properties) {
13247
- return new TokenBurnOrder(properties);
13248
- };
13249
-
13250
- /**
13251
- * Encodes the specified TokenBurnOrder message. Does not implicitly {@link TW.Binance.Proto.TokenBurnOrder.verify|verify} messages.
13252
- * @function encode
13253
- * @memberof TW.Binance.Proto.TokenBurnOrder
13254
- * @static
13255
- * @param {TW.Binance.Proto.ITokenBurnOrder} message TokenBurnOrder message or plain object to encode
13256
- * @param {$protobuf.Writer} [writer] Writer to encode to
13257
- * @returns {$protobuf.Writer} Writer
13258
- */
13259
- TokenBurnOrder.encode = function encode(message, writer) {
13260
- if (!writer)
13261
- writer = $Writer.create();
13262
- if (message.from != null && Object.hasOwnProperty.call(message, "from"))
13263
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.from);
13264
- if (message.symbol != null && Object.hasOwnProperty.call(message, "symbol"))
13265
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.symbol);
13266
- if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
13267
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.amount);
13268
- return writer;
13269
- };
13270
-
13271
- /**
13272
- * Decodes a TokenBurnOrder message from the specified reader or buffer.
13273
- * @function decode
13274
- * @memberof TW.Binance.Proto.TokenBurnOrder
13275
- * @static
13276
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13277
- * @param {number} [length] Message length if known beforehand
13278
- * @returns {TW.Binance.Proto.TokenBurnOrder} TokenBurnOrder
13279
- * @throws {Error} If the payload is not a reader or valid buffer
13280
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
13281
- */
13282
- TokenBurnOrder.decode = function decode(reader, length) {
13283
- if (!(reader instanceof $Reader))
13284
- reader = $Reader.create(reader);
13285
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Binance.Proto.TokenBurnOrder();
13286
- while (reader.pos < end) {
13287
- var tag = reader.uint32();
13288
- switch (tag >>> 3) {
13289
- case 1:
13290
- message.from = reader.bytes();
13291
- break;
13292
- case 2:
13293
- message.symbol = reader.string();
13294
- break;
13295
- case 3:
13296
- message.amount = reader.int64();
13297
- break;
13298
- default:
13299
- reader.skipType(tag & 7);
13300
- break;
13301
- }
13302
- }
13303
- return message;
13304
- };
13305
-
13306
- /**
13307
- * Verifies a TokenBurnOrder message.
13308
- * @function verify
13309
- * @memberof TW.Binance.Proto.TokenBurnOrder
13310
- * @static
13311
- * @param {Object.<string,*>} message Plain object to verify
13312
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
13313
- */
13314
- TokenBurnOrder.verify = function verify(message) {
13315
- if (typeof message !== "object" || message === null)
13316
- return "object expected";
13317
- if (message.from != null && message.hasOwnProperty("from"))
13318
- if (!(message.from && typeof message.from.length === "number" || $util.isString(message.from)))
13319
- return "from: buffer expected";
13320
- if (message.symbol != null && message.hasOwnProperty("symbol"))
13321
- if (!$util.isString(message.symbol))
13322
- return "symbol: string expected";
13323
- if (message.amount != null && message.hasOwnProperty("amount"))
13324
- if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
13325
- return "amount: integer|Long expected";
13326
- return null;
13327
- };
13328
-
13329
- /**
13330
- * Creates a TokenBurnOrder message from a plain object. Also converts values to their respective internal types.
13331
- * @function fromObject
13332
- * @memberof TW.Binance.Proto.TokenBurnOrder
13333
- * @static
13334
- * @param {Object.<string,*>} object Plain object
13335
- * @returns {TW.Binance.Proto.TokenBurnOrder} TokenBurnOrder
13336
- */
13337
- TokenBurnOrder.fromObject = function fromObject(object) {
13338
- if (object instanceof $root.TW.Binance.Proto.TokenBurnOrder)
13339
- return object;
13340
- var message = new $root.TW.Binance.Proto.TokenBurnOrder();
13341
- if (object.from != null)
13342
- if (typeof object.from === "string")
13343
- $util.base64.decode(object.from, message.from = $util.newBuffer($util.base64.length(object.from)), 0);
13344
- else if (object.from.length)
13345
- message.from = object.from;
13346
- if (object.symbol != null)
13347
- message.symbol = String(object.symbol);
13348
- if (object.amount != null)
13349
- if ($util.Long)
13350
- (message.amount = $util.Long.fromValue(object.amount)).unsigned = false;
13351
- else if (typeof object.amount === "string")
13352
- message.amount = parseInt(object.amount, 10);
13353
- else if (typeof object.amount === "number")
13354
- message.amount = object.amount;
13355
- else if (typeof object.amount === "object")
13356
- message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber();
13357
- return message;
13358
- };
13359
-
13360
- /**
13361
- * Creates a plain object from a TokenBurnOrder message. Also converts values to other types if specified.
13362
- * @function toObject
13363
- * @memberof TW.Binance.Proto.TokenBurnOrder
13364
- * @static
13365
- * @param {TW.Binance.Proto.TokenBurnOrder} message TokenBurnOrder
13366
- * @param {$protobuf.IConversionOptions} [options] Conversion options
13367
- * @returns {Object.<string,*>} Plain object
13368
- */
13369
- TokenBurnOrder.toObject = function toObject(message, options) {
13370
- if (!options)
13371
- options = {};
13372
- var object = {};
13373
- if (options.defaults) {
13374
- if (options.bytes === String)
13375
- object.from = "";
13376
- else {
13377
- object.from = [];
13378
- if (options.bytes !== Array)
13379
- object.from = $util.newBuffer(object.from);
13380
- }
13381
- object.symbol = "";
13382
- if ($util.Long) {
13383
- var long = new $util.Long(0, 0, false);
13384
- object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13385
- } else
13386
- object.amount = options.longs === String ? "0" : 0;
13387
- }
13388
- if (message.from != null && message.hasOwnProperty("from"))
13389
- object.from = options.bytes === String ? $util.base64.encode(message.from, 0, message.from.length) : options.bytes === Array ? Array.prototype.slice.call(message.from) : message.from;
13390
- if (message.symbol != null && message.hasOwnProperty("symbol"))
13391
- object.symbol = message.symbol;
13392
- if (message.amount != null && message.hasOwnProperty("amount"))
13393
- if (typeof message.amount === "number")
13394
- object.amount = options.longs === String ? String(message.amount) : message.amount;
13395
- else
13396
- object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber() : message.amount;
13397
- return object;
13398
- };
13399
-
13400
- /**
13401
- * Converts this TokenBurnOrder to JSON.
13402
- * @function toJSON
13403
- * @memberof TW.Binance.Proto.TokenBurnOrder
13404
- * @instance
13405
- * @returns {Object.<string,*>} JSON object
13406
- */
13407
- TokenBurnOrder.prototype.toJSON = function toJSON() {
13408
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13409
- };
13410
-
13411
- return TokenBurnOrder;
13412
- })();
13413
-
13414
- Proto.TokenFreezeOrder = (function() {
13415
-
13416
- /**
13417
- * Properties of a TokenFreezeOrder.
13418
- * @memberof TW.Binance.Proto
13419
- * @interface ITokenFreezeOrder
13420
- * @property {Uint8Array|null} [from] TokenFreezeOrder from
13421
- * @property {string|null} [symbol] TokenFreezeOrder symbol
13422
- * @property {Long|null} [amount] TokenFreezeOrder amount
13423
- */
13424
-
13425
- /**
13426
- * Constructs a new TokenFreezeOrder.
13427
- * @memberof TW.Binance.Proto
13428
- * @classdesc Represents a TokenFreezeOrder.
13429
- * @implements ITokenFreezeOrder
13430
- * @constructor
13431
- * @param {TW.Binance.Proto.ITokenFreezeOrder=} [properties] Properties to set
13432
- */
13433
- function TokenFreezeOrder(properties) {
13434
- if (properties)
13435
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13436
- if (properties[keys[i]] != null)
13437
- this[keys[i]] = properties[keys[i]];
13438
- }
13439
-
13440
- /**
13441
- * TokenFreezeOrder from.
13442
- * @member {Uint8Array} from
13443
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13444
- * @instance
13445
- */
13446
- TokenFreezeOrder.prototype.from = $util.newBuffer([]);
13447
-
13448
- /**
13449
- * TokenFreezeOrder symbol.
13450
- * @member {string} symbol
13451
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13452
- * @instance
13453
- */
13454
- TokenFreezeOrder.prototype.symbol = "";
13455
-
13456
- /**
13457
- * TokenFreezeOrder amount.
13458
- * @member {Long} amount
13459
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13460
- * @instance
13461
- */
13462
- TokenFreezeOrder.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
13463
-
13464
- /**
13465
- * Creates a new TokenFreezeOrder instance using the specified properties.
13466
- * @function create
13467
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13468
- * @static
13469
- * @param {TW.Binance.Proto.ITokenFreezeOrder=} [properties] Properties to set
13470
- * @returns {TW.Binance.Proto.TokenFreezeOrder} TokenFreezeOrder instance
13471
- */
13472
- TokenFreezeOrder.create = function create(properties) {
13473
- return new TokenFreezeOrder(properties);
13474
- };
13475
-
13476
- /**
13477
- * Encodes the specified TokenFreezeOrder message. Does not implicitly {@link TW.Binance.Proto.TokenFreezeOrder.verify|verify} messages.
13478
- * @function encode
13479
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13480
- * @static
13481
- * @param {TW.Binance.Proto.ITokenFreezeOrder} message TokenFreezeOrder message or plain object to encode
13482
- * @param {$protobuf.Writer} [writer] Writer to encode to
13483
- * @returns {$protobuf.Writer} Writer
13484
- */
13485
- TokenFreezeOrder.encode = function encode(message, writer) {
13486
- if (!writer)
13487
- writer = $Writer.create();
13488
- if (message.from != null && Object.hasOwnProperty.call(message, "from"))
13489
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.from);
13490
- if (message.symbol != null && Object.hasOwnProperty.call(message, "symbol"))
13491
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.symbol);
13492
- if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
13493
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.amount);
13494
- return writer;
13495
- };
13496
-
13497
- /**
13498
- * Decodes a TokenFreezeOrder message from the specified reader or buffer.
13499
- * @function decode
13500
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13501
- * @static
13502
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13503
- * @param {number} [length] Message length if known beforehand
13504
- * @returns {TW.Binance.Proto.TokenFreezeOrder} TokenFreezeOrder
13505
- * @throws {Error} If the payload is not a reader or valid buffer
13506
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
13507
- */
13508
- TokenFreezeOrder.decode = function decode(reader, length) {
13509
- if (!(reader instanceof $Reader))
13510
- reader = $Reader.create(reader);
13511
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Binance.Proto.TokenFreezeOrder();
13512
- while (reader.pos < end) {
13513
- var tag = reader.uint32();
13514
- switch (tag >>> 3) {
13515
- case 1:
13516
- message.from = reader.bytes();
13517
- break;
13518
- case 2:
13519
- message.symbol = reader.string();
13520
- break;
13521
- case 3:
13522
- message.amount = reader.int64();
13523
- break;
13524
- default:
13525
- reader.skipType(tag & 7);
13526
- break;
13527
- }
13528
- }
13529
- return message;
13530
- };
13531
-
13532
- /**
13533
- * Verifies a TokenFreezeOrder message.
13534
- * @function verify
13535
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13536
- * @static
13537
- * @param {Object.<string,*>} message Plain object to verify
13538
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
13539
- */
13540
- TokenFreezeOrder.verify = function verify(message) {
13541
- if (typeof message !== "object" || message === null)
13542
- return "object expected";
13543
- if (message.from != null && message.hasOwnProperty("from"))
13544
- if (!(message.from && typeof message.from.length === "number" || $util.isString(message.from)))
13545
- return "from: buffer expected";
13546
- if (message.symbol != null && message.hasOwnProperty("symbol"))
13547
- if (!$util.isString(message.symbol))
13548
- return "symbol: string expected";
13549
- if (message.amount != null && message.hasOwnProperty("amount"))
13550
- if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
13551
- return "amount: integer|Long expected";
13552
- return null;
13553
- };
13554
-
13555
- /**
13556
- * Creates a TokenFreezeOrder message from a plain object. Also converts values to their respective internal types.
13557
- * @function fromObject
13558
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13559
- * @static
13560
- * @param {Object.<string,*>} object Plain object
13561
- * @returns {TW.Binance.Proto.TokenFreezeOrder} TokenFreezeOrder
13562
- */
13563
- TokenFreezeOrder.fromObject = function fromObject(object) {
13564
- if (object instanceof $root.TW.Binance.Proto.TokenFreezeOrder)
13565
- return object;
13566
- var message = new $root.TW.Binance.Proto.TokenFreezeOrder();
13567
- if (object.from != null)
13568
- if (typeof object.from === "string")
13569
- $util.base64.decode(object.from, message.from = $util.newBuffer($util.base64.length(object.from)), 0);
13570
- else if (object.from.length)
13571
- message.from = object.from;
13572
- if (object.symbol != null)
13573
- message.symbol = String(object.symbol);
13574
- if (object.amount != null)
13575
- if ($util.Long)
13576
- (message.amount = $util.Long.fromValue(object.amount)).unsigned = false;
13577
- else if (typeof object.amount === "string")
13578
- message.amount = parseInt(object.amount, 10);
13579
- else if (typeof object.amount === "number")
13580
- message.amount = object.amount;
13581
- else if (typeof object.amount === "object")
13582
- message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber();
13583
- return message;
13584
- };
13585
-
13586
- /**
13587
- * Creates a plain object from a TokenFreezeOrder message. Also converts values to other types if specified.
13588
- * @function toObject
13589
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13590
- * @static
13591
- * @param {TW.Binance.Proto.TokenFreezeOrder} message TokenFreezeOrder
13592
- * @param {$protobuf.IConversionOptions} [options] Conversion options
13593
- * @returns {Object.<string,*>} Plain object
13594
- */
13595
- TokenFreezeOrder.toObject = function toObject(message, options) {
13596
- if (!options)
13597
- options = {};
13598
- var object = {};
13599
- if (options.defaults) {
13600
- if (options.bytes === String)
13601
- object.from = "";
13602
- else {
13603
- object.from = [];
13604
- if (options.bytes !== Array)
13605
- object.from = $util.newBuffer(object.from);
13606
- }
13607
- object.symbol = "";
13608
- if ($util.Long) {
13609
- var long = new $util.Long(0, 0, false);
13610
- object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13611
- } else
13612
- object.amount = options.longs === String ? "0" : 0;
13613
- }
13614
- if (message.from != null && message.hasOwnProperty("from"))
13615
- object.from = options.bytes === String ? $util.base64.encode(message.from, 0, message.from.length) : options.bytes === Array ? Array.prototype.slice.call(message.from) : message.from;
13616
- if (message.symbol != null && message.hasOwnProperty("symbol"))
13617
- object.symbol = message.symbol;
13618
- if (message.amount != null && message.hasOwnProperty("amount"))
13619
- if (typeof message.amount === "number")
13620
- object.amount = options.longs === String ? String(message.amount) : message.amount;
13621
- else
13622
- object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber() : message.amount;
13623
- return object;
13624
- };
13625
-
13626
- /**
13627
- * Converts this TokenFreezeOrder to JSON.
13628
- * @function toJSON
13629
- * @memberof TW.Binance.Proto.TokenFreezeOrder
13630
- * @instance
13631
- * @returns {Object.<string,*>} JSON object
13632
- */
13633
- TokenFreezeOrder.prototype.toJSON = function toJSON() {
13634
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13635
- };
13636
-
13637
- return TokenFreezeOrder;
13638
- })();
13639
-
13640
- Proto.TokenUnfreezeOrder = (function() {
13641
-
13642
- /**
13643
- * Properties of a TokenUnfreezeOrder.
13644
- * @memberof TW.Binance.Proto
13645
- * @interface ITokenUnfreezeOrder
13646
- * @property {Uint8Array|null} [from] TokenUnfreezeOrder from
13647
- * @property {string|null} [symbol] TokenUnfreezeOrder symbol
13648
- * @property {Long|null} [amount] TokenUnfreezeOrder amount
13649
- */
13650
-
13651
- /**
13652
- * Constructs a new TokenUnfreezeOrder.
13653
- * @memberof TW.Binance.Proto
13654
- * @classdesc Represents a TokenUnfreezeOrder.
13655
- * @implements ITokenUnfreezeOrder
13656
- * @constructor
13657
- * @param {TW.Binance.Proto.ITokenUnfreezeOrder=} [properties] Properties to set
13658
- */
13659
- function TokenUnfreezeOrder(properties) {
13660
- if (properties)
13661
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13662
- if (properties[keys[i]] != null)
13663
- this[keys[i]] = properties[keys[i]];
13664
- }
13665
-
13666
- /**
13667
- * TokenUnfreezeOrder from.
13668
- * @member {Uint8Array} from
13669
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13670
- * @instance
13671
- */
13672
- TokenUnfreezeOrder.prototype.from = $util.newBuffer([]);
13673
-
13674
- /**
13675
- * TokenUnfreezeOrder symbol.
13676
- * @member {string} symbol
13677
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13678
- * @instance
13679
- */
13680
- TokenUnfreezeOrder.prototype.symbol = "";
13681
-
13682
- /**
13683
- * TokenUnfreezeOrder amount.
13684
- * @member {Long} amount
13685
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13686
- * @instance
13687
- */
13688
- TokenUnfreezeOrder.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
13689
-
13690
- /**
13691
- * Creates a new TokenUnfreezeOrder instance using the specified properties.
13692
- * @function create
13693
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13694
- * @static
13695
- * @param {TW.Binance.Proto.ITokenUnfreezeOrder=} [properties] Properties to set
13696
- * @returns {TW.Binance.Proto.TokenUnfreezeOrder} TokenUnfreezeOrder instance
13697
- */
13698
- TokenUnfreezeOrder.create = function create(properties) {
13699
- return new TokenUnfreezeOrder(properties);
13700
- };
13701
-
13702
- /**
13703
- * Encodes the specified TokenUnfreezeOrder message. Does not implicitly {@link TW.Binance.Proto.TokenUnfreezeOrder.verify|verify} messages.
13704
- * @function encode
13705
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13706
- * @static
13707
- * @param {TW.Binance.Proto.ITokenUnfreezeOrder} message TokenUnfreezeOrder message or plain object to encode
13708
- * @param {$protobuf.Writer} [writer] Writer to encode to
13709
- * @returns {$protobuf.Writer} Writer
13710
- */
13711
- TokenUnfreezeOrder.encode = function encode(message, writer) {
13712
- if (!writer)
13713
- writer = $Writer.create();
13714
- if (message.from != null && Object.hasOwnProperty.call(message, "from"))
13715
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.from);
13716
- if (message.symbol != null && Object.hasOwnProperty.call(message, "symbol"))
13717
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.symbol);
13718
- if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
13719
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.amount);
13720
- return writer;
13721
- };
13722
-
13723
- /**
13724
- * Decodes a TokenUnfreezeOrder message from the specified reader or buffer.
13725
- * @function decode
13726
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13727
- * @static
13728
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13729
- * @param {number} [length] Message length if known beforehand
13730
- * @returns {TW.Binance.Proto.TokenUnfreezeOrder} TokenUnfreezeOrder
13731
- * @throws {Error} If the payload is not a reader or valid buffer
13732
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
13733
- */
13734
- TokenUnfreezeOrder.decode = function decode(reader, length) {
13735
- if (!(reader instanceof $Reader))
13736
- reader = $Reader.create(reader);
13737
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Binance.Proto.TokenUnfreezeOrder();
13738
- while (reader.pos < end) {
13739
- var tag = reader.uint32();
13740
- switch (tag >>> 3) {
13741
- case 1:
13742
- message.from = reader.bytes();
13743
- break;
13744
- case 2:
13745
- message.symbol = reader.string();
13746
- break;
13747
- case 3:
13748
- message.amount = reader.int64();
13749
- break;
13750
- default:
13751
- reader.skipType(tag & 7);
13752
- break;
13753
- }
13754
- }
13755
- return message;
13756
- };
13757
-
13758
- /**
13759
- * Verifies a TokenUnfreezeOrder message.
13760
- * @function verify
13761
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13762
- * @static
13763
- * @param {Object.<string,*>} message Plain object to verify
13764
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
13765
- */
13766
- TokenUnfreezeOrder.verify = function verify(message) {
13767
- if (typeof message !== "object" || message === null)
13768
- return "object expected";
13769
- if (message.from != null && message.hasOwnProperty("from"))
13770
- if (!(message.from && typeof message.from.length === "number" || $util.isString(message.from)))
13771
- return "from: buffer expected";
13772
- if (message.symbol != null && message.hasOwnProperty("symbol"))
13773
- if (!$util.isString(message.symbol))
13774
- return "symbol: string expected";
13775
- if (message.amount != null && message.hasOwnProperty("amount"))
13776
- if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
13777
- return "amount: integer|Long expected";
13778
- return null;
13779
- };
13780
-
13781
- /**
13782
- * Creates a TokenUnfreezeOrder message from a plain object. Also converts values to their respective internal types.
13783
- * @function fromObject
13784
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13785
- * @static
13786
- * @param {Object.<string,*>} object Plain object
13787
- * @returns {TW.Binance.Proto.TokenUnfreezeOrder} TokenUnfreezeOrder
13788
- */
13789
- TokenUnfreezeOrder.fromObject = function fromObject(object) {
13790
- if (object instanceof $root.TW.Binance.Proto.TokenUnfreezeOrder)
13791
- return object;
13792
- var message = new $root.TW.Binance.Proto.TokenUnfreezeOrder();
13793
- if (object.from != null)
13794
- if (typeof object.from === "string")
13795
- $util.base64.decode(object.from, message.from = $util.newBuffer($util.base64.length(object.from)), 0);
13796
- else if (object.from.length)
13797
- message.from = object.from;
13798
- if (object.symbol != null)
13799
- message.symbol = String(object.symbol);
13800
- if (object.amount != null)
13801
- if ($util.Long)
13802
- (message.amount = $util.Long.fromValue(object.amount)).unsigned = false;
13803
- else if (typeof object.amount === "string")
13804
- message.amount = parseInt(object.amount, 10);
13805
- else if (typeof object.amount === "number")
13806
- message.amount = object.amount;
13807
- else if (typeof object.amount === "object")
13808
- message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber();
13809
- return message;
13810
- };
13811
-
13812
- /**
13813
- * Creates a plain object from a TokenUnfreezeOrder message. Also converts values to other types if specified.
13814
- * @function toObject
13815
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13816
- * @static
13817
- * @param {TW.Binance.Proto.TokenUnfreezeOrder} message TokenUnfreezeOrder
13818
- * @param {$protobuf.IConversionOptions} [options] Conversion options
13819
- * @returns {Object.<string,*>} Plain object
13820
- */
13821
- TokenUnfreezeOrder.toObject = function toObject(message, options) {
13822
- if (!options)
13823
- options = {};
13824
- var object = {};
13825
- if (options.defaults) {
13826
- if (options.bytes === String)
13827
- object.from = "";
13828
- else {
13829
- object.from = [];
13830
- if (options.bytes !== Array)
13831
- object.from = $util.newBuffer(object.from);
13832
- }
13833
- object.symbol = "";
13834
- if ($util.Long) {
13835
- var long = new $util.Long(0, 0, false);
13836
- object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13837
- } else
13838
- object.amount = options.longs === String ? "0" : 0;
13839
- }
13840
- if (message.from != null && message.hasOwnProperty("from"))
13841
- object.from = options.bytes === String ? $util.base64.encode(message.from, 0, message.from.length) : options.bytes === Array ? Array.prototype.slice.call(message.from) : message.from;
13842
- if (message.symbol != null && message.hasOwnProperty("symbol"))
13843
- object.symbol = message.symbol;
13844
- if (message.amount != null && message.hasOwnProperty("amount"))
13845
- if (typeof message.amount === "number")
13846
- object.amount = options.longs === String ? String(message.amount) : message.amount;
13847
- else
13848
- object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber() : message.amount;
13849
- return object;
13850
- };
13851
-
13852
- /**
13853
- * Converts this TokenUnfreezeOrder to JSON.
13854
- * @function toJSON
13855
- * @memberof TW.Binance.Proto.TokenUnfreezeOrder
13856
- * @instance
13857
- * @returns {Object.<string,*>} JSON object
13858
- */
13859
- TokenUnfreezeOrder.prototype.toJSON = function toJSON() {
13860
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13861
- };
13862
-
13863
- return TokenUnfreezeOrder;
13864
- })();
13865
-
13866
12692
  Proto.HTLTOrder = (function() {
13867
12693
 
13868
12694
  /**
@@ -17089,15 +15915,10 @@
17089
15915
  * @property {TW.Binance.Proto.ITradeOrder|null} [tradeOrder] SigningInput tradeOrder
17090
15916
  * @property {TW.Binance.Proto.ICancelTradeOrder|null} [cancelTradeOrder] SigningInput cancelTradeOrder
17091
15917
  * @property {TW.Binance.Proto.ISendOrder|null} [sendOrder] SigningInput sendOrder
17092
- * @property {TW.Binance.Proto.ITokenFreezeOrder|null} [freezeOrder] SigningInput freezeOrder
17093
- * @property {TW.Binance.Proto.ITokenUnfreezeOrder|null} [unfreezeOrder] SigningInput unfreezeOrder
17094
15918
  * @property {TW.Binance.Proto.IHTLTOrder|null} [htltOrder] SigningInput htltOrder
17095
15919
  * @property {TW.Binance.Proto.IDepositHTLTOrder|null} [depositHTLTOrder] SigningInput depositHTLTOrder
17096
15920
  * @property {TW.Binance.Proto.IClaimHTLOrder|null} [claimHTLTOrder] SigningInput claimHTLTOrder
17097
15921
  * @property {TW.Binance.Proto.IRefundHTLTOrder|null} [refundHTLTOrder] SigningInput refundHTLTOrder
17098
- * @property {TW.Binance.Proto.ITokenIssueOrder|null} [issueOrder] SigningInput issueOrder
17099
- * @property {TW.Binance.Proto.ITokenMintOrder|null} [mintOrder] SigningInput mintOrder
17100
- * @property {TW.Binance.Proto.ITokenBurnOrder|null} [burnOrder] SigningInput burnOrder
17101
15922
  * @property {TW.Binance.Proto.ITransferOut|null} [transferOutOrder] SigningInput transferOutOrder
17102
15923
  * @property {TW.Binance.Proto.ISideChainDelegate|null} [sideDelegateOrder] SigningInput sideDelegateOrder
17103
15924
  * @property {TW.Binance.Proto.ISideChainRedelegate|null} [sideRedelegateOrder] SigningInput sideRedelegateOrder
@@ -17195,22 +16016,6 @@
17195
16016
  */
17196
16017
  SigningInput.prototype.sendOrder = null;
17197
16018
 
17198
- /**
17199
- * SigningInput freezeOrder.
17200
- * @member {TW.Binance.Proto.ITokenFreezeOrder|null|undefined} freezeOrder
17201
- * @memberof TW.Binance.Proto.SigningInput
17202
- * @instance
17203
- */
17204
- SigningInput.prototype.freezeOrder = null;
17205
-
17206
- /**
17207
- * SigningInput unfreezeOrder.
17208
- * @member {TW.Binance.Proto.ITokenUnfreezeOrder|null|undefined} unfreezeOrder
17209
- * @memberof TW.Binance.Proto.SigningInput
17210
- * @instance
17211
- */
17212
- SigningInput.prototype.unfreezeOrder = null;
17213
-
17214
16019
  /**
17215
16020
  * SigningInput htltOrder.
17216
16021
  * @member {TW.Binance.Proto.IHTLTOrder|null|undefined} htltOrder
@@ -17243,30 +16048,6 @@
17243
16048
  */
17244
16049
  SigningInput.prototype.refundHTLTOrder = null;
17245
16050
 
17246
- /**
17247
- * SigningInput issueOrder.
17248
- * @member {TW.Binance.Proto.ITokenIssueOrder|null|undefined} issueOrder
17249
- * @memberof TW.Binance.Proto.SigningInput
17250
- * @instance
17251
- */
17252
- SigningInput.prototype.issueOrder = null;
17253
-
17254
- /**
17255
- * SigningInput mintOrder.
17256
- * @member {TW.Binance.Proto.ITokenMintOrder|null|undefined} mintOrder
17257
- * @memberof TW.Binance.Proto.SigningInput
17258
- * @instance
17259
- */
17260
- SigningInput.prototype.mintOrder = null;
17261
-
17262
- /**
17263
- * SigningInput burnOrder.
17264
- * @member {TW.Binance.Proto.ITokenBurnOrder|null|undefined} burnOrder
17265
- * @memberof TW.Binance.Proto.SigningInput
17266
- * @instance
17267
- */
17268
- SigningInput.prototype.burnOrder = null;
17269
-
17270
16051
  /**
17271
16052
  * SigningInput transferOutOrder.
17272
16053
  * @member {TW.Binance.Proto.ITransferOut|null|undefined} transferOutOrder
@@ -17336,12 +16117,12 @@
17336
16117
 
17337
16118
  /**
17338
16119
  * SigningInput orderOneof.
17339
- * @member {"tradeOrder"|"cancelTradeOrder"|"sendOrder"|"freezeOrder"|"unfreezeOrder"|"htltOrder"|"depositHTLTOrder"|"claimHTLTOrder"|"refundHTLTOrder"|"issueOrder"|"mintOrder"|"burnOrder"|"transferOutOrder"|"sideDelegateOrder"|"sideRedelegateOrder"|"sideUndelegateOrder"|"timeLockOrder"|"timeRelockOrder"|"timeUnlockOrder"|"sideStakeMigrationOrder"|undefined} orderOneof
16120
+ * @member {"tradeOrder"|"cancelTradeOrder"|"sendOrder"|"htltOrder"|"depositHTLTOrder"|"claimHTLTOrder"|"refundHTLTOrder"|"transferOutOrder"|"sideDelegateOrder"|"sideRedelegateOrder"|"sideUndelegateOrder"|"timeLockOrder"|"timeRelockOrder"|"timeUnlockOrder"|"sideStakeMigrationOrder"|undefined} orderOneof
17340
16121
  * @memberof TW.Binance.Proto.SigningInput
17341
16122
  * @instance
17342
16123
  */
17343
16124
  Object.defineProperty(SigningInput.prototype, "orderOneof", {
17344
- get: $util.oneOfGetter($oneOfFields = ["tradeOrder", "cancelTradeOrder", "sendOrder", "freezeOrder", "unfreezeOrder", "htltOrder", "depositHTLTOrder", "claimHTLTOrder", "refundHTLTOrder", "issueOrder", "mintOrder", "burnOrder", "transferOutOrder", "sideDelegateOrder", "sideRedelegateOrder", "sideUndelegateOrder", "timeLockOrder", "timeRelockOrder", "timeUnlockOrder", "sideStakeMigrationOrder"]),
16125
+ get: $util.oneOfGetter($oneOfFields = ["tradeOrder", "cancelTradeOrder", "sendOrder", "htltOrder", "depositHTLTOrder", "claimHTLTOrder", "refundHTLTOrder", "transferOutOrder", "sideDelegateOrder", "sideRedelegateOrder", "sideUndelegateOrder", "timeLockOrder", "timeRelockOrder", "timeUnlockOrder", "sideStakeMigrationOrder"]),
17345
16126
  set: $util.oneOfSetter($oneOfFields)
17346
16127
  });
17347
16128
 
@@ -17387,10 +16168,6 @@
17387
16168
  $root.TW.Binance.Proto.CancelTradeOrder.encode(message.cancelTradeOrder, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
17388
16169
  if (message.sendOrder != null && Object.hasOwnProperty.call(message, "sendOrder"))
17389
16170
  $root.TW.Binance.Proto.SendOrder.encode(message.sendOrder, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
17390
- if (message.freezeOrder != null && Object.hasOwnProperty.call(message, "freezeOrder"))
17391
- $root.TW.Binance.Proto.TokenFreezeOrder.encode(message.freezeOrder, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
17392
- if (message.unfreezeOrder != null && Object.hasOwnProperty.call(message, "unfreezeOrder"))
17393
- $root.TW.Binance.Proto.TokenUnfreezeOrder.encode(message.unfreezeOrder, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
17394
16171
  if (message.htltOrder != null && Object.hasOwnProperty.call(message, "htltOrder"))
17395
16172
  $root.TW.Binance.Proto.HTLTOrder.encode(message.htltOrder, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
17396
16173
  if (message.depositHTLTOrder != null && Object.hasOwnProperty.call(message, "depositHTLTOrder"))
@@ -17399,12 +16176,6 @@
17399
16176
  $root.TW.Binance.Proto.ClaimHTLOrder.encode(message.claimHTLTOrder, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
17400
16177
  if (message.refundHTLTOrder != null && Object.hasOwnProperty.call(message, "refundHTLTOrder"))
17401
16178
  $root.TW.Binance.Proto.RefundHTLTOrder.encode(message.refundHTLTOrder, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
17402
- if (message.issueOrder != null && Object.hasOwnProperty.call(message, "issueOrder"))
17403
- $root.TW.Binance.Proto.TokenIssueOrder.encode(message.issueOrder, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
17404
- if (message.mintOrder != null && Object.hasOwnProperty.call(message, "mintOrder"))
17405
- $root.TW.Binance.Proto.TokenMintOrder.encode(message.mintOrder, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
17406
- if (message.burnOrder != null && Object.hasOwnProperty.call(message, "burnOrder"))
17407
- $root.TW.Binance.Proto.TokenBurnOrder.encode(message.burnOrder, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
17408
16179
  if (message.transferOutOrder != null && Object.hasOwnProperty.call(message, "transferOutOrder"))
17409
16180
  $root.TW.Binance.Proto.TransferOut.encode(message.transferOutOrder, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
17410
16181
  if (message.sideDelegateOrder != null && Object.hasOwnProperty.call(message, "sideDelegateOrder"))
@@ -17469,12 +16240,6 @@
17469
16240
  case 10:
17470
16241
  message.sendOrder = $root.TW.Binance.Proto.SendOrder.decode(reader, reader.uint32());
17471
16242
  break;
17472
- case 11:
17473
- message.freezeOrder = $root.TW.Binance.Proto.TokenFreezeOrder.decode(reader, reader.uint32());
17474
- break;
17475
- case 12:
17476
- message.unfreezeOrder = $root.TW.Binance.Proto.TokenUnfreezeOrder.decode(reader, reader.uint32());
17477
- break;
17478
16243
  case 13:
17479
16244
  message.htltOrder = $root.TW.Binance.Proto.HTLTOrder.decode(reader, reader.uint32());
17480
16245
  break;
@@ -17487,15 +16252,6 @@
17487
16252
  case 16:
17488
16253
  message.refundHTLTOrder = $root.TW.Binance.Proto.RefundHTLTOrder.decode(reader, reader.uint32());
17489
16254
  break;
17490
- case 17:
17491
- message.issueOrder = $root.TW.Binance.Proto.TokenIssueOrder.decode(reader, reader.uint32());
17492
- break;
17493
- case 18:
17494
- message.mintOrder = $root.TW.Binance.Proto.TokenMintOrder.decode(reader, reader.uint32());
17495
- break;
17496
- case 19:
17497
- message.burnOrder = $root.TW.Binance.Proto.TokenBurnOrder.decode(reader, reader.uint32());
17498
- break;
17499
16255
  case 20:
17500
16256
  message.transferOutOrder = $root.TW.Binance.Proto.TransferOut.decode(reader, reader.uint32());
17501
16257
  break;
@@ -17586,26 +16342,6 @@
17586
16342
  return "sendOrder." + error;
17587
16343
  }
17588
16344
  }
17589
- if (message.freezeOrder != null && message.hasOwnProperty("freezeOrder")) {
17590
- if (properties.orderOneof === 1)
17591
- return "orderOneof: multiple values";
17592
- properties.orderOneof = 1;
17593
- {
17594
- var error = $root.TW.Binance.Proto.TokenFreezeOrder.verify(message.freezeOrder);
17595
- if (error)
17596
- return "freezeOrder." + error;
17597
- }
17598
- }
17599
- if (message.unfreezeOrder != null && message.hasOwnProperty("unfreezeOrder")) {
17600
- if (properties.orderOneof === 1)
17601
- return "orderOneof: multiple values";
17602
- properties.orderOneof = 1;
17603
- {
17604
- var error = $root.TW.Binance.Proto.TokenUnfreezeOrder.verify(message.unfreezeOrder);
17605
- if (error)
17606
- return "unfreezeOrder." + error;
17607
- }
17608
- }
17609
16345
  if (message.htltOrder != null && message.hasOwnProperty("htltOrder")) {
17610
16346
  if (properties.orderOneof === 1)
17611
16347
  return "orderOneof: multiple values";
@@ -17646,36 +16382,6 @@
17646
16382
  return "refundHTLTOrder." + error;
17647
16383
  }
17648
16384
  }
17649
- if (message.issueOrder != null && message.hasOwnProperty("issueOrder")) {
17650
- if (properties.orderOneof === 1)
17651
- return "orderOneof: multiple values";
17652
- properties.orderOneof = 1;
17653
- {
17654
- var error = $root.TW.Binance.Proto.TokenIssueOrder.verify(message.issueOrder);
17655
- if (error)
17656
- return "issueOrder." + error;
17657
- }
17658
- }
17659
- if (message.mintOrder != null && message.hasOwnProperty("mintOrder")) {
17660
- if (properties.orderOneof === 1)
17661
- return "orderOneof: multiple values";
17662
- properties.orderOneof = 1;
17663
- {
17664
- var error = $root.TW.Binance.Proto.TokenMintOrder.verify(message.mintOrder);
17665
- if (error)
17666
- return "mintOrder." + error;
17667
- }
17668
- }
17669
- if (message.burnOrder != null && message.hasOwnProperty("burnOrder")) {
17670
- if (properties.orderOneof === 1)
17671
- return "orderOneof: multiple values";
17672
- properties.orderOneof = 1;
17673
- {
17674
- var error = $root.TW.Binance.Proto.TokenBurnOrder.verify(message.burnOrder);
17675
- if (error)
17676
- return "burnOrder." + error;
17677
- }
17678
- }
17679
16385
  if (message.transferOutOrder != null && message.hasOwnProperty("transferOutOrder")) {
17680
16386
  if (properties.orderOneof === 1)
17681
16387
  return "orderOneof: multiple values";
@@ -17822,16 +16528,6 @@
17822
16528
  throw TypeError(".TW.Binance.Proto.SigningInput.sendOrder: object expected");
17823
16529
  message.sendOrder = $root.TW.Binance.Proto.SendOrder.fromObject(object.sendOrder);
17824
16530
  }
17825
- if (object.freezeOrder != null) {
17826
- if (typeof object.freezeOrder !== "object")
17827
- throw TypeError(".TW.Binance.Proto.SigningInput.freezeOrder: object expected");
17828
- message.freezeOrder = $root.TW.Binance.Proto.TokenFreezeOrder.fromObject(object.freezeOrder);
17829
- }
17830
- if (object.unfreezeOrder != null) {
17831
- if (typeof object.unfreezeOrder !== "object")
17832
- throw TypeError(".TW.Binance.Proto.SigningInput.unfreezeOrder: object expected");
17833
- message.unfreezeOrder = $root.TW.Binance.Proto.TokenUnfreezeOrder.fromObject(object.unfreezeOrder);
17834
- }
17835
16531
  if (object.htltOrder != null) {
17836
16532
  if (typeof object.htltOrder !== "object")
17837
16533
  throw TypeError(".TW.Binance.Proto.SigningInput.htltOrder: object expected");
@@ -17852,21 +16548,6 @@
17852
16548
  throw TypeError(".TW.Binance.Proto.SigningInput.refundHTLTOrder: object expected");
17853
16549
  message.refundHTLTOrder = $root.TW.Binance.Proto.RefundHTLTOrder.fromObject(object.refundHTLTOrder);
17854
16550
  }
17855
- if (object.issueOrder != null) {
17856
- if (typeof object.issueOrder !== "object")
17857
- throw TypeError(".TW.Binance.Proto.SigningInput.issueOrder: object expected");
17858
- message.issueOrder = $root.TW.Binance.Proto.TokenIssueOrder.fromObject(object.issueOrder);
17859
- }
17860
- if (object.mintOrder != null) {
17861
- if (typeof object.mintOrder !== "object")
17862
- throw TypeError(".TW.Binance.Proto.SigningInput.mintOrder: object expected");
17863
- message.mintOrder = $root.TW.Binance.Proto.TokenMintOrder.fromObject(object.mintOrder);
17864
- }
17865
- if (object.burnOrder != null) {
17866
- if (typeof object.burnOrder !== "object")
17867
- throw TypeError(".TW.Binance.Proto.SigningInput.burnOrder: object expected");
17868
- message.burnOrder = $root.TW.Binance.Proto.TokenBurnOrder.fromObject(object.burnOrder);
17869
- }
17870
16551
  if (object.transferOutOrder != null) {
17871
16552
  if (typeof object.transferOutOrder !== "object")
17872
16553
  throw TypeError(".TW.Binance.Proto.SigningInput.transferOutOrder: object expected");
@@ -17985,16 +16666,6 @@
17985
16666
  if (options.oneofs)
17986
16667
  object.orderOneof = "sendOrder";
17987
16668
  }
17988
- if (message.freezeOrder != null && message.hasOwnProperty("freezeOrder")) {
17989
- object.freezeOrder = $root.TW.Binance.Proto.TokenFreezeOrder.toObject(message.freezeOrder, options);
17990
- if (options.oneofs)
17991
- object.orderOneof = "freezeOrder";
17992
- }
17993
- if (message.unfreezeOrder != null && message.hasOwnProperty("unfreezeOrder")) {
17994
- object.unfreezeOrder = $root.TW.Binance.Proto.TokenUnfreezeOrder.toObject(message.unfreezeOrder, options);
17995
- if (options.oneofs)
17996
- object.orderOneof = "unfreezeOrder";
17997
- }
17998
16669
  if (message.htltOrder != null && message.hasOwnProperty("htltOrder")) {
17999
16670
  object.htltOrder = $root.TW.Binance.Proto.HTLTOrder.toObject(message.htltOrder, options);
18000
16671
  if (options.oneofs)
@@ -18015,21 +16686,6 @@
18015
16686
  if (options.oneofs)
18016
16687
  object.orderOneof = "refundHTLTOrder";
18017
16688
  }
18018
- if (message.issueOrder != null && message.hasOwnProperty("issueOrder")) {
18019
- object.issueOrder = $root.TW.Binance.Proto.TokenIssueOrder.toObject(message.issueOrder, options);
18020
- if (options.oneofs)
18021
- object.orderOneof = "issueOrder";
18022
- }
18023
- if (message.mintOrder != null && message.hasOwnProperty("mintOrder")) {
18024
- object.mintOrder = $root.TW.Binance.Proto.TokenMintOrder.toObject(message.mintOrder, options);
18025
- if (options.oneofs)
18026
- object.orderOneof = "mintOrder";
18027
- }
18028
- if (message.burnOrder != null && message.hasOwnProperty("burnOrder")) {
18029
- object.burnOrder = $root.TW.Binance.Proto.TokenBurnOrder.toObject(message.burnOrder, options);
18030
- if (options.oneofs)
18031
- object.orderOneof = "burnOrder";
18032
- }
18033
16689
  if (message.transferOutOrder != null && message.hasOwnProperty("transferOutOrder")) {
18034
16690
  object.transferOutOrder = $root.TW.Binance.Proto.TransferOut.toObject(message.transferOutOrder, options);
18035
16691
  if (options.oneofs)