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

abitype

Package Overview
Dependencies
Maintainers
2
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abitype - npm Package Compare versions

Comparing version 0.9.0-canary.20230703T163137 to 0.9.0-canary.20230703T192612

2

dist/cjs/version.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = '0.9.0-canary.20230703T163137';
exports.version = '0.9.0-canary.20230703T192612';
//# sourceMappingURL=version.js.map

@@ -1,2 +0,2 @@

export const version = '0.9.0-canary.20230703T163137';
export const version = '0.9.0-canary.20230703T192612';
//# sourceMappingURL=version.js.map

@@ -103,8 +103,8 @@ import type { Abi, AbiParameter, AbiParameterKind, AbiStateMutability, AbiType, MBits, SolidityAddress, SolidityArray, SolidityBool, SolidityBytes, SolidityFixedArrayRange, SolidityFixedArraySizeLookup, SolidityFunction, SolidityInt, SolidityString, SolidityTuple, TypedData, TypedDataParameter, TypedDataType } from './abi.js';

* @param TAbi - {@link Abi} to extract functions from
* @param TAbiStateMutibility - {@link AbiStateMutability} to filter by
* @param TAbiStateMutability - {@link AbiStateMutability} to filter by
* @returns All {@link AbiFunction} types from {@link Abi}
*/
export type ExtractAbiFunctions<TAbi extends Abi, TAbiStateMutibility extends AbiStateMutability = AbiStateMutability> = Extract<TAbi[number], {
export type ExtractAbiFunctions<TAbi extends Abi, TAbiStateMutability extends AbiStateMutability = AbiStateMutability> = Extract<TAbi[number], {
type: 'function';
stateMutability: TAbiStateMutibility;
stateMutability: TAbiStateMutability;
}>;

@@ -115,6 +115,6 @@ /**

* @param TAbi - {@link Abi} to extract function names from
* @param TAbiStateMutibility - {@link AbiStateMutability} to filter by
* @param TAbiStateMutability - {@link AbiStateMutability} to filter by
* @returns Union of function names
*/
export type ExtractAbiFunctionNames<TAbi extends Abi, TAbiStateMutibility extends AbiStateMutability = AbiStateMutability> = ExtractAbiFunctions<TAbi, TAbiStateMutibility>['name'];
export type ExtractAbiFunctionNames<TAbi extends Abi, TAbiStateMutability extends AbiStateMutability = AbiStateMutability> = ExtractAbiFunctions<TAbi, TAbiStateMutability>['name'];
/**

@@ -125,5 +125,6 @@ * Extracts {@link AbiFunction} with name from {@link Abi}.

* @param TFunctionName - String name of function to extract from {@link Abi}
* @param TAbiStateMutability - {@link AbiStateMutability} to filter by
* @returns Matching {@link AbiFunction}
*/
export type ExtractAbiFunction<TAbi extends Abi, TFunctionName extends ExtractAbiFunctionNames<TAbi>> = Extract<ExtractAbiFunctions<TAbi>, {
export type ExtractAbiFunction<TAbi extends Abi, TFunctionName extends ExtractAbiFunctionNames<TAbi>, TAbiStateMutability extends AbiStateMutability = AbiStateMutability> = Extract<ExtractAbiFunctions<TAbi, TAbiStateMutability>, {
name: TFunctionName;

@@ -130,0 +131,0 @@ }>;

@@ -1,2 +0,2 @@

export declare const version = "0.9.0-canary.20230703T163137";
export declare const version = "0.9.0-canary.20230703T192612";
//# sourceMappingURL=version.d.ts.map
{
"name": "abitype",
"description": "Strict TypeScript types for Ethereum ABIs",
"version": "0.9.0-canary.20230703T163137",
"version": "0.9.0-canary.20230703T192612",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": "wagmi-dev/abitype",

@@ -213,3 +213,3 @@ import type {

* @param TAbi - {@link Abi} to extract functions from
* @param TAbiStateMutibility - {@link AbiStateMutability} to filter by
* @param TAbiStateMutability - {@link AbiStateMutability} to filter by
* @returns All {@link AbiFunction} types from {@link Abi}

@@ -219,6 +219,6 @@ */

TAbi extends Abi,
TAbiStateMutibility extends AbiStateMutability = AbiStateMutability,
TAbiStateMutability extends AbiStateMutability = AbiStateMutability,
> = Extract<
TAbi[number],
{ type: 'function'; stateMutability: TAbiStateMutibility }
{ type: 'function'; stateMutability: TAbiStateMutability }
>

@@ -230,3 +230,3 @@

* @param TAbi - {@link Abi} to extract function names from
* @param TAbiStateMutibility - {@link AbiStateMutability} to filter by
* @param TAbiStateMutability - {@link AbiStateMutability} to filter by
* @returns Union of function names

@@ -236,4 +236,4 @@ */

TAbi extends Abi,
TAbiStateMutibility extends AbiStateMutability = AbiStateMutability,
> = ExtractAbiFunctions<TAbi, TAbiStateMutibility>['name']
TAbiStateMutability extends AbiStateMutability = AbiStateMutability,
> = ExtractAbiFunctions<TAbi, TAbiStateMutability>['name']

@@ -245,2 +245,3 @@ /**

* @param TFunctionName - String name of function to extract from {@link Abi}
* @param TAbiStateMutability - {@link AbiStateMutability} to filter by
* @returns Matching {@link AbiFunction}

@@ -251,3 +252,7 @@ */

TFunctionName extends ExtractAbiFunctionNames<TAbi>,
> = Extract<ExtractAbiFunctions<TAbi>, { name: TFunctionName }>
TAbiStateMutability extends AbiStateMutability = AbiStateMutability,
> = Extract<
ExtractAbiFunctions<TAbi, TAbiStateMutability>,
{ name: TFunctionName }
>

@@ -254,0 +259,0 @@ ////////////////////////////////////////////////////////////////////////////////////////////////////

@@ -1,1 +0,1 @@

export const version = '0.9.0-canary.20230703T163137'
export const version = '0.9.0-canary.20230703T192612'

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