web3-types
Advanced tools
Comparing version 1.9.1-dev.1724f35.0 to 1.9.1-dev.6af068f.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 @@ } |
@@ -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.6af068f.0+6af068f", | ||
"description": "Provide the common data structures and interfaces for web3 modules.", | ||
@@ -59,3 +59,3 @@ "main": "./lib/commonjs/index.js", | ||
}, | ||
"gitHead": "1724f3542ccfe3c17af9e14b93da72a2f65d959e" | ||
"gitHead": "6af068fa5982f0e487146fc61a8c1e4032fc5dca" | ||
} |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
300748