@metamask/utils

Index

Enumerations

Classes

Type Aliases

Variables

Functions

add0x areUint8ArraysEqual assert assertExhaustive assertIsBytes assertIsHexString assertIsJsonRpcError assertIsJsonRpcFailure assertIsJsonRpcNotification assertIsJsonRpcRequest assertIsJsonRpcResponse assertIsJsonRpcSuccess assertIsPendingJsonRpcResponse assertIsSemVerRange assertIsSemVerVersion assertIsStrictHexString assertStruct base64 base64ToBytes bigIntToBytes bigIntToHex bytesToBase64 bytesToBigInt bytesToHex bytesToNumber bytesToSignedBigInt bytesToString calculateNumberSize calculateStringSize concatBytes createBigInt createBytes createDataView createDeferredPromise createHex createModuleLogger createNumber createProjectLogger definePattern exactOptional fromWei getChecksumAddress getErrorMessage getJsonRpcIdValidator getJsonSize getKnownPropertyNames getSafeJson getValueOfUnit gtRange gtVersion hasProperty hexToBigInt hexToBytes hexToNumber inMilliseconds isASCII isBytes isCaipAccountAddress isCaipAccountId isCaipAssetId isCaipAssetNamespace isCaipAssetReference isCaipAssetType isCaipChainId isCaipNamespace isCaipReference isCaipTokenId isErrorWithCode isErrorWithMessage isErrorWithStack isHexAddress isHexChecksumAddress isHexString isJsonRpcError isJsonRpcFailure isJsonRpcNotification isJsonRpcRequest isJsonRpcResponse isJsonRpcSuccess isNonEmptyArray isNullOrUndefined isObject isPendingJsonRpcResponse isPlainObject isStrictHexString isValidChecksumAddress isValidHexAddress isValidJson isValidSemVerRange isValidSemVerVersion numberToBytes numberToHex numberToString object parseCaipAccountId parseCaipAssetId parseCaipAssetType parseCaipChainId remove0x satisfiesVersionRange signedBigIntToBytes stringToBytes timeSince toCaipAccountId toCaipAssetId toCaipAssetType toCaipChainId toWei valueToBytes wrapError