@trustwallet/wallet-core 4.6.6 → 4.6.7

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.
@@ -8820,6 +8820,9 @@ export namespace TW {
8820
8820
 
8821
8821
  /** TransactionBuilder zcashExtraData */
8822
8822
  zcashExtraData?: (TW.Zcash.Proto.ITransactionBuilderExtraData|null);
8823
+
8824
+ /** TransactionBuilder decredExtraData */
8825
+ decredExtraData?: (TW.DecredV2.Proto.ITransactionBuilderExtraData|null);
8823
8826
  }
8824
8827
 
8825
8828
  /** Represents a TransactionBuilder. */
@@ -8861,11 +8864,14 @@ export namespace TW {
8861
8864
  /** TransactionBuilder zcashExtraData. */
8862
8865
  public zcashExtraData?: (TW.Zcash.Proto.ITransactionBuilderExtraData|null);
8863
8866
 
8867
+ /** TransactionBuilder decredExtraData. */
8868
+ public decredExtraData?: (TW.DecredV2.Proto.ITransactionBuilderExtraData|null);
8869
+
8864
8870
  /** TransactionBuilder dustPolicy. */
8865
8871
  public dustPolicy?: "fixedDustThreshold";
8866
8872
 
8867
8873
  /** TransactionBuilder chainSpecific. */
8868
- public chainSpecific?: "zcashExtraData";
8874
+ public chainSpecific?: ("zcashExtraData"|"decredExtraData");
8869
8875
 
8870
8876
  /**
8871
8877
  * Creates a new TransactionBuilder instance using the specified properties.
@@ -9999,6 +10005,79 @@ export namespace TW {
9999
10005
  */
10000
10006
  public toJSON(): { [k: string]: any };
10001
10007
  }
10008
+
10009
+ /** Properties of a TransactionBuilderExtraData. */
10010
+ interface ITransactionBuilderExtraData {
10011
+
10012
+ /** TransactionBuilderExtraData expiryHeight */
10013
+ expiryHeight?: (number|null);
10014
+ }
10015
+
10016
+ /** Represents a TransactionBuilderExtraData. */
10017
+ class TransactionBuilderExtraData implements ITransactionBuilderExtraData {
10018
+
10019
+ /**
10020
+ * Constructs a new TransactionBuilderExtraData.
10021
+ * @param [properties] Properties to set
10022
+ */
10023
+ constructor(properties?: TW.DecredV2.Proto.ITransactionBuilderExtraData);
10024
+
10025
+ /** TransactionBuilderExtraData expiryHeight. */
10026
+ public expiryHeight: number;
10027
+
10028
+ /**
10029
+ * Creates a new TransactionBuilderExtraData instance using the specified properties.
10030
+ * @param [properties] Properties to set
10031
+ * @returns TransactionBuilderExtraData instance
10032
+ */
10033
+ public static create(properties?: TW.DecredV2.Proto.ITransactionBuilderExtraData): TW.DecredV2.Proto.TransactionBuilderExtraData;
10034
+
10035
+ /**
10036
+ * Encodes the specified TransactionBuilderExtraData message. Does not implicitly {@link TW.DecredV2.Proto.TransactionBuilderExtraData.verify|verify} messages.
10037
+ * @param message TransactionBuilderExtraData message or plain object to encode
10038
+ * @param [writer] Writer to encode to
10039
+ * @returns Writer
10040
+ */
10041
+ public static encode(message: TW.DecredV2.Proto.ITransactionBuilderExtraData, writer?: $protobuf.Writer): $protobuf.Writer;
10042
+
10043
+ /**
10044
+ * Decodes a TransactionBuilderExtraData message from the specified reader or buffer.
10045
+ * @param reader Reader or buffer to decode from
10046
+ * @param [length] Message length if known beforehand
10047
+ * @returns TransactionBuilderExtraData
10048
+ * @throws {Error} If the payload is not a reader or valid buffer
10049
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10050
+ */
10051
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.DecredV2.Proto.TransactionBuilderExtraData;
10052
+
10053
+ /**
10054
+ * Verifies a TransactionBuilderExtraData message.
10055
+ * @param message Plain object to verify
10056
+ * @returns `null` if valid, otherwise the reason why it is not
10057
+ */
10058
+ public static verify(message: { [k: string]: any }): (string|null);
10059
+
10060
+ /**
10061
+ * Creates a TransactionBuilderExtraData message from a plain object. Also converts values to their respective internal types.
10062
+ * @param object Plain object
10063
+ * @returns TransactionBuilderExtraData
10064
+ */
10065
+ public static fromObject(object: { [k: string]: any }): TW.DecredV2.Proto.TransactionBuilderExtraData;
10066
+
10067
+ /**
10068
+ * Creates a plain object from a TransactionBuilderExtraData message. Also converts values to other types if specified.
10069
+ * @param message TransactionBuilderExtraData
10070
+ * @param [options] Conversion options
10071
+ * @returns Plain object
10072
+ */
10073
+ public static toObject(message: TW.DecredV2.Proto.TransactionBuilderExtraData, options?: $protobuf.IConversionOptions): { [k: string]: any };
10074
+
10075
+ /**
10076
+ * Converts this TransactionBuilderExtraData to JSON.
10077
+ * @returns JSON object
10078
+ */
10079
+ public toJSON(): { [k: string]: any };
10080
+ }
10002
10081
  }
