Socket
Socket
Sign inDemoInstall

web3-types

Package Overview
Dependencies
Maintainers
4
Versions
306
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.0.3-dev.7d0a91d.0 to 1.0.3-dev.933ef51.0

4

lib/commonjs/apis/web3_eth_execution_api.d.ts
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

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