Comparing version 0.0.0-canary-20240620192132 to 0.0.0-canary-20240628164201
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '0.0.0-canary-20240620192132'; | ||
exports.version = '0.0.0-canary-20240628164201'; | ||
//# sourceMappingURL=version.js.map |
@@ -0,3 +1,4 @@ | ||
// biome-ignore lint/performance/noBarrelFile: <explanation> | ||
export { customSolidityErrorsHumanReadableAbi, ensHumanReadableAbi, ensRegistryWithFallbackHumanReadableAbi, erc20HumanReadableAbi, nestedTupleArrayHumanReadableAbi, nounsAuctionHouseHumanReadableAbi, seaportHumanReadableAbi, wagmiMintExampleHumanReadableAbi, wethHumanReadableAbi, writingEditionsFactoryHumanReadableAbi, eip165HumanReadableAbi, } from '../abis/human-readable.js'; | ||
export { customSolidityErrorsAbi, ensAbi, ensRegistryWithFallbackAbi, erc20Abi, nestedTupleArrayAbi, nounsAuctionHouseAbi, seaportAbi, wagmiMintExampleAbi, wethAbi, writingEditionsFactoryAbi, eip165Abi, } from '../abis/json.js'; | ||
//# sourceMappingURL=abis.js.map |
@@ -0,1 +1,2 @@ | ||
// biome-ignore lint/performance/noBarrelFile: <explanation> | ||
export { BaseError } from '../errors.js'; | ||
@@ -2,0 +3,0 @@ export { narrow } from '../narrow.js'; |
@@ -0,2 +1,3 @@ | ||
// biome-ignore lint/performance/noBarrelFile: <explanation> | ||
export { Address, SolidityAddress, SolidityBool, SolidityBytes, SolidityFunction, SolidityString, SolidityTuple, SolidityInt, SolidityArrayWithoutTuple, SolidityArrayWithTuple, SolidityArray, AbiParameter, AbiEventParameter, AbiStateMutability, AbiFunction, AbiConstructor, AbiFallback, AbiReceive, AbiEvent, AbiError, AbiItemType, Abi, TypedDataDomain, TypedDataType, TypedDataParameter, TypedData, } from '../zod.js'; | ||
//# sourceMappingURL=zod.js.map |
@@ -1,2 +0,2 @@ | ||
export const version = '0.0.0-canary-20240620192132'; | ||
export const version = '0.0.0-canary-20240628164201'; | ||
//# sourceMappingURL=version.js.map |
@@ -102,4 +102,11 @@ import type { AbiParameter, AbiStateMutability, AbiType, SolidityFixedArrayRange } from '../../abi.js'; | ||
Inputs: parameters; | ||
StateMutability: scopeOrStateMutability extends `${Scope} ${infer stateMutability extends AbiStateMutability}` ? stateMutability : scopeOrStateMutability extends AbiStateMutability ? scopeOrStateMutability : 'nonpayable'; | ||
} : never; | ||
StateMutability: _ParseStateMutability<scopeOrStateMutability>; | ||
} : signature extends `function ${string}(${infer tail}` ? _UnwrapNameOrModifier<tail> extends { | ||
nameOrModifier: infer scopeOrStateMutability extends string; | ||
End: infer parameters; | ||
} ? { | ||
Inputs: parameters; | ||
StateMutability: _ParseStateMutability<scopeOrStateMutability>; | ||
} : never : never; | ||
type _ParseStateMutability<signature extends string> = signature extends `${Scope} ${infer stateMutability extends AbiStateMutability}` ? stateMutability : signature extends AbiStateMutability ? signature : 'nonpayable'; | ||
type _ParseConstructorParametersAndStateMutability<signature extends string> = signature extends `constructor(${infer parameters}) payable` ? { | ||
@@ -106,0 +113,0 @@ Inputs: parameters; |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.0.0-canary-20240620192132"; | ||
export declare const version = "0.0.0-canary-20240628164201"; | ||
//# sourceMappingURL=version.d.ts.map |
{ | ||
"name": "abitype", | ||
"description": "Strict TypeScript types for Ethereum ABIs", | ||
"version": "0.0.0-canary-20240620192132", | ||
"version": "0.0.0-canary-20240628164201", | ||
"license": "MIT", | ||
@@ -15,4 +15,5 @@ "repository": "wevm/abitype", | ||
"!src/**/*.bench.ts", | ||
"!src/**/*.test-d.ts", | ||
"!src/**/*.test.ts" | ||
"!src/**/*.bench-d.ts", | ||
"!src/**/*.test.ts", | ||
"!src/**/*.test-d.ts" | ||
], | ||
@@ -19,0 +20,0 @@ "sideEffects": false, |
@@ -0,1 +1,2 @@ | ||
// biome-ignore lint/performance/noBarrelFile: <explanation> | ||
export { | ||
@@ -2,0 +3,0 @@ customSolidityErrorsHumanReadableAbi, |
@@ -35,2 +35,3 @@ export type { | ||
// biome-ignore lint/performance/noBarrelFile: <explanation> | ||
export { BaseError } from '../errors.js' | ||
@@ -37,0 +38,0 @@ |
@@ -0,1 +1,2 @@ | ||
// biome-ignore lint/performance/noBarrelFile: <explanation> | ||
export { | ||
@@ -2,0 +3,0 @@ Address, |
@@ -258,10 +258,23 @@ import type { | ||
Inputs: parameters | ||
StateMutability: scopeOrStateMutability extends `${Scope} ${infer stateMutability extends AbiStateMutability}` | ||
? stateMutability | ||
: scopeOrStateMutability extends AbiStateMutability | ||
? scopeOrStateMutability | ||
: 'nonpayable' | ||
StateMutability: _ParseStateMutability<scopeOrStateMutability> | ||
} | ||
: never | ||
: signature extends `function ${string}(${infer tail}` | ||
? _UnwrapNameOrModifier<tail> extends { | ||
nameOrModifier: infer scopeOrStateMutability extends string | ||
End: infer parameters | ||
} | ||
? { | ||
Inputs: parameters | ||
StateMutability: _ParseStateMutability<scopeOrStateMutability> | ||
} | ||
: never | ||
: never | ||
type _ParseStateMutability<signature extends string> = | ||
signature extends `${Scope} ${infer stateMutability extends AbiStateMutability}` | ||
? stateMutability | ||
: signature extends AbiStateMutability | ||
? signature | ||
: 'nonpayable' | ||
type _ParseConstructorParametersAndStateMutability<signature extends string> = | ||
@@ -268,0 +281,0 @@ signature extends `constructor(${infer parameters}) payable` |
@@ -1,1 +0,1 @@ | ||
export const version = '0.0.0-canary-20240620192132' | ||
export const version = '0.0.0-canary-20240628164201' |
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
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
1168686
24067