10003
10082
  }
10004
10083
 
@@ -26188,6 +26188,7 @@
26188
26188
  * @property {TW.BitcoinV2.Proto.IOutput|null} [maxAmountOutput] TransactionBuilder maxAmountOutput
26189
26189
  * @property {Long|null} [fixedDustThreshold] TransactionBuilder fixedDustThreshold
26190
26190
  * @property {TW.Zcash.Proto.ITransactionBuilderExtraData|null} [zcashExtraData] TransactionBuilder zcashExtraData
26191
+ * @property {TW.DecredV2.Proto.ITransactionBuilderExtraData|null} [decredExtraData] TransactionBuilder decredExtraData
26191
26192
  */
26192
26193
 
26193
26194
  /**
@@ -26287,6 +26288,14 @@
26287
26288
  */
26288
26289
  TransactionBuilder.prototype.zcashExtraData = null;
26289
26290
 
26291
+ /**
26292
+ * TransactionBuilder decredExtraData.
26293
+ * @member {TW.DecredV2.Proto.ITransactionBuilderExtraData|null|undefined} decredExtraData
26294
+ * @memberof TW.BitcoinV2.Proto.TransactionBuilder
26295
+ * @instance
26296
+ */
26297
+ TransactionBuilder.prototype.decredExtraData = null;
26298
+
26290
26299
  // OneOf field names bound to virtual getters and setters
26291
26300
  var $oneOfFields;
26292
26301
 
@@ -26303,12 +26312,12 @@
26303
26312
 
26304
26313
  /**
26305
26314
  * TransactionBuilder chainSpecific.
26306
- * @member {"zcashExtraData"|undefined} chainSpecific
26315
+ * @member {"zcashExtraData"|"decredExtraData"|undefined} chainSpecific
26307
26316
  * @memberof TW.BitcoinV2.Proto.TransactionBuilder
26308
26317
  * @instance
26309
26318
  */
26310
26319
  Object.defineProperty(TransactionBuilder.prototype, "chainSpecific", {
26311
- get: $util.oneOfGetter($oneOfFields = ["zcashExtraData"]),
26320
+ get: $util.oneOfGetter($oneOfFields = ["zcashExtraData", "decredExtraData"]),
26312
26321
  set: $util.oneOfSetter($oneOfFields)
26313
26322
  });
26314
26323
 
@@ -26358,6 +26367,8 @@
26358
26367
  writer.uint32(/* id 10, wireType 0 =*/80).int64(message.fixedDustThreshold);
26359
26368
  if (message.zcashExtraData != null && Object.hasOwnProperty.call(message, "zcashExtraData"))
