web3-types
Advanced tools
Comparing version 1.7.1-dev.f87ffbe.0 to 1.8.0
@@ -22,2 +22,7 @@ import { Bytes, HexString, Numbers } from './primitives_types.js'; | ||
}; | ||
/** | ||
* Used to specify how data should be formatted. Bytes can be formatted as hexadecimal strings or | ||
* Uint8Arrays. Numbers can be formatted as BigInts, hexadecimal strings, primitive numbers, or | ||
* strings. | ||
*/ | ||
export declare type DataFormat = { | ||
@@ -24,0 +29,0 @@ readonly number: FMT_NUMBER; |
@@ -22,2 +22,7 @@ import { Bytes, HexString, Numbers } from './primitives_types.js'; | ||
}; | ||
/** | ||
* Used to specify how data should be formatted. Bytes can be formatted as hexadecimal strings or | ||
* Uint8Arrays. Numbers can be formatted as BigInts, hexadecimal strings, primitive numbers, or | ||
* strings. | ||
*/ | ||
export declare type DataFormat = { | ||
@@ -24,0 +29,0 @@ readonly number: FMT_NUMBER; |
{ | ||
"name": "web3-types", | ||
"version": "1.7.1-dev.f87ffbe.0+f87ffbe", | ||
"version": "1.8.0", | ||
"description": "Provide the common data structures and interfaces for web3 modules.", | ||
@@ -59,3 +59,3 @@ "main": "./lib/commonjs/index.js", | ||
}, | ||
"gitHead": "f87ffbe1efc38a33df241adf97d2b82e9cede7c8" | ||
"gitHead": "07993314c5db2dfaedb51bf1243c99568b6e070f" | ||
} |
@@ -196,3 +196,6 @@ /* | ||
eth_getUncleByBlockHashAndIndex: (blockHash: HexString32Bytes, uncleIndex: Uint) => BlockAPI; | ||
eth_getUncleByBlockNumberAndIndex: (blockNumber: BlockNumberOrTag, uncleIndex: Uint) => BlockAPI; | ||
eth_getUncleByBlockNumberAndIndex: ( | ||
blockNumber: BlockNumberOrTag, | ||
uncleIndex: Uint, | ||
) => BlockAPI; | ||
@@ -199,0 +202,0 @@ // https://github.com/ethereum/execution-apis/blob/main/src/eth/transaction.yaml |
@@ -44,2 +44,7 @@ /* | ||
/** | ||
* Used to specify how data should be formatted. Bytes can be formatted as hexadecimal strings or | ||
* Uint8Arrays. Numbers can be formatted as BigInts, hexadecimal strings, primitive numbers, or | ||
* strings. | ||
*/ | ||
export type DataFormat = { | ||
@@ -46,0 +51,0 @@ readonly number: FMT_NUMBER; |
@@ -145,3 +145,2 @@ /* | ||
export type AbiInput = | ||
@@ -159,11 +158,9 @@ | string | ||
export interface AbiOutput { | ||
name: string; | ||
type: string; | ||
components?: AbiOutput[]; | ||
internalType?: string; | ||
} | ||
export interface AbiOutput { | ||
name: string; | ||
type: string; | ||
components?: AbiOutput[]; | ||
internalType?: string; | ||
} | ||
// https://docs.soliditylang.org/en/latest/abi-spec.html#json | ||
@@ -175,9 +172,8 @@ export type AbiFragment = | ||
| AbiErrorFragment | ||
| AbiFallbackFragment | ||
| AbiFallbackFragment; | ||
// to be compatible with web3js v1 | ||
export type AbiItem = AbiFragment | ||
export type ContractAbi = ReadonlyArray<AbiFragment> | ReadonlyArray<AbiItem> | ||
export type AbiItem = AbiFragment; | ||
export type ContractAbi = ReadonlyArray<AbiFragment> | ReadonlyArray<AbiItem>; | ||
// https://docs.soliditylang.org/en/develop/abi-spec.html#json | ||
@@ -184,0 +180,0 @@ export type JsonFunctionInterface = { |
@@ -115,3 +115,2 @@ /* | ||
export type Eip1193EventName = | ||
@@ -153,3 +152,2 @@ | 'connect' | ||
export type Eip1193Compatible<API extends Web3APISpec = EthExecutionAPI> = Omit< | ||
@@ -156,0 +154,0 @@ // eslint-disable-next-line no-use-before-define |
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
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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
300593
5567
1
0