@trustwallet/wallet-core 4.8.7 → 4.9.1
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.
|
@@ -10704,6 +10704,13 @@ export namespace TW {
|
|
|
10704
10704
|
/** Namespace Proto. */
|
|
10705
10705
|
namespace Proto {
|
|
10706
10706
|
|
|
10707
|
+
/** TransactionVersion enum. */
|
|
10708
|
+
enum TransactionVersion {
|
|
10709
|
+
UseDefault = 0,
|
|
10710
|
+
V4 = 4,
|
|
10711
|
+
V5 = 5
|
|
10712
|
+
}
|
|
10713
|
+
|
|
10707
10714
|
/** Properties of a TransactionBuilderExtraData. */
|
|
10708
10715
|
interface ITransactionBuilderExtraData {
|
|
10709
10716
|
|
|
@@ -10715,6 +10722,9 @@ export namespace TW {
|
|
|
10715
10722
|
|
|
10716
10723
|
/** TransactionBuilderExtraData zip_0317 */
|
|
10717
10724
|
zip_0317?: (boolean|null);
|
|
10725
|
+
|
|
10726
|
+
/** TransactionBuilderExtraData txVersion */
|
|
10727
|
+
txVersion?: (TW.Zcash.Proto.TransactionVersion|null);
|
|
10718
10728
|
}
|
|
10719
10729
|
|
|
10720
10730
|
/** Represents a TransactionBuilderExtraData. */
|
|
@@ -10735,6 +10745,9 @@ export namespace TW {
|
|
|
10735
10745
|
/** TransactionBuilderExtraData zip_0317. */
|
|
10736
10746
|
public zip_0317: boolean;
|
|
10737
10747
|
|
|
10748
|
+
/** TransactionBuilderExtraData txVersion. */
|
|
10749
|
+
public txVersion: TW.Zcash.Proto.TransactionVersion;
|
|
10750
|
+
|
|
10738
10751
|
/**
|
|
10739
10752
|
* Creates a new TransactionBuilderExtraData instance using the specified properties.
|
|
10740
10753
|
* @param [properties] Properties to set
|
|
@@ -10799,7 +10812,7 @@ export namespace TW {
|
|
|
10799
10812
|
/** Properties of a Transaction. */
|
|
10800
10813
|
interface ITransaction {
|
|
10801
10814
|
|
|
10802
|
-
/**
|
|
10815
|
+
/** Version 4 (0x80000004) and version 5 (0x80000005) are supported. */
|
|
10803
10816
|
version?: (number|null);
|
|
10804
10817
|
|
|
10805
10818
|
/** Transaction versionGroupId */
|
|
@@ -10833,7 +10846,7 @@ export namespace TW {
|
|
|
10833
10846
|
*/
|
|
10834
10847
|
constructor(properties?: TW.Zcash.Proto.ITransaction);
|
|
10835
10848
|
|
|
10836
|
-
/**
|
|
10849
|
+
/** Version 4 (0x80000004) and version 5 (0x80000005) are supported. */
|
|
10837
10850
|
public version: number;
|
|
10838
10851
|
|
|
10839
10852
|
/** Transaction versionGroupId. */
|
|
@@ -36475,6 +36475,22 @@
|
|
|
36475
36475
|
*/
|
|
36476
36476
|
var Proto = {};
|
|
36477
36477
|
|
|
36478
|
+
/**
|
|
36479
|
+
* TransactionVersion enum.
|
|
36480
|
+
* @name TW.Zcash.Proto.TransactionVersion
|
|
36481
|
+
* @enum {number}
|
|
36482
|
+
* @property {number} UseDefault=0 UseDefault value
|
|
36483
|
+
* @property {number} V4=4 V4 value
|
|
36484
|
+
* @property {number} V5=5 V5 value
|
|
36485
|
+
*/
|
|
36486
|
+
Proto.TransactionVersion = (function() {
|
|
36487
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
36488
|
+
values[valuesById[0] = "UseDefault"] = 0;
|
|
36489
|
+
values[valuesById[4] = "V4"] = 4;
|
|
36490
|
+
values[valuesById[5] = "V5"] = 5;
|
|
36491
|
+
return values;
|
|
36492
|
+
})();
|
|
36493
|
+
|
|
36478
36494
|
Proto.TransactionBuilderExtraData = (function() {
|
|
36479
36495
|
|
|
36480
36496
|
/**
|
|
@@ -36484,6 +36500,7 @@
|
|
|
36484
36500
|
* @property {Uint8Array|null} [branchId] TransactionBuilderExtraData branchId
|
|
36485
36501
|
* @property {number|null} [expiryHeight] TransactionBuilderExtraData expiryHeight
|
|
36486
36502
|
* @property {boolean|null} [zip_0317] TransactionBuilderExtraData zip_0317
|
|
36503
|
+
* @property {TW.Zcash.Proto.TransactionVersion|null} [txVersion] TransactionBuilderExtraData txVersion
|
|
36487
36504
|
*/
|
|
36488
36505
|
|
|
36489
36506
|
/**
|
|
@@ -36525,6 +36542,14 @@
|
|
|
36525
36542
|
*/
|
|
36526
36543
|
TransactionBuilderExtraData.prototype.zip_0317 = false;
|
|
36527
36544
|
|
|
36545
|
+
/**
|
|
36546
|
+
* TransactionBuilderExtraData txVersion.
|
|
36547
|
+
* @member {TW.Zcash.Proto.TransactionVersion} txVersion
|
|
36548
|
+
* @memberof TW.Zcash.Proto.TransactionBuilderExtraData
|
|
36549
|
+
* @instance
|
|
36550
|
+
*/
|
|
36551
|
+
TransactionBuilderExtraData.prototype.txVersion = 0;
|
|
36552
|
+
|
|
36528
36553
|
/**
|
|
36529
36554
|
* Creates a new TransactionBuilderExtraData instance using the specified properties.
|
|
36530
36555
|
* @function create
|
|
@@ -36559,6 +36584,8 @@
|
|
|
36559
36584
|
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.expiryHeight);
|
|
36560
36585
|
if (message.zip_0317 != null && Object.hasOwnProperty.call(message, "zip_0317"))
|
|
36561
36586
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.zip_0317);
|
|
36587
|
+
if (message.txVersion != null && Object.hasOwnProperty.call(message, "txVersion"))
|
|
36588
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.txVersion);
|
|
36562
36589
|
return writer;
|
|
36563
36590
|
};
|
|
36564
36591
|
|
|
@@ -36608,6 +36635,10 @@
|
|
|
36608
36635
|
message.zip_0317 = reader.bool();
|
|
36609
36636
|
break;
|
|
36610
36637
|
}
|
|
36638
|
+
case 4: {
|
|
36639
|
+
message.txVersion = reader.int32();
|
|
36640
|
+
break;
|
|
36641
|
+
}
|
|
36611
36642
|
default:
|
|
36612
36643
|
reader.skipType(tag & 7, long);
|
|
36613
36644
|
break;
|
|
@@ -36645,6 +36676,15 @@
|
|
|
36645
36676
|
if (message.zip_0317 != null && Object.hasOwnProperty.call(message, "zip_0317"))
|
|
36646
36677
|
if (typeof message.zip_0317 !== "boolean")
|
|
36647
36678
|
return "zip_0317: boolean expected";
|
|
36679
|
+
if (message.txVersion != null && Object.hasOwnProperty.call(message, "txVersion"))
|
|
36680
|
+
switch (message.txVersion) {
|
|
36681
|
+
default:
|
|
36682
|
+
return "txVersion: enum value expected";
|
|
36683
|
+
case 0:
|
|
36684
|
+
case 4:
|
|
36685
|
+
case 5:
|
|
36686
|
+
break;
|
|
36687
|
+
}
|
|
36648
36688
|
return null;
|
|
36649
36689
|
};
|
|
36650
36690
|
|
|
@@ -36675,6 +36715,26 @@
|
|
|
36675
36715
|
message.expiryHeight = object.expiryHeight >>> 0;
|
|
36676
36716
|
if (object.zip_0317 != null)
|
|
36677
36717
|
message.zip_0317 = Boolean(object.zip_0317);
|
|
36718
|
+
switch (object.txVersion) {
|
|
36719
|
+
default:
|
|
36720
|
+
if (typeof object.txVersion === "number") {
|
|
36721
|
+
message.txVersion = object.txVersion;
|
|
36722
|
+
break;
|
|
36723
|
+
}
|
|
36724
|
+
break;
|
|
36725
|
+
case "UseDefault":
|
|
36726
|
+
case 0:
|
|
36727
|
+
message.txVersion = 0;
|
|
36728
|
+
break;
|
|
36729
|
+
case "V4":
|
|
36730
|
+
case 4:
|
|
36731
|
+
message.txVersion = 4;
|
|
36732
|
+
break;
|
|
36733
|
+
case "V5":
|
|
36734
|
+
case 5:
|
|
36735
|
+
message.txVersion = 5;
|
|
36736
|
+
break;
|
|
36737
|
+
}
|
|
36678
36738
|
return message;
|
|
36679
36739
|
};
|
|
36680
36740
|
|
|
@@ -36705,6 +36765,7 @@
|
|
|
36705
36765
|
}
|
|
36706
36766
|
object.expiryHeight = 0;
|
|
36707
36767
|
object.zip_0317 = false;
|
|
36768
|
+
object.txVersion = options.enums === String ? "UseDefault" : 0;
|
|
36708
36769
|
}
|
|
36709
36770
|
if (message.branchId != null && Object.hasOwnProperty.call(message, "branchId"))
|
|
36710
36771
|
object.branchId = options.bytes === String ? $util.base64.encode(message.branchId, 0, message.branchId.length) : options.bytes === Array ? Array.prototype.slice.call(message.branchId) : message.branchId;
|
|
@@ -36712,6 +36773,8 @@
|
|
|
36712
36773
|
object.expiryHeight = message.expiryHeight;
|
|
36713
36774
|
if (message.zip_0317 != null && Object.hasOwnProperty.call(message, "zip_0317"))
|
|
36714
36775
|
object.zip_0317 = message.zip_0317;
|
|
36776
|
+
if (message.txVersion != null && Object.hasOwnProperty.call(message, "txVersion"))
|
|
36777
|
+
object.txVersion = options.enums === String ? $root.TW.Zcash.Proto.TransactionVersion[message.txVersion] === undefined ? message.txVersion : $root.TW.Zcash.Proto.TransactionVersion[message.txVersion] : message.txVersion;
|
|
36715
36778
|
return object;
|
|
36716
36779
|
};
|
|
36717
36780
|
|
|
@@ -36750,7 +36813,7 @@
|
|
|
36750
36813
|
* Properties of a Transaction.
|
|
36751
36814
|
* @memberof TW.Zcash.Proto
|
|
36752
36815
|
* @interface ITransaction
|
|
36753
|
-
* @property {number|null} [version]
|
|
36816
|
+
* @property {number|null} [version] Version 4 (0x80000004) and version 5 (0x80000005) are supported.
|
|
36754
36817
|
* @property {number|null} [versionGroupId] Transaction versionGroupId
|
|
36755
36818
|
* @property {Array.<TW.Utxo.Proto.ITransactionInput>|null} [inputs] Transaction inputs
|
|
36756
36819
|
* @property {Array.<TW.Utxo.Proto.ITransactionOutput>|null} [outputs] Transaction outputs
|
|
@@ -36778,7 +36841,7 @@
|
|
|
36778
36841
|
}
|
|
36779
36842
|
|
|
36780
36843
|
/**
|
|
36781
|
-
*
|
|
36844
|
+
* Version 4 (0x80000004) and version 5 (0x80000005) are supported.
|
|
36782
36845
|
* @member {number} version
|
|
36783
36846
|
* @memberof TW.Zcash.Proto.Transaction
|
|
36784
36847
|
* @instance
|
package/dist/lib/wallet-core.js
CHANGED
|
@@ -83,7 +83,7 @@ m("undefined"==typeof l.read,"Module.read option was removed");m("undefined"==ty
|
|
|
83
83
|
m("undefined"==typeof l.ENVIRONMENT,"Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");m("undefined"==typeof l.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time");m("undefined"==typeof l.wasmMemory,"Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally");m("undefined"==typeof l.INITIAL_MEMORY,"Detected runtime INITIAL_MEMORY setting. Use -sIMPORTED_MEMORY to define wasmMemory dynamically");
|
|
84
84
|
"writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 stackAlloc getTempRet0 setTempRet0 exitJS withStackSave inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr runMainThreadEmAsm jstoi_q autoResumeAudioContext getDynCaller dynCall handleException keepRuntimeAlive runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit asmjsMangle HandleAllocator addOnPreRun addOnInit addOnPostCtor addOnPreMain addOnExit addOnPostRun STACK_SIZE STACK_ALIGN POINTER_SIZE ASSERTIONS ccall cwrap convertJsFunctionToWasm getEmptyTableSlot updateTableMap getFunctionAddress addFunction removeFunction intArrayToString stringToAscii stringToNewUTF8 stringToUTF8OnStack writeArrayToMemory registerKeyEventCallback maybeCStringToJsString findEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData registerBatteryEventCallback setCanvasElementSize getCanvasElementSize jsStackTrace getCallstack convertPCtoSourceLocation wasiRightsToMuslOFlags wasiOFlagsToMuslOFlags safeSetTimeout setImmediateWrapped safeRequestAnimationFrame clearImmediateWrapped registerPostMainLoop registerPreMainLoop getPromise makePromise idsToPromises makePromiseCallback findMatchingCatch Browser_asyncPrepareDataCounter isLeapYear ydayFromDate arraySum addDays getSocketFromFD getSocketAddress FS_mkdirTree _setNetworkCallback getFunctionArgsName createJsInvokerSignature createJsInvoker PureVirtualError registerInheritedInstance unregisterInheritedInstance getInheritedInstanceCount getLiveInheritedInstances setDelayFunction validateThis count_emval_handles".split(" ").forEach(function(a){ra(a)});
|
|
85
85
|
"run out err callMain abort wasmExports HEAPF32 HEAPF64 HEAP8 HEAPU8 HEAP16 HEAPU16 HEAP32 HEAPU32 HEAP64 HEAPU64 writeStackCookie checkStackCookie INT53_MAX INT53_MIN bigintToI53Checked stackSave stackRestore createNamedFunction ptrToString zeroMemory getHeapMax growMemory ENV ERRNO_CODES strError DNS Protocols Sockets timers warnOnce readEmAsmArgsArray readEmAsmArgs runEmAsmFunction getExecutableName asyncLoad alignMemory mmapAlloc wasmTable wasmMemory getUniqueRunDependency noExitRuntime addRunDependency removeRunDependency freeTableIndexes functionsInTableMap setValue getValue PATH PATH_FS UTF8Decoder UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 intArrayFromString AsciiToString UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 JSEvents specialHTMLTargets findCanvasEventTarget currentFullscreenStrategy restoreOldWindowedStyle UNWIND_CACHE ExitStatus getEnvStrings checkWasiClock doReadv doWritev initRandomFill randomFill emSetImmediate emClearImmediate_deps emClearImmediate promiseMap uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo Browser requestFullscreen requestFullScreen setCanvasSize getUserMedia createContext getPreloadedImageData__data wget MONTH_DAYS_REGULAR MONTH_DAYS_LEAP MONTH_DAYS_REGULAR_CUMULATIVE MONTH_DAYS_LEAP_CUMULATIVE SYSCALLS preloadPlugins FS_createPreloadedFile FS_preloadFile FS_modeStringToFlags FS_getMode FS_stdin_getChar_buffer FS_stdin_getChar FS_unlink FS_createPath FS_createDevice FS_readFile FS FS_root FS_mounts FS_devices FS_streams FS_nextInode FS_nameTable FS_currentPath FS_initialized FS_ignorePermissions FS_filesystems FS_syncFSRequests FS_lookupPath FS_getPath FS_hashName FS_hashAddNode FS_hashRemoveNode FS_lookupNode FS_createNode FS_destroyNode FS_isRoot FS_isMountpoint FS_isFile FS_isDir FS_isLink FS_isChrdev FS_isBlkdev FS_isFIFO FS_isSocket FS_flagsToPermissionString FS_nodePermissions FS_mayLookup FS_mayCreate FS_mayDelete FS_mayOpen FS_checkOpExists FS_nextfd FS_getStreamChecked FS_getStream FS_createStream FS_closeStream FS_dupStream FS_doSetAttr FS_chrdev_stream_ops FS_major FS_minor FS_makedev FS_registerDevice FS_getDevice FS_getMounts FS_syncfs FS_mount FS_unmount FS_lookup FS_mknod FS_statfs FS_statfsStream FS_statfsNode FS_create FS_mkdir FS_mkdev FS_symlink FS_rename FS_rmdir FS_readdir FS_readlink FS_stat FS_fstat FS_lstat FS_doChmod FS_chmod FS_lchmod FS_fchmod FS_doChown FS_chown FS_lchown FS_fchown FS_doTruncate FS_truncate FS_ftruncate FS_utime FS_open FS_close FS_isClosed FS_llseek FS_read FS_write FS_mmap FS_msync FS_ioctl FS_writeFile FS_cwd FS_chdir FS_createDefaultDirectories FS_createDefaultDevices FS_createSpecialDirectories FS_createStandardStreams FS_staticInit FS_init FS_quit FS_findObject FS_analyzePath FS_createFile FS_createDataFile FS_forceLoadFile FS_createLazyFile FS_absolutePath FS_createFolder FS_createLink FS_joinPath FS_mmapAlloc FS_standardizePath MEMFS TTY PIPEFS SOCKFS InternalError BindingError throwInternalError throwBindingError registeredTypes awaitingDependencies typeDependencies tupleRegistrations structRegistrations sharedRegisterType whenDependentTypesAreResolved getTypeName getFunctionName heap32VectorToArray requireRegisteredType usesDestructorStack checkArgCount getRequiredArgCount UnboundTypeError EmValType EmValOptionalType throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol embindRepr registeredInstances getBasestPointer getInheritedInstance registeredPointers registerType integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer assertIntegerRange readPointer runDestructors craftInvokerFunction embind__requireFunction genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle throwInstanceAlreadyDeleted deletionQueue flushPendingDeletes delayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer char_0 char_9 makeLegalFunctionName emval_freelist emval_handles emval_symbols getStringOrSymbol Emval emval_returnValue emval_lookupTypes emval_methodCallers emval_addMethodCaller".split(" ").forEach(ra);
|
|
86
|
-
var fd={
|
|
86
|
+
var fd={2230104:()=>{if(void 0===l.ga)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();l.ga=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();l.ga=a}catch(e){throw"No secure random number generator found";}}},2230826:()=>l.ga()},Ac=y("___getTypeName"),gd=y("_malloc"),Y=y("_free"),tb=y("_strerror"),
|
|
87
87
|
kb=y("_emscripten_builtin_memalign");l._setThrew=y("_setThrew");
|
|
88
88
|
var hd=y("_emscripten_stack_init"),na=y("_emscripten_stack_get_end"),Ca=y("wasmMemory"),xc=y("wasmTable"),jd={__assert_fail:(a,b,c,d)=>r(`Assertion failed: ${I(a)}, at: `+[b?I(b):"unknown filename",c,d?I(d):"unknown function"]),__cxa_throw:(a,b,c)=>{a=new Na(a);w[a.l+16>>2]=0;w[a.l+4>>2]=b;w[a.l+8>>2]=c;Oa++;m(!1,"Exception thrown, but exception catching is not enabled. Compile with -sNO_DISABLE_EXCEPTION_CATCHING or -sEXCEPTION_CATCHING_ALLOWED=[..] to catch.")},__syscall_fcntl64:function(a,b,c){Pa=
|
|
89
89
|
c;try{var d=Q(a);switch(b){case 0:var e=J();if(0>e)break;for(;pb[e];)e++;return Fb(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=J(),d.flags|=e,0;case 12:return e=J(),G[e+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(f){if("undefined"==typeof S||"ErrnoError"!==f.name)throw f;return-f.A}},__syscall_getcwd:function(a,b){try{if(0===b)return-28;var c=Za("/")+1;if(b<c)return-68;T("/",a,b);return c}catch(d){if("undefined"==typeof S||"ErrnoError"!==d.name)throw d;return-d.A}},
|
|
Binary file
|