26360
26369
  $root.TW.Zcash.Proto.TransactionBuilderExtraData.encode(message.zcashExtraData, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
26370
+ if (message.decredExtraData != null && Object.hasOwnProperty.call(message, "decredExtraData"))
26371
+ $root.TW.DecredV2.Proto.TransactionBuilderExtraData.encode(message.decredExtraData, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
26361
26372
  return writer;
26362
26373
  };
26363
26374
 
@@ -26413,6 +26424,9 @@
26413
26424
  case 20:
26414
26425
  message.zcashExtraData = $root.TW.Zcash.Proto.TransactionBuilderExtraData.decode(reader, reader.uint32());
26415
26426
  break;
26427
+ case 21:
26428
+ message.decredExtraData = $root.TW.DecredV2.Proto.TransactionBuilderExtraData.decode(reader, reader.uint32());
26429
+ break;
26416
26430
  default:
26417
26431
  reader.skipType(tag & 7);
26418
26432
  break;
@@ -26499,6 +26513,16 @@
26499
26513
  return "zcashExtraData." + error;
26500
26514
  }
26501
26515
  }
26516
+ if (message.decredExtraData != null && message.hasOwnProperty("decredExtraData")) {
26517
+ if (properties.chainSpecific === 1)
26518
+ return "chainSpecific: multiple values";
26519
+ properties.chainSpecific = 1;
26520
+ {
26521
+ var error = $root.TW.DecredV2.Proto.TransactionBuilderExtraData.verify(message.decredExtraData);
26522
+ if (error)
26523
+ return "decredExtraData." + error;
26524
+ }
26525
+ }
26502
26526
  return null;
26503
26527
  };
26504
26528
 
@@ -26601,6 +26625,11 @@
26601
26625
  throw TypeError(".TW.BitcoinV2.Proto.TransactionBuilder.zcashExtraData: object expected");
26602
26626
  message.zcashExtraData = $root.TW.Zcash.Proto.TransactionBuilderExtraData.fromObject(object.zcashExtraData);
26603
26627
  }
26628
+ if (object.decredExtraData != null) {
26629
+ if (typeof object.decredExtraData !== "object")
26630
+ throw TypeError(".TW.BitcoinV2.Proto.TransactionBuilder.decredExtraData: object expected");
26631
+ message.decredExtraData = $root.TW.DecredV2.Proto.TransactionBuilderExtraData.fromObject(object.decredExtraData);
26632
+ }
26604
26633
  return message;
26605
26634
  };
26606
26635
 
@@ -26671,6 +26700,11 @@
26671
26700
  if (options.oneofs)
26672
26701
  object.chainSpecific = "zcashExtraData";
26673
26702
  }
26703
+ if (message.decredExtraData != null && message.hasOwnProperty("decredExtraData")) {
26704
+ object.decredExtraData = $root.TW.DecredV2.Proto.TransactionBuilderExtraData.toObject(message.decredExtraData, options);
26705
+ if (options.oneofs)
26706
+ object.chainSpecific = "decredExtraData";
26707
+ }
26674
26708
  return object;
26675
26709
  };
26676
26710
 
@@ -30308,6 +30342,164 @@
30308
30342
  return TransactionOutput;
30309
30343
  })();
30310
30344
 
