@trustwallet/wallet-core 4.0.17 → 4.0.19
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.
- package/dist/generated/core_proto.d.ts +39 -7
- package/dist/generated/core_proto.js +224 -79
- package/dist/lib/wallet-core.js +10 -10
- package/dist/lib/wallet-core.wasm +0 -0
- package/package.json +1 -1
@@ -5665,6 +5665,12 @@ export namespace TW {
|
|
5665
5665
|
|
5666
5666
|
/** SigningInput isItBrcOperation */
|
5667
5667
|
isItBrcOperation?: (boolean|null);
|
5668
|
+
|
5669
|
+
/** SigningInput planningV2 */
|
5670
|
+
planningV2?: (TW.BitcoinV2.Proto.IComposePlan|null);
|
5671
|
+
|
5672
|
+
/** SigningInput signingV2 */
|
5673
|
+
signingV2?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
5668
5674
|
}
|
5669
5675
|
|
5670
5676
|
/** Represents a SigningInput. */
|
@@ -5730,6 +5736,12 @@ export namespace TW {
|
|
5730
5736
|
/** SigningInput isItBrcOperation. */
|
5731
5737
|
public isItBrcOperation: boolean;
|
5732
5738
|
|
5739
|
+
/** SigningInput planningV2. */
|
5740
|
+
public planningV2?: (TW.BitcoinV2.Proto.IComposePlan|null);
|
5741
|
+
|
5742
|
+
/** SigningInput signingV2. */
|
5743
|
+
public signingV2?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
5744
|
+
|
5733
5745
|
/**
|
5734
5746
|
* Creates a new SigningInput instance using the specified properties.
|
5735
5747
|
* @param [properties] Properties to set
|
@@ -5816,6 +5828,9 @@ export namespace TW {
|
|
5816
5828
|
|
5817
5829
|
/** TransactionPlan preblockheight */
|
5818
5830
|
preblockheight?: (Long|null);
|
5831
|
+
|
5832
|
+
/** TransactionPlan planningResultV2 */
|
5833
|
+
planningResultV2?: (TW.BitcoinV2.Proto.ITransactionPlan|null);
|
5819
5834
|
}
|
5820
5835
|
|
5821
5836
|
/** Represents a TransactionPlan. */
|
@@ -5857,6 +5872,9 @@ export namespace TW {
|
|
5857
5872
|
/** TransactionPlan preblockheight. */
|
5858
5873
|
public preblockheight: Long;
|
5859
5874
|
|
5875
|
+
/** TransactionPlan planningResultV2. */
|
5876
|
+
public planningResultV2?: (TW.BitcoinV2.Proto.ITransactionPlan|null);
|
5877
|
+
|
5860
5878
|
/**
|
5861
5879
|
* Creates a new TransactionPlan instance using the specified properties.
|
5862
5880
|
* @param [properties] Properties to set
|
@@ -5928,6 +5946,9 @@ export namespace TW {
|
|
5928
5946
|
|
5929
5947
|
/** SigningOutput errorMessage */
|
5930
5948
|
errorMessage?: (string|null);
|
5949
|
+
|
5950
|
+
/** SigningOutput signingResultV2 */
|
5951
|
+
signingResultV2?: (TW.BitcoinV2.Proto.ISigningOutput|null);
|
5931
5952
|
}
|
5932
5953
|
|
5933
5954
|
/** Represents a SigningOutput. */
|
@@ -5954,6 +5975,9 @@ export namespace TW {
|
|
5954
5975
|
/** SigningOutput errorMessage. */
|
5955
5976
|
public errorMessage: string;
|
5956
5977
|
|
5978
|
+
/** SigningOutput signingResultV2. */
|
5979
|
+
public signingResultV2?: (TW.BitcoinV2.Proto.ISigningOutput|null);
|
5980
|
+
|
5957
5981
|
/**
|
5958
5982
|
* Creates a new SigningOutput instance using the specified properties.
|
5959
5983
|
* @param [properties] Properties to set
|
@@ -6191,6 +6215,7 @@ export namespace TW {
|
|
6191
6215
|
Error_utxo_missing_sighash_method = 7,
|
6192
6216
|
Error_utxo_failed_encoding = 8,
|
6193
6217
|
Error_utxo_insufficient_inputs = 9,
|
6218
|
+
Error_utxo_no_outputs_specified = 43,
|
6194
6219
|
Error_utxo_missing_change_script_pubkey = 10,
|
6195
6220
|
Error_zero_sequence_not_enabled = 11,
|
6196
6221
|
Error_unmatched_input_signature_count = 12,
|
@@ -6957,7 +6982,7 @@ export namespace TW {
|
|
6957
6982
|
ticker?: (string|null);
|
6958
6983
|
|
6959
6984
|
/** InputBrc20Inscription transferAmount */
|
6960
|
-
transferAmount?: (
|
6985
|
+
transferAmount?: (string|null);
|
6961
6986
|
}
|
6962
6987
|
|
6963
6988
|
/** Represents an InputBrc20Inscription. */
|
@@ -6979,7 +7004,7 @@ export namespace TW {
|
|
6979
7004
|
public ticker: string;
|
6980
7005
|
|
6981
7006
|
/** InputBrc20Inscription transferAmount. */
|
6982
|
-
public transferAmount:
|
7007
|
+
public transferAmount: string;
|
6983
7008
|
|
6984
7009
|
/**
|
6985
7010
|
* Creates a new InputBrc20Inscription instance using the specified properties.
|
@@ -7512,7 +7537,7 @@ export namespace TW {
|
|
7512
7537
|
ticker?: (string|null);
|
7513
7538
|
|
7514
7539
|
/** OutputBrc20Inscription transferAmount */
|
7515
|
-
transferAmount?: (
|
7540
|
+
transferAmount?: (string|null);
|
7516
7541
|
}
|
7517
7542
|
|
7518
7543
|
/** Represents an OutputBrc20Inscription. */
|
@@ -7531,7 +7556,7 @@ export namespace TW {
|
|
7531
7556
|
public ticker: string;
|
7532
7557
|
|
7533
7558
|
/** OutputBrc20Inscription transferAmount. */
|
7534
|
-
public transferAmount:
|
7559
|
+
public transferAmount: string;
|
7535
7560
|
|
7536
7561
|
/**
|
7537
7562
|
* Creates a new OutputBrc20Inscription instance using the specified properties.
|
@@ -8650,7 +8675,8 @@ export namespace TW {
|
|
8650
8675
|
Error_missing_sighash_method = 6,
|
8651
8676
|
Error_failed_encoding = 7,
|
8652
8677
|
Error_insufficient_inputs = 8,
|
8653
|
-
|
8678
|
+
Error_no_outputs_specified = 9,
|
8679
|
+
Error_missing_change_script_pubkey = 10
|
8654
8680
|
}
|
8655
8681
|
|
8656
8682
|
/** Properties of a SigningInput. */
|
@@ -8770,9 +8796,9 @@ export namespace TW {
|
|
8770
8796
|
|
8771
8797
|
/** InputSelector enum. */
|
8772
8798
|
enum InputSelector {
|
8773
|
-
|
8799
|
+
SelectAscending = 0,
|
8774
8800
|
SelectInOrder = 1,
|
8775
|
-
|
8801
|
+
UseAll = 10
|
8776
8802
|
}
|
8777
8803
|
|
8778
8804
|
/** Properties of a LockTime. */
|
@@ -9376,6 +9402,9 @@ export namespace TW {
|
|
9376
9402
|
/** TxInClaim vout */
|
9377
9403
|
vout?: (number|null);
|
9378
9404
|
|
9405
|
+
/** TxInClaim value */
|
9406
|
+
value?: (Long|null);
|
9407
|
+
|
9379
9408
|
/** TxInClaim sequence */
|
9380
9409
|
sequence?: (number|null);
|
9381
9410
|
|
@@ -9401,6 +9430,9 @@ export namespace TW {
|
|
9401
9430
|
/** TxInClaim vout. */
|
9402
9431
|
public vout: number;
|
9403
9432
|
|
9433
|
+
/** TxInClaim value. */
|
9434
|
+
public value: Long;
|
9435
|
+
|
9404
9436
|
/** TxInClaim sequence. */
|
9405
9437
|
public sequence: number;
|
9406
9438
|
|
@@ -16642,6 +16642,8 @@
|
|
16642
16642
|
* @property {boolean|null} [disableDustFilter] SigningInput disableDustFilter
|
16643
16643
|
* @property {number|null} [time] SigningInput time
|
16644
16644
|
* @property {boolean|null} [isItBrcOperation] SigningInput isItBrcOperation
|
16645
|
+
* @property {TW.BitcoinV2.Proto.IComposePlan|null} [planningV2] SigningInput planningV2
|
16646
|
+
* @property {TW.BitcoinV2.Proto.ISigningInput|null} [signingV2] SigningInput signingV2
|
16645
16647
|
*/
|
16646
16648
|
|
16647
16649
|
/**
|
@@ -16807,6 +16809,22 @@
|
|
16807
16809
|
*/
|
16808
16810
|
SigningInput.prototype.isItBrcOperation = false;
|
16809
16811
|
|
16812
|
+
/**
|
16813
|
+
* SigningInput planningV2.
|
16814
|
+
* @member {TW.BitcoinV2.Proto.IComposePlan|null|undefined} planningV2
|
16815
|
+
* @memberof TW.Bitcoin.Proto.SigningInput
|
16816
|
+
* @instance
|
16817
|
+
*/
|
16818
|
+
SigningInput.prototype.planningV2 = null;
|
16819
|
+
|
16820
|
+
/**
|
16821
|
+
* SigningInput signingV2.
|
16822
|
+
* @member {TW.BitcoinV2.Proto.ISigningInput|null|undefined} signingV2
|
16823
|
+
* @memberof TW.Bitcoin.Proto.SigningInput
|
16824
|
+
* @instance
|
16825
|
+
*/
|
16826
|
+
SigningInput.prototype.signingV2 = null;
|
16827
|
+
|
16810
16828
|
/**
|
16811
16829
|
* Creates a new SigningInput instance using the specified properties.
|
16812
16830
|
* @function create
|
@@ -16871,6 +16889,10 @@
|
|
16871
16889
|
writer.uint32(/* id 17, wireType 0 =*/136).uint32(message.time);
|
16872
16890
|
if (message.isItBrcOperation != null && Object.hasOwnProperty.call(message, "isItBrcOperation"))
|
16873
16891
|
writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isItBrcOperation);
|
16892
|
+
if (message.planningV2 != null && Object.hasOwnProperty.call(message, "planningV2"))
|
16893
|
+
$root.TW.BitcoinV2.Proto.ComposePlan.encode(message.planningV2, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
16894
|
+
if (message.signingV2 != null && Object.hasOwnProperty.call(message, "signingV2"))
|
16895
|
+
$root.TW.BitcoinV2.Proto.SigningInput.encode(message.signingV2, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
16874
16896
|
return writer;
|
16875
16897
|
};
|
16876
16898
|
|
@@ -16971,6 +16993,12 @@
|
|
16971
16993
|
case 18:
|
16972
16994
|
message.isItBrcOperation = reader.bool();
|
16973
16995
|
break;
|
16996
|
+
case 20:
|
16997
|
+
message.planningV2 = $root.TW.BitcoinV2.Proto.ComposePlan.decode(reader, reader.uint32());
|
16998
|
+
break;
|
16999
|
+
case 21:
|
17000
|
+
message.signingV2 = $root.TW.BitcoinV2.Proto.SigningInput.decode(reader, reader.uint32());
|
17001
|
+
break;
|
16974
17002
|
default:
|
16975
17003
|
reader.skipType(tag & 7);
|
16976
17004
|
break;
|
@@ -17067,6 +17095,16 @@
|
|
17067
17095
|
if (message.isItBrcOperation != null && message.hasOwnProperty("isItBrcOperation"))
|
17068
17096
|
if (typeof message.isItBrcOperation !== "boolean")
|
17069
17097
|
return "isItBrcOperation: boolean expected";
|
17098
|
+
if (message.planningV2 != null && message.hasOwnProperty("planningV2")) {
|
17099
|
+
var error = $root.TW.BitcoinV2.Proto.ComposePlan.verify(message.planningV2);
|
17100
|
+
if (error)
|
17101
|
+
return "planningV2." + error;
|
17102
|
+
}
|
17103
|
+
if (message.signingV2 != null && message.hasOwnProperty("signingV2")) {
|
17104
|
+
var error = $root.TW.BitcoinV2.Proto.SigningInput.verify(message.signingV2);
|
17105
|
+
if (error)
|
17106
|
+
return "signingV2." + error;
|
17107
|
+
}
|
17070
17108
|
return null;
|
17071
17109
|
};
|
17072
17110
|
|
@@ -17170,6 +17208,16 @@
|
|
17170
17208
|
message.time = object.time >>> 0;
|
17171
17209
|
if (object.isItBrcOperation != null)
|
17172
17210
|
message.isItBrcOperation = Boolean(object.isItBrcOperation);
|
17211
|
+
if (object.planningV2 != null) {
|
17212
|
+
if (typeof object.planningV2 !== "object")
|
17213
|
+
throw TypeError(".TW.Bitcoin.Proto.SigningInput.planningV2: object expected");
|
17214
|
+
message.planningV2 = $root.TW.BitcoinV2.Proto.ComposePlan.fromObject(object.planningV2);
|
17215
|
+
}
|
17216
|
+
if (object.signingV2 != null) {
|
17217
|
+
if (typeof object.signingV2 !== "object")
|
17218
|
+
throw TypeError(".TW.Bitcoin.Proto.SigningInput.signingV2: object expected");
|
17219
|
+
message.signingV2 = $root.TW.BitcoinV2.Proto.SigningInput.fromObject(object.signingV2);
|
17220
|
+
}
|
17173
17221
|
return message;
|
17174
17222
|
};
|
17175
17223
|
|
@@ -17222,6 +17270,8 @@
|
|
17222
17270
|
object.disableDustFilter = false;
|
17223
17271
|
object.time = 0;
|
17224
17272
|
object.isItBrcOperation = false;
|
17273
|
+
object.planningV2 = null;
|
17274
|
+
object.signingV2 = null;
|
17225
17275
|
}
|
17226
17276
|
if (message.hashType != null && message.hasOwnProperty("hashType"))
|
17227
17277
|
object.hashType = message.hashType;
|
@@ -17278,6 +17328,10 @@
|
|
17278
17328
|
object.time = message.time;
|
17279
17329
|
if (message.isItBrcOperation != null && message.hasOwnProperty("isItBrcOperation"))
|
17280
17330
|
object.isItBrcOperation = message.isItBrcOperation;
|
17331
|
+
if (message.planningV2 != null && message.hasOwnProperty("planningV2"))
|
17332
|
+
object.planningV2 = $root.TW.BitcoinV2.Proto.ComposePlan.toObject(message.planningV2, options);
|
17333
|
+
if (message.signingV2 != null && message.hasOwnProperty("signingV2"))
|
17334
|
+
object.signingV2 = $root.TW.BitcoinV2.Proto.SigningInput.toObject(message.signingV2, options);
|
17281
17335
|
return object;
|
17282
17336
|
};
|
17283
17337
|
|
@@ -17311,6 +17365,7 @@
|
|
17311
17365
|
* @property {Uint8Array|null} [outputOpReturn] TransactionPlan outputOpReturn
|
17312
17366
|
* @property {Uint8Array|null} [preblockhash] TransactionPlan preblockhash
|
17313
17367
|
* @property {Long|null} [preblockheight] TransactionPlan preblockheight
|
17368
|
+
* @property {TW.BitcoinV2.Proto.ITransactionPlan|null} [planningResultV2] TransactionPlan planningResultV2
|
17314
17369
|
*/
|
17315
17370
|
|
17316
17371
|
/**
|
@@ -17409,6 +17464,14 @@
|
|
17409
17464
|
*/
|
17410
17465
|
TransactionPlan.prototype.preblockheight = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
17411
17466
|
|
17467
|
+
/**
|
17468
|
+
* TransactionPlan planningResultV2.
|
17469
|
+
* @member {TW.BitcoinV2.Proto.ITransactionPlan|null|undefined} planningResultV2
|
17470
|
+
* @memberof TW.Bitcoin.Proto.TransactionPlan
|
17471
|
+
* @instance
|
17472
|
+
*/
|
17473
|
+
TransactionPlan.prototype.planningResultV2 = null;
|
17474
|
+
|
17412
17475
|
/**
|
17413
17476
|
* Creates a new TransactionPlan instance using the specified properties.
|
17414
17477
|
* @function create
|
@@ -17454,6 +17517,8 @@
|
|
17454
17517
|
writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.preblockhash);
|
17455
17518
|
if (message.preblockheight != null && Object.hasOwnProperty.call(message, "preblockheight"))
|
17456
17519
|
writer.uint32(/* id 10, wireType 0 =*/80).int64(message.preblockheight);
|
17520
|
+
if (message.planningResultV2 != null && Object.hasOwnProperty.call(message, "planningResultV2"))
|
17521
|
+
$root.TW.BitcoinV2.Proto.TransactionPlan.encode(message.planningResultV2, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
17457
17522
|
return writer;
|
17458
17523
|
};
|
17459
17524
|
|
@@ -17507,6 +17572,9 @@
|
|
17507
17572
|
case 10:
|
17508
17573
|
message.preblockheight = reader.int64();
|
17509
17574
|
break;
|
17575
|
+
case 12:
|
17576
|
+
message.planningResultV2 = $root.TW.BitcoinV2.Proto.TransactionPlan.decode(reader, reader.uint32());
|
17577
|
+
break;
|
17510
17578
|
default:
|
17511
17579
|
reader.skipType(tag & 7);
|
17512
17580
|
break;
|
@@ -17590,6 +17658,11 @@
|
|
17590
17658
|
if (message.preblockheight != null && message.hasOwnProperty("preblockheight"))
|
17591
17659
|
if (!$util.isInteger(message.preblockheight) && !(message.preblockheight && $util.isInteger(message.preblockheight.low) && $util.isInteger(message.preblockheight.high)))
|
17592
17660
|
return "preblockheight: integer|Long expected";
|
17661
|
+
if (message.planningResultV2 != null && message.hasOwnProperty("planningResultV2")) {
|
17662
|
+
var error = $root.TW.BitcoinV2.Proto.TransactionPlan.verify(message.planningResultV2);
|
17663
|
+
if (error)
|
17664
|
+
return "planningResultV2." + error;
|
17665
|
+
}
|
17593
17666
|
return null;
|
17594
17667
|
};
|
17595
17668
|
|
@@ -17777,6 +17850,11 @@
|
|
17777
17850
|
message.preblockheight = object.preblockheight;
|
17778
17851
|
else if (typeof object.preblockheight === "object")
|
17779
17852
|
message.preblockheight = new $util.LongBits(object.preblockheight.low >>> 0, object.preblockheight.high >>> 0).toNumber();
|
17853
|
+
if (object.planningResultV2 != null) {
|
17854
|
+
if (typeof object.planningResultV2 !== "object")
|
17855
|
+
throw TypeError(".TW.Bitcoin.Proto.TransactionPlan.planningResultV2: object expected");
|
17856
|
+
message.planningResultV2 = $root.TW.BitcoinV2.Proto.TransactionPlan.fromObject(object.planningResultV2);
|
17857
|
+
}
|
17780
17858
|
return message;
|
17781
17859
|
};
|
17782
17860
|
|
@@ -17843,6 +17921,7 @@
|
|
17843
17921
|
object.preblockheight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
17844
17922
|
} else
|
17845
17923
|
object.preblockheight = options.longs === String ? "0" : 0;
|
17924
|
+
object.planningResultV2 = null;
|
17846
17925
|
}
|
17847
17926
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
17848
17927
|
if (typeof message.amount === "number")
|
@@ -17882,6 +17961,8 @@
|
|
17882
17961
|
object.preblockheight = options.longs === String ? String(message.preblockheight) : message.preblockheight;
|
17883
17962
|
else
|
17884
17963
|
object.preblockheight = options.longs === String ? $util.Long.prototype.toString.call(message.preblockheight) : options.longs === Number ? new $util.LongBits(message.preblockheight.low >>> 0, message.preblockheight.high >>> 0).toNumber() : message.preblockheight;
|
17964
|
+
if (message.planningResultV2 != null && message.hasOwnProperty("planningResultV2"))
|
17965
|
+
object.planningResultV2 = $root.TW.BitcoinV2.Proto.TransactionPlan.toObject(message.planningResultV2, options);
|
17885
17966
|
return object;
|
17886
17967
|
};
|
17887
17968
|
|
@@ -17910,6 +17991,7 @@
|
|
17910
17991
|
* @property {string|null} [transactionId] SigningOutput transactionId
|
17911
17992
|
* @property {TW.Common.Proto.SigningError|null} [error] SigningOutput error
|
17912
17993
|
* @property {string|null} [errorMessage] SigningOutput errorMessage
|
17994
|
+
* @property {TW.BitcoinV2.Proto.ISigningOutput|null} [signingResultV2] SigningOutput signingResultV2
|
17913
17995
|
*/
|
17914
17996
|
|
17915
17997
|
/**
|
@@ -17967,6 +18049,14 @@
|
|
17967
18049
|
*/
|
17968
18050
|
SigningOutput.prototype.errorMessage = "";
|
17969
18051
|
|
18052
|
+
/**
|
18053
|
+
* SigningOutput signingResultV2.
|
18054
|
+
* @member {TW.BitcoinV2.Proto.ISigningOutput|null|undefined} signingResultV2
|
18055
|
+
* @memberof TW.Bitcoin.Proto.SigningOutput
|
18056
|
+
* @instance
|
18057
|
+
*/
|
18058
|
+
SigningOutput.prototype.signingResultV2 = null;
|
18059
|
+
|
17970
18060
|
/**
|
17971
18061
|
* Creates a new SigningOutput instance using the specified properties.
|
17972
18062
|
* @function create
|
@@ -18001,6 +18091,8 @@
|
|
18001
18091
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.error);
|
18002
18092
|
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
18003
18093
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.errorMessage);
|
18094
|
+
if (message.signingResultV2 != null && Object.hasOwnProperty.call(message, "signingResultV2"))
|
18095
|
+
$root.TW.BitcoinV2.Proto.SigningOutput.encode(message.signingResultV2, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
18004
18096
|
return writer;
|
18005
18097
|
};
|
18006
18098
|
|
@@ -18037,6 +18129,9 @@
|
|
18037
18129
|
case 5:
|
18038
18130
|
message.errorMessage = reader.string();
|
18039
18131
|
break;
|
18132
|
+
case 7:
|
18133
|
+
message.signingResultV2 = $root.TW.BitcoinV2.Proto.SigningOutput.decode(reader, reader.uint32());
|
18134
|
+
break;
|
18040
18135
|
default:
|
18041
18136
|
reader.skipType(tag & 7);
|
18042
18137
|
break;
|
@@ -18101,6 +18196,11 @@
|
|
18101
18196
|
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
18102
18197
|
if (!$util.isString(message.errorMessage))
|
18103
18198
|
return "errorMessage: string expected";
|
18199
|
+
if (message.signingResultV2 != null && message.hasOwnProperty("signingResultV2")) {
|
18200
|
+
var error = $root.TW.BitcoinV2.Proto.SigningOutput.verify(message.signingResultV2);
|
18201
|
+
if (error)
|
18202
|
+
return "signingResultV2." + error;
|
18203
|
+
}
|
18104
18204
|
return null;
|
18105
18205
|
};
|
18106
18206
|
|
@@ -18232,6 +18332,11 @@
|
|
18232
18332
|
}
|
18233
18333
|
if (object.errorMessage != null)
|
18234
18334
|
message.errorMessage = String(object.errorMessage);
|
18335
|
+
if (object.signingResultV2 != null) {
|
18336
|
+
if (typeof object.signingResultV2 !== "object")
|
18337
|
+
throw TypeError(".TW.Bitcoin.Proto.SigningOutput.signingResultV2: object expected");
|
18338
|
+
message.signingResultV2 = $root.TW.BitcoinV2.Proto.SigningOutput.fromObject(object.signingResultV2);
|
18339
|
+
}
|
18235
18340
|
return message;
|
18236
18341
|
};
|
18237
18342
|
|
@@ -18260,6 +18365,7 @@
|
|
18260
18365
|
object.transactionId = "";
|
18261
18366
|
object.error = options.enums === String ? "OK" : 0;
|
18262
18367
|
object.errorMessage = "";
|
18368
|
+
object.signingResultV2 = null;
|
18263
18369
|
}
|
18264
18370
|
if (message.transaction != null && message.hasOwnProperty("transaction"))
|
18265
18371
|
object.transaction = $root.TW.Bitcoin.Proto.Transaction.toObject(message.transaction, options);
|
@@ -18271,6 +18377,8 @@
|
|
18271
18377
|
object.error = options.enums === String ? $root.TW.Common.Proto.SigningError[message.error] : message.error;
|
18272
18378
|
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
18273
18379
|
object.errorMessage = message.errorMessage;
|
18380
|
+
if (message.signingResultV2 != null && message.hasOwnProperty("signingResultV2"))
|
18381
|
+
object.signingResultV2 = $root.TW.BitcoinV2.Proto.SigningOutput.toObject(message.signingResultV2, options);
|
18274
18382
|
return object;
|
18275
18383
|
};
|
18276
18384
|
|
@@ -18877,6 +18985,7 @@
|
|
18877
18985
|
* @property {number} Error_utxo_missing_sighash_method=7 Error_utxo_missing_sighash_method value
|
18878
18986
|
* @property {number} Error_utxo_failed_encoding=8 Error_utxo_failed_encoding value
|
18879
18987
|
* @property {number} Error_utxo_insufficient_inputs=9 Error_utxo_insufficient_inputs value
|
18988
|
+
* @property {number} Error_utxo_no_outputs_specified=43 Error_utxo_no_outputs_specified value
|
18880
18989
|
* @property {number} Error_utxo_missing_change_script_pubkey=10 Error_utxo_missing_change_script_pubkey value
|
18881
18990
|
* @property {number} Error_zero_sequence_not_enabled=11 Error_zero_sequence_not_enabled value
|
18882
18991
|
* @property {number} Error_unmatched_input_signature_count=12 Error_unmatched_input_signature_count value
|
@@ -18923,6 +19032,7 @@
|
|
18923
19032
|
values[valuesById[7] = "Error_utxo_missing_sighash_method"] = 7;
|
18924
19033
|
values[valuesById[8] = "Error_utxo_failed_encoding"] = 8;
|
18925
19034
|
values[valuesById[9] = "Error_utxo_insufficient_inputs"] = 9;
|
19035
|
+
values[valuesById[43] = "Error_utxo_no_outputs_specified"] = 43;
|
18926
19036
|
values[valuesById[10] = "Error_utxo_missing_change_script_pubkey"] = 10;
|
18927
19037
|
values[valuesById[11] = "Error_zero_sequence_not_enabled"] = 11;
|
18928
19038
|
values[valuesById[12] = "Error_unmatched_input_signature_count"] = 12;
|
@@ -19230,7 +19340,7 @@
|
|
19230
19340
|
return "inputSelector: enum value expected";
|
19231
19341
|
case 0:
|
19232
19342
|
case 1:
|
19233
|
-
case
|
19343
|
+
case 10:
|
19234
19344
|
break;
|
19235
19345
|
}
|
19236
19346
|
if (message.feePerVb != null && message.hasOwnProperty("feePerVb"))
|
@@ -19295,7 +19405,7 @@
|
|
19295
19405
|
}
|
19296
19406
|
}
|
19297
19407
|
switch (object.inputSelector) {
|
19298
|
-
case "
|
19408
|
+
case "SelectAscending":
|
19299
19409
|
case 0:
|
19300
19410
|
message.inputSelector = 0;
|
19301
19411
|
break;
|
@@ -19303,9 +19413,9 @@
|
|
19303
19413
|
case 1:
|
19304
19414
|
message.inputSelector = 1;
|
19305
19415
|
break;
|
19306
|
-
case "
|
19307
|
-
case
|
19308
|
-
message.inputSelector =
|
19416
|
+
case "UseAll":
|
19417
|
+
case 10:
|
19418
|
+
message.inputSelector = 10;
|
19309
19419
|
break;
|
19310
19420
|
}
|
19311
19421
|
if (object.feePerVb != null)
|
@@ -19356,7 +19466,7 @@
|
|
19356
19466
|
object.privateKey = $util.newBuffer(object.privateKey);
|
19357
19467
|
}
|
19358
19468
|
object.lockTime = null;
|
19359
|
-
object.inputSelector = options.enums === String ? "
|
19469
|
+
object.inputSelector = options.enums === String ? "SelectAscending" : 0;
|
19360
19470
|
if ($util.Long) {
|
19361
19471
|
var long = new $util.Long(0, 0, true);
|
19362
19472
|
object.feePerVb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
@@ -21208,7 +21318,7 @@
|
|
21208
21318
|
* @property {boolean|null} [onePrevout] InputBrc20Inscription onePrevout
|
21209
21319
|
* @property {Uint8Array|null} [inscribeTo] InputBrc20Inscription inscribeTo
|
21210
21320
|
* @property {string|null} [ticker] InputBrc20Inscription ticker
|
21211
|
-
* @property {
|
21321
|
+
* @property {string|null} [transferAmount] InputBrc20Inscription transferAmount
|
21212
21322
|
*/
|
21213
21323
|
|
21214
21324
|
/**
|
@@ -21252,11 +21362,11 @@
|
|
21252
21362
|
|
21253
21363
|
/**
|
21254
21364
|
* InputBrc20Inscription transferAmount.
|
21255
|
-
* @member {
|
21365
|
+
* @member {string} transferAmount
|
21256
21366
|
* @memberof TW.BitcoinV2.Proto.Input.InputBrc20Inscription
|
21257
21367
|
* @instance
|
21258
21368
|
*/
|
21259
|
-
InputBrc20Inscription.prototype.transferAmount =
|
21369
|
+
InputBrc20Inscription.prototype.transferAmount = "";
|
21260
21370
|
|
21261
21371
|
/**
|
21262
21372
|
* Creates a new InputBrc20Inscription instance using the specified properties.
|
@@ -21289,7 +21399,7 @@
|
|
21289
21399
|
if (message.ticker != null && Object.hasOwnProperty.call(message, "ticker"))
|
21290
21400
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.ticker);
|
21291
21401
|
if (message.transferAmount != null && Object.hasOwnProperty.call(message, "transferAmount"))
|
21292
|
-
writer.uint32(/* id 4, wireType
|
21402
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.transferAmount);
|
21293
21403
|
return writer;
|
21294
21404
|
};
|
21295
21405
|
|
@@ -21321,7 +21431,7 @@
|
|
21321
21431
|
message.ticker = reader.string();
|
21322
21432
|
break;
|
21323
21433
|
case 4:
|
21324
|
-
message.transferAmount = reader.
|
21434
|
+
message.transferAmount = reader.string();
|
21325
21435
|
break;
|
21326
21436
|
default:
|
21327
21437
|
reader.skipType(tag & 7);
|
@@ -21352,8 +21462,8 @@
|
|
21352
21462
|
if (!$util.isString(message.ticker))
|
21353
21463
|
return "ticker: string expected";
|
21354
21464
|
if (message.transferAmount != null && message.hasOwnProperty("transferAmount"))
|
21355
|
-
if (!$util.
|
21356
|
-
return "transferAmount:
|
21465
|
+
if (!$util.isString(message.transferAmount))
|
21466
|
+
return "transferAmount: string expected";
|
21357
21467
|
return null;
|
21358
21468
|
};
|
21359
21469
|
|
@@ -21379,14 +21489,7 @@
|
|
21379
21489
|
if (object.ticker != null)
|
21380
21490
|
message.ticker = String(object.ticker);
|
21381
21491
|
if (object.transferAmount != null)
|
21382
|
-
|
21383
|
-
(message.transferAmount = $util.Long.fromValue(object.transferAmount)).unsigned = true;
|
21384
|
-
else if (typeof object.transferAmount === "string")
|
21385
|
-
message.transferAmount = parseInt(object.transferAmount, 10);
|
21386
|
-
else if (typeof object.transferAmount === "number")
|
21387
|
-
message.transferAmount = object.transferAmount;
|
21388
|
-
else if (typeof object.transferAmount === "object")
|
21389
|
-
message.transferAmount = new $util.LongBits(object.transferAmount.low >>> 0, object.transferAmount.high >>> 0).toNumber(true);
|
21492
|
+
message.transferAmount = String(object.transferAmount);
|
21390
21493
|
return message;
|
21391
21494
|
};
|
21392
21495
|
|
@@ -21413,11 +21516,7 @@
|
|
21413
21516
|
object.inscribeTo = $util.newBuffer(object.inscribeTo);
|
21414
21517
|
}
|
21415
21518
|
object.ticker = "";
|
21416
|
-
|
21417
|
-
var long = new $util.Long(0, 0, true);
|
21418
|
-
object.transferAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
21419
|
-
} else
|
21420
|
-
object.transferAmount = options.longs === String ? "0" : 0;
|
21519
|
+
object.transferAmount = "";
|
21421
21520
|
}
|
21422
21521
|
if (message.onePrevout != null && message.hasOwnProperty("onePrevout"))
|
21423
21522
|
object.onePrevout = message.onePrevout;
|
@@ -21426,10 +21525,7 @@
|
|
21426
21525
|
if (message.ticker != null && message.hasOwnProperty("ticker"))
|
21427
21526
|
object.ticker = message.ticker;
|
21428
21527
|
if (message.transferAmount != null && message.hasOwnProperty("transferAmount"))
|
21429
|
-
|
21430
|
-
object.transferAmount = options.longs === String ? String(message.transferAmount) : message.transferAmount;
|
21431
|
-
else
|
21432
|
-
object.transferAmount = options.longs === String ? $util.Long.prototype.toString.call(message.transferAmount) : options.longs === Number ? new $util.LongBits(message.transferAmount.low >>> 0, message.transferAmount.high >>> 0).toNumber(true) : message.transferAmount;
|
21528
|
+
object.transferAmount = message.transferAmount;
|
21433
21529
|
return object;
|
21434
21530
|
};
|
21435
21531
|
|
@@ -22811,7 +22907,7 @@
|
|
22811
22907
|
* @interface IOutputBrc20Inscription
|
22812
22908
|
* @property {Uint8Array|null} [inscribeTo] OutputBrc20Inscription inscribeTo
|
22813
22909
|
* @property {string|null} [ticker] OutputBrc20Inscription ticker
|
22814
|
-
* @property {
|
22910
|
+
* @property {string|null} [transferAmount] OutputBrc20Inscription transferAmount
|
22815
22911
|
*/
|
22816
22912
|
|
22817
22913
|
/**
|
@@ -22847,11 +22943,11 @@
|
|
22847
22943
|
|
22848
22944
|
/**
|
22849
22945
|
* OutputBrc20Inscription transferAmount.
|
22850
|
-
* @member {
|
22946
|
+
* @member {string} transferAmount
|
22851
22947
|
* @memberof TW.BitcoinV2.Proto.Output.OutputBrc20Inscription
|
22852
22948
|
* @instance
|
22853
22949
|
*/
|
22854
|
-
OutputBrc20Inscription.prototype.transferAmount =
|
22950
|
+
OutputBrc20Inscription.prototype.transferAmount = "";
|
22855
22951
|
|
22856
22952
|
/**
|
22857
22953
|
* Creates a new OutputBrc20Inscription instance using the specified properties.
|
@@ -22882,7 +22978,7 @@
|
|
22882
22978
|
if (message.ticker != null && Object.hasOwnProperty.call(message, "ticker"))
|
22883
22979
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.ticker);
|
22884
22980
|
if (message.transferAmount != null && Object.hasOwnProperty.call(message, "transferAmount"))
|
22885
|
-
writer.uint32(/* id 3, wireType
|
22981
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.transferAmount);
|
22886
22982
|
return writer;
|
22887
22983
|
};
|
22888
22984
|
|
@@ -22911,7 +23007,7 @@
|
|
22911
23007
|
message.ticker = reader.string();
|
22912
23008
|
break;
|
22913
23009
|
case 3:
|
22914
|
-
message.transferAmount = reader.
|
23010
|
+
message.transferAmount = reader.string();
|
22915
23011
|
break;
|
22916
23012
|
default:
|
22917
23013
|
reader.skipType(tag & 7);
|
@@ -22939,8 +23035,8 @@
|
|
22939
23035
|
if (!$util.isString(message.ticker))
|
22940
23036
|
return "ticker: string expected";
|
22941
23037
|
if (message.transferAmount != null && message.hasOwnProperty("transferAmount"))
|
22942
|
-
if (!$util.
|
22943
|
-
return "transferAmount:
|
23038
|
+
if (!$util.isString(message.transferAmount))
|
23039
|
+
return "transferAmount: string expected";
|
22944
23040
|
return null;
|
22945
23041
|
};
|
22946
23042
|
|
@@ -22964,14 +23060,7 @@
|
|
22964
23060
|
if (object.ticker != null)
|
22965
23061
|
message.ticker = String(object.ticker);
|
22966
23062
|
if (object.transferAmount != null)
|
22967
|
-
|
22968
|
-
(message.transferAmount = $util.Long.fromValue(object.transferAmount)).unsigned = true;
|
22969
|
-
else if (typeof object.transferAmount === "string")
|
22970
|
-
message.transferAmount = parseInt(object.transferAmount, 10);
|
22971
|
-
else if (typeof object.transferAmount === "number")
|
22972
|
-
message.transferAmount = object.transferAmount;
|
22973
|
-
else if (typeof object.transferAmount === "object")
|
22974
|
-
message.transferAmount = new $util.LongBits(object.transferAmount.low >>> 0, object.transferAmount.high >>> 0).toNumber(true);
|
23063
|
+
message.transferAmount = String(object.transferAmount);
|
22975
23064
|
return message;
|
22976
23065
|
};
|
22977
23066
|
|
@@ -22997,21 +23086,14 @@
|
|
22997
23086
|
object.inscribeTo = $util.newBuffer(object.inscribeTo);
|
22998
23087
|
}
|
22999
23088
|
object.ticker = "";
|
23000
|
-
|
23001
|
-
var long = new $util.Long(0, 0, true);
|
23002
|
-
object.transferAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
23003
|
-
} else
|
23004
|
-
object.transferAmount = options.longs === String ? "0" : 0;
|
23089
|
+
object.transferAmount = "";
|
23005
23090
|
}
|
23006
23091
|
if (message.inscribeTo != null && message.hasOwnProperty("inscribeTo"))
|
23007
23092
|
object.inscribeTo = options.bytes === String ? $util.base64.encode(message.inscribeTo, 0, message.inscribeTo.length) : options.bytes === Array ? Array.prototype.slice.call(message.inscribeTo) : message.inscribeTo;
|
23008
23093
|
if (message.ticker != null && message.hasOwnProperty("ticker"))
|
23009
23094
|
object.ticker = message.ticker;
|
23010
23095
|
if (message.transferAmount != null && message.hasOwnProperty("transferAmount"))
|
23011
|
-
|
23012
|
-
object.transferAmount = options.longs === String ? String(message.transferAmount) : message.transferAmount;
|
23013
|
-
else
|
23014
|
-
object.transferAmount = options.longs === String ? $util.Long.prototype.toString.call(message.transferAmount) : options.longs === Number ? new $util.LongBits(message.transferAmount.low >>> 0, message.transferAmount.high >>> 0).toNumber(true) : message.transferAmount;
|
23096
|
+
object.transferAmount = message.transferAmount;
|
23015
23097
|
return object;
|
23016
23098
|
};
|
23017
23099
|
|
@@ -23466,6 +23548,7 @@
|
|
23466
23548
|
case 7:
|
23467
23549
|
case 8:
|
23468
23550
|
case 9:
|
23551
|
+
case 43:
|
23469
23552
|
case 10:
|
23470
23553
|
case 11:
|
23471
23554
|
case 12:
|
@@ -23593,6 +23676,10 @@
|
|
23593
23676
|
case 9:
|
23594
23677
|
message.error = 9;
|
23595
23678
|
break;
|
23679
|
+
case "Error_utxo_no_outputs_specified":
|
23680
|
+
case 43:
|
23681
|
+
message.error = 43;
|
23682
|
+
break;
|
23596
23683
|
case "Error_utxo_missing_change_script_pubkey":
|
23597
23684
|
case 10:
|
23598
23685
|
message.error = 10;
|
@@ -24339,6 +24426,7 @@
|
|
24339
24426
|
case 7:
|
24340
24427
|
case 8:
|
24341
24428
|
case 9:
|
24429
|
+
case 43:
|
24342
24430
|
case 10:
|
24343
24431
|
case 11:
|
24344
24432
|
case 12:
|
@@ -24447,6 +24535,10 @@
|
|
24447
24535
|
case 9:
|
24448
24536
|
message.error = 9;
|
24449
24537
|
break;
|
24538
|
+
case "Error_utxo_no_outputs_specified":
|
24539
|
+
case 43:
|
24540
|
+
message.error = 43;
|
24541
|
+
break;
|
24450
24542
|
case "Error_utxo_missing_change_script_pubkey":
|
24451
24543
|
case 10:
|
24452
24544
|
message.error = 10;
|
@@ -25926,7 +26018,7 @@
|
|
25926
26018
|
return "inputSelector: enum value expected";
|
25927
26019
|
case 0:
|
25928
26020
|
case 1:
|
25929
|
-
case
|
26021
|
+
case 10:
|
25930
26022
|
break;
|
25931
26023
|
}
|
25932
26024
|
if (message.taggedOutput != null && message.hasOwnProperty("taggedOutput")) {
|
@@ -25981,7 +26073,7 @@
|
|
25981
26073
|
}
|
25982
26074
|
}
|
25983
26075
|
switch (object.inputSelector) {
|
25984
|
-
case "
|
26076
|
+
case "SelectAscending":
|
25985
26077
|
case 0:
|
25986
26078
|
message.inputSelector = 0;
|
25987
26079
|
break;
|
@@ -25989,9 +26081,9 @@
|
|
25989
26081
|
case 1:
|
25990
26082
|
message.inputSelector = 1;
|
25991
26083
|
break;
|
25992
|
-
case "
|
25993
|
-
case
|
25994
|
-
message.inputSelector =
|
26084
|
+
case "UseAll":
|
26085
|
+
case 10:
|
26086
|
+
message.inputSelector = 10;
|
25995
26087
|
break;
|
25996
26088
|
}
|
25997
26089
|
if (object.taggedOutput != null) {
|
@@ -26046,7 +26138,7 @@
|
|
26046
26138
|
if (options.bytes !== Array)
|
26047
26139
|
object.privateKey = $util.newBuffer(object.privateKey);
|
26048
26140
|
}
|
26049
|
-
object.inputSelector = options.enums === String ? "
|
26141
|
+
object.inputSelector = options.enums === String ? "SelectAscending" : 0;
|
26050
26142
|
object.taggedOutput = null;
|
26051
26143
|
object.inscription = null;
|
26052
26144
|
if ($util.Long) {
|
@@ -26256,6 +26348,7 @@
|
|
26256
26348
|
case 7:
|
26257
26349
|
case 8:
|
26258
26350
|
case 9:
|
26351
|
+
case 43:
|
26259
26352
|
case 10:
|
26260
26353
|
case 11:
|
26261
26354
|
case 12:
|
@@ -26355,6 +26448,10 @@
|
|
26355
26448
|
case 9:
|
26356
26449
|
message.error = 9;
|
26357
26450
|
break;
|
26451
|
+
case "Error_utxo_no_outputs_specified":
|
26452
|
+
case 43:
|
26453
|
+
message.error = 43;
|
26454
|
+
break;
|
26358
26455
|
case "Error_utxo_missing_change_script_pubkey":
|
26359
26456
|
case 10:
|
26360
26457
|
message.error = 10;
|
@@ -26773,7 +26870,8 @@
|
|
26773
26870
|
* @property {number} Error_missing_sighash_method=6 Error_missing_sighash_method value
|
26774
26871
|
* @property {number} Error_failed_encoding=7 Error_failed_encoding value
|
26775
26872
|
* @property {number} Error_insufficient_inputs=8 Error_insufficient_inputs value
|
26776
|
-
* @property {number}
|
26873
|
+
* @property {number} Error_no_outputs_specified=9 Error_no_outputs_specified value
|
26874
|
+
* @property {number} Error_missing_change_script_pubkey=10 Error_missing_change_script_pubkey value
|
26777
26875
|
*/
|
26778
26876
|
Proto.Error = (function() {
|
26779
26877
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -26786,7 +26884,8 @@
|
|
26786
26884
|
values[valuesById[6] = "Error_missing_sighash_method"] = 6;
|
26787
26885
|
values[valuesById[7] = "Error_failed_encoding"] = 7;
|
26788
26886
|
values[valuesById[8] = "Error_insufficient_inputs"] = 8;
|
26789
|
-
values[valuesById[9] = "
|
26887
|
+
values[valuesById[9] = "Error_no_outputs_specified"] = 9;
|
26888
|
+
values[valuesById[10] = "Error_missing_change_script_pubkey"] = 10;
|
26790
26889
|
return values;
|
26791
26890
|
})();
|
26792
26891
|
|
@@ -27029,7 +27128,7 @@
|
|
27029
27128
|
return "inputSelector: enum value expected";
|
27030
27129
|
case 0:
|
27031
27130
|
case 1:
|
27032
|
-
case
|
27131
|
+
case 10:
|
27033
27132
|
break;
|
27034
27133
|
}
|
27035
27134
|
if (message.weightBase != null && message.hasOwnProperty("weightBase"))
|
@@ -27084,7 +27183,7 @@
|
|
27084
27183
|
}
|
27085
27184
|
}
|
27086
27185
|
switch (object.inputSelector) {
|
27087
|
-
case "
|
27186
|
+
case "SelectAscending":
|
27088
27187
|
case 0:
|
27089
27188
|
message.inputSelector = 0;
|
27090
27189
|
break;
|
@@ -27092,9 +27191,9 @@
|
|
27092
27191
|
case 1:
|
27093
27192
|
message.inputSelector = 1;
|
27094
27193
|
break;
|
27095
|
-
case "
|
27096
|
-
case
|
27097
|
-
message.inputSelector =
|
27194
|
+
case "UseAll":
|
27195
|
+
case 10:
|
27196
|
+
message.inputSelector = 10;
|
27098
27197
|
break;
|
27099
27198
|
}
|
27100
27199
|
if (object.weightBase != null)
|
@@ -27136,7 +27235,7 @@
|
|
27136
27235
|
if (options.defaults) {
|
27137
27236
|
object.version = 0;
|
27138
27237
|
object.lockTime = null;
|
27139
|
-
object.inputSelector = options.enums === String ? "
|
27238
|
+
object.inputSelector = options.enums === String ? "SelectAscending" : 0;
|
27140
27239
|
if ($util.Long) {
|
27141
27240
|
var long = new $util.Long(0, 0, true);
|
27142
27241
|
object.weightBase = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
@@ -27197,15 +27296,15 @@
|
|
27197
27296
|
* InputSelector enum.
|
27198
27297
|
* @name TW.Utxo.Proto.InputSelector
|
27199
27298
|
* @enum {number}
|
27200
|
-
* @property {number}
|
27299
|
+
* @property {number} SelectAscending=0 SelectAscending value
|
27201
27300
|
* @property {number} SelectInOrder=1 SelectInOrder value
|
27202
|
-
* @property {number}
|
27301
|
+
* @property {number} UseAll=10 UseAll value
|
27203
27302
|
*/
|
27204
27303
|
Proto.InputSelector = (function() {
|
27205
27304
|
var valuesById = {}, values = Object.create(valuesById);
|
27206
|
-
values[valuesById[0] = "
|
27305
|
+
values[valuesById[0] = "SelectAscending"] = 0;
|
27207
27306
|
values[valuesById[1] = "SelectInOrder"] = 1;
|
27208
|
-
values[valuesById[
|
27307
|
+
values[valuesById[10] = "UseAll"] = 10;
|
27209
27308
|
return values;
|
27210
27309
|
})();
|
27211
27310
|
|
@@ -28321,6 +28420,7 @@
|
|
28321
28420
|
case 7:
|
28322
28421
|
case 8:
|
28323
28422
|
case 9:
|
28423
|
+
case 10:
|
28324
28424
|
break;
|
28325
28425
|
}
|
28326
28426
|
if (message.txid != null && message.hasOwnProperty("txid"))
|
@@ -28411,10 +28511,14 @@
|
|
28411
28511
|
case 8:
|
28412
28512
|
message.error = 8;
|
28413
28513
|
break;
|
28414
|
-
case "
|
28514
|
+
case "Error_no_outputs_specified":
|
28415
28515
|
case 9:
|
28416
28516
|
message.error = 9;
|
28417
28517
|
break;
|
28518
|
+
case "Error_missing_change_script_pubkey":
|
28519
|
+
case 10:
|
28520
|
+
message.error = 10;
|
28521
|
+
break;
|
28418
28522
|
}
|
28419
28523
|
if (object.txid != null)
|
28420
28524
|
if (typeof object.txid === "string")
|
@@ -29147,6 +29251,7 @@
|
|
29147
29251
|
* @interface ITxInClaim
|
29148
29252
|
* @property {Uint8Array|null} [txid] TxInClaim txid
|
29149
29253
|
* @property {number|null} [vout] TxInClaim vout
|
29254
|
+
* @property {Long|null} [value] TxInClaim value
|
29150
29255
|
* @property {number|null} [sequence] TxInClaim sequence
|
29151
29256
|
* @property {Uint8Array|null} [scriptSig] TxInClaim scriptSig
|
29152
29257
|
* @property {Array.<Uint8Array>|null} [witnessItems] TxInClaim witnessItems
|
@@ -29184,6 +29289,14 @@
|
|
29184
29289
|
*/
|
29185
29290
|
TxInClaim.prototype.vout = 0;
|
29186
29291
|
|
29292
|
+
/**
|
29293
|
+
* TxInClaim value.
|
29294
|
+
* @member {Long} value
|
29295
|
+
* @memberof TW.Utxo.Proto.TxInClaim
|
29296
|
+
* @instance
|
29297
|
+
*/
|
29298
|
+
TxInClaim.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
29299
|
+
|
29187
29300
|
/**
|
29188
29301
|
* TxInClaim sequence.
|
29189
29302
|
* @member {number} sequence
|
@@ -29236,13 +29349,15 @@
|
|
29236
29349
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.txid);
|
29237
29350
|
if (message.vout != null && Object.hasOwnProperty.call(message, "vout"))
|
29238
29351
|
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.vout);
|
29352
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
29353
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.value);
|
29239
29354
|
if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence"))
|
29240
|
-
writer.uint32(/* id
|
29355
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.sequence);
|
29241
29356
|
if (message.scriptSig != null && Object.hasOwnProperty.call(message, "scriptSig"))
|
29242
|
-
writer.uint32(/* id
|
29357
|
+
writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.scriptSig);
|
29243
29358
|
if (message.witnessItems != null && message.witnessItems.length)
|
29244
29359
|
for (var i = 0; i < message.witnessItems.length; ++i)
|
29245
|
-
writer.uint32(/* id
|
29360
|
+
writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.witnessItems[i]);
|
29246
29361
|
return writer;
|
29247
29362
|
};
|
29248
29363
|
|
@@ -29271,12 +29386,15 @@
|
|
29271
29386
|
message.vout = reader.uint32();
|
29272
29387
|
break;
|
29273
29388
|
case 3:
|
29274
|
-
message.
|
29389
|
+
message.value = reader.uint64();
|
29275
29390
|
break;
|
29276
29391
|
case 4:
|
29277
|
-
message.
|
29392
|
+
message.sequence = reader.uint32();
|
29278
29393
|
break;
|
29279
29394
|
case 5:
|
29395
|
+
message.scriptSig = reader.bytes();
|
29396
|
+
break;
|
29397
|
+
case 6:
|
29280
29398
|
if (!(message.witnessItems && message.witnessItems.length))
|
29281
29399
|
message.witnessItems = [];
|
29282
29400
|
message.witnessItems.push(reader.bytes());
|
@@ -29306,6 +29424,9 @@
|
|
29306
29424
|
if (message.vout != null && message.hasOwnProperty("vout"))
|
29307
29425
|
if (!$util.isInteger(message.vout))
|
29308
29426
|
return "vout: integer expected";
|
29427
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
29428
|
+
if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)))
|
29429
|
+
return "value: integer|Long expected";
|
29309
29430
|
if (message.sequence != null && message.hasOwnProperty("sequence"))
|
29310
29431
|
if (!$util.isInteger(message.sequence))
|
29311
29432
|
return "sequence: integer expected";
|
@@ -29341,6 +29462,15 @@
|
|
29341
29462
|
message.txid = object.txid;
|
29342
29463
|
if (object.vout != null)
|
29343
29464
|
message.vout = object.vout >>> 0;
|
29465
|
+
if (object.value != null)
|
29466
|
+
if ($util.Long)
|
29467
|
+
(message.value = $util.Long.fromValue(object.value)).unsigned = true;
|
29468
|
+
else if (typeof object.value === "string")
|
29469
|
+
message.value = parseInt(object.value, 10);
|
29470
|
+
else if (typeof object.value === "number")
|
29471
|
+
message.value = object.value;
|
29472
|
+
else if (typeof object.value === "object")
|
29473
|
+
message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true);
|
29344
29474
|
if (object.sequence != null)
|
29345
29475
|
message.sequence = object.sequence >>> 0;
|
29346
29476
|
if (object.scriptSig != null)
|
@@ -29385,6 +29515,11 @@
|
|
29385
29515
|
object.txid = $util.newBuffer(object.txid);
|
29386
29516
|
}
|
29387
29517
|
object.vout = 0;
|
29518
|
+
if ($util.Long) {
|
29519
|
+
var long = new $util.Long(0, 0, true);
|
29520
|
+
object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
29521
|
+
} else
|
29522
|
+
object.value = options.longs === String ? "0" : 0;
|
29388
29523
|
object.sequence = 0;
|
29389
29524
|
if (options.bytes === String)
|
29390
29525
|
object.scriptSig = "";
|
@@ -29398,6 +29533,11 @@
|
|
29398
29533
|
object.txid = options.bytes === String ? $util.base64.encode(message.txid, 0, message.txid.length) : options.bytes === Array ? Array.prototype.slice.call(message.txid) : message.txid;
|
29399
29534
|
if (message.vout != null && message.hasOwnProperty("vout"))
|
29400
29535
|
object.vout = message.vout;
|
29536
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
29537
|
+
if (typeof message.value === "number")
|
29538
|
+
object.value = options.longs === String ? String(message.value) : message.value;
|
29539
|
+
else
|
29540
|
+
object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value;
|
29401
29541
|
if (message.sequence != null && message.hasOwnProperty("sequence"))
|
29402
29542
|
object.sequence = message.sequence;
|
29403
29543
|
if (message.scriptSig != null && message.hasOwnProperty("scriptSig"))
|
@@ -29595,6 +29735,7 @@
|
|
29595
29735
|
case 7:
|
29596
29736
|
case 8:
|
29597
29737
|
case 9:
|
29738
|
+
case 10:
|
29598
29739
|
break;
|
29599
29740
|
}
|
29600
29741
|
if (message.encoded != null && message.hasOwnProperty("encoded"))
|
@@ -29661,10 +29802,14 @@
|
|
29661
29802
|
case 8:
|
29662
29803
|
message.error = 8;
|
29663
29804
|
break;
|
29664
|
-
case "
|
29805
|
+
case "Error_no_outputs_specified":
|
29665
29806
|
case 9:
|
29666
29807
|
message.error = 9;
|
29667
29808
|
break;
|
29809
|
+
case "Error_missing_change_script_pubkey":
|
29810
|
+
case 10:
|
29811
|
+
message.error = 10;
|
29812
|
+
break;
|
29668
29813
|
}
|
29669
29814
|
if (object.encoded != null)
|
29670
29815
|
if (typeof object.encoded === "string")
|
package/dist/lib/wallet-core.js
CHANGED
@@ -34,7 +34,7 @@ function Ua(){Qa++;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert
|
|
34
34
|
function Va(){return G.startsWith("data:application/octet-stream;base64,")}function ma(a){return a.startsWith("file://")}function H(a){return function(){var b=g.asm;assert(Oa,"native function `"+a+"` called before runtime initialization");b[a]||assert(b[a],"exported native function `"+a+"` not found");return b[a].apply(null,arguments)}}var G;G="wallet-core.wasm";if(!Va()){var Wa=G;G=g.locateFile?g.locateFile(Wa,w):w+Wa}
|
35
35
|
function Xa(){var a=G;try{if(a==G&&qa)return new Uint8Array(qa);if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";}catch(b){p(b)}}
|
36
36
|
function Ya(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(G))return fetch(G,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+G+"'";return a.arrayBuffer()}).catch(function(){return Xa()});if(ja)return new Promise(function(a,b){ja(G,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Xa()})}
|
37
|
-
var Za,$a,ab={
|
37
|
+
var Za,$a,ab={2171988:()=>{if(void 0===g.ea)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.ea=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.ea=a}catch(e){throw"No secure random number generator found";}}},2172710:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
|
38
38
|
function va(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function pa(a){cb||(cb={});cb[a]||(cb[a]=1,v&&(a="warning: "+a),y(a))}var cb,db=0;
|
39
39
|
function eb(a){this.l=a-24;this.Ta=function(b){F[this.l+4>>2]=b};this.Da=function(){return F[this.l+4>>2]};this.Ja=function(b){F[this.l+8>>2]=b};this.Ka=function(){D[this.l>>2]=0};this.Ia=function(){B[this.l+12>>0]=0};this.Na=function(){B[this.l+13>>0]=0};this.Ea=function(b,c){this.F(0);this.Ta(b);this.Ja(c);this.Ka();this.Ia();this.Na()};this.F=function(b){F[this.l+16>>2]=b}}
|
40
40
|
var fb=0,gb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},hb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=gb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},ib=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},jb=
|
@@ -146,8 +146,8 @@ d);e=e.min.call(e,2147483648,d+(65536-d%65536)%65536);a:{d=e;var f=ra.buffer;try
|
|
146
146
|
b;for(var f,h=b=0;h<c;h++){var l=F[a>>2],n=F[a+4>>2];a+=8;var m=e,q=l,t=n,u=f,k=B;if(0>t||0>u)throw new I(28);if(null===m.fd)throw new I(8);if(1===(m.flags&2097155))throw new I(8);if(16384===(m.node.mode&61440))throw new I(31);if(!m.h.read)throw new I(28);var r="undefined"!=typeof u;if(!r)u=m.position;else if(!m.seekable)throw new I(70);var x=m.h.read(m,k,q,t,u);r||(m.position+=x);var E=x;if(0>E){var P=-1;break a}b+=E;if(E<n)break;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==
|
147
147
|
typeof L||!(M instanceof I))throw M;return M.D}},fd_seek:function(a,b,c,d,e){try{assert(b==b>>>0||b==(b|0));assert(c===(c|0));var f=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(f))return 61;var h=N(a);Yb(h,f,d);$a=[h.position>>>0,(Za=h.position,1<=+Math.abs(Za)?0<Za?(Math.min(+Math.floor(Za/4294967296),4294967295)|0)>>>0:~~+Math.ceil((Za-+(~~Za>>>0))/4294967296)>>>0:0)];D[e>>2]=$a[0];D[e+4>>2]=$a[1];h.fa&&0===f&&0===d&&(h.fa=null);return 0}catch(l){if("undefined"==typeof L||!(l instanceof
|
148
148
|
I))throw l;return l.D}},fd_write:function(a,b,c,d){try{a:{var e=N(a);a=b;for(var f,h=b=0;h<c;h++){var l=F[a>>2],n=F[a+4>>2];a+=8;var m=e,q=l,t=n,u=f,k=B;if(0>t||0>u)throw new I(28);if(null===m.fd)throw new I(8);if(0===(m.flags&2097155))throw new I(8);if(16384===(m.node.mode&61440))throw new I(31);if(!m.h.write)throw new I(28);m.seekable&&m.flags&1024&&Yb(m,0,2);var r="undefined"!=typeof u;if(!r)u=m.position;else if(!m.seekable)throw new I(70);var x=m.h.write(m,k,q,t,u,void 0);r||(m.position+=x);var E=
|
149
|
-
x;if(0>E){var P=-1;break a}b+=E;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==typeof L||!(M instanceof I))throw M;return M.D}},getentropy:Fd,invoke_i:Qd,invoke_ii:Rd,invoke_iid:Sd,invoke_iii:Td,invoke_iiii:Ud,invoke_iiiii:Vd,invoke_iiiiii:Wd,invoke_iiiiiii:Xd,invoke_iij:Yd,
|
150
|
-
invoke_viiiiiiii:
|
149
|
+
x;if(0>E){var P=-1;break a}b+=E;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==typeof L||!(M instanceof I))throw M;return M.D}},getentropy:Fd,invoke_i:Qd,invoke_ii:Rd,invoke_iid:Sd,invoke_iii:Td,invoke_iiii:Ud,invoke_iiiii:Vd,invoke_iiiiii:Wd,invoke_iiiiiii:Xd,invoke_iij:Yd,invoke_iijii:Zd,invoke_iijj:$d,invoke_jii:ae,invoke_jiii:be,invoke_jj:ce,invoke_jjji:de,invoke_v:ee,invoke_vi:fe,invoke_vii:ge,invoke_viii:he,invoke_viiii:ie,invoke_viiiii:je,invoke_viiiiii:ke,invoke_viiiiiii:le,
|
150
|
+
invoke_viiiiiiii:me,invoke_viiiiiji:ne,invoke_viiijii:oe,invoke_viij:pe,invoke_viijii:qe,invoke_vij:re,strftime_l:function(a,b,c,d){return Kd(a,b,c,d)}};
|
151
151
|
(function(){function a(f){g.asm=f.exports;ra=g.asm.memory;assert(ra,"memory not found in wasm exports");Da();Fa=g.asm.__indirect_function_table;assert(Fa,"table not found in wasm exports");Ma.unshift(g.asm.__wasm_call_ctors);Qa--;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert(Ta["wasm-instantiate"]);delete Ta["wasm-instantiate"];0==Qa&&(null!==Ra&&(clearInterval(Ra),Ra=null),Sa&&(f=Sa,Sa=null,f()))}function b(f){assert(g===e,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?");
|
152
152
|
e=null;a(f.instance)}function c(f){return Ya().then(function(h){return WebAssembly.instantiate(h,d)}).then(function(h){return h}).then(f,function(h){y("failed to asynchronously prepare wasm: "+h);ma(G)&&y("warning: Loading from a file URI ("+G+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing");p(h)})}var d={env:se,wasi_snapshot_preview1:se};Ua();var e=g;if(g.instantiateWasm)try{return g.instantiateWasm(d,
|
153
153
|
a)}catch(f){y("Module.instantiateWasm callback failed with error: "+f),ba(f)}(function(){return qa||"function"!=typeof WebAssembly.instantiateStreaming||Va()||ma(G)||v||"function"!=typeof fetch?c(b):fetch(G,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(b,function(h){y("wasm streaming compile failed: "+h);y("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ba);return{}})();g.___wasm_call_ctors=H("__wasm_call_ctors");
|
@@ -155,13 +155,13 @@ var zd=g._malloc=H("malloc"),Pd=g.___errno_location=H("__errno_location"),V=g._f
|
|
155
155
|
var X=g._setThrew=H("setThrew"),Nd=g.setTempRet0=H("setTempRet0"),te=g._emscripten_stack_init=function(){return(te=g._emscripten_stack_init=g.asm.emscripten_stack_init).apply(null,arguments)};g._emscripten_stack_get_free=function(){return(g._emscripten_stack_get_free=g.asm.emscripten_stack_get_free).apply(null,arguments)};g._emscripten_stack_get_base=function(){return(g._emscripten_stack_get_base=g.asm.emscripten_stack_get_base).apply(null,arguments)};
|
156
156
|
var Ha=g._emscripten_stack_get_end=function(){return(Ha=g._emscripten_stack_get_end=g.asm.emscripten_stack_get_end).apply(null,arguments)},Y=g.stackSave=H("stackSave"),Z=g.stackRestore=H("stackRestore");g.stackAlloc=H("stackAlloc");g._emscripten_stack_get_current=function(){return(g._emscripten_stack_get_current=g.asm.emscripten_stack_get_current).apply(null,arguments)};g.___cxa_free_exception=H("__cxa_free_exception");var Od=g.___cxa_can_catch=H("__cxa_can_catch");g.___cxa_is_pointer_type=H("__cxa_is_pointer_type");
|
157
157
|
g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiij=H("dynCall_iiiij");var ue=g.dynCall_jii=H("dynCall_jii");g.dynCall_ji=H("dynCall_ji");g.dynCall_iiji=H("dynCall_iiji");g.dynCall_iiiji=H("dynCall_iiiji");var ve=g.dynCall_jiii=H("dynCall_jiii");g.dynCall_jiiii=H("dynCall_jiiii");g.dynCall_iiij=H("dynCall_iiij");g.dynCall_jijjj=H("dynCall_jijjj");g.dynCall_jij=H("dynCall_jij");var we=g.dynCall_viijii=H("dynCall_viijii");g.dynCall_viiiijijji=H("dynCall_viiiijijji");
|
158
|
-
var xe=g.dynCall_jj=H("dynCall_jj"),ye=g.dynCall_vij=H("dynCall_vij"),ze=g.
|
159
|
-
function
|
160
|
-
function
|
161
|
-
function Vd(a,b,c,d,e){var f=Y();try{return U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function
|
162
|
-
function Xd(a,b,c,d,e,f,h){var l=Y();try{return U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function
|
163
|
-
function
|
164
|
-
function qe(a,b,c,d,e,f,h){var l=Y();try{we(a,b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function oe(a,b,c,d,e,f,h,l){var n=Y();try{De(a,b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function pe(a,b,c,d,e){var f=Y();try{Ee(a,b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function
|
158
|
+
var xe=g.dynCall_jj=H("dynCall_jj"),ye=g.dynCall_vij=H("dynCall_vij"),ze=g.dynCall_iijii=H("dynCall_iijii"),Ae=g.dynCall_iij=H("dynCall_iij"),Be=g.dynCall_iijj=H("dynCall_iijj"),Ce=g.dynCall_viiiiiji=H("dynCall_viiiiiji"),De=g.dynCall_viiijii=H("dynCall_viiijii"),Ee=g.dynCall_viij=H("dynCall_viij"),Fe=g.dynCall_jjji=H("dynCall_jjji");g.dynCall_viji=H("dynCall_viji");g.dynCall_jiji=H("dynCall_jiji");g.dynCall_iiiiijj=H("dynCall_iiiiijj");g.dynCall_iiiiiijj=H("dynCall_iiiiiijj");
|
159
|
+
function ge(a,b,c){var d=Y();try{U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function fe(a,b){var c=Y();try{U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function he(a,b,c,d){var e=Y();try{U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function je(a,b,c,d,e,f){var h=Y();try{U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function ee(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}
|
160
|
+
function Td(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function ie(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Rd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function Ud(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}
|
161
|
+
function Vd(a,b,c,d,e){var f=Y();try{return U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function ke(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function Sd(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function le(a,b,c,d,e,f,h,l){var n=Y();try{U(a)(b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function Wd(a,b,c,d,e,f){var h=Y();try{return U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
|
162
|
+
function Xd(a,b,c,d,e,f,h){var l=Y();try{return U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function me(a,b,c,d,e,f,h,l,n){var m=Y();try{U(a)(b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function ce(a,b,c){var d=Y();try{return xe(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function re(a,b,c,d){var e=Y();try{ye(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function ae(a,b,c){var d=Y();try{return ue(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
163
|
+
function Zd(a,b,c,d,e,f){var h=Y();try{return ze(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Yd(a,b,c,d){var e=Y();try{return Ae(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function $d(a,b,c,d,e,f){var h=Y();try{return Be(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function ne(a,b,c,d,e,f,h,l,n){var m=Y();try{Ce(a,b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}
|
164
|
+
function be(a,b,c,d){var e=Y();try{return ve(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function qe(a,b,c,d,e,f,h){var l=Y();try{we(a,b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function oe(a,b,c,d,e,f,h,l){var n=Y();try{De(a,b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function pe(a,b,c,d,e){var f=Y();try{Ee(a,b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function de(a,b,c,d,e,f){var h=Y();try{return Fe(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
|
165
165
|
"run UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 addOnPreRun addOnInit addOnPreMain addOnExit addOnPostRun addRunDependency removeRunDependency FS_createFolder FS_createPath FS_createDataFile FS_createPreloadedFile FS_createLazyFile FS_createLink FS_createDevice FS_unlink getLEB getFunctionTables alignFunctionTables registerFunctions prettyPrint getCompilerSetting out err callMain abort keepRuntimeAlive wasmMemory stackAlloc stackSave stackRestore getTempRet0 setTempRet0 writeStackCookie checkStackCookie ptrToString zeroMemory stringToNewUTF8 exitJS getHeapMax emscripten_realloc_buffer ENV ERRNO_CODES ERRNO_MESSAGES setErrNo inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr DNS getHostByName Protocols Sockets getRandomDevice warnOnce traverseStack UNWIND_CACHE convertPCtoSourceLocation readEmAsmArgsArray readEmAsmArgs runEmAsmFunction runMainThreadEmAsm jstoi_q jstoi_s getExecutableName listenOnce autoResumeAudioContext dynCallLegacy getDynCaller dynCall handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle asyncLoad alignMemory mmapAlloc handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm freeTableIndexes functionsInTableMap getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString setValue getValue PATH PATH_FS intArrayFromString intArrayToString AsciiToString stringToAscii UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 allocateUTF8 allocateUTF8OnStack writeStringToMemory writeArrayToMemory writeAsciiToMemory SYSCALLS getSocketFromFD getSocketAddress JSEvents registerKeyEventCallback specialHTMLTargets maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox currentFullscreenStrategy restoreOldWindowedStyle softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize demangle demangleAll jsStackTrace stackTrace ExitStatus getEnvStrings checkWasiClock doReadv doWritev createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate promiseMap newNativePromise getPromise uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo exception_addRef exception_decRef Browser setMainLoop wget FS MEMFS TTY PIPEFS SOCKFS _setNetworkCallback InternalError BindingError UnboundTypeError PureVirtualError init_embind throwInternalError throwBindingError throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol extendError createNamedFunction embindRepr registeredInstances getBasestPointer registerInheritedInstance unregisterInheritedInstance getInheritedInstance getInheritedInstanceCount getLiveInheritedInstances registeredTypes awaitingDependencies typeDependencies registeredPointers registerType whenDependentTypesAreResolved embind_charCodes embind_init_charCodes readLatin1String getTypeName heap32VectorToArray requireRegisteredType getShiftFromSize integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer simpleReadValueFromPointer runDestructors new_ craftInvokerFunction embind__requireFunction tupleRegistrations structRegistrations genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_getPointee RegisteredPointer_destructor RegisteredPointer_deleteObject RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle ClassHandle_isAliasOf throwInstanceAlreadyDeleted ClassHandle_clone ClassHandle_delete deletionQueue ClassHandle_isDeleted ClassHandle_deleteLater flushPendingDeletes delayFunction setDelayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer validateThis char_0 char_9 makeLegalFunctionName emval_handle_array emval_free_list emval_symbols init_emval count_emval_handles get_first_emval getStringOrSymbol Emval emval_newers craftEmvalAllocator emval_get_global emval_lookupTypes emval_allocateDestructors emval_methodCallers emval_addMethodCaller emval_registeredMethods".split(" ").forEach(function(a){Object.getOwnPropertyDescriptor(g,a)||
|
166
166
|
Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");p(b)}})});
|
167
167
|
"stringToNewUTF8 exitJS inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr getHostByName traverseStack convertPCtoSourceLocation runMainThreadEmAsm jstoi_q jstoi_s listenOnce autoResumeAudioContext handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromU64 convertI32PairToI53 convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString intArrayToString AsciiToString stringToAscii allocateUTF8OnStack writeStringToMemory getSocketFromFD getSocketAddress registerKeyEventCallback maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize jsStackTrace stackTrace checkWasiClock createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate newNativePromise getPromise exception_addRef exception_decRef setMainLoop _setNetworkCallback registerInheritedInstance unregisterInheritedInstance validateThis".split(" ").forEach(function(a){"undefined"===typeof globalThis||
|
Binary file
|