web3-types
Advanced tools
Comparing version 1.0.3-dev.7d0a91d.0 to 1.0.3-dev.933ef51.0
import { EthExecutionAPI } from './eth_execution_api.js'; | ||
import { AccountObject, Address, BlockNumberOrTag, HexString32Bytes, TransactionInfo, Uint } from '../eth_types.js'; | ||
import { AccountObject, Address, BlockNumberOrTag, Eip712TypedData, HexString256Bytes, HexString32Bytes, TransactionInfo, Uint } from '../eth_types.js'; | ||
export declare type Web3EthExecutionAPI = EthExecutionAPI & { | ||
@@ -9,2 +9,4 @@ eth_pendingTransactions: () => TransactionInfo[]; | ||
eth_getProof: (address: Address, storageKeys: HexString32Bytes[], blockNumber: BlockNumberOrTag) => AccountObject; | ||
eth_signTypedData: (address: Address, typedData: Eip712TypedData, useLegacy: true) => HexString256Bytes; | ||
eth_signTypedData_v4: (address: Address, typedData: Eip712TypedData, useLegacy: false | undefined) => HexString256Bytes; | ||
}; |
@@ -405,2 +405,15 @@ import { Bytes, HexString, Numbers } from './primitives_types.js'; | ||
} | ||
export interface Eip712TypeDetails { | ||
name: string; | ||
type: string; | ||
} | ||
export interface Eip712TypedData { | ||
readonly types: { | ||
EIP712Domain: Eip712TypeDetails[]; | ||
[key: string]: Eip712TypeDetails[]; | ||
}; | ||
readonly primaryType: string; | ||
readonly domain: Record<string, string | number>; | ||
readonly message: Record<string, unknown>; | ||
} | ||
export {}; |
import { EthExecutionAPI } from './eth_execution_api.js'; | ||
import { AccountObject, Address, BlockNumberOrTag, HexString32Bytes, TransactionInfo, Uint } from '../eth_types.js'; | ||
import { AccountObject, Address, BlockNumberOrTag, Eip712TypedData, HexString256Bytes, HexString32Bytes, TransactionInfo, Uint } from '../eth_types.js'; | ||
export declare type Web3EthExecutionAPI = EthExecutionAPI & { | ||
@@ -9,3 +9,5 @@ eth_pendingTransactions: () => TransactionInfo[]; | ||
eth_getProof: (address: Address, storageKeys: HexString32Bytes[], blockNumber: BlockNumberOrTag) => AccountObject; | ||
eth_signTypedData: (address: Address, typedData: Eip712TypedData, useLegacy: true) => HexString256Bytes; | ||
eth_signTypedData_v4: (address: Address, typedData: Eip712TypedData, useLegacy: false | undefined) => HexString256Bytes; | ||
}; | ||
//# sourceMappingURL=web3_eth_execution_api.d.ts.map |
@@ -405,3 +405,16 @@ import { Bytes, HexString, Numbers } from './primitives_types.js'; | ||
} | ||
export interface Eip712TypeDetails { | ||
name: string; | ||
type: string; | ||
} | ||
export interface Eip712TypedData { | ||
readonly types: { | ||
EIP712Domain: Eip712TypeDetails[]; | ||
[key: string]: Eip712TypeDetails[]; | ||
}; | ||
readonly primaryType: string; | ||
readonly domain: Record<string, string | number>; | ||
readonly message: Record<string, unknown>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=eth_types.d.ts.map |
{ | ||
"name": "web3-types", | ||
"version": "1.0.3-dev.7d0a91d.0+7d0a91d", | ||
"version": "1.0.3-dev.933ef51.0+933ef51", | ||
"description": "Provide the common data structures and interfaces for web3 modules.", | ||
@@ -59,3 +59,3 @@ "main": "./lib/commonjs/index.js", | ||
}, | ||
"gitHead": "7d0a91d7011d5fd08f4d72193bd799fec2e30f2f" | ||
"gitHead": "933ef512d5c10cf092b21ab82da38c29cde575f8" | ||
} |
@@ -22,2 +22,4 @@ /* | ||
BlockNumberOrTag, | ||
Eip712TypedData, | ||
HexString256Bytes, | ||
HexString32Bytes, | ||
@@ -45,2 +47,16 @@ TransactionInfo, | ||
) => AccountObject; | ||
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md | ||
eth_signTypedData: ( | ||
address: Address, | ||
typedData: Eip712TypedData, | ||
useLegacy: true, | ||
) => HexString256Bytes; | ||
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md | ||
eth_signTypedData_v4: ( | ||
address: Address, | ||
typedData: Eip712TypedData, | ||
useLegacy: false | undefined, | ||
) => HexString256Bytes; | ||
}; |
@@ -499,1 +499,15 @@ /* | ||
} | ||
export interface Eip712TypeDetails { | ||
name: string; | ||
type: string; | ||
} | ||
export interface Eip712TypedData { | ||
readonly types: { | ||
EIP712Domain: Eip712TypeDetails[]; | ||
[key: string]: Eip712TypeDetails[]; | ||
}; | ||
readonly primaryType: string; | ||
readonly domain: Record<string, string | number>; | ||
readonly message: Record<string, unknown>; | ||
} |
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
263692
4779