Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vechain/sdk-core

Package Overview
Dependencies
Maintainers
7
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vechain/sdk-core - npm Package Compare versions

Comparing version 1.0.0-beta.10 to 1.0.0-beta.11

6

package.json
{
"name": "@vechain/sdk-core",
"version": "1.0.0-beta.10",
"version": "1.0.0-beta.11",
"description": "Includes modules for fundamental operations like hashing and cryptography",

@@ -42,4 +42,4 @@ "author": "vechain Foundation",

"@types/elliptic": "^6.4.18",
"@vechain/sdk-errors": "1.0.0-beta.10",
"@vechain/sdk-logging": "1.0.0-beta.10",
"@vechain/sdk-errors": "1.0.0-beta.11",
"@vechain/sdk-logging": "1.0.0-beta.11",
"bignumber.js": "^9.1.2",

@@ -46,0 +46,0 @@ "blakejs": "^1.2.1",

import { Interface as EthersInterface, type InterfaceAbi } from 'ethers';
import { ABI, buildError, ERROR_CODES } from '@vechain/sdk-errors';
import {
ABI,
buildError,
ERROR_CODES,
stringifyData
} from '@vechain/sdk-errors';
import type { BytesLike, Interface, Log, Result } from '../abi';

@@ -39,3 +44,3 @@ import { abi } from '../abi';

`Input must match ABI specifications and be correctly formatted.\n` +
`Parameters: ${JSON.stringify(functionData)}.\n` +
`Parameters: ${stringifyData(functionData)}.\n` +
`Ethers' error message: ${(e as Error).message}.`,

@@ -42,0 +47,0 @@ { functionName, functionData },

@@ -14,3 +14,11 @@ import { BufferKind } from './bufferkind';

*/
export const RLPProfiles = {
export const RLPProfiles: {
ScalarKind: typeof ScalarKind;
BufferKind: typeof BufferKind;
NumericKind: typeof NumericKind;
HexBlobKind: typeof HexBlobKind;
FixedHexBlobKind: typeof FixedHexBlobKind;
OptionalFixedHexBlobKind: typeof OptionalFixedHexBlobKind;
CompactFixedHexBlobKind: typeof CompactFixedHexBlobKind;
} = {
ScalarKind,

@@ -17,0 +25,0 @@ BufferKind,

@@ -6,3 +6,8 @@ /**

import { type Keystore, type KeystoreAccount } from '../../types';
import { assert, buildError, KEYSTORE } from '@vechain/sdk-errors';
import {
assert,
buildError,
KEYSTORE,
stringifyData
} from '@vechain/sdk-errors';
import { secp256k1 } from '../../../secp256k1';

@@ -80,3 +85,3 @@ import { addressUtils } from '../../../address';

return (await ethers.decryptKeystoreJson(
JSON.stringify(keystore),
stringifyData(keystore),
password

@@ -105,3 +110,3 @@ )) as KeystoreAccount;

function isValid(keystore: Keystore): boolean {
return ethers.isKeystoreJson(JSON.stringify(keystore));
return ethers.isKeystoreJson(stringifyData(keystore));
}

@@ -108,0 +113,0 @@

@@ -7,3 +7,3 @@ /**

import * as utils from '@noble/curves/abstract/utils';
import { assert, KEYSTORE } from '@vechain/sdk-errors';
import { assert, KEYSTORE, stringifyData } from '@vechain/sdk-errors';
import { ctr } from '@noble/ciphers/aes';

@@ -554,3 +554,3 @@ import { scrypt } from '@noble/hashes/scrypt';

try {
const copy = JSON.parse(JSON.stringify(keystore)) as Keystore;
const copy = JSON.parse(stringifyData(keystore)) as Keystore;
if (

@@ -557,0 +557,0 @@ copy.crypto.cipher.toLowerCase() === KEYSTORE_CRYPTO_CIPHER &&

@@ -0,1 +1,3 @@

import { stringifyData } from '@vechain/sdk-errors';
/**

@@ -6,3 +8,3 @@ * ABI of the Params built-in contract.

*/
const PARAMS_ABI = JSON.stringify([
const PARAMS_ABI = stringifyData([
{

@@ -83,3 +85,3 @@ constant: false,

*/
const VIP180_ABI = JSON.stringify([
const VIP180_ABI = stringifyData([
{

@@ -343,3 +345,3 @@ constant: true,

const ERC721_ABI = JSON.stringify([
const ERC721_ABI = stringifyData([
{

@@ -346,0 +348,0 @@ inputs: [],

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc