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

web3

Package Overview
Dependencies
Maintainers
4
Versions
582
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3 - npm Package Compare versions

Comparing version 4.15.1-dev.1724f35.0 to 4.15.1-dev.471c12b.0

50

lib/commonjs/accounts.d.ts

@@ -12,43 +12,22 @@ import { EthExecutionAPI, Bytes, Transaction, KeyStore } from 'web3-types';

export declare const initAccountsForContext: (context: Web3Context<EthExecutionAPI>) => {
signTransaction: (transaction: Transaction, privateKey: Bytes) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction, privateKey: Bytes) => Promise<import("web3-types").SignTransactionResult>;
create: () => {
signTransaction: (transaction: Transaction) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => {
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly message?: string | undefined;
readonly signature: string;
};
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
};
privateKeyToAccount: (privateKey: Uint8Array | string) => {
signTransaction: (transaction: Transaction) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => {
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly message?: string | undefined;
readonly signature: string;
};
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
};
decrypt: (keystore: KeyStore | string, password: string, options?: Record<string, unknown>) => Promise<{
signTransaction: (transaction: Transaction) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => {
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly message?: string | undefined;
readonly signature: string;
};
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;

@@ -58,17 +37,10 @@ }>;

hashMessage: (message: string, skipPrefix?: boolean | undefined) => string;
sign: (data: string, privateKey: Bytes) => import("web3-eth-accounts").SignResult;
recover: (data: string | import("web3-eth-accounts").SignatureObject, signatureOrV?: string | undefined, prefixedOrR?: string | boolean | undefined, s?: string | undefined, prefixed?: boolean | undefined) => string;
sign: (data: string, privateKey: Bytes) => import("web3-types").SignResult;
recover: (data: string | import("web3-types").SignatureObject, signatureOrV?: string | undefined, prefixedOrR?: string | boolean | undefined, s?: string | undefined, prefixed?: boolean | undefined) => string;
encrypt: (privateKey: Bytes, password: string | Uint8Array, options?: import("web3-types").CipherOptions | undefined) => Promise<KeyStore>;
wallet: Wallet<{
signTransaction: (transaction: Transaction) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => {
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly message?: string | undefined;
readonly signature: string;
};
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;

@@ -75,0 +47,0 @@ }>;

@@ -10,2 +10,3 @@ import { Bytes, Transaction } from 'web3-types';

