@trustwallet/wallet-core 4.6.14 → 4.7.0

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.
@@ -11966,6 +11966,9 @@ export namespace TW {
11966
11966
 
11967
11967
  /** SigningInput extraOutputs */
11968
11968
  extraOutputs?: (TW.Cardano.Proto.ITxOutput[]|null);
11969
+
11970
+ /** SigningInput auxiliaryData */
11971
+ auxiliaryData?: (Uint8Array|null);
11969
11972
  }
11970
11973
 
11971
11974
  /** Represents a SigningInput. */
@@ -12010,6 +12013,9 @@ export namespace TW {
12010
12013
  /** SigningInput extraOutputs. */
12011
12014
  public extraOutputs: TW.Cardano.Proto.ITxOutput[];
12012
12015
 
12016
+ /** SigningInput auxiliaryData. */
12017
+ public auxiliaryData: Uint8Array;
12018
+
12013
12019
  /**
12014
12020
  * Creates a new SigningInput instance using the specified properties.
12015
12021
  * @param [properties] Properties to set
@@ -35903,6 +35903,7 @@
35903
35903
  * @property {Long|null} [ttl] SigningInput ttl
35904
35904
  * @property {TW.Cardano.Proto.ITransactionPlan|null} [plan] SigningInput plan
35905
35905
  * @property {Array.<TW.Cardano.Proto.ITxOutput>|null} [extraOutputs] SigningInput extraOutputs
35906
+ * @property {Uint8Array|null} [auxiliaryData] SigningInput auxiliaryData
35906
35907
  */
35907
35908
 
35908
35909
  /**
@@ -36011,6 +36012,14 @@
36011
36012
  */
36012
36013
  SigningInput.prototype.extraOutputs = $util.emptyArray;
36013
36014
 
36015
+ /**
36016
+ * SigningInput auxiliaryData.
36017
+ * @member {Uint8Array} auxiliaryData
36018
+ * @memberof TW.Cardano.Proto.SigningInput
36019
+ * @instance
36020
+ */
36021
+ SigningInput.prototype.auxiliaryData = $util.newBuffer([]);
36022
+
36014
36023
  /**
36015
36024
  * Creates a new SigningInput instance using the specified properties.
36016
36025
  * @function create
@@ -36060,6 +36069,8 @@
36060
36069
  $root.TW.Cardano.Proto.TxOutput.encode(message.extraOutputs[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
36061
36070
  if (message.voteDelegation != null && Object.hasOwnProperty.call(message, "voteDelegation"))
36062
36071
  $root.TW.Cardano.Proto.VoteDelegation.encode(message.voteDelegation, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
36072
+ if (message.auxiliaryData != null && Object.hasOwnProperty.call(message, "auxiliaryData"))
36073
+ writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.auxiliaryData);
36063
36074
  return writer;
36064
36075
  };
36065
36076
 
@@ -36120,6 +36131,9 @@
36120
36131
  message.extraOutputs = [];
36121
36132
  message.extraOutputs.push($root.TW.Cardano.Proto.TxOutput.decode(reader, reader.uint32()));
36122
36133
  break;
36134
+ case 12:
36135
+ message.auxiliaryData = reader.bytes();
36136
+ break;
36123
36137
  default:
36124
36138
  reader.skipType(tag & 7);
36125
36139
  break;
@@ -36202,6 +36216,9 @@
36202
36216
  return "extraOutputs." + error;
36203
36217
  }
36204
36218
  }
36219
+ if (message.auxiliaryData != null && message.hasOwnProperty("auxiliaryData"))
36220
+ if (!(message.auxiliaryData && typeof message.auxiliaryData.length === "number" || $util.isString(message.auxiliaryData)))
36221
+ return "auxiliaryData: buffer expected";
36205
36222
  return null;
36206
36223
  };
36207
36224
 
@@ -36291,6 +36308,11 @@
36291
36308
  message.extraOutputs[i] = $root.TW.Cardano.Proto.TxOutput.fromObject(object.extraOutputs[i]);
36292
36309
  }
36293
36310
  }
36311
+ if (object.auxiliaryData != null)
36312
+ if (typeof object.auxiliaryData === "string")
36313
+ $util.base64.decode(object.auxiliaryData, message.auxiliaryData = $util.newBuffer($util.base64.length(object.auxiliaryData)), 0);
36314
+ else if (object.auxiliaryData.length)
36315
+ message.auxiliaryData = object.auxiliaryData;
36294
36316
  return message;
36295
36317
  };
36296
36318
 
@@ -36325,6 +36347,13 @@
36325
36347
  object.withdraw = null;
36326
36348
  object.deregisterStakingKey = null;
36327
36349
  object.voteDelegation = null;
36350
+ if (options.bytes === String)
36351
+ object.auxiliaryData = "";
36352
+ else {
36353
+ object.auxiliaryData = [];
36354
+ if (options.bytes !== Array)
36355
+ object.auxiliaryData = $util.newBuffer(object.auxiliaryData);
36356
+ }
36328
36357
  }
36329
36358
  if (message.utxos && message.utxos.length) {
36330
36359
  object.utxos = [];
@@ -36360,6 +36389,8 @@
36360
36389
  }
36361
36390
  if (message.voteDelegation != null && message.hasOwnProperty("voteDelegation"))
36362
36391
  object.voteDelegation = $root.TW.Cardano.Proto.VoteDelegation.toObject(message.voteDelegation, options);
36392
+ if (message.auxiliaryData != null && message.hasOwnProperty("auxiliaryData"))
36393
+ object.auxiliaryData = options.bytes === String ? $util.base64.encode(message.auxiliaryData, 0, message.auxiliaryData.length) : options.bytes === Array ? Array.prototype.slice.call(message.auxiliaryData) : message.auxiliaryData;
36363
36394
  return object;
36364
36395
  };
36365
36396
 
@@ -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={2221076:()=>{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";}}},2221798:()=>l.ga()},Ac=y("___getTypeName"),gd=y("_malloc"),Y=y("_free"),tb=y("_strerror"),
86
+ var fd={2221524:()=>{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";}}},2222246:()=>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
@@ -637,13 +637,13 @@ export class EthereumChainID {
637
637
  static moonriver: EthereumChainID;
638
638
  static ronin: EthereumChainID;
639
639
  static kavaevm: EthereumChainID;
640
+ static robinhoodchain: EthereumChainID;
640
641
  static iotexevm: EthereumChainID;
641
642
  static kaia: EthereumChainID;
642
643
  static avalanchec: EthereumChainID;
643
644
  static evmos: EthereumChainID;
644
645
  static arbitrumnova: EthereumChainID;
645
646
  static arbitrum: EthereumChainID;
646
- static robinhoodchain: EthereumChainID;
647
647
  static smartchain: EthereumChainID;
648
648
  static zetaevm: EthereumChainID;
649
649
  static neon: EthereumChainID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.6.14",
3
+ "version": "4.7.0",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",