@trustwallet/wallet-core 2.9.1 → 2.9.4
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.
@@ -17077,6 +17077,9 @@ export namespace TW {
|
|
17077
17077
|
|
17078
17078
|
/** Staking chill */
|
17079
17079
|
chill?: (TW.Polkadot.Proto.Staking.IChill|null);
|
17080
|
+
|
17081
|
+
/** Staking chillAndUnbond */
|
17082
|
+
chillAndUnbond?: (TW.Polkadot.Proto.Staking.IChillAndUnbond|null);
|
17080
17083
|
}
|
17081
17084
|
|
17082
17085
|
/** Represents a Staking. */
|
@@ -17109,8 +17112,11 @@ export namespace TW {
|
|
17109
17112
|
/** Staking chill. */
|
17110
17113
|
public chill?: (TW.Polkadot.Proto.Staking.IChill|null);
|
17111
17114
|
|
17115
|
+
/** Staking chillAndUnbond. */
|
17116
|
+
public chillAndUnbond?: (TW.Polkadot.Proto.Staking.IChillAndUnbond|null);
|
17117
|
+
|
17112
17118
|
/** Staking messageOneof. */
|
17113
|
-
public messageOneof?: ("bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill");
|
17119
|
+
public messageOneof?: ("bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill"|"chillAndUnbond");
|
17114
17120
|
|
17115
17121
|
/**
|
17116
17122
|
* Creates a new Staking instance using the specified properties.
|
@@ -17636,6 +17642,79 @@ export namespace TW {
|
|
17636
17642
|
public toJSON(): { [k: string]: any };
|
17637
17643
|
}
|
17638
17644
|
|
17645
|
+
/** Properties of a ChillAndUnbond. */
|
17646
|
+
interface IChillAndUnbond {
|
17647
|
+
|
17648
|
+
/** ChillAndUnbond value */
|
17649
|
+
value?: (Uint8Array|null);
|
17650
|
+
}
|
17651
|
+
|
17652
|
+
/** Represents a ChillAndUnbond. */
|
17653
|
+
class ChillAndUnbond implements IChillAndUnbond {
|
17654
|
+
|
17655
|
+
/**
|
17656
|
+
* Constructs a new ChillAndUnbond.
|
17657
|
+
* @param [properties] Properties to set
|
17658
|
+
*/
|
17659
|
+
constructor(properties?: TW.Polkadot.Proto.Staking.IChillAndUnbond);
|
17660
|
+
|
17661
|
+
/** ChillAndUnbond value. */
|
17662
|
+
public value: Uint8Array;
|
17663
|
+
|
17664
|
+
/**
|
17665
|
+
* Creates a new ChillAndUnbond instance using the specified properties.
|
17666
|
+
* @param [properties] Properties to set
|
17667
|
+
* @returns ChillAndUnbond instance
|
17668
|
+
*/
|
17669
|
+
public static create(properties?: TW.Polkadot.Proto.Staking.IChillAndUnbond): TW.Polkadot.Proto.Staking.ChillAndUnbond;
|
17670
|
+
|
17671
|
+
/**
|
17672
|
+
* Encodes the specified ChillAndUnbond message. Does not implicitly {@link TW.Polkadot.Proto.Staking.ChillAndUnbond.verify|verify} messages.
|
17673
|
+
* @param message ChillAndUnbond message or plain object to encode
|
17674
|
+
* @param [writer] Writer to encode to
|
17675
|
+
* @returns Writer
|
17676
|
+
*/
|
17677
|
+
public static encode(message: TW.Polkadot.Proto.Staking.IChillAndUnbond, writer?: $protobuf.Writer): $protobuf.Writer;
|
17678
|
+
|
17679
|
+
/**
|
17680
|
+
* Decodes a ChillAndUnbond message from the specified reader or buffer.
|
17681
|
+
* @param reader Reader or buffer to decode from
|
17682
|
+
* @param [length] Message length if known beforehand
|
17683
|
+
* @returns ChillAndUnbond
|
17684
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
17685
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
17686
|
+
*/
|
17687
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Polkadot.Proto.Staking.ChillAndUnbond;
|
17688
|
+
|
17689
|
+
/**
|
17690
|
+
* Verifies a ChillAndUnbond message.
|
17691
|
+
* @param message Plain object to verify
|
17692
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
17693
|
+
*/
|
17694
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
17695
|
+
|
17696
|
+
/**
|
17697
|
+
* Creates a ChillAndUnbond message from a plain object. Also converts values to their respective internal types.
|
17698
|
+
* @param object Plain object
|
17699
|
+
* @returns ChillAndUnbond
|
17700
|
+
*/
|
17701
|
+
public static fromObject(object: { [k: string]: any }): TW.Polkadot.Proto.Staking.ChillAndUnbond;
|
17702
|
+
|
17703
|
+
/**
|
17704
|
+
* Creates a plain object from a ChillAndUnbond message. Also converts values to other types if specified.
|
17705
|
+
* @param message ChillAndUnbond
|
17706
|
+
* @param [options] Conversion options
|
17707
|
+
* @returns Plain object
|
17708
|
+
*/
|
17709
|
+
public static toObject(message: TW.Polkadot.Proto.Staking.ChillAndUnbond, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
17710
|
+
|
17711
|
+
/**
|
17712
|
+
* Converts this ChillAndUnbond to JSON.
|
17713
|
+
* @returns JSON object
|
17714
|
+
*/
|
17715
|
+
public toJSON(): { [k: string]: any };
|
17716
|
+
}
|
17717
|
+
|
17639
17718
|
/** Properties of a Chill. */
|
17640
17719
|
interface IChill {
|
17641
17720
|
}
|
@@ -49898,6 +49898,7 @@
|
|
49898
49898
|
* @property {TW.Polkadot.Proto.Staking.IWithdrawUnbonded|null} [withdrawUnbonded] Staking withdrawUnbonded
|
49899
49899
|
* @property {TW.Polkadot.Proto.Staking.INominate|null} [nominate] Staking nominate
|
49900
49900
|
* @property {TW.Polkadot.Proto.Staking.IChill|null} [chill] Staking chill
|
49901
|
+
* @property {TW.Polkadot.Proto.Staking.IChillAndUnbond|null} [chillAndUnbond] Staking chillAndUnbond
|
49901
49902
|
*/
|
49902
49903
|
|
49903
49904
|
/**
|
@@ -49971,17 +49972,25 @@
|
|
49971
49972
|
*/
|
49972
49973
|
Staking.prototype.chill = null;
|
49973
49974
|
|
49975
|
+
/**
|
49976
|
+
* Staking chillAndUnbond.
|
49977
|
+
* @member {TW.Polkadot.Proto.Staking.IChillAndUnbond|null|undefined} chillAndUnbond
|
49978
|
+
* @memberof TW.Polkadot.Proto.Staking
|
49979
|
+
* @instance
|
49980
|
+
*/
|
49981
|
+
Staking.prototype.chillAndUnbond = null;
|
49982
|
+
|
49974
49983
|
// OneOf field names bound to virtual getters and setters
|
49975
49984
|
var $oneOfFields;
|
49976
49985
|
|
49977
49986
|
/**
|
49978
49987
|
* Staking messageOneof.
|
49979
|
-
* @member {"bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill"|undefined} messageOneof
|
49988
|
+
* @member {"bond"|"bondAndNominate"|"bondExtra"|"unbond"|"withdrawUnbonded"|"nominate"|"chill"|"chillAndUnbond"|undefined} messageOneof
|
49980
49989
|
* @memberof TW.Polkadot.Proto.Staking
|
49981
49990
|
* @instance
|
49982
49991
|
*/
|
49983
49992
|
Object.defineProperty(Staking.prototype, "messageOneof", {
|
49984
|
-
get: $util.oneOfGetter($oneOfFields = ["bond", "bondAndNominate", "bondExtra", "unbond", "withdrawUnbonded", "nominate", "chill"]),
|
49993
|
+
get: $util.oneOfGetter($oneOfFields = ["bond", "bondAndNominate", "bondExtra", "unbond", "withdrawUnbonded", "nominate", "chill", "chillAndUnbond"]),
|
49985
49994
|
set: $util.oneOfSetter($oneOfFields)
|
49986
49995
|
});
|
49987
49996
|
|
@@ -50023,6 +50032,8 @@
|
|
50023
50032
|
$root.TW.Polkadot.Proto.Staking.Nominate.encode(message.nominate, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
50024
50033
|
if (message.chill != null && Object.hasOwnProperty.call(message, "chill"))
|
50025
50034
|
$root.TW.Polkadot.Proto.Staking.Chill.encode(message.chill, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
50035
|
+
if (message.chillAndUnbond != null && Object.hasOwnProperty.call(message, "chillAndUnbond"))
|
50036
|
+
$root.TW.Polkadot.Proto.Staking.ChillAndUnbond.encode(message.chillAndUnbond, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
50026
50037
|
return writer;
|
50027
50038
|
};
|
50028
50039
|
|
@@ -50065,6 +50076,9 @@
|
|
50065
50076
|
case 7:
|
50066
50077
|
message.chill = $root.TW.Polkadot.Proto.Staking.Chill.decode(reader, reader.uint32());
|
50067
50078
|
break;
|
50079
|
+
case 8:
|
50080
|
+
message.chillAndUnbond = $root.TW.Polkadot.Proto.Staking.ChillAndUnbond.decode(reader, reader.uint32());
|
50081
|
+
break;
|
50068
50082
|
default:
|
50069
50083
|
reader.skipType(tag & 7);
|
50070
50084
|
break;
|
@@ -50153,6 +50167,16 @@
|
|
50153
50167
|
return "chill." + error;
|
50154
50168
|
}
|
50155
50169
|
}
|
50170
|
+
if (message.chillAndUnbond != null && message.hasOwnProperty("chillAndUnbond")) {
|
50171
|
+
if (properties.messageOneof === 1)
|
50172
|
+
return "messageOneof: multiple values";
|
50173
|
+
properties.messageOneof = 1;
|
50174
|
+
{
|
50175
|
+
var error = $root.TW.Polkadot.Proto.Staking.ChillAndUnbond.verify(message.chillAndUnbond);
|
50176
|
+
if (error)
|
50177
|
+
return "chillAndUnbond." + error;
|
50178
|
+
}
|
50179
|
+
}
|
50156
50180
|
return null;
|
50157
50181
|
};
|
50158
50182
|
|
@@ -50203,6 +50227,11 @@
|
|
50203
50227
|
throw TypeError(".TW.Polkadot.Proto.Staking.chill: object expected");
|
50204
50228
|
message.chill = $root.TW.Polkadot.Proto.Staking.Chill.fromObject(object.chill);
|
50205
50229
|
}
|
50230
|
+
if (object.chillAndUnbond != null) {
|
50231
|
+
if (typeof object.chillAndUnbond !== "object")
|
50232
|
+
throw TypeError(".TW.Polkadot.Proto.Staking.chillAndUnbond: object expected");
|
50233
|
+
message.chillAndUnbond = $root.TW.Polkadot.Proto.Staking.ChillAndUnbond.fromObject(object.chillAndUnbond);
|
50234
|
+
}
|
50206
50235
|
return message;
|
50207
50236
|
};
|
50208
50237
|
|
@@ -50254,6 +50283,11 @@
|
|
50254
50283
|
if (options.oneofs)
|
50255
50284
|
object.messageOneof = "chill";
|
50256
50285
|
}
|
50286
|
+
if (message.chillAndUnbond != null && message.hasOwnProperty("chillAndUnbond")) {
|
50287
|
+
object.chillAndUnbond = $root.TW.Polkadot.Proto.Staking.ChillAndUnbond.toObject(message.chillAndUnbond, options);
|
50288
|
+
if (options.oneofs)
|
50289
|
+
object.messageOneof = "chillAndUnbond";
|
50290
|
+
}
|
50257
50291
|
return object;
|
50258
50292
|
};
|
50259
50293
|
|
@@ -51433,6 +51467,173 @@
|
|
51433
51467
|
return Nominate;
|
51434
51468
|
})();
|
51435
51469
|
|
51470
|
+
Staking.ChillAndUnbond = (function() {
|
51471
|
+
|
51472
|
+
/**
|
51473
|
+
* Properties of a ChillAndUnbond.
|
51474
|
+
* @memberof TW.Polkadot.Proto.Staking
|
51475
|
+
* @interface IChillAndUnbond
|
51476
|
+
* @property {Uint8Array|null} [value] ChillAndUnbond value
|
51477
|
+
*/
|
51478
|
+
|
51479
|
+
/**
|
51480
|
+
* Constructs a new ChillAndUnbond.
|
51481
|
+
* @memberof TW.Polkadot.Proto.Staking
|
51482
|
+
* @classdesc Represents a ChillAndUnbond.
|
51483
|
+
* @implements IChillAndUnbond
|
51484
|
+
* @constructor
|
51485
|
+
* @param {TW.Polkadot.Proto.Staking.IChillAndUnbond=} [properties] Properties to set
|
51486
|
+
*/
|
51487
|
+
function ChillAndUnbond(properties) {
|
51488
|
+
if (properties)
|
51489
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
51490
|
+
if (properties[keys[i]] != null)
|
51491
|
+
this[keys[i]] = properties[keys[i]];
|
51492
|
+
}
|
51493
|
+
|
51494
|
+
/**
|
51495
|
+
* ChillAndUnbond value.
|
51496
|
+
* @member {Uint8Array} value
|
51497
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
51498
|
+
* @instance
|
51499
|
+
*/
|
51500
|
+
ChillAndUnbond.prototype.value = $util.newBuffer([]);
|
51501
|
+
|
51502
|
+
/**
|
51503
|
+
* Creates a new ChillAndUnbond instance using the specified properties.
|
51504
|
+
* @function create
|
51505
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
51506
|
+
* @static
|
51507
|
+
* @param {TW.Polkadot.Proto.Staking.IChillAndUnbond=} [properties] Properties to set
|
51508
|
+
* @returns {TW.Polkadot.Proto.Staking.ChillAndUnbond} ChillAndUnbond instance
|
51509
|
+
*/
|
51510
|
+
ChillAndUnbond.create = function create(properties) {
|
51511
|
+
return new ChillAndUnbond(properties);
|
51512
|
+
};
|
51513
|
+
|
51514
|
+
/**
|
51515
|
+
* Encodes the specified ChillAndUnbond message. Does not implicitly {@link TW.Polkadot.Proto.Staking.ChillAndUnbond.verify|verify} messages.
|
51516
|
+
* @function encode
|
51517
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
51518
|
+
* @static
|
51519
|
+
* @param {TW.Polkadot.Proto.Staking.IChillAndUnbond} message ChillAndUnbond message or plain object to encode
|
51520
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
51521
|
+
* @returns {$protobuf.Writer} Writer
|
51522
|
+
*/
|
51523
|
+
ChillAndUnbond.encode = function encode(message, writer) {
|
51524
|
+
if (!writer)
|
51525
|
+
writer = $Writer.create();
|
51526
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
51527
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value);
|
51528
|
+
return writer;
|
51529
|
+
};
|
51530
|
+
|
51531
|
+
/**
|
51532
|
+
* Decodes a ChillAndUnbond message from the specified reader or buffer.
|
51533
|
+
* @function decode
|
51534
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
51535
|
+
* @static
|
51536
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
51537
|
+
* @param {number} [length] Message length if known beforehand
|
51538
|
+
* @returns {TW.Polkadot.Proto.Staking.ChillAndUnbond} ChillAndUnbond
|
51539
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
51540
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
51541
|
+
*/
|
51542
|
+
ChillAndUnbond.decode = function decode(reader, length) {
|
51543
|
+
if (!(reader instanceof $Reader))
|
51544
|
+
reader = $Reader.create(reader);
|
51545
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Polkadot.Proto.Staking.ChillAndUnbond();
|
51546
|
+
while (reader.pos < end) {
|
51547
|
+
var tag = reader.uint32();
|
51548
|
+
switch (tag >>> 3) {
|
51549
|
+
case 1:
|
51550
|
+
message.value = reader.bytes();
|
51551
|
+
break;
|
51552
|
+
default:
|
51553
|
+
reader.skipType(tag & 7);
|
51554
|
+
break;
|
51555
|
+
}
|
51556
|
+
}
|
51557
|
+
return message;
|
51558
|
+
};
|
51559
|
+
|
51560
|
+
/**
|
51561
|
+
* Verifies a ChillAndUnbond message.
|
51562
|
+
* @function verify
|
51563
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
51564
|
+
* @static
|
51565
|
+
* @param {Object.<string,*>} message Plain object to verify
|
51566
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
51567
|
+
*/
|
51568
|
+
ChillAndUnbond.verify = function verify(message) {
|
51569
|
+
if (typeof message !== "object" || message === null)
|
51570
|
+
return "object expected";
|
51571
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
51572
|
+
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
51573
|
+
return "value: buffer expected";
|
51574
|
+
return null;
|
51575
|
+
};
|
51576
|
+
|
51577
|
+
/**
|
51578
|
+
* Creates a ChillAndUnbond message from a plain object. Also converts values to their respective internal types.
|
51579
|
+
* @function fromObject
|
51580
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
51581
|
+
* @static
|
51582
|
+
* @param {Object.<string,*>} object Plain object
|
51583
|
+
* @returns {TW.Polkadot.Proto.Staking.ChillAndUnbond} ChillAndUnbond
|
51584
|
+
*/
|
51585
|
+
ChillAndUnbond.fromObject = function fromObject(object) {
|
51586
|
+
if (object instanceof $root.TW.Polkadot.Proto.Staking.ChillAndUnbond)
|
51587
|
+
return object;
|
51588
|
+
var message = new $root.TW.Polkadot.Proto.Staking.ChillAndUnbond();
|
51589
|
+
if (object.value != null)
|
51590
|
+
if (typeof object.value === "string")
|
51591
|
+
$util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
|
51592
|
+
else if (object.value.length)
|
51593
|
+
message.value = object.value;
|
51594
|
+
return message;
|
51595
|
+
};
|
51596
|
+
|
51597
|
+
/**
|
51598
|
+
* Creates a plain object from a ChillAndUnbond message. Also converts values to other types if specified.
|
51599
|
+
* @function toObject
|
51600
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
51601
|
+
* @static
|
51602
|
+
* @param {TW.Polkadot.Proto.Staking.ChillAndUnbond} message ChillAndUnbond
|
51603
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
51604
|
+
* @returns {Object.<string,*>} Plain object
|
51605
|
+
*/
|
51606
|
+
ChillAndUnbond.toObject = function toObject(message, options) {
|
51607
|
+
if (!options)
|
51608
|
+
options = {};
|
51609
|
+
var object = {};
|
51610
|
+
if (options.defaults)
|
51611
|
+
if (options.bytes === String)
|
51612
|
+
object.value = "";
|
51613
|
+
else {
|
51614
|
+
object.value = [];
|
51615
|
+
if (options.bytes !== Array)
|
51616
|
+
object.value = $util.newBuffer(object.value);
|
51617
|
+
}
|
51618
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
51619
|
+
object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
|
51620
|
+
return object;
|
51621
|
+
};
|
51622
|
+
|
51623
|
+
/**
|
51624
|
+
* Converts this ChillAndUnbond to JSON.
|
51625
|
+
* @function toJSON
|
51626
|
+
* @memberof TW.Polkadot.Proto.Staking.ChillAndUnbond
|
51627
|
+
* @instance
|
51628
|
+
* @returns {Object.<string,*>} JSON object
|
51629
|
+
*/
|
51630
|
+
ChillAndUnbond.prototype.toJSON = function toJSON() {
|
51631
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
51632
|
+
};
|
51633
|
+
|
51634
|
+
return ChillAndUnbond;
|
51635
|
+
})();
|
51636
|
+
|
51436
51637
|
Staking.Chill = (function() {
|
51437
51638
|
|
51438
51639
|
/**
|
package/dist/lib/wallet-core.js
CHANGED
@@ -101,7 +101,7 @@ var h="undefined"!=typeof t;if(!h)t=m.position;else if(!m.seekable)throw new J(7
|
|
101
101
|
0)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];C[e>>2]=Ra[0];C[e+4>>2]=Ra[1];f.eb&&0===b&&0===d&&(f.eb=null);return 0}catch(k){if("undefined"==typeof O||!(k instanceof J))throw k;return k.Ia}},r:function(a,b,c,d){try{a:{var e=Q(a);a=b;for(var f=b=0;f<c;f++){var k=F[a>>2],l=F[a+4>>2];a+=8;var m=e,p=k,q=l,t=void 0,v=D;if(0>q||0>t)throw new J(28);if(null===m.fd)throw new J(8);if(0===(m.flags&2097155))throw new J(8);if(16384===(m.node.mode&61440))throw new J(31);if(!m.sa.write)throw new J(28);
|
102
102
|
m.seekable&&m.flags&1024&&Jb(m,0,2);var h="undefined"!=typeof t;if(!h)t=m.position;else if(!m.seekable)throw new J(70);var r=m.sa.write(m,v,p,q,t,void 0);h||(m.position+=r);var w=r;if(0>w){var A=-1;break a}b+=w}A=b}F[d>>2]=A;return 0}catch(E){if("undefined"==typeof O||!(E instanceof J))throw E;return E.Ia}},D:ad,m:function(){},E:function(a,b,c,d){return ed(a,b,c,d)}};
|
103
103
|
(function(){function a(e){g.asm=e.exports;oa=g.asm.R;Fa();Ga=g.asm.T;Ia.unshift(g.asm.S);G--;g.monitorRunDependencies&&g.monitorRunDependencies(G);0==G&&(null!==La&&(clearInterval(La),La=null),Ma&&(e=Ma,Ma=null,e()))}function b(e){a(e.instance)}function c(e){return Qa().then(function(f){return WebAssembly.instantiate(f,d)}).then(function(f){return f}).then(e,function(f){u("failed to asynchronously prepare wasm: "+f);x(f)})}var d={a:kd};G++;g.monitorRunDependencies&&g.monitorRunDependencies(G);if(g.instantiateWasm)try{return g.instantiateWasm(d,
|
104
|
-
a)}catch(e){return u("Module.instantiateWasm callback failed with error: "+e),!1}(function(){return na||"function"!=typeof WebAssembly.instantiateStreaming||Na()||H.startsWith("file://")||"function"!=typeof fetch?c(b):fetch(H,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,d).then(b,function(f){u("wasm streaming compile failed: "+f);u("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();
|
104
|
+
a)}catch(e){return u("Module.instantiateWasm callback failed with error: "+e),!1}(function(){return na||"function"!=typeof WebAssembly.instantiateStreaming||Na()||H.startsWith("file://")||fa||"function"!=typeof fetch?c(b):fetch(H,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,d).then(b,function(f){u("wasm streaming compile failed: "+f);u("falling back to ArrayBuffer instantiation");return c(b)})})})();return{}})();
|
105
105
|
g.___wasm_call_ctors=function(){return(g.___wasm_call_ctors=g.asm.S).apply(null,arguments)};var Y=g._free=function(){return(Y=g._free=g.asm.U).apply(null,arguments)},hd=g._malloc=function(){return(hd=g._malloc=g.asm.V).apply(null,arguments)},jd=g.___errno_location=function(){return(jd=g.___errno_location=g.asm.W).apply(null,arguments)},Bc=g.___getTypeName=function(){return(Bc=g.___getTypeName=g.asm.X).apply(null,arguments)};
|
106
106
|
g.___embind_register_native_and_builtin_types=function(){return(g.___embind_register_native_and_builtin_types=g.asm.Y).apply(null,arguments)};var nb=g._emscripten_builtin_memalign=function(){return(nb=g._emscripten_builtin_memalign=g.asm.Z).apply(null,arguments)};g.___cxa_is_pointer_type=function(){return(g.___cxa_is_pointer_type=g.asm._).apply(null,arguments)};g.dynCall_jii=function(){return(g.dynCall_jii=g.asm.$).apply(null,arguments)};
|
107
107
|
g.dynCall_ji=function(){return(g.dynCall_ji=g.asm.aa).apply(null,arguments)};g.dynCall_iiji=function(){return(g.dynCall_iiji=g.asm.ba).apply(null,arguments)};g.dynCall_iiiji=function(){return(g.dynCall_iiiji=g.asm.ca).apply(null,arguments)};g.dynCall_jiii=function(){return(g.dynCall_jiii=g.asm.da).apply(null,arguments)};g.dynCall_jiiii=function(){return(g.dynCall_jiiii=g.asm.ea).apply(null,arguments)};g.dynCall_iiij=function(){return(g.dynCall_iiij=g.asm.fa).apply(null,arguments)};
|
Binary file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@trustwallet/wallet-core",
|
3
|
-
"version": "2.9.
|
3
|
+
"version": "2.9.4",
|
4
4
|
"description": "wallet core wasm and protobuf models",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"dist"
|
28
28
|
],
|
29
29
|
"dependencies": {
|
30
|
-
"protobufjs": "
|
30
|
+
"protobufjs": ">=6.11.3"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
33
|
"@types/chai": "^4.3.0",
|