import { Personal } from 'web3-eth-personal';
export type { Web3Account, Wallet } from 'web3-eth-accounts';
/**

@@ -12,0 +13,0 @@ * The Ethereum interface for main web3 object. It provides extra methods in addition to `web3-eth` interface.

@@ -12,43 +12,22 @@ import { EthExecutionAPI, Bytes, Transaction, KeyStore } from 'web3-types';

export declare const initAccountsForContext: (context: Web3Context<EthExecutionAPI>) => {
signTransaction: (transaction: Transaction, privateKey: Bytes) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction, privateKey: Bytes) => Promise<import("web3-types").SignTransactionResult>;
create: () => {
signTransaction: (transaction: Transaction) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => {
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly message?: string | undefined;
readonly signature: string;
};
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
};
privateKeyToAccount: (privateKey: Uint8Array | string) => {
signTransaction: (transaction: Transaction) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => {
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly message?: string | undefined;
readonly signature: string;
};
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;
};
decrypt: (keystore: KeyStore | string, password: string, options?: Record<string, unknown>) => Promise<{
signTransaction: (transaction: Transaction) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => {
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly message?: string | undefined;
readonly signature: string;
};
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;

@@ -58,17 +37,10 @@ }>;

hashMessage: (message: string, skipPrefix?: boolean | undefined) => string;
sign: (data: string, privateKey: Bytes) => import("web3-eth-accounts").SignResult;
recover: (data: string | import("web3-eth-accounts").SignatureObject, signatureOrV?: string | undefined, prefixedOrR?: string | boolean | undefined, s?: string | undefined, prefixed?: boolean | undefined) => string;
sign: (data: string, privateKey: Bytes) => import("web3-types").SignResult;
recover: (data: string | import("web3-types").SignatureObject, signatureOrV?: string | undefined, prefixedOrR?: string | boolean | undefined, s?: string | undefined, prefixed?: boolean | undefined) => string;
encrypt: (privateKey: Bytes, password: string | Uint8Array, options?: import("web3-types").CipherOptions | undefined) => Promise<KeyStore>;
wallet: Wallet<{
signTransaction: (transaction: Transaction) => Promise<import("web3-eth-accounts").SignTransactionResult>;
signTransaction: (transaction: Transaction) => Promise<import("web3-types").SignTransactionResult>;
address: string;
privateKey: string;
sign: (data: string | Record<string, unknown>) => {
readonly messageHash: string;
readonly r: string;
readonly s: string;
readonly v: string;
readonly message?: string | undefined;
readonly signature: string;
};
sign: (data: string | Record<string, unknown>) => import("web3-types").SignResult;
encrypt: (password: string, options?: Record<string, unknown> | undefined) => Promise<KeyStore>;

@@ -75,0 +47,0 @@ }>;

@@ -10,2 +10,3 @@ import { Bytes, Transaction } from 'web3-types';

import { Personal } from 'web3-eth-personal';
export type { Web3Account, Wallet } from 'web3-eth-accounts';
/**

@@ -12,0 +13,0 @@ * The Ethereum interface for main web3 object. It provides extra methods in addition to `web3-eth` interface.

{
"name": "web3",
"version": "4.15.1-dev.1724f35.0+1724f35",
"version": "4.15.1-dev.471c12b.0+471c12b",
"description": "Ethereum JavaScript API",

@@ -86,24 +86,24 @@ "main": "./lib/commonjs/index.js",

"typescript": "^4.7.4",
"web3-providers-ipc": "4.0.8-dev.1724f35.0+1724f35"
"web3-providers-ipc": "4.0.8-dev.471c12b.0+471c12b"
},
"dependencies": {
"web3-core": "4.7.1-dev.1724f35.0+1724f35",
"web3-errors": "1.3.1-dev.1724f35.0+1724f35",
"web3-eth": "4.11.1-dev.1724f35.0+1724f35",
"web3-eth-abi": "4.4.1-dev.1724f35.0+1724f35",
"web3-eth-accounts": "4.3.1-dev.1724f35.0+1724f35",
"web3-eth-contract": "4.7.2-dev.1724f35.0+1724f35",
"web3-eth-ens": "4.4.1-dev.1724f35.0+1724f35",
"web3-eth-iban": "4.0.8-dev.1724f35.0+1724f35",
"web3-eth-personal": "4.1.1-dev.1724f35.0+1724f35",
"web3-net": "4.1.1-dev.1724f35.0+1724f35",
"web3-providers-http": "4.2.1-dev.1724f35.0+1724f35",
"web3-providers-ws": "4.0.9-dev.1724f35.0+1724f35",
"web3-rpc-methods": "1.3.1-dev.1724f35.0+1724f35",
"web3-rpc-providers": "1.0.0-dev.1724f35.0+1724f35",
"web3-types": "1.9.1-dev.1724f35.0+1724f35",
"web3-utils": "4.3.3-dev.1724f35.0+1724f35",
"web3-validator": "2.0.7-dev.1724f35.0+1724f35"
"web3-core": "4.7.1-dev.471c12b.0+471c12b",
"web3-errors": "1.3.1-dev.471c12b.0+471c12b",
"web3-eth": "4.11.1-dev.471c12b.0+471c12b",
"web3-eth-abi": "4.4.1-dev.471c12b.0+471c12b",
"web3-eth-accounts": "4.3.1-dev.471c12b.0+471c12b",
"web3-eth-contract": "4.7.2-dev.471c12b.0+471c12b",
"web3-eth-ens": "4.4.1-dev.471c12b.0+471c12b",
"web3-eth-iban": "4.0.8-dev.471c12b.0+471c12b",
"web3-eth-personal": "4.1.1-dev.471c12b.0+471c12b",
"web3-net": "4.1.1-dev.471c12b.0+471c12b",
"web3-providers-http": "4.2.1-dev.471c12b.0+471c12b",
"web3-providers-ws": "4.0.9-dev.471c12b.0+471c12b",
"web3-rpc-methods": "1.3.1-dev.471c12b.0+471c12b",
"web3-rpc-providers": "1.0.0-dev.471c12b.0+471c12b",
"web3-types": "1.9.1-dev.471c12b.0+471c12b",
"web3-utils": "4.3.3-dev.471c12b.0+471c12b",
"web3-validator": "2.0.7-dev.471c12b.0+471c12b"
},
"gitHead": "1724f3542ccfe3c17af9e14b93da72a2f65d959e"
"gitHead": "471c12bac67dd40162c8c6c897a5c98c3a3815cc"
}

@@ -45,2 +45,4 @@ /*

export type { Web3Account, Wallet } from 'web3-eth-accounts';
/**

@@ -47,0 +49,0 @@ * The Ethereum interface for main web3 object. It provides extra methods in addition to `web3-eth` interface.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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