30345
+ Proto.TransactionBuilderExtraData = (function() {
30346
+
30347
+ /**
30348
+ * Properties of a TransactionBuilderExtraData.
30349
+ * @memberof TW.DecredV2.Proto
30350
+ * @interface ITransactionBuilderExtraData
30351
+ * @property {number|null} [expiryHeight] TransactionBuilderExtraData expiryHeight
30352
+ */
30353
+
30354
+ /**
30355
+ * Constructs a new TransactionBuilderExtraData.
30356
+ * @memberof TW.DecredV2.Proto
30357
+ * @classdesc Represents a TransactionBuilderExtraData.
30358
+ * @implements ITransactionBuilderExtraData
30359
+ * @constructor
30360
+ * @param {TW.DecredV2.Proto.ITransactionBuilderExtraData=} [properties] Properties to set
30361
+ */
30362
+ function TransactionBuilderExtraData(properties) {
30363
+ if (properties)
30364
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
30365
+ if (properties[keys[i]] != null)
30366
+ this[keys[i]] = properties[keys[i]];
30367
+ }
30368
+
30369
+ /**
30370
+ * TransactionBuilderExtraData expiryHeight.
30371
+ * @member {number} expiryHeight
30372
+ * @memberof TW.DecredV2.Proto.TransactionBuilderExtraData
30373
+ * @instance
30374
+ */
30375
+ TransactionBuilderExtraData.prototype.expiryHeight = 0;
30376
+
30377
+ /**
30378
+ * Creates a new TransactionBuilderExtraData instance using the specified properties.
30379
+ * @function create
30380
+ * @memberof TW.DecredV2.Proto.TransactionBuilderExtraData
30381
+ * @static
30382
+ * @param {TW.DecredV2.Proto.ITransactionBuilderExtraData=} [properties] Properties to set
30383
+ * @returns {TW.DecredV2.Proto.TransactionBuilderExtraData} TransactionBuilderExtraData instance
30384
+ */
30385
+ TransactionBuilderExtraData.create = function create(properties) {
30386
+ return new TransactionBuilderExtraData(properties);
30387
+ };
30388
+
30389
+ /**
30390
+ * Encodes the specified TransactionBuilderExtraData message. Does not implicitly {@link TW.DecredV2.Proto.TransactionBuilderExtraData.verify|verify} messages.
30391
+ * @function encode
30392
+ * @memberof TW.DecredV2.Proto.TransactionBuilderExtraData
30393
+ * @static
30394
+ * @param {TW.DecredV2.Proto.ITransactionBuilderExtraData} message TransactionBuilderExtraData message or plain object to encode
30395
+ * @param {$protobuf.Writer} [writer] Writer to encode to
30396
+ * @returns {$protobuf.Writer} Writer
30397
+ */
30398
+ TransactionBuilderExtraData.encode = function encode(message, writer) {
30399
+ if (!writer)
30400
+ writer = $Writer.create();
30401
+ if (message.expiryHeight != null && Object.hasOwnProperty.call(message, "expiryHeight"))
30402
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.expiryHeight);
30403
+ return writer;
30404
+ };
30405
+
30406
+ /**
30407
+ * Decodes a TransactionBuilderExtraData message from the specified reader or buffer.
30408
+ * @function decode
30409
+ * @memberof TW.DecredV2.Proto.TransactionBuilderExtraData
30410
+ * @static
30411
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30412
+ * @param {number} [length] Message length if known beforehand
30413
+ * @returns {TW.DecredV2.Proto.TransactionBuilderExtraData} TransactionBuilderExtraData
30414
+ * @throws {Error} If the payload is not a reader or valid buffer
30415
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30416
+ */
30417
+ TransactionBuilderExtraData.decode = function decode(reader, length) {
30418
+ if (!(reader instanceof $Reader))
30419
+ reader = $Reader.create(reader);
30420
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.DecredV2.Proto.TransactionBuilderExtraData();
30421
+ while (reader.pos < end) {
30422
+ var tag = reader.uint32();
30423
+ switch (tag >>> 3) {
30424
+ case 1:
30425
+ message.expiryHeight = reader.uint32();
30426
+ break;
30427
+ default:
30428
+ reader.skipType(tag & 7);
30429
+ break;
30430
+ }
30431
+ }
30432
+ return message;
30433
+ };
30434
+
30435
+ /**
30436
+ * Verifies a TransactionBuilderExtraData message.
30437
+ * @function verify
30438
+ * @memberof TW.DecredV2.Proto.TransactionBuilderExtraData
30439
+ * @static
30440
+ * @param {Object.<string,*>} message Plain object to verify
30441
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
30442
+ */
30443
+ TransactionBuilderExtraData.verify = function verify(message) {
30444
+ if (typeof message !== "object" || message === null)
30445
+ return "object expected";
30446
+ if (message.expiryHeight != null && message.hasOwnProperty("expiryHeight"))
30447
+ if (!$util.isInteger(message.expiryHeight))
30448
+ return "expiryHeight: integer expected";
30449
+ return null;
30450
+ };
30451
+
30452
+ /**
30453
+ * Creates a TransactionBuilderExtraData message from a plain object. Also converts values to their respective internal types.
30454
+ * @function fromObject
30455
+ * @memberof TW.DecredV2.Proto.TransactionBuilderExtraData
30456
+ * @static
30457
+ * @param {Object.<string,*>} object Plain object
30458
+ * @returns {TW.DecredV2.Proto.TransactionBuilderExtraData} TransactionBuilderExtraData
30459
+ */
30460
+ TransactionBuilderExtraData.fromObject = function fromObject(object) {
30461
+ if (object instanceof $root.TW.DecredV2.Proto.TransactionBuilderExtraData)
30462
+ return object;
30463
+ var message = new $root.TW.DecredV2.Proto.TransactionBuilderExtraData();
30464
+ if (object.expiryHeight != null)
30465
+ message.expiryHeight = object.expiryHeight >>> 0;
30466
+ return message;
30467
+ };
30468
+
30469
+ /**
30470
+ * Creates a plain object from a TransactionBuilderExtraData message. Also converts values to other types if specified.
30471
+ * @function toObject
30472
+ * @memberof TW.DecredV2.Proto.TransactionBuilderExtraData
30473
+ * @static
30474
+ * @param {TW.DecredV2.Proto.TransactionBuilderExtraData} message TransactionBuilderExtraData
30475
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
30476
+ * @returns {Object.<string,*>} Plain object
30477
+ */
30478
+ TransactionBuilderExtraData.toObject = function toObject(message, options) {
30479
+ if (!options)
30480
+ options = {};
30481
+ var object = {};
30482
+ if (options.defaults)
30483
+ object.expiryHeight = 0;
30484
+ if (message.expiryHeight != null && message.hasOwnProperty("expiryHeight"))
30485
+ object.expiryHeight = message.expiryHeight;
30486
+ return object;
30487
+ };
30488
+
30489
+ /**
30490
+ * Converts this TransactionBuilderExtraData to JSON.
30491
+ * @function toJSON
30492
+ * @memberof TW.DecredV2.Proto.TransactionBuilderExtraData
30493
+ * @instance
30494
+ * @returns {Object.<string,*>} JSON object
30495
+ */
30496
+ TransactionBuilderExtraData.prototype.toJSON = function toJSON() {
30497
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
30498
+ };
30499
+
30500
+ return TransactionBuilderExtraData;
30501
+ })();
30502
+
30311
30503
  return Proto;
