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

web3-types

Package Overview
Dependencies
Maintainers
5
Versions
361
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-types - npm Package Compare versions

Comparing version 1.9.1-dev.1724f35.0 to 1.9.1-dev.6ad1ca9.0

32

lib/commonjs/web3_base_wallet.d.ts

@@ -42,2 +42,16 @@ import { Transaction } from './eth_types.js';

};
export declare type SignatureObject = {
messageHash: string;
r: string;
s: string;
v: string;
};
export declare type SignTransactionResult = SignatureObject & {
rawTransaction: string;
transactionHash: string;
};
export declare type SignResult = SignatureObject & {
message?: string;
signature: string;
};
export interface Web3BaseWalletAccount {

@@ -47,18 +61,4 @@ [key: string]: unknown;

readonly privateKey: string;
readonly signTransaction: (tx: Transaction) => Promise<{
readonly messageHash: HexString;
readonly r: HexString;
readonly s: HexString;
readonly v: HexString;
readonly rawTransaction: HexString;
readonly transactionHash: HexString;
}>;
readonly sign: (data: Record<string, unknown> | string) => {
readonly messageHash: HexString;
readonly r: HexString;
readonly s: HexString;
readonly v: HexString;
readonly message?: string;
readonly signature: HexString;
};
readonly signTransaction: (tx: Transaction) => Promise<SignTransactionResult>;
readonly sign: (data: Record<string, unknown> | string) => SignResult;
readonly encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;

@@ -65,0 +65,0 @@ }

@@ -42,2 +42,16 @@ import { Transaction } from './eth_types.js';

};
export declare type SignatureObject = {
messageHash: string;
r: string;
s: string;
v: string;
};
export declare type SignTransactionResult = SignatureObject & {
rawTransaction: string;
transactionHash: string;
};
export declare type SignResult = SignatureObject & {
message?: string;
signature: string;
};
export interface Web3BaseWalletAccount {

@@ -47,18 +61,4 @@ [key: string]: unknown;

readonly privateKey: string;
readonly signTransaction: (tx: Transaction) => Promise<{
readonly messageHash: HexString;
readonly r: HexString;
readonly s: HexString;
readonly v: HexString;
readonly rawTransaction: HexString;
readonly transactionHash: HexString;
}>;
readonly sign: (data: Record<string, unknown> | string) => {
readonly messageHash: HexString;
readonly r: HexString;
readonly s: HexString;
readonly v: HexString;
readonly message?: string;
readonly signature: HexString;
};
readonly signTransaction: (tx: Transaction) => Promise<SignTransactionResult>;
readonly sign: (data: Record<string, unknown> | string) => SignResult;
readonly encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;

@@ -65,0 +65,0 @@ }

{
"name": "web3-types",
"version": "1.9.1-dev.1724f35.0+1724f35",
"version": "1.9.1-dev.6ad1ca9.0+6ad1ca9",
"description": "Provide the common data structures and interfaces for web3 modules.",

@@ -59,3 +59,3 @@ "main": "./lib/commonjs/index.js",

},
"gitHead": "1724f3542ccfe3c17af9e14b93da72a2f65d959e"
"gitHead": "6ad1ca9f99624fb650b9391347e930fc6595d2ae"
}

@@ -63,2 +63,19 @@ /*

export type SignatureObject = {
messageHash: string;
r: string;
s: string;
v: string;
};
export type SignTransactionResult = SignatureObject & {
rawTransaction: string;
transactionHash: string;
};
export type SignResult = SignatureObject & {
message?: string;
signature: string;
};
export interface Web3BaseWalletAccount {

@@ -68,18 +85,4 @@ [key: string]: unknown;

readonly privateKey: string;
readonly signTransaction: (tx: Transaction) => Promise<{
readonly messageHash: HexString;
readonly r: HexString;
readonly s: HexString;
readonly v: HexString;
readonly rawTransaction: HexString;
readonly transactionHash: HexString;
}>;
readonly sign: (data: Record<string, unknown> | string) => {
readonly messageHash: HexString;
readonly r: HexString;
readonly s: HexString;
readonly v: HexString;
readonly message?: string;
readonly signature: HexString;
};
readonly signTransaction: (tx: Transaction) => Promise<SignTransactionResult>;
readonly sign: (data: Record<string, unknown> | string) => SignResult;
readonly encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>;

@@ -86,0 +89,0 @@ }

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