@trustwallet/wallet-core 4.8.4 → 4.8.6
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.
|
@@ -48292,6 +48292,12 @@ export namespace TW {
|
|
|
48292
48292
|
|
|
48293
48293
|
/** Pay gas */
|
|
48294
48294
|
gas?: (TW.Sui.Proto.IObjectRef|null);
|
|
48295
|
+
|
|
48296
|
+
/** Pay coinType */
|
|
48297
|
+
coinType?: (string|null);
|
|
48298
|
+
|
|
48299
|
+
/** Pay addressBalanceAmount */
|
|
48300
|
+
addressBalanceAmount?: (Long|null);
|
|
48295
48301
|
}
|
|
48296
48302
|
|
|
48297
48303
|
/** Represents a Pay. */
|
|
@@ -48315,6 +48321,12 @@ export namespace TW {
|
|
|
48315
48321
|
/** Pay gas. */
|
|
48316
48322
|
public gas?: (TW.Sui.Proto.IObjectRef|null);
|
|
48317
48323
|
|
|
48324
|
+
/** Pay coinType. */
|
|
48325
|
+
public coinType: string;
|
|
48326
|
+
|
|
48327
|
+
/** Pay addressBalanceAmount. */
|
|
48328
|
+
public addressBalanceAmount: Long;
|
|
48329
|
+
|
|
48318
48330
|
/**
|
|
48319
48331
|
* Creates a new Pay instance using the specified properties.
|
|
48320
48332
|
* @param [properties] Properties to set
|
|
@@ -48376,6 +48388,104 @@ export namespace TW {
|
|
|
48376
48388
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
48377
48389
|
}
|
|
48378
48390
|
|
|
48391
|
+
/** Properties of a ValidDuring. */
|
|
48392
|
+
interface IValidDuring {
|
|
48393
|
+
|
|
48394
|
+
/** ValidDuring minEpoch */
|
|
48395
|
+
minEpoch?: (Long|null);
|
|
48396
|
+
|
|
48397
|
+
/** ValidDuring maxEpoch */
|
|
48398
|
+
maxEpoch?: (Long|null);
|
|
48399
|
+
|
|
48400
|
+
/** ValidDuring chain */
|
|
48401
|
+
chain?: (string|null);
|
|
48402
|
+
|
|
48403
|
+
/** ValidDuring nonce */
|
|
48404
|
+
nonce?: (number|null);
|
|
48405
|
+
}
|
|
48406
|
+
|
|
48407
|
+
/** Represents a ValidDuring. */
|
|
48408
|
+
class ValidDuring implements IValidDuring {
|
|
48409
|
+
|
|
48410
|
+
/**
|
|
48411
|
+
* Constructs a new ValidDuring.
|
|
48412
|
+
* @param [properties] Properties to set
|
|
48413
|
+
*/
|
|
48414
|
+
constructor(properties?: TW.Sui.Proto.IValidDuring);
|
|
48415
|
+
|
|
48416
|
+
/** ValidDuring minEpoch. */
|
|
48417
|
+
public minEpoch: Long;
|
|
48418
|
+
|
|
48419
|
+
/** ValidDuring maxEpoch. */
|
|
48420
|
+
public maxEpoch: Long;
|
|
48421
|
+
|
|
48422
|
+
/** ValidDuring chain. */
|
|
48423
|
+
public chain: string;
|
|
48424
|
+
|
|
48425
|
+
/** ValidDuring nonce. */
|
|
48426
|
+
public nonce: number;
|
|
48427
|
+
|
|
48428
|
+
/**
|
|
48429
|
+
* Creates a new ValidDuring instance using the specified properties.
|
|
48430
|
+
* @param [properties] Properties to set
|
|
48431
|
+
* @returns ValidDuring instance
|
|
48432
|
+
*/
|
|
48433
|
+
public static create(properties?: TW.Sui.Proto.IValidDuring): TW.Sui.Proto.ValidDuring;
|
|
48434
|
+
|
|
48435
|
+
/**
|
|
48436
|
+
* Encodes the specified ValidDuring message. Does not implicitly {@link TW.Sui.Proto.ValidDuring.verify|verify} messages.
|
|
48437
|
+
* @param message ValidDuring message or plain object to encode
|
|
48438
|
+
* @param [writer] Writer to encode to
|
|
48439
|
+
* @returns Writer
|
|
48440
|
+
*/
|
|
48441
|
+
public static encode(message: TW.Sui.Proto.IValidDuring, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
48442
|
+
|
|
48443
|
+
/**
|
|
48444
|
+
* Decodes a ValidDuring message from the specified reader or buffer.
|
|
48445
|
+
* @param reader Reader or buffer to decode from
|
|
48446
|
+
* @param [length] Message length if known beforehand
|
|
48447
|
+
* @returns ValidDuring
|
|
48448
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48449
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48450
|
+
*/
|
|
48451
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Sui.Proto.ValidDuring;
|
|
48452
|
+
|
|
48453
|
+
/**
|
|
48454
|
+
* Verifies a ValidDuring message.
|
|
48455
|
+
* @param message Plain object to verify
|
|
48456
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
48457
|
+
*/
|
|
48458
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
48459
|
+
|
|
48460
|
+
/**
|
|
48461
|
+
* Creates a ValidDuring message from a plain object. Also converts values to their respective internal types.
|
|
48462
|
+
* @param object Plain object
|
|
48463
|
+
* @returns ValidDuring
|
|
48464
|
+
*/
|
|
48465
|
+
public static fromObject(object: { [k: string]: any }): TW.Sui.Proto.ValidDuring;
|
|
48466
|
+
|
|
48467
|
+
/**
|
|
48468
|
+
* Creates a plain object from a ValidDuring message. Also converts values to other types if specified.
|
|
48469
|
+
* @param message ValidDuring
|
|
48470
|
+
* @param [options] Conversion options
|
|
48471
|
+
* @returns Plain object
|
|
48472
|
+
*/
|
|
48473
|
+
public static toObject(message: TW.Sui.Proto.ValidDuring, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
48474
|
+
|
|
48475
|
+
/**
|
|
48476
|
+
* Converts this ValidDuring to JSON.
|
|
48477
|
+
* @returns JSON object
|
|
48478
|
+
*/
|
|
48479
|
+
public toJSON(): { [k: string]: any };
|
|
48480
|
+
|
|
48481
|
+
/**
|
|
48482
|
+
* Gets the default type url for ValidDuring
|
|
48483
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
48484
|
+
* @returns The default type url
|
|
48485
|
+
*/
|
|
48486
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
48487
|
+
}
|
|
48488
|
+
|
|
48379
48489
|
/** Properties of a PaySui. */
|
|
48380
48490
|
interface IPaySui {
|
|
48381
48491
|
|
|
@@ -48387,6 +48497,9 @@ export namespace TW {
|
|
|
48387
48497
|
|
|
48388
48498
|
/** PaySui amounts */
|
|
48389
48499
|
amounts?: (Long[]|null);
|
|
48500
|
+
|
|
48501
|
+
/** PaySui addressBalanceAmount */
|
|
48502
|
+
addressBalanceAmount?: (Long|null);
|
|
48390
48503
|
}
|
|
48391
48504
|
|
|
48392
48505
|
/** Represents a PaySui. */
|
|
@@ -48407,6 +48520,9 @@ export namespace TW {
|
|
|
48407
48520
|
/** PaySui amounts. */
|
|
48408
48521
|
public amounts: Long[];
|
|
48409
48522
|
|
|
48523
|
+
/** PaySui addressBalanceAmount. */
|
|
48524
|
+
public addressBalanceAmount: Long;
|
|
48525
|
+
|
|
48410
48526
|
/**
|
|
48411
48527
|
* Creates a new PaySui instance using the specified properties.
|
|
48412
48528
|
* @param [properties] Properties to set
|
|
@@ -48476,6 +48592,9 @@ export namespace TW {
|
|
|
48476
48592
|
|
|
48477
48593
|
/** PayAllSui recipient */
|
|
48478
48594
|
recipient?: (string|null);
|
|
48595
|
+
|
|
48596
|
+
/** PayAllSui addressBalanceAmount */
|
|
48597
|
+
addressBalanceAmount?: (Long|null);
|
|
48479
48598
|
}
|
|
48480
48599
|
|
|
48481
48600
|
/** Represents a PayAllSui. */
|
|
@@ -48493,6 +48612,9 @@ export namespace TW {
|
|
|
48493
48612
|
/** PayAllSui recipient. */
|
|
48494
48613
|
public recipient: string;
|
|
48495
48614
|
|
|
48615
|
+
/** PayAllSui addressBalanceAmount. */
|
|
48616
|
+
public addressBalanceAmount: Long;
|
|
48617
|
+
|
|
48496
48618
|
/**
|
|
48497
48619
|
* Creates a new PayAllSui instance using the specified properties.
|
|
48498
48620
|
* @param [properties] Properties to set
|
|
@@ -48568,6 +48690,9 @@ export namespace TW {
|
|
|
48568
48690
|
|
|
48569
48691
|
/** RequestAddStake gas */
|
|
48570
48692
|
gas?: (TW.Sui.Proto.IObjectRef|null);
|
|
48693
|
+
|
|
48694
|
+
/** RequestAddStake addressBalanceAmount */
|
|
48695
|
+
addressBalanceAmount?: (Long|null);
|
|
48571
48696
|
}
|
|
48572
48697
|
|
|
48573
48698
|
/** Represents a RequestAddStake. */
|
|
@@ -48591,6 +48716,9 @@ export namespace TW {
|
|
|
48591
48716
|
/** RequestAddStake gas. */
|
|
48592
48717
|
public gas?: (TW.Sui.Proto.IObjectRef|null);
|
|
48593
48718
|
|
|
48719
|
+
/** RequestAddStake addressBalanceAmount. */
|
|
48720
|
+
public addressBalanceAmount: Long;
|
|
48721
|
+
|
|
48594
48722
|
/**
|
|
48595
48723
|
* Creates a new RequestAddStake instance using the specified properties.
|
|
48596
48724
|
* @param [properties] Properties to set
|
|
@@ -48868,6 +48996,9 @@ export namespace TW {
|
|
|
48868
48996
|
|
|
48869
48997
|
/** SigningInput referenceGasPrice */
|
|
48870
48998
|
referenceGasPrice?: (Long|null);
|
|
48999
|
+
|
|
49000
|
+
/** SigningInput validDuring */
|
|
49001
|
+
validDuring?: (TW.Sui.Proto.IValidDuring|null);
|
|
48871
49002
|
}
|
|
48872
49003
|
|
|
48873
49004
|
/** Represents a SigningInput. */
|
|
@@ -48915,6 +49046,9 @@ export namespace TW {
|
|
|
48915
49046
|
/** SigningInput referenceGasPrice. */
|
|
48916
49047
|
public referenceGasPrice: Long;
|
|
48917
49048
|
|
|
49049
|
+
/** SigningInput validDuring. */
|
|
49050
|
+
public validDuring?: (TW.Sui.Proto.IValidDuring|null);
|
|
49051
|
+
|
|
48918
49052
|
/** SigningInput transactionPayload. */
|
|
48919
49053
|
public transactionPayload?: ("signDirectMessage"|"pay"|"paySui"|"payAllSui"|"requestAddStake"|"requestWithdrawStake"|"transferObject"|"rawJson");
|
|
48920
49054
|
|
|
@@ -161931,6 +161931,8 @@
|
|
|
161931
161931
|
* @property {Array.<string>|null} [recipients] Pay recipients
|
|
161932
161932
|
* @property {Array.<Long>|null} [amounts] Pay amounts
|
|
161933
161933
|
* @property {TW.Sui.Proto.IObjectRef|null} [gas] Pay gas
|
|
161934
|
+
* @property {string|null} [coinType] Pay coinType
|
|
161935
|
+
* @property {Long|null} [addressBalanceAmount] Pay addressBalanceAmount
|
|
161934
161936
|
*/
|
|
161935
161937
|
|
|
161936
161938
|
/**
|
|
@@ -161983,6 +161985,22 @@
|
|
|
161983
161985
|
*/
|
|
161984
161986
|
Pay.prototype.gas = null;
|
|
161985
161987
|
|
|
161988
|
+
/**
|
|
161989
|
+
* Pay coinType.
|
|
161990
|
+
* @member {string} coinType
|
|
161991
|
+
* @memberof TW.Sui.Proto.Pay
|
|
161992
|
+
* @instance
|
|
161993
|
+
*/
|
|
161994
|
+
Pay.prototype.coinType = "";
|
|
161995
|
+
|
|
161996
|
+
/**
|
|
161997
|
+
* Pay addressBalanceAmount.
|
|
161998
|
+
* @member {Long} addressBalanceAmount
|
|
161999
|
+
* @memberof TW.Sui.Proto.Pay
|
|
162000
|
+
* @instance
|
|
162001
|
+
*/
|
|
162002
|
+
Pay.prototype.addressBalanceAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
162003
|
+
|
|
161986
162004
|
/**
|
|
161987
162005
|
* Creates a new Pay instance using the specified properties.
|
|
161988
162006
|
* @function create
|
|
@@ -162025,6 +162043,10 @@
|
|
|
162025
162043
|
}
|
|
162026
162044
|
if (message.gas != null && Object.hasOwnProperty.call(message, "gas"))
|
|
162027
162045
|
$root.TW.Sui.Proto.ObjectRef.encode(message.gas, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
|
|
162046
|
+
if (message.coinType != null && Object.hasOwnProperty.call(message, "coinType"))
|
|
162047
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.coinType);
|
|
162048
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
162049
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.addressBalanceAmount);
|
|
162028
162050
|
return writer;
|
|
162029
162051
|
};
|
|
162030
162052
|
|
|
@@ -162095,6 +162117,14 @@
|
|
|
162095
162117
|
message.gas = $root.TW.Sui.Proto.ObjectRef.decode(reader, reader.uint32(), undefined, long + 1);
|
|
162096
162118
|
break;
|
|
162097
162119
|
}
|
|
162120
|
+
case 5: {
|
|
162121
|
+
message.coinType = reader.string();
|
|
162122
|
+
break;
|
|
162123
|
+
}
|
|
162124
|
+
case 6: {
|
|
162125
|
+
message.addressBalanceAmount = reader.uint64();
|
|
162126
|
+
break;
|
|
162127
|
+
}
|
|
162098
162128
|
default:
|
|
162099
162129
|
reader.skipType(tag & 7, long);
|
|
162100
162130
|
break;
|
|
@@ -162151,6 +162181,12 @@
|
|
|
162151
162181
|
if (error)
|
|
162152
162182
|
return "gas." + error;
|
|
162153
162183
|
}
|
|
162184
|
+
if (message.coinType != null && Object.hasOwnProperty.call(message, "coinType"))
|
|
162185
|
+
if (!$util.isString(message.coinType))
|
|
162186
|
+
return "coinType: string expected";
|
|
162187
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
162188
|
+
if (!$util.isInteger(message.addressBalanceAmount) && !(message.addressBalanceAmount && $util.isInteger(message.addressBalanceAmount.low) && $util.isInteger(message.addressBalanceAmount.high)))
|
|
162189
|
+
return "addressBalanceAmount: integer|Long expected";
|
|
162154
162190
|
return null;
|
|
162155
162191
|
};
|
|
162156
162192
|
|
|
@@ -162208,6 +162244,17 @@
|
|
|
162208
162244
|
throw TypeError(".TW.Sui.Proto.Pay.gas: object expected");
|
|
162209
162245
|
message.gas = $root.TW.Sui.Proto.ObjectRef.fromObject(object.gas, long + 1);
|
|
162210
162246
|
}
|
|
162247
|
+
if (object.coinType != null)
|
|
162248
|
+
message.coinType = String(object.coinType);
|
|
162249
|
+
if (object.addressBalanceAmount != null)
|
|
162250
|
+
if ($util.Long)
|
|
162251
|
+
message.addressBalanceAmount = $util.Long.fromValue(object.addressBalanceAmount, true);
|
|
162252
|
+
else if (typeof object.addressBalanceAmount === "string")
|
|
162253
|
+
message.addressBalanceAmount = parseInt(object.addressBalanceAmount, 10);
|
|
162254
|
+
else if (typeof object.addressBalanceAmount === "number")
|
|
162255
|
+
message.addressBalanceAmount = object.addressBalanceAmount;
|
|
162256
|
+
else if (typeof object.addressBalanceAmount === "object")
|
|
162257
|
+
message.addressBalanceAmount = new $util.LongBits(object.addressBalanceAmount.low >>> 0, object.addressBalanceAmount.high >>> 0).toNumber(true);
|
|
162211
162258
|
return message;
|
|
162212
162259
|
};
|
|
162213
162260
|
|
|
@@ -162233,8 +162280,15 @@
|
|
|
162233
162280
|
object.recipients = [];
|
|
162234
162281
|
object.amounts = [];
|
|
162235
162282
|
}
|
|
162236
|
-
if (options.defaults)
|
|
162283
|
+
if (options.defaults) {
|
|
162237
162284
|
object.gas = null;
|
|
162285
|
+
object.coinType = "";
|
|
162286
|
+
if ($util.Long) {
|
|
162287
|
+
var long = new $util.Long(0, 0, true);
|
|
162288
|
+
object.addressBalanceAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
162289
|
+
} else
|
|
162290
|
+
object.addressBalanceAmount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
162291
|
+
}
|
|
162238
162292
|
if (message.inputCoins && message.inputCoins.length) {
|
|
162239
162293
|
object.inputCoins = [];
|
|
162240
162294
|
for (var j = 0; j < message.inputCoins.length; ++j)
|
|
@@ -162257,6 +162311,15 @@
|
|
|
162257
162311
|
}
|
|
162258
162312
|
if (message.gas != null && Object.hasOwnProperty.call(message, "gas"))
|
|
162259
162313
|
object.gas = $root.TW.Sui.Proto.ObjectRef.toObject(message.gas, options, q + 1);
|
|
162314
|
+
if (message.coinType != null && Object.hasOwnProperty.call(message, "coinType"))
|
|
162315
|
+
object.coinType = message.coinType;
|
|
162316
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
162317
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
162318
|
+
object.addressBalanceAmount = typeof message.addressBalanceAmount === "number" ? BigInt(message.addressBalanceAmount) : $util.Long.fromBits(message.addressBalanceAmount.low >>> 0, message.addressBalanceAmount.high >>> 0, true).toBigInt();
|
|
162319
|
+
else if (typeof message.addressBalanceAmount === "number")
|
|
162320
|
+
object.addressBalanceAmount = options.longs === String ? String(message.addressBalanceAmount) : message.addressBalanceAmount;
|
|
162321
|
+
else
|
|
162322
|
+
object.addressBalanceAmount = options.longs === String ? $util.Long.prototype.toString.call(message.addressBalanceAmount) : options.longs === Number ? new $util.LongBits(message.addressBalanceAmount.low >>> 0, message.addressBalanceAmount.high >>> 0).toNumber(true) : message.addressBalanceAmount;
|
|
162260
162323
|
return object;
|
|
162261
162324
|
};
|
|
162262
162325
|
|
|
@@ -162289,6 +162352,321 @@
|
|
|
162289
162352
|
return Pay;
|
|
162290
162353
|
})();
|
|
162291
162354
|
|
|
162355
|
+
Proto.ValidDuring = (function() {
|
|
162356
|
+
|
|
162357
|
+
/**
|
|
162358
|
+
* Properties of a ValidDuring.
|
|
162359
|
+
* @memberof TW.Sui.Proto
|
|
162360
|
+
* @interface IValidDuring
|
|
162361
|
+
* @property {Long|null} [minEpoch] ValidDuring minEpoch
|
|
162362
|
+
* @property {Long|null} [maxEpoch] ValidDuring maxEpoch
|
|
162363
|
+
* @property {string|null} [chain] ValidDuring chain
|
|
162364
|
+
* @property {number|null} [nonce] ValidDuring nonce
|
|
162365
|
+
*/
|
|
162366
|
+
|
|
162367
|
+
/**
|
|
162368
|
+
* Constructs a new ValidDuring.
|
|
162369
|
+
* @memberof TW.Sui.Proto
|
|
162370
|
+
* @classdesc Represents a ValidDuring.
|
|
162371
|
+
* @implements IValidDuring
|
|
162372
|
+
* @constructor
|
|
162373
|
+
* @param {TW.Sui.Proto.IValidDuring=} [properties] Properties to set
|
|
162374
|
+
*/
|
|
162375
|
+
function ValidDuring(properties) {
|
|
162376
|
+
if (properties)
|
|
162377
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
162378
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
162379
|
+
this[keys[i]] = properties[keys[i]];
|
|
162380
|
+
}
|
|
162381
|
+
|
|
162382
|
+
/**
|
|
162383
|
+
* ValidDuring minEpoch.
|
|
162384
|
+
* @member {Long} minEpoch
|
|
162385
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162386
|
+
* @instance
|
|
162387
|
+
*/
|
|
162388
|
+
ValidDuring.prototype.minEpoch = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
162389
|
+
|
|
162390
|
+
/**
|
|
162391
|
+
* ValidDuring maxEpoch.
|
|
162392
|
+
* @member {Long} maxEpoch
|
|
162393
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162394
|
+
* @instance
|
|
162395
|
+
*/
|
|
162396
|
+
ValidDuring.prototype.maxEpoch = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
162397
|
+
|
|
162398
|
+
/**
|
|
162399
|
+
* ValidDuring chain.
|
|
162400
|
+
* @member {string} chain
|
|
162401
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162402
|
+
* @instance
|
|
162403
|
+
*/
|
|
162404
|
+
ValidDuring.prototype.chain = "";
|
|
162405
|
+
|
|
162406
|
+
/**
|
|
162407
|
+
* ValidDuring nonce.
|
|
162408
|
+
* @member {number} nonce
|
|
162409
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162410
|
+
* @instance
|
|
162411
|
+
*/
|
|
162412
|
+
ValidDuring.prototype.nonce = 0;
|
|
162413
|
+
|
|
162414
|
+
/**
|
|
162415
|
+
* Creates a new ValidDuring instance using the specified properties.
|
|
162416
|
+
* @function create
|
|
162417
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162418
|
+
* @static
|
|
162419
|
+
* @param {TW.Sui.Proto.IValidDuring=} [properties] Properties to set
|
|
162420
|
+
* @returns {TW.Sui.Proto.ValidDuring} ValidDuring instance
|
|
162421
|
+
*/
|
|
162422
|
+
ValidDuring.create = function create(properties) {
|
|
162423
|
+
return new ValidDuring(properties);
|
|
162424
|
+
};
|
|
162425
|
+
|
|
162426
|
+
/**
|
|
162427
|
+
* Encodes the specified ValidDuring message. Does not implicitly {@link TW.Sui.Proto.ValidDuring.verify|verify} messages.
|
|
162428
|
+
* @function encode
|
|
162429
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162430
|
+
* @static
|
|
162431
|
+
* @param {TW.Sui.Proto.IValidDuring} message ValidDuring message or plain object to encode
|
|
162432
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
162433
|
+
* @returns {$protobuf.Writer} Writer
|
|
162434
|
+
*/
|
|
162435
|
+
ValidDuring.encode = function encode(message, writer, q) {
|
|
162436
|
+
if (!writer)
|
|
162437
|
+
writer = $Writer.create();
|
|
162438
|
+
if (q === undefined)
|
|
162439
|
+
q = 0;
|
|
162440
|
+
if (q > $util.recursionLimit)
|
|
162441
|
+
throw Error("max depth exceeded");
|
|
162442
|
+
if (message.minEpoch != null && Object.hasOwnProperty.call(message, "minEpoch"))
|
|
162443
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.minEpoch);
|
|
162444
|
+
if (message.maxEpoch != null && Object.hasOwnProperty.call(message, "maxEpoch"))
|
|
162445
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.maxEpoch);
|
|
162446
|
+
if (message.chain != null && Object.hasOwnProperty.call(message, "chain"))
|
|
162447
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.chain);
|
|
162448
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
162449
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.nonce);
|
|
162450
|
+
return writer;
|
|
162451
|
+
};
|
|
162452
|
+
|
|
162453
|
+
/**
|
|
162454
|
+
* Decodes a ValidDuring message from the specified reader or buffer.
|
|
162455
|
+
* @function decode
|
|
162456
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162457
|
+
* @static
|
|
162458
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
162459
|
+
* @param {number} [length] Message length if known beforehand
|
|
162460
|
+
* @returns {TW.Sui.Proto.ValidDuring} ValidDuring
|
|
162461
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
162462
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
162463
|
+
*/
|
|
162464
|
+
ValidDuring.decode = function decode(reader, length, error, long) {
|
|
162465
|
+
if (!(reader instanceof $Reader))
|
|
162466
|
+
reader = $Reader.create(reader);
|
|
162467
|
+
if (long === undefined)
|
|
162468
|
+
long = 0;
|
|
162469
|
+
if (long > $Reader.recursionLimit)
|
|
162470
|
+
throw Error("maximum nesting depth exceeded");
|
|
162471
|
+
var end, message;
|
|
162472
|
+
if (length === undefined)
|
|
162473
|
+
end = reader.len;
|
|
162474
|
+
else {
|
|
162475
|
+
end = reader.pos + length;
|
|
162476
|
+
if (end > reader.len)
|
|
162477
|
+
throw RangeError("index out of range");
|
|
162478
|
+
length = reader.len;
|
|
162479
|
+
reader.len = end;
|
|
162480
|
+
}
|
|
162481
|
+
message = new $root.TW.Sui.Proto.ValidDuring();
|
|
162482
|
+
while (reader.pos < end) {
|
|
162483
|
+
var tag = reader.uint32();
|
|
162484
|
+
if (tag === error)
|
|
162485
|
+
break;
|
|
162486
|
+
switch (tag >>> 3) {
|
|
162487
|
+
case 1: {
|
|
162488
|
+
message.minEpoch = reader.uint64();
|
|
162489
|
+
break;
|
|
162490
|
+
}
|
|
162491
|
+
case 2: {
|
|
162492
|
+
message.maxEpoch = reader.uint64();
|
|
162493
|
+
break;
|
|
162494
|
+
}
|
|
162495
|
+
case 3: {
|
|
162496
|
+
message.chain = reader.string();
|
|
162497
|
+
break;
|
|
162498
|
+
}
|
|
162499
|
+
case 4: {
|
|
162500
|
+
message.nonce = reader.uint32();
|
|
162501
|
+
break;
|
|
162502
|
+
}
|
|
162503
|
+
default:
|
|
162504
|
+
reader.skipType(tag & 7, long);
|
|
162505
|
+
break;
|
|
162506
|
+
}
|
|
162507
|
+
}
|
|
162508
|
+
if (length !== undefined) {
|
|
162509
|
+
if (reader.pos !== end)
|
|
162510
|
+
throw RangeError("index out of range");
|
|
162511
|
+
reader.len = length;
|
|
162512
|
+
}
|
|
162513
|
+
return message;
|
|
162514
|
+
};
|
|
162515
|
+
|
|
162516
|
+
/**
|
|
162517
|
+
* Verifies a ValidDuring message.
|
|
162518
|
+
* @function verify
|
|
162519
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162520
|
+
* @static
|
|
162521
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
162522
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
162523
|
+
*/
|
|
162524
|
+
ValidDuring.verify = function verify(message, long) {
|
|
162525
|
+
if (typeof message !== "object" || message === null)
|
|
162526
|
+
return "object expected";
|
|
162527
|
+
if (long === undefined)
|
|
162528
|
+
long = 0;
|
|
162529
|
+
if (long > $util.recursionLimit)
|
|
162530
|
+
return "maximum nesting depth exceeded";
|
|
162531
|
+
if (message.minEpoch != null && Object.hasOwnProperty.call(message, "minEpoch"))
|
|
162532
|
+
if (!$util.isInteger(message.minEpoch) && !(message.minEpoch && $util.isInteger(message.minEpoch.low) && $util.isInteger(message.minEpoch.high)))
|
|
162533
|
+
return "minEpoch: integer|Long expected";
|
|
162534
|
+
if (message.maxEpoch != null && Object.hasOwnProperty.call(message, "maxEpoch"))
|
|
162535
|
+
if (!$util.isInteger(message.maxEpoch) && !(message.maxEpoch && $util.isInteger(message.maxEpoch.low) && $util.isInteger(message.maxEpoch.high)))
|
|
162536
|
+
return "maxEpoch: integer|Long expected";
|
|
162537
|
+
if (message.chain != null && Object.hasOwnProperty.call(message, "chain"))
|
|
162538
|
+
if (!$util.isString(message.chain))
|
|
162539
|
+
return "chain: string expected";
|
|
162540
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
162541
|
+
if (!$util.isInteger(message.nonce))
|
|
162542
|
+
return "nonce: integer expected";
|
|
162543
|
+
return null;
|
|
162544
|
+
};
|
|
162545
|
+
|
|
162546
|
+
/**
|
|
162547
|
+
* Creates a ValidDuring message from a plain object. Also converts values to their respective internal types.
|
|
162548
|
+
* @function fromObject
|
|
162549
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162550
|
+
* @static
|
|
162551
|
+
* @param {Object.<string,*>} object Plain object
|
|
162552
|
+
* @returns {TW.Sui.Proto.ValidDuring} ValidDuring
|
|
162553
|
+
*/
|
|
162554
|
+
ValidDuring.fromObject = function fromObject(object, long) {
|
|
162555
|
+
if (object instanceof $root.TW.Sui.Proto.ValidDuring)
|
|
162556
|
+
return object;
|
|
162557
|
+
if (!$util.isObject(object))
|
|
162558
|
+
throw TypeError(".TW.Sui.Proto.ValidDuring: object expected");
|
|
162559
|
+
if (long === undefined)
|
|
162560
|
+
long = 0;
|
|
162561
|
+
if (long > $util.recursionLimit)
|
|
162562
|
+
throw Error("maximum nesting depth exceeded");
|
|
162563
|
+
var message = new $root.TW.Sui.Proto.ValidDuring();
|
|
162564
|
+
if (object.minEpoch != null)
|
|
162565
|
+
if ($util.Long)
|
|
162566
|
+
message.minEpoch = $util.Long.fromValue(object.minEpoch, true);
|
|
162567
|
+
else if (typeof object.minEpoch === "string")
|
|
162568
|
+
message.minEpoch = parseInt(object.minEpoch, 10);
|
|
162569
|
+
else if (typeof object.minEpoch === "number")
|
|
162570
|
+
message.minEpoch = object.minEpoch;
|
|
162571
|
+
else if (typeof object.minEpoch === "object")
|
|
162572
|
+
message.minEpoch = new $util.LongBits(object.minEpoch.low >>> 0, object.minEpoch.high >>> 0).toNumber(true);
|
|
162573
|
+
if (object.maxEpoch != null)
|
|
162574
|
+
if ($util.Long)
|
|
162575
|
+
message.maxEpoch = $util.Long.fromValue(object.maxEpoch, true);
|
|
162576
|
+
else if (typeof object.maxEpoch === "string")
|
|
162577
|
+
message.maxEpoch = parseInt(object.maxEpoch, 10);
|
|
162578
|
+
else if (typeof object.maxEpoch === "number")
|
|
162579
|
+
message.maxEpoch = object.maxEpoch;
|
|
162580
|
+
else if (typeof object.maxEpoch === "object")
|
|
162581
|
+
message.maxEpoch = new $util.LongBits(object.maxEpoch.low >>> 0, object.maxEpoch.high >>> 0).toNumber(true);
|
|
162582
|
+
if (object.chain != null)
|
|
162583
|
+
message.chain = String(object.chain);
|
|
162584
|
+
if (object.nonce != null)
|
|
162585
|
+
message.nonce = object.nonce >>> 0;
|
|
162586
|
+
return message;
|
|
162587
|
+
};
|
|
162588
|
+
|
|
162589
|
+
/**
|
|
162590
|
+
* Creates a plain object from a ValidDuring message. Also converts values to other types if specified.
|
|
162591
|
+
* @function toObject
|
|
162592
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162593
|
+
* @static
|
|
162594
|
+
* @param {TW.Sui.Proto.ValidDuring} message ValidDuring
|
|
162595
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
162596
|
+
* @returns {Object.<string,*>} Plain object
|
|
162597
|
+
*/
|
|
162598
|
+
ValidDuring.toObject = function toObject(message, options, q) {
|
|
162599
|
+
if (!options)
|
|
162600
|
+
options = {};
|
|
162601
|
+
if (q === undefined)
|
|
162602
|
+
q = 0;
|
|
162603
|
+
if (q > $util.recursionLimit)
|
|
162604
|
+
throw Error("max depth exceeded");
|
|
162605
|
+
var object = {};
|
|
162606
|
+
if (options.defaults) {
|
|
162607
|
+
if ($util.Long) {
|
|
162608
|
+
var long = new $util.Long(0, 0, true);
|
|
162609
|
+
object.minEpoch = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
162610
|
+
} else
|
|
162611
|
+
object.minEpoch = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
162612
|
+
if ($util.Long) {
|
|
162613
|
+
var long = new $util.Long(0, 0, true);
|
|
162614
|
+
object.maxEpoch = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
162615
|
+
} else
|
|
162616
|
+
object.maxEpoch = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
162617
|
+
object.chain = "";
|
|
162618
|
+
object.nonce = 0;
|
|
162619
|
+
}
|
|
162620
|
+
if (message.minEpoch != null && Object.hasOwnProperty.call(message, "minEpoch"))
|
|
162621
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
162622
|
+
object.minEpoch = typeof message.minEpoch === "number" ? BigInt(message.minEpoch) : $util.Long.fromBits(message.minEpoch.low >>> 0, message.minEpoch.high >>> 0, true).toBigInt();
|
|
162623
|
+
else if (typeof message.minEpoch === "number")
|
|
162624
|
+
object.minEpoch = options.longs === String ? String(message.minEpoch) : message.minEpoch;
|
|
162625
|
+
else
|
|
162626
|
+
object.minEpoch = options.longs === String ? $util.Long.prototype.toString.call(message.minEpoch) : options.longs === Number ? new $util.LongBits(message.minEpoch.low >>> 0, message.minEpoch.high >>> 0).toNumber(true) : message.minEpoch;
|
|
162627
|
+
if (message.maxEpoch != null && Object.hasOwnProperty.call(message, "maxEpoch"))
|
|
162628
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
162629
|
+
object.maxEpoch = typeof message.maxEpoch === "number" ? BigInt(message.maxEpoch) : $util.Long.fromBits(message.maxEpoch.low >>> 0, message.maxEpoch.high >>> 0, true).toBigInt();
|
|
162630
|
+
else if (typeof message.maxEpoch === "number")
|
|
162631
|
+
object.maxEpoch = options.longs === String ? String(message.maxEpoch) : message.maxEpoch;
|
|
162632
|
+
else
|
|
162633
|
+
object.maxEpoch = options.longs === String ? $util.Long.prototype.toString.call(message.maxEpoch) : options.longs === Number ? new $util.LongBits(message.maxEpoch.low >>> 0, message.maxEpoch.high >>> 0).toNumber(true) : message.maxEpoch;
|
|
162634
|
+
if (message.chain != null && Object.hasOwnProperty.call(message, "chain"))
|
|
162635
|
+
object.chain = message.chain;
|
|
162636
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
162637
|
+
object.nonce = message.nonce;
|
|
162638
|
+
return object;
|
|
162639
|
+
};
|
|
162640
|
+
|
|
162641
|
+
/**
|
|
162642
|
+
* Converts this ValidDuring to JSON.
|
|
162643
|
+
* @function toJSON
|
|
162644
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162645
|
+
* @instance
|
|
162646
|
+
* @returns {Object.<string,*>} JSON object
|
|
162647
|
+
*/
|
|
162648
|
+
ValidDuring.prototype.toJSON = function toJSON() {
|
|
162649
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
162650
|
+
};
|
|
162651
|
+
|
|
162652
|
+
/**
|
|
162653
|
+
* Gets the default type url for ValidDuring
|
|
162654
|
+
* @function getTypeUrl
|
|
162655
|
+
* @memberof TW.Sui.Proto.ValidDuring
|
|
162656
|
+
* @static
|
|
162657
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
162658
|
+
* @returns {string} The default type url
|
|
162659
|
+
*/
|
|
162660
|
+
ValidDuring.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
162661
|
+
if (typeUrlPrefix === undefined) {
|
|
162662
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
162663
|
+
}
|
|
162664
|
+
return typeUrlPrefix + "/TW.Sui.Proto.ValidDuring";
|
|
162665
|
+
};
|
|
162666
|
+
|
|
162667
|
+
return ValidDuring;
|
|
162668
|
+
})();
|
|
162669
|
+
|
|
162292
162670
|
Proto.PaySui = (function() {
|
|
162293
162671
|
|
|
162294
162672
|
/**
|
|
@@ -162298,6 +162676,7 @@
|
|
|
162298
162676
|
* @property {Array.<TW.Sui.Proto.IObjectRef>|null} [inputCoins] PaySui inputCoins
|
|
162299
162677
|
* @property {Array.<string>|null} [recipients] PaySui recipients
|
|
162300
162678
|
* @property {Array.<Long>|null} [amounts] PaySui amounts
|
|
162679
|
+
* @property {Long|null} [addressBalanceAmount] PaySui addressBalanceAmount
|
|
162301
162680
|
*/
|
|
162302
162681
|
|
|
162303
162682
|
/**
|
|
@@ -162342,6 +162721,14 @@
|
|
|
162342
162721
|
*/
|
|
162343
162722
|
PaySui.prototype.amounts = $util.emptyArray;
|
|
162344
162723
|
|
|
162724
|
+
/**
|
|
162725
|
+
* PaySui addressBalanceAmount.
|
|
162726
|
+
* @member {Long} addressBalanceAmount
|
|
162727
|
+
* @memberof TW.Sui.Proto.PaySui
|
|
162728
|
+
* @instance
|
|
162729
|
+
*/
|
|
162730
|
+
PaySui.prototype.addressBalanceAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
162731
|
+
|
|
162345
162732
|
/**
|
|
162346
162733
|
* Creates a new PaySui instance using the specified properties.
|
|
162347
162734
|
* @function create
|
|
@@ -162382,6 +162769,8 @@
|
|
|
162382
162769
|
writer.uint64(message.amounts[i]);
|
|
162383
162770
|
writer.ldelim();
|
|
162384
162771
|
}
|
|
162772
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
162773
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.addressBalanceAmount);
|
|
162385
162774
|
return writer;
|
|
162386
162775
|
};
|
|
162387
162776
|
|
|
@@ -162448,6 +162837,10 @@
|
|
|
162448
162837
|
message.amounts.push(reader.uint64());
|
|
162449
162838
|
break;
|
|
162450
162839
|
}
|
|
162840
|
+
case 4: {
|
|
162841
|
+
message.addressBalanceAmount = reader.uint64();
|
|
162842
|
+
break;
|
|
162843
|
+
}
|
|
162451
162844
|
default:
|
|
162452
162845
|
reader.skipType(tag & 7, long);
|
|
162453
162846
|
break;
|
|
@@ -162499,6 +162892,9 @@
|
|
|
162499
162892
|
if (!$util.isInteger(message.amounts[i]) && !(message.amounts[i] && $util.isInteger(message.amounts[i].low) && $util.isInteger(message.amounts[i].high)))
|
|
162500
162893
|
return "amounts: integer|Long[] expected";
|
|
162501
162894
|
}
|
|
162895
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
162896
|
+
if (!$util.isInteger(message.addressBalanceAmount) && !(message.addressBalanceAmount && $util.isInteger(message.addressBalanceAmount.low) && $util.isInteger(message.addressBalanceAmount.high)))
|
|
162897
|
+
return "addressBalanceAmount: integer|Long expected";
|
|
162502
162898
|
return null;
|
|
162503
162899
|
};
|
|
162504
162900
|
|
|
@@ -162551,6 +162947,15 @@
|
|
|
162551
162947
|
else if (typeof object.amounts[i] === "object")
|
|
162552
162948
|
message.amounts[i] = new $util.LongBits(object.amounts[i].low >>> 0, object.amounts[i].high >>> 0).toNumber(true);
|
|
162553
162949
|
}
|
|
162950
|
+
if (object.addressBalanceAmount != null)
|
|
162951
|
+
if ($util.Long)
|
|
162952
|
+
message.addressBalanceAmount = $util.Long.fromValue(object.addressBalanceAmount, true);
|
|
162953
|
+
else if (typeof object.addressBalanceAmount === "string")
|
|
162954
|
+
message.addressBalanceAmount = parseInt(object.addressBalanceAmount, 10);
|
|
162955
|
+
else if (typeof object.addressBalanceAmount === "number")
|
|
162956
|
+
message.addressBalanceAmount = object.addressBalanceAmount;
|
|
162957
|
+
else if (typeof object.addressBalanceAmount === "object")
|
|
162958
|
+
message.addressBalanceAmount = new $util.LongBits(object.addressBalanceAmount.low >>> 0, object.addressBalanceAmount.high >>> 0).toNumber(true);
|
|
162554
162959
|
return message;
|
|
162555
162960
|
};
|
|
162556
162961
|
|
|
@@ -162576,6 +162981,12 @@
|
|
|
162576
162981
|
object.recipients = [];
|
|
162577
162982
|
object.amounts = [];
|
|
162578
162983
|
}
|
|
162984
|
+
if (options.defaults)
|
|
162985
|
+
if ($util.Long) {
|
|
162986
|
+
var long = new $util.Long(0, 0, true);
|
|
162987
|
+
object.addressBalanceAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
162988
|
+
} else
|
|
162989
|
+
object.addressBalanceAmount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
162579
162990
|
if (message.inputCoins && message.inputCoins.length) {
|
|
162580
162991
|
object.inputCoins = [];
|
|
162581
162992
|
for (var j = 0; j < message.inputCoins.length; ++j)
|
|
@@ -162596,6 +163007,13 @@
|
|
|
162596
163007
|
else
|
|
162597
163008
|
object.amounts[j] = options.longs === String ? $util.Long.prototype.toString.call(message.amounts[j]) : options.longs === Number ? new $util.LongBits(message.amounts[j].low >>> 0, message.amounts[j].high >>> 0).toNumber(true) : message.amounts[j];
|
|
162598
163009
|
}
|
|
163010
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
163011
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
163012
|
+
object.addressBalanceAmount = typeof message.addressBalanceAmount === "number" ? BigInt(message.addressBalanceAmount) : $util.Long.fromBits(message.addressBalanceAmount.low >>> 0, message.addressBalanceAmount.high >>> 0, true).toBigInt();
|
|
163013
|
+
else if (typeof message.addressBalanceAmount === "number")
|
|
163014
|
+
object.addressBalanceAmount = options.longs === String ? String(message.addressBalanceAmount) : message.addressBalanceAmount;
|
|
163015
|
+
else
|
|
163016
|
+
object.addressBalanceAmount = options.longs === String ? $util.Long.prototype.toString.call(message.addressBalanceAmount) : options.longs === Number ? new $util.LongBits(message.addressBalanceAmount.low >>> 0, message.addressBalanceAmount.high >>> 0).toNumber(true) : message.addressBalanceAmount;
|
|
162599
163017
|
return object;
|
|
162600
163018
|
};
|
|
162601
163019
|
|
|
@@ -162636,6 +163054,7 @@
|
|
|
162636
163054
|
* @interface IPayAllSui
|
|
162637
163055
|
* @property {Array.<TW.Sui.Proto.IObjectRef>|null} [inputCoins] PayAllSui inputCoins
|
|
162638
163056
|
* @property {string|null} [recipient] PayAllSui recipient
|
|
163057
|
+
* @property {Long|null} [addressBalanceAmount] PayAllSui addressBalanceAmount
|
|
162639
163058
|
*/
|
|
162640
163059
|
|
|
162641
163060
|
/**
|
|
@@ -162670,6 +163089,14 @@
|
|
|
162670
163089
|
*/
|
|
162671
163090
|
PayAllSui.prototype.recipient = "";
|
|
162672
163091
|
|
|
163092
|
+
/**
|
|
163093
|
+
* PayAllSui addressBalanceAmount.
|
|
163094
|
+
* @member {Long} addressBalanceAmount
|
|
163095
|
+
* @memberof TW.Sui.Proto.PayAllSui
|
|
163096
|
+
* @instance
|
|
163097
|
+
*/
|
|
163098
|
+
PayAllSui.prototype.addressBalanceAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
163099
|
+
|
|
162673
163100
|
/**
|
|
162674
163101
|
* Creates a new PayAllSui instance using the specified properties.
|
|
162675
163102
|
* @function create
|
|
@@ -162703,6 +163130,8 @@
|
|
|
162703
163130
|
$root.TW.Sui.Proto.ObjectRef.encode(message.inputCoins[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
|
|
162704
163131
|
if (message.recipient != null && Object.hasOwnProperty.call(message, "recipient"))
|
|
162705
163132
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.recipient);
|
|
163133
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
163134
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.addressBalanceAmount);
|
|
162706
163135
|
return writer;
|
|
162707
163136
|
};
|
|
162708
163137
|
|
|
@@ -162750,6 +163179,10 @@
|
|
|
162750
163179
|
message.recipient = reader.string();
|
|
162751
163180
|
break;
|
|
162752
163181
|
}
|
|
163182
|
+
case 3: {
|
|
163183
|
+
message.addressBalanceAmount = reader.uint64();
|
|
163184
|
+
break;
|
|
163185
|
+
}
|
|
162753
163186
|
default:
|
|
162754
163187
|
reader.skipType(tag & 7, long);
|
|
162755
163188
|
break;
|
|
@@ -162790,6 +163223,9 @@
|
|
|
162790
163223
|
if (message.recipient != null && Object.hasOwnProperty.call(message, "recipient"))
|
|
162791
163224
|
if (!$util.isString(message.recipient))
|
|
162792
163225
|
return "recipient: string expected";
|
|
163226
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
163227
|
+
if (!$util.isInteger(message.addressBalanceAmount) && !(message.addressBalanceAmount && $util.isInteger(message.addressBalanceAmount.low) && $util.isInteger(message.addressBalanceAmount.high)))
|
|
163228
|
+
return "addressBalanceAmount: integer|Long expected";
|
|
162793
163229
|
return null;
|
|
162794
163230
|
};
|
|
162795
163231
|
|
|
@@ -162823,6 +163259,15 @@
|
|
|
162823
163259
|
}
|
|
162824
163260
|
if (object.recipient != null)
|
|
162825
163261
|
message.recipient = String(object.recipient);
|
|
163262
|
+
if (object.addressBalanceAmount != null)
|
|
163263
|
+
if ($util.Long)
|
|
163264
|
+
message.addressBalanceAmount = $util.Long.fromValue(object.addressBalanceAmount, true);
|
|
163265
|
+
else if (typeof object.addressBalanceAmount === "string")
|
|
163266
|
+
message.addressBalanceAmount = parseInt(object.addressBalanceAmount, 10);
|
|
163267
|
+
else if (typeof object.addressBalanceAmount === "number")
|
|
163268
|
+
message.addressBalanceAmount = object.addressBalanceAmount;
|
|
163269
|
+
else if (typeof object.addressBalanceAmount === "object")
|
|
163270
|
+
message.addressBalanceAmount = new $util.LongBits(object.addressBalanceAmount.low >>> 0, object.addressBalanceAmount.high >>> 0).toNumber(true);
|
|
162826
163271
|
return message;
|
|
162827
163272
|
};
|
|
162828
163273
|
|
|
@@ -162845,8 +163290,14 @@
|
|
|
162845
163290
|
var object = {};
|
|
162846
163291
|
if (options.arrays || options.defaults)
|
|
162847
163292
|
object.inputCoins = [];
|
|
162848
|
-
if (options.defaults)
|
|
163293
|
+
if (options.defaults) {
|
|
162849
163294
|
object.recipient = "";
|
|
163295
|
+
if ($util.Long) {
|
|
163296
|
+
var long = new $util.Long(0, 0, true);
|
|
163297
|
+
object.addressBalanceAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
163298
|
+
} else
|
|
163299
|
+
object.addressBalanceAmount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
163300
|
+
}
|
|
162850
163301
|
if (message.inputCoins && message.inputCoins.length) {
|
|
162851
163302
|
object.inputCoins = [];
|
|
162852
163303
|
for (var j = 0; j < message.inputCoins.length; ++j)
|
|
@@ -162854,6 +163305,13 @@
|
|
|
162854
163305
|
}
|
|
162855
163306
|
if (message.recipient != null && Object.hasOwnProperty.call(message, "recipient"))
|
|
162856
163307
|
object.recipient = message.recipient;
|
|
163308
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
163309
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
163310
|
+
object.addressBalanceAmount = typeof message.addressBalanceAmount === "number" ? BigInt(message.addressBalanceAmount) : $util.Long.fromBits(message.addressBalanceAmount.low >>> 0, message.addressBalanceAmount.high >>> 0, true).toBigInt();
|
|
163311
|
+
else if (typeof message.addressBalanceAmount === "number")
|
|
163312
|
+
object.addressBalanceAmount = options.longs === String ? String(message.addressBalanceAmount) : message.addressBalanceAmount;
|
|
163313
|
+
else
|
|
163314
|
+
object.addressBalanceAmount = options.longs === String ? $util.Long.prototype.toString.call(message.addressBalanceAmount) : options.longs === Number ? new $util.LongBits(message.addressBalanceAmount.low >>> 0, message.addressBalanceAmount.high >>> 0).toNumber(true) : message.addressBalanceAmount;
|
|
162857
163315
|
return object;
|
|
162858
163316
|
};
|
|
162859
163317
|
|
|
@@ -162896,6 +163354,7 @@
|
|
|
162896
163354
|
* @property {TW.Sui.Proto.IAmount|null} [amount] RequestAddStake amount
|
|
162897
163355
|
* @property {string|null} [validator] RequestAddStake validator
|
|
162898
163356
|
* @property {TW.Sui.Proto.IObjectRef|null} [gas] RequestAddStake gas
|
|
163357
|
+
* @property {Long|null} [addressBalanceAmount] RequestAddStake addressBalanceAmount
|
|
162899
163358
|
*/
|
|
162900
163359
|
|
|
162901
163360
|
/**
|
|
@@ -162946,6 +163405,14 @@
|
|
|
162946
163405
|
*/
|
|
162947
163406
|
RequestAddStake.prototype.gas = null;
|
|
162948
163407
|
|
|
163408
|
+
/**
|
|
163409
|
+
* RequestAddStake addressBalanceAmount.
|
|
163410
|
+
* @member {Long} addressBalanceAmount
|
|
163411
|
+
* @memberof TW.Sui.Proto.RequestAddStake
|
|
163412
|
+
* @instance
|
|
163413
|
+
*/
|
|
163414
|
+
RequestAddStake.prototype.addressBalanceAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
163415
|
+
|
|
162949
163416
|
/**
|
|
162950
163417
|
* Creates a new RequestAddStake instance using the specified properties.
|
|
162951
163418
|
* @function create
|
|
@@ -162983,6 +163450,8 @@
|
|
|
162983
163450
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.validator);
|
|
162984
163451
|
if (message.gas != null && Object.hasOwnProperty.call(message, "gas"))
|
|
162985
163452
|
$root.TW.Sui.Proto.ObjectRef.encode(message.gas, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
|
|
163453
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
163454
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.addressBalanceAmount);
|
|
162986
163455
|
return writer;
|
|
162987
163456
|
};
|
|
162988
163457
|
|
|
@@ -163038,6 +163507,10 @@
|
|
|
163038
163507
|
message.gas = $root.TW.Sui.Proto.ObjectRef.decode(reader, reader.uint32(), undefined, long + 1);
|
|
163039
163508
|
break;
|
|
163040
163509
|
}
|
|
163510
|
+
case 5: {
|
|
163511
|
+
message.addressBalanceAmount = reader.uint64();
|
|
163512
|
+
break;
|
|
163513
|
+
}
|
|
163041
163514
|
default:
|
|
163042
163515
|
reader.skipType(tag & 7, long);
|
|
163043
163516
|
break;
|
|
@@ -163088,6 +163561,9 @@
|
|
|
163088
163561
|
if (error)
|
|
163089
163562
|
return "gas." + error;
|
|
163090
163563
|
}
|
|
163564
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
163565
|
+
if (!$util.isInteger(message.addressBalanceAmount) && !(message.addressBalanceAmount && $util.isInteger(message.addressBalanceAmount.low) && $util.isInteger(message.addressBalanceAmount.high)))
|
|
163566
|
+
return "addressBalanceAmount: integer|Long expected";
|
|
163091
163567
|
return null;
|
|
163092
163568
|
};
|
|
163093
163569
|
|
|
@@ -163131,6 +163607,15 @@
|
|
|
163131
163607
|
throw TypeError(".TW.Sui.Proto.RequestAddStake.gas: object expected");
|
|
163132
163608
|
message.gas = $root.TW.Sui.Proto.ObjectRef.fromObject(object.gas, long + 1);
|
|
163133
163609
|
}
|
|
163610
|
+
if (object.addressBalanceAmount != null)
|
|
163611
|
+
if ($util.Long)
|
|
163612
|
+
message.addressBalanceAmount = $util.Long.fromValue(object.addressBalanceAmount, true);
|
|
163613
|
+
else if (typeof object.addressBalanceAmount === "string")
|
|
163614
|
+
message.addressBalanceAmount = parseInt(object.addressBalanceAmount, 10);
|
|
163615
|
+
else if (typeof object.addressBalanceAmount === "number")
|
|
163616
|
+
message.addressBalanceAmount = object.addressBalanceAmount;
|
|
163617
|
+
else if (typeof object.addressBalanceAmount === "object")
|
|
163618
|
+
message.addressBalanceAmount = new $util.LongBits(object.addressBalanceAmount.low >>> 0, object.addressBalanceAmount.high >>> 0).toNumber(true);
|
|
163134
163619
|
return message;
|
|
163135
163620
|
};
|
|
163136
163621
|
|
|
@@ -163157,6 +163642,11 @@
|
|
|
163157
163642
|
object.amount = null;
|
|
163158
163643
|
object.validator = "";
|
|
163159
163644
|
object.gas = null;
|
|
163645
|
+
if ($util.Long) {
|
|
163646
|
+
var long = new $util.Long(0, 0, true);
|
|
163647
|
+
object.addressBalanceAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
163648
|
+
} else
|
|
163649
|
+
object.addressBalanceAmount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
163160
163650
|
}
|
|
163161
163651
|
if (message.coins && message.coins.length) {
|
|
163162
163652
|
object.coins = [];
|
|
@@ -163169,6 +163659,13 @@
|
|
|
163169
163659
|
object.validator = message.validator;
|
|
163170
163660
|
if (message.gas != null && Object.hasOwnProperty.call(message, "gas"))
|
|
163171
163661
|
object.gas = $root.TW.Sui.Proto.ObjectRef.toObject(message.gas, options, q + 1);
|
|
163662
|
+
if (message.addressBalanceAmount != null && Object.hasOwnProperty.call(message, "addressBalanceAmount"))
|
|
163663
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
163664
|
+
object.addressBalanceAmount = typeof message.addressBalanceAmount === "number" ? BigInt(message.addressBalanceAmount) : $util.Long.fromBits(message.addressBalanceAmount.low >>> 0, message.addressBalanceAmount.high >>> 0, true).toBigInt();
|
|
163665
|
+
else if (typeof message.addressBalanceAmount === "number")
|
|
163666
|
+
object.addressBalanceAmount = options.longs === String ? String(message.addressBalanceAmount) : message.addressBalanceAmount;
|
|
163667
|
+
else
|
|
163668
|
+
object.addressBalanceAmount = options.longs === String ? $util.Long.prototype.toString.call(message.addressBalanceAmount) : options.longs === Number ? new $util.LongBits(message.addressBalanceAmount.low >>> 0, message.addressBalanceAmount.high >>> 0).toNumber(true) : message.addressBalanceAmount;
|
|
163172
163669
|
return object;
|
|
163173
163670
|
};
|
|
163174
163671
|
|
|
@@ -163736,6 +164233,7 @@
|
|
|
163736
164233
|
* @property {string|null} [rawJson] SigningInput rawJson
|
|
163737
164234
|
* @property {Long|null} [gasBudget] SigningInput gasBudget
|
|
163738
164235
|
* @property {Long|null} [referenceGasPrice] SigningInput referenceGasPrice
|
|
164236
|
+
* @property {TW.Sui.Proto.IValidDuring|null} [validDuring] SigningInput validDuring
|
|
163739
164237
|
*/
|
|
163740
164238
|
|
|
163741
164239
|
/**
|
|
@@ -163849,6 +164347,14 @@
|
|
|
163849
164347
|
*/
|
|
163850
164348
|
SigningInput.prototype.referenceGasPrice = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
163851
164349
|
|
|
164350
|
+
/**
|
|
164351
|
+
* SigningInput validDuring.
|
|
164352
|
+
* @member {TW.Sui.Proto.IValidDuring|null|undefined} validDuring
|
|
164353
|
+
* @memberof TW.Sui.Proto.SigningInput
|
|
164354
|
+
* @instance
|
|
164355
|
+
*/
|
|
164356
|
+
SigningInput.prototype.validDuring = null;
|
|
164357
|
+
|
|
163852
164358
|
// OneOf field names bound to virtual getters and setters
|
|
163853
164359
|
var $oneOfFields;
|
|
163854
164360
|
|
|
@@ -163915,6 +164421,8 @@
|
|
|
163915
164421
|
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.gasBudget);
|
|
163916
164422
|
if (message.referenceGasPrice != null && Object.hasOwnProperty.call(message, "referenceGasPrice"))
|
|
163917
164423
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.referenceGasPrice);
|
|
164424
|
+
if (message.validDuring != null && Object.hasOwnProperty.call(message, "validDuring"))
|
|
164425
|
+
$root.TW.Sui.Proto.ValidDuring.encode(message.validDuring, writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim();
|
|
163918
164426
|
return writer;
|
|
163919
164427
|
};
|
|
163920
164428
|
|
|
@@ -164000,6 +164508,10 @@
|
|
|
164000
164508
|
message.referenceGasPrice = reader.uint64();
|
|
164001
164509
|
break;
|
|
164002
164510
|
}
|
|
164511
|
+
case 14: {
|
|
164512
|
+
message.validDuring = $root.TW.Sui.Proto.ValidDuring.decode(reader, reader.uint32(), undefined, long + 1);
|
|
164513
|
+
break;
|
|
164514
|
+
}
|
|
164003
164515
|
default:
|
|
164004
164516
|
reader.skipType(tag & 7, long);
|
|
164005
164517
|
break;
|
|
@@ -164116,6 +164628,11 @@
|
|
|
164116
164628
|
if (message.referenceGasPrice != null && Object.hasOwnProperty.call(message, "referenceGasPrice"))
|
|
164117
164629
|
if (!$util.isInteger(message.referenceGasPrice) && !(message.referenceGasPrice && $util.isInteger(message.referenceGasPrice.low) && $util.isInteger(message.referenceGasPrice.high)))
|
|
164118
164630
|
return "referenceGasPrice: integer|Long expected";
|
|
164631
|
+
if (message.validDuring != null && Object.hasOwnProperty.call(message, "validDuring")) {
|
|
164632
|
+
var error = $root.TW.Sui.Proto.ValidDuring.verify(message.validDuring, long + 1);
|
|
164633
|
+
if (error)
|
|
164634
|
+
return "validDuring." + error;
|
|
164635
|
+
}
|
|
164119
164636
|
return null;
|
|
164120
164637
|
};
|
|
164121
164638
|
|
|
@@ -164199,6 +164716,11 @@
|
|
|
164199
164716
|
message.referenceGasPrice = object.referenceGasPrice;
|
|
164200
164717
|
else if (typeof object.referenceGasPrice === "object")
|
|
164201
164718
|
message.referenceGasPrice = new $util.LongBits(object.referenceGasPrice.low >>> 0, object.referenceGasPrice.high >>> 0).toNumber(true);
|
|
164719
|
+
if (object.validDuring != null) {
|
|
164720
|
+
if (!$util.isObject(object.validDuring))
|
|
164721
|
+
throw TypeError(".TW.Sui.Proto.SigningInput.validDuring: object expected");
|
|
164722
|
+
message.validDuring = $root.TW.Sui.Proto.ValidDuring.fromObject(object.validDuring, long + 1);
|
|
164723
|
+
}
|
|
164202
164724
|
return message;
|
|
164203
164725
|
};
|
|
164204
164726
|
|
|
@@ -164238,6 +164760,7 @@
|
|
|
164238
164760
|
object.referenceGasPrice = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
164239
164761
|
} else
|
|
164240
164762
|
object.referenceGasPrice = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
164763
|
+
object.validDuring = null;
|
|
164241
164764
|
}
|
|
164242
164765
|
if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey"))
|
|
164243
164766
|
object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey;
|
|
@@ -164297,6 +164820,8 @@
|
|
|
164297
164820
|
object.referenceGasPrice = options.longs === String ? String(message.referenceGasPrice) : message.referenceGasPrice;
|
|
164298
164821
|
else
|
|
164299
164822
|
object.referenceGasPrice = options.longs === String ? $util.Long.prototype.toString.call(message.referenceGasPrice) : options.longs === Number ? new $util.LongBits(message.referenceGasPrice.low >>> 0, message.referenceGasPrice.high >>> 0).toNumber(true) : message.referenceGasPrice;
|
|
164823
|
+
if (message.validDuring != null && Object.hasOwnProperty.call(message, "validDuring"))
|
|
164824
|
+
object.validDuring = $root.TW.Sui.Proto.ValidDuring.toObject(message.validDuring, options, q + 1);
|
|
164300
164825
|
return object;
|
|
164301
164826
|
};
|
|
164302
164827
|
|
package/dist/lib/wallet-core.js
CHANGED
|
@@ -83,7 +83,7 @@ m("undefined"==typeof l.read,"Module.read option was removed");m("undefined"==ty
|
|
|
83
83
|
m("undefined"==typeof l.ENVIRONMENT,"Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");m("undefined"==typeof l.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time");m("undefined"==typeof l.wasmMemory,"Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally");m("undefined"==typeof l.INITIAL_MEMORY,"Detected runtime INITIAL_MEMORY setting. Use -sIMPORTED_MEMORY to define wasmMemory dynamically");
|
|
84
84
|
"writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 stackAlloc getTempRet0 setTempRet0 exitJS withStackSave inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr runMainThreadEmAsm jstoi_q autoResumeAudioContext getDynCaller dynCall handleException keepRuntimeAlive runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit asmjsMangle HandleAllocator addOnPreRun addOnInit addOnPostCtor addOnPreMain addOnExit addOnPostRun STACK_SIZE STACK_ALIGN POINTER_SIZE ASSERTIONS ccall cwrap convertJsFunctionToWasm getEmptyTableSlot updateTableMap getFunctionAddress addFunction removeFunction intArrayToString stringToAscii stringToNewUTF8 stringToUTF8OnStack writeArrayToMemory registerKeyEventCallback maybeCStringToJsString findEventTarget 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 registerBatteryEventCallback setCanvasElementSize getCanvasElementSize jsStackTrace getCallstack convertPCtoSourceLocation wasiRightsToMuslOFlags wasiOFlagsToMuslOFlags safeSetTimeout setImmediateWrapped safeRequestAnimationFrame clearImmediateWrapped registerPostMainLoop registerPreMainLoop getPromise makePromise idsToPromises makePromiseCallback findMatchingCatch Browser_asyncPrepareDataCounter isLeapYear ydayFromDate arraySum addDays getSocketFromFD getSocketAddress FS_mkdirTree _setNetworkCallback getFunctionArgsName createJsInvokerSignature createJsInvoker PureVirtualError registerInheritedInstance unregisterInheritedInstance getInheritedInstanceCount getLiveInheritedInstances setDelayFunction validateThis count_emval_handles".split(" ").forEach(function(a){ra(a)});
|
|
85
85
|
"run out err callMain abort wasmExports HEAPF32 HEAPF64 HEAP8 HEAPU8 HEAP16 HEAPU16 HEAP32 HEAPU32 HEAP64 HEAPU64 writeStackCookie checkStackCookie INT53_MAX INT53_MIN bigintToI53Checked stackSave stackRestore createNamedFunction ptrToString zeroMemory getHeapMax growMemory ENV ERRNO_CODES strError DNS Protocols Sockets timers warnOnce readEmAsmArgsArray readEmAsmArgs runEmAsmFunction getExecutableName asyncLoad alignMemory mmapAlloc wasmTable wasmMemory getUniqueRunDependency noExitRuntime addRunDependency removeRunDependency freeTableIndexes functionsInTableMap setValue getValue PATH PATH_FS UTF8Decoder UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 intArrayFromString AsciiToString UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 JSEvents specialHTMLTargets findCanvasEventTarget currentFullscreenStrategy restoreOldWindowedStyle UNWIND_CACHE ExitStatus getEnvStrings checkWasiClock doReadv doWritev initRandomFill randomFill emSetImmediate emClearImmediate_deps emClearImmediate promiseMap uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo Browser requestFullscreen requestFullScreen setCanvasSize getUserMedia createContext getPreloadedImageData__data wget MONTH_DAYS_REGULAR MONTH_DAYS_LEAP MONTH_DAYS_REGULAR_CUMULATIVE MONTH_DAYS_LEAP_CUMULATIVE SYSCALLS preloadPlugins FS_createPreloadedFile FS_preloadFile FS_modeStringToFlags FS_getMode FS_stdin_getChar_buffer FS_stdin_getChar FS_unlink FS_createPath FS_createDevice FS_readFile FS FS_root FS_mounts FS_devices FS_streams FS_nextInode FS_nameTable FS_currentPath FS_initialized FS_ignorePermissions FS_filesystems FS_syncFSRequests FS_lookupPath FS_getPath FS_hashName FS_hashAddNode FS_hashRemoveNode FS_lookupNode FS_createNode FS_destroyNode FS_isRoot FS_isMountpoint FS_isFile FS_isDir FS_isLink FS_isChrdev FS_isBlkdev FS_isFIFO FS_isSocket FS_flagsToPermissionString FS_nodePermissions FS_mayLookup FS_mayCreate FS_mayDelete FS_mayOpen FS_checkOpExists FS_nextfd FS_getStreamChecked FS_getStream FS_createStream FS_closeStream FS_dupStream FS_doSetAttr FS_chrdev_stream_ops FS_major FS_minor FS_makedev FS_registerDevice FS_getDevice FS_getMounts FS_syncfs FS_mount FS_unmount FS_lookup FS_mknod FS_statfs FS_statfsStream FS_statfsNode FS_create FS_mkdir FS_mkdev FS_symlink FS_rename FS_rmdir FS_readdir FS_readlink FS_stat FS_fstat FS_lstat FS_doChmod FS_chmod FS_lchmod FS_fchmod FS_doChown FS_chown FS_lchown FS_fchown FS_doTruncate FS_truncate FS_ftruncate FS_utime FS_open FS_close FS_isClosed FS_llseek FS_read FS_write FS_mmap FS_msync FS_ioctl FS_writeFile FS_cwd FS_chdir FS_createDefaultDirectories FS_createDefaultDevices FS_createSpecialDirectories FS_createStandardStreams FS_staticInit FS_init FS_quit FS_findObject FS_analyzePath FS_createFile FS_createDataFile FS_forceLoadFile FS_createLazyFile FS_absolutePath FS_createFolder FS_createLink FS_joinPath FS_mmapAlloc FS_standardizePath MEMFS TTY PIPEFS SOCKFS InternalError BindingError throwInternalError throwBindingError registeredTypes awaitingDependencies typeDependencies tupleRegistrations structRegistrations sharedRegisterType whenDependentTypesAreResolved getTypeName getFunctionName heap32VectorToArray requireRegisteredType usesDestructorStack checkArgCount getRequiredArgCount UnboundTypeError EmValType EmValOptionalType throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol embindRepr registeredInstances getBasestPointer getInheritedInstance registeredPointers registerType integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer assertIntegerRange readPointer runDestructors craftInvokerFunction embind__requireFunction genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle throwInstanceAlreadyDeleted deletionQueue flushPendingDeletes delayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer char_0 char_9 makeLegalFunctionName emval_freelist emval_handles emval_symbols getStringOrSymbol Emval emval_returnValue emval_lookupTypes emval_methodCallers emval_addMethodCaller".split(" ").forEach(ra);
|
|
86
|
-
var fd={
|
|
86
|
+
var fd={2229400:()=>{if(void 0===l.ga)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();l.ga=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();l.ga=a}catch(e){throw"No secure random number generator found";}}},2230122:()=>l.ga()},Ac=y("___getTypeName"),gd=y("_malloc"),Y=y("_free"),tb=y("_strerror"),
|
|
87
87
|
kb=y("_emscripten_builtin_memalign");l._setThrew=y("_setThrew");
|
|
88
88
|
var hd=y("_emscripten_stack_init"),na=y("_emscripten_stack_get_end"),Ca=y("wasmMemory"),xc=y("wasmTable"),jd={__assert_fail:(a,b,c,d)=>r(`Assertion failed: ${I(a)}, at: `+[b?I(b):"unknown filename",c,d?I(d):"unknown function"]),__cxa_throw:(a,b,c)=>{a=new Na(a);w[a.l+16>>2]=0;w[a.l+4>>2]=b;w[a.l+8>>2]=c;Oa++;m(!1,"Exception thrown, but exception catching is not enabled. Compile with -sNO_DISABLE_EXCEPTION_CATCHING or -sEXCEPTION_CATCHING_ALLOWED=[..] to catch.")},__syscall_fcntl64:function(a,b,c){Pa=
|
|
89
89
|
c;try{var d=Q(a);switch(b){case 0:var e=J();if(0>e)break;for(;pb[e];)e++;return Fb(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=J(),d.flags|=e,0;case 12:return e=J(),G[e+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(f){if("undefined"==typeof S||"ErrnoError"!==f.name)throw f;return-f.A}},__syscall_getcwd:function(a,b){try{if(0===b)return-28;var c=Za("/")+1;if(b<c)return-68;T("/",a,b);return c}catch(d){if("undefined"==typeof S||"ErrnoError"!==d.name)throw d;return-d.A}},
|
|
Binary file
|