30312
30504
  })();
30313
30505
 
@@ -83,7 +83,7 @@ p("undefined"==typeof h.read,"Module.read option was removed");p("undefined"==ty
83
83
  p("undefined"==typeof h.ENVIRONMENT,"Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");p("undefined"==typeof h.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time");p("undefined"==typeof h.wasmMemory,"Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally");p("undefined"==typeof h.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){pa(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(pa);
86
- var Xc={2220564:()=>{if(void 0===h.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();h.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();h.ga=a}catch(e){throw"No secure random number generator found";}}},2221286:()=>h.ga()},rc=B("___getTypeName"),Yc=B("_malloc"),Y=B("_free"),sb=B("_strerror"),
86
+ var Xc={2221140:()=>{if(void 0===h.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();h.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();h.ga=a}catch(e){throw"No secure random number generator found";}}},2221862:()=>h.ga()},rc=B("___getTypeName"),Yc=B("_malloc"),Y=B("_free"),sb=B("_strerror"),
87
87
  ib=B("_emscripten_builtin_memalign");h._setThrew=B("_setThrew");
88
88
  var Zc=B("_emscripten_stack_init"),ma=B("_emscripten_stack_get_end"),Aa=B("wasmMemory"),pc=B("wasmTable"),$c={__assert_fail:(a,b,c,d)=>t(`Assertion failed: ${La(a)}, at: `+[b?La(b):"unknown filename",c,d?La(d):"unknown function"]),__cxa_throw:(a,b,c)=>{a=new Ma(a);v[a.l+16>>2]=0;v[a.l+4>>2]=b;v[a.l+8>>2]=c;Na++;p(!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,
89
89
  c){Oa=c;try{var d=O(a);switch(b){case 0:var e=K();if(0>e)break;for(;ob[e];)e++;return Ab(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=K(),d.flags|=e,0;case 12:return e=K(),I[e+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(f){if("undefined"==typeof Q||"ErrnoError"!==f.name)throw f;return-f.D}},__syscall_getcwd:function(a,b){try{if(0===b)return-28;var c=Wa("/")+1;if(b<c)return-68;R("/",a,b);return c}catch(d){if("undefined"==typeof Q||"ErrnoError"!==d.name)throw d;return-d.D}},
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.6.6",
3
+ "version": "4.6.7",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",